/* ==================== 基础重置与变量 ==================== */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099ff;
    --accent-color: #00d9a3;
    --bg-dark: #0a0e27;
    --bg-card: rgba(16, 24, 64, 0.6);
    --border-color: rgba(0, 212, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(16, 24, 64, 0.4);
    --glass-border: rgba(0, 212, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== 加载动画 ==================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.truck-icon {
    font-size: 4rem;
    color: var(--primary-color);
    animation: truckMove 2s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes truckMove {
    0%, 100% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
}

.loader-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: progressLoad 2s ease-out forwards;
}

@keyframes progressLoad {
    to { width: 100%; }
}

/* ==================== 科技背景 ==================== */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

/* ==================== 头部导航 ==================== */
.header-section {
    padding: 20px;
    position: relative;
    z-index: 10;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
}

/* 科技时间组件 */
.header-left {
    flex: 0 0 28%;
}

.tech-time-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.time-display-main {
    text-align: center;
}

.digital-clock {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

.date-info-row {
    margin: 8px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.solar-date {
    margin-right: 15px;
}

.week-info {
    color: var(--accent-color);
}

.lunar-info-row {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.lunar-date, .ganzhi-info, .shichen-info {
    opacity: 0.8;
}

.shengxiao {
    color: #ffd700;
}

/* 标题 */
.header-center {
    flex: 0 0 44%;
    text-align: center;
}

.header-title {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-title i {
    font-size: 2rem;
    -webkit-text-fill-color: var(--primary-color);
}

/* 天气组件 */
.header-right {
    flex: 0 0 28%;
}

.weather-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    font-size: 2.5rem;
    color: #ffd700;
    animation: weatherFloat 3s ease-in-out infinite;
}

@keyframes weatherFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.weather-temp {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.weather-info {
    flex: 1;
}

.weather-city {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.weather-city i {
    color: #ff6b6b;
}

.weather-desc {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.weather-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
}

.weather-detail i {
    color: var(--accent-color);
}

.location-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ==================== 主容器布局 ==================== */
.main-container {
    display: flex;
    gap: 20px;
    padding: 0 20px 20px;
    max-width: 1920px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.left-column {
    flex: 0 0 28%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.center-column {
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    flex: 0 0 28%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==================== 玻璃卡片 ==================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.module-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.module-title i {
    font-size: 1.1rem;
}

/* ==================== TOP7 运输排名 ==================== */
.top7-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top7-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.top7-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.rank-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.truck-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.truck-2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #000; }
.truck-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.truck-4 { background: linear-gradient(135deg, #00d4ff, #0099ff); color: #fff; }
.truck-5 { background: linear-gradient(135deg, #00d9a3, #00b894); color: #fff; }
.truck-6 { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); color: #fff; }
.truck-7 { background: linear-gradient(135deg, #a29bfe, #6c5ce7); color: #fff; }

.rank-content {
    flex: 1;
}

.rank-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.rank-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rank-name a:hover {
    color: var(--primary-color);
}

.rank-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.transport-label {
    color: var(--text-secondary);
}

.rank-value {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.trend-text {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.trend-text i {
    margin-right: 3px;
}

/* ==================== 合作车辆 ==================== */
.cooperation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.coop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.coop-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.02);
}

.coop-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.v4-2 { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.v6-8 { background: linear-gradient(135deg, #00d9a3, #00b894); }
.v9-6 { background: linear-gradient(135deg, #00d4ff, #0099ff); }
.v13 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }

.coop-content {
    flex: 1;
}

.coop-name {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.coop-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.coop-label {
    color: var(--text-secondary);
}

.coop-value {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

.coop-trend {
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* ==================== 中央球体监控 ==================== */
.center-main-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-1 {
    min-height: 300px;
}

.center-sphere {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sphere-container {
    position: relative;
    width: 250px;
    height: 250px;
}

.sphere {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.8), rgba(0, 100, 200, 0.4));
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.6),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spherePulse 3s ease-in-out infinite;
}

@keyframes spherePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.sphere-inner {
    text-align: center;
    color: #fff;
}

.sphere-title {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.sphere-value {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 240px; height: 240px; animation: orbitRotate 10s linear infinite; }
.orbit-2 { width: 280px; height: 280px; animation: orbitRotate 15s linear infinite reverse; }
.orbit-3 { width: 320px; height: 320px; animation: orbitRotate 20s linear infinite; }
.orbit-4 { width: 360px; height: 360px; animation: orbitRotate 25s linear infinite reverse; }

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.satellite {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==================== 图表容器 ==================== */
.chart-container {
    width: 100%;
    height: 250px;
    margin-top: 10px;
}

.trend-chart {
    height: 300px;
}

/* ==================== 月度运输数据 ==================== */
.section-2 {
    flex: 2;
}

.data-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.year-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.year-card {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.year-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: #000;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.year-2025 .year-badge { background: #c0c0c0; color: #000; }
.year-2026 .year-badge { background: var(--accent-color); color: #000; }

.data-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.data-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.data-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

.year-connector {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.month-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-card {
    flex: 1;
    padding: 12px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.month-card:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.month-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.month-connector {
    color: var(--primary-color);
    font-size: 0.8rem;
    opacity: 0.6;
}

.big-emoji {
    font-size: 1.2rem;
}

.big-number {
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== 年份运输数据 ==================== */
.year-data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.year-data-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.year-data-card:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.ydc-1 { border-left-color: #ff6b6b; }
.ydc-2 { border-left-color: #00d9a3; }
.ydc-3 { border-left-color: #ffd700; }
.ydc-4 { border-left-color: #00d4ff; }
.ydc-5 { border-left-color: #a29bfe; }
.ydc-6 { border-left-color: #fd79a8; }
.ydc-7 { border-left-color: #e17055; }

.year-data-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.year-data-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.year-data-icon {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* ==================== 底部 ==================== */
footer {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-calendar {
    text-align: left;
}

.footer-solar {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-lunar-week {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
}

.brand-display {
    text-align: center;
}

.brand-logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1400px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-column,
    .center-column,
    .right-column {
        flex: 1;
        width: 100%;
    }
    
    .header-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-left,
    .header-center,
    .header-right {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .months-grid {
        grid-template-columns: 1fr;
    }
    
    .cooperation-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .digital-clock {
        font-size: 1.8rem;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
}

/* ==================== 动画类 ==================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== 数字滚动动画 ==================== */
.number-roll {
    display: inline-block;
    animation: numberRoll 0.5s ease-out;
}

@keyframes numberRoll {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}