:root {
  color: #10212b;
  background: #f6f2e8;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #10212b;
  --muted: #4a6069;
  --line: #d8d9cf;
  --paper: #fffdf7;
  --green: #a5e87c;
  --cyan: #08677c;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--cyan); text-underline-offset: .19em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #087f9a; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.guide-header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.guide-bar { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-context { padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.quiet-button { border: 0; background: transparent; padding: 8px 0; color: var(--cyan); cursor: pointer; font-size: .875rem; }
.guide-layout { display: grid; grid-template-columns: 228px minmax(0, 740px); gap: clamp(28px,5vw,74px); align-items: start; padding-block: 48px 90px; }
.guide-layout aside { position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow: auto; }
.chapter-list summary { display: none; }
.chapter-list ul { list-style: none; margin: 0; padding: 0; }
.chapter-list ul ul { margin-inline-start: 13px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.chapter-list a { display: block; padding: 7px 9px; border-radius: 6px; text-decoration: none; color: var(--muted); line-height: 1.45; font-size: .92rem; }
.chapter-list nav > ul > li > a { font-size: 1rem; font-weight: 650; }
.chapter-list a[aria-current], .chapter-list a:hover { color: var(--ink); background: #e0ecd5; }
.guide-article { min-width: 0; font-size: 1rem; line-height: 1.82; overflow-wrap: anywhere; }
.guide-article h1, .gate h1 { margin: 0 0 18px; font-size: clamp(1.8rem,4vw,3rem); line-height: 1.18; letter-spacing: -.04em; }
.guide-article h2 { margin-top: 2.5em; border-top: 1px solid var(--line); padding-top: 20px; font-size: 1.55rem; line-height: 1.35; }
.guide-article h3 { margin-top: 1.8em; font-size: 1.18rem; line-height: 1.4; }
.guide-article h2, .guide-article h3 { scroll-margin-top: 96px; }
.guide-article li + li { margin-top: .45em; }
.guide-article blockquote { margin: 1em 0; padding: .55em 1.1em; border-inline-start: 3px solid #6fa64a; background: var(--paper); }
.guide-article table { width: 100%; border-collapse: collapse; }
.guide-article th, .guide-article td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; text-align: left; }
.guide-article th { background: #e8eddf; }
.case-demo { margin-block: 12px 28px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.case-demo summary { cursor: pointer; color: var(--cyan); font-weight: 650; }
.case-demo video { display: block; width: 100%; max-height: 66vh; background: #07171f; margin-block: 14px 8px; }
.gate { padding-block: clamp(64px,12vh,148px); }
.gate-card { max-width: 570px; padding: clamp(24px,5vw,48px); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.gate-card p { line-height: 1.7; color: var(--muted); }
.gate-card form { margin-block: 28px 15px; }
.gate-card label { display: block; margin-bottom: 8px; font-weight: 700; }
.gate-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.gate-fields input, .gate-fields button { min-height: 48px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; }
.gate-fields input { flex: 1 1 140px; min-width: 0; background: white; color: var(--ink); }
.gate-fields button { background: var(--green); border-color: transparent; cursor: pointer; color: var(--ink); font-weight: 750; }
.gate-error:not(:empty) { color: #a32e1b; }
.gate-error:empty { display: none; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .guide-layout { display: block; padding-block: 20px 64px; }
  .guide-layout aside { position: static; margin-bottom: 26px; max-height: none; }
  .chapter-list { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
  .chapter-list summary { display: list-item; cursor: pointer; }
  .chapter-list nav { margin-top: 8px; }
  .guide-article td, .guide-article th { padding: 8px 6px; }
}
