:root {
  color-scheme: light;
  --ink: #17212b;
  --navy: #17364a;
  --teal: #176d72;
  --green: #287557;
  --gold: #ad7b25;
  --muted: #687582;
  --line: #d8e0e4;
  --soft-line: #e9edef;
  --paper: #ffffff;
  --canvas: #f4f7f8;
  --mint: #eaf4f1;
  --warm: #fff8e9;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 3px solid rgba(23,109,114,.25); outline-offset: 4px; border-radius: 3px; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { display: block; border-radius: 7px; }
.brand span,.brand b,.brand small { display: block; }
.brand b { font-size: 15px; line-height: 1.3; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.document-kind { color: var(--navy); font-size: 12px; font-weight: 800; }

main { overflow: hidden; }
.document-intro {
  padding: 92px max(24px, calc((100vw - 960px) / 2)) 68px;
  color: white;
  background: var(--navy);
}
.eyebrow,.section-label {
  margin: 0 0 16px;
  color: #8dd7d1;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 800;
}
.document-intro h1 {
  max-width: 820px;
  margin: 0;
  font-family: "STZhongsong", "Songti SC", "Source Han Serif SC", serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.16;
}
.lead { max-width: 740px; margin: 26px 0 0; color: #d8e5e9; font-size: 17px; line-height: 1.8; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 0; max-width: 820px; margin: 46px 0 0; border-top: 1px solid rgba(255,255,255,.22); }
.policy-meta div { min-width: 180px; padding: 17px 32px 0 0; }
.policy-meta dt { color: #91aab4; font-size: 11px; }
.policy-meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }

.data-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: -22px auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(27,51,63,.08);
}
.data-route article { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 26px; }
.data-route article + article { border-left: 1px solid var(--line); }
.route-index { color: var(--teal); font: 800 12px/1.5 Consolas, monospace; }
.data-route h2 { margin: 0; font-size: 15px; }
.data-route p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.document-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 72px;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px 110px;
}
.contents { position: sticky; top: 102px; align-self: start; }
.contents > b { display: block; padding-bottom: 11px; color: var(--navy); border-bottom: 2px solid var(--navy); font-size: 13px; }
.contents nav { display: grid; padding-top: 10px; }
.contents a { padding: 6px 0; color: var(--muted); font-size: 12px; text-decoration: none; }
.contents a:hover { color: var(--teal); }

.policy-body section { scroll-margin-top: 100px; }
.policy-body section + section { margin-top: 72px; padding-top: 66px; border-top: 1px solid var(--line); }
.policy-body .section-label { margin-bottom: 10px; color: var(--teal); }
.policy-body h2 { margin: 0 0 22px; color: var(--navy); font-family: "STZhongsong", "Songti SC", serif; font-size: 30px; line-height: 1.3; }
.policy-body h3 { margin: 30px 0 8px; color: var(--navy); font-size: 17px; }
.policy-body p { margin: 14px 0 0; color: #3f4d59; }
.policy-body ul { margin: 18px 0 0; padding-left: 22px; }
.policy-body li { margin: 8px 0; padding-left: 6px; color: #3f4d59; }
.policy-body li::marker { color: var(--teal); }
.policy-body strong { color: var(--navy); }

.data-table { margin-top: 26px; border-top: 2px solid var(--navy); }
.data-row { display: grid; grid-template-columns: minmax(130px,.7fr) 2fr; border-bottom: 1px solid var(--line); }
.data-row > * { padding: 15px 12px; }
.data-row b { color: var(--navy); font-size: 14px; }
.data-row span { color: #4f5d68; font-size: 14px; }
.data-head { background: #eef3f4; }
.data-head span { color: var(--muted); font-size: 11px; font-weight: 800; }
.notice { margin-top: 24px; padding: 18px 20px; background: var(--warm); border-left: 4px solid var(--gold); }
.notice b { color: #745219; }
.notice p { margin-top: 3px; color: #65583d; font-size: 14px; }
code { padding: 2px 5px; background: rgba(23,54,74,.07); border-radius: 3px; font-family: Consolas, monospace; font-size: .9em; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--line);
}
footer img { border-radius: 6px; }
footer p,footer b,footer span { display: block; margin: 0; }
footer b { color: var(--navy); font-size: 13px; }
footer span { color: var(--muted); font-size: 11px; }
footer a { font-size: 12px; font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .data-route { grid-template-columns: 1fr; margin: 0; border-right: 0; border-left: 0; box-shadow: none; }
  .data-route article + article { border-top: 1px solid var(--line); border-left: 0; }
  .document-layout { grid-template-columns: 1fr; gap: 38px; padding-top: 54px; }
  .contents { position: static; }
  .contents nav { grid-template-columns: repeat(3,1fr); gap: 0 18px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-header { min-height: 64px; padding: 8px 18px; }
  .brand img { width: 32px; height: 32px; }
  .brand small { display: none; }
  .document-intro { padding: 64px 22px 48px; }
  .document-intro h1 { font-size: 39px; }
  .lead { font-size: 15px; }
  .policy-meta { display: grid; grid-template-columns: 1fr 1fr; margin-top: 34px; }
  .policy-meta div { min-width: 0; padding-right: 12px; }
  .policy-meta div:last-child { grid-column: 1 / -1; }
  .data-route article { padding: 21px 22px; }
  .document-layout { padding: 42px 20px 76px; }
  .contents nav { grid-template-columns: 1fr 1fr; }
  .policy-body section + section { margin-top: 52px; padding-top: 48px; }
  .policy-body h2 { font-size: 26px; }
  .data-row { grid-template-columns: 1fr; padding: 13px 0; }
  .data-row > * { padding: 2px 10px; }
  .data-head { display: none; }
  footer { grid-template-columns: auto 1fr; padding: 24px 20px 38px; }
  footer > a { grid-column: 1 / -1; }
}

@media print {
  .site-header,.contents,footer { display: none; }
  body { background: white; font-size: 11pt; }
  .document-intro { padding: 0 0 28px; color: var(--ink); background: white; border-bottom: 2px solid var(--navy); }
  .document-intro h1 { font-size: 36pt; }
  .eyebrow,.lead,.policy-meta dt,.policy-meta dd { color: var(--ink); }
  .data-route { margin: 22px 0; box-shadow: none; }
  .document-layout { display: block; padding: 20px 0; }
  .policy-body section + section { break-before: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
