:root {
  color-scheme: light dark;
  --bg: #f5f3ef;
  --paper: #fffdf8;
  --paper-2: #f7f8f2;
  --ink: #141414;
  --muted: #5f625d;
  --soft: #858980;
  --line: rgba(20, 20, 20, 0.12);
  --line-strong: rgba(20, 20, 20, 0.2);
  --green: #1f6f4a;
  --green-soft: #e3f0e8;
  --blue: #245f9d;
  --blue-soft: #e6edf5;
  --gold: #b57914;
  --gold-soft: #f4ead6;
  --red: #a7442e;
  --red-soft: #f5e4df;
  --orange: #df7051;
  --shadow: 0 24px 70px rgba(26, 22, 16, 0.08);
  --radius: 8px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171815;
    --paper: #20211d;
    --paper-2: #252821;
    --ink: #f4f1e9;
    --muted: #c5c1b8;
    --soft: #aaa59a;
    --line: rgba(244, 241, 233, 0.13);
    --line-strong: rgba(244, 241, 233, 0.22);
    --green: #8fd1a9;
    --green-soft: #1d3528;
    --blue: #8bb8e6;
    --blue-soft: #1f3144;
    --gold: #e7ba65;
    --gold-soft: #3b2d18;
    --red: #ed9a86;
    --red-soft: #3a211c;
    --orange: #ed8b70;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.page { width: min(1180px, calc(100% - 32px)); margin: 24px auto 60px; }
.report-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}
.report-topbar a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.report-topbar a:hover { border-color: var(--line-strong); color: var(--green); }
.report {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
header.hero {
  padding: 48px 48px 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(36, 95, 157, 0.08), transparent 44%),
    linear-gradient(315deg, rgba(31, 111, 74, 0.09), transparent 40%),
    var(--paper);
}
.kicker {
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.deck {
  display: grid;
  gap: 10px;
  max-width: 850px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.deck p { margin: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}
main { padding: 36px 48px 52px; }
.toc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 36px; }
.toc a {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover { border-color: var(--line-strong); color: var(--green); }
section { margin: 56px 0; scroll-margin-top: 18px; }
section:first-of-type { margin-top: 0; }
h2 { margin: 0 0 18px; padding-top: 8px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
h3 { margin: 30px 0 12px; font-size: 18px; line-height: 1.35; }
p { margin: 0 0 16px; line-height: 1.78; }
main > section > p { max-width: 900px; }
ul, ol { margin: 12px 0 20px 24px; padding: 0; }
li { margin: 9px 0; padding-left: 2px; }
.summary-grid, .grid-2, .grid-3, .metric-grid, .chain-grid { display: grid; gap: 14px; }
.summary-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3, .metric-grid { grid-template-columns: repeat(3, 1fr); }
.chain-grid { grid-template-columns: repeat(7, 1fr); align-items: stretch; }
.summary-card, .card, .metric, .chain-node {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.summary-card { padding: 20px 20px 18px; }
.summary-card strong { display: block; margin-bottom: 8px; font-size: 16px; }
.summary-card p, .summary-card ul { color: var(--muted); }
.summary-card p { margin: 0; }
.summary-card ul { margin: 10px 0 0 18px; }
.metric { padding: 16px; }
.metric-label { color: var(--soft); font-size: 12px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.metric-value { margin-top: 5px; color: var(--green); font-size: 25px; font-weight: 760; letter-spacing: -0.02em; }
.metric-note { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.chain-node { position: relative; padding: 16px 13px; }
.chain-node::after { content: "→"; position: absolute; top: 50%; right: -12px; z-index: 2; color: var(--soft); font-weight: 800; }
.chain-node:last-child::after { display: none; }
.chain-node strong { display: block; min-height: 45px; line-height: 1.35; }
.chain-node span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.power-meter { margin-top: 10px; height: 4px; border-radius: 4px; background: var(--line); }
.power-meter span { height: 100%; margin: 0; border-radius: inherit; background: var(--green); }
.key-points { display: grid; gap: 10px; max-width: 940px; margin: 12px 0 22px; padding: 0; list-style: none; }
.key-points li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.callout { margin: 20px 0; padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--gold-soft); }
.callout.green { border-left-color: var(--green); background: var(--green-soft); }
.callout.blue { border-left-color: var(--blue); background: var(--blue-soft); }
.callout.red { border-left-color: var(--red); background: var(--red-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.report-figure { margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f6f1e7; }
.report-figure img { width: 100%; height: auto; }
.report-figure figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--paper); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-2); color: var(--muted); font-size: 12px; letter-spacing: 0.035em; }
tr:last-child td { border-bottom: 0; }
.good { color: var(--green); }
.mid { color: var(--gold); }
.bad { color: var(--red); }
.source-list { display: grid; gap: 10px; }
.source-item { display: grid; grid-template-columns: minmax(160px, 0.35fr) 1fr; gap: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.source-item span { color: var(--muted); }
.footer-note { margin-top: 24px; color: var(--soft); font-size: 12px; }

@media (max-width: 980px) {
  .toc { grid-template-columns: repeat(3, 1fr); }
  .chain-grid { grid-template-columns: repeat(2, 1fr); }
  .chain-node::after { display: none; }
}

@media (max-width: 760px) {
  .page { width: min(100% - 16px, 680px); margin-top: 8px; }
  header.hero { padding: 32px 22px 26px; }
  main { padding: 28px 22px 40px; }
  .toc, .summary-grid, .grid-2, .grid-3, .metric-grid, .chain-grid { grid-template-columns: 1fr; }
  section { margin: 44px 0; }
  .source-item { grid-template-columns: 1fr; gap: 3px; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; }
  .page { width: 100%; margin: 0; }
  .report-topbar { display: none; }
  .report { border: 0; box-shadow: none; }
  .toc { display: none; }
  section { break-inside: avoid; }
}
