:root {
  --paper: #F3E6D0;
  --paper-2: #FFF8EC;
  --ink: #2A2016;
  --muted: #6E5C4A;
  --apricot: #E39A4A;
  --apricot-hi: #F4C078;
  --hud: #C45C1A;
  --line: rgba(42, 32, 22, 0.16);
  --card: rgba(255, 248, 236, 0.78);
  --card-solid: #FFF6E8;
  --ok: #2F7A4A;
  --bad: #C24A3A;
  --shadow: 0 18px 50px rgba(80, 48, 16, 0.12);
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-hud: "Orbitron", "Segoe UI", sans-serif;
  --font-mono: "Share Tech Mono", "Cascadia Mono", Consolas, monospace;
  --font-body: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

html[data-theme="night"] {
  --paper: #17131F;
  --paper-2: #1E1829;
  --ink: #F5F0E8;
  --muted: #9A8FA8;
  --apricot: #F0C08A;
  --apricot-hi: #F7D5A8;
  --hud: #E8A862;
  --line: rgba(240, 192, 138, 0.18);
  --card: rgba(38, 32, 51, 0.82);
  --card-solid: #262033;
  --ok: #8FCB8A;
  --bad: #E07A6A;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--hud); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.boot {
  position: fixed; inset: 0; z-index: 80;
  background: #1A1612;
  color: #F6E7C8;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}
.boot-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--apricot);
}
.boot-topo {
  position: absolute; inset: 0; opacity: 0.28; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 46px, rgba(246,231,200,.08) 47px),
    repeating-linear-gradient(90deg, transparent, transparent 46px, rgba(246,231,200,.06) 47px),
    radial-gradient(ellipse at 70% 45%, rgba(227,154,74,.18), transparent 42%);
}
.boot-topo::after {
  content: "";
  position: absolute; inset: -20%;
  background:
    repeating-radial-gradient(circle at 72% 48%, transparent 0 38px, rgba(246,231,200,.07) 39px, transparent 52px);
  animation: topo-drift 18s linear infinite;
}
.boot-mark { position: relative; text-align: left; margin-left: 12vw; }
.boot-en {
  margin: 0; font-family: var(--font-hud); font-size: clamp(42px, 7vw, 84px);
  letter-spacing: 0.18em; font-weight: 700; line-height: 1;
}
.boot-zh {
  margin: 10px 0 0; font-family: var(--font-display); font-size: 22px;
  letter-spacing: 0.42em; color: #E8CFA0;
}
.boot-line {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 0; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; color: #C9B48A;
}
.tri {
  width: 0; height: 0;
  border-left: 7px solid var(--apricot);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.boot-meter {
  position: absolute; left: 28px; bottom: 28px;
  font-family: var(--font-hud); color: var(--apricot);
}
.boot-meter b { font-size: 42px; letter-spacing: 0.06em; }
.boot-meter span { font-size: 16px; margin-left: 4px; }
.boot-meter small {
  display: block; font-family: var(--font-mono); color: #C9B48A;
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px;
}
.boot-track {
  width: 160px; height: 2px; margin-top: 10px; background: rgba(246,231,200,.2);
}
.boot-track i {
  display: block; height: 100%; width: 0; background: var(--apricot);
  transition: width 80ms linear;
}
.boot-skip {
  position: absolute; right: 28px; bottom: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: #8A7A62; margin: 0;
}
.boot.out {
  transform: translateY(-110%);
  transition: transform 0.8s cubic-bezier(.7,0,.2,1);
}
.boot.gone { display: none; }

.letterbox i {
  position: fixed; left: 0; right: 0; height: 0; z-index: 70;
  background: #1A1612; pointer-events: none;
  transition: height 0.7s cubic-bezier(.7,0,.2,1);
}
.letterbox i:first-child { top: 0; }
.letterbox i:last-child { bottom: 0; }
body:not(.ready) .letterbox i { height: 56px; }

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.top.solid,
body:not(.is-home) .top {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-family: var(--font-hud);
  font-weight: 700; letter-spacing: 0.08em; font-size: 14px;
}
.brand img {
  height: 40px; width: auto; /* 完整 lockup (图+字一体) · 原 34px 方图太小 */
  object-fit: contain;
  display: block;
}
/* 三段式：LOGO 左 · 导航居中 · 操作右。
   LOGO 换成一整块彩色 lockup 后，导航原来紧贴它显得「左重右空」，居中把视觉重量摊平。 */
nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
nav a {
  color: var(--muted); font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.12em;
  position: relative; padding: 9px 2px;
  transition: color 0.2s;
}
nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--apricot);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(1); }
.top-actions { display: flex; gap: 10px; align-items: center; }

.btn, .ghost, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px; border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn {
  background: linear-gradient(135deg, var(--apricot-hi) 0%, var(--apricot) 100%);
  color: #2A1F10; font-weight: 650;
}
.btn:hover { filter: brightness(1.06); }
.btn.wide { width: 100%; }
.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
  clip-path: none; border-radius: 2px;
}
.ghost:hover { border-color: var(--hud); color: var(--hud); }
.icon-btn {
  width: 38px; padding: 0; clip-path: none; border-radius: 2px;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
html[data-theme="day"] .i-moon { display: none; }
html[data-theme="night"] .i-sun { display: none; }
[hidden] { display: none !important; }

#app { min-height: 100vh; }

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.stage-bg, .stage-wash, .stage-grain {
  position: absolute; inset: 0;
}
.stage-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: left 20%;
  opacity: 0.38; transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 0.4s;
}
body.ready .stage-bg img { transform: scale(1.03); }
.stage-ip {
  position: absolute; right: 2%; bottom: 0; z-index: 1;
  height: 92vh; width: auto; pointer-events: none;
  opacity: 0; transform: translateX(36px);
}
body.ready .stage-ip {
  animation: ip-in 1.05s 0.2s cubic-bezier(.2,.7,.2,1) both;
}
.stage-ip img {
  height: 92vh; width: auto; max-width: none;
  filter: drop-shadow(0 18px 40px rgba(80, 48, 16, 0.22));
}
html[data-theme="night"] .stage-bg img { content: url("/img/hero-night.webp"); }
.stage-wash {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 88%, transparent) 0%,
      color-mix(in srgb, var(--paper) 42%, transparent) 42%,
      transparent 68%),
    linear-gradient(180deg, transparent 62%, var(--paper) 100%);
}
html[data-theme="night"] .stage-wash {
  background:
    linear-gradient(90deg, rgba(23,19,31,.88) 0%, rgba(23,19,31,.4) 46%, transparent 70%),
    linear-gradient(180deg, transparent 60%, #17131F 100%);
}
.stage-grain {
  pointer-events: none; opacity: 0.18; mix-blend-mode: multiply;
  background: repeating-linear-gradient(180deg, rgba(42,32,22,.08) 0 1px, transparent 1px 3px);
}
.hud-frame { position: absolute; inset: 88px 28px 28px; pointer-events: none; }
.hud-frame i {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid color-mix(in srgb, var(--hud) 70%, transparent);
}
.hud-frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.stage-copy {
  position: relative; z-index: 2;
  width: min(620px, calc(100% - 72px));
  margin: 0 0 8vh 56px;
  opacity: 0; transform: translateY(22px);
}
body.ready .stage-copy {
  animation: rise 0.9s 0.15s cubic-bezier(.2,.7,.2,1) both;
}
.tag {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; color: var(--hud);
}
.tag b {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 20px; padding: 0 6px;
  border: 1px solid var(--hud); color: var(--hud); font-weight: 500;
}
.stage-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.18; margin: 0 0 16px; font-weight: 700;
  text-wrap: balance;                /* 2026-09-30 · 文案加长后手机端出现「AI 助 / 手。」孤字断行 */
}
.stage-copy h1 em {
  display: block; color: var(--hud); font-style: normal; margin-top: 6px;
  text-wrap: balance;                /* 副标题同样：避免「实实在在」被从中间劈开 */
}
.lead { color: var(--muted); font-size: 16px; max-width: 34em; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.note { margin-top: 16px; color: var(--muted); font-size: 13px; }

.stage-meta {
  position: absolute; right: 40px; bottom: 36px; z-index: 2;
  display: flex; gap: 18px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--muted);
  opacity: 0;
}
body.ready .stage-meta { animation: rise 0.8s 0.45s both; }
.rec {
  display: inline-flex; align-items: center; gap: 6px; color: var(--hud);
}
.rec i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hud);
  animation: pulse 1.4s ease-in-out infinite;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section h2 {
  font-family: var(--font-display); font-size: 32px; margin: 0 0 8px;
}
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--hud); margin: 0 0 8px;
}
.muted { color: var(--muted); }

.grid-3, .grid-2 { display: grid; gap: 16px; margin-top: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.card, .mod, .shot, .file {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card {
  border-radius: 2px; padding: 22px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.card h3, .mod h3, .file h3 { margin: 0 0 8px; font-size: 18px; }
.card .price { font-size: 32px; color: var(--hud); margin: 8px 0; font-family: var(--font-hud); }
.card .price small { font-size: 14px; color: var(--muted); font-family: var(--font-body); }

.mod {
  position: relative; padding: 22px 22px 22px 26px; overflow: hidden;
}
.mod::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--apricot);
}
.mod .no {
  font-family: var(--font-hud); font-size: 12px; letter-spacing: 0.14em;
  color: var(--hud); margin-bottom: 10px;
}

.dossier {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center;
}
.dossier-ip {
  position: relative; min-height: 420px;
  background: transparent;
}
.dossier-ip img {
  width: 100%; height: 480px; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 16px 28px rgba(80,48,16,.16));
}
.dossier-ip .stamp {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--hud);
}

.feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px;
}

.core { display: grid; gap: 72px; margin-top: 48px; }
.core-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 36px 48px;
  align-items: center;
}
.core-row.flip {
  grid-template-columns: minmax(0, 1.28fr) minmax(220px, 0.72fr);
}
.core-row.flip .core-copy { order: 2; }
.core-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  margin: 8px 0 14px;
}
.core-copy .muted { font-size: 16px; max-width: 34em; }
.core-row .core-copy {
  opacity: 0;
  transform: translateX(-28px);
}
.core-row.flip .core-copy { transform: translateX(28px); }
.core-row.reveal.in .core-copy {
  opacity: 1; transform: none;
  transition: opacity 0.75s cubic-bezier(.2,.7,.2,1), transform 0.75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}

.device { margin: 0; }
.browser {
  margin: 0;
  background: #2A2016;
  border-radius: 12px 12px 4px 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(42, 32, 22, 0.2),
    0 22px 48px rgba(42, 32, 22, 0.16),
    0 48px 90px rgba(42, 32, 22, 0.1);
  opacity: 0;
  transform: translateX(40px) translateY(18px);
}
.core-row.flip .browser { transform: translateX(-40px) translateY(18px); }
.core-row.reveal.in .browser {
  opacity: 1; transform: none;
  transition: opacity 0.85s cubic-bezier(.2,.7,.2,1), transform 0.95s cubic-bezier(.16,.84,.24,1);
  transition-delay: calc(var(--d, 0s) + 0.1s);
}
.browser-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #4A3A2C, #35281E);
}
.browser-bar .dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-bar .dots i {
  width: 10px; height: 10px; border-radius: 50%;
}
.browser-bar .dots i:nth-child(1) { background: #E07A6A; }
.browser-bar .dots i:nth-child(2) { background: #E8C36A; }
.browser-bar .dots i:nth-child(3) { background: #8FCB8A; }
.browser-bar .addr {
  flex: 1; min-width: 0;
  background: #241A12;
  color: #C9B48A;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 框随图：不再锁 16:9 —— 截图是什么比例就显示什么比例，一张不裁 */
.browser img {
  width: 100%;
  height: auto;
  display: block;
  background: #2A2016;
}
.device::after {
  content: "";
  display: block;
  width: 72%;
  height: 12px;
  margin: 0 auto;
  background: linear-gradient(180deg, #3A2E22, #241A12);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 22px rgba(42, 32, 22, 0.12);
}
html[data-theme="night"] .browser { background: #120E18; }
html[data-theme="night"] .browser-bar {
  background: linear-gradient(180deg, #2A2436, #1A1624);
}
html[data-theme="night"] .browser-bar .addr { background: #0E0B14; color: #C9B48A; }
html[data-theme="night"] .device::after {
  background: linear-gradient(180deg, #2A2436, #120E18);
}
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot { overflow: hidden; }
.shot img {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  object-fit: cover; object-position: left top;
}
.shot figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 14px; font-size: 13px;
}
.shot figcaption span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--hud); }

.steps { counter-reset: step; padding: 0; }
.steps li { list-style: none; margin: 0 0 14px; padding-left: 42px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--font-hud); font-size: 12px; color: var(--hud);
}

.auth {
  width: min(440px, calc(100% - 40px));
  margin: 120px auto 64px;
}
.auth h1 { font-family: var(--font-display); margin: 0 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field span { color: var(--muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.08em; }
.field input {
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px;
}
.field input:focus { outline: 1px solid var(--apricot); }
.err { color: var(--bad); min-height: 1.2em; font-size: 13px; }

.page { padding: 108px 0 64px; }
.console h1 { font-family: var(--font-display); margin: 0 0 6px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.card .price.sm { font-size: 22px; }
.bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 88px; margin: 16px 0 8px;
}
.bars i {
  flex: 1; background: linear-gradient(180deg, var(--apricot-hi), var(--hud));
  min-height: 4px; opacity: 0.85;
}
.kind-list { margin-top: 16px; display: grid; gap: 10px; }
.kind-row { position: relative; font-size: 13px; padding: 6px 0 10px; }
.kind-row span { font-weight: 650; }
.kind-row b { float: right; color: var(--muted); font-weight: 500; }
.kind-row i {
  display: block; height: 3px; margin-top: 8px; clear: both;
  background: var(--apricot);
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 14px; }
.tab {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  min-height: 34px; padding: 0 14px; cursor: pointer;
}
.tab.on { color: var(--ink); border-color: var(--hud); }
.pane[hidden] { display: none !important; }
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.key-box {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--paper-2); border: 1px dashed var(--apricot);
  padding: 14px;
}
.key-box code { flex: 1; min-width: 200px; word-break: break-all; color: var(--hud); font-size: 14px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.ledger th { color: var(--muted); font-weight: 500; }

.banner-preview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px;
}
.banner-preview figure {
  margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--card);
}
.banner-preview img { height: 180px; width: 100%; object-fit: cover; }
.banner-preview figcaption {
  padding: 8px 12px; color: var(--muted); font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.08em;
}

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  background: var(--card-solid); border: 1px solid var(--apricot);
  color: var(--ink); padding: 12px 16px;
}
.foot {
  text-align: center; color: var(--muted); font-size: 12px;
  padding: 28px 16px 40px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); letter-spacing: 0.08em;
}
.warn {
  background: color-mix(in srgb, var(--apricot) 12%, transparent);
  border: 1px solid var(--line); padding: 12px 14px; color: var(--muted); font-size: 13px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes topo-drift {
  to { transform: translate3d(-2%, 2%, 0); }
}
@keyframes ip-in {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .core-row, .core-row.flip { grid-template-columns: 1fr; }
  .core-row.flip .core-copy { order: 0; }
  .core { gap: 56px; }
  .core-row .core-copy, .core-row.flip .core-copy { transform: translateY(16px); }
  .core-row .browser, .core-row.flip .browser { transform: translateY(24px); }
  .grid-3, .grid-2, .banner-preview, .dossier, .shots, .feat-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  nav { display: flex; gap: 12px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .top { flex-wrap: nowrap; }
  .stage { min-height: 100svh; }
  .stage-copy { margin: 0 20px 6vh; width: auto; }
  .stage-meta { left: 20px; right: auto; bottom: 18px; flex-wrap: wrap; }
  .boot-mark { margin-left: 28px; }
  .hud-frame { inset: 80px 14px 14px; }
  .shot img { aspect-ratio: 16 / 10; }
  .stage-ip, .stage-ip img { height: 50vh; }
  .dossier-ip img { height: 320px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .feat-grid, .stat-row, .shots, .banner-preview { grid-template-columns: 1fr; }
  .shot img { aspect-ratio: 4 / 3; object-position: left center; }
  .stage-ip, .stage-ip img { height: 42vh; }
  .top { gap: 12px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .boot { display: none; }
  .stage-copy, .stage-meta { opacity: 1; transform: none; }
  .core-row .core-copy, .core-row .browser { opacity: 1; transform: none; }
}

/* ─────────── 记忆体系 · 架构图 ─────────── */
html { scroll-behavior: smooth; }
.section[id] { scroll-margin-top: 84px; }

.arch {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.arch-band {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.arch-band:last-child { border-bottom: 0; }
.arch-k {
  margin: 0; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--hud); text-transform: uppercase;
}
.arch-flow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 9px 13px; font-size: 13px; line-height: 1.35;
}
.chip small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.chip.on { border-color: var(--apricot); }
.chip.on small { color: var(--hud); }
.arw { color: var(--hud); opacity: 0.55; font-family: var(--font-mono); }

.cabinet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cab {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--apricot);
  padding: 11px 12px;
}
.cab-n { margin: 0; font-size: 14px; font-weight: 650; }
.cab-d { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.cab-k {
  margin: 7px 0 0; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--hud); opacity: 0.8; word-break: break-all;
}

.mem-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 20px; margin-top: 34px; align-items: start;
}
.mem-shot {
  margin: 0; background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
}
.mem-shot img { width: 100%; height: auto; display: block; }
.mem-shot figcaption {
  padding: 14px 16px; background: var(--card-solid); border-top: 1px solid var(--line);
}
.mem-shot figcaption b { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 2px; }
.mem-shot figcaption span { font-size: 12.5px; color: var(--muted); }
.mem-notes { display: grid; gap: 14px; align-content: start; }
.mem-notes .mod { padding: 18px 20px 18px 24px; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.feat-grid .mod { padding: 20px 20px 20px 24px; }
.foot-line { margin: 4px 0; }

@media (max-width: 980px) {
  .cabinet { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .mem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .arch-band { grid-template-columns: 1fr; }
  .cabinet { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .arch-band { padding: 16px 16px; }
}
.foot { font-size: 12.5px; color: color-mix(in srgb, var(--muted) 82%, var(--ink)); }

/* ═══════════ 记忆 · 两套治理（双轨） ═══════════ */
.chip.fill{ flex:1 1 0; justify-content:center; }
.arch-flow.two{ display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:stretch; }
.arch-flow.two .chip{ justify-content:center; }
.arch-band.wide{ align-items:start; padding-top:22px; padding-bottom:24px; }
.arch-band > .arch-lead,
.arch-band > .twin,
.arch-band > .fork,
.arch-band > .lane-merge{ grid-column:2; }
.arch-lead{ margin:0 0 4px; font-size:13.5px; color:var(--muted); }

.twin{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.lane{
  background:var(--paper-2); border:1px solid var(--line); border-top:3px solid var(--apricot);
  padding:16px 18px 18px;
}
.lane.soul{ background:linear-gradient(180deg, rgba(196,92,26,0.07), rgba(196,92,26,0) 62%), var(--paper-2); }
.lane.pb{
  background:linear-gradient(180deg, rgba(47,122,74,0.07), rgba(47,122,74,0) 62%), var(--paper-2);
  border-top-color:var(--ok);
}
.lane-k::before{
  content:""; display:inline-block; width:7px; height:7px; margin-right:7px;
  background:var(--apricot); transform:rotate(45deg); vertical-align:1px;
}
.lane.pb .lane-k::before{ background:var(--ok); }
.lane-k{
  margin:0 0 8px; font-family:var(--font-mono); font-size:11px;
  letter-spacing:0.16em; color:var(--apricot); text-transform:uppercase;
}
.lane.pb .lane-k{ color:var(--ok); }
.lane h4{ font-family:var(--font-display); font-size:18px; margin:0 0 10px; }
.lane ul{ list-style:none; margin:0; padding:0; }
.lane li{ border-top:1px solid var(--line); padding:9px 0; font-size:12.5px; color:var(--muted); line-height:1.55; }
.lane li b{ display:block; color:var(--ink); font-size:13.5px; margin-bottom:2px; }
.lane-f{
  margin:12px 0 0; padding-left:10px; border-left:3px solid var(--apricot);
  font-size:12.5px; color:var(--ink);
}
.lane.pb .lane-f{ border-left-color:var(--ok); }

/* 分叉 / 汇聚线 */
.fork{ position:relative; height:28px; }
.fork b{ position:absolute; left:50%; top:0; width:2px; height:12px; margin-left:-1px; background:var(--apricot); }
.fork i{ position:absolute; top:12px; height:16px; }
.fork .lf{ left:25%; right:50%; border-left:2px solid var(--apricot); border-top:2px solid var(--apricot); border-top-left-radius:9px; }
.fork .rt{ left:50%; right:25%; border-right:2px solid var(--apricot); border-top:2px solid var(--apricot); border-top-right-radius:9px; }
.fork.up{ transform:scaleY(-1); margin-top:2px; }

.lane-merge{
  margin:12px 0 0; text-align:center; font-size:12px; letter-spacing:0.04em; color:var(--muted);
}

/* ═══════════ 待补图占位符 ═══════════ */
.browser.ph .ph-body{
  aspect-ratio:16 / 9;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
  color:var(--muted); text-align:center; padding:0 26px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.5) 0 14px, rgba(0,0,0,0.02) 14px 28px),
    var(--paper-2);
}
.browser.ph .ph-body svg{ opacity:0.5; }
.browser.ph .ph-body b{ font-size:14px; color:var(--ink); font-weight:650; }
.browser.ph .ph-body span{ font-size:12.5px; max-width:26em; line-height:1.7; }

/* ═══════════ 数字条 ═══════════ */
.facts{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:34px; }
.fact{ border-top:2px solid var(--apricot); padding-top:12px; }
.fact b{ display:block; font-family:var(--font-hud); font-size:24px; color:var(--hud); letter-spacing:0.02em; }
.fact span{ display:block; margin-top:4px; color:var(--muted); font-size:12.5px; line-height:1.6; }

/* 首屏大标题：两句各占一行，不允许多余折行 */
@media (max-width: 768px){
  .stage-copy h1{ font-size: clamp(26px, 7vw, 34px); }
}

.trust{
  margin:22px 0 0; text-align:center; font-size:12px; letter-spacing:0.1em;
  color:var(--hud); font-family:var(--font-mono);
}

@media (max-width:900px){
  .arch-band{ grid-template-columns:1fr; }
  .arch-band > .arch-lead,
  .arch-band > .twin,
  .arch-band > .fork,
  .arch-band > .lane-merge{ grid-column:1; }
  .arch-band > .arch-k{ margin-bottom:6px; }
  .twin, .facts{ grid-template-columns:1fr; }
}

/* ═══════════ 桌宠状态卡 ═══════════ */
.pet-shot{
  margin:0; background:var(--paper-2); border:1px solid var(--line);
  box-shadow:var(--shadow); padding:22px 22px 14px;
}
.pet-shot img{ display:block; margin:0 auto; width:300px; max-width:100%; height:auto; }
.pet-shot figcaption{
  text-align:center; padding:12px 6px 2px; font-size:12px;
  color:var(--muted); letter-spacing:0.04em;
}
@media (max-width:900px){
  .pet-shot{ padding:16px 16px 10px; }
}

/* 桌宠那一行：图栏收窄，卡跟图对齐，不留大片空 */
.core-row.pet{ grid-template-columns: minmax(0, 0.82fr) minmax(240px, 1.18fr); }
.core-row.pet .pet-shot{ max-width: 420px; margin: 0 auto; }

/* ═══════════ 记忆架构图 · 美化 ═══════════ */
/* 1) 流程轨道：一条贯穿竖线 + 每段一个节点，把四段串成"管线"而不是四个抽屉 */
.arch{ position:relative; }
.arch::before{
  content:""; position:absolute; left:56px; top:34px; bottom:34px; width:1px; z-index:0;
  background:linear-gradient(180deg,
    rgba(196,92,26,0) 0%, rgba(196,92,26,0.30) 6%,
    rgba(196,92,26,0.30) 94%, rgba(196,92,26,0) 100%);
}
.arch-band{ position:relative; }
.arch-band::before{
  content:""; position:absolute; left:52px; top:50%; margin-top:-5px; z-index:1;
  width:10px; height:10px; border-radius:50%;
  background:var(--card-solid); border:2px solid var(--apricot);
  box-shadow:0 0 0 4px var(--card-solid);
}
/* 2) 两套治理当主角：一段极淡的暖色底衬，把视线拉过去 */
.arch-band.wide{
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(196,92,26,0.055), rgba(196,92,26,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-bottom-color:rgba(196,92,26,0.28);
}
/* 3) chip 等高：写入 / 取出 / 治理 三段的小卡不再高低不齐 */
.arch-flow .chip{ min-height:56px; justify-content:center; }
@media (max-width:900px){
  .arch::before, .arch-band::before{ display:none; }
}

/* 节点对齐：wide 段是顶部对齐的，圆点跟标签走，别悬在中间 */
.arch-band.wide::before{ top:23px; margin-top:0; }

/* ═══════════ 星图改横版大图 · 三卡挪到下面一行 ═══════════ */
.mem-grid{ grid-template-columns:1fr; gap:22px; }
.mem-notes{ grid-template-columns:repeat(3,1fr); }
.mem-notes .mod{ padding:18px 20px 18px 24px; }
.mem-shot img{ max-height:none; }
@media (max-width:900px){
  .mem-notes{ grid-template-columns:1fr; }
}

/* ═══════════ 星图轮播 ═══════════ */
.shot-rot{ position:relative; aspect-ratio:1.62; background:#08060c; overflow:hidden; }
.mem-shot .shot-rot img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
  opacity:0; transition:opacity .85s ease;
}
.mem-shot .shot-rot img.on{ opacity:1; }
.shot-dots{ position:absolute; left:0; right:0; bottom:16px; display:flex; justify-content:center; gap:9px; z-index:2; }
.shot-dots button{
  width:26px; height:3px; padding:0; border:0; border-radius:2px; cursor:pointer;
  background:rgba(255,255,255,.22); transition:background .3s, width .3s;
}
.shot-dots button.on{ background:var(--apricot); width:38px; }

/* 轮播指示点：提高对比 + 离底边远一点 */
.shot-dots{ bottom:22px; }
.shot-dots button{ background:rgba(255,255,255,.42); box-shadow:0 1px 6px rgba(0,0,0,.55); }
.shot-dots button.on{ background:var(--apricot); }

/* 标题按逗号断行；窄屏放开让它自然折 */
@media (max-width:620px){ br.ln{ display:none; } }

/* ═══════════ 数字条扩到 4 格 + 装配台说明块 ═══════════ */
.facts{ grid-template-columns:repeat(3,1fr); }
.rig{ margin-top:30px; border-top:2px solid var(--apricot); padding-top:16px; }
.rig h3{ font-family:var(--font-display); font-size:20px; line-height:1.45; margin:8px 0 10px; }
.rig .arch-flow{ margin-top:14px; }
@media (max-width:900px){
  .facts{ grid-template-columns:repeat(2,1fr); }
}

.rig h3, .rig .muted{ max-width:800px; }
.fact span{ margin-top:6px; }

/* 跑分格里的对比数字：跳出来 */
.fact span em{ font-style:normal; color:var(--hud); font-weight:600; }

/* 对比数字：只加粗、不抢主数字的橙色 */
.fact span em{ font-style:normal; font-weight:700; color:inherit; }

/* 对照数字：深橙加粗 —— 看得见，但不跟主数字抢焦点 */
.fact span em{ color:#a8621c; }

/* ═══════════ 装配台块：三格对比 + 整行大图 ═══════════ */
.rig h3, .rig .muted{ max-width:780px; }
.rig-vs{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:22px; max-width:1000px; }
.rig-vs .vs{ border-top:2px solid var(--line); padding-top:11px; }
.rig-vs .vs.me{ border-top-color:var(--apricot); }
.rig-vs .vs b{ display:block; font-family:var(--font-hud); font-size:11.5px; letter-spacing:.09em; color:var(--muted); }
.rig-vs .vs em{ display:block; font-style:normal; font-family:var(--font-hud); font-size:19px; color:var(--hud); margin:5px 0 3px; }
.rig-vs .vs span{ display:block; font-size:12.5px; line-height:1.6; color:var(--muted); }
.rig-shot{ margin:26px 0 0; background:var(--paper-2); border:1px solid var(--line); box-shadow:var(--shadow); overflow:hidden; }
.rig-shot img{ width:100%; height:auto; display:block; }
.rig-shot figcaption{ padding:12px 16px; background:var(--card-solid); border-top:1px solid var(--line); font-size:12.5px; color:var(--muted); }
@media (max-width:900px){ .rig-vs{ grid-template-columns:1fr; max-width:520px; } }

/* 备案号位（ICP / 公安联网备案通过后由 app.js 自动填入并显示） */
.beian { margin-top: 6px; font-size: 12px; opacity: .74; }
.beian a { color: inherit; text-decoration: none; }
.beian a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════
   移动端修复块（2026-09-29）
   ───────────────────────────────────────────────────────────────
   为什么放文件最末尾：前面若干条后期补的规则（.core-row.pet / .rig-vs
   等）特异性更高且位置在早先的 @media 之后，导致窄屏断点失效。
   把覆盖统一收在末尾，顺序与特异性不再被抢。
   ═══════════════════════════════════════════════════════════════ */

/* ── 顶部栏：手机上允许按钮区收缩，导航可横滑 ── */
@media (max-width: 640px){
  .top{ flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .top-actions{ flex-wrap: wrap; gap: 8px; }
  .top-actions .btn, .top-actions .ghost{ padding: 7px 12px; font-size: 13px; }
  nav{ order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
       gap: 14px; padding-bottom: 2px; }
  nav::-webkit-scrollbar{ display: none; }
}

/* ── 桌宠段：手机上必须竖排（覆盖 812 行更高特异性的两列规则）── */
@media (max-width: 900px){
  .core-row.pet{ grid-template-columns: 1fr; }
  .core-row.pet .core-copy{ order: 0; }
  .core-row.pet .pet-shot{ max-width: 100%; }
}

/* ── 数字条：手机上单列 ── */
@media (max-width: 620px){
  .facts{ grid-template-columns: 1fr; }
  .rig-vs{ max-width: 100%; }
  .mem-notes{ grid-template-columns: 1fr; }
}

/* ── 通用：窄屏别让内容顶到边缘 ── */
@media (max-width: 640px){
  .stage-copy{ margin: 0 16px 5vh; }
  .stage-copy h1{ font-size: clamp(24px, 8.2vw, 32px); }
  .section{ padding-left: 16px; padding-right: 16px; }
  .pet-shot img{ width: 100%; max-width: 300px; }
  .arch::before, .arch-band::before{ display: none; }
}

/* 首屏背景图：窄屏时不要横向溢出容器（1518 横图在竖屏被 cover 裁切，会多出几 px） */
@media (max-width: 640px){
  .stage-bg img{ max-width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════
   手机专项打磨（2026-09-30）
   ───────────────────────────────────────────────────────────────
   依据：模拟 430/390/360 三宽度实测。
   只调尺寸（字号/内边距/可点区/图片宽度），不碰任何设计元素。
   全部收在文件末尾，桌面端（>640px）零影响。
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px){

  /* ───── P0-1 可点区域撑到 44px（移动端最小触控尺寸）───── */
  nav a{
    padding: 13px 3px; min-height: 44px;
    display: inline-flex; align-items: center;
    font-size: 14px;
  }
  .top-actions .btn, .top-actions .ghost, .top-actions button{
    min-height: 44px; min-width: 44px; padding: 10px 12px; font-size: 13.5px;
  }
  .top{ padding: 8px 14px; }
  .brand img{ height: 34px; width: auto; }

  /* ───── P0-2 字号抬起（11~13px → 12.5~14px）───── */
  .kicker{ font-size: 12.5px; }
  .tag{ font-size: 12px; }
  .chip{ font-size: 13.5px; }
  .chip small{ font-size: 12px; }
  .lane li{ font-size: 14px; }
  .cab-d{ font-size: 13.5px; line-height: 1.65; }
  .foot{ font-size: 13.5px; }
  .note{ font-size: 14px; }
  .trust{ font-size: 13px; }
  .fact span{ font-size: 13px; }
  .rig-vs .vs span{ font-size: 13.5px; }
  .pet-shot figcaption,
  .mem-shot figcaption span,
  .rig-shot figcaption,
  .shot figcaption{ font-size: 12.5px; }

  /* ───── P1-1 首屏立绘（BRO 2026-09-30 定稿：占满竖屏）─────
     原病根：width:auto + height:38vh → 600x1424 竖图算下来只有 125px 宽，像贴纸。
     现按 BRO"IP 形象直接占满竖屏，大一些"改：
       高度 92vh（近满屏）· 宽度自然展开到约 320px（380 视口下）
       右下角对齐 · 让立绘从底部撑满，人物主体落在右侧、不与左侧文案打架。
     注：小屏（≤380px）改用 88vh 防宽度溢出。 */
  /* 像素实测（页面实际用 ip-stand.webp 600x1424）：
       人物纵向 0.6%~99.4%（几乎满图）· 最宽 97% 图宽（第 32% 行）
     反推：图宽 = 屏宽/0.97 → 390 屏需 402px 宽 → 图高 954px = 113vh
     下移 8vh 让头顶让开导航栏；脚底略溢出不碍事（"占满"的必然）。 */
  .stage-ip{ right: -3%; bottom: -8vh; }
  .stage-ip, .stage-ip img{ height: 113vh; width: auto; max-width: none; }

  /* ───── P1-2 窄屏（360px 档）小标签单独占行，别跟正文挤 ───── */
  .core-copy .tag,
  .core-copy .kicker{ display: block; }
  .lane li{ padding: 10px 0; }
}


/* ═══════════════════════════════════════════════════════════════
   手机专项打磨 · 第二轮补齐（2026-09-30）
   第一轮漏掉的：.no / .addr / .arch-k / .lane-* / <b> 小标签、
   首屏按钮、页脚链接、轮播指示点。同样只调尺寸，不改设计。
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px){

  /* ── 字号：统一抬到 ≥12.5px，正文 ≥13px ── */
  .kicker{ font-size: 13px; }
  .no{ font-size: 13px; }
  .addr{ font-size: 12.5px; }
  .arch-k{ font-size: 12.5px; }
  .lane-k{ font-size: 12.5px; }
  .lane-f{ font-size: 13px; }
  .lane-merge{ font-size: 13px; }
  .rec{ font-size: 12.5px; }
  .arch-band b, .lane b, .mem-notes b, .twin b{ font-size: 12.5px; }
  .mem-grid small, .cabinet small{ font-size: 12.5px; }

  /* ── 可点区 ── */
  /* 导航：宽也撑到 44（原来只有 37，左右够不着） */
  nav a{ min-width: 44px; justify-content: center; }

  /* 首屏按钮：高 38 → 44 */
  .stage-copy .btn, .stage-copy .ghost,
  .stage-copy a.btn, .stage-copy a.ghost{
    min-height: 44px; padding: 12px 16px; font-size: 14px;
  }

  /* 轮播指示点：26x3 → 34x8，好点也好看见 */
  .shot-dots button{ width: 34px; height: 8px; }
  .shot-dots button.on{ width: 48px; }

  /* 页脚 / 备案链接：原高仅 15px，用 padding 撑开但不破行（inline-block） */
  .foot a, .beian a{
    display: inline-block; padding: 7px 2px; font-size: 13px;
  }
  .foot, .beian{ line-height: 1.75; }
}


/* ═══════════════════════════════════════════════════════════════
   手机专项打磨 · 第三轮（2026-09-30）
   前两轮选择器没打准的补上（用 DOM 实测路径定位，不猜）：
   - .tag b（编号）/ .stage-meta span / .browser-bar .addr / .chip small
   - .mem-notes .no / .feat-grid .no / .rig-vs .vs b
   - 首屏按钮真实位置是 .hero-actions（不是 .stage-copy）
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px){

  /* ── 字号 ── */
  .tag b{ font-size: 13px; }
  .stage-meta span{ font-size: 12.5px; }
  .browser-bar .addr,
  .device .addr,
  figure.browser .addr,
  figure.browser.ph .addr{ font-size: 12.5px; }
  .chip small,
  .arch-flow .chip small,
  .arch-flow.two .chip small{ font-size: 12.5px; }
  .mem-notes p.no,
  .feat-grid p.no,
  .mod p.no,
  article.mod p.no{ font-size: 13px; }
  .rig-vs .vs b{ font-size: 12.5px; }
  .rig-vs .vs em{ font-size: 20px; }

  /* ── 可点区 ── */
  a.brand{
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  a.brand img{ height: 36px; width: auto; }

  .hero-actions a.btn,
  .hero-actions a.ghost,
  .hero-actions a{ min-height: 44px; padding: 12px 18px; font-size: 14px; }

  /* 轮播指示点：视觉保持细条，用伪元素把点击区撑到 36px 高 */
  .shot-dots button{ position: relative; }
  .shot-dots button::before{
    content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px;
  }

  /* 页脚链接：padding 撑到 44 高 */
  .foot-line a, .foot p a{ display: inline-block; padding: 8px 3px; font-size: 13px; }
  .foot-line{ line-height: 2; }
}




/* ═══════════════════════════════════════════════════════════════
   首屏：立绘占满竖屏 + 文字可读（2026-09-30 · BRO 定稿）
   ───────────────────────────────────────────────────────────────
   病根：.stage-ip 是 z-index:1，.stage-wash 是 auto(0)
        → 立绘压在遮罩之上，原稿那层"淡化人物"的渐变盖不住它
        → 立绘一放大，橙红标题就叠在米黄毛衣上，对比度不足。
   修法：手机端把层级倒过来（wash 1 > ip 0），并加强底部渐变，
        让立绘"从下往上淡入纸色"——上半身占满屏，下半身融入背景。
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px){

  .stage-ip{ z-index: 0; }

  /* 保留原稿的横向渐变（护左侧文案），把纵向渐变提前到 26% 起 */
  .stage-wash{
    z-index: 1;
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--paper) 90%, transparent) 0%,
        color-mix(in srgb, var(--paper) 48%, transparent) 46%,
        transparent 72%),
      linear-gradient(180deg,
        transparent 26%,
        color-mix(in srgb, var(--paper) 80%, transparent) 50%,
        var(--paper) 68%);
  }

  html[data-theme="night"] .stage-wash{
    background:
      linear-gradient(90deg, rgba(23,19,31,.9) 0%, rgba(23,19,31,.46) 48%, transparent 74%),
      linear-gradient(180deg, transparent 26%, rgba(23,19,31,.82) 50%, #17131F 68%);
  }
}


/* ═══════════════════════════════════════════════════════════════
   平板 / 窄桌面（≤860px）：首屏立绘也要占满（2026-09-30）
   ───────────────────────────────────────────────────────────────
   原稿断点链：>860 → 92vh ✓ / 561~860 → 50vh ✗ / ≤560 → 42vh
   → 中段空档（约 815px 窗口）立绘只有 50vh，且它是 width:auto，
     高度一压宽度就只剩一百多 px，看着像贴纸、上方大片空白。
     （BRO 2026-09-30 截图实录）
   修：把手机上验证过的那套上提到 ≤860 —— 113vh + 层级倒置 + 加强渐变。
       113vh 在 815x900 窗口推算出图宽约 428px（占屏 53%），合理。
   放在文件最末，覆盖前面 L598/L604 的旧值。
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 860px){

  .stage-ip{ right: -3%; bottom: -8vh; z-index: 0; }
  .stage-ip, .stage-ip img{ height: 113vh; width: auto; max-width: none; }

  .stage-wash{
    z-index: 1;
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--paper) 90%, transparent) 0%,
        color-mix(in srgb, var(--paper) 48%, transparent) 46%,
        transparent 72%),
      linear-gradient(180deg,
        transparent 26%,
        color-mix(in srgb, var(--paper) 80%, transparent) 50%,
        var(--paper) 68%);
  }
  html[data-theme="night"] .stage-wash{
    background:
      linear-gradient(90deg, rgba(23,19,31,.9) 0%, rgba(23,19,31,.46) 48%, transparent 74%),
      linear-gradient(180deg, transparent 26%, rgba(23,19,31,.82) 50%, #17131F 68%);
  }
}


/* ═══════════════════════════════════════════════════════════════
   修存量横向溢出（2026-09-30）
   ───────────────────────────────────────────────────────────────
   症状：861~1100px 宽度下整页多出 20px 横向滚动。
   坐实：git stash 对照 —— 改前 f3341c8 与改后都是 20px，是存量非本轮引入。
   根因：grid item 默认 min-width:auto，内部有固定宽内容时撑破容器，
         .core-row 的 minmax(0,1.28fr) 收缩不了 → figure.browser 右侧越界 20px。
   修：给 grid item 显式 min-width:0（经典 grid 溢出修法）。
       1440 等宽屏列够宽，加它无副作用。
   ═══════════════════════════════════════════════════════════════ */

/* 第一刀 min-width:0 不够（实测仍 20px）——真根因是 transform 位移：
     div.device left=396 right=980（不超）
     figure.browser.ph left=436 right=1020 ← transform:translateX(40px) 推出去 40px
   transform 的视觉位移计入 scrollWidth，而 grid 列没留余量。
   1440 宽时列够宽，故看不出来。
   修：overflow-x:clip —— 裁掉视觉溢出、不创建滚动容器、不影响 sticky。 */
.core{ overflow-x: clip; }

/* 保留 min-width:0 作为兜底（grid item 常规健壮化） */
.core-row > *,
.core-row .core-copy,
.core-row .device,
figure.browser,
.device{ min-width: 0; }


/* ═══════════════════════════════════════════════════════════════
   星图轮播指示点：横条 → 圆点（BRO 2026-09-30）
   ───────────────────────────────────────────────────────────────
   原样式：26x3px 横条，当前那条拉长到 38px。
   改：三个小圆点，当前那张对应的点大一圈（8px → 11px）。
       重写 width/height/border-radius，位置在末尾压过前面所有旧值。
         - L864 26x3 横条
         - L868 .on width:38px
         - L1055 我上一轮加的 34x8 / 48x8
   （L1106 的 ::before 伪元素扩热区保留，手机上仍好点）
   ═══════════════════════════════════════════════════════════════ */

.shot-dots{ gap: 10px; }
.shot-dots button{
  width: 8px; height: 8px;
  border-radius: 50%;
  /* 未激活点在近黑星空底偏暗（8px 面积比原 26x3 横条小），提亮一档 */
  background: rgba(255, 255, 255, .58);
  transition: background .3s, width .3s, height .3s;
}
.shot-dots button.on{
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--apricot);
}


/* ══════════════════════════════════════════════════════════════
   2026-09-30 · 移动端侧边导航
   桌面：三段式（LOGO 左 / 导航居中 / 操作右）—— 见上方 nav 规则
   手机 ≤720：顶栏常显 [LOGO] … [☀][EN][☰]；点 ☰ 从右侧滑出导航面板
             （右手拇指够得到）· 半透明遮罩 · 导航项逐条错开淡入
   Gitee / GitHub 竖屏时不占顶栏也不进面板（首屏和正文各有入口）
   ══════════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;                     /* 桌面隐藏 · 只在 ≤720 出现 */
  align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-toggle:hover { border-color: var(--apricot); color: var(--apricot); }
.nav-toggle[aria-expanded="true"] { background: var(--card); border-color: var(--apricot); color: var(--apricot); }

/* 编号方框（跟首屏 .tag b 同款）· 给 section 的 kicker 用 */
.kicker b {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 19px; padding: 0 6px; margin-right: 9px;
  border: 1px solid currentColor; font-weight: 500;
}

@keyframes navScrimIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 720px) {
  .top { flex-wrap: nowrap; gap: 8px; }
  .top-actions { margin-left: auto; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  #gtTop, #ghTop { display: none; }   /* 竖屏不占位 · 正文里有入口 */

  /* 遮罩 · 走 body 伪元素，不额外加 DOM */
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: ''; position: fixed; inset: 0;
    background: rgba(24, 16, 8, 0.52);
    backdrop-filter: blur(3px);
    z-index: 29;
    animation: navScrimIn 0.28s ease both;
  }

  /* 侧边面板 · absolute 挂在 fixed 的 .top 上 · height:100vh 铺满 · 从右滑入 */
  #siteNav {
    position: absolute; top: 0; right: 0;
    height: 100vh; width: min(76vw, 296px);
    flex: none; flex-direction: column; gap: 0;
    justify-content: center; align-items: stretch;
    background: var(--card-solid);
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 48px rgba(56, 34, 12, 0.20);
    padding: 0 28px;
    z-index: 40;
    transform: translateX(101%);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #siteNav.open { transform: translateX(0); }

  #siteNav a {
    font-size: 17px; letter-spacing: 0.1em;
    padding: 19px 2px;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #siteNav a:last-child { border-bottom: 0; }
  #siteNav a::after { display: none; }        /* 面板里不要桌面那条下划线 */
  #siteNav.open a { opacity: 1; transform: none; }
  #siteNav.open a:nth-child(1) { transition-delay: 0.09s; }
  #siteNav.open a:nth-child(2) { transition-delay: 0.14s; }
  #siteNav.open a:nth-child(3) { transition-delay: 0.19s; }
  #siteNav.open a:nth-child(4) { transition-delay: 0.24s; }
}
