/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部导航区样式 ==================== */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==================== 主内容区样式 ==================== */
.main-content {
    padding: 30px 0;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #3b82f6;
}

/* ==================== 数据速览卡片区样式 ==================== */
.data-overview {
    margin-bottom: 50px;
}

.data-overview .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.overview-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 25px 15px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.18);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.28);
    border-color: #3b82f6;
}

.overview-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 10px;
}

.overview-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.3;
}

.overview-card .card-unit {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

/* ==================== 快捷入口卡片区样式 ==================== */
.core-functions {
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 10px;
}

.card-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.card-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.card-btn:active {
    transform: scale(0.98);
}

/* ==================== 筛选卡片样式 ==================== */
.filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    min-width: 100px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid transparent;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ==================== 数据表格卡片样式 ==================== */
.table-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table thead {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.data-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: #f0f9ff;
    transform: scale(1.01);
}

/* 总计行不显示悬停效果 */
.data-table tbody tr.total-row:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: none;
}

.data-table td {
    padding: 14px 12px;
    font-size: 14px;
    color: #374151;
}

.data-table .highlight {
    color: #dc2626;
    font-weight: 600;
}

.data-table .moderate {
    color: #f59e0b;
    font-weight: 600;
}

.data-table .good {
    color: #059669;
    font-weight: 600;
}

/* 总计行样式 */
.data-table .total-row {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    font-weight: 600;
}

.data-table .total-cell {
    color: white;
    font-weight: 600;
}

/* ==================== 每日报名数据区样式 ==================== */
.daily-tables {
    display: block;
}

.daily-text-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.daily-text-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e5e7eb;
    text-align: center;
}

.daily-text-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.daily-text-line {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.8;
    padding: 8px 0;
}

.daily-text-label {
    color: #64748b;
    font-weight: 500;
    min-width: 140px;
    flex-shrink: 0;
}

.daily-text-value {
    color: #1f2937;
    font-weight: 500;
}

.daily-text-detail {
    color: #64748b;
    font-size: 14px;
    margin-left: 10px;
}

.highlight-red {
    color: #dc2626;
    font-weight: 700;
    font-size: 18px;
}

.highlight-orange {
    color: #ea580c;
    font-weight: 700;
    font-size: 18px;
}

.highlight-green {
    color: #16a34a;
    font-weight: 700;
    font-size: 18px;
}

.highlight-blue {
    color: #2563eb;
    font-weight: 700;
    font-size: 18px;
}

/* ==================== 底部信息区样式 ==================== */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-info {
    text-align: center;
}

.update-time {
    font-size: 14px;
    margin-bottom: 10px;
}

.update-time span {
    color: #60a5fa;
    font-weight: 500;
}

.footer-note {
    font-size: 13px;
    color: #6b7280;
}

/* ==================== 弹窗样式 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content-large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e40af;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #dc2626;
}

.modal-body {
    padding: 25px;
    text-align: center;
}

.modal-text {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 12px;
    line-height: 1.8;
}

.material-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.material-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.modal-btn-cancel:hover {
    background: #e5e7eb;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ==================== 加载提示样式 ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #4b5563;
    font-weight: 500;
}

/* ==================== 无数据提示样式 ==================== */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 15px;
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .filter-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        min-width: auto;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-content-large {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .section {
        margin-bottom: 30px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 6px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .header,
    .footer,
    .filter-card,
    .card-btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .data-table {
        page-break-inside: avoid;
    }
}
