* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: "Microsoft YaHei", sans-serif;
    background: radial-gradient(ellipse at 50% -20%, #0e3a66 0%, #071a30 55%, #040d1a 100%);
    color: #d9edff; }

header { display: flex; align-items: center; justify-content: space-between;
    padding: 2.4vh 3vw 1vh; border-bottom: 1px solid rgba(100, 190, 255, .2); }
header h1 { font-size: clamp(20px, 2.1vw, 34px); letter-spacing: 8px; color: #9fdcff; }
.clock { font-size: clamp(14px, 1.3vw, 20px); color: #7fb0d8; letter-spacing: 2px; }

/* KPI 卡 */
#kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2vw; padding: 2.4vh 3vw 0; }
.kpi {
    background: linear-gradient(160deg, rgba(20, 70, 120, .5), rgba(10, 35, 65, .5));
    border: 1px solid rgba(100, 190, 255, .25);
    border-radius: 12px; padding: 2vh 1.4vw;
    position: relative; overflow: hidden;
}
.kpi::after { content: ''; position: absolute; right: -20px; top: -20px;
    width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 200, 255, .18), transparent 70%); }
.kpi .label { color: #7fb0d8; font-size: clamp(12px, 1vw, 16px); letter-spacing: 2px; }
.kpi .value {
    font-size: clamp(26px, 2.8vw, 46px); font-weight: 800; margin-top: .8vh;
    color: #6fe3ff; font-family: "Consolas", monospace;
}
.kpi .delta { font-size: clamp(11px, .9vw, 14px); margin-top: .6vh; }
.kpi .delta.up { color: #7fe0b0; }
.kpi .delta.down { color: #ff9d7a; }

/* 图表区 */
#charts {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.2vw; padding: 2.4vh 3vw;
    height: 52vh;
}
.chart-card {
    background: rgba(12, 40, 72, .45);
    border: 1px solid rgba(100, 190, 255, .2);
    border-radius: 12px; padding: 1.8vh 1.2vw;
    display: flex; flex-direction: column;
}
.chart-card h3 {
    font-size: clamp(13px, 1.1vw, 18px); color: #9fdcff;
    letter-spacing: 2px; margin-bottom: 1.2vh; font-weight: 600;
}
.chart-card canvas { flex: 1; width: 100%; }

/* 底部滚动条 */
#ticker {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 6.5vh; line-height: 6.5vh;
    background: rgba(8, 24, 44, .85);
    border-top: 1px solid rgba(100, 190, 255, .2);
    overflow: hidden; white-space: nowrap;
    font-size: clamp(13px, 1.15vw, 18px); color: #9fc9ea;
}
#ticker .inner { display: inline-block; padding-left: 100%; animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
