:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-panel: #ffffff;
  --bg-panel-2: #dcebf8;
  --border: #d9dade;
  --accent: #0a6fd8;
  --accent-dark: #0756aa;
  --text: #1b1c1f;
  --text-muted: #6a6b70;
  --success: #1f8a4c;
  --warn: #b26a00;
  --error: #cf3a2f;
  --clear: transparent;
  --nav-bg: rgba(245,245,247,.82);
  --nav-line: rgba(27,28,31,.08);
  --dot-accent: rgba(10,111,216,.36);
  --dot-soft: rgba(10,111,216,.22);
  --halo: rgba(255,255,255,.78);
  --halo-0: rgba(255,255,255,0);
  --accent-ring: rgba(10,111,216,.24);
  --veil: rgba(27,28,31,.25);
  --mask-solid: #000000;
  --shadow-pop: 0 14px 36px rgba(27,28,31,.10);
  --shadow-fab: 0 6px 20px rgba(27,28,31,.08);
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-nav: 14px;
  --text-base: 16px;
  --text-lead: clamp(15px,1.2vw,17px);
  --text-h1: clamp(34px,3.4vw,48px);
  --text-h2: clamp(24px,2.4vw,32px);
  --text-h3: 22px;
  --text-feature: clamp(30px,4vw,48px);
  --radius-card: 18px;
  --radius-pill: 980px;
  --radius-sm: 10px;
  --radius-menu: 14px;
  --radius-logo: 7px;
  --radius-round: 50%;
  --radius-zero: 0;
  --radius-phone-sticker: 34px;
  --radius-phone: 26px;
  --radius-screen: 18px;
  --radius-pad-sticker: 32px;
  --radius-pad: 24px;
  --radius-pad-screen: 12px;
  --radius-detail: 4px;
  --radius-control: 2px;
  --radius-link: 6px;
  --radius-shot: 10px;
  --die: 8px;
  --nav-h: 52px;
  --container: 1200px;
  --reading: 800px;
  --header-container: 1280px;
  --gutter: 24px;
  --section-space: clamp(56px,7vw,96px);
  --track-tight: -.02em;
  --track-brand: -.01em;
  --track-button: -.005em;
  --track-label: .04em;
  --motion-fast: .18s;
  --motion-base: .2s;
  --motion-reveal: .55s;
  --swatch-height: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg, .icon, .eyebrow-dot { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: var(--accent-ring); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
::selection { background: var(--bg-panel-2); color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-tight);
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--text-h1); line-height: 1.12; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p, ul, ol, figure, blockquote { margin-top: 0; }
code, pre, kbd { 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(--radius-sm);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; font-size: var(--text-sm); }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.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); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-white { background: var(--bg-panel); color: var(--text); }
.section-blue { background: linear-gradient(to bottom,var(--bg-panel-2),var(--bg)); color: var(--text); }
.section-gray { background: var(--bg); color: var(--text); }
.section-title { margin: 0 0 16px; }
.section-intro { max-width: 660px; margin: 0 auto 36px; color: var(--text-muted); }
.center { text-align: center; }
.keep { white-space: nowrap; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.stack > * + * { margin-top: 20px; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.grid > *, .wrap > *, .reading > *, .prose > *, .footer-grid > * { min-width: 0; }
.prose { min-width: 0; line-height: 1.85; }
.prose h2 { margin-top: 2.5em; margin-bottom: .8em; }
.prose h3 { margin-top: 1.8em; }
.prose p { margin-bottom: 1.2em; }
.prose a:not(.btn):not(.store-button) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose li + li { margin-top: .5em; }
.prose :is(div,section,article) { min-width: 0; }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--bg-panel); font-size: var(--text-nav);
}
.skip:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; padding: 10px 24px;
  border-radius: var(--radius-pill); border: 1px solid var(--accent);
  background: var(--clear); color: var(--accent);
  font-size: var(--text-base); font-weight: var(--weight-medium); letter-spacing: var(--track-button);
  text-align: center; line-height: 1.4;
  transition: background-color var(--motion-base),color var(--motion-base),border-color var(--motion-base);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--bg-panel); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--bg-panel); }
.btn-ghost { background: var(--clear); color: var(--accent); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--bg-panel); color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg); border-color: var(--border); color: var(--text-muted); }
.btn.is-focus { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.card, .panel {
  min-width: 0; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--bg-panel); color: var(--text);
}
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.grouped-list { margin: 0; padding: 0; list-style: none; border-radius: var(--radius-card); background: var(--bg); color: var(--text); }
.grouped-list li + li { border-top: 1px solid var(--border); }
.grouped-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px; }
.grouped-list a::after { content: "›"; flex-shrink: 0; color: var(--text-muted); }
.reveal { opacity: 1; }
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity var(--motion-reveal),transform var(--motion-reveal); }
.reveal.shown { opacity: 1; transform: none; }

/* 头部独立宽版心，不复用阅读版心。 */
#site-header, .topbar { position: sticky; top: 0; z-index: 80; }
.topbar {
  height: var(--nav-h); background: var(--nav-bg); color: var(--text);
  border-bottom: 1px solid var(--nav-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
#site-header .topbar { position: relative; }
.topbar-inner {
  position: relative; display: flex; align-items: center; gap: 24px; height: 100%;
  width: 100%; max-width: min(100%,calc(var(--header-container) + var(--gutter) * 2));
  margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; border-radius: var(--radius-logo); background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 15px; font-weight: var(--weight-bold); letter-spacing: var(--track-brand); }
.brand-name span { margin-left: 1px; font-weight: var(--weight-medium); color: var(--text-muted); }
.desktop-nav { min-width: 0; margin-left: auto; }
.nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-link, .nav-more-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 32px; padding: 4px 12px;
  border-radius: var(--radius-pill); border: 0;
  background: var(--clear); color: var(--text-muted);
  font-size: var(--text-nav); white-space: nowrap;
}
.nav-link:hover, .nav-more-btn:hover { color: var(--text); }
[aria-current="page"].nav-link, [aria-current="page"].menu-link { color: var(--text); font-weight: var(--weight-semibold); }
.nav-more-btn svg { width: 10px; height: 10px; }
.nav-more, .language-picker { position: relative; }
.nav-menu, .language-menu {
  position: absolute; top: calc(100% + 10px); z-index: 3;
  min-width: 224px; padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-menu);
  background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-pop);
}
.nav-menu { left: 50%; transform: translateX(-50%); }
.language-menu { right: 0; min-width: 180px; }
.menu-group + .menu-group { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--border); }
.menu-label { display: block; padding: 6px 10px 2px; font-size: 11px; letter-spacing: var(--track-label); color: var(--text-muted); }
.menu-link { display: block; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-sm); }
.menu-link:hover { background: var(--bg); color: var(--text); }
.menu-link strong { display: block; font-size: var(--text-nav); font-weight: var(--weight-semibold); }
.menu-link small { display: block; margin-top: 1px; font-size: var(--text-xs); color: var(--text-muted); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 30px; padding: 4px 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--bg-panel); color: var(--text); font-size: var(--text-sm);
  white-space: nowrap;
}
.lang-caret { color: var(--text-muted); font-size: 11px; }
.lang-short { display: none; }
.hamburger {
  display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 0; border-radius: var(--radius-sm); background: var(--clear); color: var(--text);
}
.hamburger svg { width: 24px; height: 24px; }
.mobile-drawer, .nav-veil { display: none; }
.preview-more { position: relative; }
.preview-more > summary { list-style: none; cursor: pointer; }
.preview-more > summary::-webkit-details-marker { display: none; }

.site-footer { padding-top: 64px; padding-bottom: 96px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: var(--text-nav); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr .7fr; gap: 40px; }
.footer-brand p { max-width: 310px; margin-top: 16px; line-height: 1.8; }
.footer-heading { margin: 0 0 16px; color: var(--text); font-size: var(--text-nav); font-weight: var(--weight-semibold); }
.footer-links { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding-block: 3px; }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--text-xs); }
.footer-bottom p { margin: 0; }
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .hamburger { display: inline-flex; }
  .topbar { height: 64px; }
  .lang { min-height: 44px; }
  .mobile-drawer:not([hidden]) {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 4;
    display: block; padding: 16px var(--gutter) 24px;
    max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
    border-bottom: 1px solid var(--border); background: var(--bg-panel); color: var(--text);
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .mobile-drawer a[aria-current="page"] { color: var(--accent-dark); font-weight: var(--weight-semibold); }
  .mobile-language-list { margin-top: 20px; }
  .nav-veil:not([hidden]) { display: block; position: fixed; inset: 64px 0 0; z-index: 79; border: 0; background: var(--veil); color: var(--text); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --text-h1: clamp(24px,4vw,30px); --gutter: 20px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .brand-name { font-size: var(--text-sm); }
  .brand-name span { display: none; }
  .topbar-inner { gap: 8px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .card, .panel { padding: 20px; }
  .tilt, .st-phone, .strip-1, .strip-2, .strip-3 { transform: none !important; }
  .site-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.reveal-pending { opacity: 1; transform: none; }
}