/* 管理员后台样式文件 */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; 
    background: #f5f5f5; 
    line-height: 1.6;
    color: #333;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* 头部样式 */
.header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 30px; 
    border-radius: 10px; 
    margin-bottom: 30px; 
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    opacity: 0.9;
    font-size: 16px;
}

/* 登录表单 */
.login-form { 
    background: white; 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    max-width: 400px; 
    margin: 100px auto; 
    animation: fadeInUp 0.6s ease-out;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

/* 导航栏 */
.nav { 
    background: white; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    margin-bottom: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav .user-info {
    color: #666;
    font-size: 14px;
}

/* 菜单样式 */
.menu { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 30px; 
    flex-wrap: wrap;
}

.menu .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* 表单样式 */
.form-group { 
    margin-bottom: 25px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    color: #555; 
    font-weight: 500; 
    font-size: 14px;
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 14px 16px; 
    border: 2px solid #e1e5e9; 
    border-radius: 8px; 
    font-size: 15px; 
    transition: all 0.3s ease; 
    background: #f8f9fa;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-color: #667eea; 
    background: white; 
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 按钮样式 */
.btn { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border: none; 
    padding: 14px 28px; 
    border-radius: 8px; 
    font-size: 15px; 
    cursor: pointer; 
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    opacity: 0.95;
}

.btn:active {
    transform: translateY(0);
}

.btn-block { 
    width: 100%; 
    padding: 16px;
}

/* 按钮组样式 */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
}

.form-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white;
}

.form-buttons .btn-secondary {
    background: #6c757d;
    color: white;
}

.form-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-danger { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
}

.btn-success { 
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%); 
}

.btn-warning { 
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); 
}

.btn-info { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); 
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* 统计面板 - 现代大气布局 */
.stats-dashboard { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    margin-bottom: 40px; 
}

.stat-card-modern { 
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 40px 30px; 
    border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c, #f39c12);
}

.stat-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon-1 { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-icon-2 { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.stat-icon-3 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-icon-4 { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.stat-icon-5 { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-icon-6 { background: linear-gradient(135deg, #1abc9c, #16a085); }
.stat-icon-7 { background: linear-gradient(135deg, #34495e, #2c3e50); }
.stat-icon-8 { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }

.stat-title {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 500;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.trend-up { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.trend-down { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }



/* 内容区域 */
.section { 
    background: white; 
    padding: 30px 35px; 
    border-radius: 0; 
    box-shadow: none; 
    margin-bottom: 0; 
    border: none;
    border-bottom: 1px solid #e8eaed;
    width: 100vw;
    max-width: 1400px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.section h2 { 
    color: #333; 
    margin-bottom: 35px; 
    padding-bottom: 25px; 
    border-bottom: 2px solid #e9ecef; 
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 表格样式 */
.table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 25px; 
    font-size: 14px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
}

.table th, 
.table td { 
    padding: 18px 16px; 
    text-align: left; 
    border-bottom: 1px solid #e8e8e8; 
}

.table th { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    font-weight: 600; 
    color: #555; 
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e1e5e9;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 提示框样式 */
.alert { 
    padding: 15px 20px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    font-size: 14px;
    animation: slideInDown 0.4s ease-out;
}

.alert-error { 
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}

.alert-success { 
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}

.alert-warning { 
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); 
    color: #856404; 
    border: 1px solid #ffeaa7; 
}

.alert-info { 
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%); 
    color: #0c5460; 
    border: 1px solid #bee5eb; 
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.pagination .page-info {
    color: #666;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 表单组样式 */
.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block; 
    margin-bottom: 10px; 
    color: #555; 
    font-weight: 600; 
    font-size: 15px;
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 16px 18px; 
    border: 2px solid #e1e5e9; 
    border-radius: 8px; 
    font-size: 15px; 
    transition: all 0.3s ease; 
    background: #f8f9fa;
    height: auto;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-color: #667eea; 
    background: white; 
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左侧边栏布局 */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
}

.sidebar {
    width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar-header .user-info {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.admin-id-info {
    margin-top: 8px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.register-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    font-weight: 500;
}

.register-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu .menu-item {
    display: block;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 12px 15px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.sidebar-menu .menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-menu .menu-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 500;
}

.sidebar-menu .menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
}

.sidebar-menu .menu-item i {
    margin-right: 8px;
    width: 16px;
    display: inline-block;
}

/* 菜单徽章样式 */
.sidebar-menu .menu-badge {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.main-content {
    margin-left: 200px;
    flex: 1;
    padding: 0;
    min-height: 100vh;
    width: calc(100% - 200px);
    max-width: none;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100vw;              /* 与游戏账号详细列表一样，横向占满视口宽度 */
    max-width: 1400px;         /* 保持与 detail-section 一致的最大宽度 */
    box-sizing: border-box;
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* 居中对齐 */
}

.content-header h1 {
    font-size: 42px;
    margin: 0;
    padding: 0 35px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.content-header .breadcrumb {
    font-size: 18px;
    color: #666;
    margin: 10px 0 0 0;
    padding: 0 35px;
}

.content-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.content-header .breadcrumb {
    color: #666;
    font-size: 14px;
}

.content-body {
    padding: 40px 0;
    max-width: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 顶部五个统计卡片区域，宽度与充值记录标题框架保持一致 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 25px 0 35px;
    width: 100vw;              /* 与 .content-header、.detail-section 一致，占满视口宽度 */
    max-width: 1400px;         /* 保持统一最大宽度 */
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* 居中 */
    padding: 0 35px;           /* 与标题文字左右内边距保持一致 */
    box-sizing: border-box;
}

/* 隐藏原有的header和menu */
.admin-layout .header,
.admin-layout .nav,
.admin-layout .menu {
    display: none;
}

/* 侧边栏折叠状态 */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .sidebar-header .user-info,
.sidebar.collapsed .sidebar-menu .menu-item span,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar.collapsed .main-content {
    margin-left: 70px;
}

.sidebar.collapsed .sidebar-menu .menu-item {
    text-align: center;
    padding: 15px;
}

.sidebar.collapsed .sidebar-menu .menu-item i {
    margin-right: 0;
    font-size: 18px;
}

/* 响应式设计 - 大屏优化 */
@media (min-width: 1200px) {
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    
    .sidebar {
        width: 220px;
    }
    
    .content-body {
        max-width: none;
        padding: 20px 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section {
        padding: 30px 35px;
        max-width: 1400px;
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .table th, 
    .table td {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    .form-row {
        gap: 20px;
    }
}



/* 移动端适配 - 已移除 */

/* 弹窗样式 - 确保居中显示 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    animation: modalFadeIn 0.3s ease-out;
    margin: 0 auto;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px 30px 15px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 25px 30px;
}

.modal-footer {
    padding: 15px 30px 25px 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 100px;
}

/* 充值选项样式 */
.recharge-options {
    margin-bottom: 20px;
}

.recharge-option {
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
}

.recharge-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.recharge-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.recharge-option input {
    display: none;
}

.amount-display {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.duration {
    font-size: 14px;
    opacity: 0.9;
}

/* 充值信息样式 */
.recharge-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.recharge-info p {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.recharge-info ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.recharge-info li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 充值弹窗样式增强 */
.recharge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.recharge-option {
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.recharge-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.recharge-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.recharge-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.amount-display {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.duration {
    font-size: 12px;
    opacity: 0.9;
    color: inherit;
}

/* 二维码显示样式 */
.qrcode-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 支付步骤样式 */
.payment-steps {
    margin: 25px 0;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step span {
    color: #333;
    font-size: 14px;
}

/* 支付状态显示 */
.payment-status {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
}

.status-checking {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 倒计时样式 */
.countdown {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.countdown span {
    font-weight: 600;
    color: #e74c3c;
    font-size: 16px;
}



/* 新布局样式 - 常驻显示所有内容区域 */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-grid .section {
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.content-grid .section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.content-grid .stats-section {
    order: 1;
}

.content-grid .recharges-section {
    order: 2;
}

.content-grid .logs-section {
    order: 3;
}

/* 四宫格统计布局 - 扁平化设计 */
.nine-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 30px;
    margin: 20px auto 0;
    width: 90%;
    max-width: none;
    justify-content: center;
}

.grid-item {
    background: linear-gradient(145deg, #ffffff 0%, #f7f8fc 100%);
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 20px 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.grid-item:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f0f2f7 100%);
    border-color: #d1d5e0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.grid-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.grid-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.2;
}

.grid-desc {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* 为不同的统计项添加不同的颜色主题 */
.grid-item:nth-child(1) {
    border-left: 4px solid #667eea;
}

.grid-item:nth-child(2) {
    border-left: 4px solid #f093fb;
}

.grid-item:nth-child(3) {
    border-left: 4px solid #f5576c;
}

.grid-item:nth-child(4) {
    border-left: 4px solid #4facfe;
}

.grid-item:nth-child(5) {
    border-left: 4px solid #43e97b;
}

.grid-item:nth-child(6) {
    border-left: 4px solid #fa709a;
}

.grid-item:nth-child(7) {
    border-left: 4px solid #ffecd2;
}

.grid-item:nth-child(8) {
    border-left: 4px solid #fcb69f;
}

.grid-item:nth-child(9) {
    border-left: 4px solid #a8edea;
}





/* 顶部多功能区样式 - 现代化设计 */
.top-functional-area {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
}

.functional-tabs {
    display: flex;
    gap: 0;
    max-width: none;
    margin: 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.functional-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 22px 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    border-bottom: 3px solid transparent;
    min-height: 80px;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.tab-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    color: #667eea;
    transform: translateY(-1px);
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border-bottom-color: #667eea;
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.tab-icon {
    font-size: 26px;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tab-btn:hover .tab-icon,
.tab-btn.active .tab-icon {
    opacity: 1;
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

.tab-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tab-btn:hover .tab-text,
.tab-btn.active .tab-text {
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 功能区工具条 */
.functional-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 16px;
}

.toolbar-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

/* 功能区内容样式 */
.functional-content {
    padding: 0;
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    padding: 30px 35px;
    background: white;
    margin-bottom: 0;
}

.content-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

/* 快速统计样式 */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

/* 数据表格样式 */
.data-table-section {
    margin-top: 30px;
}

.data-table-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.data-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e1e5e9;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    color: #333;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}





/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .tab-btn:hover {
        background: transparent;
        transform: none;
    }
    
    .tab-btn:active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        transform: scale(0.95);
    }
    
    .toolbar-btn:active {
        background: #667eea;
        color: white;
        transform: scale(0.95);
    }
    
    .tab-btn::before {
        display: none; /* 在触摸设备上禁用悬停效果 */
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .top-functional-area {
        background: white;
        border: 1px solid #333;
    }
    
    .tab-btn {
        border: 1px solid #ccc;
    }
    
    .tab-btn.active {
        border-color: #000;
        background: #f0f0f0;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .tab-btn,
    .toolbar-btn,
    .stat-item {
        transition: none;
    }
    
    .tab-btn::before {
        animation: none;
    }
}
}

/* 仪表盘布局样式 */
.stats-dashboard {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e8ebf0;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.dashboard-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dashboard-refresh {
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.dashboard-refresh:hover {
    transform: rotate(180deg);
    background: rgba(255,255,255,0.3);
}

.dashboard-content {
    padding: 25px;
}

.stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-panel {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-panel.full-width {
    flex: 1 0 100%;
}

.stat-icon {
    font-size: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 120px;
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dashboard-footer {
    padding: 15px 25px;
    background: rgba(102, 126, 234, 0.05);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
}

.update-time {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 0.5s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-animation {
    animation: spin 1s linear;
}



/* 顶部功能区样式 - 现代化设计 */
.top-functional-area {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
}

.page-header {
    padding: 40px 45px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03) 0%, 
        rgba(118, 75, 162, 0.03) 25%, 
        rgba(243, 147, 251, 0.03) 50%, 
        rgba(245, 87, 108, 0.03) 75%, 
        rgba(79, 172, 254, 0.03) 100%);
    z-index: -1;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 4px 8px rgba(102, 126, 234, 0.2); }
    100% { text-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); }
}

.page-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
}

.page-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: subtitleLine 2s ease-in-out infinite alternate;
}

@keyframes subtitleLine {
    0% { width: 60px; opacity: 0.7; }
    100% { width: 120px; opacity: 1; }
}

/* 五个功能框布局 - 现代化设计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px auto;
    padding: 0;
    position: relative;
    width: calc(100% - 40px);
    max-width: 1200px;
    box-sizing: border-box;
    justify-content: center;
    justify-items: center;
}

.stats-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
}

.stat-box {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    min-height: 200px;
    max-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border: 1px solid #e8ebf0;
    backdrop-filter: none;
    isolation: auto;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    height: 200px;
    min-width: 200px;
    max-width: 200px;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 0.9), 
        rgba(118, 75, 162, 0.9)
    );
    z-index: 1;
}

/* 为每个功能框添加独特的渐变主题 */
.stat-box:nth-child(1) {
    border-color: rgba(102, 126, 234, 0.25);
}

.stat-box:nth-child(1)::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
    animation: gradientShift1 5s ease-in-out infinite;
}

.stat-box:nth-child(2) {
    border-color: rgba(243, 147, 251, 0.25);
}

.stat-box:nth-child(2)::before {
    background: linear-gradient(180deg, #f093fb, #f5576c);
}

.stat-box:nth-child(3) {
    border-color: rgba(79, 172, 254, 0.25);
}

.stat-box:nth-child(3)::before {
    background: linear-gradient(180deg, #4facfe, #00f2fe);
}

.stat-box:nth-child(4) {
    border-color: rgba(67, 233, 123, 0.25);
}

.stat-box:nth-child(4)::before {
    background: linear-gradient(180deg, #43e97b, #38f9d7);
}

.stat-box:nth-child(5) {
    border-color: rgba(250, 112, 154, 0.25);
}

.stat-box:nth-child(5)::before {
    background: linear-gradient(180deg, #fa709a, #fee140);
}

@keyframes gradientShift {
    0% { 
        background-position: 0% 50%; 
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 50%; 
        opacity: 1;
    }
    100% { 
        background-position: 0% 50%; 
        opacity: 0.8;
    }
}

.stat-box:hover {
    background: #f8f9fa;
    border-bottom-color: rgba(102, 126, 234, 0.6);
    transform: translateX(5px);
}

.stat-box:active {
    background: #e9ecef;
    transform: translateX(3px);
}

@keyframes boxGlow {
    0%, 100% { 
        box-shadow: 
            0 12px 35px rgba(0,0,0,0.15),
            0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    50% { 
        box-shadow: 
            0 12px 35px rgba(0,0,0,0.2),
            0 0 0 3px rgba(102, 126, 234, 0.2);
    }
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 0;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: none;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.stat-box:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
    color: #667eea;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: scale(1.15) rotate(3deg) translateY(-5px);
    }
    50% { 
        transform: scale(1.2) rotate(6deg) translateY(-8px);
    }
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    overflow: visible;
    gap: 8px;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    overflow: visible;
    gap: 8px;
}

.stat-title {
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    line-height: 1.2;
}

.stat-box:hover .stat-title {
    color: #667eea;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-desc {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.stat-action {
    font-size: 12px;
    color: #667eea;
    font-weight: 700;
    margin-top: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.stat-box:hover .stat-action {
    opacity: 1;
    transform: translateY(0);
    background: rgba(102, 126, 234, 0.2);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-desc {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.stat-action {
    font-size: 13px;
    color: #667eea;
    font-weight: 700;
    margin-top: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(15px);
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.stat-box:hover .stat-action {
    opacity: 1;
    transform: translateY(0);
    background: rgba(102, 126, 234, 0.2);
}

/* 详细列表展示区域 - 标题与内容统一横向拉伸到视口宽度 */
.detail-section {
    background: white;
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* 添加阴影 */
    margin: 20px 0; /* 与其它模块保持统一上下间距 */
    overflow: hidden;
    border: 1px solid #e8ebf0;
    animation: fadeInUp 0.4s ease-out;
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* 让框架居中 */
    width: 100vw; /* 横向占满整个视口宽度 */
    max-width: 1400px; /* 防止超大屏过宽影响阅读 */
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 35px; /* 调整padding与内容区匹配 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.detail-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-detail {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-detail:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.detail-content {
    padding: 30px 35px; /* 与标题区保持一致的padding */
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden; /* 不允许内容左右滑动，框架宽度即内容宽度 */
    background: #fafbfc; /* 添加淡背景色增加层次感 */
}

/* 表格容器 - 列表方式显示，不换行，框架与内容宽度一致 */
.table-container {
    width: 100%;
    overflow-x: hidden; /* 由框架决定整体宽度，不显示横向滚动条 */
    margin: 0;
    padding: 0;
    border-radius: 6px; /* 添加圆角 */
    background: white; /* 白色背景 */
}

.table-container .table {
    width: 100%; /* 表格宽度跟随框架等比缩放 */
    table-layout: auto; /* 自动表格布局，根据内容调整列宽 */
    white-space: nowrap; /* 禁止文字换行，保持横向列表展示 */
    margin: 0; /* 移除外边距 */
}

.table-container .table th,
.table-container .table td {
    padding: 12px 15px; /* 减小内边距 */
    white-space: normal; /* 允许换行 */
    overflow: visible;
    text-overflow: clip;
    font-size: 14px; /* 恢复正常字体大小 */
    border-bottom: 1px solid #f0f0f0; /* 更柔和的分隔线 */
}

.table-container .table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    position: sticky; /* 固定表头 */
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.table-container .table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.table-container .table tbody tr:last-child td {
    border-bottom: none;
}

/* 移除百分比宽度限制，让列宽自动调整 */
.table-container .table th:nth-child(1),
.table-container .table td:nth-child(1),
.table-container .table th:nth-child(2),
.table-container .table td:nth-child(2),
.table-container .table th:nth-child(3),
.table-container .table td:nth-child(3),
.table-container .table th:nth-child(4),
.table-container .table td:nth-child(4),
.table-container .table th:nth-child(5),
.table-container .table td:nth-child(5),
.table-container .table th:nth-child(6),
.table-container .table td:nth-child(6),
.table-container .table th:nth-child(7),
.table-container .table td:nth-child(7),
.table-container .table th:nth-child(8),
.table-container .table td:nth-child(8),
.table-container .table th:nth-child(9),
.table-container .table td:nth-child(9) {
    width: auto; /* 自动宽度 */
}

/* 滚动条美化 - 统一样式 */
.detail-content::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.detail-content::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.detail-content::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.detail-content::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.detail-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e1e5e9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.detail-table td {
    padding: 12px;
    border-bottom: 1px solid #e8e8e8;
    color: #333;
}

.detail-table tbody tr:hover {
    background: #f8f9fa;
}

.detail-table tbody tr:last-child td {
    border-bottom: none;
}

.no-data {
    text-align: center;
    color: #95a5a6;
    padding: 40px;
    font-size: 16px;
}

/* 加载指示器样式 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 详细列表图标 */
.detail-icon {
    margin-right: 10px;
    font-size: 24px;
}

.detail-text {
    vertical-align: middle;
}

