:root {
  --paper: #f3f0e8;
  --ink: #12261f;
  --muted: #69736f;
  --line: #cbc9bf;
  --card: #fbfaf6;
  --green: #164d3d;
  --mint: #ccebdd;
  --acid: #d8ef7a;
  --orange: #df6e3b;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --sans: "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }

.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5vw; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--green); border-radius: 50%; font-family: var(--mono); font-weight: 500; }
.brand-mark i { position: absolute; width: 8px; height: 8px; right: -2px; bottom: 3px; background: var(--orange); border: 2px solid var(--paper); border-radius: 50%; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 15px; letter-spacing: .06em; }
.brand small { font: 10px/1 var(--mono); color: var(--muted); letter-spacing: .13em; }
.header-side { display: flex; align-items: center; gap: 24px; }
.source-state { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #57a174; box-shadow: 0 0 0 5px rgba(87,161,116,.12); }
.source-state.stale .pulse-dot { background: var(--orange); box-shadow: 0 0 0 5px rgba(223,110,59,.12); }
.text-button { border: 0; background: none; padding: 7px 0; font-size: 12px; color: var(--muted); cursor: pointer; border-bottom: 1px solid currentColor; }

main { width: min(1380px, 91vw); margin: 0 auto; }
.hero { min-height: 430px; padding: 74px 5.5vw 58px; display: flex; align-items: center; justify-content: space-between; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; font: 500 11px/1.3 var(--mono); color: var(--green); letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(52px, 7vw, 102px); font-weight: 500; line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-note { max-width: 610px; margin: 34px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero-stamp { width: 190px; height: 190px; flex: 0 0 auto; margin-left: 48px; padding: 20px; border: 1px solid var(--green); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(4deg); }
.hero-stamp span, .hero-stamp small { font: 9px var(--mono); letter-spacing: .13em; }
.hero-stamp strong { margin: 8px 0; font-size: 30px; line-height: 1.05; font-weight: 600; }

.view-toolbar { min-height: 92px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tabs { display: flex; gap: 5px; padding: 5px; background: rgba(18,38,31,.05); border-radius: 30px; }
.tab { min-width: 72px; border: 0; background: transparent; padding: 10px 17px; border-radius: 25px; color: var(--muted); cursor: pointer; font: 12px var(--mono); transition: .2s ease; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--green); color: #fff; box-shadow: 0 5px 14px rgba(22,77,61,.18); }
.date-controls { display: flex; align-items: center; gap: 8px; }
.date-controls[hidden] { display: none; }
.square-button { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; }
.square-button:disabled { opacity: .25; cursor: default; }
.date-label { min-width: 185px; height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: var(--card); border-radius: 22px; font-size: 13px; }
.date-label input { width: 20px; border: 0; background: transparent; color: transparent; cursor: pointer; }
.page-status { min-height: 22px; margin: 18px 0 -4px; font: 11px var(--mono); color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.metric { min-height: 174px; padding: 30px; background: var(--card); display: flex; flex-direction: column; }
.metric.primary { background: var(--green); color: #fff; }
.metric > span { font-size: 13px; color: var(--muted); }
.metric.primary > span, .metric.primary small { color: rgba(255,255,255,.68); }
.metric strong { margin-top: auto; font: 500 clamp(32px, 3vw, 48px)/1 var(--mono); letter-spacing: -.05em; }
.metric small { margin-top: 10px; color: var(--muted); font: 10px var(--mono); }

.chart-card, .detail-card, .disclosure { background: var(--card); border: 1px solid var(--line); }
.chart-card { margin-top: 28px; padding: 38px 40px 26px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.section-heading h2, .detail-card h2, .disclosure h2 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.section-heading.compact { align-items: center; }
.chart-legend { display: flex; align-items: center; gap: 22px; font: 11px var(--mono); color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 8px; }
.chart-legend i { width: 22px; height: 3px; background: var(--green); }
.chart-legend b { font-weight: 500; color: var(--ink); }
.chart-wrap { height: 310px; position: relative; margin: 30px 0 0; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.chart-empty[hidden] { display: none; }
.chart-axis { display: grid; grid-template-columns: repeat(5, 1fr); margin: 8px 0 0 54px; color: var(--muted); font: 10px var(--mono); }
.chart-axis span:nth-child(n+2):nth-child(-n+4) { text-align: center; }
.chart-axis span:last-child { text-align: right; }

.detail-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); gap: 28px; }
.detail-card { padding: 36px 40px; }
.quiet { color: var(--muted); font: 11px var(--mono); }
.table-wrap { overflow-x: auto; margin-top: 26px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 0 12px 13px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
td { padding: 17px 12px 17px 0; border-bottom: 1px solid rgba(203,201,191,.65); font: 12px var(--mono); }
td:last-child, th:last-child { text-align: right; padding-right: 0; }
.empty-cell { height: 130px; text-align: center !important; color: var(--muted); font-family: var(--sans); }
.trust-card { background: var(--mint); }
.trust-card ul { margin: 27px 0 0; padding: 0; list-style: none; }
.trust-card li { display: grid; grid-template-columns: 34px 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid rgba(18,38,31,.2); }
.trust-card li > span { font: 10px var(--mono); color: var(--green); }
.trust-card li strong { display: block; margin-bottom: 5px; font-size: 14px; }
.trust-card li p { margin: 0; color: #4e625b; font-size: 12px; line-height: 1.65; }

.disclosure { margin: 28px 0 62px; padding: 38px 40px; display: grid; grid-template-columns: .55fr 1fr 1.05fr; gap: 50px; align-items: start; }
.disclosure > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.disclosure dl { margin: 0; }
.disclosure dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 11px; }
.disclosure dt { color: var(--muted); }
.disclosure dd { margin: 0; text-align: right; font-family: var(--mono); }

footer { min-height: 92px; padding: 24px 4.5vw; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font: 10px var(--mono); letter-spacing: .05em; }
footer p { margin: 0; font-family: var(--sans); }

.login-body { min-height: 100vh; background: var(--green); }
.login-shell { width: 100%; min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-card { width: min(470px, 100%); padding: 48px; background: var(--paper); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.login-card .brand-mark { margin-bottom: 42px; }
.login-card h1 { margin: 0; font-size: 40px; letter-spacing: -.05em; }
.login-intro { margin: 18px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.privacy-note { display: flex; align-items: center; gap: 9px; padding: 13px 15px; background: var(--mint); font-size: 12px; }
.login-form { margin-top: 30px; display: grid; }
.login-form label { margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.login-form input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); outline: none; }
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,77,61,.1); }
.login-form button { height: 51px; margin-top: 12px; padding: 0 18px; border: 0; display: flex; align-items: center; justify-content: space-between; background: var(--green); color: #fff; cursor: pointer; }
.login-error { margin: 9px 0 0; color: #a43d25; font-size: 12px; }
.login-foot { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 10px/1.7 var(--mono); }

@media (max-width: 900px) {
  .hero { min-height: 390px; padding: 58px 4vw 48px; }
  .hero-stamp { width: 150px; height: 150px; }
  .hero-stamp strong { font-size: 24px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .disclosure { grid-template-columns: 1fr 1.4fr; }
  .disclosure dl { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header { height: 72px; padding: 0 5vw; }
  .brand strong { font-size: 13px; }
  .brand small, .source-state span:last-child { display: none; }
  .header-side { gap: 14px; }
  main { width: 92vw; }
  .hero { min-height: auto; padding: 48px 5vw; align-items: flex-start; }
  .hero h1 { font-size: 49px; }
  .hero-note { margin-top: 25px; font-size: 13px; }
  .hero-stamp { display: none; }
  .view-toolbar { align-items: stretch; flex-direction: column; padding: 17px 0; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
  .tab { min-width: 0; padding: 10px 7px; }
  .date-controls { justify-content: space-between; }
  .date-label { flex: 1; }
  .metric { min-height: 146px; padding: 22px; }
  .metric strong { font-size: 31px; }
  .chart-card, .detail-card, .disclosure { padding: 27px 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .section-heading.compact { flex-direction: row; }
  .chart-wrap { height: 245px; margin-top: 22px; }
  .chart-axis { margin-left: 42px; }
  .chart-legend { flex-wrap: wrap; gap: 12px; }
  .disclosure { grid-template-columns: 1fr; gap: 25px; }
  .disclosure dl { grid-column: auto; }
  footer { align-items: flex-start; flex-direction: column; }
  .login-shell { padding: 16px; }
  .login-card { padding: 34px 26px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
