/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0f0f;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== 流星效果 ===== */
.meteor-shower {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.meteor-simple {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #ffffff, rgba(0, 188, 212, 0.6), transparent);
    border-radius: 999px;
    filter: drop-shadow(0 0 8px #00bcd4);
    transform: rotate(225deg);
    animation: meteorFall 2.5s ease-out forwards;
}

@keyframes meteorFall {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(225deg);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-500px) translateY(500px) rotate(225deg);
    }
}

/* ===== 导航栏 ===== */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background-color: rgba(15,15,15,0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.nav-logo {
    position: absolute;
    left: 60px;
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, #00bcd4, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.nav-item {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-item:hover {
    color: #00bcd4;
}

.nav-item.active {
    color: #ffffff;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #00bcd4, #9c27b0);
    border-radius: 3px;
}

.nav-right {
    width: 80px;
    visibility: hidden;
}

/* ===== 标题区域 ===== */
.hero-section {
    padding: 70px 0 45px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    position: relative;
    z-index: 2;
}

.title-main {
    display: block;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #00bcd4, #9c27b0, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(0,188,212,0.2);
}

.title-main:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 30px rgba(0,188,212,0.4));
}

.title-sub {
    display: block;
    font-size: 20px;
    color: #888;
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    padding: 0 30px;
}

.title-sub::before,
.title-sub::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00bcd4, transparent);
}

.title-sub::before {
    left: -20px;
}

.title-sub::after {
    right: -20px;
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0,188,212,0.15), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ===== 指标卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 45px 0;
}

.stat-card {
    background: linear-gradient(145deg, rgba(25,25,30,0.8), rgba(18,18,22,0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 28px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #00bcd4;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00bcd4;
    box-shadow: 0 20px 40px -10px rgba(0, 188, 212, 0.3);
    background: linear-gradient(145deg, rgba(30,30,35,0.9), rgba(22,22,26,0.95));
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-label {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,188,212,0.3);
}

.stat-unit {
    font-size: 14px;
    color: #888;
    margin-left: 5px;
}

/* ===== 优化后的筛选栏 ===== */
.filter-bar {
    background: rgba(22, 22, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 188, 212, 0.15);
    border-radius: 60px;
    padding: 12px 28px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
}
.filter-bar:hover {
    border-color: rgba(0, 188, 212, 0.25);
    box-shadow: 0 18px 40px -15px rgba(0, 188, 212, 0.25);
    background: rgba(26, 26, 32, 0.8);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item label {
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.filter-item select,
.filter-item input {
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.filter-item select:hover,
.filter-item input:hover {
    border-color: #00bcd4;
    background: rgba(15, 15, 18, 0.8);
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0,188,212,0.2);
    background: rgba(20, 20, 25, 0.9);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -8px rgba(0,188,212,0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -8px rgba(0,188,212,0.5);
    background: linear-gradient(135deg, #00c4de, #00a7b7);
}

.btn-secondary {
    background: rgba(40, 40, 45, 0.8);
    color: #00bcd4;
    border: 1px solid rgba(0, 188, 212, 0.4);
    padding: 11px 25px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: #00bcd4;
    color: #121212;
    border-color: #00bcd4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px #00bcd4;
}

.btn-compare {
    background: transparent;
    color: #00bcd4;
    border: 1px solid #00bcd4;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-compare:hover {
    background: #00bcd4;
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px #00bcd4;
}

/* ===== 优化后的图表卡片 ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 45px 0;
}

.chart-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 24px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00bcd4, #9c27b0, #ff9800, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.chart-card:hover {
    border-color: rgba(0, 188, 212, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 25px 45px -15px rgba(0, 188, 212, 0.25);
    background: rgba(26, 26, 32, 0.7);
}

.chart-card:hover::before {
    opacity: 1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chart-header h3 {
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 12px;
}

.chart-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(to bottom, #00bcd4, #9c27b0);
    border-radius: 3px;
}

.chart-select {
    background: rgba(40, 40, 45, 0.8);
    color: #00bcd4;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.chart-select:hover {
    border-color: #00bcd4;
    background: rgba(50, 50, 55, 0.9);
}

.chart {
    width: 100%;
    height: 300px;
}

/* ===== 优化后的统计卡片样式 ===== */
.stats-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

.stat-mini-item {
    text-align: center;
    padding: 14px 8px;
    background: rgba(25,25,30,0.7);
    border-radius: 16px;
    border-left: 3px solid;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 12px -8px rgba(0, 0, 0, 0.4);
}

.stat-mini-item:hover {
    transform: translateY(-4px);
    background: rgba(35,35,42,0.8);
    box-shadow: 0 12px 20px -10px rgba(0, 188, 212, 0.2);
}

.stat-mini-item:nth-child(1) { border-left-color: #00bcd4; }
.stat-mini-item:nth-child(2) { border-left-color: #4caf50; }
.stat-mini-item:nth-child(3) { border-left-color: #ff9800; }
.stat-mini-item:nth-child(4) { border-left-color: #9c27b0; }

.stat-mini-label {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.stat-mini-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
    opacity: 0.6;
}

.stat-mini-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.stat-mini-item:nth-child(1) .stat-mini-value { color: #00bcd4; }
.stat-mini-item:nth-child(2) .stat-mini-value { color: #4caf50; }
.stat-mini-item:nth-child(3) .stat-mini-value { color: #ff9800; }
.stat-mini-item:nth-child(4) .stat-mini-value { color: #9c27b0; }

/* ===== 对比模态框 ===== */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background-color: #15151a;
    margin: 50px auto;
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 36px;
    width: 95%;
    max-width: 1600px;
    box-shadow: 0 30px 60px -20px rgba(0,188,212,0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .title-main { font-size: 48px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid { grid-template-columns: 1fr; }
    .filter-bar { border-radius: 30px; }
    .filter-group { gap: 15px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-section { padding: 50px 0 30px; }
    .title-main { font-size: 36px; }
    .title-sub { 
        font-size: 16px; 
        letter-spacing: 2px;
    }
    .filter-bar { 
        border-radius: 24px; 
        padding: 18px;
    }
    .filter-group { 
        flex-direction: column; 
        width: 100%; 
        gap: 12px;
    }
    .filter-item { 
        width: 100%; 
        justify-content: space-between;
    }
    .stats-mini {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-mini-value { font-size: 18px; }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1f;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00bcd4;
}

/* ===== 工具类 ===== */
.text-gradient {
    background: linear-gradient(135deg, #00bcd4, #9c27b0, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: 0 0 30px rgba(0,188,212,0.3);
}

.blur-bg {
    backdrop-filter: blur(10px);
    background: rgba(20,20,25,0.6);
}