:root {
  --bg: #0b1020;
  --bg-2: #12182c;
  --card: rgba(20, 28, 52, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #eef2ff;
  --muted: #94a3b8;
  --gold: #d4af57;
  --classic: #e0b15a;
  --adj: #4ecdc4;
  --rate: #7aa2ff;
  --good: #86efac;
  --warn: #fcd34d;
  --bad: #fb7185;
  --fair: #7dd3fc;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", Inter, system-ui, sans-serif;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(160deg, #d4af57, #8b6914);
  display: grid; place-items: center; color: #111; font-size: 14px; font-weight: 800;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px;
}
.nav-links a.active, .nav-links a:hover { background: #1c2440; color: var(--text); }
.hero { text-align: center; padding: 56px 0 28px; }
.kicker {
  color: var(--gold); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hero h1 {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: clamp(36px, 6vw, 64px); margin: 12px 0 10px; font-weight: 800;
}
.sub { color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.big-card {
  margin: 36px auto 0; max-width: 460px; background: var(--card);
  border: 1px solid var(--line); border-radius: 28px; padding: 28px 24px;
}
.big-card .label { color: var(--muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.big-num {
  font-family: Georgia, "Songti SC", serif; font-size: 84px; line-height: 1; margin: 8px 0;
  font-weight: 800;
}
.big-num span { font-size: 32px; color: var(--gold); }
.adj-line { color: var(--muted); font-size: 13px; }
.adj-line b { color: var(--adj); font-weight: 600; }
.zone {
  display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; border: 1px solid var(--line);
}
.zone.bad { color: var(--bad); border-color: rgba(251,113,133,.35); }
.zone.warn { color: var(--warn); border-color: rgba(252,211,77,.35); }
.zone.fair { color: var(--fair); border-color: rgba(125,211,252,.35); }
.zone.good { color: var(--good); border-color: rgba(134,239,172,.35); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.card .label { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.card .value { font-family: Georgia, serif; font-size: 28px; margin-top: 8px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  margin-bottom: 28px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel h2 { font-family: Georgia, "Songti SC", serif; font-size: 22px; margin: 0; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #0e1428; }
.seg button, .ghost {
  border: 0; background: transparent; color: var(--muted); padding: 7px 10px; border-radius: 8px;
  cursor: pointer; font-size: 13px;
}
.seg button.active, .ghost.active { background: #243056; color: var(--text); }
.ghost { border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 12px; line-height: 1.6; flex: 1; min-width: 220px; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; margin: 10px 0 6px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.chart-box { height: 420px; position: relative; }
.peaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.peak { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #10172c; }
.peak .y { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }
.peak .v { color: var(--gold); font-size: 26px; font-family: Georgia, serif; margin: 4px 0; }
.peak .n { color: var(--muted); font-size: 12px; line-height: 1.5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 60px; }
.split h3 { font-family: Georgia, "Songti SC", serif; font-size: 24px; margin: 0 0 12px; }
.zones li {
  display: flex; justify-content: space-between; border-bottom: 1px solid var(--line);
  padding: 8px 0; font-size: 14px;
}
.zones li:last-child { border: 0; }
.article { max-width: 760px; margin: 40px auto 80px; line-height: 1.85; color: #dbe3f5; }
.article h1 { font-family: Georgia, "Songti SC", serif; font-size: 40px; }
.article h2 { font-family: Georgia, "Songti SC", serif; margin-top: 32px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; background: var(--card);
}
.faq summary { cursor: pointer; font-size: 17px; }
.faq p { color: var(--muted); margin: 10px 0 4px; }
.foot {
  border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 12px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.foot a { color: var(--gold); }
.err { color: var(--bad); padding: 40px 0; text-align: center; }
@media (max-width: 800px) {
  .cards, .peaks, .split { grid-template-columns: 1fr; }
  .big-num { font-size: 64px; }
  .chart-box { height: 300px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 10px; }
}
