/*
 * dsh-our-imagen 展示页 — The Develop Room
 * 深色是母版：一间只有安全灯的暗房，相纸是唯一发亮的东西。
 * 浅色是同一间屋子拉开窗帘：暖纸白、墨黑、赭石安全灯。
 * 强调色只有安全灯琥珀；语义色只在状态点上出现；其余一律明度层次。
 */

/* ── 令牌 ─────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0b;
  --bg-rgb: 10 10 11;
  --surface: #111113;
  --surface-2: #17171a;

  --paper: #f2efe8;
  --paper-rgb: 242 239 232;
  --paper-deep: #e6e1d6;

  --ink: #f3f1ec;
  --ink-2: #b3aea4;
  --ink-3: #8f8a81;
  --ink-4: #8a857c;
  /* 相纸上的墨色：深浅两套都是深色，因为相纸在两种主题里都是最亮的表面 */
  --ink-on-paper: #121214;

  --solid-bg: #f2efe8;
  --solid-ink: #121214;

  --hair: rgb(243 241 236 / 10%);
  --hair-2: rgb(243 241 236 / 19%);
  --hair-3: rgb(243 241 236 / 30%);

  --lamp: #dfa262;
  --lamp-rgb: 223 162 98;
  --lamp-soft: rgb(223 162 98 / 11%);
  --lamp-line: rgb(223 162 98 / 42%);

  --ok: #8ec7a3;
  --ok-soft: rgb(142 199 163 / 12%);
  --warn: #e0aa6a;
  --warn-soft: rgb(224 170 106 / 12%);
  --err: #dc9292;
  --err-soft: rgb(220 146 146 / 12%);
  --idle: #8b8780;
  --idle-soft: rgb(139 135 128 / 14%);

  --shadow-print: 0 64px 120px -60px rgb(0 0 0 / 96%), 0 20px 44px -30px rgb(0 0 0 / 78%);
  --shadow-lift: 0 40px 80px -48px rgb(0 0 0 / 92%);
  --shadow-glow: 0 0 0 1px rgb(var(--lamp-rgb) / 45%), 0 40px 90px -50px rgb(0 0 0 / 92%);

  --r-xs: 3px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --font: -apple-system, "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  --maxw: 1320px;
  --pad: clamp(20px, 4.6vw, 64px);
  --sect-y: clamp(72px, 9vw, 128px);
  --hero-stage-h: clamp(300px, 46vh, 520px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --wall-gap: clamp(16px, 1.8vw, 26px);

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #efece5;
  --bg-rgb: 239 236 229;
  --surface: #f8f5ee;
  --surface-2: #f1ede4;

  --paper: #fffdf8;
  --paper-rgb: 255 253 248;
  --paper-deep: #f1ece0;

  --ink: #151517;
  --ink-2: #4d4942;
  --ink-3: #5f5a52;
  --ink-4: #6a655c;
  --ink-on-paper: #151517;

  --solid-bg: #151517;
  --solid-ink: #f7f4ee;

  --hair: rgb(21 21 23 / 13%);
  --hair-2: rgb(21 21 23 / 24%);
  --hair-3: rgb(21 21 23 / 40%);

  --lamp: #8a5417;
  --lamp-rgb: 138 84 23;
  --lamp-soft: rgb(138 84 23 / 9%);
  --lamp-line: rgb(138 84 23 / 38%);

  --ok: #1f7a4c;
  --ok-soft: rgb(31 122 76 / 10%);
  --warn: #9a5b0c;
  --warn-soft: rgb(154 91 12 / 10%);
  --err: #b3403f;
  --err-soft: rgb(179 64 63 / 10%);
  --idle: #6b665e;
  --idle-soft: rgb(107 102 94 / 10%);

  --shadow-print: 0 40px 80px -52px rgb(35 28 18 / 34%), 0 12px 26px -20px rgb(35 28 18 / 20%);
  --shadow-lift: 0 30px 60px -44px rgb(35 28 18 / 30%);
  --shadow-glow: 0 0 0 1px rgb(var(--lamp-rgb) / 38%), 0 30px 60px -44px rgb(35 28 18 / 30%);

  color-scheme: light;
}

/* ── 基础 ─────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--lamp-line);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--lamp);
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--lamp);
  color: #121214;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 2px;
}

html[data-theme="light"] :focus-visible {
  outline-color: var(--ink);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--paper-rgb) / 22%) transparent;
}

html[data-theme="light"] * {
  scrollbar-color: rgb(21 21 23 / 26%) transparent;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(var(--paper-rgb) / 16%);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: var(--r-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--paper-rgb) / 30%);
  background-clip: content-box;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgb(21 21 23 / 20%);
  background-clip: content-box;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-on-paper);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: top 0.2s var(--ease-soft);
}

.skip-link:focus {
  top: 14px;
}

/* ── 环境：安全灯光斑、颗粒、渐晕 ─────────────────────────── */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: -24vh -12vw auto -12vw;
  height: 88vh;
  background: radial-gradient(52% 58% at 74% 0%, rgb(var(--lamp-rgb) / 17%), transparent 72%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 70% at 50% 102%, rgb(0 0 0 / 42%), transparent 62%);
}

html[data-theme="light"] .ambient::before {
  background: radial-gradient(52% 58% at 74% 0%, rgb(var(--lamp-rgb) / 10%), transparent 72%);
}

html[data-theme="light"] .ambient::after {
  background: radial-gradient(130% 70% at 50% 102%, rgb(83 64 34 / 9%), transparent 62%);
}

/* 暗房背景：一张真实的成片被推到失焦，只留下光与色的余温 */
.room-photo-wrap {
  position: absolute;
  inset: -10% -8%;
  overflow: hidden;
}

.room-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(64px) saturate(0.55) brightness(0.5) contrast(1.03);
  opacity: 0.55;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
  mask-image: radial-gradient(70% 62% at 50% 36%, #000 0 28%, rgb(0 0 0 / 0.62) 60%, transparent 92%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 36%, #000 0 28%, rgb(0 0 0 / 0.62) 60%, transparent 92%);
  mask-repeat: no-repeat;
}

.room-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(var(--bg-rgb) / 0.5) 0%, transparent 26%, transparent 66%, rgb(var(--bg-rgb) / 0.9) 100%),
    radial-gradient(60% 50% at 72% 0%, rgb(var(--lamp-rgb) / 0.1), transparent 70%);
}

html[data-theme="light"] .room-photo {
  filter: blur(64px) saturate(0.5) brightness(1.25) contrast(0.82);
  opacity: 0.3;
}

html[data-theme="light"] .room-veil {
  background:
    linear-gradient(180deg, rgb(var(--bg-rgb) / 0.55) 0%, transparent 30%, transparent 70%, rgb(var(--bg-rgb) / 0.85) 100%),
    radial-gradient(60% 50% at 72% 0%, rgb(var(--lamp-rgb) / 0.08), transparent 70%);
}

.lamp {
  position: fixed;
  top: 0;
  left: 0;
  width: min(920px, 120vw);
  height: min(920px, 120vw);
  margin: calc(min(920px, 120vw) / -2) 0 0 calc(min(920px, 120vw) / -2);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(var(--lamp-rgb) / 14%),
    rgb(var(--lamp-rgb) / 5%) 36%,
    transparent 64%
  );
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  will-change: transform;
}

.has-lamp .lamp {
  opacity: 1;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 160px 160px;
  opacity: 0.048;
  mix-blend-mode: overlay;
}

html[data-theme="light"] .grain {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* ── 顶栏 ─────────────────────────────────────────────────── */

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--bg-rgb) / 74%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.chrome.is-stuck {
  border-bottom-color: var(--hair);
  background: rgb(var(--bg-rgb) / 90%);
}

.chrome-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
}

.chrome-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.chrome-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--lamp);
  opacity: 0.55;
  will-change: transform;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--paper);
  color: #17171a;
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-4deg);
}

.brand-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lamp);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-ver {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--lamp);
  transition: right 0.32s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  right: 0;
}

.chrome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* ── 基础控件 ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-soft), background-color 0.2s, border-color 0.2s,
    color 0.2s, box-shadow 0.3s;
}

.btn-primary {
  background: var(--solid-bg);
  color: var(--solid-ink);
  box-shadow: 0 20px 42px -30px rgb(var(--paper-rgb) / 55%);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 50px -28px rgb(var(--paper-rgb) / 60%);
}

.btn-primary:active {
  transform: translateY(0) scale(0.995);
}

.btn-quiet {
  border-color: var(--hair-2);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink-2);
  background: rgb(var(--paper-rgb) / 5%);
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  font-size: 12.5px;
  border-radius: var(--r-xs);
  gap: 6px;
}

.btn-github {
  padding: 0 14px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--hair-3);
  background: rgb(var(--paper-rgb) / 4%);
}

.icon-moon {
  display: none;
}

html[data-theme="light"] .icon-sun {
  display: none;
}

html[data-theme="light"] .icon-moon {
  display: block;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.seg-btn {
  appearance: none;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s, background-color 0.18s;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.is-active {
  background: var(--solid-bg);
  color: var(--solid-ink);
}

.seg-lang .seg-btn {
  padding: 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.seg-sm .seg-btn {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
}

.chip {
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--hair-3);
}

.chip.is-active {
  background: var(--solid-bg);
  border-color: transparent;
  color: var(--solid-ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  background: var(--lamp-soft);
  color: var(--lamp);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-quiet {
  background: transparent;
  border-color: var(--hair);
  color: var(--ink-3);
}

.copy-mini {
  flex: none;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy-mini:hover {
  color: var(--ink);
  border-color: var(--hair-3);
}

.code-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 7px 8px 7px 13px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.code-line code {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  white-space: pre-wrap;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ── 动效开关 ─────────────────────────────────────────────── */

.motion-notice {
  position: relative;
  z-index: 40;
  padding: 9px 24px;
  background: var(--lamp-soft);
  border-bottom: 1px solid var(--hair);
}

.motion-notice[hidden] {
  display: none;
}

.motion-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.motion-notice p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.motion-notice p svg {
  flex: none;
  color: var(--lamp);
}

.motion-notice .btn {
  flex: none;
  height: 32px;
  padding: 0 13px;
  font-size: 12px;
}

#motion-toggle[aria-pressed="true"] {
  color: var(--lamp);
  border-color: var(--lamp-line);
  background: var(--lamp-soft);
}

@media (max-width: 640px) {
  .motion-notice {
    padding: 12px 20px;
  }

  .motion-notice-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ── 相纸 / 显影 ──────────────────────────────────────────── */

.print-frame {
  position: relative;
  display: inline-grid;
  place-items: center;
  max-width: 100%;
  padding: clamp(8px, 1vw, 13px);
  border: 0;
  border-radius: var(--r-xs);
  background: var(--paper);
  box-shadow: var(--shadow-print);
  cursor: zoom-in;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.print-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 1px;
  background: #0d0d0e;
}

.print-frame:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.print-frame-hero img {
  max-height: calc(var(--hero-stage-h) - 26px);
}

.print-frame-stage img {
  max-height: clamp(300px, 50vh, 540px);
}

.print-zoom {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-on-paper);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.print-frame:hover .print-zoom,
.print-frame:focus-visible .print-zoom {
  opacity: 1;
  transform: none;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 64px);
  padding: clamp(44px, 7vh, 96px) var(--pad) clamp(56px, 9vh, 104px);
  overflow: clip;
}

/* 主相纸身后，同一张成片被放大、失焦、羽化成一团光 */
.hero-aura {
  position: absolute;
  inset: -14% -8%;
  z-index: 0;
  pointer-events: none;
}

.hero-aura-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(58px) saturate(0.72) brightness(0.72);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s var(--ease), transform 2.6s var(--ease);
  mask-image: radial-gradient(62% 56% at 52% 46%, #000 0 24%, rgb(0 0 0 / 0.55) 58%, transparent 90%);
  -webkit-mask-image: radial-gradient(62% 56% at 52% 46%, #000 0 24%, rgb(0 0 0 / 0.55) 58%, transparent 90%);
}

.hero-aura-layer.is-active {
  opacity: 0.4;
  transform: scale(1.02);
}

html[data-theme="light"] .hero-aura-layer {
  filter: blur(58px) saturate(0.5) brightness(1.3);
}

html[data-theme="light"] .hero-aura-layer.is-active {
  opacity: 0.26;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  max-width: 13em;
  font-size: clamp(2.4rem, 4.9vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: pretty;
}

.hero-lead {
  margin: 0 0 clamp(26px, 3vw, 36px);
  max-width: 34em;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: clamp(26px, 3vw, 38px) 0 0;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.fact-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lamp);
  opacity: 0.8;
}

.hero-print {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  min-width: 0;
}

/* 固定高度的台面：轮播换画幅时，下方的曝光单与缩略图不会跳动 */
.hero-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--hero-stage-h);
}

.hero-cycle {
  position: relative;
  width: 100%;
  height: 1px;
  margin-top: 14px;
  background: var(--hair);
  overflow: hidden;
}

.hero-cycle i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lamp);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.print-glow {
  position: absolute;
  inset: 4% 6% auto 6%;
  height: 68%;
  background: radial-gradient(58% 58% at 50% 42%, rgb(var(--lamp-rgb) / 13%), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.exposure {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-top: clamp(16px, 2vw, 22px);
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-size: 12px;
  color: var(--ink-3);
}

.exposure-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.exposure-model {
  flex: none;
  color: var(--lamp);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exposure-title {
  overflow: hidden;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exposure-nums {
  flex: none;
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin-top: 14px;
}

.hero-thumb {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

.hero-thumb img {
  width: 100%;
  height: 42px;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.62;
  transition: opacity 0.25s;
}

.hero-thumb:hover {
  border-color: var(--hair-3);
}

.hero-thumb:hover img {
  opacity: 0.9;
}

.hero-thumb.is-active {
  border-color: var(--lamp-line);
  background: var(--lamp-soft);
}

.hero-thumb.is-active img {
  opacity: 1;
}

.hero-thumb-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.hero-thumb-meta strong {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-thumb-meta .tabular {
  flex: none;
  color: var(--ink-3);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vh, 26px);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--lamp-line), transparent);
  transform-origin: top;
  animation: scroll-cue 2.6s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% {
    transform: scaleY(0.2);
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ── 区块骨架 ─────────────────────────────────────────────── */

.works,
.lab,
.workflow,
.architecture,
.install {
  position: relative;
  z-index: 1;
  padding: var(--sect-y) var(--pad);
}

.works::before,
.lab::before,
.workflow::before,
.architecture::before,
.install::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: var(--hair);
}

.works > *,
.lab > *,
.workflow > *,
.architecture > *,
.install > * {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: clamp(24px, 5vw, 88px);
  margin-bottom: clamp(38px, 5vw, 68px);
}

.section-head-single {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.section-head-single .section-title {
  max-width: 21em;
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.section-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section-desc {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.74;
}

.section-head-single .section-desc {
  max-width: 62ch;
}

/* ── 成片墙 ───────────────────────────────────────────────── */

.wall-count {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wall {
  position: relative;
}

/* 安全灯扫过成片墙：JS 把墙面进度写进 --p，扫光跟着移动。
   left/right 取 0 而不是负值：模糊光晕本身会向外扩散，负值只会让页面横向溢出。 */
.wall-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    50% 46% at 50% 50%,
    rgb(var(--lamp-rgb) / 0.2),
    rgb(var(--lamp-rgb) / 0.06) 55%,
    transparent 78%
  );
  filter: blur(38px);
  mask-image: linear-gradient(180deg, transparent, #000 38%, #000 62%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%, #000 62%, transparent);
}

html[data-motion="on"] .wall-sweep {
  opacity: 1;
  will-change: transform;
}

.wall-items {
  position: relative;
  height: 0;
  column-gap: var(--wall-gap);
}

.print {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.45s var(--ease);
}

.print-img {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
  box-shadow: var(--shadow-print);
  transition: box-shadow 0.45s var(--ease);
}

.print-img .print-color {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 1000ms var(--ease), opacity 900ms var(--ease), transform 1400ms var(--ease);
}

/* 安全灯：悬停的成片回到银盐状态，光标处的那一圈重新显色 */
.print-mono {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.06) brightness(0.94);
  transition: opacity 0.38s var(--ease-soft);
  pointer-events: none;
  mask-image: radial-gradient(
    circle 190px at var(--lx, 50%) var(--ly, 50%),
    #0000 0 24%,
    rgb(0 0 0 / 0.5) 58%,
    #000 100%
  );
  -webkit-mask-image: radial-gradient(
    circle 190px at var(--lx, 50%) var(--ly, 50%),
    #0000 0 24%,
    rgb(0 0 0 / 0.5) 58%,
    #000 100%
  );
  mask-repeat: no-repeat;
}

.print:hover .print-mono,
.print:focus-visible .print-mono {
  opacity: 1;
}

.print .print-img .print-color,
.print .print-meta {
  transition-delay: var(--enter-delay, 0ms);
}

.print:not(.is-developed) .print-color {
  filter: blur(16px) grayscale(1) brightness(1.5) contrast(0.7);
  opacity: 0.26;
  transform: scale(1.02);
}

.print-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.print:not(.is-developed) .print-meta {
  opacity: 0;
  transform: translateY(6px);
}

.print-meta strong {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-meta .print-nums {
  flex: none;
  color: var(--ink-3);
  font-size: 11px;
}

.print:hover {
  transform: translateY(-3px);
}

.print:hover .print-img {
  box-shadow: var(--shadow-glow);
}

.wall-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ── 模型暗房 ─────────────────────────────────────────────── */

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}

.model-rail {
  min-width: 0;
}

.model-rail-head,
.rail-scale {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-rail-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair-2);
}

.rail-scale {
  margin-top: 12px;
  color: var(--ink-4);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.model-list {
  display: block;
}

.model-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  width: 100%;
  padding: 12px 10px 12px 10px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.22s, color 0.22s;
}

.model-item:hover {
  background: rgb(var(--paper-rgb) / 3.5%);
}

.model-item.is-active {
  background: rgb(var(--paper-rgb) / 6%);
}

.model-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.model-item-name {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.model-item-name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-family-tag {
  flex: none;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-sec {
  flex: none;
  color: var(--ink-2);
  font-size: 11.5px;
}

.model-item.is-active .model-sec {
  color: var(--lamp);
}

.model-item-desc {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-speed {
  position: relative;
  height: 1px;
  margin-top: 7px;
  background: var(--hair-2);
}

.model-speed i {
  position: absolute;
  top: -2.5px;
  left: calc(var(--t) * 100%);
  width: 2px;
  height: 6px;
  border-radius: 1px;
  background: var(--ink-4);
  transition: background-color 0.22s, height 0.22s, top 0.22s;
}

.model-item.is-calibrated .model-speed i {
  background: var(--ink-2);
}

.model-item.is-active .model-speed i {
  top: -3.5px;
  height: 8px;
  background: var(--lamp);
}

.stage-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.stage-print .print-frame {
  margin-top: 6px;
}

.lab-filmstrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 0;
}

.film-thumb {
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease-soft);
}

.film-thumb img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.film-thumb:hover {
  transform: translateY(-2px);
}

.film-thumb:hover img {
  opacity: 0.95;
}

.film-thumb.is-active {
  border-color: var(--lamp-line);
}

.film-thumb.is-active img {
  opacity: 1;
}

.lab-note {
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--hair-2);
}

.lab-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lab-note-title h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.lab-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lab-model-desc {
  margin: 14px 0 0;
  max-width: 66ch;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.7;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 0;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
  background: var(--bg);
}

.spec-cell dt {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-cell dd {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec-cell-repo dd {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.prompt-well {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.prompt-well-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-well-head .tabular {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.prompt-text {
  margin: 10px 0 0;
  max-height: 132px;
  overflow: auto;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.72;
  overscroll-behavior: contain;
}

/* ── 两种用法 ─────────────────────────────────────────────── */

.workflow-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}

.shot {
  min-width: 0;
}

.shot-frame {
  padding: clamp(8px, 1vw, 12px);
  border-radius: var(--r-xs);
  background: var(--paper);
  box-shadow: var(--shadow-print);
}

.shot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}

.shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.shot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.shot-chips.is-hidden {
  display: none;
}

.wf-copy {
  min-width: 0;
  padding-top: 4px;
}

.wf-copy #workflow-tabs {
  margin-bottom: 18px;
}

.wf-side-title {
  margin: 0 0 22px;
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.wf-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.wf-points li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.74;
}

.wf-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--lamp);
}

.wf-note {
  margin: 24px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: rgb(var(--paper-rgb) / 3%);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}

/* ── 原理与边界：一段被钉住的光路 ─────────────────────────── */

.flow {
  position: relative;
  margin-bottom: clamp(34px, 4.4vw, 56px);
}

.flow-stage {
  position: relative;
}

/* 钉屏时把「标题 + 流水线 + 说明」当作一幕居中场景；不钉屏（窄屏/关动效）时按普通文档流阅读 */
@media (min-width: 981px) {
  html[data-motion="on"] .flow-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 72px);
  }
}

.flow-body {
  position: relative;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(112px, 148px) minmax(0, 1fr) minmax(112px, 148px)
    minmax(0, 1fr) minmax(112px, 148px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: rgb(var(--paper-rgb) / 2.5%);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), opacity 0.4s var(--ease);
}

/* 终点节点默认和其它节点一样安静，只有光点走到时才发亮 */
.pipeline-node.is-terminal {
  border-color: var(--hair-2);
}

.pipeline-node.is-lit {
  border-color: var(--hair-3);
}

.pipeline-node.is-active {
  border-color: var(--lamp-line);
  background: var(--lamp-soft);
  box-shadow: 0 24px 56px -42px rgb(var(--lamp-rgb) / 70%);
}

.pipeline-step {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: color 0.4s var(--ease);
}

.pipeline-node.is-lit .pipeline-step,
.pipeline-node.is-active .pipeline-step {
  color: var(--lamp);
}

.pipeline-node strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.pipeline-sub {
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.pipeline-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  padding: 0 4px;
}

.pipeline-line {
  position: relative;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--hair-2), var(--hair), var(--hair-2));
}

/* 光点走过之后，连接线从灰发丝变成安全灯色 */
.pipeline-fill {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--lamp);
  opacity: 0.8;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.pipeline-line::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lamp);
  opacity: 0.7;
}

.pipeline-tag {
  width: 100%;
  max-width: 100%;
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
}

/* 安全灯光点：JS 在连接线空隙里推进 x/y，CSS 只负责形状与光晕 */
.flow-spark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 1px rgb(var(--lamp-rgb) / 38%), 0 0 26px 8px rgb(var(--lamp-rgb) / 26%);
  opacity: 0;
  pointer-events: none;
}

.flow-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(168px, 20vw, 240px);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(26px, 4.6vh, 46px);
}

/* 默认状态就是完整可读的四段说明；脚本接管后才切换成「一次一条」 */
.flow-captions {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-caption {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.flow-caption-index {
  flex: none;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: color 0.38s var(--ease);
}

.flow-caption p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.72;
}

/* 只有「桌面 + 动效开启 + 成功接管」时才叠成单条轮换 */
@media (min-width: 981px) {
  html[data-motion="on"] .flow-stage.is-armed .flow-captions {
    position: relative;
    display: block;
    min-height: clamp(84px, 12vh, 112px);
  }

  html[data-motion="on"] .flow-stage.is-armed .flow-caption {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
  }

  html[data-motion="on"] .flow-stage.is-armed .flow-caption.is-active {
    opacity: 1;
    transform: none;
  }

  /* 光没走到的节点稍微退后，路径感更强 */
  html[data-motion="on"] .flow-stage.is-armed .pipeline-node:not(.is-lit) {
    opacity: 0.68;
  }

  html[data-motion="on"] .flow-stage.is-armed .flow-caption.is-active .flow-caption-index {
    color: var(--lamp);
  }
}

/* 空白相纸：最后一步才「显影」出实际的成片 */
.flow-print {
  width: 100%;
  margin: 0;
  padding: clamp(7px, 1vw, 11px);
  border-radius: var(--r-xs);
  background: var(--paper);
  box-shadow: var(--shadow-print);
  transform: rotate(-1.4deg);
}

.flow-print-mat {
  display: block;
  overflow: hidden;
  border-radius: 1px;
  background: radial-gradient(75% 75% at 50% 45%, #17171a, #0d0d0e);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%);
}

html[data-theme="light"] .flow-print-mat {
  background: radial-gradient(75% 75% at 50% 45%, #e6e0d4, #dad3c4);
  box-shadow: inset 0 0 0 1px rgb(21 21 23 / 8%);
}

.flow-print img {
  display: block;
  width: 100%;
  height: auto;
}

.truths {
  display: grid;
  gap: 0;
  margin: 0 0 clamp(34px, 4.4vw, 56px);
  padding: 0;
  list-style: none;
}

.truth {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 56px);
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}

.truth:last-child {
  border-bottom: 1px solid var(--hair);
}

.truth h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.truth p {
  margin: 0;
  max-width: 72ch;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.76;
}

.drivers {
  border-top: 1px solid var(--hair-2);
  padding-top: 22px;
}

.drivers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.drivers-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.drivers-sub {
  color: var(--ink-3);
  font-size: 11.5px;
}

.table-wrap {
  overflow-x: auto;
}

.drivers-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border-top: 1px solid var(--hair);
  font-size: 12.5px;
}

.drivers-table th {
  padding: 12px 16px 11px;
  border-bottom: 1px solid var(--hair-2);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.drivers-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-3);
  vertical-align: top;
}

.drivers-table tbody tr:last-child td {
  border-bottom: 0;
}

.drivers-table tbody tr {
  transition: background-color 0.2s;
}

.drivers-table tbody tr:hover {
  background: rgb(var(--paper-rgb) / 3%);
}

.drivers-table td strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.status.is-ok {
  color: var(--ok);
}

.status.is-warn {
  color: var(--warn);
}

.status.is-idle {
  color: var(--idle);
}

/* ── 三步上手 ─────────────────────────────────────────────── */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 72px);
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--hair);
}

.step:last-child {
  border-bottom: 1px solid var(--hair);
}

.step-aside {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.step-index {
  flex: none;
  color: var(--lamp);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.step-aside h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.step-body {
  min-width: 0;
  max-width: 76ch;
}

.step-body > p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.78;
}

.step-body > p:last-child {
  margin-bottom: 0;
}

.step-body strong {
  color: var(--ink);
  font-weight: 650;
}

.choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

.choice {
  padding-left: 15px;
  border-left: 1px solid var(--hair-2);
}

.choice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 650;
}

.choice p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.7;
}

.clean-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.78;
}

.clean-list li + li {
  margin-top: 4px;
}

.clean-list::marker,
.clean-list li::marker {
  color: var(--ink-4);
}

.inst-pane {
  padding-top: 16px;
}

.inst-pane.is-hidden {
  display: none;
}

.profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-label {
  color: var(--ink-3);
  font-size: 12px;
}

.step-hint {
  margin: 12px 0 0 !important;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ── 页脚 ─────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vh, 96px) var(--pad) 28px;
  border-top: 1px solid var(--hair);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 88px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .brand-name {
  font-size: 13px;
}

.footer-desc {
  margin: 0 0 20px;
  max-width: 52ch;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.creator {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: rgb(var(--paper-rgb) / 2.5%);
}

.creator-qr {
  flex: none;
  padding: 6px;
  border-radius: 5px;
  background: var(--paper);
}

.creator-qr img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 2px;
}

.creator-info {
  min-width: 0;
}

.creator-name {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
}

.creator-slogan {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.65;
}

.creator-id {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(40px, 6vh, 64px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ── 灯箱 ─────────────────────────────────────────────────── */

/* 灯箱打开时锁滚动；scrollbar-gutter 保证锁定时页面不横向跳动 */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(4 4 5 / 88%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  will-change: opacity;
}

.lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1120px, 94vw);
  max-height: 92vh;
  will-change: opacity;
}

.lightbox-paper {
  max-width: 100%;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 60px 140px -50px rgb(0 0 0 / 85%);
  transform-origin: 50% 50%;
}

.lightbox-paper img {
  display: block;
  max-width: min(1080px, 88vw);
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: 1px;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgb(243 241 236 / 26%);
  border-radius: 50%;
  background: rgb(243 241 236 / 8%);
  color: #f3f1ec;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
  background: rgb(243 241 236 / 16%);
  border-color: rgb(243 241 236 / 44%);
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: #b3aea4;
  font-size: 12px;
}

.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.lightbox-meta strong {
  color: #f3f1ec;
  font-size: 13px;
  font-weight: 650;
}

.lightbox-meta .tabular {
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
}

.lightbox-nav .icon-btn {
  border-color: rgb(243 241 236 / 22%);
  color: #d8d4cc;
}

.lightbox-nav .icon-btn:hover {
  border-color: rgb(243 241 236 / 44%);
  color: #fff;
  background: rgb(243 241 236 / 8%);
}

/* ── Toast ───────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-on-paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 70%);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── 响应式 ───────────────────────────────────────────────── */

@media (max-width: 1320px) and (min-width: 981px) {
  .hero-thumb-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: clamp(2.25rem, 4.6vw, 3.8rem);
  }

  .lab-grid {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .chrome-inner {
    gap: 16px;
  }

  .chrome-actions {
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding-top: clamp(36px, 6vh, 72px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(34px, 6vw, 56px);
  }

  .hero-title {
    max-width: 16em;
  }

  :root {
    --hero-stage-h: clamp(240px, 40vh, 440px);
  }

  .hero-print {
    align-items: stretch;
  }

  .hero-scroll {
    display: none;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .section-aside {
    gap: 16px;
  }

  .lab-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .model-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .rail-scale {
    display: none;
  }

  .stage-print .print-frame {
    margin-top: 0;
  }

  .print-frame-stage img {
    max-height: clamp(220px, 42vh, 380px);
  }

  .workflow-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .pipeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pipeline-link {
    flex-direction: row;
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
    height: 42px;
    gap: 14px;
  }

  .pipeline-tag {
    width: auto;
    max-width: none;
    text-align: left;
    white-space: normal;
  }

  .pipeline-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(var(--hair-2), var(--hair));
  }

  .pipeline-line::after {
    display: none;
  }

  .flow-spark {
    display: none;
  }

  .flow-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(22px, 4vw, 32px);
  }

  .flow-print {
    width: min(320px, 68vw);
  }

  .truth {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 640px) {
  :root {
    --sect-y: clamp(56px, 12vw, 84px);
  }

  .chrome-inner {
    height: 58px;
    gap: 12px;
  }

  .brand-ver {
    display: none;
  }

  .seg-lang .seg-btn {
    padding: 0 9px;
  }

  .btn-github span {
    display: none;
  }

  .btn-github {
    width: 36px;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8.4vw, 2.7rem);
    letter-spacing: -0.028em;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    height: 46px;
    padding: 0 18px;
    font-size: 13.5px;
  }

  .exposure {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .exposure-nums {
    font-size: 12px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title {
    font-size: clamp(1.65rem, 6.6vw, 2.2rem);
  }

  .section-desc {
    font-size: 14px;
  }

  .wall-hint {
    justify-content: flex-start;
  }

  .lab-note-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lab-note-actions {
    justify-content: flex-start;
  }

  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator {
    flex-direction: column;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .lightbox-close {
    top: -42px;
    right: 0;
  }

  .lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .hero-thumb-meta strong {
    font-size: 9.5px;
  }

  .print-frame {
    padding: 7px;
  }

  .step-aside {
    gap: 10px;
  }
}

@media (max-height: 560px) {
  .lightbox-paper img {
    max-height: calc(100vh - 132px);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    background: rgb(12 12 14 / 74%);
    border-color: rgb(243 241 236 / 32%);
  }
}

/* ── 滚动驱动（GSAP ScrollTrigger 逐帧写入） ─────────────── */

/* Hero 视差、背景照片、墙面光扫的 transform 由 GSAP 直接管理；
   CSS 只保留「关闭动效时的静态位置」与区块发丝线的进度变量。 */

.works::before,
.lab::before,
.workflow::before,
.architecture::before,
.install::before {
  transform-origin: 0 50%;
  transform: scaleX(var(--rule-p, 1));
}

html[data-motion="off"] .hero-print,
html[data-motion="off"] .hero-copy,
html[data-motion="off"] .room-photo {
  transform: none;
  opacity: 1;
}

@media (max-width: 780px), (pointer: coarse) {
  .wall-sweep {
    display: none;
  }
}

/* ── 动效减退 / 显式关闭 ──────────────────────────────────── */

html[data-motion="off"] {
  scroll-behavior: auto;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

html[data-motion="off"] .lamp,
html[data-motion="off"] .hero-scroll,
html[data-motion="off"] .hero-cycle,
html[data-motion="off"] .wall-sweep {
  display: none;
}

html[data-motion="off"] .wall .print .print-color,
html[data-motion="off"] .wall .print .print-meta {
  filter: none;
  opacity: 1;
  transform: none;
}

/* 关掉钉屏后，四段说明自然回到静态列表；错误兜底时也保持可读 */
html[data-motion="off"] .flow-spark {
  display: none;
}

@media (max-width: 780px) {
  .room-photo {
    filter: blur(40px) saturate(0.5) brightness(0.6);
    opacity: 0.42;
  }

  .hero-aura-layer {
    filter: blur(38px) saturate(0.7) brightness(0.75);
  }

  .hero-aura-layer.is-active {
    opacity: 0.3;
  }
}

/* 触屏与小屏不做背景视差，避免大尺寸模糊层反复重栅格化 */
@media (pointer: coarse), (max-width: 780px) {
  html[data-motion="on"] .room-photo {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
}

@media (pointer: coarse) {
  .lamp {
    display: none;
  }

  .print-mono {
    display: none;
  }
}

/* ── 滚动叙事（粘性场景 / 滚动驱动展示） ─────────────────── */

/* 1. 成片墙的显影计数条：贴在顶栏下方，随墙面滚动推进 */
.wall-bar {
  position: sticky;
  top: 64px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 11px 0 12px;
  background: rgb(var(--bg-rgb) / 86%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.wall-bar-label {
  flex: none;
}

.wall-bar-track {
  flex: 1 1 auto;
  height: 1px;
  overflow: hidden;
  background: var(--hair-2);
}

.wall-bar-track i {
  display: block;
  height: 100%;
  background: var(--lamp);
  opacity: 0.8;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.wall-bar-count {
  flex: none;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.wall-bar-count b {
  color: var(--lamp);
  font-weight: 650;
}

/* 2. 模型暗房：安全灯光带扫过速度标尺，逐行把耗时刻度打上去 */
.model-list-wrap {
  position: relative;
}

.rail-beam {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lamp-line) 10%,
    var(--lamp) 50%,
    var(--lamp-line) 90%,
    transparent
  );
  box-shadow: 0 0 22px 6px rgb(var(--lamp-rgb) / 24%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
}

/* 刻度默认就是实点：只有光带正在扫过时，还没扫到的行才退回灰点 */
.model-rail.is-calibrating .model-item:not(.is-calibrated) .model-speed i {
  opacity: 0.3;
  transform: scaleY(0.5);
}

.model-speed i {
  opacity: 1;
  transform: none;
  transform-origin: 50% 100%;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.22s, height 0.22s, top 0.22s;
}

.model-item.is-calibrated .model-sec {
  color: var(--ink);
}

/* 3. 两种用法：钉住的光桌，安全灯放大镜依次停在三个界面的关键区域 */
.workflow-body {
  align-items: center;
}

@media (min-width: 981px) {
  /* 钉屏时这一幕铺满一屏：视口高度减去顶栏与钉屏起点偏移，内容垂直居中 */
  html[data-motion="on"] .workflow-body {
    min-height: calc(100svh - 84px);
  }
}

.shot-plate {
  --sx: 12.9;
  --sy: 42;
  --plate-w: 100%;
  --plate-h: 100%;
  --loupe-zoom: 1.5;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1px;
  background: #0d0d0e;
}

.shot-plate .shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s var(--ease), opacity 0.35s var(--ease);
}

/* 被钉住时：整张截图退回银盐，只有放大镜下的一圈保留原色 */
.shot.is-armed .shot-img {
  filter: saturate(0.36) brightness(0.5) contrast(1.05);
}

html[data-theme="light"] .shot.is-armed .shot-img {
  filter: saturate(0.55) brightness(0.76) contrast(0.98);
}

.shot-loupe {
  position: absolute;
  top: calc(var(--sy) * var(--plate-h) / 100);
  left: calc(var(--sx) * var(--plate-w) / 100);
  z-index: 2;
  width: 26%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: 0 0 0 1px rgb(var(--lamp-rgb) / 60%), 0 0 46px 8px rgb(var(--lamp-rgb) / 13%),
    0 34px 64px -34px rgb(0 0 0 / 84%);
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.shot-loupe img {
  position: absolute;
  top: calc(50% - var(--sy) * var(--plate-h) / 100);
  left: calc(50% - var(--sx) * var(--plate-w) / 100);
  width: var(--plate-w);
  height: var(--plate-h);
  max-width: none;
  object-fit: cover;
  transform: scale(var(--loupe-zoom));
  transform-origin: calc(var(--sx) * 1%) calc(var(--sy) * 1%);
}

.shot.is-armed .shot-loupe {
  opacity: 1;
}

.shot-progress {
  display: none;
  flex: none;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.shot.is-armed .shot-progress {
  display: inline;
}

/* 钉住时右侧说明按幕点亮；不钉屏时三句一直保持可读 */
.wf-copy.is-armed .wf-points li {
  color: var(--ink-3);
  transition: color 0.34s var(--ease);
}

.wf-copy.is-armed .wf-points li::before {
  width: 7px;
  background: var(--hair-3);
  transition: width 0.34s var(--ease), background-color 0.34s var(--ease);
}

.wf-copy.is-armed .wf-points li.is-active {
  color: var(--ink);
}

.wf-copy.is-armed .wf-points li.is-active::before {
  width: 13px;
  background: var(--lamp);
}

/* 4. 三步上手：一条纵向光路跟着阅读进度往下走，步骤标题粘在光路上 */
.steps-wrap {
  --step-gutter: clamp(18px, 2.2vw, 30px);
  position: relative;
  padding-left: var(--step-gutter);
}

.install-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hair-2);
}

.install-track-fill {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--lamp);
  opacity: 0.55;
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.install-track-spark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 1px rgb(var(--lamp-rgb) / 40%), 0 0 20px 6px rgb(var(--lamp-rgb) / 24%);
  opacity: 0;
}

.steps-wrap.is-armed .install-track-spark {
  opacity: 1;
}

.step {
  position: relative;
}

/* 把每一步的分隔发丝线接到左侧光路上 */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: calc(-1 * var(--step-gutter));
  height: 1px;
  background: var(--hair);
}

.step-aside {
  position: sticky;
  top: 96px;
  align-self: start;
}

.step-index {
  transition: color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}

.step.is-current .step-index {
  color: var(--lamp);
  letter-spacing: 0.26em;
}

.steps-wrap.is-armed .step:not(.is-current) .step-aside h3 {
  color: var(--ink-2);
}

.steps-wrap.is-armed .step.is-current .step-aside h3 {
  color: var(--ink);
}

html[data-motion="off"] .wall-bar,
html[data-motion="off"] .rail-beam,
html[data-motion="off"] .install-track {
  display: none;
}

html[data-motion="off"] .shot.is-armed .shot-img {
  filter: none;
}

html[data-motion="off"] .shot-loupe {
  display: none;
}

@media (max-width: 980px) {
  .wall-bar {
    top: 58px;
  }

  .rail-beam,
  .install-track,
  .shot-loupe {
    display: none;
  }

  .steps-wrap {
    padding-left: 0;
  }

  .step::before {
    left: 0;
  }

  .step-aside {
    position: static;
  }

  .workflow-body {
    align-items: start;
  }
}

@media print {
  .wall-bar,
  .rail-beam,
  .install-track,
  .shot-loupe,
  .ambient,
  .chrome,
  .lightbox,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}
