/* v3 新大陆立体空间档案：设计令牌（原生 color-scheme + light-dark 双主题、标准滚动条与物理弹簧曲线） */

:root {
  color-scheme: light dark;

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }

  --paper: light-dark(#f4f1ea, #0e0e0d);
  --paper-deep: light-dark(#eae5da, #161614);
  --surface: light-dark(rgba(252, 250, 245, 0.9), rgba(24, 24, 22, 0.9));
  --surface-solid: light-dark(#fcfaf5, #181816);
  --surface-hud: light-dark(rgba(246, 243, 236, 0.8), rgba(18, 18, 16, 0.82));
  --surface-dock: light-dark(rgba(252, 250, 245, 0.86), rgba(24, 24, 22, 0.88));

  --ink: light-dark(#10100f, #f2eee5);
  --ink-soft: light-dark(#2e2d2a, #d1cbc0);
  --mute: light-dark(#5c574e, #9a9387);

  --accent: light-dark(#e8341c, #f24a34);
  --accent-hover: light-dark(#cc2812, #ff5d47);
  --accent-soft: light-dark(rgba(232, 52, 28, 0.09), rgba(242, 74, 52, 0.14));
  --accent-line: light-dark(rgba(232, 52, 28, 0.36), rgba(242, 74, 52, 0.44));

  --rule: light-dark(rgba(16, 16, 15, 0.11), rgba(242, 238, 229, 0.13));
  --rule-strong: light-dark(rgba(16, 16, 15, 0.82), rgba(242, 238, 229, 0.82));
  --outline-img: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));

  --px-portrait-veil: light-dark(transparent, rgba(14, 14, 13, 0.14));

  --fan-border: light-dark(#fcfaf5, #252422);
  --active-sub-ink: light-dark(rgba(244, 241, 234, 0.7), rgba(16, 16, 15, 0.7));

  --scrollbar-thumb: light-dark(#6f695f, #8d877c);
  --scrollbar-track: light-dark(#eae5da, #161614);

  /* 阴影色彩变量使用 light-dark() 按当前 <color> 签名切换，保证多阴影语法在全浏览器有效 */
  --shadow-ink-soft: light-dark(rgba(16, 16, 15, 0.07), rgba(0, 0, 0, 0.36));
  --shadow-ink-mid: light-dark(rgba(16, 16, 15, 0.13), rgba(0, 0, 0, 0.54));
  --shadow-ink-sub: light-dark(rgba(16, 16, 15, 0.05), rgba(0, 0, 0, 0.28));
  --shadow-ink-deep: light-dark(rgba(16, 16, 15, 0.22), rgba(0, 0, 0, 0.72));
  --shadow-sm: 0 2px 10px -2px var(--shadow-ink-soft);
  --shadow-md: 0 16px 38px -12px var(--shadow-ink-mid), 0 2px 6px -1px var(--shadow-ink-sub);
  --shadow-lg: 0 28px 64px -16px var(--shadow-ink-deep), 0 6px 14px -4px var(--shadow-ink-sub);

  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --display: "Syne", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 0.55rem;
  --radius-md: 0.95rem;
  --radius-lg: 1.35rem;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.22, 1.18, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  accent-color: var(--accent);
}

/* 渐进增强：物理弹簧 linear() 曲线（仅用于 transform / width / scale） */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-spring: linear(
      0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017,
      1.077, 1.121, 1.149 24.3%, 1.159, 1.163 27.1%, 1.161, 1.154 29.9%,
      1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%,
      0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1
    );
  }
}

/* 老版本浏览器无 light-dark() 支持时的颜色回退 */
@supports not (color: light-dark(white, black)) {
  :root {
    --paper: #f4f1ea;
    --paper-deep: #eae5da;
    --surface: rgba(252, 250, 245, 0.9);
    --surface-solid: #fcfaf5;
    --surface-hud: rgba(246, 243, 236, 0.8);
    --surface-dock: rgba(252, 250, 245, 0.86);
    --ink: #10100f;
    --ink-soft: #2e2d2a;
    --mute: #5c574e;
    --accent: #e8341c;
    --accent-hover: #cc2812;
    --accent-soft: rgba(232, 52, 28, 0.09);
    --accent-line: rgba(232, 52, 28, 0.36);
    --rule: rgba(16, 16, 15, 0.11);
    --rule-strong: rgba(16, 16, 15, 0.82);
    --outline-img: rgba(0, 0, 0, 0.1);
    --px-portrait-veil: transparent;
    --fan-border: #fcfaf5;
    --active-sub-ink: rgba(244, 241, 234, 0.7);
    --scrollbar-thumb: #6f695f;
    --scrollbar-track: #eae5da;
    --shadow-ink-soft: rgba(16, 16, 15, 0.07);
    --shadow-ink-mid: rgba(16, 16, 15, 0.13);
    --shadow-ink-sub: rgba(16, 16, 15, 0.05);
    --shadow-ink-deep: rgba(16, 16, 15, 0.22);
  }
  @media (prefers-color-scheme: dark) {
    :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
      --paper: #0e0e0d;
      --paper-deep: #161614;
      --surface: rgba(24, 24, 22, 0.9);
      --surface-solid: #181816;
      --surface-hud: rgba(18, 18, 16, 0.82);
      --surface-dock: rgba(24, 24, 22, 0.88);
      --ink: #f2eee5;
      --ink-soft: #d1cbc0;
      --mute: #9a9387;
      --accent: #f24a34;
      --accent-hover: #ff5d47;
      --accent-soft: rgba(242, 74, 52, 0.14);
      --accent-line: rgba(242, 74, 52, 0.44);
      --rule: rgba(242, 238, 229, 0.13);
      --rule-strong: rgba(242, 238, 229, 0.82);
      --outline-img: rgba(255, 255, 255, 0.1);
      --px-portrait-veil: rgba(14, 14, 13, 0.14);
      --fan-border: #252422;
      --active-sub-ink: rgba(16, 16, 15, 0.7);
      --scrollbar-thumb: #8d877c;
      --scrollbar-track: #161614;
      --shadow-ink-soft: rgba(0, 0, 0, 0.36);
      --shadow-ink-mid: rgba(0, 0, 0, 0.54);
      --shadow-ink-sub: rgba(0, 0, 0, 0.28);
      --shadow-ink-deep: rgba(0, 0, 0, 0.72);
    }
  }
  :root:has(> head > meta[name="color-scheme"][content="dark"]) {
    --paper: #0e0e0d;
    --paper-deep: #161614;
    --surface: rgba(24, 24, 22, 0.9);
    --surface-solid: #181816;
    --surface-hud: rgba(18, 18, 16, 0.82);
    --surface-dock: rgba(24, 24, 22, 0.88);
    --ink: #f2eee5;
    --ink-soft: #d1cbc0;
    --mute: #9a9387;
    --accent: #f24a34;
    --accent-hover: #ff5d47;
    --accent-soft: rgba(242, 74, 52, 0.14);
    --accent-line: rgba(242, 74, 52, 0.44);
    --rule: rgba(242, 238, 229, 0.13);
    --rule-strong: rgba(242, 238, 229, 0.82);
    --outline-img: rgba(255, 255, 255, 0.1);
    --px-portrait-veil: rgba(14, 14, 13, 0.14);
    --fan-border: #252422;
    --active-sub-ink: rgba(16, 16, 15, 0.7);
    --scrollbar-thumb: #8d877c;
    --scrollbar-track: #161614;
    --shadow-ink-soft: rgba(0, 0, 0, 0.36);
    --shadow-ink-mid: rgba(0, 0, 0, 0.54);
    --shadow-ink-sub: rgba(0, 0, 0, 0.28);
    --shadow-ink-deep: rgba(0, 0, 0, 0.72);
  }
}

/* Windows 高对比 / Forced Colors Mode 适配（确保卡片边界与激活态不依赖阴影和背景图） */
@media (forced-colors: active) {
  .cover-primary-cta,
  .hud-brand,
  .hud-room-pill,
  .hud-btn,
  .studio-dock,
  .room-next-btn,
  .tool-chip,
  .contact-sheet,
  .contact-close-btn,
  .cv-stat,
  .ledger-row,
  .notes-reader,
  .note-nav-btn,
  .lab-featured,
  .exhibit-row,
  .sheet-cell {
    border: 1px solid ButtonBorder;
  }
  .dock-btn.is-active,
  .note-nav-btn.is-active {
    background: Highlight;
    color: HighlightText;
  }
}

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

html {
  font-size: clamp(16px, 0.96vw, 20px);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 280ms ease, color 280ms ease;
}

body {
  font: 400 1rem / 1.75 var(--sans);
}

::selection {
  background: var(--accent);
  color: #fcfaf5;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
mark {
  background: var(--accent);
  color: #fcfaf5;
  padding: 0.04em 0.32em;
  border-radius: 0.22em;
  font-weight: 700;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 像素动态图标通用尺寸 */
.px-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--px-size, 22px);
  height: var(--px-size, 22px);
  flex: 0 0 auto;
  line-height: 0;
}
.px-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: crispEdges;
}


/* 全局舞台外壳：WebGL 环境光、顶部 HUD、底部悬浮 Dock、Noomo 空间幕布、智能光标、朱砂联系抽屉 */

#ambientLight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(125deg, var(--paper), var(--paper-deep), var(--paper));
}
#ambientLight canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 420ms ease;
}
#ambientLight[data-renderer="webgl2"] canvas {
  opacity: 1;
}

/* 原版经典开场：10 枚字形从模糊散落聚焦成「王轼衡 / SHIHENG」，再 FLIP 飞入主页主标题 */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.intro-screen[hidden] {
  display: none !important;
}
.intro-backdrop {
  position: absolute;
  inset: 0;
  background: var(--paper);
  z-index: -1;
}
.intro-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 3.2vh, 2rem);
}
.intro-name {
  white-space: nowrap;
  transform-origin: 0 0;
}
.intro-name .ch {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 14px, 0) scale(0.95);
}
.intro-cn {
  font: 900 clamp(4.2rem, 12.5vw, 9.6rem)/0.94 var(--serif);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.intro-en {
  font: 800 clamp(1.85rem, 9.2vw, 7.2rem)/0.92 var(--display);
  font-size-adjust: from-font;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.intro-screen:not(.intro-prepared) .intro-names {
  visibility: hidden;
}
.intro-loader {
  position: absolute;
  left: 50%;
  bottom: max(1.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: var(--mute);
  font: 600 0.76rem/1 var(--mono);
  font-size-adjust: from-font;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

body.intro-active:not(.intro-revealing) .top-hud,
body.intro-active:not(.intro-revealing) .stage-viewport,
body.intro-active:not(.intro-revealing) .studio-dock-wrap {
  visibility: hidden;
}
body.intro-active #heroCnTarget,
body.intro-active #heroEnTarget {
  visibility: hidden;
}
#heroCnTarget .ch,
#heroEnTarget .ch {
  display: inline-block;
}

/* 首帧同步拦截：从工具页返回或带 hash 直达非首页时，0ms 屏蔽开场页，彻底杜绝闪烁 */
html[data-skip-intro="1"] .intro-screen {
  display: none !important;
}
html[data-skip-intro="1"] body.intro-active .top-hud,
html[data-skip-intro="1"] body.intro-active .stage-viewport,
html[data-skip-intro="1"] body.intro-active .studio-dock-wrap,
html[data-skip-intro="1"] body.intro-active #heroCnTarget,
html[data-skip-intro="1"] body.intro-active #heroEnTarget {
  visibility: visible !important;
}

/* 跨页返回首帧防闪黑幕：在 portal.js 接管前立即兜底遮住，接管后丝滑揭开 */
html[data-handoff-pending="1"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 790;
  background: #121211;
  pointer-events: none;
}

/* 仅在首页显示重播开场按钮 */
body:not([data-room="home"]) .hud-replay-btn {
  display: none;
}

/* ================= 顶部轻盈 Studio HUD ================= */
.top-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 160;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.hud-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: auto;
}

.hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.78rem 0.34rem 0.42rem;
  border-radius: var(--radius-pill);
  background: var(--surface-hud);
  border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 900 0.9rem/1 var(--serif);
  scale: 1;
  transition: border-color 180ms ease, scale 140ms var(--ease-out);
}
.hud-brand:hover {
  border-color: var(--accent);
}
.hud-brand:active {
  scale: 0.96;
}
.hud-seal {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.4rem;
  background: var(--accent);
  color: #fcfaf5;
  display: grid;
  place-items: center;
  font: 700 0.74rem/1 var(--serif);
}

.hud-room-pill {
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--surface-hud);
  border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 600 0.7rem/1 var(--mono);
  font-size-adjust: from-font;
  letter-spacing: 0.12em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.hud-home-mark {
  display: none;
  font: 600 0.68rem/1 var(--mono);
  font-size-adjust: from-font;
  letter-spacing: 0.18em;
  color: var(--mute);
}
body[data-room="home"] .hud-brand,
body[data-room="home"] .hud-room-pill {
  display: none;
}
body[data-room="home"] .hud-home-mark {
  display: inline-block;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  height: 2.05rem;
  padding: 0 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--surface-hud);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink-soft);
  font: 600 0.72rem/1 var(--mono);
  font-size-adjust: from-font;
  cursor: pointer;
  scale: 1;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, scale 140ms var(--ease-out);
}
.hud-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.hud-btn.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.hud-btn:active {
  scale: 0.96;
}
.hud-btn .px-icon {
  --px-size: 16px;
}

/* ================= 主空间视口容器 ================= */
.stage-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.room-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  padding: 68px 0 116px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
@supports not (scrollbar-color: auto) {
  .room-panel {
    scrollbar-width: auto;
  }
  .room-panel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  .room-panel::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 9999px;
  }
  .room-panel::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}
.room-panel[hidden] {
  display: none;
}

/* 首页极致留白扉页全端一屏锁定，让 3D 群山自由透气 */
.room-panel[data-room="home"] {
  overflow: hidden;
  padding: 58px 0 92px;
}

/* ================= 底部悬浮 Studio OS Dock（带柔光羽化底边 + 物理弹簧滑动胶囊） ================= */
.dock-bottom-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 108px;
  z-index: 210;
  pointer-events: none;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--paper) 94%, transparent) 0%,
    color-mix(in srgb, var(--paper) 58%, transparent) 48%,
    transparent 100%
  );
  transition: opacity 260ms ease;
}
body[data-room="home"] .dock-bottom-fade {
  opacity: 0;
}

.studio-dock-wrap {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 240;
  max-width: calc(100% - 1.25rem);
}

.studio-dock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.38rem;
  border-radius: 1.25rem;
  background: var(--surface-dock);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
}

.dock-indicator {
  position: absolute;
  top: 0.38rem;
  bottom: 0.38rem;
  left: 0;
  width: 0;
  border-radius: 0.88rem;
  background: var(--ink);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: transform 420ms var(--ease-spring), width 420ms var(--ease-spring), opacity 180ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .dock-indicator {
    transition: opacity 150ms ease;
  }
}
.dock-indicator.is-ready {
  opacity: 1;
}

.dock-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.8rem;
  border-radius: 0.88rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  white-space: nowrap;
  translate: 0 0;
  scale: 1;
  transition: background-color 180ms ease, color 220ms ease, border-color 180ms ease, translate 200ms var(--ease-spring), scale 200ms var(--ease-spring);
}

.dock-btn .px-icon {
  --px-size: 20px;
  color: currentColor;
  scale: 1;
  transition: scale 220ms var(--ease-spring);
}
.dock-btn-label {
  font: 600 0.8rem/1 var(--sans);
}
.dock-kbd {
  font: 500 0.62rem/1 var(--mono);
  font-size-adjust: from-font;
  opacity: 0.52;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .dock-btn:not(.is-active):hover {
    color: var(--ink);
    background: var(--accent-soft);
    translate: 0 -2px;
  }
  .dock-btn:hover .px-icon {
    scale: 1.14;
  }
}
.dock-btn:active {
  scale: 0.95;
}

.dock-btn.is-active {
  background: transparent;
  color: var(--paper);
}
.dock-btn.is-active .dock-kbd {
  opacity: 0.72;
}

.dock-sep {
  width: 1px;
  height: 22px;
  background: var(--rule);
  margin: 0 0.15rem;
  flex-shrink: 0;
}

.dock-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.88rem;
  border-radius: 0.88rem;
  border: 0;
  background: var(--accent);
  color: #fcfaf5;
  font: 600 0.8rem/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  translate: 0 0;
  scale: 1;
  transition: background-color 180ms ease, translate 180ms var(--ease-spring), scale 180ms var(--ease-spring);
}
.dock-contact-btn .px-icon {
  --px-size: 18px;
  color: #fcfaf5;
}
.dock-contact-btn:hover {
  background: var(--accent-hover);
  translate: 0 -2px;
}
.dock-contact-btn:active {
  scale: 0.95;
}

/* ================= Noomo 升级版空间切换幕布 ================= */
.portal-transition {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  visibility: hidden;
}
.portal-transition.is-active {
  visibility: visible;
}
.pt-edge,
.pt-curtain {
  position: absolute;
  inset: 0;
  clip-path: polygon(0% 108%, 100% 100%, 100% 100%, 0% 108%);
  will-change: clip-path;
}
.pt-edge {
  background: var(--accent);
}
.pt-curtain {
  background: #121211;
  color: #f4f1ea;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
}
.pt-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 241, 234, 0.09) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.pt-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.72rem;
  width: min(92vw, 72rem);
}
.pt-icon {
  --px-size: 64px;
  width: 64px;
  height: 64px;
  color: #f4f1ea;
  margin-bottom: 0.25rem;
}
.pt-no {
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.26em;
  color: #e8341c;
}
.pt-title {
  font: 800 clamp(1.35rem, 3.8vw, 3.05rem)/1.08 var(--display);
  letter-spacing: -0.025em;
  color: #f4f1ea;
  white-space: nowrap;
  overflow: hidden;
  padding: 0.14em 0;
}
.pt-ch {
  display: inline-block;
  will-change: transform, opacity;
}
.pt-zh {
  font: 700 1.05rem/1.4 var(--serif);
  letter-spacing: 0.16em;
  color: #a69f93;
}
.pt-line {
  width: min(14rem, 56vw);
  height: 2px;
  margin-top: 0.55rem;
  background: rgba(244, 241, 234, 0.14);
  overflow: hidden;
  border-radius: 2px;
}
.pt-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: #e8341c;
  transform-origin: left center;
  transform: scaleX(0);
}

/* ================= 极简智能跟随交互徽标 ================= */
.smart-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 700;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: transform;
}
.smart-cursor.is-visible {
  opacity: 1;
}
.sc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(252, 250, 245, 0.75);
}
.sc-label {
  display: none;
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #111110;
  color: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.22);
  font: 600 0.64rem/1 var(--mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}
.smart-cursor.has-label .sc-label {
  display: inline-block;
}

/* ================= 全站原生模态弹窗强制滚动隔离与 Backdrop 裁切 ================= */
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* ================= 朱砂红「我们可以聊聊。」原生 Top-Layer 联系抽屉 ================= */
.contact-drawer {
  position: fixed;
  inset-inline: 0;
  inset-block-start: auto;
  inset-block-end: 0;
  width: min(100%, 64rem);
  max-width: 100%;
  max-height: min(92dvh, 100%);
  margin-inline: auto;
  margin-block: auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 360ms;
  transition-timing-function: var(--ease-out);
  /* 独立声明于 transition-* 之后，确保支持离散顶层退场且不被旧浏览器整条丢弃 */
  transition-behavior: allow-discrete;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-drawer {
    transform: translateY(100%);
  }
}
.contact-drawer[open]:where(:not([data-closing])) {
  opacity: 1;
  @starting-style {
    opacity: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    transform: translateY(0);
    @starting-style {
      transform: translateY(100%);
    }
  }
}
.contact-drawer::backdrop {
  background-color: rgba(12, 12, 11, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, -webkit-backdrop-filter, display, overlay;
  transition-duration: 300ms;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
.contact-drawer[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(12, 12, 11, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  @starting-style {
    background-color: rgba(12, 12, 11, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-drawer,
  .contact-drawer::backdrop {
    transition-duration: 100ms;
  }
}

.contact-sheet {
  width: 100%;
  background: var(--accent);
  color: #10100f;
  border-radius: 1.65rem 1.65rem 0 0;
  border: 2px solid #10100f;
  border-bottom: 0;
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.5rem, 4vw, 3.25rem) max(2rem, env(safe-area-inset-bottom));
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.35);
}
.contact-sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.contact-sheet h2 {
  font: 900 clamp(2.5rem, 6.5vw, 5.2rem)/0.96 var(--serif);
  letter-spacing: -0.04em;
  color: #10100f;
}
.contact-close-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid #10100f;
  background: transparent;
  color: #10100f;
  font: 500 1.45rem/1 var(--sans);
  cursor: pointer;
  flex-shrink: 0;
  scale: 1;
  transition: background-color 180ms ease, color 180ms ease, scale 160ms var(--ease-out);
}
.contact-close-btn:hover {
  background: #10100f;
  color: #fcfaf5;
}
.contact-close-btn:active {
  scale: 0.94;
}
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin-top: 2rem;
}
.contact-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  min-inline-size: 24px;
  min-block-size: 24px;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1.5px solid #10100f;
  background: transparent;
  color: #10100f;
  font: 600 clamp(1rem, 2vw, 1.45rem)/1.4 var(--mono);
  font-size-adjust: from-font;
  cursor: pointer;
  scale: 1;
  transition: scale 140ms var(--ease-out);
}
.contact-copy:active { scale: 0.97; }
.contact-label {
  font: 700 0.82rem/1 var(--sans);
}
.contact-copy svg {
  width: 1rem;
  height: 1rem;
  align-self: center;
  opacity: 0.72;
}
.contact-copy .copy-check { display: none; }
.contact-copy[data-copied] .copy-mark { display: none; }
.contact-copy[data-copied] .copy-check { display: block; }
.contact-copy[data-failed] {
  border-bottom-style: dashed;
}
.contact-status {
  margin-top: 0.85rem;
  min-height: 1.4rem;
  font: 600 0.84rem/1.4 var(--sans);
  opacity: 0;
  transition: opacity 180ms ease;
}
.contact-status[data-visible] {
  opacity: 1;
}
.contact-colo {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 16, 15, 0.3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font: 500 0.74rem/1.5 var(--mono);
}

@media (max-width: 780px) {
  .hud-room-pill,
  .dock-kbd,
  .dock-btn-label {
    display: none;
  }
  .dock-btn {
    padding: 0.55rem 0.68rem;
  }
  .dock-contact-btn span:last-child {
    display: none;
  }
  .dock-contact-btn {
    padding: 0.55rem 0.72rem;
  }
}

@media (max-width: 560px) {
  .top-hud {
    padding-inline: 0.85rem;
  }
  .hud-home-mark {
    display: none !important;
  }
  .hud-btn {
    padding: 0 0.62rem;
    font-size: 0.68rem;
  }
}


/* 房间 00：方向 A · 极致留白建筑画册扉页（全屏 3D 群山为绝对视觉主角，雕塑级排字 + 单一主入口） */

.cover-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(1.75rem, 4.5svh, 2.75rem);
}

.cover-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 44rem;
  width: 100%;
}

/* 无边框建筑图纸眉标 */
.cover-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: clamp(1.05rem, 2.5svh, 1.75rem);
  font: 500 0.68rem/1 var(--mono);
  font-size-adjust: from-font;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
  color: var(--mute);
}
.cover-eyebrow span {
  white-space: nowrap;
}
.cover-eyebrow i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

/* 雕塑级中文大字（纯净无处理原生排字，自然落于 3D 群山之上） */
.atlas-title-cn {
  font: 900 clamp(3.15rem, 6.5vw, 5.5rem)/0.96 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.atlas-title-en {
  margin-top: clamp(0.4rem, 0.95svh, 0.75rem);
  padding-inline-start: 0.2em;
  font: 800 clamp(1.12rem, 2.05vw, 1.72rem)/1 var(--display);
  font-size-adjust: from-font;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.cover-rule {
  display: block;
  width: 2rem;
  height: 1.5px;
  margin: clamp(0.95rem, 2.2svh, 1.5rem) 0 clamp(0.8rem, 1.7svh, 1.2rem);
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.78;
}

.cover-role {
  font: 500 clamp(0.84rem, 1.1vw, 0.96rem)/1.65 var(--sans);
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.cover-epigraph {
  margin-top: 0.42rem;
  font: 700 clamp(0.98rem, 1.42vw, 1.18rem)/1.65 var(--serif);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.cover-actions {
  margin-top: clamp(1.55rem, 3.8svh, 2.45rem);
}

.cover-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-block-size: 44px;
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 700 0.88rem/1 var(--serif);
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-md);
  translate: 0 0;
  scale: 1;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    translate 220ms var(--ease-spring),
    scale 160ms var(--ease-out),
    box-shadow 220ms ease;
}
.cover-cta-arrow {
  display: inline-block;
  translate: 0 0;
  transition: translate 220ms var(--ease-spring);
}
@media (hover: hover) and (pointer: fine) {
  .cover-primary-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fcfaf5;
    translate: 0 -2px;
    box-shadow: var(--shadow-lg);
  }
  .cover-primary-cta:hover .cover-cta-arrow {
    translate: 3px 0;
  }
}
.cover-primary-cta:active {
  scale: 0.96;
}

@media (max-width: 600px) {
  .cover-stage {
    padding-bottom: 1.5rem;
  }
  .cover-eyebrow {
    font-size: 0.56rem;
    letter-spacing: 0.09em;
    gap: 0.35rem 0.48rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .cover-role {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
  .cover-epigraph {
    font-size: 0.96rem;
    letter-spacing: 0.05em;
  }
}


/* 四大独立策展空间样式：01 履历精算室 / 02 思辨阅览室 / 03 实践实验室 / 04 摄影美术馆 & 暗房查看器 */

.room-container {
  width: 100%;
  max-width: min(80rem, 92vw);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1.125rem, 3.2vw, 2.25rem) 1.5rem;
}

/* 每个空间顶部统一策展标头 */
.room-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.2rem;
  margin-bottom: clamp(1.75rem, 4svh, 2.75rem);
  border-bottom: 2px solid var(--rule-strong);
}
.room-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.room-num {
  padding: 0.32rem 0.68rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fcfaf5;
  font: 700 0.75rem/1 var(--mono);
  font-size-adjust: from-font;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.room-header h1 {
  font: 900 clamp(1.95rem, 4.4vw, 3.5rem)/1.05 var(--serif);
  letter-spacing: -0.02em;
}
.room-header small {
  display: block;
  margin-top: 0.45rem;
  font: 500 0.92rem/1.45 var(--sans);
  color: var(--mute);
  letter-spacing: 0.06em;
}
.room-header-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--surface-solid);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.room-header-icon .px-icon {
  --px-size: 30px;
}

/* 每个房间底部的「下一空间传送门」 */
.room-next-bar {
  margin-top: clamp(2.5rem, 6svh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.room-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong);
  background: var(--surface-solid);
  color: var(--ink);
  font: 700 0.92rem/1 var(--serif);
  cursor: pointer;
  scale: 1;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, scale 160ms var(--ease-out);
}
.room-next-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.room-next-btn:active {
  scale: 0.96;
}
.room-next-btn .px-icon {
  --px-size: 20px;
}

/* ================= ROOM 01: 履历精算室 ================= */
.cv-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.cv-id-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.cv-portrait-frame {
  position: relative;
  display: block;
  width: clamp(6.5rem, 10.4vw, 8.75rem);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  scale: 1;
  transition: border-color 180ms ease, scale 180ms var(--ease-spring), box-shadow 180ms ease;
}
.cv-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--px-portrait-veil);
  pointer-events: none;
  transition: background-color 240ms ease;
}
.cv-portrait-frame:hover {
  border-color: var(--accent-line);
}
.cv-portrait-frame:active {
  scale: 0.96;
}
.cv-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
}
.cv-portrait-hover {
  opacity: 0;
  transition: opacity 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cv-portrait-frame:hover .cv-portrait-hover {
    opacity: 1;
  }
}
.cv-portrait-frame:focus-visible .cv-portrait-hover,
.cv-portrait-frame.is-alt .cv-portrait-hover {
  opacity: 1;
}
.cv-lead-text {
  font: 900 clamp(1.22rem, 2.05vw, 1.82rem)/1.48 var(--serif);
}
.cv-lead-text mark {
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  color: var(--accent);
  padding: 0 0.14em;
  border-radius: 0;
  border-bottom: 2px solid var(--accent-line);
  font-weight: 900;
  line-height: 1.32;
}
.cv-meta-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}
.cv-meta-tags li {
  padding: 0.34rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--paper);
  font: 500 0.78rem/1.3 var(--mono);
  color: var(--ink-soft);
}

.cv-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.cv-stat {
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  translate: 0 0;
  transition: translate 200ms var(--ease-out), border-color 200ms ease;
}
.cv-stat:hover {
  translate: 0 -2px;
  border-color: var(--accent-line);
}
.cv-stat .stat-num {
  display: block;
  font: 800 clamp(2rem, 3vw, 2.75rem)/1 var(--display);
  font-size-adjust: from-font;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
}
.cv-stat strong {
  display: block;
  font: 700 0.9rem/1.35 var(--serif);
}
.cv-stat small {
  display: block;
  margin-top: 0.2rem;
  font: 500 0.72rem/1.35 var(--mono);
  color: var(--mute);
}

.ledger-timeline {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.ledger-row {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.65rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 240px;
}
.ledger-time-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ledger-time-col time {
  font: 700 0.86rem/1.4 var(--mono);
  font-size-adjust: from-font;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ledger-span {
  font: 600 0.68rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.ledger-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.ledger-badges span {
  font: 600 0.68rem/1 var(--mono);
  padding: 0.28rem 0.55rem;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
}
.ledger-body h3 {
  font: 900 clamp(1.18rem, 1.7vw, 1.45rem)/1.3 var(--serif);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.ledger-body h3 i {
  font: 600 0.72rem/1.1 var(--mono);
  font-style: normal;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.ledger-body ul {
  margin-top: 0.85rem;
  padding-left: 1.15em;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}
.ledger-body ul li::marker {
  content: "▸ ";
  color: var(--accent);
}
.cv-metric {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  padding: 0.04em 0.28em;
  border-radius: 4px;
  background: var(--accent-soft);
  border-bottom: 1.5px solid var(--accent-line);
  font-variant-numeric: tabular-nums;
}

/* 房间切换揭幕后的克制错峰呼吸入场（仅非减弱动效偏好启用） */
@keyframes room-item-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.room-stagger-in {
  @media (prefers-reduced-motion: no-preference) {
    animation: room-item-in 460ms var(--ease-out) both;
    animation-delay: var(--stagger-d, 0ms);
  }
}

/* 交互工具矩阵 */
.tool-deck {
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.tool-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.tool-deck-head span {
  font: 600 0.74rem var(--mono);
  letter-spacing: 0.12em;
  color: var(--mute);
}
.tool-insight {
  font: 500 0.84rem/1.4 var(--sans);
  color: var(--accent);
}
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--paper);
  font: 600 0.78rem/1 var(--mono);
  cursor: pointer;
  scale: 1;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, scale 140ms var(--ease-out);
}
.tool-chip .px-icon { --px-size: 16px; }
.tool-chip.is-active,
.tool-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.tool-chip:active { scale: 0.96; }

/* ================= ROOM 02: 思辨阅览室 ================= */
.notes-progress-bar {
  position: sticky;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 20;
  margin-bottom: 0.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-notes-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    #notesReadBar {
      animation: grow-notes-progress auto linear;
      /* MANDATORY: 放在 animation 简写之后，避免被简写重置 timeline */
      animation-timeline: scroll(nearest block);
    }
  }
}

.notes-layout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.notes-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.note-nav-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 150ms var(--ease-out);
}
.note-nav-btn span {
  font: 600 0.66rem/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.note-nav-btn strong {
  font: 800 1.02rem/1.35 var(--serif);
  color: var(--ink);
}
.note-nav-btn small {
  font: 400 0.78rem/1.4 var(--sans);
  color: var(--mute);
}
.note-nav-btn.is-active {
  border-color: var(--accent);
  background: var(--ink);
  color: var(--paper);
}
.note-nav-btn.is-active strong { color: var(--paper); }
.note-nav-btn.is-active small { color: var(--active-sub-ink); }

.reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--surface);
  font: 600 0.72rem var(--mono);
  color: var(--mute);
}
.reader-size-btns {
  display: inline-flex;
  gap: 0.35rem;
}
.reader-size-btns button {
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
  font: 600 0.72rem var(--mono);
}
.reader-size-btns button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.notes-reader {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
}
.notes-reader[data-font-scale="0"] { --reader-size: 0.94rem; }
.notes-reader[data-font-scale="1"] { --reader-size: 1.05rem; }
.notes-reader[data-font-scale="2"] { --reader-size: 1.18rem; }

.note-article {
  @media (prefers-reduced-motion: no-preference) {
    animation: article-in 280ms var(--ease-out);
  }
}
@keyframes article-in {
  from { opacity: 0; filter: blur(2px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.article-title {
  font: 900 clamp(1.55rem, 2.8vw, 2.35rem)/1.28 var(--serif);
  letter-spacing: -0.02em;
}
.article-meta {
  margin-top: 0.65rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font: 500 0.76rem var(--mono);
  font-size-adjust: from-font;
  color: var(--mute);
}
.essay-thesis {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--rule);
  font: 800 clamp(1.05rem, 1.5vw, 1.25rem)/1.6 var(--serif);
  color: var(--ink);
}
.essay-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.essay-pillars div {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font: 700 0.86rem/1.45 var(--serif);
  color: var(--ink);
}
.article-prose {
  max-width: 64ch;
  font: 400 var(--reader-size, 1.05rem)/1.95 var(--serif);
  color: var(--ink-soft);
}
.article-prose p { margin: 1.1em 0; }
.article-prose b { color: var(--ink); }
.article-prose ul {
  margin: 1.25em 0;
  padding-left: 1.3em;
  display: grid;
  gap: 0.7rem;
}
.article-prose ul li::marker { color: var(--accent); }
.note-highlight {
  background: linear-gradient(transparent 58%, rgba(232, 52, 28, 0.22) 0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.now-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.now-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.now-card i {
  font: 700 0.72rem/1 var(--mono);
  font-style: normal;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  background: var(--accent);
  color: #fcfaf5;
}
.now-card strong {
  font: 800 1.12rem/1.35 var(--serif);
}
.now-card p {
  font: 400 0.92rem/1.7 var(--serif);
  color: var(--ink-soft);
}

/* ================= ROOM 03: 互动实践实验室（与全站暖纸 ↔ 暗室视觉完全统一） ================= */
.lab-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.lab-featured:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 440px;
}
.lab-featured:hover {
  border-color: var(--accent-line);
}

.lab-featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
}
.lab-featured-id {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 700 0.76rem var(--mono);
  letter-spacing: 0.12em;
  color: var(--accent);
}
.lab-featured-id .px-icon {
  color: var(--ink);
  --px-size: 20px;
}
.lab-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 0.7rem/1 var(--sans);
}
.lab-live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.lab-featured h2 {
  font: 900 clamp(1.5rem, 2.35vw, 2.1rem)/1.22 var(--serif);
  color: var(--ink);
}
.lab-tagline {
  margin-top: 0.65rem;
  font: 700 clamp(0.98rem, 1.3vw, 1.12rem)/1.55 var(--serif);
  color: var(--ink);
}
.lab-desc {
  margin-top: 0.55rem;
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.78;
}
.lab-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}
.lab-tag-row span {
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font: 500 0.74rem/1.2 var(--sans);
  color: var(--ink-soft);
}
.lab-cta-row {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.lab-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fcfaf5;
  font: 700 0.88rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 180ms ease, transform 150ms var(--ease-out);
}
.lab-launch-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.lab-launch-btn:active { transform: scale(0.96); }

.lab-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  font: 600 0.78rem/1 var(--sans);
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}
.lab-sub-link:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

/* LAB 01 右侧：迷你截图美化预览器 */
.lab-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lab-preview-stage {
  position: relative;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
  border: 1px solid var(--outline-img);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(circle at 18% 20%, #c026d3 0%, transparent 56%),
    radial-gradient(circle at 82% 24%, #38bdf8 0%, transparent 54%),
    radial-gradient(circle at 26% 84%, #6366f1 0%, transparent 56%),
    radial-gradient(circle at 80% 82%, #fb7185 0%, transparent 58%),
    #14122b;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: transform 240ms var(--ease-out);
}
.lab-preview-stage:hover {
  transform: translateY(-2px);
}
.lab-stage-copy {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  color: #fff;
}
.lab-stage-copy span {
  align-self: flex-start;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font: 600 0.64rem/1 var(--sans);
}
.lab-stage-copy strong {
  font: 800 clamp(1.08rem, 1.6vw, 1.38rem)/1.25 var(--sans);
}
.lab-stage-copy small {
  font: 500 0.74rem/1.45 var(--sans);
  opacity: 0.88;
}
.lab-stage-phone {
  position: relative;
  width: 132px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #0f1117;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.46);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: rotate(-5deg);
}
.lab-stage-phone-hero {
  height: 36%;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  padding: 7px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  font: 700 0.68rem/1 var(--mono);
}
.lab-stage-phone-bars {
  display: grid;
  gap: 5px;
}
.lab-stage-phone-bars i {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: #1b202c;
  border-left: 3px solid #38bdf8;
}
.lab-stage-phone-bars i:nth-child(2) { border-left-color: #34d399; }
.lab-stage-phone-bars i:nth-child(3) { border-left-color: #fb7185; }
.lab-stage-loupe {
  position: absolute;
  left: -14px;
  right: -12px;
  top: 56%;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(16, 20, 30, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  color: #f8fafc;
  font: 600 0.6rem/1.3 var(--mono);
  display: flex;
  justify-content: space-between;
  transform: rotate(5deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48);
}
.lab-stage-loupe b { color: #a5b4fc; }

.lab-swatch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  font: 500 0.74rem var(--sans);
  color: var(--mute);
}
.lab-swatches {
  display: inline-flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}
.mini-swatch {
  padding: 0.3rem 0.68rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  font: 600 0.72rem/1 var(--sans);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.mini-swatch.is-active,
.mini-swatch:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* LAB 02 右侧：3 条 RPA 真实场景直达列表（与暖纸/暗室统一） */
.lab-theater-preview {
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mini-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.68rem 1rem;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--rule);
  font: 600 0.74rem/1 var(--sans);
  color: var(--mute);
}
.mini-window-bar small {
  font: 600 0.74rem/1 var(--sans);
  color: var(--ink-soft);
}
.rpa-scenario-cards {
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
}
.rpa-sc-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid var(--rule);
  background: var(--surface-solid);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}
.rpa-sc-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(3px);
}
.rpa-sc-no {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: grid; place-items: center;
  font: 700 0.74rem/1 var(--mono);
}
.rpa-sc-link strong {
  display: block;
  font: 800 0.92rem/1.3 var(--serif);
  color: var(--ink);
}
.rpa-sc-link small {
  display: block;
  margin-top: 0.22rem;
  font: 400 0.78rem/1.45 var(--sans);
  color: var(--mute);
}
.rpa-sc-link em {
  font-style: normal;
  font: 700 0.92rem/1 var(--mono);
  color: var(--accent);
}

/* LAB 03 右侧：AI 知识工作流 4 步预览卡（与暖纸/暗室统一） */
.lab-knowledge-preview {
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  transition: border-color 200ms ease, transform 220ms var(--ease-out);
}
.lab-knowledge-preview:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.kf-mini-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.36rem;
}
.kf-mini-node {
  padding: 0.8rem 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid var(--rule);
  background: var(--surface-solid);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  text-align: center;
}
.kf-mini-node.is-accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.kf-mini-node small {
  font: 700 0.64rem/1 var(--mono);
  color: var(--accent);
}
.kf-mini-node strong {
  font: 800 0.84rem/1.25 var(--serif);
  color: var(--ink);
}
.kf-mini-node span {
  font: 500 0.68rem/1.2 var(--sans);
  color: var(--mute);
}
.kf-mini-arrow {
  font: 700 0.82rem/1 var(--mono);
  color: var(--mute);
}
.kf-mini-caption {
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font: 500 0.78rem/1.4 var(--sans);
  color: var(--mute);
}
.kf-mini-caption b {
  color: var(--accent);
  font-weight: 700;
}

/* ================= ROOM 04: 摄影暗房美术馆 ================= */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.gallery-mode-switch {
  display: inline-flex;
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.gallery-mode-btn {
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: var(--mute);
  font: 600 0.8rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.gallery-mode-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}
.gallery-stat-note {
  font: 500 0.78rem var(--mono);
  color: var(--mute);
}
.gallery-stat-note b { color: var(--accent); }

/* 策展展厅视图（4 组横幅展板 + 接触印相缩略条） */
.exhibit-wall {
  display: grid;
  gap: 1.35rem;
}
.exhibit-row {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 380px;
}
.exhibit-cover-btn {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 8px solid var(--surface-solid);
  box-shadow: var(--shadow-md);
  outline: 1px solid var(--outline-img);
}
.exhibit-cover-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms var(--ease-out);
}
.exhibit-cover-btn:hover img {
  transform: scale(1.04);
}
.exhibit-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.exhibit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.exhibit-head h2 {
  font: 900 clamp(1.35rem, 2.2vw, 1.9rem)/1.2 var(--serif);
}
.exhibit-frame-tag {
  font: 600 0.76rem var(--mono);
  color: var(--accent);
}
.exhibit-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.48rem;
}
.exhibit-strip-thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.exhibit-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exhibit-strip-thumb:hover,
.exhibit-strip-thumb.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.exhibit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: 500 0.78rem var(--mono);
  color: var(--mute);
}
.exhibit-open-cta {
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font: 600 0.78rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.exhibit-open-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* 全 52 帧胶片灯箱索引墙 */
.contact-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.85rem;
}
.sheet-cell {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  padding: 0.42rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 210px;
  transition: border-color 180ms ease;
}
.sheet-cell:hover {
  border-color: var(--accent);
}
.sheet-cell img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  scale: 1;
  transition: scale 260ms var(--ease-out);
}
.sheet-cell:hover img {
  scale: 1.035;
}
.sheet-cell span {
  font: 500 0.68rem/1.2 var(--mono);
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= 全屏暗房查看器 Dialog ================= */
.photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: #f2efe8;
  background: transparent;
  isolation: isolate;
}
.photo-viewer::backdrop { background: transparent; }
.gallery-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 40% 50%, #343434, #111110 85%);
}
.gallery-atmosphere canvas { display: block; width: 100%; height: 100%; }
.viewer-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-block: max(1.4rem, env(safe-area-inset-top)) max(1.4rem, env(safe-area-inset-bottom));
}
.viewer-header,
.viewer-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1.25rem, 5vw, 4.5rem);
}
.viewer-heading { display: flex; flex-direction: column; gap: 0.15rem; }
.viewer-kicker { font: 600 0.65rem/1 var(--mono); letter-spacing: 0.2em; color: #ff7966; }
.viewer-header h2 { font: 800 1.25rem/1.3 var(--serif); color: #f2efe8; }
.viewer-groups {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.26rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(242, 239, 232, 0.2);
  background: rgba(18, 18, 17, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.viewer-group-btn {
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: rgba(242, 239, 232, 0.68);
  font: 600 0.78rem/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}
.viewer-group-btn:hover { color: #f2efe8; }
.viewer-group-btn.is-active {
  background: #f2efe8;
  color: #10100f;
}
@media (max-width: 780px) {
  .viewer-groups { display: none; }
}
.viewer-close,
.viewer-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2.65rem;
  border: 1px solid rgba(242, 239, 232, 0.28);
  border-radius: 50%;
  color: #f2efe8;
  background: rgba(20, 20, 19, 0.36);
  cursor: pointer;
}
.viewer-close { gap: 0.55rem; padding: 0 0.85rem; border-radius: var(--radius-pill); font-size: 0.85rem; }
.viewer-controls { display: flex; align-items: center; gap: 0.6rem; }
.viewer-controls .viewer-play { gap: 0.45rem; padding: 0 0.85rem; border-radius: var(--radius-pill); font-size: 0.8rem; }
.viewer-play svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }
#viewerCount { font: 500 0.78rem var(--mono); color: rgba(242, 239, 232, 0.78); font-variant-numeric: tabular-nums; }
.gallery-stage { position: relative; overflow: hidden; min-height: 0; }
.gallery-track { position: absolute; inset: 0; }
.film-card { position: absolute; left: 50%; top: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.film-mount {
  display: block;
  width: 100%;
  height: 100%;
  padding: var(--film-border, 14px);
  background: #fcfaf5;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  transition: transform 240ms var(--ease-out);
}
.film-card.is-inspected .film-mount { transform: scale(1.045); }
.film-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.film-status { display: none; }

/* ================= 响应式适配 ================= */
@media (max-width: 960px) {
  .cv-hero-card,
  .notes-layout,
  .lab-featured,
  .exhibit-row {
    grid-template-columns: 1fr;
  }
  .cv-meta-tags { justify-content: flex-start; }
  .notes-sidebar { position: static; }
  .rpa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibit-cover-btn { max-width: 240px; }
}

@media (max-width: 680px) {
  .cv-stats-grid,
  .now-grid,
  .essay-pillars {
    grid-template-columns: 1fr;
  }
  .kf-mini-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .kf-mini-arrow { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .room-header-icon { display: none; }
  .lab-preview-stage { grid-template-columns: 1fr; aspect-ratio: auto; }
  .lab-stage-phone { margin: 0 auto; }
}
