:root {
  --ink: #101916;
  --paper: #f3f0e8;
  --card: #fffdf8;
  --muted: #6f7772;
  --line: rgba(16, 25, 22, .14);
  --green: #0c7b61;
  --red: #d64d3f;
  --lime: #c6f46d;
  --night: #0e1916;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
.wrap { width: min(1420px, calc(100% - 48px)); margin: 0 auto; }
.hero { background: var(--night); color: #f8f7f0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(198,244,109,.22); border-radius: 50%; right: -180px; bottom: -300px; box-shadow: 0 0 0 80px rgba(198,244,109,.035), 0 0 0 160px rgba(198,244,109,.02); }
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: .12em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--night); background: var(--lime); font-family: var(--serif); }
.nav-meta { color: #c7cfca; font-size: 13px; letter-spacing: .08em; }
.live-dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(198,244,109,.12); }
.hero-grid { display: grid; grid-template-columns: 1.5fr .65fr; gap: 80px; align-items: end; padding-top: 84px; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .22em; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(56px, 8vw, 118px); font-weight: 700; line-height: .92; letter-spacing: -.06em; }
h1 span { color: var(--lime); }
.lede { max-width: 680px; margin: 34px 0 0; color: #bdc7c1; font-size: 17px; line-height: 1.85; }
.hero-note { border-left: 1px solid rgba(255,255,255,.18); padding: 24px 0 24px 32px; position: relative; z-index: 1; }
.hero-note p { margin: 0 0 10px; color: #a9b5ae; font-size: 12px; letter-spacing: .12em; }
.hero-note strong { display: block; font-size: 26px; line-height: 1.4; }
.hero-note .muted { margin: 14px 0 0; line-height: 1.6; letter-spacing: 0; }
main section { padding: 76px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading > div:first-child { display: flex; align-items: baseline; gap: 18px; }
.section-no { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .18em; margin: 0; }
h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); margin: 0; letter-spacing: -.04em; }
.section-date, .hint { color: var(--muted); margin: 0; font-size: 13px; }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.signal { min-height: 174px; padding: 24px; background: rgba(255,255,255,.32); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-label { color: var(--muted); font-size: 13px; }
.signal-value { margin-top: 20px; font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); font-variant-numeric: tabular-nums; }
.signal-unit { margin-left: 5px; color: var(--muted); font: 12px var(--sans); }
.signal-sub { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pos { color: var(--red); }
.neg { color: var(--green); }
.chart-section { background: var(--night); color: #f8f7f0; }
.range-summary { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0 18px; color: #aeb9b3; font-size: 13px; }
.range-summary strong { color: #f8f7f0; }
.range-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.range-presets, .custom-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range-controls button, .custom-range input { border: 1px solid rgba(255,255,255,.24); color: #d6ddd9; background: transparent; padding: 9px 13px; border-radius: 6px; font: 13px var(--sans); }
.range-controls button { cursor: pointer; }
.range-controls button[aria-pressed="true"], #applyCustom { background: var(--lime); color: var(--night); border-color: var(--lime); font-weight: 800; }
.custom-range label { color: #aeb9b3; font-size: 12px; }
.custom-range input { margin-left: 6px; color-scheme: dark; }
.section-heading.light .section-no { color: var(--lime); }
.metric-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.metric-tab { border: 1px solid rgba(255,255,255,.2); color: #c8d0cc; background: transparent; padding: 8px 12px; border-radius: 99px; font: 12px var(--sans); cursor: pointer; }
.metric-tab[aria-selected="true"] { background: var(--lime); color: var(--night); border-color: var(--lime); font-weight: 800; }
.chart-card { background: #14221e; border: 1px solid rgba(255,255,255,.12); padding: 28px 30px 18px; }
.chart-kicker { display: flex; align-items: baseline; gap: 16px; color: #aeb9b3; font-size: 13px; }
.chart-kicker strong { color: #fff; font-family: var(--serif); font-size: 28px; }
.chart { min-height: 340px; margin-top: 18px; }
.chart svg { width: 100%; height: 340px; display: block; overflow: visible; }
.chart text { font-family: var(--sans); fill: #91a099; font-size: 11px; }
.chart-legend { display: flex; gap: 20px; color: #89978f; font-size: 11px; }
.chart-legend i { display: inline-block; width: 20px; vertical-align: middle; margin-right: 6px; }
.legend-line { border-top: 2px solid var(--lime); }
.legend-zero { border-top: 1px dashed #73817a; }
.table-shell { overflow: auto; background: var(--card); border-top: 1px solid var(--ink); box-shadow: 0 18px 40px rgba(28,34,31,.05); }
table { border-collapse: collapse; width: 100%; min-width: 1420px; font-size: 13px; }
th, td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; z-index: 2; background: #ebe7dd; color: #59615c; font-size: 11px; font-weight: 700; }
th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--card); }
th:first-child { z-index: 3; background: #ebe7dd; }
tbody tr:hover td { background-color: #f7f4eb; }
td.missing { color: #9b948a; cursor: help; }
.definitions { background: #e8e4d9; }
.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.definition { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.definition:nth-child(3n+2), .definition:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--line); }
.definition b { display: block; margin-bottom: 8px; }
.definition p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.source-row { display: flex; gap: 26px; margin-top: 28px; font-size: 13px; font-weight: 800; }
.update-section { background: var(--card); }
.update-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.update-grid article { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.update-grid b { font-family: var(--serif); font-size: 25px; }
.update-grid p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.footer { padding: 35px 0 50px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.footer strong { color: var(--ink); font-size: 20px; letter-spacing: .12em; }
@media (max-width: 900px) {
  .wrap { width: min(100% - 28px, 760px); }
  .hero { padding-bottom: 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; padding-top: 60px; }
  .hero-note { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .definition-grid { grid-template-columns: 1fr 1fr; }
  .definition:nth-child(n) { padding: 20px; border-left: 0; }
  .definition:nth-child(even) { border-left: 1px solid var(--line); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .metric-tabs { justify-content: flex-start; }
  .range-controls { align-items: flex-start; flex-direction: column; }
  .range-summary { flex-direction: column; gap: 6px; }
  .update-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { height: 68px; }
  .nav-meta { font-size: 11px; }
  h1 { font-size: 58px; }
  .lede { font-size: 15px; }
  main section { padding: 56px 0; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal { min-height: 130px; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition:nth-child(n) { border-left: 0; padding-left: 0; }
  .chart-card { padding: 20px 12px 14px; }
  .chart, .chart svg { min-height: 290px; height: 290px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .update-grid { grid-template-columns: 1fr; }
}
