: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; }
[hidden] { display: none !important; }
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; }
.nav-links { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.nav-links > a { padding: 9px 12px; border: 1px solid rgba(255,255,255,.25); color: #f8f7f0; text-decoration: none; font-size: 13px; white-space: nowrap; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { border-color: var(--lime); color: var(--lime); }
@media (max-width: 650px) { .nav { height: auto; min-height: 84px; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; } .nav-links { flex-wrap: wrap; gap: 6px; } .nav-links > a { padding: 7px 9px; font-size: 12px; } .nav-meta { width: 100%; font-size: 11px; } }
.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); }
.feature-nav-section { padding: 28px 0 32px; background: #e7e4d9; }
.feature-nav-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-nav-card { position: relative; width: 100%; min-height: 142px; padding: 22px 25px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #b9c5b9; background: var(--card); color: inherit; text-align: left; font-family: inherit; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.feature-nav-card:hover, .feature-nav-card:focus-visible { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 28px rgba(15,34,25,.11); }
.feature-nav-card.active { background: #dcebd8; border-color: #0c7b61; box-shadow: inset 0 -4px 0 #0c7b61; }
.feature-nav-card span { color: var(--green); font: 800 11px var(--sans); letter-spacing: .13em; }
.feature-nav-card strong { margin-top: 11px; font: 700 clamp(21px,2vw,31px) var(--serif); line-height: 1.2; }
.feature-nav-card small { margin-top: 8px; color: var(--muted); font-size: 13px; }
.embedded-views { width: 100%; background: var(--paper); }
.embedded-views iframe { display: block; width: 100%; min-height: 900px; border: 0; background: var(--paper); }
@media (max-width: 1000px) { .feature-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .feature-nav-grid { grid-template-columns: 1fr; } .feature-nav-card { min-height: 108px; } }
.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; padding: 48px 0 64px; }
.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); }
.trend-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; margin: 6px 0 24px; }
.trend-title { display: flex; align-items: baseline; gap: 18px; }
.trend-title .section-no { color: var(--lime); }
.trend-title h2 { white-space: nowrap; font-size: clamp(34px, 3.2vw, 44px); }
.trend-title-block > p { margin: 10px 0 0 34px; color: #8f9c95; font-size: 13px; }
.trend-current { min-width: 260px; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 18px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.trend-current span { grid-column: 1 / -1; color: #84918a; font-size: 11px; letter-spacing: .12em; }
.trend-current strong { margin-top: 7px; color: #c6d0ca; font-size: 13px; font-weight: 600; }
.trend-current b { color: #fff; font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.trend-current b.pos { color: var(--red); }
.trend-current b.neg { color: var(--green); }
.metric-panel { margin-bottom: 12px; padding: 16px 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); }
.control-label { display: block; margin-bottom: 11px; color: #84918a; font-size: 11px; letter-spacing: .12em; }
.metric-tabs { display: grid; grid-template-columns: 3.8fr 2.5fr 2.5fr 3.5fr 4fr; gap: 14px; }
.metric-group { min-width: 0; }
.metric-group-label { display: block; margin-bottom: 7px; color: #708078; font-size: 10px; letter-spacing: .12em; }
.metric-group-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.metric-group:first-child .metric-group-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-tab { min-width: 0; border: 1px solid rgba(255,255,255,.14); color: #b9c3bd; background: rgba(255,255,255,.02); padding: 9px 8px; border-radius: 4px; font: 12px var(--sans); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.metric-tab:hover { color: #fff; border-color: rgba(198,244,109,.45); }
.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: 12px 30px 18px; }
.chart { min-height: 340px; margin-top: 0; }
.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-sticky { position: sticky; top: 0; z-index: 20; background: #ebe7dd; border-top: 1px solid var(--ink); box-shadow: 0 8px 18px rgba(28,34,31,.11); }
.table-head-viewport { overflow: hidden; }
.table-top-scroll { overflow-x: auto; overflow-y: hidden; height: 17px; border-top: 1px solid #d4cfc3; background: #e2ded3; scrollbar-color: #7b817d #d7d2c7; }
.table-top-scroll > div { height: 1px; }
.table-shell { overflow-x: auto; background: var(--card); box-shadow: 0 18px 40px rgba(28,34,31,.05); scrollbar-color: #7b817d #e2ded3; }
.data-table, .table-head-table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 2200px; font-size: 13px; }
.data-table thead { visibility: collapse; height: 0; }
th, td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { background: #ebe7dd; color: #59615c; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; width: 82px; text-align: left; background: var(--card); }
th:first-child { z-index: 3; background: #ebe7dd; }
.table-head-table th:first-child { position: sticky; left: 0; }
tbody tr:hover td { background-color: #f7f4eb; }
td.missing { color: #9b948a; cursor: help; }
td .source-date { display: block; margin-top: 3px; color: #817e76; font-size: 10px; font-weight: 400; }
.trend-current strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.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; flex-wrap: wrap; gap: 14px 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: 1100px) {
  .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; }
  .trend-header { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .trend-current { width: 100%; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .metric-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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; }
  .trend-title-block > p { margin-left: 0; }
  .trend-current { min-width: 0; }
  .metric-panel { padding: 12px; }
  .metric-tabs { grid-template-columns: 1fr; }
  .chart-card { padding: 12px 8px 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; }
}
