@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-700-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.972 0.008 90);
  --surface-strong: oklch(0.934 0.012 90);
  --ink: oklch(0.22 0.035 255);
  --ink-soft: oklch(0.42 0.03 255);
  --line: oklch(0.86 0.022 250);
  --line-strong: oklch(0.72 0.045 250);
  --primary: oklch(0.64 0.18 38.6);
  --primary-dark: oklch(0.47 0.15 38.6);
  --teal: oklch(0.63 0.15 172);
  --teal-dark: oklch(0.38 0.1 172);
  --blue: oklch(0.58 0.15 250);
  --dark-panel: oklch(0.16 0.025 255);
  --dark-panel-soft: oklch(0.22 0.03 255);
  --white: oklch(0.99 0.003 90);
  --topbar-bg: oklch(1 0 0 / 0.94);
  --mobile-nav-bg: oklch(1 0 0 / 0.97);
  --table-hover: oklch(0.98 0.006 90);
  --selection-bg: oklch(0.82 0.12 38.6);
  --button-primary-ink: oklch(0.99 0.003 90);
  --brand-bg: var(--ink);
  --brand-ink: var(--white);
  --support-bg: var(--ink);
  --support-ink: var(--white);
  --support-muted: oklch(0.85 0.025 250);
  --shadow: 0 18px 50px oklch(0.22 0.035 255 / 0.09);
  --shadow-small: 0 4px 8px oklch(0.22 0.035 255 / 0.08);
  --radius: 8px;
  --rail: 240px;
  --content: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: oklch(0.135 0.03 252);
    --surface: oklch(0.18 0.035 252);
    --surface-strong: oklch(0.225 0.04 252);
    --ink: oklch(0.95 0.012 245);
    --ink-soft: oklch(0.73 0.035 245);
    --line: oklch(0.29 0.04 247);
    --line-strong: oklch(0.41 0.055 245);
    --primary: oklch(0.73 0.15 192);
    --primary-dark: oklch(0.81 0.12 192);
    --teal: oklch(0.75 0.14 170);
    --teal-dark: oklch(0.84 0.09 170);
    --blue: oklch(0.72 0.13 240);
    --dark-panel: oklch(0.105 0.025 252);
    --dark-panel-soft: oklch(0.22 0.04 252);
    --white: oklch(0.98 0.008 245);
    --topbar-bg: oklch(0.145 0.032 252 / 0.96);
    --mobile-nav-bg: oklch(0.15 0.034 252 / 0.98);
    --table-hover: oklch(0.205 0.04 252);
    --selection-bg: oklch(0.42 0.1 192);
    --button-primary-ink: oklch(0.12 0.03 252);
    --brand-bg: oklch(0.1 0.03 252);
    --brand-ink: var(--primary-dark);
    --support-bg: oklch(0.095 0.025 252);
    --support-ink: var(--white);
    --support-muted: oklch(0.76 0.035 245);
    --shadow: 0 18px 50px oklch(0.03 0.02 252 / 0.34);
    --shadow-small: 0 4px 8px oklch(0.03 0.02 252 / 0.28);
  }
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: oklch(0.135 0.03 252);
  --surface: oklch(0.18 0.035 252);
  --surface-strong: oklch(0.225 0.04 252);
  --ink: oklch(0.95 0.012 245);
  --ink-soft: oklch(0.73 0.035 245);
  --line: oklch(0.29 0.04 247);
  --line-strong: oklch(0.41 0.055 245);
  --primary: oklch(0.73 0.15 192);
  --primary-dark: oklch(0.81 0.12 192);
  --teal: oklch(0.75 0.14 170);
  --teal-dark: oklch(0.84 0.09 170);
  --blue: oklch(0.72 0.13 240);
  --dark-panel: oklch(0.105 0.025 252);
  --dark-panel-soft: oklch(0.22 0.04 252);
  --white: oklch(0.98 0.008 245);
  --topbar-bg: oklch(0.145 0.032 252 / 0.96);
  --mobile-nav-bg: oklch(0.15 0.034 252 / 0.98);
  --table-hover: oklch(0.205 0.04 252);
  --selection-bg: oklch(0.42 0.1 192);
  --button-primary-ink: oklch(0.12 0.03 252);
  --brand-bg: oklch(0.1 0.03 252);
  --brand-ink: var(--primary-dark);
  --support-bg: oklch(0.095 0.025 252);
  --support-ink: var(--white);
  --support-muted: oklch(0.76 0.035 245);
  --shadow: 0 18px 50px oklch(0.03 0.02 252 / 0.34);
  --shadow-small: 0 4px 8px oklch(0.03 0.02 252 / 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::selection { background: var(--selection-bg); color: var(--ink); }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

code, pre { font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace; }

code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 0.88em;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-mark, .topbar-actions, .hero-actions, .hero-meta, .route-step, .footer-links { display: flex; align-items: center; }

.brand-mark {
  gap: 11px;
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--brand-bg);
  color: var(--brand-ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-mark strong, .brand-mark small { display: block; }
.brand-mark strong { font-size: 15px; letter-spacing: 0; }
.brand-mark small { color: var(--ink-soft); font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 0; line-height: 1.1; }
.topbar-actions { gap: 22px; }
.text-link { font-size: 14px; text-decoration: none; }
.text-link:hover { color: var(--primary-dark); }
.theme-toggle { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: color 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out; }
.theme-toggle:hover { border-color: var(--primary); background: var(--surface-strong); color: var(--primary-dark); }
.theme-toggle:active { transform: scale(0.94); }
.theme-icon { display: none; width: 18px; height: 18px; }
html[data-theme='light'] .theme-icon-moon, html[data-theme='dark'] .theme-icon-sun { display: block; }
.menu-toggle { display: none; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); cursor: pointer; }
.menu-lines { position: relative; width: 16px; height: 11px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu-lines::after { position: absolute; top: 4px; left: 0; width: 16px; border-top: 1.5px solid currentColor; content: ''; }

.page-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); width: 100%; max-width: none; margin: 0; }
.chapter-rail { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); overflow-y: auto; padding: 40px 22px 24px 0; border-right: 1px solid var(--line); scrollbar-width: thin; }
.rail-label, .section-number, .eyebrow, .index-kicker, .fact-label, .manual-head span { font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0; text-transform: uppercase; }
.rail-label { margin-bottom: 20px; color: var(--ink-soft); font-size: 12px; }
.chapter-rail nav { display: grid; gap: 3px; }
.chapter-link { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid transparent; color: var(--ink-soft); font-size: 13px; text-decoration: none; transition: color 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out; }
.chapter-link span { color: var(--ink-soft); font-family: 'Barlow Condensed', sans-serif; font-size: 16px; }
.chapter-link:hover, .chapter-link.is-active { border-color: var(--line); background: var(--surface); color: var(--ink); }
.chapter-link:hover span, .chapter-link.is-active span { color: var(--primary-dark); }
.chapter-link.is-active span { color: var(--primary-dark); }
.rail-footer { display: flex; gap: 8px; align-items: center; margin-top: 38px; color: var(--ink-soft); font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal) 18%, transparent); }

main { min-width: 0; }
.section-band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.quickstart, .model-section, .manual-section, .faq-section { background: color-mix(in oklab, var(--surface) 28%, var(--bg)); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 60px; min-height: 490px; align-items: center; padding-right: 20px; padding-left: 54px; }
.hero-copy { max-width: 760px; }
.eyebrow { display: flex; gap: 8px; align-items: center; margin: 0 0 22px; color: var(--primary-dark); font-size: 13px; }
.eyebrow span { color: var(--ink-soft); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; text-wrap: balance; }
h1 { max-width: 680px; margin-bottom: 24px; font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif; font-size: 6rem; font-weight: 600; letter-spacing: 0; }
h1 em { color: var(--primary-dark); font-style: normal; }
.hero-lede { max-width: 620px; margin-bottom: 32px; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
.hero-actions { flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; text-decoration: none; transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.button:active { transform: scale(0.98); }
.button-primary { background: var(--primary); color: var(--button-primary-ink); }
.button-primary:hover { background: var(--primary-dark); }
.button-quiet { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-quiet:hover { border-color: var(--ink); background: var(--surface); }
.hero-meta { flex-wrap: wrap; gap: 16px; color: var(--ink-soft); font-size: 12px; }
.hero-meta span { display: inline-flex; gap: 7px; align-items: center; }
.meta-mark { width: 8px; height: 8px; border-radius: 50%; }
.meta-mark-coral { background: var(--primary); }
.meta-mark-teal { background: var(--teal); }
.meta-mark-blue { background: var(--blue); }
.hero-index { align-self: center; padding: 22px 0 22px 24px; border-left: 1px solid var(--line-strong); }
.index-kicker { display: block; color: var(--ink-soft); font-size: 11px; }
.hero-index strong { display: block; margin: 12px 0 8px; color: var(--primary-dark); font-family: 'Barlow Condensed', sans-serif; font-size: 76px; font-weight: 600; line-height: 0.85; }
.hero-index > span:last-child { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }

.section-heading { max-width: 730px; margin-bottom: 42px; padding-left: 54px; }
.section-heading.compact { max-width: 780px; margin-bottom: 28px; }
.section-number { margin-bottom: 12px; color: var(--primary-dark); font-size: 13px; }
.section-heading h2 { margin-bottom: 12px; font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif; font-size: 4.2rem; font-weight: 600; letter-spacing: 0; }
.section-heading p:last-child { max-width: 680px; margin-bottom: 0; color: var(--ink-soft); font-size: 16px; }

.contact-section, .quickstart, .model-section, .protocol-section, .manual-section, .client-section, .examples-section, .faq-section { padding-right: 54px; padding-left: 54px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 26px; align-items: start; }
.image-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--dark-panel); cursor: zoom-in; }
.image-button img { display: block; width: 100%; height: auto; }
.image-hint { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border: 1px solid oklch(0.99 0.003 90 / 0.24); border-radius: 4px; background: oklch(0.12 0.02 255 / 0.78); color: var(--white); font-size: 11px; opacity: 0; transition: opacity 160ms ease-out; }
.image-button:hover .image-hint, .image-button:focus-visible .image-hint { opacity: 1; }
.contact-image { box-shadow: var(--shadow); }
.contact-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-fact { min-height: 128px; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.contact-fact-green { border-top-color: var(--teal); }
.contact-fact-blue { border-top-color: var(--blue); }
.contact-fact-neutral { border-top-color: var(--primary); }
.fact-label { display: block; margin-bottom: 10px; color: var(--ink-soft); font-size: 11px; }
.contact-fact strong { display: block; margin-bottom: 4px; font-size: 17px; line-height: 1.25; }
.contact-fact small { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }

.route-line { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr; gap: 8px; align-items: center; }
.route-step { min-height: 112px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out; }
.route-step:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-small); }
.route-step span { color: var(--primary-dark); font-family: 'Barlow Condensed', sans-serif; font-size: 24px; line-height: 1; }
.route-step strong { margin-top: 8px; font-size: 15px; }
.route-step small { color: var(--ink-soft); font-size: 12px; }
.route-arrow { color: var(--primary); font-family: 'Barlow Condensed', sans-serif; font-size: 26px; text-align: center; }
.note-strip { display: flex; gap: 16px; align-items: baseline; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.note-strip p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.note-tag { flex: 0 0 auto; color: var(--ink); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.note-teal { border-color: color-mix(in oklab, var(--teal) 45%, transparent); }
.note-coral { border-color: color-mix(in oklab, var(--primary) 45%, transparent); }
.note-blue { border-color: color-mix(in oklab, var(--blue) 42%, transparent); }

.step-list { display: grid; gap: 0; }
.step-block { display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr); gap: 36px; align-items: start; padding: 42px 0; border-top: 1px solid var(--line); }
.step-block:first-child { padding-top: 0; border-top: 0; }
.step-copy { position: relative; padding: 4px 0 0 48px; }
.step-count { position: absolute; top: 0; left: 0; color: var(--primary-dark); font-family: 'Barlow Condensed', sans-serif; font-size: 28px; line-height: 1; }
.step-copy h3 { margin-bottom: 12px; font-size: 22px; font-weight: 700; }
.step-copy p { margin-bottom: 16px; color: var(--ink-soft); font-size: 15px; }
.next-cue { display: inline-flex; gap: 10px; align-items: center; color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.next-cue b { font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 500; }
.mini-note { display: flex; gap: 8px; align-items: baseline; margin: 18px 0; padding: 11px 12px; border: 1px solid color-mix(in oklab, var(--teal) 45%, transparent); border-radius: var(--radius); background: color-mix(in oklab, var(--teal) 9%, transparent); color: var(--teal-dark); font-size: 12px; line-height: 1.55; }
.mini-note b { flex: 0 0 auto; font-size: 12px; }
.mini-note-coral { border-color: color-mix(in oklab, var(--primary) 45%, transparent); background: color-mix(in oklab, var(--primary) 9%, transparent); color: var(--primary-dark); }
.mini-note-teal { border-color: color-mix(in oklab, var(--teal) 45%, transparent); background: color-mix(in oklab, var(--teal) 9%, transparent); color: var(--teal-dark); }
.tutorial-figure { margin: 0; }
.tutorial-figure .image-button { border: 1px solid var(--dark-panel-soft); box-shadow: var(--shadow-small); }
.tutorial-figure figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 12px; }
.tutorial-figure figcaption strong { margin-right: 6px; color: var(--ink); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0; }

.protocol-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.protocol-table { width: 100%; min-width: 700px; border-collapse: collapse; background: var(--bg); }
.protocol-table th, .protocol-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.protocol-table th { background: var(--surface); color: var(--ink-soft); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
.protocol-table td { font-size: 13px; }
.protocol-table tbody tr:last-child td { border-bottom: 0; }
.protocol-table tbody tr:hover td { background: var(--table-hover); }
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note-grid .note-strip { margin-top: 14px; }

.model-table { min-width: 980px; }
.endpoint-table { min-width: 820px; }
.setup-matrix { margin-bottom: 44px; }
.setup-matrix .protocol-table { min-width: 920px; }
.flat-table { box-shadow: none; }

.detail-stack { margin-top: 32px; border-top: 1px solid var(--line); }
.detail-panel { border-bottom: 1px solid var(--line); }
.detail-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.detail-panel summary::-webkit-details-marker { display: none; }
.detail-panel summary::after { flex: 0 0 auto; color: var(--primary-dark); font-family: 'Barlow Condensed', sans-serif; font-size: 27px; font-weight: 500; line-height: 1; content: '+'; transition: transform 160ms ease-out; }
.detail-panel[open] summary::after { transform: rotate(45deg); }
.detail-body { padding: 0 0 26px; color: var(--ink-soft); font-size: 14px; }
.detail-body > :last-child { margin-bottom: 0; }
.detail-body strong { color: var(--ink); }
.detail-body .protocol-table-wrap { margin-bottom: 18px; }
.instruction-list { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.instruction-list li { padding-left: 4px; color: var(--ink-soft); }
.compact-list { margin-top: 22px; }
.inline-link { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.download-panel { display: grid; grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); gap: 26px 34px; margin-bottom: 28px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download-copy h3 { margin-bottom: 12px; font-size: 24px; }
.download-copy p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.official-links { display: grid; gap: 8px; }
.official-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 160ms ease-out, background 160ms ease-out; }
.official-link:hover { border-color: var(--primary); background: var(--surface-strong); }
.official-link span, .official-link strong, .official-link small { display: block; min-width: 0; }
.official-link strong { color: var(--ink); font-size: 14px; }
.official-link small { overflow-wrap: anywhere; color: var(--ink-soft); font-size: 11px; }
.official-link b { color: var(--primary-dark); font-size: 18px; font-weight: 500; }
.download-panel .instruction-list { grid-column: 1 / -1; }

.code-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.code-pair .code-card { min-width: 0; margin-top: 0; }

.code-card { margin: 18px 0; overflow: hidden; border: 1px solid var(--dark-panel-soft); border-radius: var(--radius); background: var(--dark-panel); color: var(--white); }
.code-card-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid oklch(0.99 0.003 90 / 0.14); color: oklch(0.82 0.03 250); font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 0; text-transform: uppercase; }
.copy-button { padding: 4px 7px; border: 1px solid oklch(0.99 0.003 90 / 0.25); border-radius: 3px; background: transparent; color: var(--white); font-size: 11px; cursor: pointer; }
.copy-button:hover { border-color: var(--primary); color: var(--white); }
.code-card pre { margin: 0; overflow-x: auto; padding: 14px; color: oklch(0.91 0.035 172); font-size: 12px; line-height: 1.65; }
.code-card code { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }

.manual-grid { display: grid; min-width: 0; grid-template-columns: 1fr 1fr; gap: 14px; }
.manual-block { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.manual-block-wide { grid-column: 1 / -1; }
.manual-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.manual-head span { color: var(--primary-dark); font-size: 12px; }
.manual-head strong { font-size: 15px; }
.manual-block p { color: var(--ink-soft); font-size: 14px; }
.manual-block small { color: var(--ink-soft); font-size: 12px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tool-tags span { padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink-soft); font-size: 12px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary b { color: var(--primary-dark); font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 500; }
.faq-list details[open] summary b { transform: rotate(45deg); }
.faq-list details p { max-width: 760px; margin: -3px 0 20px; color: var(--ink-soft); font-size: 14px; }
.support-strip { display: grid; grid-template-columns: minmax(180px, 0.7fr) 1fr auto; gap: 22px; align-items: center; margin-top: 48px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--support-bg); color: var(--support-ink); }
.support-strip .section-number { margin-bottom: 6px; color: var(--primary-dark); }
.support-strip strong { display: block; font-size: 17px; }
.support-strip p { margin: 0; color: var(--support-muted); font-size: 13px; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 38px 54px 52px; }
.site-footer strong { font-family: 'Barlow Condensed', sans-serif; font-size: 25px; font-weight: 600; }
.site-footer p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.footer-links { flex-wrap: wrap; gap: 16px; color: var(--ink-soft); font-size: 12px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--primary-dark); }

.lightbox { width: min(94vw, 1440px); max-width: none; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: oklch(0.08 0.02 255 / 0.84); }
.lightbox-content { display: grid; gap: 10px; }
.lightbox-content img { display: block; width: 100%; max-height: 84vh; object-fit: contain; border: 1px solid oklch(0.99 0.003 90 / 0.18); border-radius: var(--radius); background: var(--dark-panel); }
.lightbox-content p { margin: 0; color: var(--white); font-size: 13px; text-align: center; }
.lightbox-close { position: fixed; top: 18px; right: 24px; width: 42px; height: 42px; border: 1px solid oklch(0.99 0.003 90 / 0.3); border-radius: 50%; background: var(--dark-panel); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; }
.toast { position: fixed; z-index: 60; right: 20px; bottom: 20px; transform: translateY(20px); padding: 10px 14px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 160ms ease-out, transform 160ms ease-out; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero [data-reveal] { animation: hero-enter 420ms ease-out both; }
.hero .hero-index[data-reveal] { animation-delay: 80ms; }

@media (max-width: 980px) {
  :root { --rail: 210px; }
  h1 { font-size: 4.8rem; }
  .section-heading h2 { font-size: 3.6rem; }
  .hero { gap: 30px; padding-left: 32px; }
  .section-heading { padding-left: 32px; }
  .contact-section, .quickstart, .model-section, .protocol-section, .manual-section, .client-section, .examples-section, .faq-section { padding-right: 32px; padding-left: 32px; }
  .step-block { grid-template-columns: 1fr; }
  .step-copy { padding-left: 42px; }
  .step-copy h3 { max-width: 700px; }
  .tutorial-figure { max-width: 760px; }
  .download-panel { grid-template-columns: 1fr; }
  .download-panel .instruction-list { grid-column: auto; }
  .code-pair { grid-template-columns: 1fr; }
  .support-strip { grid-template-columns: 1fr 1fr; }
  .support-strip .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  .topbar-inner { width: min(100% - 28px, 620px); min-height: 62px; padding: 0; }
  .topbar-actions { gap: 10px; }
  .text-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .page-shell { display: block; width: 100%; }
  .chapter-rail { position: fixed; z-index: 19; top: 62px; right: 0; left: 0; display: none; height: auto; max-height: calc(100dvh - 62px); padding: 12px 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--mobile-nav-bg); box-shadow: var(--shadow-small); }
  .chapter-rail.is-open { display: block; }
  .rail-label { margin-bottom: 8px; }
  .chapter-rail nav { grid-template-columns: 1fr 1fr; gap: 2px; }
  .chapter-link { padding: 7px 8px; font-size: 12px; }
  .rail-footer { margin-top: 10px; }
  .section-band { padding: 62px 0; }
  .hero { display: block; min-height: auto; padding: 66px 24px 58px; }
  h1 { font-size: 4rem; }
  .section-heading h2 { font-size: 3rem; }
  .hero-lede { font-size: 16px; }
  .hero-index { display: flex; gap: 10px; align-items: baseline; margin-top: 34px; padding: 16px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .hero-index strong { margin: 0; font-size: 52px; }
  .contact-section, .quickstart, .model-section, .protocol-section, .manual-section, .client-section, .examples-section, .faq-section { padding-right: 24px; padding-left: 24px; }
  .section-heading { margin-bottom: 30px; padding-left: 24px; padding-right: 24px; }
  .section-heading h2 { font-size: 3rem; }
  .contact-layout, .manual-grid, .note-grid { grid-template-columns: 1fr; }
  .contact-facts { grid-template-columns: 1fr 1fr; }
  .route-line { display: flex; overflow-x: auto; align-items: stretch; padding-bottom: 8px; }
  .route-step { min-width: 148px; }
  .route-arrow { display: grid; min-width: 28px; place-items: center; }
  .step-block { padding: 34px 24px; }
  .step-block:first-child { padding-top: 0; }
  .step-copy { padding-left: 40px; }
  .tutorial-figure { width: 100%; }
  .protocol-table-wrap { margin-right: -24px; margin-left: -24px; border-right: 0; border-left: 0; border-radius: 0; }
  .detail-body .protocol-table-wrap { margin-right: 0; margin-left: 0; border: 1px solid var(--line); border-radius: var(--radius); }
  .detail-panel summary { padding: 18px 0; font-size: 15px; }
  .download-panel { padding: 22px 0; }
  .support-strip { grid-template-columns: 1fr; }
  .support-strip .button { grid-column: auto; width: 100%; }
  .site-footer { display: block; padding: 32px 24px 42px; }
  .footer-links { margin-top: 18px; }
  .lightbox { width: 96vw; }
  .lightbox-close { top: 8px; right: 10px; }
}

@media (max-width: 420px) {
  h1 { font-size: 3.55rem; }
  .section-heading h2 { font-size: 2.65rem; }
  .contact-facts { grid-template-columns: 1fr; }
  .contact-fact { min-height: auto; }
  .hero-actions .button { width: 100%; }
  .hero-meta { display: grid; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .hero [data-reveal] { animation: none; }
}
