:root {
  --bg: #FCFCFB;
  --bg-panel: #F5F5F3;
  --bg-panel-2: #ECECEA;
  --surface: #FFFFFF;
  --border: #E2E2DF;
  --border-strong: #CBCBC7;
  --accent: #0B7285;
  --accent-dark: #075866;
  --accent-soft: #E3EFF1;
  --text: #1B1D1E;
  --text-muted: #5E6366;
  --text-faint: #8C9194;
  --success: #2E8540;
  --warn: #B7791F;
  --warn-ink: #805315;
  --error: #C53030;
  --field-a: #D6DFE0;
  --field-b: #E8E3DA;
  --field-glow: rgba(255, 255, 255, .46);
  --wind: #FFFFFF;
  --clear: transparent;
  --veil: rgba(27, 29, 30, .24);
  --shadow-window: 0 1px 2px rgba(27, 29, 30, .04), 0 12px 30px -14px rgba(27, 29, 30, .18);
  --shadow-knob: 0 1px 2px rgba(27, 29, 30, .2);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --nav-h: 64px;
  --container: 1120px;
  --header-container: 1280px;
  --reading: 800px;
  --gutter: 24px;
  --section-space: 88px;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --duration: .16s;
  --reveal-duration: .5s;
  --z-header: 40;
  --z-veil: 39;
  --z-fab: 30;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg, .icon { flex-shrink: 0; }
button svg, a svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  margin: 0 0 20px;
  line-height: 1.25;
  text-wrap: balance;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.16; }
h2 { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
p { margin: 0 0 16px; }
strong, b { font-weight: var(--weight-strong); }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 6px; }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .875em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
  line-height: 1.8;
  -webkit-overflow-scrolling: touch;
}
pre code { font-size: 13px; white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--panel { background: var(--bg-panel); color: var(--text); }
.section-head { margin-bottom: 40px; text-align: center; }
.section-head p { max-width: 720px; margin-inline: auto; color: var(--text-muted); }
.em { color: var(--accent); }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.grid2, .grid3 { display: grid; gap: 24px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 > *, .grid3 > *, .wrap > *, .prose > * { min-width: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--surface);
  border-radius: var(--radius);
}
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--clear);
  font-size: 15.5px;
  font-weight: var(--weight-medium);
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration), border-color var(--duration), color var(--duration);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--accent); color: var(--surface); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--surface); }
.btn--line { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn--line:hover, .btn--line.is-hover { color: var(--accent); border-color: var(--accent); }
.btn:active { border-color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); border-color: var(--border-strong); color: var(--text-muted); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.card, .panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.panel { padding: 32px; background: var(--bg-panel); color: var(--text); }
.card--content { padding: 24px; }
.card:hover, .panel:hover { border-color: var(--border-strong); }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose :is(h2, h3, h4)[id] { scroll-margin-top: 24px; }
.reveal { opacity: 1; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(12px); }
.reveal-ready .reveal { transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

/* 页头使用独立的宽版心，不复用正文 wrap。 */
.topbar { position: relative; height: var(--nav-h); z-index: var(--z-header); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.topbar__inner {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--header-container) + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-size: 16.5px; font-weight: var(--weight-medium); letter-spacing: -.005em; }
.mainnav { min-width: 0; margin-left: auto; }
.mainnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.mainnav li { margin: 0; }
.mainnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  white-space: nowrap;
  color: var(--text-muted);
  transition: background-color var(--duration), color var(--duration);
}
.mainnav a:hover { background: var(--bg-panel); color: var(--text); }
.mainnav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: var(--weight-medium); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13.5px;
  white-space: nowrap;
}
.lang:hover { border-color: var(--border-strong); color: var(--text); }
.lang svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lang__caret { font-size: 11px; color: var(--text-muted); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-window);
}
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--text-muted); border-radius: var(--radius-sm); }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: var(--z-veil); border: 0; background: var(--veil); color: var(--text); }
.preview-mobile { display: none; }

/* 用户确认的静态首屏。 */
.hero {
  min-height: calc(100svh - var(--nav-h) - 40px);
  display: grid;
  align-content: center;
  padding: 28px 24px 24px;
  overflow-x: clip;
}
.hero__inner { width: 100%; max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.eyebrow { margin: 0; font-size: 12.5px; line-height: 16px; letter-spacing: .16em; color: var(--text-muted); }
.hero__title { margin: 16px 0 0; font-family: var(--font-display); font-weight: var(--weight-normal); font-size: clamp(30px, 2.4vw + 12px, 46px); line-height: 1.16; letter-spacing: -.018em; text-wrap: balance; }
.hero__lead { margin: 14px 0 0; max-width: 820px; font-size: 16.5px; line-height: 1.65; color: var(--text-muted); }
.hero__lead strong { font-weight: var(--weight-medium); color: var(--text); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; justify-content: center; flex-wrap: wrap; row-gap: 6px; }
.facts li { padding: 0 18px; margin: 0; font-size: 13.5px; line-height: 20px; color: var(--text-muted); }
.facts li + li { border-left: 1px solid var(--border); }
.facts b { margin-left: 6px; font-weight: var(--weight-medium); color: var(--accent); font-variant-numeric: tabular-nums; }
.facts b.mono { font-family: var(--font-mono); font-size: 13px; }
.facts .facts__count b { margin: 0 4px; }
.platforms { list-style: none; padding: 0; margin: 14px 0 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.platforms li { margin: 0; }
.platforms__label { margin-right: 6px; font-size: 12.5px; letter-spacing: .08em; color: var(--text-muted); }
.platforms a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-muted); font-size: 13px; }
.platforms a:hover { border-color: var(--border-strong); color: var(--accent); }
.platforms svg { width: 14px; height: 14px; }
.stage { margin: 24px 0 0; width: 100%; padding: 12px; border-radius: var(--radius); background: var(--bg-panel); color: var(--text); }
.field {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  padding: 30px 32px 28px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse 60% 70% at 18% 0%, var(--field-glow), var(--clear) 70%), linear-gradient(118deg, var(--field-a), var(--field-b));
  color: var(--text);
}
.wind { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; pointer-events: none; }
.wind path { fill: none; stroke: var(--wind); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.win-wrap { position: relative; width: min(860px, 100%); min-width: 0; text-align: left; }
.ghost { position: absolute; inset: 0; transform: translate(24px, -20px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel-2); color: var(--text); }
.ghost::before { content: ""; position: absolute; left: 0; right: 0; top: 37px; border-top: 1px solid var(--border); }
.win { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-window); overflow: hidden; }
.win__bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text-muted); }
.win__logo { width: 16px; height: 16px; display: block; }
.win__title { font-size: 12.5px; font-weight: var(--weight-medium); }
.win__ctrl { margin-left: auto; display: flex; gap: 2px; }
.win__ctrl span { width: 30px; height: 24px; display: grid; place-items: center; color: var(--text-muted); }
.win__ctrl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.win__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.win__side { padding: 14px 10px; border-right: 1px solid var(--border); background: var(--bg-panel); color: var(--text-muted); }
.win__side ul { list-style: none; margin: 0; padding: 0; }
.win__side li { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13.5px; margin: 0; }
.win__side li + li { margin-top: 2px; }
.win__side svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.win__side .is-current { background: var(--accent-soft); color: var(--accent-dark); font-weight: var(--weight-medium); }
.win__main { padding: 18px 22px 20px; min-width: 0; }
.pane-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.pane-head__title { font-size: 16px; line-height: 22px; font-weight: var(--weight-medium); }
.pane-head__path { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.win .grid2 { gap: 12px; }
.card--wide { margin-top: 12px; }
.card__label { padding: 9px 14px 2px; font-size: 11.5px; line-height: 16px; letter-spacing: .06em; color: var(--text-muted); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 14px; }
.row + .row { border-top: 1px solid var(--border); }
.row--tall { min-height: 48px; }
.row__name { font-size: 13.5px; color: var(--text); }
.row__hint { margin-left: 8px; font-size: 11.5px; color: var(--text-muted); }
.tg { position: relative; flex-shrink: 0; width: 32px; height: 18px; border-radius: var(--radius-pill); background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border-strong); }
.tg::after { content: ""; position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: var(--radius-round); background: var(--surface); color: var(--text); box-shadow: var(--shadow-knob); }
.tg.is-on { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.tg.is-on::after { transform: translateX(14px); }
.input { display: flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 12.5px; }
.input--port { width: 84px; flex-shrink: 0; justify-content: flex-start; }
.input--url { flex: 1; min-width: 0; max-width: 360px; color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; height: auto; min-height: 28px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--bg-panel-2); color: var(--text-muted); }
.seg span { padding: 3px 16px; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 20px; }
.seg .is-on { background: var(--surface); color: var(--text); font-weight: var(--weight-medium); box-shadow: 0 0 0 1px var(--border); }
.sub { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.btn-mini { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--surface); font-size: 12.5px; font-weight: var(--weight-medium); flex-shrink: 0; }
.next { padding: 0 24px 96px; }
.next__inner { max-width: var(--container); margin: 0 auto; padding-top: 72px; border-top: 1px solid var(--border); text-align: center; }
.next__title { margin: 0; font-size: 32px; }
.next__lead { margin: 14px auto 0; max-width: 720px; color: var(--text-muted); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text-muted); padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.25fr .7fr; gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { margin-top: 18px; max-width: 290px; font-size: 14px; }
.footer-title { margin: 0 0 16px; color: var(--text); font-size: 14px; font-weight: var(--weight-medium); }
.footer-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.footer-list a { display: inline-block; padding-block: 4px; color: var(--text-muted); }
.footer-list a:hover { color: var(--accent); }
.footer-list li { margin: 0; }
.footer-list a[aria-current="true"] { color: var(--accent-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); }

@media (max-width: 1279px) {
  .topbar__inner { gap: 16px; }
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    display: block;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-window);
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer li { margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 16px; border-radius: var(--radius); color: var(--text-muted); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
  .mobile-drawer__label { margin: 16px 16px 8px; font-size: 12px; color: var(--text-muted); }
  .preview-mobile { display: block; margin-left: auto; }
  .preview-mobile summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; cursor: pointer; }
  .preview-mobile summary::-webkit-details-marker { display: none; }
}
@media (max-width: 980px) {
  .win__body { grid-template-columns: 140px minmax(0, 1fr); }
  .pane-head__path { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  .grid3 { grid-template-columns: 1fr; }
  .hero__title { font-size: 28px; }
}
@media (max-width: 760px) {
  .brand__name { display: none; }
  .footer-brand .brand__name { display: inline; }
  .hero { padding: 24px 16px 20px; }
  .hero__lead { font-size: 15px; }
  .facts li { padding: 0 12px; }
  .field { padding: 24px 14px; }
  .ghost, .win__side { display: none; }
  .win__body, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .row--sub { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .sub { flex-basis: 100%; justify-content: flex-start; }
  .input--url { max-width: none; }
  .next__title { font-size: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 56px; }
  .wrap { padding-inline: var(--gutter); }
  .tilt, [data-tilt] { transform: none !important; }
  .panel { padding: 24px; }
  .win__main { padding: 16px 12px; }
  .win__ctrl span { width: 20px; }
  .row { gap: 8px; padding-inline: 10px; }
  .row__hint { display: block; margin-left: 0; }
  .seg span { padding-inline: 10px; }
  .facts { max-width: 360px; }
  .facts li { padding-inline: 8px; font-size: 12px; }
  .facts li:nth-child(3) { border-left: 0; }
  .platforms { gap: 6px; }
  .platforms a { padding-inline: 8px; font-size: 12px; }
  .platforms__label { display: none; }
  .footer-grid { gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}