﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #1a5f7a;
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .logo i {
        font-size: 2.5rem;
        color: #57cc99;
    }

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        padding: 8px 0;
        position: relative;
        transition: color 0.3s;
    }

        .nav-menu a:hover, .nav-menu a.active {
            color: #57cc99;
        }

            .nav-menu a.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 3px;
                background-color: #57cc99;
                border-radius: 2px;
            }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主要内容区 */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.page-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #1a5f7a;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

    .page-title i {
        margin-right: 15px;
        font-size: 1.8rem;
    }

    .page-title h2 {
        font-size: 1.8rem;
    }

.update-time {
    background-color: #f0f7ff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #1a5f7a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .update-time i {
        color: #57cc99;
    }

/* 表格样式 */
.table-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

    .data-table caption {
        caption-side: top;
        font-size: 1.4rem;
        font-weight: 600;
        color: #1a5f7a;
        text-align: left;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f7ff;
    }

    .data-table th {
        background-color: #f8f9fa;
        color: #1a5f7a;
        font-weight: 600;
        text-align: left;
        padding: 15px 12px;
        border-bottom: 2px solid #e0e0e0;
        position: sticky;
        top: 0;
    }

    .data-table td {
        padding: 14px 12px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
    }

    .data-table tr:hover {
        background-color: #f9fdfb;
    }

    .data-table .hidden-digits {
        color: #999;
        letter-spacing: 1px;
    }

.highlight-row {
    background-color: #f0f9f5 !important;
    font-weight: 500;
}

/* 表格操作区 */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.data-info {
    background-color: #f0f9f5;
    padding: 12px 20px;
    border-radius: 8px;
    color: #1a5f7a;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn {
    background-color: #1a5f7a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

    .download-btn:hover {
        background-color: #144a60;
    }

/* 数据来源样式 */
.data-source {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

    .data-source h3 {
        color: #1a5f7a;
        margin-bottom: 15px;
        font-size: 1.4rem;
    }

    .data-source p {
        margin-bottom: 15px;
        color: #333;
        line-height: 1.7;
    }

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f7ff;
    color: #1a5f7a;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 10px;
}

    .source-link:hover {
        background-color: #e1efff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #57cc99;
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

    .footer-section a:hover {
        color: #57cc99;
    }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}

    .copyright a {
        color: #57cc99;
        text-decoration: none;
    }

        .copyright a:hover {
            text-decoration: underline;
        }

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

    .breadcrumb a {
        color: #1a5f7a;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        margin: 0 8px;
    }

/* 移动端适配 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 20px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
    }

        .nav-menu.show {
            display: flex;
        }

        .nav-menu li {
            width: 100%;
        }

        .nav-menu a {
            display: block;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    .table-container {
        padding: 20px;
    }

    .page-title h2 {
        font-size: 1.5rem;
    }

    .table-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-table th, .data-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .table-container {
        padding: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

        .page-title i {
            margin-bottom: 5px;
        }
}

/* 打印样式 */
@media print {
    header, footer, .breadcrumb, .table-actions, .source-link {
        display: none;
    }

    .table-container {
        box-shadow: none;
        padding: 0;
    }

    body {
        background-color: white;
        color: black;
        font-size: 10pt;
        line-height: 1.4;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .data-table {
        min-width: auto;
    }

        .data-table th {
            background-color: #f0f0f0 !important;
            color: black !important;
            -webkit-print-color-adjust: exact;
        }
}
