:root {
  --bg: #0b0d0f;
  --band: #111418;
  --ink: #f4f5f6;
  --muted: #a4abb3;
  --dim: #747c85;
  --line: #2a3038;
  --accent: #ff8a00;
  --accent-ink: #0b0d0f;
  --accent-hover: #ffa126;
  --surface: #171b20;
  --soft: #1d2228;
  --panel: #15191e;
  --green: #7cd88a;
  --cyan: #55c7d9;
  --font: "Space Grotesk", Arial, Helvetica, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --max: 1180px;
}
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); }
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
main h1:not(.lead-name) { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; }
main h2 { letter-spacing: -0.02em; }
code { font-family: var(--mono); font-size: 0.92em; background: #0b0d0f; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--green); }
@media (max-width: 480px) { .shell { width: calc(100% - 40px); } }

.mast {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,15,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.mast-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand-lock {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-lock img { width: 36px; height: 36px; display: block; }
.brand-lock span { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.rail {
  display: none; align-items: center; gap: 20px; font-size: 13px;
}
.rail a {
  position: relative; color: var(--ink); text-decoration: none; padding: 6px 0;
}
.rail a:hover { color: var(--accent); }
.rail a.is-on { color: var(--accent); }
.rail a.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.mast-tools { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 13px; padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.nav-drawer { display: none; border-top: 1px solid var(--line); background: var(--band); }
.nav-drawer.is-open, .nav-drawer:not([hidden]) { display: block; }
.nav-drawer nav { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 18px; }
.nav-drawer a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav-drawer a.is-on { color: var(--accent); }

.act-main, .act-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  height: 48px; padding: 0 22px; border-radius: 8px; text-decoration: none; border: 0;
}
.act-hero { height: 50px; padding: 0 26px; font-size: 15px; }
.act-main { font-size: 13px; height: 42px; }
.act-main:hover, .act-hero:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,138,0,0.22);
}
.act-line {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 8px; text-decoration: none;
  background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 14px;
}
.act-line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.locale-box { position: relative; }
.locale-btn {
  min-width: 46px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 12px; font-weight: 700; padding: 8px 10px;
  border-radius: 8px; cursor: pointer;
}
.locale-btn:hover, .locale-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.locale-list {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 168px;
  margin: 0; padding: 6px 0; list-style: none; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,0.35); z-index: 45;
}
.locale-list[hidden] { display: none !important; }
.locale-list a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: 13px; }
.locale-list a:hover, .locale-list a[aria-current="true"] { background: rgba(255,138,0,0.12); color: var(--accent); }

.lead-stage {
  position: relative; min-height: 820px; padding: 48px 0 64px;
  background: radial-gradient(ellipse at 50% 18%, rgba(255,138,0,0.08), transparent 42%), var(--bg);
  overflow: hidden;
}
.lead-inner { position: relative; z-index: 2; text-align: center; }
.lead-kicker {
  margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--cyan); text-transform: uppercase;
}
.lead-name {
  margin: 0; font-size: clamp(58px, 6vw, 90px); line-height: 0.95; font-weight: 700;
  letter-spacing: -0.04em;
}
.lead-name::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 16px auto 0;
  background: var(--accent); box-shadow: 4px 0 0 var(--green);
}
.lead-hook { margin: 22px auto 28px; max-width: 720px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.lead-acts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.lead-meta { margin: 0 0 28px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.stage-chrome {
  position: relative; max-width: 1080px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #000; box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 48px rgba(255,138,0,0.12);
  animation: rise-shot 0.7s ease both;
}
.stage-bar {
  display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px;
  background: #171b20; border-bottom: 1px solid var(--line);
}
.stage-bar span { width: 8px; height: 8px; border-radius: 50%; background: #3a414a; }
.stage-bar span:first-child { background: var(--accent); }
.stage-reel { position: relative; overflow: hidden; display: block; width: 100%; background: #000; }
.stage-reel > #layer-a img { display: block; width: 100%; height: auto; object-fit: contain; }
.stage-layer {
  position: absolute;
  will-change: opacity, left, top, transform, filter;
  transition: opacity 0.7s ease, left 0.75s cubic-bezier(.22,.8,.32,1), top 0.75s cubic-bezier(.22,.8,.32,1), width 0.75s ease, height 0.75s ease, transform 0.75s ease, filter 0.7s ease;
}
.stage-chrome:hover .reel-ctrl { opacity: 0.85; }
.stage-layer img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.reel-ctrl {
  position: absolute; top: 0; height: 100%; width: 72px; border: 0;
  background: transparent; color: #fff; opacity: 0; cursor: pointer; z-index: 4;
}
.reel-ctrl:hover { opacity: 1; }
.reel-back { left: 0; }
.reel-fwd { right: 0; }
#stage-caption { color: var(--muted); font-size: 14px; text-align: center; margin: 16px 0 0; min-height: 2.4em; font-family: var(--mono); transition: opacity 0.28s ease, transform 0.28s ease; }
#stage-caption.is-swap { opacity: 0; transform: translateY(8px); }
.reel-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; }
.reel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #3a414a; cursor: pointer; transition: width 0.25s ease, background-color 0.25s ease; }
.reel-dot.is-on { width: 22px; background: var(--accent); }
.reel-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); z-index: 5; pointer-events: none; }

.block { padding: 72px 0; }
.block-alt { background: #101317; }
.block-deep { background: #14181d; }
main > section + section { position: relative; }
main > section + section::before {
  content: ""; display: block; width: 7px; height: 7px; margin: -4px auto 0;
  border-radius: 50%; background: var(--accent);
  box-shadow: -140px 0 0 0 var(--line), 140px 0 0 0 var(--line), 0 0 0 1px #0b0d0f;
}
.rule-tech {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 0; margin: 0; border: 0;
}
.rule-tech::before, .rule-tech::after {
  content: ""; height: 1px; width: min(220px, 28vw); background: var(--line);
}
.rule-tech span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,138,0,0.12);
}

.pane {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid var(--accent); padding: 22px 24px; border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pane:hover { border-color: rgba(255,138,0,0.35); transform: translateY(-2px); }
.mono-tag {
  display: inline-block; margin-bottom: 10px; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; color: var(--green); text-transform: uppercase;
}

.cap-row {
  display: flex; gap: 12px; padding: 12px 0; margin: 0;
  border-bottom: 1px solid var(--line);
}
.cap-row:last-child { border-bottom: 0; }
.cap-row:hover .cap-ico { color: var(--accent); }
.cap-ico { color: #8b939c; flex-shrink: 0; width: 36px; text-align: center; }
.cap-mark { display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.kit-tile {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 22px 18px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.kit-tile:hover { transform: translateY(-3px); border-color: rgba(255,138,0,0.4); }
.kit-tile h3 { margin: 0 0 8px; font-size: 18px; }
.kit-tile p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.kit-tile img { display: block; width: 240px; height: auto; margin: 0 auto; object-fit: contain; }

.fact-bar { background: #101317; border-block: 1px solid var(--line); }
.fact-bar-inner { width: min(1170px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0; display: grid; gap: 18px; }
@media (min-width: 768px) { .fact-bar-inner { grid-template-columns: 1fr 1fr 1fr; } }
.fact-item { display: flex; align-items: center; gap: 16px; }
.fact-orb {
  width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0;
  background-color: #0b0d0f; background-position: 50% 50%; background-repeat: no-repeat;
  background-size: cover; border: 1px solid var(--line);
}
.fact-item p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.frame {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #0b0d0f; box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.frame:hover { transform: translateY(-4px) scale(1.005); box-shadow: 0 20px 48px rgba(0,0,0,0.45); }
.frame-bar {
  display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }
.capture { display: block; width: 100%; height: auto; cursor: zoom-in; object-fit: contain; background: #000; }

.spec-grid { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.spec-grid th, .spec-grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec-grid tbody tr:hover { background: rgba(255,138,0,0.06); }
.spec-grid tbody tr:hover td:first-child { color: var(--accent); }

.note-card {
  width: 280px; flex-shrink: 0; border: 1px solid var(--line);
  background: var(--surface); padding: 16px; font-size: 13px; border-radius: 8px;
}
.note-card:hover { transform: translateY(-3px); border-color: rgba(255,138,0,0.35); }
.drift { overflow: hidden; }
.drift-lane { display: flex; gap: 16px; width: max-content; animation: drift 40s linear infinite; }
.drift:hover .drift-lane { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise-shot { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.help-q {
  width: 100%; text-align: left; padding: 16px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
  font: 700 15px/1.4 var(--font); cursor: pointer;
}
.help-q:hover { color: var(--accent); }
.help-a { padding: 0 0 16px; color: var(--muted); font-size: 14px; }

.dock-get {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.dock-get:hover { background: var(--accent-hover); transform: translateY(-1px); }
@media (max-width: 640px) { .dock-get { right: 12px; bottom: 12px; padding: 8px 10px; } }

.base {
  border-top: 1px solid var(--line); background: #0b0d0f; padding: 36px 0 28px;
  font-size: 13px; color: var(--muted);
}
.base a { color: var(--ink); text-decoration: none; }
.base a:hover { color: var(--accent); }
.locale-bar a { color: var(--muted); }
.crumb { padding: 14px 0; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.crumb a { color: var(--dim); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

.term {
  font-family: var(--mono); font-size: 13px; background: #0b0d0f;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  color: var(--green); overflow-x: auto;
}

#viewer[hidden] { display: none !important; }
#viewer { background: rgba(0,0,0,0.82); }
#viewer-pic { max-width: 100%; max-height: 90vh; border: 1px solid var(--line); background: #000; }

.rise-in { opacity: 0; transform: translateY(14px); }
.rise-in.rise-on { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

html[lang="zh-CN"] .rail a { letter-spacing: 0.12em; }
html[lang="ru"] .act-main { padding: 0 26px; }
html[lang="ru"] .act-hero { padding: 0 32px; }
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .dock-get { right: auto; left: 16px; }
html[dir="rtl"] .reel-back { left: auto; right: 0; }
html[dir="rtl"] .reel-fwd { right: auto; left: 0; }
html[dir="rtl"] #viewer-exit { right: auto; left: 12px; }
html[dir="rtl"] table { text-align: right; }
html[dir="rtl"] .help-q { text-align: right; }

@media (max-width: 767px) {
  .rail { display: none !important; }
  .nav-toggle { display: inline-block; }
  .lead-stage { min-height: 0; padding: 32px 0 40px; }
  .lead-name { font-size: 46px; }
}
@media (min-width: 768px) {
  .rail { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .drift-lane, .stage-layer, .dock-get, .stage-chrome { animation: none !important; transition: none !important; }
  .rise-in, .rise-in.rise-on { opacity: 1; transform: none; }
}
