/* 1. 令牌 */
:root {
  --paper: #FAF8F0; --surface: #FFFFFF; --surface-2: #EBEFE2; --ink: #172F29; --ink-2: #526760;
  --brand-900: #143B32; --brand-600: #267456; --brand-200: #D6E8CF; --brand-50: #EBEFE2; --lime: #C8E696;
  --copper-600: #B67639; --copper-50: #F7E9D6; --line: #C5CFBE; --focus: #267456;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px); --space: 96px;
}
/* 2. 基础 */
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--sans); overflow-wrap: break-word; }
h1,h2,h3,p,figure,fieldset { margin: 0; }
h1 { font-size: 40px; line-height: 1.25; text-wrap: balance; }
h2 { font-size: 28px; line-height: 1.35; margin-bottom: 24px; }
h3 { font-size: 20px; line-height: 1.45; margin-bottom: 8px; }
p + p { margin-top: 12px; }
p { max-width: 34em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--brand-600); }
button,input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--brand-200); color: var(--ink); }
code { font: .94em var(--mono); overflow-wrap: anywhere; }
small,figcaption { color: var(--ink-2); font-size: 14px; }
.skip { position: fixed; top: 4px; left: 8px; transform: translateY(-180%); z-index: 20; padding: 8px 16px; background: var(--surface); }
.skip:focus { transform: none; }
main { scroll-margin-top: 72px; }
.indicator, .arrow { font-family: var(--mono); }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; color: var(--ink-2); margin-bottom: 16px; }
.lead { font-size: 18px; line-height: 1.8; margin-top: 20px; }
/* 3. 布局 */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { margin-block: var(--space); }
.grid { display: grid; gap: 24px; align-items: stretch; }
.grid > * { min-width: 0; }
.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.flow { margin-top: 24px; }
@media (max-width:1200px) { .grid { gap: 20px; } }
@media (max-width:900px) { .four { grid-template-columns: repeat(2,minmax(0,1fr)); } .two { grid-template-columns: 1fr; } }
@media (max-width:640px) {
 :root { --space: 64px; } h1 { font-size: 30px; } h2 { font-size: 24px; }
 .grid { gap: 16px; } .three,.four { grid-template-columns: 1fr; }
}
/* 4. 组件 */
/* C1 页头 */
.mast { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.mast__row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: flex-end; gap: 2px; font: 700 25px/1 var(--sans); text-decoration: none; color: var(--brand-900); }
/* 补偿图稿底部的透明留白，让绿 A 与字母 g 的下沿齐平。 */
.wordmark img { width: 34px; height: 34px; object-fit: contain; transform: translateY(1px); }
.nav { display: flex; gap: clamp(16px,2.8vw,40px); align-items: center; }
.nav a { text-decoration: none; padding: 4px 0; white-space: nowrap; }
.nav a[aria-current] { border-bottom: 2px solid var(--brand-600); font-weight: 700; }
.repo { border-left: 1px solid var(--line); padding-left: 20px; color: var(--ink-2); font: 14px/1.4 var(--mono); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); padding: 4px 14px; }
@media (max-width:900px) {
 .mast__row { min-height: 56px; gap: 10px; flex-wrap: wrap; padding-block: 8px; }
 .nav { width: 100%; overflow-x: auto; padding: 4px 3px 8px; }
 .js .menu-toggle { display: inline-block; }
 .js .nav { display: none; }
 .js .nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; inset: 100% 0 auto; gap: 0; height: calc(100dvh - 56px); padding: 20px var(--gutter); background: var(--paper); }
 .js .nav.is-open a, .js .nav.is-open .repo { padding: 14px 4px; border-left: none; }
}
/* C2 首屏 */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(40px,5vw,72px); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(40px,4.8vw,56px); line-height: 1.15; }
.hero__status { margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.hero-art { width: 100%; max-width: 540px; justify-self: center; }
.hero-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 8px 18px; border: 1px solid var(--brand-900); border-radius: 4px; text-decoration: none; }
.button--primary { background: var(--brand-900); color: var(--surface); }
.button--primary:hover { color: var(--lime); }
@media (max-width:900px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 470px; } }
@media (max-width:640px) { .hero { padding-block: 48px; gap: 24px; } .hero h1 { font-size: 34px; } .hero-art { max-width: 370px; } }
/* C3 页标题 */
.page-head { padding-top: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.page-head + .section { margin-top: 64px; }
.crumb { margin-bottom: 28px; font-size: 14px; color: var(--ink-2); }
/* C4 质量面 */
.card { padding-block: 8px; }
.quality { border-top: 1px solid var(--line); padding-top: 16px; }
.icon { display: block; width: 24px; height: 24px; margin-bottom: 20px; color: var(--brand-600); }
.promise { font-weight: 600; }
.mechanism { margin-block: 8px 16px; font-size: 14px; color: var(--ink-2); }
.question-line { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
/* C5 状态 */
.status { background: var(--surface-2); padding: 16px 20px; border-left: 3px solid var(--brand-600); }
.platform { background: var(--brand-900); color: var(--surface); padding: 16px 24px; }
.platform + .grid { margin-top: 16px; }
/* C6 订单演示 */
.demo { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: clamp(16px,3vw,40px); }
.demo__controls { display: none; }
.js .demo__controls { display: grid; }
.js .demo__fallback { display: none; }
fieldset { min-width: 0; padding: 0; border: 0; margin-bottom: 16px; }
legend { font-weight: 600; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.choice:has(:checked) { background: var(--brand-200); border-color: var(--brand-600); }
.choice input { accent-color: var(--brand-600); margin: 0; }
.result { background: var(--brand-50); padding: 24px; align-self: stretch; border-top: 3px solid var(--brand-600); }
.demo:has(input[name="path"]:checked:not([value="success"])) .result { background: var(--copper-50); border-color: var(--copper-600); }
.result strong { display: block; font-size: 24px; margin-block: 16px 8px; }
/* C7 步骤；C8 验收问题 */
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps > li { counter-increment: steps; margin-block: 32px; padding-left: 54px; position: relative; }
.steps > li::before { content: counter(steps,decimal-leading-zero); position: absolute; left: 0; top: 0; font: 20px/1.45 var(--mono); color: var(--brand-600); }
.question { border-top: 1px solid var(--line); padding-top: 20px; }
ul,ol { padding-left: 1.4em; }
li + li { margin-top: 6px; }
/* C9 入口；C10 空状态；C11 标签 */
.entry { background: var(--surface); }
.entry a { font-weight: 600; }
.empty { border: 2px dashed var(--line); border-radius: 4px; padding: 24px; }
.tag { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; margin-bottom: 8px; }
.tag--doing { background: var(--brand-200); } .tag--idea { border-style: dashed; background: var(--surface-2); }
/* C12 表格；C13 口径条 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; font-weight: 600; margin: 14px 0 6px; }
th,td { text-align: left; padding: 8px; } th { color: var(--surface); background: var(--brand-900); } tbody tr:nth-child(even) { background: var(--surface-2); }
.callout { margin: 24px 0; padding: 16px 20px; background: var(--copper-50); border-left: 3px solid var(--copper-600); }
.problem { display: inline-block; color: var(--ink); background: var(--copper-50); padding: 2px 8px; margin-bottom: 8px; }
/* C14 页脚 */
.footer { border-top: 1px solid var(--line); padding-block: 32px 48px; }
.footer__row,.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer__row { justify-content: space-between; }
.footer a { font-size: 14px; }
.footer small { font: 12px/1.6 var(--mono); }
/* 5. 页面微调 */
.reading { max-width: 46rem; }
.quality-overview { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(30px, 8vw, 110px); }
.quality-overview h2 { max-width: 11em; }
.quality-list { margin: 0; }
.quality-list > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.quality-list > div:first-child { border-top: 1px solid var(--line); }
.quality-list dt { font-weight: 650; color: var(--brand-900); }
.quality-list dd { margin: 0; color: var(--ink-2); }
@media (max-width:900px) { .quality-overview { grid-template-columns: 1fr; gap: 24px; } .quality-overview h2 { max-width: none; } }
@media (max-width:640px) { .quality-list > div { grid-template-columns: 5.2em 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition-duration: 0s; } }
