:root {
  color-scheme: dark;
  --bg: #07080A;
  --bg-rgb: 7 8 10;
  --bg-panel: #0E1014;
  --bg-panel-2: #15181D;
  --bg-raise: #1B1E24;
  --border: #23262D;
  --border-soft: #191C22;
  --accent: #FF5467;
  --accent-rgb: 255 84 103;
  --accent-dark: #C9374A;
  --accent-dark-rgb: 201 55 74;
  --text: #ECEDEF;
  --text-muted: #8B9099;
  --text-dim: #5D626B;
  --success: #4FD18B;
  --warn: #F2B84B;
  --error: #E5484D;
  --white: #FFFFFF;
  --chrome-dot: #2C3038;
  --hl: rgb(255 255 255 / .05);
  --hl-strong: rgb(255 255 255 / .085);
  --tint: rgb(255 255 255 / .018);
  --shade-rgb: 0 0 0;
  --clear: transparent;

  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "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", Menlo, Consolas, monospace;

  --r-window: 20px;
  --r-container: 24px;
  --r-card: 16px;
  --r-btn: 12px;
  --r-field: 8px;
  --r-key: 6px;
  --r-menu: 7px;
  --r-tool: 10px;
  --r-pill: 999px;
  --r-round: 50%;
  --r-indicator: 2px;
  --gutter: clamp(16px, 3vw, 32px);
  --width-content: 1168px;
  --width-reading: 740px;
  --width-header: 1280px;
  --space-section: clamp(64px, 9vw, 132px);
  --shadow-panel: inset 0 1px 0 var(--hl), 0 24px 64px -32px rgb(var(--shade-rgb) / .85);
  --shadow-float: inset 0 1px 0 var(--hl-strong), 0 50px 90px -20px rgb(var(--shade-rgb) / .92), 0 18px 36px -12px rgb(var(--shade-rgb) / .72);
  --speed: .2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 28px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { color: var(--text); }
button { background: var(--bg-panel); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg, .badge-dot, .tl-dot, .sw { flex-shrink: 0; }
button svg, a svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--r-field); }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 21px; line-height: 1.35; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
code, pre, kbd, samp { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--width-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.reading { max-width: calc(var(--width-reading) + var(--gutter) * 2); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-title { margin: 0 0 24px; }
.section-intro { max-width: 680px; color: var(--text-muted); line-height: 1.8; }
.stack > * + * { margin-top: 24px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid > *, .wrap > *, .prose > *, .content-layout > * { min-width: 0; }
.panel, .card {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
}
.panel { border-radius: var(--r-container); padding: 32px; }
.card { border-radius: var(--r-card); padding: 24px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.keep { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.prose { line-height: 1.9; overflow-wrap: break-word; min-width: 0; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; scroll-margin-top: 32px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 8px; }
.prose :not(pre) > code { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-align: center;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease, color var(--speed) ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  border-color: rgb(var(--accent-rgb) / .72);
  background: linear-gradient(180deg, var(--bg-raise), var(--bg-panel-2));
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--hl-strong), 0 0 0 3px rgb(var(--accent-rgb) / .1), 0 0 26px -4px rgb(var(--accent-rgb) / .5), 0 10px 24px -12px rgb(var(--shade-rgb) / .9);
}
.btn-primary:hover, .btn-primary.is-hover {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 var(--hl-strong), 0 0 0 3px rgb(var(--accent-rgb) / .16), 0 0 34px -2px rgb(var(--accent-rgb) / .6), 0 10px 24px -12px rgb(var(--shade-rgb) / .9);
}
.btn-ghost { box-shadow: inset 0 1px 0 var(--hl); }
.btn-ghost svg { color: var(--text-muted); }
.btn-ghost:hover, .btn-ghost.is-hover { border-color: var(--text-dim); }
.btn:active, .btn.is-pressed { background: var(--bg); color: var(--text); box-shadow: inset 0 2px 6px rgb(var(--shade-rgb) / .6); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; color: var(--text-muted); border-color: var(--border); background: var(--bg-panel); box-shadow: none; }
.btn.is-focus { outline: 2px solid var(--text); outline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.masthead { position: relative; z-index: 30; padding: 14px 24px 0; }
.topbar {
  position: relative;
  z-index: 21;
  width: 100%;
  max-width: min(100%, calc(var(--width-header) + var(--gutter) * 2));
  height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--hl), 0 14px 36px -20px rgb(var(--shade-rgb) / .9);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; flex-shrink: 0; filter: drop-shadow(0 3px 10px rgb(var(--accent-rgb) / .32)); }
.desktop-nav { margin-left: auto; min-width: 0; height: 100%; }
.tabs {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  height: 100%;
}
.tabs li { height: 100%; }
.tabs a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; color: var(--text-muted); font-size: 14px; white-space: nowrap; transition: color var(--speed) ease; }
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: var(--r-indicator) var(--r-indicator) 0 0; background: var(--text); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-tool); background: var(--bg-panel); color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.lang:hover { color: var(--text); border-color: var(--text-dim); }
.lang svg { width: 15px; height: 15px; }
.lang-short { display: none; }
.language-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 184px; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-float); z-index: 5; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--r-field); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-raise); color: var(--text); }
.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(--r-btn); background: var(--bg-panel); color: var(--text); }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { position: absolute; z-index: 4; top: calc(100% + 10px); left: 0; right: 0; padding: 12px; max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-float); }
.mobile-drawer ul { display: block; list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 12px 16px; border-radius: var(--r-field); }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.drawer-label { margin: 12px 16px 6px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.nav-veil { position: fixed; z-index: 20; inset: 0; border: 0; border-radius: 0; padding: 0; background: rgb(var(--shade-rgb) / .7); color: var(--text); }

.site-footer { margin-top: 64px; padding-top: 64px; padding-bottom: 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { margin-top: 20px; max-width: 300px; color: var(--text-muted); line-height: 1.8; }
.footer-heading { margin: 0 0 16px; font-size: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 1; transform: none; }
.reveal.is-observed { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* 已确认的首屏：三层静态客户端窗口。 */
.hero { position: relative; isolation: isolate; overflow: hidden; overflow-x: clip; padding: 40px 32px 64px; text-align: center; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 88px; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0), var(--bg) 82%); }
.hero-copy { position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; max-width: 100%; padding: 4px 14px 4px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); box-shadow: inset 0 1px 0 var(--hl); font-size: 12.5px; }
.badge-dot { width: 6px; height: 6px; border-radius: var(--r-round); background: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .16), 0 0 10px rgb(var(--accent-rgb) / .6); }
.badge-sep { color: var(--text-muted); }
.hero h1 { margin: 20px auto 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.h1-line { display: block; }
.cta-row { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lede { max-width: 760px; margin: 18px auto 0; font-size: 15.5px; line-height: 1.55; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: 500; }
.protocols { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.protocols li { padding: 3px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); box-shadow: inset 0 1px 0 var(--hl); font: 12px/18px var(--font-mono); letter-spacing: .01em; }
.platforms { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
.platforms li + li { border-left: 1px solid var(--border); }
.platforms a { display: inline-flex; align-items: center; gap: 8px; padding: 3px 18px; font-size: 13px; color: var(--text-muted); }
.platforms a:hover { color: var(--text); }
.platforms svg { width: 15px; height: 15px; }
.device { position: relative; z-index: 1; width: min(92%, 1104px); margin: 46px auto 0; perspective: 1800px; perspective-origin: 50% 0%; }
.aura { position: absolute; left: -16%; bottom: -36%; width: 66%; height: 120%; z-index: 0; pointer-events: none; background: radial-gradient(55% 45% at 30% 70%, rgb(var(--accent-rgb) / .3), var(--clear) 72%), radial-gradient(34% 26% at 16% 90%, rgb(var(--accent-dark-rgb) / .38), var(--clear) 70%), linear-gradient(118deg, var(--clear) 34%, rgb(var(--accent-rgb) / .1) 50%, var(--clear) 64%); filter: blur(40px); transform: rotate(-10deg); }
.stage { position: relative; z-index: 1; text-align: left; transform: rotateX(8deg); transform-origin: 50% 0%; transform-style: preserve-3d; }
.win { position: relative; height: 310px; display: grid; grid-template-rows: 38px 36px 32px 1fr 44px; border: 1px solid var(--border); border-radius: var(--r-window); background: var(--bg-panel); color: var(--text); overflow: hidden; box-shadow: 0 64px 120px -40px rgb(var(--shade-rgb) / .92), 0 24px 48px -24px rgb(var(--shade-rgb) / .75), 0 0 0 1px rgb(var(--shade-rgb) / .4); }
.win-shade { position: absolute; inset-inline: 0; bottom: 0; height: 38%; pointer-events: none; background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0), rgb(var(--bg-rgb) / .42)); }
.titlebar { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border-soft); background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel)); color: var(--text); box-shadow: inset 0 1px 0 var(--hl-strong); }
.tl-dot { width: 11px; height: 11px; border-radius: var(--r-round); background: var(--chrome-dot); box-shadow: inset 0 0 0 1px var(--hl); }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--text-muted); letter-spacing: .01em; }
.menubar { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--border-soft); }
.menubar span { padding: 4px 10px; border-radius: var(--r-menu); font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.menubar .is-open { color: var(--text); background: var(--bg-panel-2); box-shadow: inset 0 0 0 1px var(--border); }
.thead { display: grid; grid-template-columns: 76px 180px 220px 76px 100px 110px 1fr; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border-soft); background: var(--tint); color: var(--text-muted); font-size: 12px; }
.thead span { padding: 0 10px; line-height: 14px; border-left: 1px solid var(--border-soft); white-space: nowrap; }
.thead span:first-child { border-left: 0; }
.tbody { position: relative; background-image: repeating-linear-gradient(to bottom, var(--clear) 0, var(--clear) 39px, var(--border-soft) 39px, var(--border-soft) 40px); }
.empty-row { min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 9px; padding-inline: 12px; font-size: 12.5px; color: var(--text-muted); }
.empty-row svg { width: 15px; height: 15px; }
.statusbar { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2)); color: var(--text); }
.sel { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--bg-panel-2); color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.sel b { font-weight: 400; color: var(--text); }
.caret { color: var(--text-muted); font-size: 11px; }
.tun { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.core { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); font: 11.5px var(--font-mono); white-space: nowrap; }
.core::before { content: ""; width: 5px; height: 5px; border-radius: var(--r-round); background: var(--text-muted); }
.sw { position: relative; width: 30px; height: 18px; border-radius: var(--r-pill); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--border); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: var(--r-round); background: var(--text-dim); }
.sw.is-on { background: var(--accent); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .9), 0 0 14px -2px rgb(var(--accent-rgb) / .65); }
.sw.is-on::after { left: 15px; background: var(--white); }
.win-edge { position: absolute; left: 3%; bottom: 0; width: 46%; height: 1px; pointer-events: none; background: linear-gradient(90deg, var(--clear), rgb(var(--accent-rgb) / .9) 34%, var(--clear)); box-shadow: 0 0 18px 1px rgb(var(--accent-rgb) / .45); transform: translateZ(1px); }
.sheet { position: absolute; top: -34px; right: -30px; width: 330px; padding-bottom: 6px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel-2); color: var(--text); transform: translateZ(56px); box-shadow: var(--shadow-float), 0 0 0 1px rgb(var(--shade-rgb) / .35); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 12px 0 16px; font-size: 13.5px; }
.sheet-close { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-key); color: var(--text-muted); }
.sheet-close svg { width: 10px; height: 10px; }
.sheet-tabs { display: flex; gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid var(--border); }
.sheet-tabs span { padding: 4px 10px; border-radius: var(--r-menu); font-size: 12px; color: var(--text-muted); }
.sheet-tabs .is-active { color: var(--text); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--border); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 6px 16px; font-size: 12.5px; }
.opt + .opt { border-top: 1px solid var(--border-soft); }
.field { display: inline-flex; align-items: center; gap: 8px; min-width: 72px; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-field); background: var(--bg-panel); color: var(--text); font: 12px var(--font-mono); }
.cmdbar { position: absolute; left: -40px; bottom: 62px; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 10px 8px 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel-2); color: var(--text); white-space: nowrap; transform: translateZ(44px); box-shadow: inset 0 1px 0 var(--hl-strong), 0 36px 70px -18px rgb(var(--shade-rgb) / .9), 0 14px 28px -10px rgb(var(--shade-rgb) / .7), 0 0 0 1px rgb(var(--shade-rgb) / .35); }
.cmd-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-field); background: var(--bg-raise); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.cmd-icon svg { width: 14px; height: 14px; }
.cmd-label { font-size: 13px; }
.cmd-sep { width: 1px; height: 18px; background: var(--border); }
.cmd-schemes { font: 12px var(--font-mono); color: var(--text-muted); }
.cmd-schemes i { font-style: normal; padding: 0 4px; }
.cmd-keys { display: flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 11px; color: var(--text-muted); }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--r-key); background: var(--bg-raise); color: var(--text-muted); box-shadow: inset 0 -1px 0 rgb(var(--shade-rgb) / .5), inset 0 1px 0 var(--hl); font: 11px var(--font-mono); }

@media (max-width: 1280px) {
  .topbar { gap: 12px; }
  .tabs a { padding-inline: 10px; font-size: 13px; }
  .tabs a[aria-current="page"]::after { left: 10px; right: 10px; }
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) .desktop-nav { display: none; }
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) .menu-toggle { display: inline-flex; }
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) .header-tools { margin-left: auto; }
}
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .masthead { padding: 10px 12px 0; }
  .topbar { padding: 0 8px 0 12px; }
  .hero { padding: 32px 16px 56px; }
  .device { width: 100%; }
  .thead { grid-template-columns: 60px 120px 1fr; }
  .thead span:nth-child(n+4) { display: none; }
  .sheet { right: -6px; width: 250px; top: -24px; }
  .cmdbar { left: -6px; }
  .cmd-schemes, .cmd-sep { display: none; }
  .sel:nth-of-type(2) { display: none; }
}
@media (max-width: 768px) {
  h1, .hero h1 { font-size: clamp(24px, 4vw, 30px); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 24px; }
}
@media (max-width: 640px) {
  .brand span { display: none; }
  .header-tools { margin-left: auto; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: 44px; }
  .hero .badge { gap: 7px; font-size: 11px; }
  .platforms a { padding-inline: 10px; font-size: 12px; }
  .stage, .tilt, [data-tilt] { transform: none; }
  .device { margin-top: 42px; }
  .sheet { position: relative; top: auto; right: auto; width: 100%; margin-top: 16px; transform: none; }
  .cmdbar { position: relative; bottom: auto; left: 0; gap: 8px; max-width: 100%; margin-top: 16px; transform: none; }
  .cmd-label { font-size: 12px; }
  .cmd-keys { margin-left: 0; }
  .win { height: 400px; grid-template-rows: 38px 36px 32px 1fr 62px; }
  .menubar { gap: 0; padding-inline: 4px; }
  .menubar span { padding-inline: 6px; font-size: 11px; }
  .thead { grid-template-columns: 54px 74px 1fr; padding-inline: 4px; }
  .thead span { padding-inline: 6px; }
  .empty-row { justify-content: flex-start; font-size: 11px; }
  .statusbar { flex-wrap: wrap; gap: 4px 8px; padding: 6px 8px; }
  .sel { font-size: 10px; padding-inline: 6px; }
  .tun { font-size: 10px; margin-left: 0; }
  .core { font-size: 10px; height: 20px; padding-inline: 6px; }
  .footer-grid { gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-observed { opacity: 1; transform: none; }
}