/* =========================================================================
 *  home.css —— 主页沉浸式视觉与交互体验
 *  「暗房与取景器游乐场 · Optical Studio & Interactive Light Table」
 * -------------------------------------------------------------------------
 *  作用范围：#cover（首屏光学取景器 / 散景粒子 / 胶片滤镜 / 拍立得吐片 /
 *           35mm 齿孔胶片条）+ #works（三形态展厅：瀑布画廊 / 暗房灯箱桌 /
 *           3D 透视胶片舞台）+ 顶部过渡与胶片滚动条。
 *  不碰碎碎念（#posts）、文章（#articles）、关于、联系及灯箱核心结构。
 * ========================================================================= */

/* ----------------------------------------------------------- 暗房胶片色板 */
:root {
  --ambient-1: 232, 197, 106;
  --ambient-2: 197, 69, 48;
  --film-filter: none;
  --film-grain-opacity: 0.04;
  --film-vignette: 0.52;
}

body[data-film="raw"] {
  --film-filter: none;
  --film-grain-opacity: 0.035;
}
body[data-film="portra"] {
  --film-filter: sepia(0.16) saturate(1.18) contrast(1.04) brightness(1.02) hue-rotate(-5deg);
  --film-grain-opacity: 0.095;
}
body[data-film="cinestill"] {
  --film-filter: contrast(1.14) saturate(1.26) hue-rotate(-10deg) brightness(0.96);
  --film-grain-opacity: 0.11;
}
body[data-film="trix"] {
  --film-filter: grayscale(1) contrast(1.28) brightness(0.98);
  --film-grain-opacity: 0.15;
}
body[data-film="velvia"] {
  --film-filter: saturate(1.38) contrast(1.08) hue-rotate(6deg);
  --film-grain-opacity: 0.075;
}

/* ----------------------------------------------------------- 顶部导航精修 */
.topbar {
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), padding .35s var(--ease);
}
body:not(.is-cover):not(.is-dark) .topbar {
  padding-top: clamp(12px, 1.4vw, 20px);
  padding-bottom: clamp(12px, 1.4vw, 20px);
  background: linear-gradient(180deg, rgba(245, 239, 226, .88) 0%, rgba(245, 239, 226, 0) 100%);
}
body[data-works-theme="dark"]:not(.is-cover) .topbar {
  background: linear-gradient(180deg, rgba(12, 16, 14, .84) 0%, rgba(12, 16, 14, 0) 100%);
}
body[data-works-theme="dark"]:not(.is-cover) .topbar__brand {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}
body[data-works-theme="dark"]:not(.is-cover) .topbar__brand .label--fg {
  color: #fff;
}
body[data-works-theme="dark"]:not(.is-cover) .topbar__brand > .label:last-child {
  color: rgba(255, 255, 255, .58);
  border-left-color: rgba(255, 255, 255, .28);
}
body[data-works-theme="dark"]:not(.is-cover) .nav a,
body[data-works-theme="dark"]:not(.is-cover) .nav a:nth-child(2n),
body[data-works-theme="dark"]:not(.is-cover) .nav a:nth-child(3n) {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .74);
  box-shadow: none;
}
body[data-works-theme="dark"]:not(.is-cover) .nav a.is-on {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--ink);
}
body[data-works-theme="dark"]:not(.is-cover) .slides button {
  border-color: rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .68);
}
body[data-works-theme="dark"]:not(.is-cover) .slides button.is-on {
  background: var(--tomato);
  border-color: var(--tomato);
  color: var(--cream);
}

body.is-cover .nav {
  padding: 5px;
  border-radius: 999px;
  background: rgba(12, 16, 13, .46);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.is-cover .nav a {
  border-radius: 999px;
  padding: 6px 14px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
body.is-cover .nav a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
body.is-cover .nav a.is-on {
  background: rgba(232, 197, 106, .18);
  color: var(--butter);
}

/* ============================================================ 首屏：光学取景器 */
.frame--cover {
  background: #080b09;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  overflow: clip;
  cursor: pointer;
  --px: 0;
  --py: 0;
}
.hero__scroll { pointer-events: none; }

.hero > picture {
  position: absolute;
  inset: -24px;
  z-index: 0;
  display: block;
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0) scale(1.04);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.hero .cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: var(--film-filter);
  transition: filter .45s var(--ease), opacity .35s var(--ease);
}

/* 氛围遮罩：随当前照片动态取色 */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 52% at 22% 32%, rgba(var(--ambient-1), .22), transparent 68%),
    radial-gradient(ellipse 46% 48% at 84% 72%, rgba(var(--ambient-2), .22), transparent 66%),
    linear-gradient(96deg, rgba(6, 9, 7, .88) 0%, rgba(6, 9, 7, .40) 48%, rgba(6, 9, 7, .64) 100%),
    linear-gradient(0deg, rgba(6, 9, 7, .92) 0%, rgba(6, 9, 7, .08) 46%, rgba(6, 9, 7, .45) 100%);
  transition: background .7s var(--ease);
}

/* 实时散景粒子 Canvas */
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .92;
}

/* 动态胶片颗粒层 */
.hero__filmgrain {
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;
  opacity: var(--film-grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  animation: grain-shift .55s steps(4) infinite;
  transition: opacity .35s var(--ease);
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.5%); }
  50%  { transform: translate(1.5%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* 构图辅助线（九宫格 / 黄金分割） */
.hero__guides {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.hero__guides[data-guide="thirds"],
.hero__guides[data-guide="golden"] {
  opacity: 1;
}
.hero__guides .g-v,
.hero__guides .g-h {
  position: absolute;
  background: rgba(251, 247, 238, .22);
  transition: left .42s var(--ease-expo), top .42s var(--ease-expo);
}
.hero__guides .g-v { top: 0; bottom: 0; width: 1px; }
.hero__guides .g-h { left: 0; right: 0; height: 1px; }
.hero__guides[data-guide="thirds"] .g-v1 { left: 33.333%; }
.hero__guides[data-guide="thirds"] .g-v2 { left: 66.666%; }
.hero__guides[data-guide="thirds"] .g-h1 { top: 33.333%; }
.hero__guides[data-guide="thirds"] .g-h2 { top: 66.666%; }
.hero__guides[data-guide="golden"] .g-v1 { left: 38.2%; background: rgba(232, 197, 106, .34); }
.hero__guides[data-guide="golden"] .g-v2 { left: 61.8%; background: rgba(232, 197, 106, .34); }
.hero__guides[data-guide="golden"] .g-h1 { top: 38.2%; background: rgba(232, 197, 106, .34); }
.hero__guides[data-guide="golden"] .g-h2 { top: 61.8%; background: rgba(232, 197, 106, .34); }
.hero__guides .g-center {
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(251, 247, 238, .35);
  border-radius: 50%;
}
.hero__guides .g-center::before,
.hero__guides .g-center::after {
  content: '';
  position: absolute;
  background: rgba(251, 247, 238, .45);
}
.hero__guides .g-center::before { left: 50%; top: -8px; width: 1px; height: 42px; transform: translateX(-.5px); }
.hero__guides .g-center::after  { top: 50%; left: -8px; height: 1px; width: 42px; transform: translateY(-.5px); }

/* 磁吸取景准星 */
.hero__reticle {
  position: absolute;
  left: 0; top: 0;
  z-index: 9;
  width: 64px; height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease), width .24s var(--ease-expo), height .24s var(--ease-expo), margin .24s var(--ease-expo);
  will-change: transform;
}
.hero__reticle.is-visible { opacity: 1; }
.hero__reticle.is-hover {
  width: 44px; height: 44px;
  margin-left: -22px; margin-top: -22px;
  opacity: .55;
}
.hero__reticle.is-click {
  width: 34px; height: 34px;
  margin-left: -17px; margin-top: -17px;
}
.hero__reticle .vf-c {
  position: absolute;
  width: 11px; height: 11px;
  border-color: rgba(232, 197, 106, .88);
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 6px rgba(232, 197, 106, .35));
}
.hero__reticle .vf-tl { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.hero__reticle .vf-tr { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.hero__reticle .vf-bl { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.hero__reticle .vf-br { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.hero__reticle .vf-dot {
  position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--tomato);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(197, 69, 48, .85);
}
.hero__reticle .vf-readout {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(8, 11, 9, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(251, 247, 238, .86);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
@media (hover: none), (max-width: 900px) {
  .hero__reticle { display: none; }
}

/* ----------------------------------------------------------- 首屏主体布局 */
.hero__content {
  z-index: 4;
  pointer-events: none;
  padding: calc(var(--edge) + 74px) var(--edge) 134px;
}
.hero__text,
.hero__side {
  pointer-events: none;
}
.hero__tools,
.film-dial__track,
.hero__counter,
.hero__panel {
  pointer-events: auto;
}
.hero__counter { cursor: pointer; }
.hero__panel { cursor: default; }
.hero__text {
  transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 4px), 0);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.hero__hud-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 16, 13, .52);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .86);
  font-size: 10px;
  letter-spacing: .14em;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8be28b;
  box-shadow: 0 0 10px rgba(139, 226, 139, .9);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

.hero__tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(14, 18, 15, .56);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .74);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--spring);
}
.hero__chip svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero__chip:hover {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  transform: translateY(-1px);
}
.hero__chip.is-on {
  background: rgba(232, 197, 106, .18);
  border-color: rgba(232, 197, 106, .62);
  color: var(--butter);
}
.hero__chip--clear {
  background: rgba(197, 69, 48, .22);
  border-color: rgba(197, 69, 48, .65);
  color: #ffd7cf;
}
.hero__chip--clear b {
  display: inline-grid;
  place-items: center;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  font-size: 9px;
  margin-left: 3px;
}

.hero__title {
  font-size: clamp(72px, 9.6vw, 150px);
  line-height: .86;
  text-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}
.hero__title em {
  background: linear-gradient(120deg, #f8df93 0%, #e8c56a 46%, #f5a97f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------------------------------------- 胶片滤镜拨盘 */
.film-dial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}
.film-dial__label {
  color: rgba(255, 255, 255, .52);
  font-size: 9.5px;
}
.film-dial__track {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(12, 16, 13, .64);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}
.film-dial__btn {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--spring);
}
.film-dial__btn i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: .72;
}
.film-dial__btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.film-dial__btn.is-on {
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(232, 197, 106, .35);
}
.film-dial__btn.is-on i { opacity: .88; }

/* ----------------------------------------------------------- 右侧快门与面板 */
.hero__counter {
  position: relative;
  width: 126px;
  padding: 12px 12px 11px;
  background: rgba(14, 18, 15, .74);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
}
.hero__counter::before {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 8px var(--tomato);
}
.hero__counter-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .42);
  min-height: 32px;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--spring);
}
.hero__counter-btn:hover { transform: scale(1.03); }
.hero__counter-btn:active { transform: scale(.96); }

.hero__panel {
  background: rgba(14, 18, 15, .72);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hero__btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .32);
}

/* ----------------------------------------------------------- 树精灵眼神跟踪 */
.hero__mascot {
  z-index: 6;
  left: 38vw;
  bottom: 94px;
}
.hero__mascot .mascot__eyes {
  transition: transform .12s ease-out;
}
.hero__mascot-note {
  transition: transform .25s var(--spring), opacity .22s var(--ease);
}
.hero__mascot:hover .hero__mascot-note {
  transform: rotate(1deg) translateY(-3px) scale(1.04);
}

/* ----------------------------------------------------------- 拍立得吐片桌面 */
.hero__desk {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
  overflow: clip;
}
.polaroid-print {
  position: absolute;
  left: 0;
  top: 0;
  width: 174px;
  padding: 9px 9px 13px;
  background: #fdfaf2;
  border-radius: 3px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .25),
    0 16px 34px -8px rgba(0, 0, 0, .58),
    inset 0 0 0 1px rgba(29, 27, 22, .12);
  color: var(--ink);
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transform-origin: center center;
  contain: layout style;
  will-change: transform;
  backface-visibility: hidden;
  transition: box-shadow .22s var(--ease);
}
.polaroid-print.is-ejecting {
  animation: polaroid-eject .62s cubic-bezier(.16, 1, .3, 1) both;
}
.polaroid-print:hover {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, .3),
    0 26px 48px -10px rgba(0, 0, 0, .68),
    inset 0 0 0 1px rgba(29, 27, 22, .18);
}
.polaroid-print.is-dragging {
  cursor: grabbing;
  transition: none;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, .32),
    0 36px 64px -12px rgba(0, 0, 0, .75);
}
.hero[data-dragging="1"] .hero__tools,
.hero[data-dragging="1"] .film-dial__track,
.hero[data-dragging="1"] .hero__counter,
.hero[data-dragging="1"] .hero__panel,
.hero[data-dragging="1"] .hero__mascot,
.hero[data-dragging="1"] .hero__strip {
  pointer-events: none;
}
.polaroid-print.is-settling {
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .22s var(--ease);
}
@keyframes polaroid-eject {
  0% {
    opacity: 0;
    transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) + 74px), 0) scale(.62) rotate(-14deg);
  }
  65% {
    opacity: 1;
    transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 8px), 0) scale(1.03) rotate(var(--pr, 3deg));
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1) rotate(var(--pr, 3deg));
  }
}

.polaroid-print__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #141714;
}
.polaroid-print__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: var(--film-filter);
}
.polaroid-print.is-developing .polaroid-print__photo img {
  animation: polaroid-develop 1.7s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes polaroid-develop {
  0%   { filter: brightness(2.3) contrast(.32) sepia(.65) blur(5px); }
  38%  { filter: brightness(1.45) contrast(.65) sepia(.35) blur(2px); }
  100% { filter: var(--film-filter); }
}
.polaroid-print__shot {
  position: absolute;
  left: 6px; top: 6px;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(10, 12, 10, .68);
  color: var(--butter);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .06em;
}
.polaroid-print__close {
  position: absolute;
  right: 5px; top: 5px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10, 12, 10, .65);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transition: opacity .18s, background .18s;
}
.polaroid-print:hover .polaroid-print__close,
.polaroid-print:focus-within .polaroid-print__close { opacity: 1; }
.polaroid-print__close:hover { background: var(--tomato); }

.polaroid-print__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
}
.polaroid-print__title {
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.25;
  color: #1d1b16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.polaroid-print__zoom {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--tomato);
  letter-spacing: .04em;
  opacity: .78;
}
.polaroid-print__zoom:hover { opacity: 1; text-decoration: underline; }

/* ----------------------------------------------------------- 35mm 齿孔胶片条 */
.hero__strip {
  z-index: 8;
  bottom: 16px;
  left: var(--edge);
  right: var(--edge);
  gap: 8px;
  padding: 13px 12px 13px;
  border-radius: 10px;
  background: rgba(9, 11, 10, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
/* 上下 35mm 胶片齿孔 */
.hero__strip::before,
.hero__strip::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px;
  height: 5px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, .24) 0 8px,
    transparent 8px 16px
  );
  border-radius: 1px;
}
.hero__strip::before { top: 4px; }
.hero__strip::after  { bottom: 4px; }

.hero__strip button {
  flex: 0 0 92px;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .22);
  transform-origin: center bottom;
  transition: transform .26s var(--spring), border-color .22s, box-shadow .22s;
}
.hero__strip button:hover {
  transform: translateY(-6px) scale(1.08);
  z-index: 2;
  border-color: rgba(255, 255, 255, .85);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .55);
}
.hero__strip button.is-on {
  border-color: var(--butter);
  box-shadow: 0 0 0 1px var(--butter), 0 8px 18px rgba(232, 197, 106, .3);
  transform: translateY(-3px);
}
.hero__strip img {
  height: 52px;
  filter: var(--film-filter);
}
.hero__strip .thumb-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
  color: rgba(232, 197, 106, .92);
  letter-spacing: .06em;
}

/* ----------------------------------------------------------- 紧凑快门时序同步 */
.hero.is-focusing .cover__img {
  animation: focus-pull-fast .44s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes focus-pull-fast {
  0%   { filter: blur(5px) saturate(.76); transform: scale(1.03); }
  55%  { filter: blur(1.6px) saturate(.92); }
  100% { filter: var(--film-filter); transform: none; }
}
.shutter.is-on .shutter__focus { animation: af-fade-lock .48s ease-in-out both; }
.shutter.is-on .af-center { animation: af-center-hold .46s cubic-bezier(.2, .8, .2, 1) both; }
.shutter.is-on .af-mode { animation: af-mode-hold .48s ease-out both; }
.shutter.is-on .af-progress { animation: af-progress .26s .04s ease-out both; }
.shutter.is-dark .shutter__dark { animation: shutter-dark .84s ease-in-out both; }
.shutter.is-dark .shutter__hud { animation: shutter-hud .84s ease-in-out both; }
.shutter.is-dark .shutter__frame { animation: shutter-frame .84s ease-in-out both; }
.shutter.is-iris .shutter__aperture { animation: iris-appear .74s ease-in-out both; }
.shutter.is-iris .shutter__wash { animation: shutter-wash .74s ease-in-out both; }
.shutter.is-iris .shutter__stamp { animation: shutter-stamp .76s .12s var(--ease-expo) both; }

/* ============================================================ 胶片城市滚动条 */
.frame--works {
  padding-top: clamp(78px, 8.5vh, 100px);
}
.film-ticker {
  position: relative;
  overflow: hidden;
  overflow: clip;
  margin: 0 calc(-1 * var(--edge)) clamp(42px, 5.5vh, 72px);
  padding: 14px 0;
  background: #101411;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 2px solid var(--ink);
  color: rgba(251, 247, 238, .84);
}
.film-ticker::before,
.film-ticker::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(251, 247, 238, .18) 0 10px,
    transparent 10px 22px
  );
}
.film-ticker::before { top: 4px; }
.film-ticker::after  { bottom: 4px; }

.film-ticker__track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: ticker-scroll 42s linear infinite;
}
.film-ticker:hover .film-ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: rgba(251, 247, 238, .82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--spring);
}
.ticker-chip b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--butter);
}
.ticker-chip i {
  font-style: normal;
  font-size: 9.5px;
  color: rgba(251, 247, 238, .48);
}
.ticker-chip:hover {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--ink);
  transform: translateY(-1px);
}
.ticker-chip:hover b,
.ticker-chip:hover i { color: var(--ink); }

/* ============================================================ 作品：三形态展厅 */
.frame--works {
  transition: background .55s var(--ease), color .45s var(--ease);
}
.frame--works[data-works-mode="table"] {
  background: #141816;
  color: #fbf7ee;
}
.frame--works[data-works-mode="stage"] {
  background: #0d110f;
  color: #fbf7ee;
}
.frame--works[data-works-mode="table"] .frame__title,
.frame--works[data-works-mode="stage"] .frame__title {
  color: #fbf7ee;
  text-shadow: none;
}
.frame--works[data-works-mode="table"] .works__head .label,
.frame--works[data-works-mode="stage"] .works__head .label {
  color: rgba(251, 247, 238, .58);
}
.frame--works[data-works-mode="table"] .works__head .label--2,
.frame--works[data-works-mode="stage"] .works__head .label--2 {
  color: var(--butter);
}
.frame--works[data-works-mode="table"] .works__head .filter,
.frame--works[data-works-mode="stage"] .works__head .filter {
  color: rgba(251, 247, 238, .66);
}
.frame--works[data-works-mode="table"] .works__head .filter:hover,
.frame--works[data-works-mode="stage"] .works__head .filter:hover {
  color: #fff;
}
.frame--works[data-works-mode="table"] .works__head .filter.is-active,
.frame--works[data-works-mode="stage"] .works__head .filter.is-active {
  color: var(--butter);
  border-bottom-color: var(--butter);
}

/* 展厅模式切换栏 */
.works__modes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 6px;
  border-radius: 14px;
  background: rgba(29, 27, 22, .06);
  border: 1.5px solid rgba(29, 27, 22, .16);
}
.frame--works[data-works-mode="table"] .works__modes,
.frame--works[data-works-mode="stage"] .works__modes {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
}
.wmode {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(29, 27, 22, .7);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--spring), box-shadow .2s;
}
.wmode svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.wmode:hover {
  background: rgba(29, 27, 22, .08);
  color: var(--ink);
}
.wmode.is-on {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 14px -4px rgba(29, 27, 22, .35);
}
.frame--works[data-works-mode="table"] .wmode,
.frame--works[data-works-mode="stage"] .wmode {
  color: rgba(251, 247, 238, .66);
}
.frame--works[data-works-mode="table"] .wmode:hover,
.frame--works[data-works-mode="stage"] .wmode:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}
.frame--works[data-works-mode="table"] .wmode.is-on,
.frame--works[data-works-mode="stage"] .wmode.is-on {
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 6px 18px -4px rgba(232, 197, 106, .35);
}

/* 左侧互动工具按钮 */
.works__tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px dashed rgba(29, 27, 22, .22);
}
.frame--works[data-works-mode="table"] .works__tools,
.frame--works[data-works-mode="stage"] .works__tools {
  border-top-color: rgba(255, 255, 255, .18);
}
.works__table-tools {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wtool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(29, 27, 22, .26);
  background: rgba(255, 255, 255, .65);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--spring), box-shadow .2s;
}
.wtool:hover {
  background: var(--butter);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.wtool--accent {
  background: var(--tomato);
  border-color: var(--tomato);
  color: var(--cream);
}
.wtool--accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--butter);
}
.frame--works[data-works-mode="table"] .wtool,
.frame--works[data-works-mode="stage"] .wtool {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .22);
  color: #fbf7ee;
}
.frame--works[data-works-mode="table"] .wtool:hover,
.frame--works[data-works-mode="stage"] .wtool:hover {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(232, 197, 106, .28);
}
.frame--works[data-works-mode="table"] .wtool--accent,
.frame--works[data-works-mode="stage"] .wtool--accent {
  background: var(--tomato);
  border-color: var(--tomato);
  color: #fff;
}
.wtool.is-on {
  background: var(--butter) !important;
  border-color: var(--butter) !important;
  color: var(--ink) !important;
}

/* ----------------------------------------------------------- 模式一：升级瀑布画廊 */
.works__scroll .masonry {
  columns: var(--photo-cols, 3);
  column-gap: clamp(18px, 1.8vw, 26px);
}
@media (max-width: 1100px) {
  .works__scroll .masonry { columns: var(--photo-cols-sm, 2); }
}
@media (max-width: 640px) {
  .works__scroll .masonry { columns: 1; }
}

.works__scroll .work {
  position: relative;
  break-inside: avoid;
  perspective: 900px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .65s var(--ease-expo), transform .65s var(--ease-expo);
}
.works__scroll .work.is-in {
  opacity: 1;
  transform: none;
}

.works__scroll .work__frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1d1b;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .22s ease-out, box-shadow .32s var(--ease);
  box-shadow: 0 10px 26px -14px rgba(29, 27, 22, .45);
  will-change: transform;
}
.works__scroll .work:hover .work__frame {
  box-shadow: 0 24px 48px -16px rgba(29, 27, 22, .56);
}
.works__scroll .work__img {
  width: 100%;
  height: auto;
  display: block;
  filter: var(--film-filter);
  transition: transform .55s var(--ease-expo), filter .38s var(--ease);
}
.works__scroll .work:hover .work__img {
  transform: scale(1.04);
}

/* 光学高光扫过 */
.works__scroll .work__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 210px at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 252, 240, .28) 0%,
    rgba(255, 252, 240, .06) 40%,
    transparent 74%
  );
  transition: opacity .28s var(--ease);
}
.works__scroll .work:hover .work__frame::after { opacity: 1; }

/* EXIF 浮层 */
.work__exif {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(10, 13, 11, .76);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(251, 247, 238, .92);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .26s var(--ease), transform .28s var(--ease-expo);
  pointer-events: none;
}
.work__exif-place {
  color: var(--butter);
  font-weight: 700;
}
.works__scroll .work:hover .work__exif,
.works__scroll .work:focus-visible .work__exif {
  opacity: 1;
  transform: translateY(0);
}

.works__scroll .work.is-spotlight .work__frame {
  box-shadow: 0 0 0 3px var(--tomato), 0 24px 48px -12px rgba(197, 69, 48, .45);
}

/* ----------------------------------------------------------- 模式二：暗房灯箱桌 */
.lighttable {
  position: relative;
  min-height: 760px;
  border-radius: 16px;
  padding: 36px 26px 28px 38px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 48%, rgba(255, 252, 242, .96) 0%, rgba(244, 238, 224, .92) 64%, rgba(226, 217, 198, .88) 100%);
  border: 8px solid #222724;
  box-shadow:
    inset 0 0 42px rgba(255, 255, 255, .75),
    inset 0 0 0 1px rgba(29, 27, 22, .14),
    0 34px 70px -28px rgba(0, 0, 0, .8);
  overflow: hidden;
  overflow: clip;
}
.lighttable.is-loupe { cursor: none; }

/* 毫米标尺刻度 */
.lighttable__ruler {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: .55;
}
.lighttable__ruler--x {
  left: 32px; right: 16px; top: 0; height: 22px;
  border-bottom: 1px solid rgba(29, 27, 22, .22);
  background: repeating-linear-gradient(
    90deg,
    rgba(29, 27, 22, .55) 0 1px, transparent 1px 10px
  );
  background-size: 50px 10px;
  background-repeat: repeat-x;
  background-position: 0 bottom;
}
.lighttable__ruler--y {
  top: 26px; bottom: 16px; left: 0; width: 22px;
  border-right: 1px solid rgba(29, 27, 22, .22);
  background: repeating-linear-gradient(
    180deg,
    rgba(29, 27, 22, .55) 0 1px, transparent 1px 10px
  );
  background-size: 10px 50px;
  background-repeat: repeat-y;
  background-position: right 0;
}
.lighttable__hint {
  position: absolute;
  right: 18px; top: 6px;
  z-index: 3;
  color: rgba(29, 27, 22, .5);
  font-size: 9.5px;
  letter-spacing: .1em;
}
.lighttable__surface {
  position: relative;
  width: 100%;
  min-height: 700px;
}

/* 灯箱桌上的每一张样片 */
.lt-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 214px;
  padding: 9px 9px 14px;
  background: #fffefb;
  border-radius: 3px;
  box-shadow:
    0 2px 4px rgba(29, 27, 22, .16),
    0 14px 26px -10px rgba(29, 27, 22, .38),
    inset 0 0 0 1px rgba(29, 27, 22, .12);
  color: var(--ink);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transform-origin: center center;
  contain: layout style;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform .52s var(--ease-expo), box-shadow .24s var(--ease);
}
.lt-card:hover {
  box-shadow:
    0 4px 10px rgba(29, 27, 22, .22),
    0 24px 40px -12px rgba(29, 27, 22, .48);
}
.lt-card.is-dragging {
  cursor: grabbing;
  transition: none;
  box-shadow:
    0 10px 18px rgba(29, 27, 22, .22),
    0 34px 56px -14px rgba(29, 27, 22, .58);
}
.lt-card.is-settling {
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .22s var(--ease);
}
.lighttable[data-dragging="1"] .lt-card:not(.is-dragging) {
  pointer-events: none;
}
.lt-card__imgwrap {
  position: relative;
  overflow: hidden;
  background: #1a1d1b;
  border-radius: 1px;
}
.lt-card__img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  filter: var(--film-filter);
}
.lt-card__open {
  position: absolute;
  right: 6px; top: 6px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(14, 18, 15, .74);
  color: var(--butter);
  font-size: 12px;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .2s, transform .2s var(--spring), background .2s;
}
.lt-card:hover .lt-card__open,
.lt-card:focus-within .lt-card__open {
  opacity: 1;
  transform: scale(1);
}
.lt-card__open:hover { background: var(--tomato); color: #fff; }
.lt-card__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
}
.lt-card__title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-card__idx {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  color: rgba(29, 27, 22, .52);
  flex: none;
}
.lt-card__meta {
  margin-top: 3px;
  font-family: var(--hand);
  font-size: 12px;
  color: rgba(29, 27, 22, .68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 光学放大镜 Loupe */
.loupe {
  position: absolute;
  left: 0; top: 0;
  z-index: 9999;
  width: 164px; height: 164px;
  margin-left: -82px; margin-top: -82px;
  border-radius: 50%;
  border: 4px solid #1b1e1c;
  box-shadow:
    0 0 0 2px rgba(232, 197, 106, .75),
    0 18px 40px rgba(0, 0, 0, .55),
    inset 0 0 22px rgba(0, 0, 0, .35);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0) scale(.7);
  transition: opacity .18s var(--ease);
  background: #101411;
}
.loupe.is-on {
  opacity: 1;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0) scale(1);
}
.loupe__lens {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  filter: var(--film-filter);
}
.loupe__cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.loupe__cross::before,
.loupe__cross::after {
  content: '';
  position: absolute;
  background: rgba(232, 197, 106, .48);
}
.loupe__cross::before { left: 50%; top: 20%; bottom: 20%; width: 1px; }
.loupe__cross::after  { top: 50%; left: 20%; right: 20%; height: 1px; }
.loupe__tag {
  position: absolute;
  left: 50%; bottom: 8px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(12, 16, 13, .78);
  color: var(--butter);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

/* ----------------------------------------------------------- 模式三：3D 透视舞台 */
.stage3d {
  position: relative;
  border-radius: 18px;
  padding: 32px 24px 28px;
  background: #111613;
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  box-shadow: 0 36px 80px -30px rgba(0, 0, 0, .82);
}
.stage3d__ambient {
  position: absolute;
  inset: -40px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(56px) saturate(1.45) brightness(.44);
  opacity: .72;
  transition: background-image .55s var(--ease);
  pointer-events: none;
}
.stage3d__viewport {
  position: relative;
  z-index: 2;
  height: clamp(340px, 50vh, 510px);
  perspective: 1400px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.stage3d__viewport:active { cursor: grabbing; }
.stage3d__deck {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.stage3d__card {
  position: absolute;
  left: 50%; top: 50%;
  width: min(520px, 66vw);
  max-height: 90%;
  margin: 0;
  padding: 10px 10px 14px;
  border-radius: 8px;
  background: #181d1a;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .82);
  cursor: pointer;
  transition: transform .56s cubic-bezier(.16, 1, .3, 1), opacity .46s var(--ease), filter .46s var(--ease), border-color .3s;
  will-change: transform, opacity;
}
.stage3d__card.is-active {
  border-color: rgba(232, 197, 106, .75);
  box-shadow: 0 34px 80px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(232, 197, 106, .35);
}
.stage3d__card img {
  width: 100%;
  height: clamp(230px, 38vh, 380px);
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
  filter: var(--film-filter);
}
.stage3d__card-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: rgba(251, 247, 238, .65);
  letter-spacing: .08em;
}
.stage3d__card.is-active .stage3d__card-bar b { color: var(--butter); }

.stage3d__controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(12, 16, 13, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
}
.stage3d__nav {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 16px;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--spring);
}
.stage3d__nav:hover {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--ink);
  transform: scale(1.06);
}
.stage3d__info {
  flex: 1;
  min-width: 0;
}
.stage3d__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.stage3d__num { color: var(--butter); }
.stage3d__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  color: #fff;
}
.stage3d__sub {
  font-family: var(--hand);
  font-size: 15px;
  color: rgba(251, 247, 238, .72);
}
.stage3d__meta {
  margin-top: 5px;
  color: rgba(251, 247, 238, .55);
  font-size: 10px;
}
.stage3d__open {
  flex: none;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: transform .2s var(--spring), background .2s;
}
.stage3d__open:hover { background: #fff; transform: translateY(-1px); }

.stage3d__dots {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}
.stage3d__dot {
  width: 24px; height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  transition: background .25s, width .25s var(--ease-expo);
}
.stage3d__dot:hover { background: rgba(255, 255, 255, .52); }
.stage3d__dot.is-on {
  width: 44px;
  background: var(--butter);
}

/* ============================================================ 响应式适配 */
@media (max-width: 1100px) {
  .polaroid-print { width: 150px; }
  .lt-card { width: 184px; }
}
@media (max-width: 900px) {
  .hero__content { padding-bottom: 42px; }
  .film-dial__track { max-width: 100%; }
  .works__modes {
    flex-direction: row;
    padding: 5px;
  }
  .wmode { justify-content: center; padding: 8px 10px; font-size: 11.5px; }
  .works__tools { flex-direction: row; flex-wrap: wrap; }
  .works__table-tools { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .wtool { width: auto; flex: 1 1 auto; }
  .lighttable { min-height: 580px; padding: 30px 14px 18px 24px; }
  .lighttable__surface { min-height: 520px; }
  .lt-card { width: 156px; padding: 7px 7px 11px; }
  .stage3d__controls { flex-wrap: wrap; padding: 12px; }
  .stage3d__card { width: min(380px, 78vw); }
}
@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }
  .hero__content {
    height: auto;
    min-height: 100svh;
    padding-top: calc(120px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    align-content: space-between;
    gap: 18px;
  }
  .hero__hud-row { gap: 7px; }
  .hero__chip span { font-size: 10px; }
  .film-dial { margin-top: 2px; }
  .film-dial__btn { padding: 5px 8px; font-size: 9px; }
  .film-dial__btn i { display: none; }
  .hero__side { position: relative; z-index: 6; }
  .hero__mascot {
    left: var(--edge);
    top: auto;
    bottom: 278px;
    width: 86px;
    z-index: 5;
  }
  .polaroid-print { width: 126px; padding: 6px 6px 9px; }
  .polaroid-print__title { font-size: 11px; }
  .frame--works { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .film-ticker { margin-top: 0; margin-bottom: 32px; padding: 12px 0; }
  .stage3d { padding: 18px 12px 18px; }
  .stage3d__viewport { height: 300px; }
  .stage3d__card { width: 82vw; }
  .stage3d__card img { height: 220px; }
  .stage3d__open { width: 100%; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .hero__filmgrain,
  .film-ticker__track,
  .live-dot { animation: none !important; }
  .hero > picture,
  .hero__text,
  .works__scroll .work,
  .works__scroll .work__frame,
  .polaroid-print,
  .lt-card,
  .stage3d__card { transition: none !important; animation: none !important; }
  .works__scroll .work { opacity: 1; transform: none; }
}
