:root {
  --bg: #ffffff;
  --bg-panel: #fbf7e8;
  --bg-panel-2: #8ccbf5;
  --border: #e4e8ef;
  --accent: #166ff5;
  --accent-dark: #0c4fc4;
  --accent-hi: #3b87f8;
  --text: #0e1a33;
  --text-muted: #5b6577;
  --success: #22b35e;
  --warn: #e9a019;
  --error: #e5484d;
  --accent-08: rgba(22, 111, 245, .08);
  --accent-12: rgba(22, 111, 245, .12);
  --accent-16: rgba(22, 111, 245, .16);
  --accent-30: rgba(22, 111, 245, .30);
  --dot-proxy: #166ff5;
  --dot-direct: #8fbbfa;
  --dot-reject: #0a3a91;
  --sky-top: #8ccbf5;
  --sky-mid: #ade0f8;
  --sky-bottom: #d6eefc;
  --text-on-sky: #1b2f52;
  --muted-on-sky: #3a547b;
  --line-on-sky: rgba(27, 47, 82, .22);
  --chip-bg: rgba(255, 255, 255, .74);
  --chip-edge: rgba(255, 255, 255, .96);
  --mark-on-sky: rgba(255, 255, 255, .78);
  --surface-sunk: #f3f5f9;
  --surface-tint: #f8fafd;
  --separator: #edf0f5;
  --chevron: #b6bdc9;
  --grass-far: #c2e38e;
  --grass-far-rise: #aad473;
  --grass-far-lip: #d8f0ae;
  --grass-mid: #91cc60;
  --grass-mid-rise: #78b84b;
  --grass-mid-lip: #abdb7f;
  --grass-near: #5aae47;
  --grass-near-rise: #46983a;
  --grass-near-lip: #76c35f;
  --water: #f1f9ff;
  --water-edge: #6fb8ea;
  --cream-line: #e9dfbd;
  --veil: rgba(14, 26, 51, .24);
  --clear: transparent;
  --shadow-sm: 0 1px 2px rgba(14, 26, 51, .06);
  --shadow-chip: 0 1px 2px rgba(14, 26, 51, .05), 0 4px 10px -6px rgba(14, 26, 51, .18);
  --shadow-card: 0 1px 2px rgba(14, 26, 51, .05), 0 12px 24px -12px rgba(14, 26, 51, .14), 0 40px 80px -28px rgba(14, 26, 51, .30);
  --shadow-float: 0 2px 4px rgba(14, 26, 51, .08), 0 18px 30px -12px rgba(14, 26, 51, .26), 0 38px 64px -20px rgba(14, 26, 51, .34);
  --shadow-sheet: 0 18px 36px -18px rgba(14, 26, 51, .22);
  --shadow-btn: 0 14px 28px -10px rgba(12, 79, 196, .55);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 1);
  --ring-edge: rgba(14, 26, 51, .06);
  --radius-canvas: 40px;
  --radius-mobile: 28px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-logo-preview: 9px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lead: 20px;
  --title-1: clamp(34px, 3.2vw + 2px, 48px);
  --title-2: clamp(26px, 2.8vw, 36px);
  --title-3: 22px;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --leading-body: 1.75;
  --leading-title: 1.15;
  --gutter: clamp(16px, 3vw, 32px);
  --content-w: 1120px;
  --reading-w: 800px;
  --nav-h: 72px;
  --deck-w: 860px;
  --side-pull: min(230px, calc((100vw - 900px) / 2));
  --section-space: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: 180ms;
  --reveal-duration: 650ms;
}
*, *::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: var(--weight-normal) var(--text-base)/var(--leading-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: var(--accent-12); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration-thickness: 1px; }
button { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }
::selection { background: var(--accent-16); color: var(--text); }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-title);
  letter-spacing: -.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--title-1); }
h2 { font-size: var(--title-2); }
h3 { font-size: var(--title-3); }
h4 { font-size: var(--text-base); font-weight: var(--weight-bold); }
small { font-size: var(--text-xs); }
strong { font-weight: var(--weight-bold); }
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-md);
  background: var(--surface-tint);
  color: var(--text);
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; font-size: var(--text-sm); }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-w) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-heading { max-width: 780px; margin-bottom: 32px; }
.section-heading p { margin-top: 16px; color: var(--text-muted); }
.section-heading.center { margin-inline: auto; text-align: center; }
.stack > * + * { margin-top: 20px; }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .flex > *, .prose, .prose > *, .deck-body > * { min-width: 0; }
.flex { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.nowrap { white-space: nowrap; }
.kw, .accent { color: var(--accent-dark); font-style: normal; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--accent-dark);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 22px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-pill);
  background: var(--accent-dark);
  color: var(--bg);
  font-weight: var(--weight-bold);
  text-align: center;
  line-height: 1.4;
  transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.button svg { width: 20px; height: 20px; }
.button:hover, .button.is-hover { background: var(--dot-reject); color: var(--bg); transform: translateY(-1px); }
.button:active, .button.is-pressed { transform: translateY(1px); }
.button.secondary { background: var(--bg); color: var(--accent-dark); border-color: var(--border); box-shadow: var(--shadow-sm); }
.button.secondary:hover { background: var(--surface-sunk); color: var(--accent-dark); }
.button:disabled, .button[aria-disabled="true"] { background: var(--surface-sunk); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; transform: none; box-shadow: none; }
.card, .panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.card.raised { box-shadow: var(--shadow-card); }
.card p { margin-top: 12px; color: var(--text-muted); }
.card .text-link { display: inline-block; margin-top: 18px; }
.cream-panel {
  position: relative;
  isolation: isolate;
  margin-inline: 16px;
  border-radius: var(--radius-canvas);
  background: var(--bg-panel);
  color: var(--text);
  overflow-x: clip;
}
.cream-panel::before, .cream-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(45deg, var(--clear) 49.7%, var(--cream-line) 50%, var(--clear) 50.3%) left top / 220px 180px no-repeat,
    linear-gradient(-45deg, var(--clear) 49.7%, var(--cream-line) 50%, var(--clear) 50.3%) right top / 220px 180px no-repeat;
}
.cream-panel::after { transform: scaleY(-1); }
.sky-band {
  padding: 32px;
  border-radius: var(--radius-mobile);
  background: var(--bg-panel-2);
  color: var(--text-on-sky);
}
.prose { line-height: 1.9; }
.prose h2 { margin-top: 56px; margin-bottom: 20px; scroll-margin-top: 28px; }
.prose h3 { margin-top: 32px; margin-bottom: 16px; }
.prose p + p, .prose p + ul, .prose p + ol, .prose pre { margin-top: 20px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 10px; }
.prose a:not(.button):not(.app-store-button) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose :not(pre) > code { background: var(--surface-sunk); color: var(--text); border-radius: var(--radius-xs); padding: .1em .3em; }
.prose img { height: auto; }
.prose div, .prose section { min-width: 0; max-width: 100%; }
.reveal { opacity: 1; transform: none; }
.reveal-pending .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-pending .reveal { transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease); }

/* 页头使用独立的宽版心，正文版心不参与导航布局。 */
#site-header { position: relative; z-index: 100; }
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--text);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; flex-shrink: 1; line-height: 1.3; }
.brand-name { min-width: 0; overflow-wrap: anywhere; }
.brand-logo { display: block; width: 34px; height: 34px; border-radius: var(--radius-circle); flex-shrink: 0; }
.brand-name { font: var(--weight-display) 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.nav { min-width: 0; margin-left: auto; }
.nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  line-height: 1.4;
  transition: color var(--duration), background-color var(--duration);
}
.nav-link:hover { background: var(--surface-sunk); color: var(--text); }
.nav-link.is-current { background: var(--accent-12); color: var(--accent-dark); font-weight: var(--weight-bold); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font: var(--weight-medium) var(--text-sm)/1 var(--font-body);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.lang svg { width: 16px; height: 16px; color: var(--text-muted); }
.lang-short { display: none; }
.language-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6;
  width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.language-list a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); }
.language-list a:hover, .language-list a[aria-current="true"] { background: var(--accent-08); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-drawer { display: none; }
.menu-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 1; border: 0; background: var(--veil); color: var(--text); }
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 28px; background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.25fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { max-width: 330px; margin-top: 18px; font-size: var(--text-sm); color: var(--text-muted); }
.footer-title { font-size: var(--text-sm); font-weight: var(--weight-bold); margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 8px; }
.footer-list a { display: inline-block; padding-block: 4px; color: var(--text-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer-bottom { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; font-size: var(--text-xs); color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { padding-block: 8px; }
@media (max-width: 1279px) {
  .nav-desktop { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: grid; }
  .menu-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 4;
    max-height: calc(100dvh - var(--nav-h));
    padding: 16px var(--gutter) 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-sheet);
  }
  .menu-drawer ul { list-style: none; padding: 0; margin: 0; }
  .menu-drawer a { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-md); line-height: 1.5; }
  .drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .drawer-label { margin: 0 16px 8px; font-size: var(--text-xs); color: var(--text-muted); }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 6.8vw, 30px); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .cream-panel { margin-inline: 8px; border-radius: var(--radius-mobile); }
}
@media (max-width: 640px) {
  .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .topbar { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: var(--text-sm); }
  .brand-logo { width: 30px; height: 30px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .card, .panel { padding: 22px; }
  .tilt, .verify, .buyout { transform: none !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .sky-band { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending .reveal:not(.shown) { opacity: 1; transform: none; }
}