:root {
  color-scheme: light;
  --canvas: #fff8ee;
  --paper: #fffcf7;
  --tile: #f4e9dd;
  --ink: #40291f;
  --muted: #756352;
  --border: #e6d9c7;
  --accent: #ad3d2c;
  --focus: #285d7b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 4px; }
.skip { position: fixed; left: 20px; top: -80px; z-index: 5; padding: 8px 16px; background: var(--paper); }
.skip:focus { top: 12px; }
.site-header, .site-footer, .page { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 14px; }
.brand strong { font-size: 21px; letter-spacing: -.04em; }
.brand small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.site-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav [aria-current="page"] { color: var(--accent); font-weight: 700; }
.hero { max-width: 820px; padding: 64px 0 40px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.03em; }
h1 { font-size: clamp(34px, 4.5vw, 52px); margin: 0 0 20px; }
.intro { font-size: 18px; color: var(--muted); margin: 0; max-width: 700px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 22px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 48px; }
.summary-item { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--paper); }
.summary-item .number { display: block; color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.summary-item h2 { font-size: 17px; margin: 0 0 8px; }
.summary-item p { margin: 0; color: var(--muted); font-size: 14px; }
.reading-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 60px; align-items: start; padding-bottom: 70px; }
.toc { position: sticky; top: 28px; font-size: 13px; }
.toc h2 { font-size: 12px; margin: 0 0 14px; letter-spacing: .08em; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 7px 0 7px 17px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
article { min-width: 0; font-size: 15px; }
article section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
article section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
article h2 { font-size: 23px; margin: 0 0 20px; }
article h3 { font-size: 17px; margin: 26px 0 9px; }
article p { margin: 0 0 14px; }
article ul, article ol { padding-left: 22px; margin: 12px 0 18px; }
article li { margin: 8px 0; }
.callout { background: var(--tile); border-radius: 16px; padding: 20px 22px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.data-list { margin: 0; }
.data-list > div { padding: 20px 0; border-bottom: 1px solid var(--border); }
.data-list > div:first-child { padding-top: 0; }
.data-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.data-list dt { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.data-list dd { margin: 0; color: var(--muted); }
.data-list dd + dd { margin-top: 7px; }
.data-list strong { color: var(--ink); font-weight: 600; }
.contact-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--paper); margin-bottom: 48px; }
.contact-card h2 { margin: 0 0 7px; font-size: 20px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 14px; }
.button-link { display: inline-block; padding: 11px 20px; border-radius: 14px; background: var(--accent); color: #fffefa; text-decoration: none; font-size: 15px; font-weight: 600; }
.button-link:hover { background: #8e3022; }
details { border-top: 1px solid var(--border); padding: 19px 0; }
details:last-child { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 650; line-height: 1.6; padding-right: 10px; }
details > div { padding: 16px 0 0 22px; color: var(--muted); }
details p:last-child { margin-bottom: 0; }
.step-list { counter-reset: step; padding: 0; list-style: none; }
.step-list li { counter-increment: step; position: relative; padding: 0 0 15px 42px; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 27px; height: 27px; display: grid; place-items: center; color: var(--accent); background: var(--tile); border-radius: 50%; font-weight: 700; font-size: 12px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; border-top: 1px solid var(--border); padding: 27px 0 36px; font-size: 12px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.site-footer .beta-entry { color: var(--accent); font-weight: 650; }
.site-footer a:active { color: var(--accent); background: var(--tile); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--accent); background: var(--tile); } }
@media (max-width: 850px) {
  .reading-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: repeat(2, 1fr); }
  .summary { gap: 10px; }
  .summary-item { padding: 18px; }
}
@media (max-width: 560px) {
  .site-header, .site-footer, .page { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; padding-block: 20px; gap: 14px; }
  .site-nav { gap: 8px 14px; justify-content: flex-end; font-size: 12px; max-width: 150px; }
  .brand small { display: none; }
  .brand img { width: 36px; height: 36px; border-radius: 12px; }
  .hero { padding-top: 42px; padding-bottom: 30px; }
  .intro { font-size: 16px; }
  .summary { grid-template-columns: 1fr; margin-bottom: 34px; }
  .summary-item { padding: 18px 20px; }
  .summary-item .number { float: right; margin-left: 12px; }
  .reading-layout { padding-bottom: 44px; }
  article { font-size: 15px; }
  article h2 { font-size: 21px; }
  .contact-card { padding: 22px; margin-bottom: 34px; }
  .contact-card .button-link { width: 100%; text-align: center; }
  .callout { padding: 17px 18px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --canvas: #1c1613; --paper: #251e1a; --tile: #332721; --ink: #f7efe6; --muted: #b5a397; --border: #46372e; --accent: #ec8d7d; --focus: #89b6d0; }
  .button-link { background: #bd4936; color: #fffefa; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .site-footer a { transition: none; } }
@media print {
  :root { --canvas: #fff; --paper: #fff; --ink: #000; --muted: #333; --border: #ccc; --accent: #000; }
  .site-nav, .toc, .skip, .site-footer nav { display: none; }
  .site-header, .site-footer, .page { width: 100%; }
  .hero { padding-top: 24px; }
  .reading-layout { display: block; }
  .summary { margin-bottom: 24px; }
  article section, .summary-item { break-inside: avoid; }
}
