/* ============================================================
   录像室 · VIDEO ARCHIVE — 灰模原型样式
   结构：全局氛围 → 架子场景 → 录像带 → 开带动画 → 文档页 → VCR
   ============================================================ */

:root {
  --bg-0: #141416;
  --bg-1: #0c0c0e;
  --panel: #191a1e;
  --line: #2a2b31;
  --ink: #e8e6e0;
  --ink-dim: #b9b6ad;
  --ink-faint: #77787f;
  --accent: #ffd400;

  --tw: clamp(52px, min(6vw, 10.5vh), 86px);   /* 录像带侧脊宽 */
  --th: calc(var(--tw) * 6.2);                  /* 录像带高 */
  --td: 26px;                                   /* 录像带厚度 */

  --ease-pop: cubic-bezier(.16, .84, .28, 1.08);
  --ease-zoom: cubic-bezier(.22, .61, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  background: var(--bg-1);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- 全局氛围层 ---------------- */
.fx { position: fixed; inset: 0; pointer-events: none; }
.fx--scanlines {
  z-index: 90;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  opacity: .5;
  mix-blend-mode: multiply;
}
.fx--vignette {
  z-index: 89;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---------------- HUD / 页脚 ---------------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 28px;
  pointer-events: none;
}
.hud__brand {
  font-size: 15px; font-weight: 800; letter-spacing: .08em;
  border-left: 4px solid var(--accent); padding-left: 10px; line-height: 1.35;
}
.hud__brand span { display: block; font-size: 10px; font-weight: 600; color: var(--ink-faint); letter-spacing: .35em; }
.hud__hint {
  font-size: 12px; color: var(--ink-dim); letter-spacing: .12em;
  border: 1px solid var(--line); background: rgba(0,0,0,.35);
  padding: 8px 14px; border-radius: 99px;
  transition: opacity .8s ease;
}
.hud__hint.is-faded { opacity: 0; }

.foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  padding: 14px 28px; pointer-events: none;
}
.foot__note { font-size: 11px; color: var(--ink-faint); letter-spacing: .14em; }

/* ---------------- 架子场景 ---------------- */
.scene {
  position: fixed; inset: 0; z-index: 1; overflow: hidden;
  background: radial-gradient(1400px 900px at 30% 110%, #1a1a1f, var(--bg-1) 65%);
}
.gl3d {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; display: none;
  touch-action: pan-y;
}
/* WebGL 正常时只显示 3D 场景；下面的简化货架只给不支持 WebGL 的浏览器用 */
body.mode-3d .gl3d { display: block; }
body.mode-3d .stage { display: none; }
body.mode-3d .fx { display: none; }

/* ---------------- 作品名字标签（悬停的盒子倾出时出现） ----------------
   结构：盒脊顶端的定位点 → 竖向引线 → 卡片（缺角铭牌 + 黄色识别条）
   动效：点弹出 → 引线向上生长 → 卡片从引线一侧擦出 → 文字逐行上浮；换盒时卡片滑行、标题做一次磁迹抖动 */
.work-tag {
  --lead: 40px;
  --tag-paper: #f5f1e8;
  --tag-ink: #2d2823;
  --tag-stamp: #c44;
  position: absolute; left: 0; top: 0; z-index: 6;
  pointer-events: none;
  will-change: transform;
}
.work-tag__pin {
  position: absolute; left: -4px; top: -4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4d0ca, #8a8783);
  box-shadow: 0 2px 4px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 1px rgba(0,0,0,.2);
  opacity: 0; transform: scale(0);
  transition: transform .2s cubic-bezier(.3,1.7,.5,1), opacity .14s ease;
}
.work-tag__pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(140,135,130,.45);
  opacity: 0;
}
.work-tag.is-visible .work-tag__pin { opacity: 1; transform: scale(1); }
.work-tag.is-visible .work-tag__pin::after { animation: tagPinPulse 1.8s ease-out .3s infinite; }
@keyframes tagPinPulse { from { opacity: .7; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

.work-tag__lead {
  position: absolute; left: -.5px; bottom: 0;
  width: 1.5px; height: var(--lead);
  background: linear-gradient(to top, rgba(60,56,52,.45), rgba(60,56,52,.22));
  transform-origin: 50% 100%; transform: scaleY(0);
  transition: transform .16s cubic-bezier(.4,0,1,1);
}
.work-tag.is-visible .work-tag__lead { transform: scaleY(1); transition: transform .24s cubic-bezier(.2,.8,.2,1) .05s; }

.work-tag__card {
  position: absolute; left: -1px; bottom: var(--lead);
  width: max-content; min-width: 240px; max-width: 340px;
  background: var(--tag-paper);
  border: 1px solid rgba(45,40,35,.12);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.5),
    0 6px 16px rgba(0,0,0,.18),
    inset 0 0 60px rgba(212,180,134,.08);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .16s cubic-bezier(.4,0,1,1);
}
.work-tag.is-left .work-tag__card { left: auto; right: -1px; clip-path: inset(0 0 0 100%); }
.work-tag.is-visible .work-tag__card { 
  clip-path: inset(0 0 0 0); 
  transition: clip-path .36s cubic-bezier(.2,.8,.2,1) .15s; 
  pointer-events: auto; cursor: pointer; 
}
.work-tag__card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 10px 24px rgba(0,0,0,.24), inset 0 0 60px rgba(212,180,134,.08); 
}

.work-tag__plate {
  position: relative;
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
/* 左上角彩色圆点标记（项目色） */
.work-tag__plate::before {
  content: ""; position: absolute; left: 9px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot-color, #f4a460);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.work-tag__row {
  opacity: 0; transform: translateY(7px);
  transition: opacity .12s ease, transform .12s ease;
}
.work-tag.is-visible .work-tag__row { opacity: 1; transform: none; transition: opacity .28s ease, transform .38s cubic-bezier(.2,.8,.2,1); }
.work-tag.is-visible .work-tag__row:nth-child(1) { transition-delay: .24s; }
.work-tag.is-visible .work-tag__row:nth-child(2) { transition-delay: .29s; }
.work-tag.is-visible .work-tag__row:nth-child(3) { transition-delay: .34s; }

/* 顶部元信息行：编号 + 类型 + 英文（打字机字体） */
.work-tag__meta {
  display: flex; gap: 10px; align-items: baseline;
  font: 700 11px/1.4 "Courier New", Courier, monospace; letter-spacing: .04em;
  color: rgba(45,40,35,.65);
}
.work-tag__no { color: var(--tag-stamp); }
.work-tag__en {
  margin-left: auto; padding-left: 14px;
  font-weight: 600; letter-spacing: .08em; font-size: 10px; text-transform: uppercase; opacity: .5;
}
/* 大标题：大衬线字体 */
.work-tag__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  color: var(--tag-ink);
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
}
/* 底部行：副标题 + CTA */
.work-tag__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.work-tag__sub { 
  flex: 1; min-width: 0; 
  font-size: 12px; letter-spacing: .01em; line-height: 1.4; color: rgba(45,40,35,.7); 
}
.work-tag__cta {
  flex: none;
  font: 600 11px/1 "Courier New", Courier, monospace; letter-spacing: .06em;
  color: var(--tag-stamp); opacity: .75;
  transition: opacity .18s ease;
}
.work-tag__card:hover .work-tag__cta { opacity: 1; }

/* 换到相邻作品：文字逐行重新上浮，标题带一次 VHS 磁迹抖动 */
.work-tag__card.is-swap .work-tag__row { animation: tagRowIn .34s cubic-bezier(.2,.8,.2,1) both; }
.work-tag__card.is-swap .work-tag__row:nth-child(2) { animation: tagTracking .36s steps(6, end) both; }
.work-tag__card.is-swap .work-tag__row:nth-child(3) { animation-delay: .06s; }
@keyframes tagRowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tagTracking {
  0%   { opacity: .2; transform: translateX(-7px); clip-path: inset(0 0 55% 0); text-shadow: -3px 0 rgba(255,70,70,.7), 3px 0 rgba(70,210,255,.7); }
  35%  { opacity: 1;  transform: translateX(5px);  clip-path: inset(35% 0 0 0); text-shadow: 2px 0 rgba(255,70,70,.6), -2px 0 rgba(70,210,255,.6); }
  65%  { transform: translateX(-2px); clip-path: inset(0 0 12% 0); text-shadow: -1px 0 rgba(255,70,70,.4), 1px 0 rgba(70,210,255,.4); }
  100% { opacity: 1;  transform: none; clip-path: inset(0); text-shadow: 0 1px 10px rgba(0,0,0,.55); }
}

/* ---------------- 简化货架（不支持 WebGL 时） ---------------- */
.stage { position: absolute; inset: 0; will-change: transform; }
.stage__zoom {
  position: absolute; inset: 0;
  transition: transform .8s var(--ease-zoom), filter .8s var(--ease-zoom);
  transform-origin: 50% 50%;
}
.scene.is-zoomed .stage__zoom { transform: scale(1.12); filter: blur(5px) brightness(.5) saturate(.75); }
.scene.is-zoomed .stage { pointer-events: none; }
.shelf-rack-fallback {
  position: absolute; left: 50%; bottom: 18%; width: min(86vw, 980px);
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  padding: 0 2%;
}
.shelf-tier { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.shelf__tapes { display: flex; align-items: flex-end; justify-content: center; gap: 9px; min-height: 0; padding: 0 2px 3px; }
.shelf__board {
  height: 13px; margin-top: 4px; flex: none; border-radius: 2px;
  background: linear-gradient(#9a6541, #5c3522 72%);
  box-shadow: 0 12px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.13);
}
.shelf-tier + .shelf-tier { border-top: 1px solid rgba(255,214,156,.08); }

/* ---------------- 录像带 / 纸盒回退卡片 ---------------- */
.tape3d { perspective: 640px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; animation: riseIn .7s both; animation-delay: calc(var(--i, 0) * 55ms); -webkit-tap-highlight-color: transparent; }
.tape3d--filler { pointer-events: none; cursor: default; }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.tape { display: block; position: relative; width: clamp(24px, 4.1vw, 52px); height: clamp(58px, 18vh, 126px); transform-style: preserve-3d; transform-origin: 50% 100%; transition: transform .45s var(--ease-pop); }
.tape3d:hover .tape, .tape3d:focus-visible .tape, .tape3d:active .tape { transform: translateY(-12px) rotateY(-14deg); }
.tape__spine { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(165deg, rgba(255,255,255,.16), rgba(255,255,255,0) 34%), linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.42)), var(--c, #5a5a60); border: 1px solid rgba(0,0,0,.6); border-radius: 3px 3px 2px 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 2px 6px rgba(0,0,0,.5); overflow: hidden; }
.tape__spine .spine__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.spine__brand { flex: none; font-size: 7px; font-weight: 700; letter-spacing: .1em; text-align: center; padding: 3px 0 2px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.38); }
.spine__title { flex: 1; margin: auto 0; writing-mode: vertical-rl; text-orientation: upright; font-size: clamp(7px, .9vw, 12px); font-weight: 700; letter-spacing: .08em; color: #f2efe6; text-align: center; line-height: 1; max-height: 82%; overflow: hidden; }
.spine__meta { flex: none; text-align: center; font-size: 6px; color: rgba(255,255,255,.65); padding-bottom: 3px; font-family: Consolas, monospace; }
.spine__stripe { flex: none; height: 7%; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.5) 0 5px, transparent 5px 10px); border-top: 1px solid rgba(0,0,0,.45); }
.tape__front { position: absolute; top: 2px; bottom: 2px; left: 97%; width: 8px; transform-origin: left center; transform: rotateY(86deg); background: linear-gradient(to right, rgba(255,255,255,.12), rgba(0,0,0,.35)), var(--c, #55555b); border: 1px solid rgba(0,0,0,.55); border-radius: 0 3px 3px 0; }
.tape3d--filler .tape__spine { filter: brightness(.78) saturate(.7); background: linear-gradient(165deg, rgba(255,255,255,.12), rgba(255,255,255,0) 34%), #8f6237; }
.tape3d--filler .spine__title { visibility: hidden; }

/* 装饰录像机 */
.vcr-deco {
  position: absolute; right: -78px; bottom: 2px;
  width: 64px; height: 40px; border-radius: 4px;
  background: linear-gradient(#333338, #1c1c20);
  border: 1px solid #0d0d10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.5);
}
.vcr-deco__slot {
  position: absolute; left: 8px; top: 9px; right: 8px; height: 5px;
  background: #0a0a0c; border-radius: 2px;
  box-shadow: inset 0 1px 2px #000;
}
.vcr-deco__led {
  position: absolute; right: 9px; bottom: 7px; width: 5px; height: 5px; border-radius: 50%;
  background: #ff4b3e; box-shadow: 0 0 8px #ff4b3e;
  animation: ledBlink 2.4s steps(1) infinite;
}
@keyframes ledBlink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .25; } }
.vcr-deco__label {
  position: absolute; left: 8px; bottom: 5px;
  font-size: 7px; letter-spacing: .16em; color: #8b8b93;
}

/* ---------------- 通用按钮 ---------------- */
.btn {
  border: 1px solid var(--line); background: rgba(20,20,24,.7);
  color: var(--ink); border-radius: 8px;
  padding: 10px 18px; cursor: pointer;
  font-size: 13px; letter-spacing: .1em; font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: #4a4b52; background: rgba(30,30,36,.85); }
.btn--ghost { backdrop-filter: blur(6px); }
.btn--primary {
  background: var(--accent); color: #131313; border: none;
  font-size: 15px; font-weight: 800; padding: 14px 26px; border-radius: 10px;
  box-shadow: 0 8px 26px rgba(255, 212, 0, .22);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(255, 212, 0, .3); }
.btn--primary:disabled {
  background: #2c2d33; color: #6f7078; cursor: not-allowed;
  box-shadow: none; transform: none;
}

/* ---------------- 开带动画（翻盖克隆体） ---------------- */
#caseLayer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

.case {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  perspective: 1300px;
  animation: caseIn .5s var(--ease-pop) both;
}
@keyframes caseIn {
  from { opacity: 0; transform: translate(-50%, -44%) scale(.34) rotate(-4deg); }
  to   { opacity: 1; transform: translate(-50%, -50%)  scale(1)   rotate(0deg); }
}
.case.is-leaving { animation: caseOut .4s ease both; }
@keyframes caseOut {
  from { opacity: 1; transform: translate(-50%, -50%)  scale(1)   rotate(0deg); }
  to   { opacity: 0; transform: translate(-50%, -58%) scale(.3)  rotate(3deg); }
}

.case__shadow {
  position: absolute; left: 8%; right: 8%; bottom: -7%; height: 7%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
  filter: blur(6px);
}

/* 盒内的「磁带内脏」，盖板翻开后露出 */
.case__inside {
  position: absolute; inset: 3% 2%;
  background: linear-gradient(#1b1b1f, #131316);
  border: 1px solid #2c2d33; border-radius: 8px;
  display: flex; align-items: center; justify-content: space-evenly;
}
.reel {
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid #3f4046;
  background:
    radial-gradient(circle at 50% 50%, #26262b 0 18%, transparent 19%),
    repeating-conic-gradient(from 0deg, #23232700 0 14deg, #2e2f35 14deg 28deg);
  position: relative;
}
.reel::after {
  content: ""; position: absolute; inset: 38%;
  border-radius: 50%; background: #0c0c0e; border: 2px solid #35363c;
}

/* 左右两块盖板，各显示封面的一半 */
.case__half {
  position: absolute; top: 0; height: 100%; width: 50.5%;
  overflow: hidden; backface-visibility: hidden;
  transition: transform .68s cubic-bezier(.33, .75, .22, 1);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.case__half--l { left: 0; transform-origin: left center; border-radius: 5px 0 0 5px; }
.case__half--r { right: 0; transform-origin: right center; border-radius: 0 5px 5px 0; }
.case.is-open .case__half--l { transform: rotateY(118deg); }
.case.is-open .case__half--r { transform: rotateY(-118deg); }

.case__face { position: absolute; top: 0; height: 100%; width: 200%; }
.case__half--l .case__face { left: 0; }
.case__half--r .case__face { right: 0; }

/* 占位封面（caseLayer 里 font-size 由 JS 按盒子宽度设置，内部全用 em） */
.case__cover {
  width: 100%; height: 100%; position: relative;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.45)),
    var(--c, #4a4a50);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5em; color: #f4f1e8;
}
.case__cover .cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.cover__frame { position: absolute; inset: .7em; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; }
.cover__frame::after {
  content: ""; position: absolute; inset: .35em;
  border: 1px dashed rgba(255,255,255,.22); border-radius: 2px;
}
.cover__no {
  font-family: Consolas, monospace;
  font-size: 1.15em; letter-spacing: .5em; text-indent: .5em;
  color: rgba(255,255,255,.75);
}
.cover__title {
  font-size: 1.9em; font-weight: 800; letter-spacing: .1em;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  writing-mode: vertical-rl; text-orientation: upright;
  max-height: 62%;
}
.cover__type { font-size: .8em; letter-spacing: .2em; color: rgba(255,255,255,.8); }
.cover__brand {
  position: absolute; bottom: 1.1em;
  font-size: .7em; letter-spacing: .34em; color: rgba(255,255,255,.6);
}

/* ---------------- 策划文档层 ---------------- */
/* 3D scene container - right side when doc is open */
#sceneRoot {
  position: fixed;
  inset: 0;
  transition: left .6s ease, width .6s ease, opacity .4s ease;
}
#sceneRoot.is-split {
  left: 50%;
  width: 50%;
  opacity: 0.95;
}

.doc-view {
  position: fixed; 
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  z-index: 40;
  overflow-y: auto; overscroll-behavior: contain;
  --doc-paper: #f5f1e8;
  --doc-ink: #2d2823;
  --doc-ink-dim: #6b5f54;
  --doc-stamp: #b8382c;
  --doc-border: #d4b486;
  /* 真纸：扫描纹理铺底（裁过、低频压平，不会出现"白-黄-白"），再叠一层边缘压深 */
  background:
    radial-gradient(120% 55% at 50% -6%, rgba(255,255,255,.34), rgba(120,94,58,.12) 74%),
    url("../assets/ui/paper-doc-crop.jpg") 0 0 / 560px 560px repeat,
    linear-gradient(to bottom, #ebe6da, var(--doc-paper));
  background-blend-mode: multiply, normal, normal;
  box-shadow: inset -16px 0 28px -20px rgba(58,42,25,.6), inset 16px 0 26px -22px rgba(58,42,25,.45);
  opacity: 0; 
  transform: translateX(-100%);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  /* 滚动条收成一道纸边压痕，不要系统默认的宽条 */
  scrollbar-width: thin;
  scrollbar-color: rgba(150,118,78,.6) transparent;
}
.doc-view::-webkit-scrollbar { width: 13px; }
.doc-view::-webkit-scrollbar-track { background: transparent; }
.doc-view::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #c6a67a, #a5844f);
  background-clip: padding-box;
  border: 4px solid transparent;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(110,84,50,.42);
}
.doc-view::-webkit-scrollbar-thumb:hover { background: linear-gradient(to right, #bb9569, #8f7042); background-clip: padding-box; }
.doc-view::-webkit-scrollbar-corner { background: transparent; }
.doc-view.is-open { 
  opacity: 1; 
  transform: translateX(0);
  pointer-events: auto; 
}

/* 左侧先交给 3D 板子：正文与纸张底纹都不出现，顶上那条也去掉，
   「收回带子」缩成左半屏底部的一枚小签，编号隐藏 */
.doc-view.is-bare {
  background: none;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
}
/* 裸模式下顶部那条整条不出现：收回带子改由 3D 场景里右上角的便利贴承担 */
.doc-view.is-bare.is-open { transform: none; }
.doc-view.is-bare .doc { display: none; }
.doc-view.is-bare .doc-top { display: none; }


/* 收回带子：一枚牛皮纸标签，和纸盒、借阅卡同一套材质 */
.tape-return {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 9px;
  font-family: "Courier New", Consolas, monospace;
  color: #3b2d1e;
  background: url("../assets/ui/kraft-board.jpg") center / 170% no-repeat, #d8b98c;
  border: 1px solid rgba(126,96,58,.6);
  border-radius: 3px;
  padding: 9px 15px 10px 15px;
  box-shadow: 0 2px 0 rgba(126,96,58,.42), 0 7px 16px rgba(0,0,0,.14);
  transform: rotate(-.7deg);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
}
.tape-return::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: rgba(58,42,26,.3);
  box-shadow: inset 0 1px 1.5px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.3);
}
.tape-return__icon { font-size: 10px; opacity: .75; }
.tape-return__label { font-size: 13px; font-weight: 700; letter-spacing: .2em; }
.tape-return__sub { font-size: 9.5px; letter-spacing: .16em; color: rgba(59,45,30,.6); }
.tape-return:hover { transform: rotate(-.7deg) translateY(-2px); box-shadow: 0 4px 0 rgba(126,96,58,.42), 0 11px 22px rgba(0,0,0,.18); filter: brightness(1.03); }
.tape-return:active { transform: rotate(-.7deg) translateY(1px); box-shadow: 0 1px 0 rgba(126,96,58,.42), 0 4px 10px rgba(0,0,0,.16); }
.tape-return:focus-visible { outline: 2px dashed rgba(184,56,44,.6); outline-offset: 3px; }

/* 右半屏提示：录像带可以拖着转 */
.tape-hint {
  position: absolute; left: 75%; top: 88%; z-index: 6;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 8px 12px;
  font-family: "Courier New", Consolas, monospace;
  font-size: 11.5px; letter-spacing: .2em; color: rgba(255,246,228,.92);
  background: rgba(24,18,12,.5);
  border: 1px solid rgba(255,238,206,.22);
  border-radius: 999px;
  backdrop-filter: blur(5px);
  /* 只靠 opacity 淡出，带 backdrop-filter 的层在 Chromium 里偶尔会留一张"幽灵"在画面上
     （实测：类名早就没了，截图里还挂着那条）。补一个 visibility，让这一层真的退场。 */
  visibility: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.tape-hint.is-visible { visibility: visible; opacity: 1; transition: opacity .45s ease, visibility 0s; }
/* 借书单的引导条：压在板子（左半屏）下方 */
.stamp-hint { left: 62%; top: 91%; }
.tape-hint__icon { font-size: 13px; animation: hintSpin 3.6s ease-in-out infinite; }
@keyframes hintSpin { 0%, 58%, 100% { transform: rotate(0deg); } 76% { transform: rotate(-30deg); } 88% { transform: rotate(16deg); } }


.doc-top {
  position: sticky; top: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(rgba(245, 241, 232, .95), rgba(245, 241, 232, .75) 75%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--doc-border);
}
.doc-top__index {
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px; letter-spacing: .28em; 
  color: var(--doc-ink-dim);
  font-weight: 600;
}

.doc { 
  max-width: 900px; margin: 0 auto; 
  /* 底部留出借阅卡的高度，正文末尾不会被那张粘性卡永久压住 */
  padding: 26px clamp(16px, 4vw, 40px) 200px; 
  color: var(--doc-ink);
}

.doc-hero {
  display: grid; grid-template-columns: minmax(180px, 250px) 1fr;
  gap: clamp(18px, 3.5vw, 34px);
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--doc-border);
}
.doc-cover {
  aspect-ratio: 3 / 4; border-radius: 8px; position: relative; overflow: hidden;
  border: 2px solid var(--doc-border);
  box-shadow: 
    0 2px 0 rgba(0,0,0,.08),
    0 8px 20px rgba(0,0,0,.12),
    inset 0 0 40px rgba(212, 180, 134, .15);
  background: var(--doc-paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.doc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-cover::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(45, 40, 35, .2); border-radius: 4px;
}
.doc-cover .cover__no { 
  font-family: "Courier New", Consolas, monospace; 
  font-size: 11px; letter-spacing: .4em; 
  color: var(--doc-ink-dim); font-weight: 700;
}
.doc-cover .cover__t { 
  font-size: 21px; font-weight: 800; 
  writing-mode: vertical-rl; text-orientation: upright; 
  letter-spacing: .14em; max-height: 60%; overflow: hidden;
  color: var(--doc-ink);
}

.doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-size: 11px; letter-spacing: .1em; font-weight: 600;
  font-family: "Courier New", Consolas, monospace;
  color: var(--doc-ink-dim);
  border: 1px solid var(--doc-border); border-radius: 99px;
  padding: 5px 12px; 
  background: rgba(212, 180, 134, .08);
}
.tag--accent { 
  color: #fff; 
  background: var(--doc-stamp); 
  border-color: var(--doc-stamp); 
  font-weight: 700;
}

.doc-title {
  font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: .04em;
  line-height: 1.15; margin-bottom: 12px;
  color: var(--doc-ink);
}
.doc-title small { 
  display: block; font-size: 12px; font-weight: 700; 
  letter-spacing: .4em; 
  color: var(--doc-ink-dim); 
  margin-bottom: 8px;
  font-family: "Courier New", Consolas, monospace;
}


/* 30 秒速览条 */

/* 章节卡片 */
.chapters { display: flex; flex-direction: column; gap: 16px; }
.chapter {
  background: rgba(255, 255, 255, .7);
  border: 2px solid var(--doc-border);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 
    0 1px 0 rgba(255,255,255,.8),
    0 4px 12px rgba(0,0,0,.08);
}
.chapter h3 {
  font-size: var(--doc-heading-size, 15px); font-weight: 800; letter-spacing: .12em;
  padding-left: 12px; border-left: 4px solid var(--doc-stamp);
  margin-bottom: 12px; line-height: 1.3;
  color: var(--doc-ink);
}
.chapter p { 
  color: var(--doc-ink-dim); 
  font-size: var(--doc-body-size, 14px); line-height: 1.9; letter-spacing: .02em; 
  /* 段落首行缩进两个汉字：粘贴进来的文章不用手动敲空格，站点统一排版 */
  text-indent: 2em;
}

.chapter__img {
  aspect-ratio: 16 / 9; border-radius: 8px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(45deg, #e8e4d8 0 16px, #ddd9cd 16px 32px);
  border: 2px dashed var(--doc-border);
  display: grid; place-items: center;
  color: var(--doc-ink-dim); font-size: 13px; letter-spacing: .2em;
  font-family: "Courier New", Consolas, monospace;
}
.chapter__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter__cap { 
  margin-top: 8px; font-size: 12px; 
  color: var(--doc-ink-dim); text-align: center; letter-spacing: .1em; 
}

/* 子章（两级结构的第二级）+ 正文里的图块 */
.subchapter {
  margin: 18px 0 4px 14px;
  padding: 4px 0 4px 14px;
  border-left: 3px solid rgba(140,110,72,.35);
}
.subchapter h4 {
  font-size: calc(var(--doc-heading-size, 15px) * .86); font-weight: 800; letter-spacing: .1em;
  color: var(--doc-ink); margin-bottom: 10px; line-height: 1.4;
}
.chapter__fig { margin: 16px 0; text-align: center; }
.chapter__fig img {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  border: 1px solid rgba(0,0,0,.12); border-radius: 6px;
  background: repeating-linear-gradient(45deg, #e8e4d8 0 16px, #ddd9cd 16px 32px);
}
.chapter__fig figcaption {
  margin-top: 8px; font-size: 12px; color: var(--doc-ink-dim);
  letter-spacing: .1em;
}

.doc-foot {
  margin-top: 40px; text-align: center;
  font-size: 12px; letter-spacing: .4em; 
  color: var(--doc-ink-dim);
  font-family: "Courier New", Consolas, monospace;
}

/* 借阅卡：做旧卡纸，横向压出借书卡的格线，右下角是待盖的章 */
.lending-card {
  position: sticky; bottom: 0; left: 0; right: 0;
  margin: 68px auto 0; max-width: 900px;
  background: url("../assets/ui/aged-card-crop.jpg") 0 0 / 420px 420px repeat, var(--doc-paper);
  border: 1px solid rgba(150,118,78,.5);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 4vw, 34px) clamp(20px, 3vw, 30px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 -10px 26px rgba(0,0,0,.17);
}
.lending-card::before { /* 左侧打孔 */
  content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: rgba(58,42,26,.22);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.32);
}
.lending-card__grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 16px;
  /* 借书卡那样的横向格线 */
  background-image: repeating-linear-gradient(to bottom, transparent 0 26px, rgba(120,92,58,.16) 26px 27px);
  background-position: 0 6px;
  padding-bottom: 4px;
}
.lending-card__field {
  display: flex; align-items: baseline; gap: 6px;
}
.lending-card__label {
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  color: var(--doc-ink-dim);
  white-space: nowrap;
}
.lending-card__value {
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--doc-ink);
  border-bottom: 1px solid rgba(150,118,78,.55);
  flex: 1; min-width: 60px;
  min-height: 19px;
}

/* 已借出的章：生成好的红色印痕 + 字，多乘（multiply）叠在卡纸纹理上 */
.lending-card__stamp {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(16px, 3vw, 28px);
  width: 104px; height: 104px;
  display: grid; place-items: center;
  opacity: 0;
  transform: rotate(-9deg);
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity .14s linear;
}
.lending-card__stamp img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  opacity: .95;
  filter: saturate(.95);
}
.lending-card__stamp-text {
  position: relative;
  font-family: "Courier New", Consolas, monospace;
  font-size: 15px; font-weight: 800; letter-spacing: .16em;
  color: #b03024;
  text-align: center; line-height: 1.12;
  transform: rotate(-1deg);
}
.lending-card__stamp.is-stamped { opacity: 1; transform: rotate(-9deg) scale(1); }

/* 图章本体：拖到卡上盖下去 */
.stamp-tool {
  position: absolute;
  left: clamp(18px, 4vw, 44px);
  bottom: clamp(16px, 3vw, 28px);
  width: 62px; height: 76px;
  cursor: grab; touch-action: none;
  transform: rotate(-7deg) translateZ(0);
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.3));
  transition: transform .2s ease, filter .2s ease;
  z-index: 9;
}
.stamp-tool:hover { transform: rotate(-7deg) translateY(-3px); filter: drop-shadow(0 11px 16px rgba(0,0,0,.34)); }
.stamp-tool.is-dragging { cursor: grabbing; transition: none; filter: drop-shadow(0 20px 26px rgba(0,0,0,.4)); }
.stamp-tool__handle {
  position: absolute; left: 50%; top: 0; width: 34px; height: 27px; margin-left: -17px;
  border-radius: 13px 13px 4px 4px;
  background: linear-gradient(180deg, #bd8b53, #8a5f34);
  box-shadow: inset 0 2px 0 rgba(255,224,186,.4), inset 0 -3px 7px rgba(0,0,0,.32);
}
.stamp-tool__neck {
  position: absolute; left: 50%; top: 24px; width: 13px; height: 12px; margin-left: -6.5px;
  background: linear-gradient(180deg, #7f5b35, #5f4123);
  border-radius: 0 0 3px 3px;
}
.stamp-tool__body {
  position: absolute; left: 50%; top: 34px; width: 58px; height: 38px; margin-left: -29px;
  border-radius: 9px 9px 5px 5px;
  background: linear-gradient(180deg, #cda87c, #a07c4e);
  box-shadow: inset 0 2px 0 rgba(255,242,220,.45), inset 0 -5px 9px rgba(0,0,0,.3), 0 2px 0 rgba(88,64,38,.45);
}
.stamp-tool__body::after {
  content: ""; position: absolute; left: 5px; right: 5px; bottom: -6px; height: 8px;
  border-radius: 3px;
  background: linear-gradient(#b8382c, #8b2317);
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.lending-card__note {
  margin-top: 12px;
  font-family: "Courier New", Consolas, monospace;
  font-size: 10.5px; letter-spacing: .18em;
  color: rgba(107,95,84,.85);
}
.lending-card.is-stamped .lending-card__note { opacity: 0; }
.lending-card.is-target {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 -10px 26px rgba(0,0,0,.17), 0 0 0 3px rgba(184,56,44,.18);
}
.lending-card.is-thumped::after { animation: cardThump .42s ease; }
.lending-card::after { /* 盖章那一下的「闷一下」，不动布局也不动 transform */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 100%, rgba(90,64,38,.2), rgba(90,64,38,0) 62%);
  opacity: 0; pointer-events: none;
}
@keyframes cardThump {
  0% { opacity: 0; }
  24% { opacity: 1; }
  100% { opacity: 0; }
}

/* 30 秒速览的正文 */

.lending-card__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--doc-border);
}
.lending-card__title {
  font-family: "Courier New", Consolas, monospace;
  font-size: 13px; font-weight: 700; letter-spacing: .3em;
  color: var(--doc-ink);
}
.lending-card__no {
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  color: var(--doc-ink-dim);
}
.lending-card__grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 16px;
}

/* 放映申请单那一套（纸条 + 投片口）已经取消：借阅卡本身就是借出→放映的开关 */


/* ---------------- VHS 噪波转场 ---------------- */
.vhs {
  position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%;
  opacity: 0; transition: opacity .13s linear;
  pointer-events: none;
  image-rendering: pixelated;
}
.vhs.is-on { opacity: 1; }

/* ---------------- VCR 播放视图 ---------------- */
.vcr-view {
  position: fixed; inset: 0; z-index: 50;
  background:
    radial-gradient(1200px 700px at 50% 30%, #0b0b0d, #050506 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.vcr-view.is-open { opacity: 1; pointer-events: auto; }

.vcr__osd {
  position: absolute; z-index: 4;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(15px, 2.2vw, 21px); font-weight: 700; letter-spacing: .22em;
  color: #d9e8dc; text-shadow: 0 0 12px rgba(180, 255, 200, .45);
}
.vcr__osd--tl { top: clamp(18px, 4vh, 40px); left: clamp(20px, 4vw, 52px); }
.vcr__osd--tr { top: clamp(18px, 4vh, 40px); right: clamp(20px, 4vw, 52px); }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.vcr__frame { width: min(1080px, 92vw); aspect-ratio: 16 / 9; background: #000; border: 1px solid #232327; border-radius: 6px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px #000, 0 30px 90px rgba(0,0,0,.65); }
.vcr__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
}
.device-stage { position: absolute; inset: 0; display: none; }
.device-stage.is-ready { display: block; }
.device-stage canvas { display: block; width: 100%; height: 100%; }
.vcr__media-frame { position: absolute; inset: 0; z-index: 2; }
.vcr__media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcr__media-frame .vcr__placeholder { position: absolute; inset: 0; }

.vcr__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: repeating-linear-gradient(45deg, #101013 0 22px, #0b0b0e 22px 44px);
  color: var(--ink-dim);
}
.vcr__ph-icon {
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid #3a3b42; display: grid; place-items: center;
  font-size: 26px; color: #6f7078;
}
.vcr__ph-title { font-size: 16px; font-weight: 700; letter-spacing: .24em; color: #a3a49c; }
.vcr__ph-sub { font-size: 12px; letter-spacing: .12em; color: var(--ink-faint); }

.vcr__ctrl {
  display: flex; align-items: center; gap: 14px;
  font-family: Consolas, monospace; font-size: 12px; color: #8d8e96;
  letter-spacing: .12em; width: min(1080px, 92vw);
}
.vcr__track {
  flex: 1; height: 4px; border-radius: 2px; background: #232327; position: relative;
}
.vcr__head {
  position: absolute; left: 8%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(255,212,0,.5);
}
.vcr__eject { margin-top: 4px; }
/* ▶ / ⏸ 现在真的能点 */
.vcr__ctrl span[id] {
  cursor: pointer; user-select: none;
  font-size: 17px; line-height: 1;
  color: #d8d9e2;
  padding: 3px 6px; border-radius: 3px;
  transition: color .2s ease, background .2s ease, transform .15s ease;
}
.vcr__ctrl span[id]:hover { color: #14141a; background: var(--accent); transform: translateY(-1px); }
/* 完整版外链：实心 accent，别再是灰按钮 */
.vcr__full {
  text-decoration: none; display: inline-block;
  color: #1a1408 !important;
  background: var(--accent) !important;
  border-color: rgba(0,0,0,.25) !important;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(150,120,0,.45), 0 6px 14px rgba(0,0,0,.25) !important;
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 760px) {
  body { overflow: auto; }
  body.mode-3d { overflow: hidden; }
  .hud { flex-direction: column; gap: 12px; padding: 16px 18px; }
  .hud__hint { font-size: 11px; padding: 6px 12px; }
  .scene { position: static; min-height: 100svh; overflow: visible; }
  body.mode-3d .scene { position: fixed; inset: 0; min-height: 0; overflow: hidden; }
  .stage { position: static; }
  .stage__zoom { position: static; }
  .shelf-rack-fallback { width: 94vw; bottom: 14%; }
  .shelf__tapes { gap: 3px; }
}

/* 动画敏感用户 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- 开机页（加载完成前盖住场景） ---------------- */
.boot {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: radial-gradient(1200px 700px at 50% 42%, #0d0d10, #050506 78%);
  color: #e8e6df;
  font-family: "Courier New", Consolas, monospace;
  transition: opacity .5s ease;
}
.boot.is-done { opacity: 0; pointer-events: none; }
.boot__grain, .boot__scan { position: absolute; inset: 0; pointer-events: none; }
.boot__grain {
  opacity: .16;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  animation: bootGrain .5s steps(3) infinite;
}
@keyframes bootGrain { 0% { transform: translateY(0); } 100% { transform: translateY(-3px); } }
.boot__scan {
  background: linear-gradient(rgba(255,212,0,.06), transparent 42%);
  height: 38%; bottom: auto;
  animation: bootScan 2.6s linear infinite;
}
@keyframes bootScan { 0% { transform: translateY(-40%); } 100% { transform: translateY(300%); } }
.boot__inner { position: relative; z-index: 2; width: min(460px, 82vw); }
.boot__brand {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: .22em; margin-bottom: 26px;
}
.boot__brand span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .35em; color: #8d8e96; margin-top: 4px; }
.boot__row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; letter-spacing: .16em; }
.boot__rec { color: #ffd400; animation: bootBlink 1.1s steps(2) infinite; font-size: 15px; }
@keyframes bootBlink { 50% { opacity: .18; } }
.boot__text { flex: 1; }
.boot__pct { color: #ffd400; font-weight: 700; }
.boot__bar { height: 4px; margin: 12px 0 14px; background: #232327; border-radius: 2px; overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b3892f, #ffd400); transition: width .18s linear; }
.boot__hint { font-size: 11px; letter-spacing: .18em; color: #6f7078; }
.boot.is-error .boot__text { color: #ff8a7a; }

/* ---------------- 放映区：只留底部一条控制条（不再套一层录像机 UI） ----------------
   展示架和放映区现在是同一个 3D 房间的两个方向，摄像机摇过去就是了，
   所以不需要全屏黑幕、也不需要假的 PLAY/时间/进度条外壳。 */
.stage-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
  display: flex; justify-content: center;
  padding: 0 20px 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.stage-bar.is-open { opacity: 1; pointer-events: auto; }
.stage-bar__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: rgba(18,16,14,.72);
  border: 1px solid rgba(255,238,206,.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-family: "Courier New", Consolas, monospace;
}

/* 原件阅读控制条：HTML 浮在【纸的正下方】（纸下沿之外那块板面），整条位置由 JS 算 */
/* 容器只是个开关：三颗按钮各自 fixed 到 3D 算出来的位置（纸的下方） */
.doc-bar {
  position: fixed; left: 0; top: 0;
  z-index: 45;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.doc-bar > * { position: fixed; }
.doc-bar.is-open { opacity: 1; pointer-events: auto; }

#docPageNum {
  font-family: "Courier New", Consolas, monospace;
  font-size: 13px; letter-spacing: .12em; color: #f4ecd2;
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
  white-space: nowrap;
  display: flex; align-items: center;
}

.btn--paper {
  background: linear-gradient(135deg, #e8d87a 0%, #d4c056 100%);
  color: #3a2f1c;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  border: none; border-radius: 6px; padding: 0 13px; height: 34px;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--paper:hover { 
  background: linear-gradient(135deg, #f6ec9e 0%, #e4d472 100%);
  transform: translateY(-1px); 
  box-shadow: 0 5px 14px rgba(0,0,0,.6);
}
.btn--paper:active { 
  transform: translateY(0); 
  background: linear-gradient(135deg, #d0c060 0%, #bca848 100%);
}
/* 不可点：仍然是"同一颗按钮"的实心样式，只是整颗压暗 —— 不要半透明，
   半透明叠在深色木头上会变成一团发灰的色块，和旁边两颗对不上（用户："颜色不统一"）。 */
.btn--paper:disabled { 
  background: linear-gradient(135deg, #9d9257 0%, #8a7f47 100%);
  color: rgba(58, 47, 28, 0.55);
  cursor: not-allowed; 
  transform: none; 
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.stage-bar__inner #vcrDur { color: #ffd400; font-weight: 700; }
.vcr__media-frame {
  position: fixed; inset: 0; z-index: 45;
  background: #050506;
}
.vcr__media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcr__media-frame[hidden] { display: none; }

/* 电视下方那条外链：直接显示链接本身，超长用省略号截断，不撑破布局 */
#vcrFull{max-width:44ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}

@keyframes insertPulse {
  0%, 100% { transform: scale(.94); }
  50% { transform: scale(1.06); }
}

/* 带子在外面的时候，时间码和 ▶ ⏸ 先不露 —— 信息越少，眼睛越知道该点哪儿 */
#vcrView.is-out #vcrPlay,
#vcrView.is-out #vcrPause,
#vcrView.is-out #vcrDur { display: none; }
#insertBtn[hidden] { display: none; }
#insertBtn { padding: 11px 22px; border-radius: 999px; }
.vcr__note { color: #ffd400; opacity: .92; }
.vcr__note[hidden] { display: none; }
