/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Poppins', 'Roboto', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(145deg, #e0f7e0 0%, #a8e0b0 50%, #6fbf8f 100%);
    background-size: 300% 300%;
    animation: waveBG 16s ease infinite;
    position: relative;
    color: #023b1f;
    line-height: 1.5;
    padding-bottom: 20px;
}
@keyframes waveBG {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(200,255,180,0.35) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(120,220,140,0.3) 0%, transparent 45%),
                repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
    z-index: 0;
}

/* 磨砂玻璃效果 */
.glass-card, .glass-nav {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 200, 120, 0.4);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 40, 0, 0.2), inset 0 1px 4px rgba(255,255,240,0.8);
    transition: all 0.2s ease;
}
.glass-nav {
    background: rgba(200, 240, 200, 0.4);
    backdrop-filter: blur(16px);
    border-radius: 60px;
    margin: 20px 30px;
    padding: 10px 30px;
    border-bottom: 2px solid #a5d6a5;
}

/* 导航 */
.navbar {
    position: sticky;
    top: 10px;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0a4d2e, #a8e6b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-menu li a {
    text-decoration: none;
    color: #024d1f;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 10px 16px;
    border-radius: 40px;
    transition: 0.3s;
    background: rgba(255,255,240,0.2);
}
.nav-menu li a:hover, .nav-menu li a.active {
    background: #baffba;
    color: #005a1e;
    box-shadow: 0 0 20px #b0ffb0;
}
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #0f4f1f;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 10px auto 30px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* 状态条 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    margin-bottom: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #003d14;
    text-shadow: 0 2px 5px rgba(255,255,200,0.6);
    letter-spacing: 1px;
}
.live-clock, .countdown {
    background: rgba(0,50,10,0.15);
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid #9fdf9f;
}

/* 表格区块 */
.data-section {
    padding: 25px;
    margin-bottom: 35px;
}
.data-section h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.badge {
    background: #29b66b;
    color: white;
    padding: 6px 16px;
    border-radius: 60px;
    font-size: 0.9rem;
    box-shadow: 0 0 15px #a0f0a0;
}
.table-responsive {
    overflow-x: auto;
    border-radius: 30px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(4px);
}
th {
    background: #408f60c0;
    color: white;
    padding: 18px 8px;
    font-size: 1.1rem;
    font-weight: 600;
}
td {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(80, 160, 80, 0.3);
    color: #001f0a;
    font-weight: 500;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: #d4f5d4b0;
}

/* 图表 */
.chart-section {
    padding: 25px;
    margin-bottom: 35px;
}
#trendChart {
    background: rgba(255,255,240,0.2);
    border-radius: 40px;
    padding: 15px;
}

/* 信息卡片网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 20px 0 30px;
}
.info-card {
    padding: 25px 20px;
    transition: transform 0.2s;
}
.info-card:hover {
    transform: translateY(-8px);
    background: rgba(210, 245, 210, 0.45);
}
.info-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    border-left: 8px solid #5fd15f;
    padding-left: 15px;
}

/* 弹窗modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,20,0,0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    max-width: 450px;
    width: 90%;
    padding: 30px;
    text-align: center;
    background: rgba(220,255,220,0.9);
    border: 3px solid #b1ffb1;
}
.close-btn {
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #2b5e2b;
}
.btn-neon {
    background: transparent;
    border: 2px solid #27ae60;
    padding: 12px 36px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #116f3a;
    margin-top: 20px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 0 15px #adffad;
}
.btn-neon:hover {
    background: #27ae60;
    color: white;
    box-shadow: 0 0 40px #8eff8e;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 18px;
    margin: 30px 30px 10px;
    border-radius: 60px;
    font-weight: 500;
    color: #0a411a;
}
.footer a {
    color: #125d2a;
    text-decoration: underline wavy #8bc34a;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 30px;
        background: rgba(210,255,210,0.9);
        backdrop-filter: blur(20px);
        border-radius: 30px;
        padding: 25px;
        gap: 15px;
    }
    .nav-menu.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .status-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    .logo {
        font-size: 1.5rem;
    }
}