:root {
  color-scheme: dark;
  --bg: #1A1231;
  --bg-panel: #251A43;
  --bg-panel-2: #322458;
  --border: #4A3779;
  --accent: #FF4FB0;
  --accent-dark: #D02E8B;
  --text: #F4EFFF;
  --text-muted: #B2A5D6;
  --success: #B6F23A;
  --warn: #FFC24B;
  --error: #FF5C6C;
  --violet: #9A6BFF;
  --violet-deep: #6B43D9;
  --violet-shade: #45288F;
  --lilac: #D8CBFF;
  --ink: #140C27;
  --edge-end: #C9F24A;
  --white: #FFFFFF;
  --clear: transparent;
  --glow-violet: rgba(124,74,236,.42);
  --glow-pink: rgba(255,79,176,.38);
  --accent-tint: rgba(255,79,176,.1);
  --success-tint: rgba(182,242,58,.14);
  --success-ring: rgba(182,242,58,.2);
  --panel-veil: rgba(37,26,67,.72);
  --veil: rgba(8,3,20,.75);
  --shadow-card: 0 22px 44px -18px rgba(8,3,20,.92),0 6px 16px -8px rgba(8,3,20,.6);
  --shadow-cta: 0 0 0 3px var(--bg),0 0 0 4px var(--accent),0 16px 32px -14px var(--glow-pink);
  --edge-gradient: linear-gradient(135deg,var(--accent) 0%,var(--edge-end) 100%);
  --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",Menlo,Consolas,monospace;
  --r-card: 6px;
  --r-small: 4px;
  --r-tiny: 3px;
  --r-pill: 999px;
  --r-circle: 50%;
  --head-h: 72px;
  --gutter: 48px;
  --width-page: 1400px;
  --width-reading: 800px;
  --duration: .2s;
  --space-section: 96px;
}
*,*::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; min-width: 320px; min-height: 100vh; position: relative;
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
a,button { -webkit-tap-highlight-color: var(--accent-tint); }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img,svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.25; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(34px,3.35vw,48px); font-weight: 900; letter-spacing: -.015em; }
h2 { font-size: clamp(26px,2.4vw,36px); font-weight: 900; letter-spacing: -.01em; }
h3 { font-size: 22px; font-weight: 800; }
p { margin-block: 0 1.2em; }
code,kbd,pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%; overflow-x: auto; padding: 20px; border-radius: var(--r-card);
  background: var(--ink); color: var(--text); font-size: 14px; line-height: 1.8;
  overscroll-behavior-inline: contain;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
:focus-visible { outline: 2px solid var(--edge-end); outline-offset: 3px; border-radius: var(--r-small); }
[hidden] { display: none !important; }
:where(section,article,aside,main,nav,div,li) { min-width: 0; }
:where([id]) { scroll-margin-top: 24px; }
.wrap { width: 100%; max-width: var(--width-page); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: calc(var(--width-reading) + var(--gutter) * 2); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section__intro { max-width: 720px; margin-bottom: 40px; }
.section__intro h2 { margin: 12px 0 20px; }
.muted { color: var(--text-muted); }
.key-link,.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.keep { white-space: nowrap; }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.skip {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  padding: 0; border-radius: var(--r-card);
  background: var(--white); color: var(--bg); font-weight: 700;
}
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: 8px 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 24px; border: 1px solid var(--clear); border-radius: var(--r-card);
  font-family: var(--font-body); font-size: 16px; font-weight: 800; letter-spacing: .02em;
  line-height: 1.4; text-align: center;
  background: var(--bg-panel); color: var(--text);
  transition: transform var(--duration) ease,box-shadow var(--duration) ease,background-color var(--duration) ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--white); color: var(--bg); box-shadow: var(--shadow-cta); }
.btn--ghost { border: 1.5px solid var(--accent); background: var(--clear); color: var(--text); }
.btn:hover,.btn.is-hover { transform: translateY(-2px); }
.btn--ghost:hover { background: var(--accent-tint); color: var(--text); }
.btn:active,.btn.is-active { transform: translateY(1px); }
.btn:disabled,.btn[aria-disabled="true"] { opacity: .5; transform: none; box-shadow: none; pointer-events: none; }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.card,.panel {
  border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px;
  background: var(--bg-panel);
  color: var(--text); box-shadow: var(--shadow-card);
}
.card h3,.panel h3 { margin-top: 0; }
.card p:last-child,.panel p:last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.prose { line-height: 1.85; }
.prose h2 { margin-top: 2.4em; margin-bottom: .8em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.5em; }
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose :not(pre) > code { background: var(--bg-panel-2); color: var(--text); padding: .12em .35em; border-radius: var(--r-small); }
.reveal { opacity: 1; transform: none; }
.reveal-pending .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal-pending .reveal { transition: opacity .65s ease,transform .65s ease; }

/* 页头独立宽版心，不与阅读版心绑定。 */
.site-head,#site-header { position: relative; z-index: 50; height: var(--head-h); }
.site-head__in {
  width: 100%; max-width: min(100%,calc(1280px + var(--gutter) * 2));
  padding-inline: var(--gutter); margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; display: block; flex-shrink: 0; filter: drop-shadow(0 6px 14px var(--glow-pink)); }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.nav { margin-left: auto; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-card);
  background: var(--clear); color: var(--text); font: 700 15px/1 var(--font-body);
  letter-spacing: .02em; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: var(--r-tiny); background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform var(--duration) ease;
}
.nav__link:hover::after,.nav__link[aria-current="page"]::after,.nav__link.is-current::after { transform: scaleX(1); }
.nav__chev { width: 12px; height: 12px; flex-shrink: 0; transition: transform var(--duration) ease; }
.nav__more,.language { position: relative; }
.nav__panel,.language__panel {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 256px; padding: 8px;
  border: 1px solid var(--clear); border-radius: var(--r-card);
  background: linear-gradient(var(--bg-panel),var(--bg-panel)) padding-box,var(--edge-gradient) border-box;
  color: var(--text); box-shadow: var(--shadow-card);
}
.nav__panel a,.language__panel a {
  display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-small);
}
.nav__panel a:hover,.language__panel a:hover { background: var(--bg-panel-2); color: var(--text); }
.nav__panel a[aria-current="page"],.language__panel a[aria-current="true"] { outline: 1px solid var(--border); }
.nav__panel b { display: block; font-size: 14px; }
.nav__panel small { display: block; color: var(--text-muted); font-size: 12px; }
.head-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--clear); color: var(--text-muted); font: 600 14px/1.3 var(--font-body); cursor: pointer;
}
.lang:hover { border-color: var(--lilac); color: var(--text); }
.lang svg { width: 16px; height: 16px; flex-shrink: 0; }
.language__panel { min-width: 180px; }
.lang__short { display: none; }
.hamburger {
  display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--bg-panel); color: var(--text);
}
.hamburger svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute; top: var(--head-h); left: 0; right: 0; z-index: 3;
  max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--border);
  background: var(--bg-panel); color: var(--text);
}
.mobile-drawer a {
  display: flex; align-items: center; min-height: 48px; width: 100%; padding: 12px;
  border-radius: var(--r-small);
}
.mobile-drawer a:hover,.mobile-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.mobile-drawer__label { margin: 20px 12px 8px; color: var(--text-muted); font-size: 13px; }
.nav-veil { position: fixed; inset: var(--head-h) 0 0; z-index: 1; border: 0; background: var(--veil); color: var(--text); }
.preview-menu { position: relative; }
.preview-menu > summary { list-style: none; cursor: pointer; }
.preview-menu > summary::-webkit-details-marker { display: none; }
.preview-menu[open] .nav__chev { transform: rotate(180deg); }

/* 首屏：保留确认稿的尺度、左右比例和按钮位置。 */
main { position: relative; z-index: 1; }
.hero { position: relative; overflow-x: clip; min-height: calc(100svh - var(--head-h) - 56px); display: grid; align-content: center; padding-top: 24px; padding-bottom: 24px; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 56px; align-items: center; }
.hero__copy { grid-column: 2; grid-row: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 24px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--panel-veil); color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.badge__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--success); box-shadow: 0 0 0 4px var(--success-ring); }
.hero__title { margin: 0; font-weight: 900; font-size: clamp(30px,3.35vw,48px); line-height: 1.17; letter-spacing: -.015em; }
.hero__brand { display: block; margin-bottom: .8em; font-size: 16px; font-weight: 800; letter-spacing: .08em; color: var(--text-muted); }
.hero__brand::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-right: .6em; vertical-align: middle; border-radius: var(--r-tiny); background: var(--text-muted); }
.hero__line { display: block; }
.hero__tilt { display: inline-block; margin-left: .08em; color: var(--accent); font-style: normal; transform: rotate(-4deg) translateY(.08em); transform-origin: 10% 85%; text-shadow: 0 0 28px var(--glow-pink); }
.hero__lead { margin: 24px 0 0; max-width: 31em; font-size: 17px; line-height: 1.78; color: var(--text-muted); }
.hero__lead strong { color: var(--text); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.hero__meta { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px dashed var(--border); }
.meta__label { font: 600 12px var(--font-mono); letter-spacing: .1em; color: var(--text-muted); }
.plat-list,.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.plat { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1; transition: border-color var(--duration),transform var(--duration); }
.plat svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--lilac); }
.plat:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 26px; padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); font: 500 11.5px/1.4 var(--font-mono); color: var(--text-muted); overflow-wrap: anywhere; }
.bg-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.sc { fill: none; stroke: var(--lilac); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .11; }
.peek { position: relative; padding-top: 18px; padding-bottom: 96px; }
.peek__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 13px var(--font-mono); letter-spacing: .08em; color: var(--text-muted); }
.peek__eyebrow::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--success); }
.peek__title { margin: 14px 0 0; font-size: 30px; font-weight: 900; }
.peek__title em { color: var(--accent); font-style: normal; }

.site-foot { position: relative; z-index: 1; border-top: 1px solid var(--border); padding-top: 64px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.3fr .9fr; gap: 40px; }
.foot-brand p { max-width: 28em; color: var(--text-muted); font-size: 14px; margin-top: 20px; }
.foot-title { font-size: 14px; font-weight: 800; margin: 0 0 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-muted); font-size: 14px; }
.foot-links a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px dashed var(--border); color: var(--text-muted); font-size: 13px; }
@media (max-width:1280px) {
  .site-head__in { gap: 20px; }
  .nav__link { padding-inline: 10px; }
}
@media (max-width:1180px) {
  .hero__grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .hero__copy { grid-column: 1; grid-row: 1; max-width: 640px; }
  .rig { grid-column: 1; grid-row: 2; max-width: 740px; margin-inline: auto; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1000px) {
  .nav { display: none; }
  .head-tools { margin-left: auto; }
  .hamburger { display: inline-flex; }
  .foot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:768px) {
  :root { --gutter: 24px; --space-section: 64px; }
  h1 { font-size: clamp(24px,6vw,30px); }
  .hero__title { font-size: clamp(24px,7.2vw,30px); }
}
@media (max-width:640px) {
  :root { --gutter: 20px; }
  .hero__tilt,.tilt,[class*="--tilt"] { transform: none; }
  .hero__lead { font-size: 15.5px; }
  .hero__meta { grid-template-columns: minmax(0,1fr); }
  .hero__grid { gap: 32px; }
  .hero__cta { gap: 14px; margin-top: 24px; }
  .hero__cta .btn { padding-inline: 16px; font-size: 14px; }
  .hero__lead { margin-top: 20px; }
  .badge { margin-bottom: 18px; }
  .card-grid,.foot-grid { grid-template-columns: minmax(0,1fr); }
  .card,.panel { padding: 22px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 16px; }
  .site-head__in { gap: 8px; }
  .head-tools { gap: 6px; margin-left: auto; }
  .lang { padding-inline: 8px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .peek__title { font-size: 22px; }
  .peek { padding-bottom: 48px; }
}
@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; }
}