/* ============================================================
   球球 QIUQIU · 个人站
   风格：明亮 / 高饱和 / ACGN 贴纸感。照片是主角，装饰不抢戏。
   字体：系统字栈（PingFang SC / 雅黑 / Noto Sans SC），零加载。
   ============================================================ */

:root {
  --paper: #FFFDF7;
  --paper-2: #FFF6E9;
  --ink: #2A2438;
  --ink-soft: #5A5470;
  --pink: #FF5C8A;
  --pink-soft: #FFE3EC;
  --blue: #37A2FF;
  --blue-soft: #E1F1FF;
  --yellow: #FFC531;
  --yellow-soft: #FFF3D6;
  --mint: #2ED3A3;
  --mint-soft: #DFF9F0;
  --lilac: #9B7BFF;
  --radius: 18px;
  --border: 2px solid var(--ink);
  --shadow-pop: 5px 5px 0 var(--ink);
  --shadow-soft: 0 10px 30px rgba(42, 36, 56, .10);
  --ease-spring: cubic-bezier(.34, 1.56, .5, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--yellow); color: var(--ink); }

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

/* ---------- 顶部阅读进度条 ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60;
  background: transparent; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--blue));
  transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress i {
    animation: progress-fill linear both;
    animation-timeline: scroll();
  }
  @keyframes progress-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- 头部 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2rem);
  background: rgba(255, 253, 247, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 900; font-size: 1.25rem; color: var(--ink); text-decoration: none;
  letter-spacing: .02em;
}
.logo em {
  font-style: normal; font-size: .68rem; letter-spacing: .22em;
  background: var(--ink); color: var(--paper);
  padding: .15em .5em; border-radius: 999px; transform: translateY(-1px);
}
.logo-ball {
  width: 38px; height: 38px; object-fit: contain; flex: none;
}
.site-nav { display: flex; gap: .25rem; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .4em .8em; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s ease-out, border-color .2s ease-out;
}
.site-nav a:hover { background: var(--yellow-soft); border-color: var(--ink); }
.head-cta { margin-left: .25rem; }

/* ---------- 通用按钮 / 贴纸 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: inherit; font-weight: 800; font-size: 1rem; line-height: 1;
  color: var(--ink); text-decoration: none; cursor: pointer;
  background: #fff; border: var(--border); border-radius: 999px;
  padding: .9em 1.6em;
  box-shadow: var(--shadow-pop);
  transition: transform .18s var(--ease-spring), box-shadow .18s var(--ease-spring), background .18s ease-out;
  min-height: 44px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-ghost { background: #fff; }
.btn-sm { font-size: .9rem; padding: .65em 1.2em; min-height: 40px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-pop); }

.sticker {
  display: inline-block; font-weight: 800; font-size: .85rem; line-height: 1.4;
  padding: .3em .9em; border: var(--border); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}
.sticker-pink { background: var(--pink-soft); }
.sticker-blue { background: var(--blue-soft); }
.sticker-yellow { background: var(--yellow-soft); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  border: 1.5px dashed var(--ink-soft); border-radius: 6px;
  padding: 0 .5em; color: var(--ink-soft); vertical-align: middle;
}
.tbd { color: var(--pink); }

/* ---------- 首屏：杂志封面 + 目录 ---------- */
.cover-hero {
  position: relative;
  width: min(1180px, 94vw); margin: 0 auto;
  min-height: calc(100svh - var(--head-h, 66px));
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center;
}
.cover-hero::before {
  content: ""; position: absolute; z-index: -1; left: -6vw; top: 4%;
  width: min(62vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--yellow-soft), var(--pink-soft) 55%, transparent 72%);
}
.cover-hero::after {
  content: ""; position: absolute; z-index: -1; right: 2%; bottom: 6%; width: 200px; height: 200px; border-radius: 50%;
  background-image: radial-gradient(var(--blue) 1.6px, transparent 1.7px); background-size: 16px 16px; opacity: .3;
}

/* 首屏氛围：窗光（纯 CSS）+ 树影（Seedance 生成的灰度循环视频，ambient/leaf.*）
   窗光在内容下面；树影 multiply 盖在整个首屏最上层，连杂志一起被影子扫过。
   视频是白底灰影，multiply 后纸面不染色。播放逻辑在 ambient.js；关 JS / 减少动效时停在海报帧（静态树影）。 */
.cover-hero { isolation: isolate }
.amb {
  position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0;
  pointer-events: none; overflow: hidden;
}
.amb-sun {                                            /* 屋里偏冷的阴面 + 一道暖色斜光，慢慢平移 */
  position: absolute; inset: -20% -10%;
  background: linear-gradient(105deg,
    rgba(170, 178, 214, .18) 0 24%, rgba(255, 210, 140, .34) 33%, rgba(255, 236, 200, .22) 46%,
    rgba(170, 178, 214, .16) 58% 100%);
  filter: blur(14px); mix-blend-mode: multiply;
  animation: sun-drift 14s ease-in-out infinite alternate;
}
.amb-sun::after {                                     /* 窗框投下的两条细影 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 37.5%, rgba(120, 90, 60, .22) 38.2%, transparent 39%,
                                       transparent 51%, rgba(120, 90, 60, .18) 51.7%, transparent 52.5%);
  filter: blur(3px);
}
@keyframes sun-drift { from { translate: -3% 0 } to { translate: 4% 1% } }
.amb-leaf {
  position: absolute; z-index: 6; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0;
  pointer-events: none; overflow: hidden; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(110% 100% at 100% 0%, #000 35%, transparent 80%);
          mask-image: radial-gradient(110% 100% at 100% 0%, #000 35%, transparent 80%);
}
.amb-leaf video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 0;
  opacity: .42; filter: sepia(.35) hue-rotate(185deg) saturate(1.4);   /* 灰影带一点冷蓝 */
}
html.calm .amb-sun { animation: none }
@media (prefers-reduced-motion: reduce) { .amb-sun { animation: none } }

/* 杂志本体 */
.mag-wrap { display: grid; place-items: center; perspective: 1600px }
.mag {
  --w: min(100%, 440px, calc((100svh - var(--head-h, 66px) - 5rem) * 640 / 854));
  position: relative; width: var(--w); aspect-ratio: 640 / 854; overflow: hidden;
  container-type: inline-size;
  border-radius: 3px 8px 8px 3px; background: #cfe3f5;
  rotate: -3deg;
  box-shadow:
    inset 7px 0 10px -7px rgba(0, 0, 0, .45),         /* 书脊 */
    0 2px 3px rgba(42, 36, 56, .2), 14px 26px 50px rgba(42, 36, 56, .28), 8px 8px 0 var(--ink);
  transition: rotate .6s var(--ease-out), scale .6s var(--ease-out);
}
.mag:hover { rotate: -1deg; scale: 1.015 }
.mag__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.mag::before {                                        /* 底部压暗，封面小字读得清 */
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%; z-index: 1;
  background: linear-gradient(transparent, rgba(20, 15, 34, .72));
}
.mag::after {                                         /* 铜版纸反光 */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.3) 0 14%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 70%, rgba(255,255,255,.12) 100%);
}
.mag > p, .mag > ul, .mag > span { position: absolute; z-index: 2; margin: 0 }
.mag__issue {
  left: 5%; right: 5%; top: 3%; display: flex; justify-content: space-between;
  font-size: max(10px, 2.6cqi); font-weight: 900; letter-spacing: .12em; color: var(--ink);
}
.mag__masthead {
  left: 0; right: 0; top: 6.5%; text-align: center; line-height: .82;
  font: 900 22cqi/0.82 "Avenir Next Condensed", "DIN Condensed", Impact, "Arial Black", var(--font);
  letter-spacing: -.02em; color: #fff;
  -webkit-text-stroke: .7cqi var(--ink); paint-order: stroke fill;
  text-shadow: 1.4cqi 1.4cqi 0 var(--pink);
}
.mag__kicker {
  left: 0; right: 0; top: 26.5%; text-align: center;
  font-size: max(9px, 2.4cqi); font-weight: 900; letter-spacing: .42em; color: var(--ink);
}
.mag__lead {
  left: 5%; top: 33%; color: #fff; font-weight: 900; font-size: 6.4cqi; line-height: 1.12; letter-spacing: .02em;
  -webkit-text-stroke: .5cqi var(--ink); paint-order: stroke fill; text-shadow: .8cqi .8cqi 0 var(--ink);
}
.mag__lead small {
  display: inline-block; margin-bottom: .35em; padding: .05em .45em; font-size: .5em; letter-spacing: .1em;
  background: var(--pink); border: .4cqi solid var(--ink); -webkit-text-stroke: 0; text-shadow: none; rotate: -3deg;
}
.mag__lines {
  left: 5%; right: 30%; bottom: 4.5%; list-style: none; padding: 0; display: grid; gap: .25em;
  color: #fff; font-weight: 800; font-size: max(11px, 3.5cqi); line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.mag__lines b { color: var(--yellow) }
.mag__price {
  right: 3.5%; top: 55%; width: 22cqi; aspect-ratio: 1; border-radius: 50%; rotate: 12deg;   /* 放在栏杆那一带，别压到人脸 */
  display: grid; place-content: center; text-align: center; line-height: 1.05;
  background: var(--yellow); border: .6cqi solid var(--ink); box-shadow: .8cqi .8cqi 0 var(--ink); color: var(--ink);
}
.mag__price b { font-size: 6.2cqi; font-weight: 900; letter-spacing: -.02em }
.mag__price small { font-size: max(8px, 2.1cqi); font-weight: 900 }
.mag__barcode {
  right: 4%; bottom: 4%; width: 20cqi; padding: 1.4cqi 1.6cqi 1cqi; background: #fff; border-radius: 1px; text-align: center;
  font: 700 max(7px, 1.8cqi)/1 var(--mono); color: var(--ink);
}
.mag__barcode i {
  display: block; height: 7cqi; margin-bottom: .8cqi;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px, var(--ink) 6px 7px, transparent 7px 10px);
}
.mag__vert {
  left: 1.6%; top: 48%; writing-mode: vertical-rl; font-size: max(9px, 2.4cqi); font-weight: 900; letter-spacing: .3em;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* 目录 = 导航 */
.toc { min-width: 0 }
.toc__h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.25; letter-spacing: .02em }
.toc__h1 small { display: block; margin-top: .45rem; font-size: .5em; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em }
.toc__label {
  margin: clamp(1.2rem, 3vw, 2rem) 0 .4rem; font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: .18em;
  color: transparent; -webkit-text-stroke: 1.5px var(--pink);
}
.toc__label span { font-size: .45em; letter-spacing: .2em; -webkit-text-stroke: 0; color: var(--pink); vertical-align: middle }
.toc__list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink) }
.toc__list a {
  display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; gap: .6rem;
  padding: .7rem .2rem; border-bottom: 2px dashed rgba(42, 36, 56, .18);
  color: var(--ink); text-decoration: none;
  transition: background .2s, padding .25s var(--ease-out);
}
.toc__list a:hover, .toc__list a:focus-visible { background: var(--yellow-soft); padding-left: .7rem }
.toc__no { font: 900 1.05rem/1 var(--mono); color: var(--pink) }
.toc__t b { font-size: 1.12rem; font-weight: 900 }
.toc__t small { margin-left: .6rem; font-size: .82rem; font-weight: 700; color: var(--ink-soft) }
.toc__p { font: 700 .82rem/1 var(--mono); color: var(--ink-soft) }
.toc .bubble { margin-top: 1.4rem }

/* 进场：杂志落到桌上，目录一行行出来 */
@media (prefers-reduced-motion: no-preference) {
  html:not(.calm) .mag { animation: mag-in .9s var(--ease-out) both }
  html:not(.calm) .toc > * { animation: toc-in .6s var(--ease-out) both }
  html:not(.calm) .toc > :nth-child(2) { animation-delay: .12s } html:not(.calm) .toc > :nth-child(3) { animation-delay: .2s }
  html:not(.calm) .toc > :nth-child(4) { animation-delay: .3s } html:not(.calm) .toc > :nth-child(5) { animation-delay: .38s }
}
@keyframes mag-in { from { opacity: 0; translate: 0 40px; rotate: -9deg; scale: .96 } }
@keyframes toc-in { from { opacity: 0; translate: 0 14px } }

.bubble {
  position: relative; display: inline-block;
  margin-top: 1.3rem; padding: .7em 1.2em;
  background: #fff; border: var(--border); border-radius: 16px;
  font-weight: 700; box-shadow: var(--shadow-soft);
}
.bubble::before {
  content: ""; position: absolute; left: 26px; top: -9px;
  width: 16px; height: 16px; background: #fff;
  border-left: var(--border); border-top: var(--border);
  transform: rotate(45deg);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }


/* ---------- 区块通用 ---------- */
.section {
  width: min(1120px, 92vw); margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
}
.sec-head { position: relative; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.sec-jp {
  position: absolute; top: -1.4em; left: -.2em;
  font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: transparent; -webkit-text-stroke: 1.5px var(--pink);
  opacity: .35; letter-spacing: .1em; pointer-events: none; user-select: none;
}
.sec-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: .03em;
}
.sec-count {
  font-size: .5em; vertical-align: middle;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: .2em .7em; margin-left: .3em;
}
.sec-desc { color: var(--ink-soft); font-weight: 600; margin-top: .3rem; }
.sec-badge { font-size: .8rem; margin-left: .4em; vertical-align: middle; }
.sub-head {
  font-size: 1.15rem; font-weight: 900; margin: 1.8rem 0 .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.sub-head::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px;
  background: var(--blue); border: var(--border); transform: rotate(12deg);
}
.sub-head small { font-weight: 600; color: var(--ink-soft); }

/* ---------- 作品集 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.chip {
  font-family: inherit; font-weight: 800; font-size: .92rem; cursor: pointer;
  padding: .5em 1.1em; min-height: 44px;
  background: #fff; color: var(--ink);
  border: var(--border); border-radius: 999px;
  transition: transform .18s var(--ease-spring), background .18s ease-out, box-shadow .18s var(--ease-spring);
}
.chip b { font-size: .78em; opacity: .65; margin-left: .2em; }
.chip:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--pink); }

/* 作品集：宝丽来相纸墙 + 相机快门动效 → 见文件末尾「作品墙」一节 */

/* ---------- 视频：小放映厅 ----------
   剧情向在大银幕上放（有声），下面一条胶片挑片；美拍向是会动的拍立得（静音循环）。 */
.theater {
  position: relative; margin-top: .4rem;
  padding: clamp(1rem, 3vw, 1.8rem) clamp(.8rem, 3vw, 1.8rem) clamp(1rem, 2.5vw, 1.4rem);
  background: radial-gradient(120% 70% at 50% 0%, #463b61 0%, var(--ink) 62%);
  border: var(--border); border-radius: 28px; box-shadow: 6px 6px 0 var(--pink);
  color: #fff;
}
/* 灯牌：一圈小灯泡 */
.theater__sign {
  position: absolute; left: 50%; top: 0; translate: -50% -55%; z-index: 2;
  display: flex; align-items: baseline; gap: .6rem; white-space: nowrap;
  padding: .45em 1.2em; border-radius: 12px;
  background: var(--yellow); color: var(--ink); border: var(--border); box-shadow: 3px 3px 0 var(--ink);
  outline: 3px dotted #fff; outline-offset: -8px;
}
.theater__sign b { font-size: 1.05rem; font-weight: 900; letter-spacing: .12em }
.theater__sign span { font-size: .66rem; font-weight: 900; letter-spacing: .22em; opacity: .7 }
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border: 3px solid #0e0b16; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.45), 0 0 80px rgba(255, 197, 49, .12);
}
.screen__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000 }
.screen__cover {
  position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000;
  display: block; color: #fff; font: inherit; text-align: left;
}
.screen__cover[hidden] { display: none }
.screen__cover img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out), filter .3s }
.screen__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(20, 15, 34, .78)) }
.screen__cover:hover img { scale: 1.03 }
.screen__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: clamp(64px, 11vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--pink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease-spring);
}
.screen__play::before {
  content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
  border-style: solid; border-width: .72em 0 .72em 1.15em; border-color: transparent transparent transparent #fff;
  font-size: clamp(14px, 2.2vw, 20px);
}
.screen__cover:hover .screen__play { transform: scale(1.08) rotate(-4deg); box-shadow: 6px 6px 0 var(--ink) }
.screen__cover:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px }
.screen__meta { position: absolute; left: 1rem; bottom: .8rem; z-index: 1; display: grid; text-shadow: 0 1px 6px rgba(0,0,0,.5) }
.screen__meta b { font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 900; letter-spacing: .04em }
.screen__meta small { font-size: .82rem; font-weight: 700; opacity: .85 }
.screen__now { margin: .7rem .2rem .2rem; font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.62) }

/* 胶片：上下两排齿孔 */
.reel {
  list-style: none; margin: .5rem 0 0; padding: 18px 10px;
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.85) 0 2.6px, transparent 3px) 0 5px / 16px 10px repeat-x,
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.85) 0 2.6px, transparent 3px) 0 calc(100% - 5px) / 16px 10px repeat-x,
    #0e0b16;
  border-radius: 8px;
}
.reel li { flex: 0 0 clamp(128px, 19%, 190px); scroll-snap-align: start }
.reel__item {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px;
  outline: 2px solid transparent; outline-offset: 2px; opacity: .62;
  transition: opacity .2s, outline-color .2s, transform .2s var(--ease-spring);
}
.reel__item img { width: 100%; height: 100%; object-fit: cover }
.reel__item:hover { opacity: .9; transform: translateY(-2px) }
.reel__item.is-on { opacity: 1; outline-color: var(--pink) }
.reel__item:focus-visible { outline-color: var(--yellow); opacity: 1 }
.reel__no, .reel__dur {
  position: absolute; bottom: 4px; font-size: .7rem; font-weight: 900; color: #fff;
  background: rgba(20, 15, 34, .75); border-radius: 999px; padding: 0 .5em; font-variant-numeric: tabular-nums;
}
.reel__no { left: 4px } .reel__dur { right: 4px }
.reel__item.is-on .reel__no { background: var(--pink) }

/* 美拍向：会动的拍立得 */
.loops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem) }
@media (max-width: 860px) { .loops { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.loop {
  margin: 0; padding: 8px 8px 30px; background: #fff; border-radius: 3px; position: relative;
  box-shadow: 0 1px 2px rgba(42, 36, 56, .12), 3px 8px 20px rgba(42, 36, 56, .14);
  rotate: var(--r, 0deg);
  transition: rotate .4s var(--ease-out), scale .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.loop:hover, .loop:focus-within { rotate: 0deg; scale: 1.04; z-index: 2; box-shadow: 0 2px 4px rgba(42,36,56,.12), 6px 18px 36px rgba(42,36,56,.22) }
.loop__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border-radius: 1px }
.loop__video { display: block; width: 100%; height: 100%; object-fit: cover }
.loop figcaption {
  position: absolute; inset-inline: 10px; bottom: 0; height: 30px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--hand); font-size: 12px; color: #8a8497;
}
.loop figcaption span { font-family: var(--font); font-variant-numeric: tabular-nums; font-weight: 700 }
.loop__up {
  position: absolute; right: 6px; bottom: 6px; cursor: pointer;
  padding: .3em .8em; border-radius: 999px; font: 800 .74rem/1.2 var(--font);
  background: var(--pink); color: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  opacity: 0; translate: 0 4px; transition: opacity .2s, translate .2s var(--ease-spring);
}
.loop__up[hidden] { display: none }
.loop:hover .loop__up, .loop__up:focus-visible { opacity: 1; translate: 0 0 }
@media (hover: none) { .loop__up { opacity: 1; translate: 0 0 } }
.credit-note { margin-top: 1.1rem; font-size: .85rem; font-weight: 700; color: var(--ink-soft) }

/* ---------- 设备清单（在须知里） ---------- */
.include, .gear {
  margin-top: 1.2rem; border: var(--border); border-radius: var(--radius);
  background: #fff; padding: 1.1rem 1.2rem;
}
.include h4, .gear h4 { font-weight: 900; margin-bottom: .4rem; }
.include h4::before { content: "🎞 "; }
.gear h4::before { content: "📷 "; }
.gear h4 small { color: var(--ink-soft); font-weight: 600; }
.include ul { padding-left: 1.2em; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.gear-label { font-weight: 800; font-size: .85rem; color: var(--pink); margin: .5rem 0 .3rem; }
.gear-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.gear-chips li {
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  background: var(--paper-2); border-radius: 999px; padding: .25em .85em;
  border: 1.5px solid transparent;
  transition: border-color .2s ease-out, color .2s ease-out;
}
.gear-chips li:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 报价配置器 ---------- */
.section-quote { position: relative; }
.section-quote::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 0; transform: translateX(-50%);
  width: 100vw; height: 100%;
  background:
    radial-gradient(circle at 8% 12%, var(--pink-soft), transparent 34%),
    radial-gradient(circle at 94% 78%, var(--blue-soft), transparent 36%);
  pointer-events: none;
}
.quote-wrap {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.2rem, 3vw, 2rem); align-items: start;
}
.quote-form { display: grid; gap: 1.1rem; }
.q-group {
  border: var(--border); border-radius: var(--radius);
  background: #fff; padding: 1rem 1.1rem 1.15rem;
}
.q-group legend {
  font-weight: 900; font-size: 1.02rem; padding: 0 .4em;
  display: flex; align-items: center; gap: .5em;
}
.q-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: .8rem; font-weight: 900;
}
.q-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.q-chip { position: relative; cursor: pointer; }
.q-chip input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; margin: 0;
}
.q-chip span {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 800; font-size: .95rem;
  padding: .55em 1.15em; min-height: 44px;
  background: var(--paper); border: var(--border); border-radius: 999px;
  transition: transform .18s var(--ease-spring), background .18s ease-out, box-shadow .18s var(--ease-spring), color .18s ease-out;
  user-select: none;
}
.q-chip:hover span { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.q-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.q-chip input:checked + span {
  background: var(--ink); color: var(--paper);
  box-shadow: 3px 3px 0 var(--pink);
  transform: translateY(-2px);
}
.q-chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.q-chip input:disabled { cursor: not-allowed; }
.q-check input:checked + span { box-shadow: 3px 3px 0 var(--lilac); }

.mini-tbd, .mini-add, .mini-ok {
  font-style: normal; font-size: .72rem; font-weight: 800;
  padding: .1em .5em; border-radius: 999px;
}
.mini-tbd { background: var(--pink-soft); color: var(--pink); }
.mini-add { background: var(--yellow-soft); color: #8a6500; }
.mini-ok { background: var(--mint-soft); color: #0a7a58; }
.q-chip input:checked + span .mini-tbd { background: rgba(255,255,255,.2); color: #ffd3e0; }
.q-chip input:checked + span .mini-add { background: rgba(255,255,255,.2); color: var(--yellow); }
.q-chip input:checked + span .mini-ok { background: rgba(255,255,255,.2); color: #8ff0d4; }

.stepper { display: inline-flex; align-items: center; gap: .8rem; margin-top: .5rem; }
.step-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: var(--border); background: var(--yellow);
  font-size: 1.4rem; font-weight: 900; cursor: pointer; line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s var(--ease-spring), box-shadow .15s var(--ease-spring);
}
.step-btn:hover { transform: translateY(-2px); box-shadow: 4px 5px 0 var(--ink); }
.step-btn:active { transform: translateY(1px); box-shadow: 2px 2px 0 var(--ink); }
.stepper output {
  font-size: 1.5rem; font-weight: 900; min-width: 3.2em; text-align: center;
  font-variant-numeric: tabular-nums;
}
.tier-hint { margin-top: .55rem; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.tier-hint b { color: var(--pink); }
.q-note {
  margin-top: .55rem; font-size: .88rem; font-weight: 700; color: #8a6500;
  background: var(--yellow-soft); border-radius: 10px; padding: .45em .8em;
}

/* 报价单 */
.receipt {
  position: sticky; top: 76px;
  background: #fff; border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 1.2rem 1.2rem 1.3rem;
}
.receipt-title {
  font-weight: 900; font-size: 1.15rem;
  border-bottom: 2px dashed var(--paper-2); padding-bottom: .6rem; margin-bottom: .6rem;
}
.receipt-empty { color: var(--ink-soft); font-weight: 600; padding: 1rem 0; font-size: .95rem; }
.receipt-lines { list-style: none; }
.receipt-lines li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .7rem;
  padding: .42em 0; font-weight: 700; font-size: .95rem;
  animation: line-in .3s var(--ease-out) both;
}
.receipt-lines li small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .78rem; }
.receipt-lines .rl-amount {
  font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.receipt-lines .rl-amount.tbd { color: var(--pink); font-size: .9rem; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.receipt-total { border-top: 2px dashed var(--paper-2); margin-top: .5rem; padding-top: .6rem; }
.rt-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-weight: 700; color: var(--ink-soft); font-size: .92rem; padding: .2em 0;
}
.rt-row b { font-variant-numeric: tabular-nums; font-weight: 900; color: var(--ink); }
.rt-sum { font-size: 1rem; }
.rt-sum b { font-size: 1.7rem; color: var(--pink); }
.rt-row .floor-note { font-size: .75rem; color: var(--ink-soft); font-weight: 600; }
.receipt-notes { margin-top: .7rem; display: grid; gap: .4rem; }
.receipt-notes p {
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper-2); border-radius: 10px; padding: .45em .8em;
}
.receipt-notes p.warn { background: var(--pink-soft); color: #a3335b; }
.receipt-actions { display: grid; gap: .6rem; margin-top: 1rem; }

/* ---------- 须知 ---------- */
.flow {
  list-style: none; counter-reset: step;
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.flow li {
  counter-increment: step; position: relative;
  background: #fff; border: var(--border); border-radius: var(--radius);
  padding: 1.6rem .9rem .8rem; text-align: center;
  font-size: .92rem; font-weight: 700;
}
.flow li::before {
  content: counter(step);
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; border: var(--border);
  display: grid; place-items: center; font-weight: 900; font-size: .9rem;
}
.flow li:nth-child(3)::before { background: var(--pink); }
.flow li:nth-child(5)::before { background: var(--yellow); color: var(--ink); }
.flow li small { display: block; color: var(--ink-soft); font-weight: 600; }

.rule-cards {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.rule-card {
  background: #fff; border: var(--border); border-radius: var(--radius);
  padding: 1rem 1.05rem;
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease-spring);
}
.rule-card:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: var(--shadow-pop); }
.rule-card b {
  display: inline-block; font-size: .88rem;
  background: var(--mint-soft); border-radius: 8px; padding: .1em .6em; margin-bottom: .35rem;
}
.rule-card p { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- 联系 ---------- */
.contact-card {
  position: relative; overflow: hidden;
  border: var(--border); border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 92% 8%, var(--yellow-soft), transparent 45%),
    radial-gradient(circle at 4% 96%, var(--pink-soft), transparent 45%),
    #fff;
  box-shadow: var(--shadow-pop);
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.2rem, 5vw, 3rem);
  text-align: center;
}
.contact-card h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; }
.contact-lines { margin: .8rem 0 1.6rem; font-weight: 700; color: var(--pink); font-size: 1.05rem; }
.contact-grid {
  display: grid; gap: 1rem; max-width: 520px; margin: 0 auto 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.contact-item {
  border: var(--border); border-radius: var(--radius); background: var(--paper);
  padding: 1.1rem 1rem;
}
.contact-item b {
  display: inline-block; font-size: 1.05rem; font-weight: 900; margin-bottom: .3rem;
}
.contact-item b::before { content: "💬 "; }
.contact-item:nth-child(1) b::before { content: "📕 "; }
.contact-item:nth-child(2) b::before { content: "🎵 "; }
.contact-link {
  color: inherit; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease-spring);
}
.contact-link:hover {
  transform: translate(-2px, -2px) rotate(-.4deg);
  box-shadow: var(--shadow-pop);
}
.contact-id { font-weight: 900; font-size: 1rem; }
.contact-sub { color: var(--ink-soft); font-size: .82rem; font-weight: 600; margin-top: .15rem; }
.contact-sub-only { margin-top: .4rem; }
.wechat-qr { max-width: 320px; margin: 0 auto 1.6rem; padding: 1rem; border: 2px dashed var(--ink-soft); border-radius: var(--radius); background: #fff; }
.wechat-qr__image { display: block; width: auto; max-width: 100%; height: auto; max-height: 360px; margin: 0 auto; object-fit: contain; }
.wechat-qr__image[hidden] { display: none; }
.wechat-qr__hint { margin-top: .7rem; font-size: .85rem; color: var(--ink-soft); }
.wechat-qr__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .8rem; }
.placeholder {
  color: var(--ink-soft); font-size: .88rem; font-weight: 600;
  border: 1.5px dashed var(--ink-soft); border-radius: 10px;
  padding: .35em .6em; margin-top: .2rem;
}
.placeholder::after {
  content: "占位"; display: inline-block; margin-left: .5em;
  font-size: .72rem; background: var(--ink-soft); color: var(--paper);
  border-radius: 6px; padding: 0 .45em;
}

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  border-top: var(--border); background: var(--ink); color: var(--paper);
  padding: 2rem clamp(1rem, 4vw, 2rem) calc(2rem + 76px);
  text-align: center; font-weight: 700;
}
.foot-note { font-size: .82rem; opacity: .65; margin-top: .3rem; font-weight: 500; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem; cursor: pointer; font-size: .88rem; font-weight: 700;
}
.motion-toggle input { width: 18px; height: 18px; accent-color: var(--pink); cursor: pointer; }

/* ---------- 手机端底部价格条 ---------- */
.m-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none;
  align-items: stretch; gap: .6rem;
  background: rgba(255, 253, 247, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: var(--border);
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
}
.m-bar-info {
  flex: 1; text-align: left; border: 0; background: none; cursor: pointer;
  font-family: inherit; display: flex; flex-direction: column; justify-content: center;
  padding: .2rem .2rem; min-height: 44px;
}
.m-bar-info b { font-size: 1.05rem; font-weight: 900; color: var(--pink); font-variant-numeric: tabular-nums; }
.m-bar-info small { font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
#m-copy-btn { align-self: center; }

/* ---------- 入场动效（只在 JS 可用时才隐藏初始态，关 JS 内容照样可读） ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
@supports (animation-timeline: view()) {
  html.js .reveal {
    animation: reveal-scrub linear both;
    animation-timeline: view();
    animation-range: entry 6% entry 46%;
  }
  @keyframes reveal-scrub {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .cover-hero { grid-template-columns: 1fr; min-height: 0 }
  .mag { --w: min(84vw, 440px); rotate: -2deg }
  .toc__t small { display: none }   /* 手机上目录一行一项，别把作品挤到三屏以外 */
  .toc__list a { padding: .55rem .2rem }
  .toc__label { margin-top: 1rem }
  .quote-wrap { grid-template-columns: 1fr; }
  .receipt { position: static; }
  .site-nav { display: none; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 767px) {
  .m-bar:not([hidden]).is-live { display: flex; }
  .site-foot { padding-bottom: calc(2rem + 92px); }
}

/* ---------- 减少动效：系统设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .progress { display: none; }
  .receipt-lines li { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 减少动效：站内开关 ---------- */
html.calm { scroll-behavior: auto; }
html.calm .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
html.calm .progress { display: none; }
html.calm .receipt-lines li { animation: none !important; }
html.calm *, html.calm *::before, html.calm *::after {
  transition-duration: .01ms !important; animation-duration: .01ms !important;
}

/* =============================================================
   作品墙 + 相机快门动效（来自 motion-lab/opus5.5）
   -------------------------------------------------------------
   一个 sticky 舞台里放两层：相机层 (.cam) 和作品墙 (.gallery)。
   吐出来的相纸 = 作品墙第一张 (.work--lead)，没有克隆体、没有交接帧。
     A 段（时间）：相机举起来、镜头弹出、取景框合拢      —— IO 触发
     B 段（时间）：前倾 → 咔 → 出片 → 相机让位 → 显影    —— IO 触发
     铺开（滚动）：其余相纸从它身后发出去、落位          —— 跟手，带阻尼
   基础层（无 JS / 减少动效）就是一面普通的多栏相纸墙。
   ============================================================= */
:root {
  --silver: #EEEAF2;
  --silver-2: #D9D3E2;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Hanzipen SC", "Yuanti SC", var(--font);
  --seq-a: 1.15s;
  --seq-b: 2.5s;
  --pad: 7px;       /* 相纸边：动画里的相纸和墙里的卡片是同一个元素，天然一致 */
  --pad-b: 30px;
}
@media (max-width: 639px) { :root { --seq-a: 1s; --seq-b: 2.2s; --pad: 5px; --pad-b: 22px } }

.seq { position: relative }
.seq__cue, .seq__end { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none }
.vh-probe { position: fixed; top: 0; left: 0; width: 1px; height: 100svh; visibility: hidden; pointer-events: none }
/* 最大视口（手机地址栏收起时）：算「首屏有哪些相纸」要用它，不然收起地址栏后多露出来的那一截会提前露馅 */
.vh-probe--l { height: 100lvh }

/* ---------- 基础层：多栏相纸墙 ---------- */
.gallery { columns: 5 9.5rem; column-gap: 1rem }
.wall__tag { display: none }
.work {
  position: relative; display: block;
  break-inside: avoid; margin: 0 0 1rem;
  padding: var(--pad) var(--pad) var(--pad-b);
  background: #fff; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(42, 36, 56, .12), 3px 8px 20px rgba(42, 36, 56, .14);
  rotate: var(--r, 0deg);
  transition: rotate .4s var(--ease-out), scale .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.work__open { display: block; border-radius: 1px; cursor: zoom-in }
.work__open:focus-visible { outline-offset: 4px }
.work img { width: 100%; height: auto; background: var(--paper-2); border-radius: 1px }
.work figcaption {
  position: absolute; inset-inline: 0; bottom: 0; height: var(--pad-b);
  display: grid; place-items: center;
  /* 不用手写体：手写体里的 1 和 7 几乎一样，编号会被认错 */
  font-family: var(--font); font-size: 11px; font-weight: 600; color: #8a8497; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 639px) { .work figcaption { font-size: 9.5px } }
.work:hover, .work:focus-within {
  rotate: 0deg; scale: 1.045; z-index: 20;
  box-shadow: 0 2px 4px rgba(42, 36, 56, .12), 6px 18px 36px rgba(42, 36, 56, .22);
}
.work.is-hidden { display: none }

/* ---------- JS 接管：绝对定位瀑布流 ---------- */
.js-wall .gallery { columns: auto; position: relative; height: var(--wall-h, auto) }
.js-wall .work { position: absolute; left: 0; top: 0; width: var(--col-w); margin: 0 }
.js-wall .wall__tag {
  display: grid; position: absolute; margin: 0; text-align: center; align-content: center; justify-items: center;
  left: var(--tag-x); top: var(--tag-y); width: var(--tag-w); height: var(--tag-h);
}
.wall__tag b {
  font-weight: 900; font-size: clamp(1.3rem, .9rem + 1.6vw, 2.1rem); letter-spacing: .08em; line-height: 1.2;
  color: transparent; -webkit-text-stroke: 1.5px var(--pink);
}
.wall__tag span { font-family: var(--hand); color: var(--ink-soft); font-size: clamp(.75rem, .7rem + .3vw, .92rem) }
.wall__tag.is-tight b { font-size: 1.1rem }
.wall__tag.is-gone { display: none }

.stage { position: relative }
.seq-on .stage { position: sticky; top: calc(var(--head-h, 0px) + var(--bar-h, 0px)) }
.work--lead { z-index: 10; transform-origin: 50% 0 }
.seq-on .work.fly { will-change: transform, opacity }

/* 相机层：只有 .seq-on 时存在 */
.cam { display: none }
.seq-on .cam {
  display: block; position: absolute; z-index: 1; inset: 0 0 auto 0; height: var(--stage-h, 100svh);
  overflow: clip; pointer-events: none;
}
.seq-on .gallery { z-index: 2 }
.seq.done .cam { visibility: hidden }
/* 等待播放：相纸还在相机肚子里 */
.seq-on .seq:not(.play-b):not(.done) .work--lead { opacity: 0 }

/* ---------- 相机 ---------- */
.camera { position: absolute; left: var(--cam-x); top: var(--cam-y); width: var(--cam-w); opacity: 0 }
.camera__rig { transform-origin: 50% 100% }
.camera__svg { width: 100%; height: auto; overflow: visible }
.c-shadow { fill: var(--ink) }
.c-lip { fill: var(--silver-2); stroke: var(--ink); stroke-width: 4 }
.c-slit { fill: var(--ink) }
.c-body { fill: var(--silver) }
.c-leather { fill: #342D45 }
.c-trim { fill: var(--ink) }
.c-outline { fill: none; stroke: var(--ink); stroke-width: 5 }
.c-flash { fill: #fff; stroke: var(--ink); stroke-width: 4 }
.c-flash-lines { stroke: #D6D0E0; stroke-width: 2.5; stroke-linecap: round; fill: none }
.c-brand { font: 800 19px/1 var(--font); fill: var(--ink); letter-spacing: -.02em }
.c-sensor { fill: #3A3350; stroke: var(--ink); stroke-width: 3 }
.c-finder { fill: #2B3B66; stroke: var(--ink); stroke-width: 4 }
.c-finder-glint { stroke: #9fd4ff; stroke-width: 3; stroke-linecap: round; opacity: .8 }
.c-lens { transform-box: fill-box; transform-origin: center }
.c-lens-base { fill: var(--silver); stroke: var(--ink); stroke-width: 5 }
.c-lens-knurl { fill: #E3DDE9; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 3 4 }
.c-lens-barrel { fill: #231D31; stroke: var(--ink); stroke-width: 4 }
.c-lens-glass { fill: #140F22 }
.c-preview { opacity: 0 }
.c-glint { fill: #fff; opacity: .85 }
.c-shutter-ring { fill: #231D31; stroke: var(--ink); stroke-width: 3 }
.c-shutter { fill: var(--pink); stroke: var(--ink); stroke-width: 3.5; transform-box: fill-box; transform-origin: center }
.c-model { font: 700 13px/1 var(--mono); fill: var(--ink-soft) }
.c-st { stroke: var(--ink); stroke-width: 2.5 }
.c-st--a { fill: var(--pink) } .c-st--b { fill: var(--yellow) } .c-st--c { fill: var(--mint) }
.c-lug { fill: var(--silver-2); stroke: var(--ink); stroke-width: 3 }

.finder { position: absolute; left: var(--fr-x); top: var(--fr-y); width: var(--fr-w); height: var(--fr-h) }
.fc { position: absolute; width: clamp(22px, 4vw, 40px); aspect-ratio: 1; border: 3px solid var(--ink); opacity: 0 }
.fc--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; --dx: -1; --dy: -1 }
.fc--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; --dx: 1; --dy: -1 }
.fc--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; --dx: -1; --dy: 1 }
.fc--br { bottom: 0; right: 0; border-left: 0; border-top: 0; --dx: 1; --dy: 1 }

.cue-hint {
  position: absolute; left: 50%; top: var(--hint-y); translate: -50% 0; margin: 0;
  padding: .35em 1em; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: .82rem; font-weight: 700; opacity: 0;
}
.cue-hint b { color: var(--pink) }
.kacha {
  /* 快门拟声：漫画音效字（片假名 カシャッ），不再是对话框贴纸 —— 黄字、粗墨描边、硬投影、斜着冲出来 */
  position: absolute; left: var(--kacha-x); top: var(--kacha-y); z-index: 3;
  rotate: -9deg; transform: skewX(-12deg); transform-origin: 0 100%;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", var(--font);
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -.06em; white-space: nowrap;
  color: var(--yellow); -webkit-text-stroke: .13em var(--ink); paint-order: stroke fill;
  text-shadow: .09em .09em 0 var(--ink);
  opacity: 0; scale: .4;
}
/* 白闪盖满整个视口（页头除外），不只是内容区那一栏 */
.flash { position: fixed; inset: var(--head-h, 0px) 0 0 0; background: #fff; opacity: 0 }

/* ---------- A 段：相机举起来 ---------- */
.play-a .camera { animation: cam-in var(--seq-a) both }
@keyframes cam-in {
  0%   { opacity: 0; transform: translateY(22svh) rotate(-7deg) scale(.86); animation-timing-function: cubic-bezier(.2, .9, .3, 1) }
  62%  { opacity: 1; transform: translateY(-1.2svh) rotate(1.2deg) scale(1.01); animation-timing-function: ease-in-out }
  100% { opacity: 1; transform: none }
}
.play-a .c-lens { animation: lens-pop var(--seq-a) both }   /* mini 90 开机镜头会伸出来 */
@keyframes lens-pop { 0%, 42% { scale: .8 } 66% { scale: 1.07 } 82% { scale: .98 } 100% { scale: 1 } }
.play-a .c-preview { animation: prev-in var(--seq-a) both }
@keyframes prev-in { 0%, 60% { opacity: 0 } 100% { opacity: .92 } }
.play-a .fc { animation: fc-in var(--seq-a) both }
@keyframes fc-in {
  0%, 30% { opacity: 0; translate: calc(var(--dx) * 2.4rem) calc(var(--dy) * 2.4rem) }
  80%     { opacity: 1; translate: calc(var(--dx) * -.2rem) calc(var(--dy) * -.2rem) }
  100%    { opacity: 1; translate: 0 0 }
}
.play-a .cue-hint { animation: hint-in .5s var(--ease-out) calc(var(--seq-a) * .9) both }
@keyframes hint-in { from { opacity: 0; translate: var(--hint-tx, -50%) .6rem } to { opacity: 1; translate: var(--hint-tx, -50%) 0 } }
.play-a .c-shutter { animation: beg 1.6s ease-in-out var(--seq-a) infinite }
@keyframes beg { 0%, 100% { scale: 1 } 50% { scale: 1.14 } }

/* ---------- B 段：前倾 → 咔 → 出片 → 相机让位 → 显影 ----------
   每条覆盖全程、用百分比摆节拍；和 A 段同时命中的元素，from 写死成 A 的终态 */
.play-b .camera { animation: none; opacity: 1; transform: none }
.play-b .c-lens { animation: none; scale: 1 }
.play-b .camera__rig { animation: rig-b var(--seq-b) linear both }
@keyframes rig-b {
  0%   { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1) }
  15%  { transform: perspective(900px) rotateX(9deg) translateY(-3px) scale(1.035) }
  19%  { transform: perspective(900px) rotateX(9deg) translateY(-3px) scale(1.035); animation-timing-function: cubic-bezier(.2, 0, .1, 1) }
  21%  { transform: perspective(900px) rotateX(1deg) translateY(5px) scale(.955) }
  25%  { transform: perspective(900px) rotateX(-1deg) scale(1.012) }
  29%, 100% { transform: none }   /* 出片前必须回到原位：裁切线按静止的机身算 */
}
.play-b .c-shutter { animation: press var(--seq-b) linear both }
@keyframes press { 0%, 16% { scale: 1 } 19%, 22% { scale: .72 } 26%, 100% { scale: 1 } }
.play-b .flash { animation: flash-b var(--seq-b) linear both }
@keyframes flash-b { 0%, 19.6% { opacity: 0 } 20.6% { opacity: .96 } 22% { opacity: .7 } 27%, 100% { opacity: 0 } }
.play-b .c-preview { animation: prev-out var(--seq-b) linear both }
@keyframes prev-out { 0%, 20% { opacity: .92 } 21%, 100% { opacity: 0 } }
.play-b .fc { animation: fc-out var(--seq-b) both }
@keyframes fc-out {
  0%, 20.5% { opacity: 1; translate: 0 0 }
  21%       { opacity: 1; translate: calc(var(--dx) * -.6rem) calc(var(--dy) * -.6rem) }
  34%, 100% { opacity: 0; translate: calc(var(--dx) * 1.6rem) calc(var(--dy) * 1.6rem) }
}
.play-b .cue-hint { animation: hint-out var(--seq-b) linear both }
@keyframes hint-out { 0% { opacity: 1 } 8%, 100% { opacity: 0 } }
.play-b .kacha { animation: kacha var(--seq-b) linear both }
@keyframes kacha {
  0%, 20%   { opacity: 0; scale: .4; translate: 0 0 }
  21%       { opacity: 1; scale: 1.25; translate: 0 -2px }
  24%       { opacity: 1; scale: .95 }
  26%, 36%  { opacity: 1; scale: 1; translate: 0 -6px }
  44%, 100% { opacity: 0; scale: .9; translate: 0 -18px }
}
.play-b .camera__exit { animation: cam-out var(--seq-b) both }
@keyframes cam-out {
  0%, 63%   { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5, 0, .75, .2) }
  88%, 100% { opacity: 0; transform: translateY(46svh) rotate(-5deg) scale(.94) }
}
/* 出片：translate 和 clip-path 在同一段、同一条缓动里插值 → 裁切线永远钉在出片口上 */
.seq.play-b .work--lead { animation: lead-b var(--seq-b) both }
@keyframes lead-b {
  0%, 29% {
    opacity: 1; translate: 0 var(--dy-h); scale: var(--s);
    clip-path: inset(0px -60px var(--clip-h) -60px);
    animation-timing-function: cubic-bezier(.3, .1, .35, 1);
  }
  60% { translate: 0 var(--dy-o); scale: var(--s); clip-path: inset(0px -60px 0px -60px) }
  64% {
    translate: 0 calc(var(--dy-o) - 3px); scale: var(--s);
    clip-path: inset(-60px -60px -60px -60px);
    animation-timing-function: cubic-bezier(.3, 0, .15, 1);
  }
  90%, 100% { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(-60px -60px -60px -60px) }
}
.seq.play-b .work--lead img { animation: develop var(--seq-b) linear both }
@keyframes develop {
  0%, 44% { filter: saturate(.05) brightness(1.7) contrast(.4) sepia(.25) }
  72%     { filter: saturate(.55) brightness(1.22) contrast(.75) sepia(.12) }
  100%    { filter: none }
}
/* 播完就把动画拿掉（终态 = 无变换，拿掉不会跳），hover 才能接管 */
.seq .work--lead.dev, .seq .work--lead.dev img { animation: none !important; opacity: 1 }

/* ---------- 3D 相机（instax3d.js 加载成功、开演前换上 → .seq--3d） ----------
   画布横向铺满视口、纵向就是舞台；SVG 相机和取景框不要了。
   相纸在画布里吐出来、飘到第一张的位置，那一帧第一张卡片 .got 现身，从同一个「未显影」滤镜接着显影。
   合体开机后（.play-a、还没 .play-b）画布能玩：拖着转、点一下拍照；
   这时作品墙那层（相纸都还藏着）不接指针，不然会点到看不见的卡片。 */
.camera__gl { display: none }
.seq--3d { --seq-b: 4.4s; --dev-3d: 1.6s }
.seq--3d .camera, .seq--3d .finder { display: none }
.seq-on .seq--3d .cam { overflow: visible clip }
.seq--3d .camera__gl { display: block; position: absolute; top: 0 }
.seq-on .seq:not(.done) .gallery { pointer-events: none }
.seq--3d.play-a:not(.play-b) .camera__gl { pointer-events: auto; touch-action: pan-y; -webkit-tap-highlight-color: transparent }
.camera__gl.is-play { cursor: grab }
.camera__gl.is-hot { cursor: pointer }
.camera__gl.is-drag { cursor: grabbing }
.cue-hint__3d { display: none }
.seq--3d .cue-hint { border-radius: 16px; text-align: center; line-height: 1.45 }
.seq--3d .cue-hint__3d { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft) }
/* 宽屏：提示放在相机右边，左边一个小尖角指着机顶快门键 */
.seq--3d .hint-side .cue-hint { --hint-tx: 0%; left: var(--hint-x); translate: 0 0; text-align: left; white-space: normal; width: 230px; border-top-left-radius: 4px }
.seq--3d.play-b .work--lead, .seq--3d.play-b .work--lead img { animation: none }
.seq-on .seq--3d:not(.done) .work--lead:not(.got) { opacity: 0 }
.seq--3d.play-b .work--lead.got img { animation: develop-3d var(--dev-3d) linear both }
@keyframes develop-3d {
  0%   { filter: saturate(.05) brightness(1.7) contrast(.4) sepia(.25) }
  45%  { filter: saturate(.55) brightness(1.22) contrast(.75) sepia(.12) }
  100% { filter: none }
}
/* 3D 模式下第一张 = 相机吐出来的那张 instax mini：54 × 86，画幅 46 × 62（左右 4、上 6、下 18），按列宽折算 */
.work--instax { padding: calc(var(--col-w) * 6 / 54) calc(var(--col-w) * 4 / 54) calc(var(--col-w) * 18 / 54) }
.work--instax img { aspect-ratio: 46 / 62; object-fit: cover; height: auto }
.work--instax figcaption { height: calc(var(--col-w) * 18 / 54) }

/* 散开时的角标：叠在 3D 画布上（左上 FIG 标题、右上「已装好 n / 23」） */
.fig { position: absolute; top: 0; pointer-events: none; opacity: 0; --fx: 0px; --fw: 100% }
.fig__cap, .fig__count { position: absolute; top: 18px; margin: 0; color: var(--ink) }
.fig__cap { left: var(--fx) }
.fig__cap b {
  display: inline-block; margin-right: .6em; padding: .2em .55em; border-radius: 4px; vertical-align: .1em;
  background: var(--ink); color: var(--paper, #fff); font: 800 .72rem/1 var(--mono); letter-spacing: .06em;
}
.fig__cap span { font-weight: 900; font-size: 1.05rem; letter-spacing: .01em }
.fig__cap span i { margin-left: .5em; font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .16em; color: var(--ink-soft) }
.fig__cap small { display: block; margin-top: .4rem; font-size: .76rem; font-weight: 700; color: var(--ink-soft) }
.fig__count { right: calc(100% - var(--fx) - var(--fw)); text-align: right; line-height: 1 }
.fig__count small { display: block; margin-bottom: .3rem; font-size: .7rem; font-weight: 800; color: var(--ink-soft); letter-spacing: .08em }
.fig__count b { font: 900 1.7rem/1 var(--mono); color: var(--pink); font-variant-numeric: tabular-nums }
.fig__count span { margin-left: .2em; font: 700 .8rem/1 var(--mono); color: var(--ink-soft) }
.fig.is-narrow .fig__cap, .fig.is-narrow .fig__count { top: 12px }
.fig.is-narrow .fig__cap { left: calc(var(--fx) + 2px) }
.fig.is-narrow .fig__cap span { font-size: .9rem }
.fig.is-narrow .fig__cap small { font-size: .68rem; margin-top: .3rem }
.fig.is-narrow .fig__count b { font-size: 1.3rem }

/* ---------- 跳过 ---------- */
.skipper {
  position: fixed; z-index: 58; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  translate: -50% 0; padding: .55em 1.2em; border-radius: 999px; cursor: pointer;
  font-family: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800; font-size: .85rem;
  transition: opacity .3s, translate .3s var(--ease-out);
}
.skipper[hidden] { display: block; opacity: 0; translate: -50% 1rem; pointer-events: none; visibility: hidden; transition: opacity .3s, translate .3s, visibility 0s .3s }

@media (min-width: 640px) {
  .skipper { left: 1rem; translate: 0 0 }
  .skipper[hidden] { translate: 0 1rem }
}

/* ---------- 灯箱 ---------- */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; overflow: hidden;
}
.lb::backdrop { background: rgba(42, 36, 56, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.lb[open] { display: grid; place-items: center }
.lb__fig {
  margin: 0; padding: 10px 10px 42px; background: #fff; border-radius: 4px; position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  max-width: min(92vw, 720px);
}
.lb__img { width: auto; height: auto; max-width: calc(min(92vw, 720px) - 20px); max-height: calc(100svh - 150px); object-fit: contain }
.lb__cap {
  position: absolute; inset-inline: 0; bottom: 0; height: 42px; display: grid; place-items: center;
  font-family: var(--hand); color: var(--ink-soft); font-size: .9rem;
}
.lb__btn, .lb__close {
  position: fixed; display: grid; place-items: center; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  font: 900 1.6rem/1 var(--font); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.lb__prev { left: max(.75rem, env(safe-area-inset-left)); top: 50% ; translate: 0 -50% }
.lb__next { right: max(.75rem, env(safe-area-inset-right)); top: 50%; translate: 0 -50% }
.lb__close { right: .75rem; top: .75rem; font-size: 1.1rem }
@media (max-width: 639px) { .lb__prev, .lb__next { top: auto; bottom: 1rem; translate: none } }
.lb[open] .lb__fig { animation: lb-in .32s var(--ease-out) }
@keyframes lb-in { from { opacity: 0; scale: .94 } }
@media (prefers-reduced-motion: reduce) { .lb[open] .lb__fig { animation: none } }
html.calm .lb[open] .lb__fig { animation: none }

/* =============================================================
   约拍小对话（作品 → 价目报价 的过渡）
   ============================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.ask { padding-top: clamp(3rem, 8vw, 5rem) }
.chat {
  position: relative; width: min(100%, 560px); margin-inline: auto;
  background: #fff; border: var(--border); border-radius: 26px; box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.chat__bar {
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
  background: var(--yellow); border-bottom: var(--border); font-weight: 900;
}
.chat__back { font-size: 1.4rem; line-height: 1; opacity: .5 }
.chat__bar b { flex: 1; text-align: center; letter-spacing: .04em }
.chat__bar small { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; color: var(--ink-soft) }
.chat__bar small i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px #fff }
.chat__log {
  list-style: none; padding: 1.1rem 1rem 1.6rem; margin: 0; display: grid; gap: .75rem; position: relative;
  background-image: radial-gradient(rgba(42, 36, 56, .06) 1.2px, transparent 1.3px); background-size: 14px 14px;
}
.ask { position: relative }
/* 播动画时：对话窗口钉在页头下方居中，下面是一段滚动跑道。
   跑道上的 .beat-cue（JS 按消息条数均匀插）一经过就放一条消息；最后一个 → 手指点。 */
.ask-on .ask { height: var(--ask-h, 200svh); padding-top: 0 }
.ask-on .ask__stage {
  position: sticky; top: var(--head-h, 0px); height: calc(100svh - var(--head-h, 0px));
  display: grid; place-items: center; padding-block: 1rem;
}
.beat-cue { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none }
.chat-armed .msg--final:not(.shown) { opacity: 0; translate: 0 12px }

.msg { display: flex; align-items: flex-end; gap: .55rem; position: relative }
.msg[hidden] { display: none }
.msg--r { flex-direction: row-reverse }
.msg__ava { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); border: 2px solid var(--ink) }
.msg__ava--qq { background: var(--pink); position: relative }
.msg__ava--qq::after { content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #fff }
.msg__b {
  position: relative; max-width: min(78%, 22rem); margin: 0;
  padding: .6em .95em; border: 2px solid var(--ink); border-radius: 18px;
  font-weight: 700; line-height: 1.55; background: #fff;
}
.msg--l .msg__b { border-bottom-left-radius: 5px }
.msg--r .msg__b { border-bottom-right-radius: 5px; background: var(--pink-soft) }
.msg__b b { color: var(--pink) }
.msg__kao { margin-left: .3em; color: var(--ink-soft); font-weight: 600; white-space: nowrap }
.msg__stk {
  position: absolute; right: 3.2rem; bottom: -1.1rem; rotate: -6deg;
  padding: .1em .6em; border-radius: 8px; font-size: .78rem; font-weight: 900;
  background: var(--yellow); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.msg--final { margin-bottom: .9rem }

/* 选项：做成吧唧 */
.choices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; max-width: 86% }
.choice {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45em .95em .45em .45em; min-height: 44px; border-radius: 999px;
  background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: .92rem;
  transition: transform .18s var(--ease-spring), box-shadow .18s var(--ease-spring), background .18s;
}
.choice svg { width: 30px; height: 30px; flex: none }
.choice:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink) }
.choice.is-pressed, .choice:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink) }
.choice.is-picked { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--pink) }

/* 手指：替你点一下 */
.finger {
  position: absolute; left: 0; top: 0; z-index: 3; font-size: 2rem; line-height: 1;
  opacity: 0; pointer-events: none; translate: calc(var(--fx, 0px) + 60px) calc(var(--fy, 0px) + 70px);
  filter: drop-shadow(2px 3px 0 rgba(42, 36, 56, .25));
}
.finger.tap { animation: tap 1.5s both }
@keyframes tap {
  0%   { opacity: 0; translate: calc(var(--fx) + 70px) calc(var(--fy) + 80px); scale: 1 }
  18%  { opacity: 1 }
  38%  { translate: var(--fx) var(--fy); scale: 1; animation-timing-function: ease-in }
  46%  { translate: var(--fx) calc(var(--fy) + 3px); scale: .82 }   /* 按下 */
  58%  { translate: var(--fx) var(--fy); scale: 1 }
  78%  { opacity: 1 }
  100% { opacity: 0; translate: calc(var(--fx) + 30px) calc(var(--fy) + 40px) }
}
.msg--choices .finger { position: absolute }

/* 节拍：JS 接管后才藏（.chat-armed），空位先占着，消息冒出来时不推挤页面 */
.chat-armed .chat__log > [data-beat]:not(.shown),
.chat-armed .msg--echo:not(.shown) { opacity: 0; translate: 0 12px; pointer-events: none }
.chat-armed .chat__log > .msg { transition: opacity .32s var(--ease-out), translate .42s var(--ease-spring) }
.chat-armed .msg--r:not(.shown) .msg__b { scale: .9; transform-origin: 100% 100% }
.chat-armed .msg--l:not(.shown) .msg__b { scale: .9; transform-origin: 0 100% }
.chat-armed .msg .msg__b { transition: scale .42s var(--ease-spring) }
/* 「正在输入…」：空位里先冒三个点 */
.msg.typing { opacity: 1 !important; translate: none !important }
.msg.typing > :not(.msg__ava) { visibility: hidden }
.msg.typing::after {
  content: ""; position: absolute; right: calc(38px + .55rem); bottom: 0;
  width: 58px; height: 36px; border: 2px solid var(--ink); border-radius: 18px 18px 5px 18px; background: var(--pink-soft);
  background-image: radial-gradient(circle, var(--ink) 3px, transparent 3.5px), radial-gradient(circle, var(--ink) 3px, transparent 3.5px), radial-gradient(circle, var(--ink) 3px, transparent 3.5px);
  background-size: 12px 12px; background-repeat: no-repeat;
  background-position: 11px 50%, 23px 50%, 35px 50%;
  animation: dots .9s steps(3) infinite;
}
@keyframes dots { 0% { opacity: .55 } 50% { opacity: 1 } }

/* =============================================================
   价目 & 点菜式报价
   ============================================================= */
.shop { display: grid; gap: 1.1rem; min-width: 0 }
.shop fieldset { border: 0; margin: 0; padding: 0; min-width: 0 }
.shop__lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem }
.shop__lines legend { font-weight: 900; margin-bottom: .5rem; font-size: 1.02rem }
.line-tab { position: relative; cursor: pointer }
.line-tab input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer }
.line-tab span {
  display: grid; place-items: center; text-align: center; min-height: 58px; padding: .5em .4em;
  background: #fff; border: var(--border); border-radius: 16px; font-weight: 900; line-height: 1.25;
  transition: transform .18s var(--ease-spring), box-shadow .18s var(--ease-spring), background .18s;
}
.line-tab small { font-size: .7rem; font-weight: 800; color: var(--pink); letter-spacing: .08em }
.line-tab:hover span { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink) }
.line-tab input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px }
.line-tab input:checked + span { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--pink); transform: translateY(-2px) }
.line-tab input:checked + span small { color: var(--yellow) }

.shelf {
  border: var(--border); border-radius: var(--radius); background: #fff; padding: 1.1rem 1.1rem 1.2rem;
  display: grid; gap: 1rem;
}
.shelf[hidden] { display: none }
.shop[data-line] .shelf:not([hidden]) { animation: shelf-in .36s var(--ease-out) }
@keyframes shelf-in { from { opacity: 0; translate: 0 10px } }
.shelf__h { font-size: 1.15rem; font-weight: 900; display: flex; align-items: baseline; gap: .5rem }
.shelf__h small { font-size: .72rem; color: var(--pink); letter-spacing: .1em }
.shelf__note {
  margin: -.3rem 0 0; font-size: .86rem; font-weight: 700; color: var(--ink-soft);
  background: var(--yellow-soft); border-radius: 10px; padding: .45em .8em;
}
.shelf__note b { color: var(--pink) }
.shelf__row { display: grid; gap: .55rem; min-width: 0 }
.shelf__row[hidden] { display: none }
/* 切套餐时整张卡（稳定器 / 副摄）跟着行一起藏，不是置灰 */
.goods[hidden] { display: none }
/* 「可包天，私信问价」一行小字 */
.shelf__hint { margin: .45rem 0 0; font-size: .82rem; font-weight: 700; color: var(--ink-soft) }
/* 套餐含量：报价货架尾部的小字列表 */
.shelf__includes { list-style: none; margin: 0; display: grid; gap: .35rem }
.shelf__includes li { font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding-left: 1.1em; position: relative }
.shelf__includes li::before { content: "·"; position: absolute; left: .25em; font-weight: 900; color: var(--pink) }
/* 线路按钮排：开两条 / 三条都排得下 */
.shop__lines { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) }
.shelf__row legend { font-weight: 900; font-size: .9rem; color: var(--ink-soft); margin-bottom: .45rem }
.shelf__row legend small { font-weight: 700; opacity: .75 }
.style-chips { display: flex; flex-wrap: wrap; gap: .5rem }

/* 一个选项：左边小图标，右边标价 */
.goods { position: relative; display: block; cursor: pointer }
.goods > input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1 }
.goods--step { cursor: default }
.goods__card {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .7rem;
  padding: .55rem .7rem .55rem .6rem; min-height: 60px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
  transition: transform .18s var(--ease-spring), box-shadow .18s var(--ease-spring), background .18s, border-color .18s;
}
.goods__ico { width: 44px; height: 44px; transition: rotate .3s var(--ease-spring), scale .3s var(--ease-spring) }
.goods__txt { display: grid; min-width: 0 }
.goods__txt b { font-weight: 900; font-size: .96rem; line-height: 1.35 }
.goods__txt small { font-size: .78rem; font-weight: 600; color: var(--ink-soft); line-height: 1.45 }
/* 价签：做成吊牌 */
.goods__tag {
  position: relative; justify-self: end; white-space: nowrap;
  padding: .25em .6em .25em 1.05em; border: 2px solid var(--ink); border-radius: 4px 10px 10px 4px;
  background: #fff; font-weight: 900; font-size: 1rem; font-variant-numeric: tabular-nums;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.goods__tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--ink); opacity: .35 }
.goods__tag small { font-size: .66em; font-weight: 700; color: var(--ink-soft) }
.goods__tag .mini-tbd { margin-left: .3em }
.goods:hover .goods__card { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink) }
.goods:hover .goods__ico { rotate: -8deg; scale: 1.06 }
.goods > input:focus-visible + .goods__card { outline: 3px solid var(--blue); outline-offset: 2px }
.goods > input:checked + .goods__card { background: var(--pink-soft); border-color: var(--ink); box-shadow: 3px 3px 0 var(--pink); transform: translateY(-2px) }
.goods > input:checked + .goods__card .goods__tag { background: var(--yellow) }
.goods > input:checked + .goods__card::after {
  content: "已选"; position: absolute; left: .7rem; top: -.65rem;
  font-size: .66rem; font-weight: 900; padding: .05em .55em; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.goods__card { position: relative }
.goods > input:disabled + .goods__card { cursor: default }
.goods > input:disabled:checked + .goods__card::after { content: "必选" }
.goods > input:disabled:not(:checked) + .goods__card { opacity: .45 }
.goods--step .goods__card { grid-template-columns: 44px 1fr auto }
.goods--step .stepper { margin: 0; gap: .45rem }
.goods--step .step-btn { width: 40px; height: 40px; font-size: 1.2rem }
.step-val {
  width: 2.6em; text-align: center; font: 900 1.25rem/1 var(--font); font-variant-numeric: tabular-nums;
  border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.step-val::-webkit-inner-spin-button, .step-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0 }
.stepper i { font-style: normal; font-weight: 800; font-size: .8rem; color: var(--ink-soft); margin-left: -.3rem }
.goods.bump .goods__ico { animation: bump .36s var(--ease-spring) }
@keyframes bump { 40% { scale: 1.18; rotate: 8deg } }
@media (max-width: 639px) {
  .goods__card { grid-template-columns: 38px 1fr; gap: .55rem }
  .goods__ico { width: 38px; height: 38px }
  .goods__tag { grid-column: 2; justify-self: start; font-size: .92rem }
  .goods--step .goods__card { grid-template-columns: 38px 1fr }
  .goods--step .stepper { grid-column: 1 / -1; justify-self: end }
  .shop__lines { gap: .45rem }
  .line-tab span { font-size: .88rem }
}

.receipt-lines li small.flag { color: #a36a00 }
.btn.is-done { background: var(--mint); color: var(--ink) }

.anchor { position: absolute; top: -80px }
.shop-sec { position: relative }

@media (prefers-reduced-motion: reduce) {
  .finger { display: none }
  .shop[data-line] .shelf:not([hidden]) { animation: none }
}
html.calm .finger { display: none }
html.calm .shop[data-line] .shelf:not([hidden]) { animation: none }

/* 对话两侧的小贴纸装饰：随消息一件件冒出来（只在宽屏） */
.ask__deco { display: none }
@media (min-width: 900px) {
  .ask-on .ask__deco { display: block; position: absolute; inset: 0; pointer-events: none }
  .deco {
    position: absolute; left: var(--x); top: var(--y); width: var(--s, 64px); height: var(--s, 64px);
    rotate: var(--r, 0deg); opacity: 0; scale: .4;
    transition: opacity .35s var(--ease-out), scale .55s var(--ease-spring);
    filter: drop-shadow(3px 4px 0 rgba(42, 36, 56, .14));
  }
  .deco.on { opacity: 1; scale: 1; animation: deco-float 4.8s ease-in-out infinite; animation-delay: var(--d, 0s) }
  .deco--txt {
    width: auto; height: auto; padding: .25em .8em; border-radius: 10px;
    background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
    font-weight: 900; font-size: .95rem; color: var(--pink); white-space: nowrap; filter: none;
  }
}
@keyframes deco-float { 50% { translate: 0 -8px } }
@media (prefers-reduced-motion: reduce) { .deco.on { animation: none } }
html.calm .deco.on { animation: none }

/* 钉住时窗口高度不超过舞台；超出的话，记录区像真聊天软件一样往上滚，最新一条永远在底部 */
.ask-on .chat { display: flex; flex-direction: column; max-height: 100% }
.ask-on .chat__log { overflow: hidden; min-height: 0; flex: 1 1 auto }
@media (max-width: 639px) {
  .ask-on .ask__stage { padding-block: .6rem }
  .chat__log { gap: .6rem; padding: .9rem .75rem 1.4rem }
  .msg__ava { width: 32px; height: 32px }
  .msg__ava--qq::after { left: 6px; top: 6px; width: 7px; height: 7px }
  .msg__b { padding: .5em .8em; font-size: .92rem; max-width: 80% }
  .choices { max-width: 90%; gap: .45rem }
  .choice { font-size: .86rem; padding-right: .8em }
  .choice svg { width: 26px; height: 26px }
}
/* 无 JS：选项只当价目表看，± 按钮和「已选」角标都没意义 */
html:not(.js) .step-btn, html:not(.js) .goods__card::after { display: none }
/* 放映厅一屏装下：银幕宽度按屏幕高度封顶（灯牌 + 银幕 + 片名 + 胶片 ≈ 银幕高 + 250px） */
.theater > .screen, .theater > .screen__now, .theater > .reel {
  width: min(100%, calc((100svh - var(--head-h, 66px) - 260px) * 16 / 9)); margin-inline: auto;
}
@media (max-width: 639px) { .theater > .screen, .theater > .screen__now, .theater > .reel { width: 100% } }

/* 筛选条：在作品区里一直吸顶（页头下面），看相机动画时也点得到 */
.js-wall #works .filters {
  position: sticky; top: var(--head-h, 0px); z-index: 30;
  margin: 0 0 .4rem; padding: .6rem 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.js-wall #works .filters::-webkit-scrollbar { display: none }
.js-wall #works .filters::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: rgba(255, 253, 247, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(42, 36, 56, .14);
}
.js-wall #works .filters .chip { flex: none; min-height: 40px; padding: .4em 1em }
@media (max-width: 639px) { .js-wall #works .filters { gap: .45rem; padding: .5rem 0 } .js-wall #works .filters .chip { font-size: .86rem } }
