/* 登录页面样式 */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e5a74 0%, #2c7da0 100%);
    margin: 0;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e5a74;
}

.login-card input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: #2c7da0;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

.login-card button:hover {
    background: #1e5a74;
}

.login-card .error {
    color: #e53e3e;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

/* 可编辑单元格高亮 */
.editable {
    background: #fef9c3;
    cursor: text;
}

.editable:focus {
    background: #fef08a;
    outline: none;
}

/* 操作按钮样式 */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.config-btn, .send-btn {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

.config-btn {
    background: #e2e8f0;
    color: #334155;
}

.config-btn:hover {
    background: #cbd5e1;
}

.send-btn {
    background: #10b981;
    color: white;
}

.send-btn:hover {
    background: #059669;
}

/* ==================== 表格和页面容器样式 ==================== */

.page-container {
    padding: 24px;
    background: #f0f4f8;
    min-height: 100vh;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.hint {
    font-size: 12px;
    color: #64748b;
}

.btn {
    background: #2c7da0;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover {
    background: #1e5a74;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.data-table tr:hover {
    background: #f8fafc;
}