:root {
  --ink: #1b1f24;
  --muted: #5d6670;
  --rule: #e3e1dc;
  --paper: #fbfaf7;
  --card: #ffffff;
  --accent: #b3261e;      /* 主色：中国红偏暗 */
  --c1: #b3261e;
  --c2: #1f5f8b;
  --c3: #c8902a;
  --neg: #6b7a86;
  --font: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.masthead { border-bottom: 3px solid var(--ink); background: var(--card); }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 10px; }
.brand { font-family: var(--font); font-size: 24px; font-weight: 700; letter-spacing: .08em; display: flex; gap: 22px; flex-wrap: wrap; }
.brand a { color: #aab1b8; text-decoration: none; }
.brand a:hover { color: var(--ink); }
.brand a.on { color: var(--ink); }
nav { display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
nav a.on { border-color: var(--accent); color: var(--accent); }
nav .soon { color: #aab1b8; cursor: default; }

.lede h1 { font-family: var(--font); font-size: 34px; margin: 28px 0 6px; }
.summary { font-family: var(--font); font-size: 18px; color: #2c3238; margin: 0 0 18px; }
.summary b { color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.tile { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 12px 14px; }
.tile .k { font-size: 13px; color: var(--muted); }
.tile .v { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 4px 0; }
.tile .v small { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.tile .d { font-size: 13px; color: var(--muted); }
.up { color: var(--c1); } .down { color: var(--c2); }

.panel { background: var(--card); border: 1px solid var(--rule); padding: 16px 18px 12px; margin-bottom: 18px; }
.panel h2 { font-family: var(--font); font-size: 19px; margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.note { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two .panel { margin-bottom: 18px; }

.range button { font: inherit; font-size: 13px; border: 1px solid var(--rule); background: #fff; padding: 2px 10px; cursor: pointer; color: var(--muted); }
.range button + button { margin-left: -1px; }
.range button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.chart .grid line { stroke: #eceae5; }
.chart .zero { stroke: #9aa2a9; }
.chart .hover-line { stroke: #9aa2a9; stroke-dasharray: 3 3; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 4px; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 10px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
tbody tr:first-child td { font-weight: 600; }

.foot { font-size: 12.5px; color: var(--muted); padding-top: 4px; padding-bottom: 40px; }
.tip { position: fixed; pointer-events: none; background: rgba(27,31,36,.94); color: #fff; font-size: 12.5px; padding: 6px 9px; border-radius: 3px; z-index: 9; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tip i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
  .lede h1 { font-size: 28px; }
}

.section-title { font-family: var(--font); font-size: 22px; margin: 26px 0 10px; }
