* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

h2 {
    color: #3498db;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

h3 {
    color: #555;
    margin-bottom: 10px;
}

.function-area {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.primary-button {
    background-color: #2ecc71;
}

.primary-button:hover {
    background-color: #27ae60;
}

.warning-button {
    background-color: #e74c3c;
}

.warning-button:hover {
    background-color: #c0392b;
}

.secondary-button {
    background-color: #9b59b6;
}

.secondary-button:hover {
    background-color: #8e44ad;
}

.table-container {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e6f7ff;
}

.success {
    color: #2ecc71;
}

.error {
    color: #e74c3c;
}

.pending {
    color: #f39c12;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: inline-block;
    width: 100px;
    margin-right: 10px;
}

input[type="text"],
input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.token-name {
    margin-left: 10px;
    font-weight: bold;
    color: #3498db;
}

.token-settings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.setting-group {
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.hidden {
    display: none;
}

.execution-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.execution-controls button {
    padding: 12px 25px;
    font-size: 16px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.logs-modal-content {
    width: 80%;
    max-width: 900px;
    height: 80%;
    max-height: 700px;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
}

.logs-container {
    flex: 1;
    overflow-y: auto;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 15px 0;
    font-family: monospace;
    white-space: pre-wrap;
}

.checkbox-cell {
    text-align: center;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }

    .token-settings {
        grid-template-columns: 1fr;
    }

    .input-group label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    input[type="text"],
    input[type="number"] {
        width: 100%;
    }
}