* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --paper: #f7f9f6;
  --white: #fff;
  --ink: #142621;
  --muted: #4e625b;
  --line: #dbe4dc;
  --soft: #edf3eb;
  --accent: #ceee79;
  --green: #286149;
  --dark: #102d29;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  scroll-behavior: smooth;
}
body { margin: 0; line-height: 1.65; }
a { color: inherit; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid #1c6c4a; outline-offset: 4px; }
p, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; left: 1rem; top: 1rem; background: white; padding: .6rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 1.55rem; justify-content: space-between; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; font-size: .92rem; font-weight: 750; line-height: 1.28; }
.mark { flex: none; display: grid; width: 31px; height: 31px; place-items: center; background: var(--dark); border-radius: 8px; }
.mark i { width: 14px; height: 14px; border: 2px solid var(--accent); display: grid; place-items: center; }
.mark i::after { content: ""; width: 4px; height: 4px; background: var(--accent); }
.toplinks { display: flex; gap: clamp(.9rem, 2vw, 2rem); margin-left: auto; }
.toplinks a, .footer-inner a { text-decoration: none; font-size: .92rem; font-weight: 650; }
.toplinks a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.languages { flex: none; display: flex; gap: .2rem; border: 1px solid var(--line); border-radius: 8px; padding: .22rem; }
.languages a { padding: .24rem .55rem; text-decoration: none; font-size: .9rem; font-weight: 700; border-radius: 5px; }
.languages [aria-current] { background: var(--dark); color: white; }
.hero-background { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero { min-height: 520px; padding-block: clamp(2.8rem, 6vw, 5.4rem); display: grid; grid-template-columns: 1fr 1.09fr; align-items: center; gap: clamp(2.1rem, 6vw, 6rem); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.4rem; margin-bottom: 1rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--green); font-size: .875rem; font-weight: 750; }
.eyebrow span { width: .5rem; height: .5rem; background: var(--green); border-radius: 50%; flex: none; }
.generation-note { font-size: .82rem; font-weight: 700; color: var(--green); }
.hero h1 { text-wrap: balance; }
.hero h1 { font-size: clamp(2.75rem, 4.62vw, 4.5rem); line-height: 1.09; letter-spacing: -.054em; font-weight: 780; margin-bottom: 1.2rem; }
:lang(zh-CN) .hero h1 { letter-spacing: -.035em; line-height: 1.15; }
.hero-copy > p { color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.hero-actions a { padding: .66rem 1rem; min-height: 44px; text-decoration: none; font-size: .94rem; font-weight: 700; border-radius: 7px; display: inline-flex; align-items: center; }
.primary { background: var(--accent); color: #182c0e; border: 1px solid #aac855; }
.primary:hover { background: #bce45b; }
.secondary { border: 1px solid #aebfb2; background: var(--paper); }
.secondary:hover { background: var(--soft); }
.hero-media { position: relative; border-radius: 16px; padding: .42rem; background: #102421; color: #e5f0e8; box-shadow: 0 18px 48px #12362526; min-width: 0; }
.media-top { font-size: .87rem; font-weight: 700; padding: .58rem .6rem .7rem; display: flex; align-items: center; gap: .5rem; width: max-content; max-width: 60%; line-height: 1.2; }
.media-indicator { width: .48rem; height: .48rem; background: var(--accent); border-radius: 50%; flex: none; }
.overlay-toggle { position: absolute; top: .76rem; right: .85rem; width: .95rem; height: .95rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
.toggle-label { position: absolute; right: 2.04rem; top: .61rem; font-size: .82rem; font-weight: 600; cursor: pointer; }
.hero-media :focus-visible { outline-color: var(--accent); }
.scene { position: relative; overflow: hidden; background: #153d36; border-radius: 10px; }
.scene img { width: 100%; height: auto; display: block; }
.annotations { position: absolute; inset: 0; pointer-events: none; }
.overlay-toggle:not(:checked) ~ .scene .annotations { display: none; }
.bb { position: absolute; border: 1.5px solid #dbff70; box-shadow: 0 0 0 1px #16231780; }
.bb i { position: absolute; left: -1.5px; bottom: 100%; white-space: nowrap; padding: .02rem .26rem; color: #162712; background: #dbff70; font-style: normal; font-size: .76rem; font-weight: 750; line-height: 1.35; }
.boat-a { top: 27%; left: 33%; width: 10%; height: 19%; }
.boat-b { top: 41%; left: 50%; width: 11%; height: 19.5%; }
.boat-c { top: 59%; left: 71%; width: 12%; height: 25%; }
.vehicle { top: 40%; left: 81%; width: 9%; height: 9.7%; border-color: #7ceae9; }
.vehicle i { background: #7ceae9; }
.hero-media figcaption { padding: .46rem .68rem .32rem; color: #d1e0d8; font-size: .82rem; }
.layout { display: grid; grid-template-columns: minmax(155px, 218px) minmax(0, 1fr); gap: clamp(1.7rem, 5vw, 4.5rem); padding-block: 3.3rem 4rem; }
.side { align-self: start; position: sticky; top: 1.4rem; max-height: calc(100vh - 2.8rem); overflow-y: auto; scrollbar-width: thin; border-inline-end: 1px solid var(--line); padding-inline-end: .85rem; }
.toc-heading { font-size: .92rem; margin: .3rem .5rem .6rem; }
.toc-panel > summary { display: none; }
.toc-list, .toc-sublist { list-style: none; padding: 0; margin: 0; }
.toc-entry { position: relative; }
.toc-branch > .toc-link { margin-inline-end: 2rem; }
.side a { display: flex; align-items: baseline; gap: .42rem; padding: .32rem .5rem; border-radius: 5px; color: var(--muted); font-size: .89rem; line-height: 1.4; overflow-wrap: anywhere; text-decoration: none; }
.toc-number { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--green); }
.toc-sublist { margin: .16rem .15rem .36rem .58rem; border-inline-start: 1px solid var(--line); padding-inline-start: .24rem; }
.toc-sublist a { font-size: .865rem; }
.side a:hover, .side [aria-current="location"], .side .is-current-chapter { background: var(--soft); color: var(--green); }
.side [aria-current="location"] { font-weight: 700; }
.toc-subsections > summary { position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 5px; color: var(--green); list-style: none; cursor: pointer; }
.toc-subsections > summary::-webkit-details-marker, .toc-panel > summary::-webkit-details-marker { display: none; }
.toc-subsections > summary::before { content: "+"; font-size: 1.12rem; line-height: 1; }
.toc-subsections[open] > summary::before { content: "−"; }
.toc-subsections > summary:hover { background: var(--soft); }
.side :focus-visible { outline-offset: -2px; }
.chapters { min-width: 0; max-inline-size: 54rem; text-align: start; overflow-wrap: break-word; }
.chapter { scroll-margin-top: 1.35rem; padding-block: 2.35rem 0; margin-bottom: 2.55rem; border-top: 1px solid var(--line); }
.chapter:first-child { padding-top: 0; border-top: 0; }
.chapter:last-child { margin-bottom: 0; }
.chapter h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.036em; margin-bottom: .9rem; }
.chapter h3 { font-size: 1.25rem; line-height: 1.35; margin: 1.5rem 0 .55rem; letter-spacing: -.015em; }
.chapter h4 { font-size: 1rem; line-height: 1.45; margin: 1.1rem 0 .45rem; }
.chapter h3[id], .chapter h4[id], .subsection { scroll-margin-top: 1.35rem; }
.chapter p { color: var(--muted); }
.chapter .item-title { color: var(--ink); margin: 0 0 .38rem; line-height: 1.45; }
.chapter .item-title + p { margin-top: 0; }
.chapter p + p { margin-top: .8rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .6rem; padding: 0; margin: 1.25rem 0 0; }
.steps a { display: flex; flex-direction: column; height: 100%; gap: .38rem; padding: .76rem .8rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; text-decoration: none; font-weight: 720; font-size: .92rem; line-height: 1.45; }
.steps a:hover { border-color: #81a893; background: var(--soft); }
.steps span { color: var(--green); font-size: .82rem; font-family: ui-monospace, Consolas, monospace; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-block: 1rem; }
.detail-grid > div { border: 1px solid var(--line); border-radius: 9px; padding: .92rem; background: var(--paper); }
.callout { background: var(--soft); border-left: solid 3px #7aab86; padding: .9rem 1rem; border-radius: 0 8px 8px 0; margin-top: 1.05rem; }
.callout p { margin-top: .2rem; }
.deliverable { background: #f1f6e5; border-color: #9cba52; }
.link-set { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: .95rem 0; padding: 0; }
.link-set a { display: inline-block; border-radius: 6px; border: 1px solid var(--line); color: var(--green); padding: .35rem .65rem; text-decoration-thickness: 1px; text-underline-offset: 3px; font-size: .9rem; }
.link-set a:hover { background: var(--soft); }
.dataset-browser { border: 1px solid var(--line); border-radius: 9px; margin-block: 1.15rem; }
.dataset-tabs { display: flex; flex-wrap: wrap; gap: .32rem; border-bottom: 1px solid var(--line); padding: .45rem; background: var(--paper); border-radius: 9px 9px 0 0; }
.dataset-tabs a { padding: .45rem .75rem; color: var(--green); font-size: .9rem; text-decoration: none; border-radius: 6px; font-weight: 700; }
.dataset-tabs a:hover { background: var(--soft); }
.dataset-tabs [aria-selected=true] { background: var(--dark); color: white; }
.dataset-pane { padding: .55rem .85rem .85rem; scroll-margin-top: 1rem; }
.dataset-pane .item-title { margin: .55rem 0; }
.resources { list-style: none; padding: 0; margin: .7rem 0; border-block: 1px solid var(--line); }
.resources li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); gap: .65rem; align-items: baseline; padding: .64rem .42rem; }
.resources li + li { border-top: 1px solid var(--line); }
.resources a { color: var(--green); font-weight: 720; text-underline-offset: 3px; overflow-wrap: anywhere; }
.resources span { color: var(--muted); }
.body-list { padding-inline-start: 1.8rem; margin: .65rem 0 1rem; color: var(--muted); }
.body-list > li { padding-inline-start: .1rem; margin-bottom: .5rem; }
.paper-section-guide > li { margin-bottom: .95rem; }
.paper-section-guide > li > p { margin-top: .22rem; }
.body-list > li::marker { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
ol.body-list > li::marker { content: counter(list-item) ") "; }
:lang(zh-CN) ol.body-list > li::marker { content: counter(list-item) "）"; }
.box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .72rem; margin: .75rem 0 1rem; }
.box-grid figure { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: .63rem; }
.box-demo { display: grid; place-items: center; height: 115px; position: relative; background: repeating-linear-gradient(0deg,#e9f0eb 0 1px,transparent 1px 19px), repeating-linear-gradient(90deg,#e9f0eb 0 1px,#f5f8f5 1px 19px); border-radius: 5px; }
.box-demo::before { content: ""; width: 72px; height: 22px; background: #8ba99a; border-radius: 65% 55% 45% 55%; transform: rotate(-24deg); }
.box-demo i { position: absolute; border: 2px solid #286149; }
.hbb { width: 76px; height: 47px; }
.obb { width: 77px; height: 27px; transform: rotate(-24deg); }
.box-grid figcaption { padding: .5rem .12rem .12rem; color: var(--muted); font-size: .9rem; }
.box-grid strong { color: var(--ink); margin-right: .2em; }
.tag { display: inline-block; max-width: max-content; font-size: .86rem; font-weight: 700; color: #365322; background: #e9f2d3; border-radius: 4px; padding: .16rem .43rem; }
.chart { background: var(--paper); border: 1px solid var(--line); padding: .9rem 1rem; border-radius: 9px; margin: 1.05rem 0; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: .4rem .8rem; justify-content: space-between; }
.chart ul { margin: .75rem 0 .1rem; padding: 0; list-style: none; display: grid; gap: .58rem; }
.chart li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 65px; gap: .65rem; align-items: center; font-size: .92rem; }
.chart li strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: .56rem; border-radius: 5px; background: #dfe9df; }
.bar i { display: block; width: var(--value); height: 100%; border-radius: 5px; background: #46896a; }
.table-wrap { overflow-x: auto; margin: .6rem 0 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
td, th { padding: .55rem .6rem; border: 1px solid var(--line); text-align: center; white-space: nowrap; }
thead { background: var(--soft); }
.milestones { list-style: none; padding: 0; margin: 1rem 0; }
.milestones li { display: grid; grid-template-columns: 8rem 1fr; padding: .65rem .3rem; gap: .65rem; border-top: 1px solid var(--line); }
.milestones li:last-child { border-bottom: 1px solid var(--line); }
.milestones li > span { color: var(--green); font-weight: 750; }
footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { min-height: 85px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding-block: .85rem; }
.footer-inner > div { display: flex; gap: 1rem; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 2rem; min-height: unset; }
  .hero h1 { font-size: clamp(2.35rem, 4.65vw, 3.5rem); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layout { grid-template-columns: 180px minmax(0,1fr); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 60px; gap: .5rem; }
  .toplinks { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 2.05rem 2.4rem; gap: 1.45rem; }
  .hero h1 { font-size: clamp(2.35rem, 8.2vw, 3.55rem); }
  .layout { display: block; padding-top: 1.5rem; }
  .side { position: static; max-height: none; overflow: visible; border: 0; padding: 0; margin-bottom: 1.35rem; }
  .toc-heading { display: none; }
  .toc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
  .toc-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; padding: .6rem .8rem; cursor: pointer; font-weight: 700; list-style: none; }
  .toc-panel > summary::after { content: "+"; color: var(--green); }
  .toc-panel[open] > summary::after { content: "−"; }
  .toc-panel > .toc-list { padding: .45rem .55rem .65rem; border-top: 1px solid var(--line); }
  .side a { min-height: 35px; padding-block: .4rem; }
  .resources li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .chapter { margin-bottom: 1.65rem; padding-top: 1.6rem; }
  .chapter h2 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .brand { font-size: .83rem; }
  .hero h1 { letter-spacing: -.045em; }
  .detail-grid { grid-template-columns: 1fr; }
  .chart li { grid-template-columns: minmax(85px, 1.3fr) 1fr 49px; gap: .37rem; }
  .milestones li { grid-template-columns: 6.15rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
@media print {
  .site-header, .side, footer, .hero-actions, .overlay-toggle, .toggle-label, .dataset-tabs { display: none; }
  .wrap { width: 100%; }
  .hero, .layout { display: block; padding: 0; }
  .hero-media { max-width: 560px; margin: 1rem 0; }
  .dataset-pane[hidden] { display: block !important; }
  .chapter :is(h2, h3, h4) { break-after: avoid; }
  figure, .callout, .detail-grid > div, tr { break-inside: avoid; }
}
