:root {
  --bg: #FFFFFF;
  --bg-panel: #F5F5F7;
  --bg-panel-2: #EDEDF1;
  --border: #E4E4EA;
  --accent: #E0336B;
  --accent-dark: #B0204F;
  --text: #111216;
  --text-muted: #5C5F6B;
  --success: #1E9E5A;
  --warn: #D98A00;
  --error: #D3302F;

  --stage: #0A0B12;
  --pixel-blue: #3550FF;
  --pixel-lime: #C8F046;
  --pixel-orange: #FF8A1F;
  --on-stage: var(--bg);
  --on-stage-muted: rgb(255 255 255 / .72);
  --on-stage-faint: rgb(255 255 255 / .48);
  --stage-line: rgb(255 255 255 / .18);
  --stage-line-strong: rgb(255 255 255 / .62);
  --accent-ring: rgb(224 51 107 / .30);
  --veil: rgb(10 11 18 / .56);
  --clear: transparent;
  --field-shade: rgb(10 11 18 / .64);
  --syntax-key: color-mix(in srgb, var(--accent) 64%, var(--bg));
  --syntax-type: color-mix(in srgb, var(--pixel-blue) 56%, var(--bg));

  --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;
  --weight-medium: 500;
  --weight-label: 600;
  --weight-code: 700;
  --weight-display: 800;
  --type-body: 16px;
  --type-small: 14px;
  --type-mono: 13px;
  --type-title: clamp(34px, 2.2vw + 16px, 48px);
  --type-heading: clamp(24px, 3vw, 36px);
  --type-subheading: clamp(18px, 2vw, 22px);

  --radius-stage: 40px;
  --radius-card: 28px;
  --radius-menu: 14px;
  --radius-small: 10px;
  --radius-pill: 999px;
  --radius-dot: 50%;
  --nav-h: 72px;
  --band-w: 64px;
  --gutter: 32px;
  --page-max: 1312px;
  --read-max: 840px;
  --section-space: clamp(56px, 8vw, 112px);
  --gap: clamp(16px, 2.5vw, 32px);
  --speed: .2s;
  --stroke: 1px;
  --focus-width: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--type-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, summary { cursor: pointer; }
button { font: inherit; color: inherit; background: var(--clear); border: 0; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: var(--focus-width); }
:focus-visible { outline: var(--focus-width) solid var(--accent-dark); outline-offset: 3px; }
h1, h2, h3 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--type-title); }
h2 { font-size: var(--type-heading); }
h3 { font-size: var(--type-subheading); }
p { margin: 0 0 1em; }
:where(p, li, dd, .card, .panel) { overflow-wrap: anywhere; }
:where(section, h2, h3)[id] { scroll-margin-block-start: 84px; }
.keep { white-space: nowrap; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.eyebrow { font: var(--type-mono)/1.5 var(--font-mono); color: var(--accent-dark); }
.muted { color: var(--text-muted); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
:not(pre) > code { font-size: .92em; }
pre {
  min-width: 0;
  max-width: 100%;
  margin: 1em 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-menu);
  background: var(--stage);
  color: var(--on-stage);
  font-size: var(--type-mono);
}
pre code { white-space: pre; }
:where(.brand__mark, .btn svg, .icon, .dot, .app-icon) { flex-shrink: 0; }
:where(.wrap, .read, .prose, .grid, .stack, .panel, .card) { min-width: 0; }
:where(.grid, .stack, .feature-card, .foot-grid, .podium__bricks) > * { min-width: 0; }
.wrap, .read {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.read { max-width: var(--read-max); }
.sec { padding-block: var(--section-space); }
.stack { display: grid; gap: var(--gap); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--gap); }
.decor-zone { position: relative; overflow-x: clip; }
.prose { line-height: 1.8; }
.prose h2:not(:first-child) { margin-top: 1.7em; }
.prose h3:not(:first-child) { margin-top: 1.25em; }
.card, .panel {
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.panel { border: var(--stroke) solid var(--border); background: var(--bg); color: var(--text); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }

/* 共享操作 */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-dark);
  color: var(--on-stage);
  text-decoration: none;
  font-size: var(--type-small);
}
.skip-link:focus { top: 12px; }
.btn, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--weight-label);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-cta { min-height: 42px; padding-inline: 22px; background: var(--accent); color: var(--bg); }
.btn-cta:hover, .btn--accent:hover { background: var(--accent-dark); color: var(--bg); }
.btn--accent { background: var(--accent-dark); color: var(--bg); }
.btn--accent:hover { background: var(--text); color: var(--bg); }
.btn--outline { border: var(--stroke) solid var(--text-muted); color: var(--text); }
.btn--outline:hover { background: var(--bg-panel); color: var(--text); }
.btn--solid { background: var(--on-stage); color: var(--stage); }
.btn--solid:hover { background: var(--bg-panel-2); color: var(--stage); }
.btn--line { border: 1.5px solid var(--stage-line-strong); color: var(--on-stage); }
.btn--line:hover { border-color: var(--on-stage); }
.btn:disabled, .btn.is-disabled {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--clear);
  cursor: not-allowed;
}
.dark-band { background: var(--stage); color: var(--on-stage); border-radius: var(--radius-stage); }
.dark-band :focus-visible, .stage :focus-visible { outline-color: var(--on-stage); }

/* 页头独立版心 */
.topbar { position: relative; z-index: 10; background: var(--bg); color: var(--text); }
.topbar__inner {
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand__mark { display: block; width: 34px; height: 34px; }
.brand__name { font: var(--weight-display) 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.mainnav { min-width: 0; }
.mainnav__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.mainnav__list > li, .lang-box { position: relative; }
.mainnav a, .mainnav__trigger, .lang, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--speed) ease, background-color var(--speed) ease;
}
.mainnav a:hover, .mainnav__trigger:hover, .lang:hover, .nav-toggle:hover { background: var(--bg-panel); color: var(--text); }
.mainnav a[aria-current="page"], .mainnav__trigger.is-current { color: var(--accent-dark); font-weight: var(--weight-label); }
.mainnav__list > li > a[aria-current="page"] { color: var(--accent); }
.mainnav__trigger svg { width: 12px; height: 12px; flex-shrink: 0; transition: transform var(--speed) ease; }
.mainnav__trigger[aria-expanded="true"] svg, details[open] > .mainnav__trigger svg { transform: rotate(180deg); }
.mainnav__menu {
  list-style: none;
  margin: 0;
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  padding: 6px;
  background: var(--bg);
  color: var(--text);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-menu);
}
.mainnav__menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius-small);
  color: var(--text);
  text-decoration: none;
}
.mainnav__menu a:hover { background: var(--bg-panel); color: var(--text); }
.mainnav__menu a[aria-current] { color: var(--accent-dark); }
.topbar__tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang { font-size: var(--type-small); color: var(--text-muted); border: var(--stroke) solid var(--border); }
.lang-box .mainnav__menu { left: auto; right: 0; }
.nav-toggle, .preview-mobile { display: none; }
.nav-toggle { min-width: 44px; min-height: 44px; padding: 0; border: var(--stroke) solid var(--border); }
.nav-toggle svg { width: 20px; height: 20px; }
.topbar summary { list-style: none; }
.topbar summary::-webkit-details-marker { display: none; }
.nav-veil { position: fixed; inset: 0; z-index: 1; width: 100%; background: var(--veil); color: var(--on-stage); }
.mobile-nav { display: none; }

.site-foot { background: var(--bg-panel); color: var(--text); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.15fr .7fr; gap: var(--gap); padding-block: 56px 36px; }
.foot-grid .brand { margin-bottom: 14px; }
.foot-grid p { max-width: 28ch; color: var(--text-muted); }
.foot-grid h2 { font-size: var(--type-body); margin-bottom: 10px; }
.foot-grid li + li { margin-top: 6px; }
.foot-grid li a, .foot-end a { color: var(--text-muted); }
.foot-grid a:hover, .foot-end a:hover, .foot-grid a[aria-current] { color: var(--accent-dark); }
.foot-end {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: var(--stroke) solid var(--border);
  padding-block: 18px 26px;
  color: var(--text-muted);
  font-size: var(--type-small);
}

/* 首页舞台：文案留在正常流，透视台固定在下沿 */
.stage {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  background: var(--stage);
  color: var(--on-stage);
  border-radius: 0 0 var(--radius-stage) var(--radius-stage);
  min-height: max(740px, calc(100svh - var(--nav-h) - 36px));
  display: grid;
  grid-template-rows: 1fr auto;
}
.stage__visual { position: absolute; inset: 0; pointer-events: none; }
.stage__band { position: absolute; inset-block: 0; width: var(--band-w); }
.stage__band--left {
  left: 0;
  background: repeating-conic-gradient(var(--pixel-blue) 0 25%, var(--pixel-lime) 0 50%) 0 0 / 64px 64px;
  color: var(--stage);
}
.stage__band--right {
  right: 0;
  background: repeating-conic-gradient(var(--accent) 0 25%, var(--pixel-orange) 0 50%) 0 0 / 64px 64px;
  color: var(--stage);
}
.stage__stair { position: absolute; left: calc(var(--band-w) + 76px); top: 92px; width: 160px; height: 220px; }
.stage__stair rect, .stage__scatter rect { fill: var(--pixel-blue); }
.stage__cat {
  position: absolute;
  right: calc(var(--band-w) + 72px);
  top: 76px;
  width: 128px;
  height: 128px;
  background: var(--pixel-lime);
  color: var(--stage);
  display: grid;
  place-items: center;
}
.stage__cat svg { width: 84px; height: 84px; display: block; }
.stage__cat rect { fill: currentColor; }
.stage__scatter { position: absolute; right: calc(var(--band-w) + 72px); top: 236px; width: 128px; height: 90px; }
.hero {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  padding: 40px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 11px;
  border: var(--stroke) solid var(--stage-line);
  border-radius: var(--radius-pill);
  font: 12.5px/1.6 var(--font-mono);
  letter-spacing: .01em;
  color: var(--on-stage-muted);
}
.hero__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-dot);
  background: var(--accent);
  color: var(--on-stage);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.hero__title { margin: 22px 0 0; font-size: var(--type-title); line-height: 1.14; color: var(--on-stage); }
.hero__title > span { display: block; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__lead { margin: 22px 0 0; max-width: 580px; font-size: 15.5px; line-height: 1.7; color: var(--on-stage-muted); }
.hero__lead strong { color: var(--on-stage); font-weight: var(--weight-label); }
.hero__lead code { color: var(--on-stage); }
.hero__chips, .hero__platforms { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 20px 0 0; padding: 0; }
.hero__chips { gap: 8px; }
.hero__chips li { padding: 4px 12px; border: var(--stroke) solid var(--stage-line); border-radius: var(--radius-pill); font: 12px/1.6 var(--font-mono); color: var(--on-stage-muted); }
.hero__platforms li + li { border-left: var(--stroke) solid var(--stage-line); }
.hero__platforms a { display: inline-flex; align-items: center; gap: 8px; padding: 2px 16px; font-size: var(--type-mono); color: var(--on-stage-muted); text-decoration: none; transition: color var(--speed) ease; }
.hero__platforms a:hover { color: var(--on-stage); }
.hero__platforms svg { display: block; height: 15px; width: auto; flex-shrink: 0; }
.podium {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2 * var(--band-w) - 48px));
  aspect-ratio: 1200 / 268;
  margin-inline: auto;
  container-type: inline-size;
}
.podium__wing, .podium__face { position: absolute; pointer-events: none; color: var(--on-stage); }
.podium__wing { inset-block: 0; width: 18%; }
.podium__wing--left { left: 0; clip-path: polygon(100% 0,100% 100%,0 100%); background: linear-gradient(to bottom left, var(--accent), var(--pixel-orange)); }
.podium__wing--right { right: 0; clip-path: polygon(0 0,100% 100%,0 100%); background: linear-gradient(to bottom right, var(--pixel-blue), var(--accent)); }
.podium__face { inset: 0; }
.podium__face--a { background: linear-gradient(180deg, var(--pixel-blue) 71.64%, color-mix(in srgb, var(--pixel-blue) 45%, var(--stage)) 100%); }
.podium__face--b { background: linear-gradient(180deg, color-mix(in srgb, var(--pixel-blue) 70%, var(--on-stage)) 71.64%, var(--pixel-blue) 100%); }
.podium__face--1 { clip-path: polygon(18% 71.64%,34% 71.64%,29.2% 100%,8.4% 100%); }
.podium__face--2 { clip-path: polygon(34% 71.64%,50% 71.64%,50% 100%,29.2% 100%); }
.podium__face--3 { clip-path: polygon(50% 71.64%,66% 71.64%,70.8% 100%,50% 100%); }
.podium__face--4 { clip-path: polygon(66% 71.64%,82% 71.64%,91.6% 100%,70.8% 100%); }
.podium__bricks { position: absolute; left: 18%; top: 0; width: 64%; height: 71.64%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brick { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; padding: 1.4cqi; text-decoration: none; transition: transform .25s ease; }
.brick:hover { transform: translateY(-6px); }
.brick:focus-visible { z-index: 1; }
.brick--port { background: var(--accent); color: var(--on-stage); }
.brick--dns { background: var(--pixel-blue); color: var(--on-stage); }
.brick--groups { background: var(--pixel-lime); color: var(--stage); }
.brick--rules { background: var(--pixel-orange); color: var(--stage); }
.brick__key { font: var(--weight-code) 40px/1.02 var(--font-mono); font-size: 3.4cqi; letter-spacing: -.03em; }
.brick__val {
  font: var(--weight-medium) 12px/1.3 var(--font-mono);
  font-size: 1.02cqi;
  white-space: nowrap;
  padding-top: 10px;
  padding-top: .8cqi;
  border-top: var(--stroke) solid color-mix(in srgb, currentColor 38%, var(--clear));
}
.brick__cursor { display: inline-block; width: .62em; height: 1.15em; margin-left: .2em; vertical-align: -.2em; background: currentColor; animation: cursor-blink 1.1s steps(1) infinite; }
@keyframes cursor-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.statement { padding: 120px var(--gutter) 112px; text-align: center; }
.statement__eyebrow { margin: 0 0 18px; font: var(--type-mono)/1.6 var(--font-mono); color: var(--accent-dark); }
.statement__text { margin: 0 auto; max-width: 960px; font: var(--weight-display) clamp(24px, 2.2vw, 34px)/1.35 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.statement__text code { font-weight: var(--weight-code); font-size: .9em; }

/* 无脚本时内容可见；仅 JS 正在观察的元素进入待显示态。 */
.reveal { transition: opacity .45s ease; }
.reveal.is-watched:not(.shown):not(:focus-within) { opacity: 0; }
.reveal.shown { opacity: 1; }

@media (max-width: 1120px) {
  .stage__stair, .stage__cat, .stage__scatter { display: none; }
}
@media (max-width: 1280px) {
  html:not(:lang(zh-CN)) .topbar .mainnav { display: none; }
  html:not(:lang(zh-CN)) .topbar__tools { margin-inline-start: auto; }
  html:not(:lang(zh-CN)) .nav-toggle { display: inline-flex; }
  html:not(:lang(zh-CN)) .mobile-nav:not([hidden]) { display: block; }
}
@media (max-width: 960px) {
  .mainnav { display: none; }
  .topbar__inner { gap: 12px; }
  .topbar__tools { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
  .preview-mobile, .mobile-nav:not([hidden]) { display: block; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mobile-nav {
  position: absolute;
  inset: var(--nav-h) 0 auto;
  z-index: 3;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 20px;
  border-block: var(--stroke) solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-small);
}
.mobile-nav a:hover { background: var(--bg-panel); color: var(--text); }
.mobile-nav a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
.mobile-nav__label { margin: 16px 12px 4px; color: var(--text-muted); font-size: var(--type-small); }

@media (max-width: 768px) {
  :root { --type-title: clamp(26px, 7vw, 30px); }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .topbar__tools .lang-box { display: none; }
  .topbar__tools { gap: 6px; }
  .btn-cta { padding-inline: 13px; }
  .brand__name { font-size: var(--type-body); }
  .stage { min-height: auto; border-radius: 0 0 var(--radius-card) var(--radius-card); }
  .stage__band { display: none; }
  .hero { padding: 32px var(--gutter) 24px; }
  .hero__actions { margin-top: 22px; }
  .btn { min-height: 44px; padding-inline: 20px; }
  .hero__lead { font-size: 14.5px; margin-top: 18px; }
  .hero__platforms { row-gap: 8px; }
  .hero__platforms a { padding: 2px 10px; }
  .podium { width: calc(100% - 2 * var(--gutter)); aspect-ratio: auto; container-type: normal; padding-bottom: 30px; }
  .podium__wing, .podium__face { display: none; }
  .podium::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    bottom: 0;
    height: 30px;
    clip-path: polygon(var(--gutter) 0,calc(100% - var(--gutter)) 0,100% 100%,0 100%);
    background: linear-gradient(90deg, var(--pixel-orange), var(--accent) 30%, var(--pixel-blue) 70%, var(--accent));
    color: var(--stage);
    pointer-events: none;
  }
  .podium__bricks { position: static; width: 100%; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brick { aspect-ratio: 1; padding: 14px; }
  .brick__key { font-size: 26px; }
  .brick__val { font-size: 11px; padding-top: 8px; white-space: normal; overflow-wrap: anywhere; }
  .statement { padding: 80px var(--gutter); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .tilt, .decor-tilt, .brick:hover { transform: none; }
  .topbar__inner { gap: 6px; }
  .topbar .brand { flex-shrink: 1; min-width: 0; gap: 6px; }
  .brand__name { overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brick__cursor { animation: none; }
  *, *::before, *::after { transition: none !important; }
  .reveal.is-watched:not(.shown) { opacity: 1; }
}