:root {
  --bg: #130f03;
  --bg-panel: #211b0d;
  --bg-panel2: #0d0a04;
  --border: #403627;
  --accent: #ec5a1c;
  --accent-dark: #f17b43;
  --text: #f3ecdf;
  --text-muted: #b9aa90;
  --success: #4d8a5e;
  --warn: #c47a1e;
  --error: #d8453a;

  --sand-1: #2c2412;
  --sand-2: #171207;
  --on-accent: #fffaf3;
  --accent-halo: rgba(236, 90, 28, .16);
  --device: #17120c;
  --device-rim: #3b3228;
  --device-key: #2b241c;
  --island: #060403;
  --screen-wash: rgba(236, 90, 28, .6);
  --screen-ring-light: rgba(250, 247, 240, .85);
  --screen-ring-warm: rgba(184, 66, 15, .38);
  --line-on-dark: rgba(228, 220, 205, .14);
  --line-on-dark-strong: rgba(228, 220, 205, .22);
  --ink-on-dark: #f3ecdf;
  --ink-dim-on-dark: rgba(243, 236, 223, .78);
  --muted-on-dark: rgba(243, 236, 223, .68);
  --highlight: rgba(255, 255, 255, .55);
  --floor: rgba(90, 52, 18, .24);
  --shadow-frame: inset 0 1px 0 var(--highlight), 0 50px 90px -44px rgba(116, 68, 24, .34), 0 18px 36px -26px rgba(116, 68, 24, .2);
  --shadow-phone: 0 42px 60px -30px rgba(21, 16, 10, .55), 0 14px 22px -12px rgba(21, 16, 10, .32);
  --shadow-float: inset 0 1px 0 rgba(255, 255, 255, .05), 0 34px 64px -26px rgba(21, 16, 10, .6), 0 12px 24px -12px rgba(21, 16, 10, .38), 0 2px 4px rgba(21, 16, 10, .2);
  --shadow-pill: 0 20px 40px -20px rgba(116, 68, 24, .42), 0 4px 10px -3px rgba(116, 68, 24, .14);
  --shadow-cta: 0 16px 30px -16px rgba(236, 90, 28, .75);
  --shadow-badge: 0 6px 18px -12px rgba(116, 68, 24, .35);
  --radius-frame: 32px;
  --radius-card: 28px;
  --radius-float: 22px;
  --radius-pill: 999px;
  --radius-mark: 10px;
  --font-display: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Hiragino Mincho ProN", "AppleMyungjo", serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shell: 1320px;
  --gutter: 56px;
  --masthead-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 400; line-height: 1.16; letter-spacing: -.005em; }
h2 { font-family: var(--font-display); font-size: clamp(27px, 2.6vw, 38px); font-weight: 400; line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.4; }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
pre code { overflow-wrap: normal; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.rail { max-width: var(--shell); margin-inline: auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
section, article { min-width: 0; }
.section-space { padding-top: 88px; padding-bottom: 96px; }
.section-lead { max-width: 710px; margin-top: 18px; color: var(--text-muted); line-height: 1.85; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-muted); }
.card, .panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-badge);
}
.card { padding: 28px; }
.panel { padding: 34px; background: var(--bg-panel); color: var(--text); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* 页头单独放宽；不借用正文阅读容器。 */
.masthead { position: relative; z-index: 30; border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.masthead-row {
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  min-height: var(--masthead-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--bg-panel); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 15.5px; font-weight: 600; letter-spacing: .005em; }
.brand-sub { font-size: 12px; color: var(--text-muted); }
.topnav { min-width: 0; margin-left: auto; }
.navline { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.navline li { display: flex; align-items: center; font-size: 14.5px; }
.navline li + li::before { content: "·"; color: var(--text-muted); padding-inline: 10px; }
.navline a { color: var(--text-muted); transition: color .2s ease; }
.navline a:hover, .navline a[aria-current="page"] { color: var(--text); }
.navline a[aria-current="page"] { font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text); font-size: 13.5px; white-space: nowrap; }
.lang-caret { color: var(--text-muted); }
.lang-short { display: none; }
.lang-box { position: relative; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 35; width: 178px; padding: 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: var(--shadow-pill); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: 10px; }
.lang-menu a:hover, .lang-menu a[aria-current="page"] { background: var(--bg-panel); color: var(--text); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); }
.menu-toggle svg { display: block; width: 24px; height: 24px; }
.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none; }
.menu-veil { display: none; }

/* 首屏：与拍板稿保持相同的几何尺度。 */
.hero { display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: 48px; align-items: stretch; padding: 48px var(--gutter) 60px; }
.hero > * { min-width: 0; }
.lede { display: flex; flex-direction: column; justify-content: center; padding-right: 8px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text-muted); box-shadow: var(--shadow-badge); font-size: 13px; }
.status-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-halo); }
.hero-title { margin-top: 28px; }
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--accent-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 26px; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 15.5px; font-weight: 600; letter-spacing: .01em; text-align: center; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--accent-dark); color: var(--bg); transform: translateY(-1px); }
.btn-ghost { border-color: var(--text); background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-panel); color: var(--text); }
.btn-ghost .arrow { font-family: var(--font-mono); font-weight: 400; color: var(--text-muted); }
.facts { margin-top: 28px; max-width: 540px; font-size: 15.5px; line-height: 1.85; color: var(--text-muted); }
.facts strong { color: var(--text); font-weight: 600; }
.devices { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; max-width: 560px; }
.device { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-muted); }
.device svg { width: 18px; height: 18px; color: var(--text); }
.tag { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--text); background: var(--bg-panel); overflow-wrap: anywhere; }
.tag-set { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.stage { position: relative; height: clamp(520px, calc(100vh - var(--masthead-h) - 108px - 96px), 624px); border-radius: var(--radius-frame); border: 1px solid var(--border); background: linear-gradient(158deg, var(--sand-1) 0%, var(--sand-2) 100%); box-shadow: var(--shadow-frame); overflow: hidden; isolation: isolate; }
.hero-app-shot { position: absolute; top: 50%; left: 50%; width: auto; max-width: 72%; max-height: 78%; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .35)); }
.stage-floor { position: absolute; left: 4%; bottom: 24px; width: 320px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, var(--floor), transparent); }
.phone { position: absolute; left: 11%; bottom: 52px; width: 232px; height: 476px; padding: 9px; border-radius: 44px; background: var(--device); box-shadow: inset 0 0 0 1.5px var(--device-rim), var(--shadow-phone); z-index: 1; }
.phone-key { position: absolute; width: 3px; background: var(--device-key); }
.key-action { left: -3px; top: 92px; height: 26px; border-radius: 2px 0 0 2px; }
.key-vol-up { left: -3px; top: 136px; height: 46px; border-radius: 2px 0 0 2px; }
.key-vol-down { left: -3px; top: 192px; height: 46px; border-radius: 2px 0 0 2px; }
.key-side { right: -3px; top: 152px; height: 72px; border-radius: 0 2px 2px 0; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: linear-gradient(152deg, var(--bg) 18%, var(--sand-1) 46%, var(--screen-wash) 100%); }
.island { position: absolute; top: 13px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: var(--radius-pill); background: var(--island); }
.ring { position: absolute; border-radius: 50%; }
.ring-lg { width: 196px; height: 196px; left: -54px; bottom: 62px; border: 1.5px solid var(--screen-ring-light); }
.ring-sm { width: 74px; height: 74px; right: 30px; top: 118px; border: 1.5px solid var(--screen-ring-warm); }
.snippet { position: absolute; top: 112px; right: 36px; width: 364px; transform: rotate(-2.5deg); z-index: 3; }
.snippet-card { border-radius: var(--radius-float); border: 1px solid var(--line-on-dark-strong); background: var(--bg-panel2); color: var(--ink-on-dark); box-shadow: var(--shadow-float); animation: drift 7s ease-in-out 1.4s infinite; }
.snippet-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px 13px; border-bottom: 1px solid var(--line-on-dark); }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.lights .l-a { background: var(--accent); }
.lights .l-b { background: var(--success); }
.lights .l-c { background: var(--error); }
.snippet-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted-on-dark); }
.rules { padding: 16px 20px 18px; font-family: var(--font-mono); font-size: 13.5px; line-height: 2.2; white-space: nowrap; }
.rules li { animation: rule-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.rules li:nth-child(1) { animation-delay: .3s; }
.rules li:nth-child(2) { animation-delay: .42s; }
.rules li:nth-child(3) { animation-delay: .54s; }
.rules li:nth-child(4) { animation-delay: .66s; }
.rules code { overflow-wrap: normal; }
.rules .k { color: var(--ink-on-dark); }
.rules .v { color: var(--ink-dim-on-dark); }
.rules .c { color: var(--muted-on-dark); }
.rules .p { font-weight: 600; }
.rules .p-proxy { color: var(--accent); }
.rules .p-direct { color: var(--success); }
.rules .p-reject { color: var(--error); }
.proof { position: absolute; right: 68px; bottom: 96px; display: flex; align-items: center; gap: 12px; padding: 9px 20px 9px 9px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pill); z-index: 2; }
.proof-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-panel2); color: var(--ink-on-dark); flex-shrink: 0; }
.proof-icon svg { width: 16px; height: 16px; }
.proof-text { display: flex; flex-direction: column; line-height: 1.35; }
.proof-main { font-size: 13px; font-weight: 600; color: var(--text); }
.proof-main .mono { font-family: var(--font-mono); font-weight: 500; font-size: 12px; }
.proof-sub { font-size: 12px; color: var(--text-muted); }
.risk { background: var(--bg-panel2); color: var(--ink-on-dark); }
.risk .rail { border-color: var(--line-on-dark); }
.risk-inner { padding: 64px var(--gutter) 96px; }
.risk .eyebrow { color: var(--muted-on-dark); }
.risk-title { margin-top: 16px; max-width: 820px; }
.risk-title em { font-style: normal; color: var(--error); }
.risk-lead { margin-top: 18px; max-width: 720px; font-size: 15.5px; line-height: 1.8; color: var(--ink-dim-on-dark); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 52px; padding-top: 70px; padding-bottom: 54px; }
.footer-brand p { max-width: 340px; margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.footer-heading { margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.footer-links, .footer-hot { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.footer-links { flex-direction: column; align-items: flex-start; }
.footer-links a, .footer-hot a, .footer-bottom a { color: var(--text-muted); font-size: 13px; }
.footer-links a:hover, .footer-hot a:hover, .footer-bottom a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.footer-languages { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 23px; }
.footer-languages a { color: var(--text-muted); font-size: 12px; }
.footer-languages a:hover, .footer-languages a[aria-current="page"] { color: var(--text); }

@keyframes rule-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 1279px) {
  .topnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .menu-veil:not([hidden]) { display: block; position: fixed; inset: var(--masthead-h) 0 0; z-index: 29; background: var(--floor); }
  .mobile-nav:not([hidden]) { display: block; position: absolute; z-index: 31; top: 100%; right: 0; left: 0; max-height: calc(100dvh - var(--masthead-h)); overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pill); }
  .mobile-nav a { display: block; width: 100%; min-height: 44px; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
  .mobile-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; }
  .mobile-nav-label { margin-top: 18px; padding-inline: 14px; color: var(--text-muted); font-size: 12px; }
}
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stage { height: 560px; }
  .tag-set { margin-left: 0; }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  h1, .hero-title { font-size: clamp(24px, 6vw, 30px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .masthead-row { gap: 8px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .lang { padding-inline: 10px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .hero { padding-top: 32px; }
  .hero-title { font-size: clamp(24px, 7.2vw, 30px); }
  .stage { height: 500px; }
  .phone { left: 18px; bottom: 40px; width: 196px; height: 404px; border-radius: 38px; }
  .phone-screen { border-radius: 30px; }
  .snippet { right: 12px; top: 48px; width: min(300px, calc(100% - 24px)); transform: none; }
  .rules { font-size: 11.5px; padding: 12px 16px 14px; overflow-x: auto; }
  .proof { right: 14px; bottom: 40px; max-width: calc(100% - 28px); }
  .proof-sub { overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tilt, [class*="tilt-"] { transform: none; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 12px; }
  .lang { font-size: 12px; }
  .devices { gap: 10px 14px; }
  .proof-main { font-size: 11px; }
  .proof-sub { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snippet-card, .rules li { animation: none; }
  .btn, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}