/* ============================================================
   秦腔数字人智能交互平台 — 样式表 v4（梨园长卷 · 交互式画卷）
   泛黄宣纸 / 书法大字 / 点景入画 / 夜景 · 时雨 · 行舟 · 过船
   主色：棕 + 墨 + 朱印 · 点缀：描金 + 青绿远山 · 字体：思源宋体
   ============================================================ */

:root {
  --ink: #2f2416;
  --ink-soft: #5a4630;
  --brown-dark: #54371c;
  --brown: #7a5533;
  --brown-mid: #9a744e;
  --paper: #f3e6cb;
  --paper-2: #e9d9b8;
  --paper-3: #f8efdc;
  --gold: #b8891a;
  --gold-soft: #d8b95c;
  --cinnabar: #a63a2b;
  --jade: #5f8a6a;
  --line: rgba(84, 55, 28, 0.32);
  --shadow: 0 14px 38px rgba(58, 42, 20, 0.28);
  --font: "Noto Serif SC", "Source Han Serif SC", "思源宋体", "STSong", "SimSun", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 12% -8%, rgba(216, 185, 92, 0.16), transparent 46%),
    radial-gradient(110% 55% at 92% 4%, rgba(122, 85, 51, 0.14), transparent 50%),
    linear-gradient(172deg, #f6ecd6 0%, #f0e2c2 34%, #e9d9b6 66%, #e2cfa6 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ================= 画卷动态背景 ================= */
#ink-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#ink-trail {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

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

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 88, 44, 0.02) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(92deg, rgba(120, 88, 44, 0.018) 0 2px, transparent 2px 5px),
    radial-gradient(circle at 22% 16%, rgba(255, 250, 232, 0.4) 0, transparent 42%),
    radial-gradient(circle at 84% 86%, rgba(166, 58, 43, 0.045) 0, transparent 38%);
}

/* ---- 远山：青绿 + 水墨，只在画卷里 ---- */
.mount { position: absolute; left: -6%; right: -6%; filter: blur(0.6px); }

.m-far {
  bottom: -4%;
  height: 50%;
  opacity: 0.5;
  background-image:
    radial-gradient(40% 90% at 8% 100%, rgba(95, 138, 106, 0.42), transparent 70%),
    radial-gradient(52% 94% at 50% 100%, rgba(122, 158, 130, 0.36), transparent 68%),
    radial-gradient(38% 82% at 90% 100%, rgba(95, 138, 106, 0.4), transparent 70%);
  animation: driftX 52s ease-in-out infinite alternate;
}

.m-mid {
  bottom: -2%;
  height: 34%;
  opacity: 0.55;
  background-image:
    radial-gradient(32% 84% at 6% 100%, rgba(84, 122, 94, 0.55), transparent 72%),
    radial-gradient(46% 92% at 44% 100%, rgba(64, 96, 74, 0.5), transparent 70%),
    radial-gradient(30% 76% at 80% 100%, rgba(84, 118, 92, 0.5), transparent 72%);
  animation: driftX 64s ease-in-out infinite alternate-reverse;
}

.m-near {
  bottom: 0;
  height: 20%;
  opacity: 0.75;
  background-image:
    radial-gradient(28% 92% at 14% 100%, rgba(47, 36, 22, 0.34), transparent 70%),
    radial-gradient(42% 100% at 60% 100%, rgba(47, 36, 22, 0.4), transparent 72%);
}

@keyframes driftX {
  from { transform: translateX(-2%) scale(1.02); }
  to { transform: translateX(2%) scale(1.06); }
}

/* ---- 河面 ---- */
.river {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 3%;
  height: 9%;
  opacity: 0.6;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
}

.river-flow {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg,
    rgba(95, 138, 106, 0.16) 0 26px, transparent 26px 58px,
    rgba(47, 36, 22, 0.1) 58px 84px, transparent 84px 122px);
  animation: riverMove 9s linear infinite;
}

@keyframes riverMove {
  from { transform: translateX(0); }
  to { transform: translateX(-140px); }
}

/* ---- 行舟 ---- */
.boat {
  position: absolute;
  left: 24%;
  bottom: 4.4%;
  width: 130px;
  height: 34px;
  opacity: 0.85;
  transition: opacity 0.6s ease;
}

.boat-hull {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 15px;
  border-radius: 46% 46% 18% 18% / 88% 88% 34% 34%;
  background: linear-gradient(180deg, #7a5533, #4e341b);
  box-shadow: 0 5px 10px rgba(47, 36, 22, 0.3);
}

.boat-hull::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 3px;
  width: 12px;
  height: 10px;
  border-radius: 50%;
  background: #4e341b;
}

.boat-pole {
  position: absolute;
  left: 44px;
  bottom: 14px;
  width: 3px;
  height: 26px;
  background: linear-gradient(180deg, rgba(84, 55, 28, 0.85), rgba(84, 55, 28, 0.4));
  transform-origin: bottom;
  animation: poleDip 2.6s ease-in-out infinite;
}

@keyframes poleDip {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}

body.boating .boat {
  animation: boatDrift 14s ease-in-out infinite alternate;
}

@keyframes boatDrift {
  from { transform: translateX(-3vw); }
  to { transform: translateX(4vw); }
}

body.crossing .boat {
  animation: boatCross 4.4s cubic-bezier(0.35, 0.1, 0.25, 1) 1 forwards;
}

@keyframes boatCross {
  0% { transform: translateX(-8vw) rotate(0deg); opacity: 0.9; }
  30% { transform: translateX(2vw) rotate(-2.5deg); }
  60% { transform: translateX(8vw) rotate(1.6deg); }
  100% { transform: translateX(120vw) rotate(0deg); opacity: 0.5; }
}

/* ---- 行云与飞鹤 ---- */
.clouds {
  position: absolute;
  height: 24%;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}

.clouds::before, .clouds::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.c1 { left: 5%; top: 12%; width: 300px; background: rgba(248, 239, 220, 0.5); animation: cloudFloat 46s ease-in-out infinite alternate; }
.c1::before { width: 180px; height: 60%; top: -30%; left: 30px; }
.c1::after { width: 220px; height: 70%; top: 40%; left: 120px; }

.c2 { right: 4%; top: 28%; width: 360px; background: rgba(248, 239, 220, 0.42); animation: cloudFloat 58s ease-in-out infinite alternate-reverse; }
.c2::before { width: 200px; height: 55%; top: -28%; left: 60px; }
.c2::after { width: 260px; height: 65%; top: 42%; left: 140px; }

@keyframes cloudFloat {
  from { transform: translateX(-3%); }
  to { transform: translateX(3.4%); }
}

.crane {
  position: absolute;
  width: 54px;
  height: 34px;
  opacity: 0.6;
  background-image: radial-gradient(10px 7px at 20% 60%, #4e3a22 98%, transparent),
    radial-gradient(10px 7px at 80% 60%, #4e3a22 98%, transparent),
    radial-gradient(30px 12px at 50% 100%, #4e3a22 98%, transparent);
  filter: blur(0.4px);
  animation: craneFly 26s linear infinite;
}

.c3 { left: 16%; top: 18%; animation-delay: 0s; }
.c4 { right: 20%; top: 40%; animation-delay: -13s; transform: scale(0.8); }

@keyframes craneFly {
  0% { transform: translateX(0) translateY(0) scaleX(1); }
  45% { transform: translateX(120px) translateY(-46px) scaleX(1); }
  55% { transform: translateX(120px) translateY(-46px) scaleX(-1); }
  100% { transform: translateX(0) translateY(0) scaleX(-1); }
}

/* ---- 夜景层 ---- */
.night-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.6s ease, visibility 1.6s ease;
}

body.night .night-layer { opacity: 1; visibility: visible; }

.night-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(178deg, rgba(24, 32, 56, 0.66), rgba(16, 22, 42, 0.58) 58%, rgba(20, 28, 46, 0.62));
}

.night-lamp {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 130, 0.85), rgba(255, 170, 90, 0.35) 46%, transparent 72%);
  filter: blur(1px);
  opacity: 0;
  transition: opacity 1.4s ease 0.3s;
  animation: lampFlicker 3.4s ease-in-out infinite;
}

body.night .night-lamp { opacity: 1; }

.l1 { left: 12%; top: 30%; }
.l2 { right: 16%; top: 38%; animation-delay: -1.1s; }
.l3 { left: 46%; top: 64%; animation-delay: -2.2s; width: 56px; height: 56px; }

@keyframes lampFlicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ---- 时雨层 ---- */
.rain-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

body.rain .rain-layer { opacity: 1; visibility: visible; }

.drop {
  position: absolute;
  top: -8%;
  width: 2px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(47, 36, 22, 0.42));
  transform: rotate(14deg);
  animation: rainFall linear infinite;
}

.d1 { left: 6%; animation-duration: 1.6s; animation-delay: 0s; }
.d2 { left: 18%; animation-duration: 2.1s; animation-delay: 0.3s; height: 52px; }
.d3 { left: 30%; animation-duration: 1.4s; animation-delay: 0.7s; }
.d4 { left: 42%; animation-duration: 1.9s; animation-delay: 0.15s; height: 58px; }
.d5 { left: 53%; animation-duration: 1.7s; animation-delay: 0.55s; }
.d6 { left: 63%; animation-duration: 2.2s; animation-delay: 0.05s; height: 48px; }
.d7 { left: 72%; animation-duration: 1.5s; animation-delay: 0.4s; }
.d8 { left: 80%; animation-duration: 2.0s; animation-delay: 0.85s; height: 56px; }
.d9 { left: 88%; animation-duration: 1.8s; animation-delay: 0.2s; }
.d10 { left: 24%; animation-duration: 1.5s; animation-delay: 0.95s; height: 44px; }
.d11 { left: 58%; animation-duration: 1.3s; animation-delay: 0.6s; height: 60px; }
.d12 { left: 95%; animation-duration: 1.9s; animation-delay: 0.12s; height: 50px; }

@keyframes rainFall {
  from { transform: translateY(-12vh) rotate(14deg); }
  to { transform: translateY(112vh) rotate(14deg); }
}

/* ================= 顶栏导航 ================= */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 26px;
  background: linear-gradient(180deg, rgba(243, 230, 203, 0.92), rgba(243, 230, 203, 0.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--brown-dark);
  flex: none;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 26px;
}

.nav-link {
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

.nav-visit {
  flex: none;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-visit b {
  font-size: 16px;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: right;
}

/* ================= 卷首标题 ================= */
.scroll-head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 54px;
  animation: headFade 1.6s ease both;
}

@keyframes headFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.head-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.orn-rule {
  width: min(200px, 26vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  animation: ruleGrow 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ruleGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.head-seal {
  width: 46px;
  height: 46px;
  line-height: 46px;
  border-radius: 9px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-size: 23px;
  box-shadow: 0 4px 18px rgba(166, 58, 43, 0.4), inset 0 0 0 2px rgba(253, 246, 232, 0.42);
}

.main-title {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: inline-block;
  text-shadow: 0 2px 0 rgba(248, 239, 220, 0.9), 0 6px 22px rgba(84, 55, 28, 0.28);
}

.sub-title {
  margin-top: 16px;
  font-size: 14.5px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--brown-mid);
}

.head-verse {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ink-soft);
  opacity: 0.82;
}

.scroll-hint {
  margin-top: 42px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--cinnabar);
  animation: hintBob 1.8s ease-in-out infinite;
}

@keyframes hintBob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ================= 章节通用 ================= */
.chapter {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px 30px;
  opacity: 0;
  transform: translateY(52px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chapter.revealed { opacity: 1; transform: translateY(0); }

.chapter-rule {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.ch-num {
  font-size: 34px;
  color: var(--cinnabar);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(166, 58, 43, 0.3);
}

.ch-name {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink);
}

.ch-en {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--brown-mid);
  align-self: center;
  border-bottom: 1px solid rgba(122, 85, 51, 0.45);
  padding-bottom: 3px;
}

/* ================= 壹 · 换装间 ================= */
.dressup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

/* ---- 3D 换装舞台 ---- */
.figure-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  perspective: 1200px;
  width: min(430px, 92%);
}

.figure-frame {
  position: relative;
  width: min(400px, 88%);
  padding: 9px;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--gold-soft), var(--brown-mid) 46%, var(--brown) 130%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(248, 239, 220, 0.5);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s ease;
}

.figure-img-holder {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #efe3c8, #e4d2ac);
}

/* 背景氛围层（水墨场景装饰：边缘意境，不遮人物） */
.backdrop-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 12px;
  pointer-events: none;
  opacity: 1;
  transition: background 0.7s ease, opacity 0.6s ease;
}
/* 寒梅：一枝斜出，右下 */
.backdrop-layer.bg-mei { background:
  radial-gradient(80% 55% at 70% 78%, rgba(196, 130, 122, 0.16), transparent 68%),
  url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20533'%20preserveAspectRatio='xMaxYMax%20meet'%3E%3Cpath%20d='M-20%20560%20C%20120%20480,%20200%20420,%20420%20260'%20fill='none'%20stroke='%234a3520'%20stroke-width='6'/%3E%3Cpath%20d='M240%20380%20C%20300%20330,%20330%20300,%20360%20280'%20fill='none'%20stroke='%234a3520'%20stroke-width='3'/%3E%3Cg%20fill='%23c14b3e'%3E%3Ccircle%20cx='370'%20cy='250'%20r='12'/%3E%3Ccircle%20cx='330'%20cy='330'%20r='10'/%3E%3Ccircle%20cx='270'%20cy='400'%20r='11'/%3E%3Ccircle%20cx='350'%20cy='290'%20r='8'/%3E%3C/g%3E%3Cg%20fill='%23e8847a'%3E%3Ccircle%20cx='372'%20cy='246'%20r='5'/%3E%3Ccircle%20cx='332'%20cy='326'%20r='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/cover; }
/* 翠竹：左侧两竿，清影 */
.backdrop-layer.bg-zhu { background:
  radial-gradient(80% 55% at 22% 60%, rgba(108, 148, 98, 0.14), transparent 70%),
  url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20533'%20preserveAspectRatio='xMinYMid%20meet'%3E%3Cg%20stroke='%233f6b38'%20fill='none'%20stroke-width='7'%3E%3Cpath%20d='M40%20560%20L70%2040'/%3E%3Cpath%20d='M120%20560%20L160%2030'/%3E%3C/g%3E%3Cg%20stroke='%233f6b38'%20fill='none'%20stroke-width='3'%3E%3Cpath%20d='M70%20120%20L40%20170%20M70%20250%20L40%20300%20M70%20380%20L40%20430'/%3E%3Cpath%20d='M160%20140%20L120%20190%20M160%20270%20L120%20320%20M160%20400%20L120%20450'/%3E%3C/g%3E%3Cg%20fill='%235d9452'%3E%3Cellipse%20cx='158'%20cy='150'%20rx='16'%20ry='40'/%3E%3Cellipse%20cx='58'%20cy='270'%20rx='16'%20ry='40'/%3E%3Cellipse%20cx='148'%20cy='420'%20rx='16'%20ry='40'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/cover; }
/* 月夜：右上圆月疏星，远山横黛 */
.backdrop-layer.bg-yue { background:
  radial-gradient(85% 60% at 78% 18%, rgba(38, 52, 96, 0.14), transparent 72%),
  url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20533'%20preserveAspectRatio='xMaxYMin%20meet'%3E%3Ccircle%20cx='330'%20cy='80'%20r='36'%20fill='%23f3ead0'/%3E%3Ccircle%20cx='330'%20cy='80'%20r='36'%20fill='none'%20stroke='%23d9c98f'%20stroke-width='1.2'/%3E%3Cg%20fill='%23e6dcb8'%3E%3Ccircle%20cx='317'%20cy='71'%20r='3.2'/%3E%3Ccircle%20cx='346'%20cy='92'%20r='2.6'/%3E%3Ccircle%20cx='330'%20cy='61'%20r='2.2'/%3E%3C/g%3E%3Cg%20fill='%238b96b8'%3E%3Ccircle%20cx='280'%20cy='140'%20r='2.6'/%3E%3Ccircle%20cx='362'%20cy='152'%20r='2'/%3E%3Ccircle%20cx='300'%20cy='182'%20r='1.8'/%3E%3Ccircle%20cx='252'%20cy='104'%20r='1.8'/%3E%3C/g%3E%3Cpath%20d='M-20%20300%20C%20120%20260,%20200%20290,%20430%20230%20L%20430%20320%20L%20-20%20320%20Z'%20fill='%234c5a86'%20opacity='0.5'/%3E%3Cpath%20d='M-20%20380%20C%20140%20340,%20260%20360,%20430%20320%20L%20430%20533%20L%20-20%20533%20Z'%20fill='%233d4a73'%20opacity='0.45'/%3E%3C/svg%3E") no-repeat center/cover; }
/* 楼台：檐影层叠，宫灯初上 */
.backdrop-layer.bg-lou { background:
  radial-gradient(85% 55% at 50% 90%, rgba(196, 148, 60, 0.16), transparent 70%),
  url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20533'%20preserveAspectRatio='xMaxYMax%20meet'%3E%3Cpath%20d='M-20%20420%20L60%20396%20L80%20396%20L80%20340%20L120%20340%20L120%20396%20L300%20396%20L300%20340%20L340%20340%20L340%20396%20L360%20396%20L430%20372%20L430%20430%20L-20%20430%20Z'%20fill='%238a6a3a'%20opacity='0.6'/%3E%3Cpath%20d='M-20%20454%20L430%20454%20L430%20472%20L-20%20472%20Z'%20fill='%237a5c30'%20opacity='0.58'/%3E%3Cpath%20d='M-20%20480%20L430%20480%20L430%20496%20L-20%20496%20Z'%20fill='%236b4f28'%20opacity='0.56'/%3E%3Cpath%20d='M140%20396%20L140%20360%20L152%20360%20L152%20396%20M288%20396%20L288%20360%20L300%20360%20L300%20396'%20stroke='%235c421f'%20stroke-width='6'/%3E%3Ccircle%20cx='200'%20cy='332'%20r='5'%20fill='%23f3ead0'%20opacity='0.85'/%3E%3C/svg%3E") no-repeat center/cover; }

/* 妆容层：真实戏曲妆面（眉 / 眼影 / 腮红 / 唇 / 花钿），叠加在人物面部 */
.makeup-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: 12px; }

#main-figure-img {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 道具层 */
.props-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
}
.prop-item {
  position: absolute;
  left: 72%;
  top: 52%;
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgba(47, 36, 22, 0.38));
  transform-origin: center;
  user-select: none;
}
.hua-dian {
  position: absolute;
  left: 50%;
  top: 37%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #e8747a, #b03a40 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hua-dian.on { opacity: 0.85; }

.stage-spot {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  height: 120%;
  background:
    radial-gradient(42% 24% at 50% 0%, rgba(255, 248, 226, 0.5), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(5px);
  animation: spotPulse 4.6s ease-in-out infinite;
}

@keyframes spotPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.stage-floor {
  position: relative;
  width: min(420px, 92%);
  height: 46px;
  margin-top: -8px;
  background: radial-gradient(50% 60% at 50% 12%, rgba(122, 85, 51, 0.42), transparent 72%);
  border-radius: 50%;
  transform: rotateX(72deg) translateZ(-30px);
  transform-style: preserve-3d;
}

.floor-glow {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 62%;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 50%, rgba(216, 185, 92, 0.55), transparent 75%);
  filter: blur(2px);
  animation: floorBreath 3.6s ease-in-out infinite;
}

@keyframes floorBreath {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.25); }
}

.figure-img-holder {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #efe3c8, #e4d2ac);
}

.figure-img-holder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 52% at 50% 8%, transparent 40%, rgba(84, 55, 28, 0.3) 100%);
  pointer-events: none;
}

.figure-img-holder img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.figure-img-holder.swapping img { opacity: 0; transform: scale(1.04); }

.fig-card {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  text-align: center;
  background: linear-gradient(180deg, rgba(47, 36, 22, 0.85), rgba(47, 36, 22, 0.62));
  border: 1px solid rgba(216, 185, 92, 0.55);
  border-radius: 12px;
  padding: 8px 22px;
  z-index: 2;
}

.fig-name { font-size: 23px; font-weight: 700; letter-spacing: 0.5em; text-indent: 0.5em; color: #f8efdc; }

.fig-role { margin-top: 3px; font-size: 12.5px; letter-spacing: 0.12em; color: var(--gold-soft); }

.fig-bubble {
  position: relative;
  width: min(520px, 92%);
  margin: 0 auto;
  padding: 14px 18px 14px 54px;
  background: linear-gradient(180deg, rgba(248, 239, 220, 0.96), rgba(233, 217, 184, 0.92));
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  min-height: 70px;
  box-shadow: var(--shadow);
}

.bubble-seal {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 6px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-size: 13px;
}

.wardrobe { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 1040px; margin: 0 auto; align-items: center; }

.wardrobe-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 16px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ink);
}

.wr-line { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.wardrobe-title .wr-line:last-child { transform: scaleX(-1); }

/* ---- 换装面板：分类标签 + 素材横滑条 ---- */
.dress-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.dt-tab {
  border: 1px solid var(--line);
  background: rgba(248, 239, 220, 0.9);
  color: var(--brown-dark);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13.5px;
  letter-spacing: 0.18em;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dt-tab:hover { border-color: var(--gold); }

.dt-tab.active {
  background: linear-gradient(160deg, var(--gold), var(--brown));
  color: #fdf6e8;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(184, 137, 26, 0.4);
}

.material-rack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  padding: 10px 2px 16px;
}

.mat-card {
  position: relative;
  width: 150px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-3);
  border: 1.5px solid rgba(122, 85, 51, 0.3);
  box-shadow: 0 10px 22px rgba(58, 42, 20, 0.18);
  font-family: var(--font);
  transition: all 0.28s ease;
}

/* 卡片轻错落，摆脱呆板一排 */
.mat-card:nth-child(odd) { transform: rotate(-1.1deg); }
.mat-card:nth-child(even) { transform: rotate(1.1deg); }

.mat-card:hover { transform: translateY(-6px) rotate(0deg); border-color: var(--gold); }

.mat-card.active {
  border-color: var(--cinnabar);
  box-shadow: 0 14px 30px rgba(58, 42, 20, 0.26), 0 0 0 2.5px rgba(166, 58, 43, 0.5);
  transform: translateY(-6px) rotate(0deg);
}

.material-hint {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--brown-mid);
  opacity: 0.82;
  margin: -6px 0 4px;
}

.mc-mark {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  text-align: center;
  background: rgba(47, 36, 22, 0.6);
  color: var(--gold-soft);
  font-size: 13px;
  border: 1px solid rgba(216, 185, 92, 0.6);
}

.mat-card.active .mc-mark { background: var(--cinnabar); color: #fdf6e8; }

.mc-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mat-card:hover .mc-img { transform: scale(1.05); }

.mc-emoji {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  font-size: 44px;
  background: linear-gradient(180deg, #f8efdc, #ecdcc0);
}

.mc-name {
  display: block;
  text-align: center;
  padding: 7px 2px;
  font-size: 13px;
  color: var(--brown-dark);
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #f8efdc, #efe0c0);
}

/* ---- 道具控制 + 戏卡 ---- */
.dress-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.ctl-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(248, 239, 220, 0.92);
  color: var(--brown-dark);
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(58, 42, 20, 0.2);
  transition: all 0.22s ease;
}

.ctl-mini:hover { background: var(--brown); color: #fdf6e8; transform: translateY(-2px); }

.btn-card { margin-left: 4px; }

.wardrobe-tip {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ================= 贰 · 茶馆 ================= */
.tea-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(168deg, rgba(248, 239, 220, 0.96), rgba(233, 217, 184, 0.92));
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(248, 239, 220, 0.6), inset 0 0 0 4px rgba(122, 85, 51, 0.2);
  padding: 24px 26px 26px;
  position: relative;
  overflow: hidden;
}

.tea-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--brown), var(--cinnabar));
  background-size: 300% 100%;
  animation: colorFlow 9s linear infinite;
}

@keyframes colorFlow {
  from { background-position: 0 0; }
  to { background-position: 300% 0; }
}

.tea-search { display: flex; gap: 10px; margin-bottom: 14px; }

input[type="text"] {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.92);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: all 0.28s ease;
  box-shadow: inset 0 2px 6px rgba(84, 55, 28, 0.07);
}

input[type="text"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 26, 0.22), inset 0 2px 6px rgba(84, 55, 28, 0.07);
}

.btn {
  flex: none;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fdf6e8;
  position: relative;
  overflow: hidden;
  transition: all 0.28s ease;
}

.btn-ink {
  background: linear-gradient(160deg, var(--brown), var(--brown-dark));
  box-shadow: 0 6px 16px rgba(84, 55, 28, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--brown-dark);
  box-shadow: none;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 235, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0); }

.tea-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.chip {
  padding: 7px 15px;
  border: 1px solid rgba(122, 85, 51, 0.4);
  border-radius: 999px;
  background: rgba(248, 239, 220, 0.85);
  font-family: var(--font);
  font-size: 13px;
  color: var(--brown-dark);
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip:hover { background: var(--gold); color: #fdf6e8; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(184, 137, 26, 0.36); }

.tea-answer {
  min-height: 96px;
  border-radius: 14px;
  background: rgba(255, 252, 244, 0.82);
  border: 1px solid rgba(122, 85, 51, 0.28);
  padding: 14px 16px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: inset 0 1px 5px rgba(84, 55, 28, 0.05);
}

.qa-empty {
  font-size: 13.5px;
  color: rgba(90, 70, 48, 0.6);
  line-height: 1.9;
  text-align: center;
  padding: 22px 8px;
}

.answer-card { animation: fadeUp 0.45s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.answer-card .cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
  box-shadow: 0 3px 8px rgba(166, 58, 43, 0.35);
}

.answer-card .question-line { font-size: 13.5px; color: var(--brown-mid); margin-bottom: 9px; }
.answer-card .question-line b { color: var(--ink); font-weight: 600; }

.answer-card .answer-body p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 9px;
}

.answer-card .answer-body p:last-child { margin-bottom: 0; }

/* ================= 叁 · 原声剧场 ================= */
.theater-wrap { display: flex; flex-direction: column; gap: 20px; }

/* ---- 剧场搜索 ---- */
.theater-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.ts-seal {
  flex: none;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 8px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(166, 58, 43, 0.4);
  letter-spacing: 0.06em;
}

/* ---- 横卷翻页主舞台 ---- */
.scroll-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 300px) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(168deg, rgba(248, 239, 220, 0.96), rgba(233, 217, 184, 0.92));
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(248, 239, 220, 0.6), inset 0 0 0 4px rgba(122, 85, 51, 0.18);
  padding: 22px 18px;
}

.stage-cover-holder {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(122, 85, 51, 0.42);
  box-shadow: 0 14px 30px rgba(58, 42, 20, 0.3);
  background: var(--paper-3);
  aspect-ratio: 3 / 4;
}

.stage-cover-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.stage-cover-holder img.swap {
  animation: coverSwap 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes coverSwap {
  from { opacity: 0.35; transform: scale(1.07) rotate(0.4deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.sc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(166, 58, 43, 0.9);
  color: #fdf6e8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.sc-badge.no { background: rgba(90, 70, 48, 0.75); }

.stage-info { min-width: 0; display: flex; flex-direction: column; gap: 9px; }

.si-idx {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brown-mid);
  background: rgba(184, 137, 26, 0.14);
  border-radius: 999px;
  padding: 3px 12px;
  align-self: flex-start;
  font-variant-numeric: tabular-nums;
}

.si-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  line-height: 1.25;
}

.si-aria {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cinnabar);
  letter-spacing: 0.08em;
}

.si-performer {
  font-size: 12px;
  color: var(--brown-mid);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.si-intro {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-height: 128px;
  overflow: hidden;
  position: relative;
  -webkit-line-clamp: 5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.si-play {
  align-self: flex-start;
  margin-top: 4px;
  background: linear-gradient(160deg, var(--gold), var(--brown));
  box-shadow: 0 6px 16px rgba(184, 137, 26, 0.4);
}

.page-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(248, 239, 220, 0.92);
  color: var(--brown-dark);
  font-size: 24px;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(58, 42, 20, 0.28);
  transition: all 0.25s ease;
  justify-self: center;
}

.page-arrow:hover { background: var(--brown); color: #fdf6e8; transform: scale(1.1); }
.page-arrow:active { transform: scale(0.95); }

/* ---- 缩略签条（横向一页页翻找） ---- */
.scroll-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
  padding: 6px 4px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.thumb {
  flex: none;
  width: 84px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-3);
  border: 1.5px solid rgba(122, 85, 51, 0.3);
  box-shadow: 0 8px 18px rgba(58, 42, 20, 0.18);
  padding: 0;
  font-family: var(--font);
  transition: all 0.28s ease;
  scroll-snap-align: start;
}

.thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.thumb span {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--brown-dark);
  letter-spacing: 0.06em;
  padding: 5px 2px;
  background: linear-gradient(180deg, #f8efdc, #efe0c0);
}

.thumb:hover { transform: translateY(-4px); border-color: var(--gold); }

.thumb.active {
  border-color: var(--cinnabar);
  box-shadow: 0 12px 26px rgba(58, 42, 20, 0.28), 0 0 0 2.5px rgba(166, 58, 43, 0.5);
}

.th-empty {
  margin: 0 auto;
  font-size: 13px;
  color: var(--brown-mid);
  letter-spacing: 0.2em;
  padding: 10px 0;
}

/* ================= 肆 · 梨园小趣 ================= */
.fun-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fun-card {
  position: relative;
  background: linear-gradient(168deg, rgba(248, 239, 220, 0.96), rgba(233, 217, 184, 0.92));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(248, 239, 220, 0.6);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
}

.fun-head { display: flex; align-items: center; gap: 10px; justify-content: center; }

.fun-mark {
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 8px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(166, 58, 43, 0.4);
}

.fun-title { font-size: 17px; font-weight: 700; letter-spacing: 0.3em; color: var(--ink); }

/* 摇签 */
.qian-holder { display: flex; align-items: center; justify-content: center; gap: 18px; }

.qian-tube {
  font-size: 56px;
  line-height: 1;
  transform-origin: bottom center;
  filter: drop-shadow(0 8px 14px rgba(47, 36, 22, 0.35));
}

.qian-tube.shaking { animation: qianShake 0.7s ease-in-out; }

@keyframes qianShake {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(-14deg) translateY(-6px); }
  40% { transform: rotate(12deg) translateY(-10px); }
  60% { transform: rotate(-8deg) translateY(-4px); }
  80% { transform: rotate(6deg) translateY(-2px); }
}

.qian-slip {
  opacity: 0;
  transform: translateY(14px) rotate(-1deg);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(180deg, #fdf6e8, #f0e0c0);
  border: 1.5px solid rgba(122, 85, 51, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(58, 42, 20, 0.22);
}

.qian-slip.show { opacity: 1; transform: translateY(0) rotate(0); }

.qian-opera { font-size: 14.5px; font-weight: 700; color: var(--cinnabar); letter-spacing: 0.08em; }
.qian-line { font-size: 13.5px; color: var(--ink); margin-top: 6px; line-height: 1.8; }
.qian-verdict { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--brown-dark); background: rgba(216, 185, 92, 0.25); border-radius: 999px; padding: 3px 14px; letter-spacing: 0.12em; }
.qian-note { font-size: 12px; color: var(--ink-soft); line-height: 1.8; margin-top: 6px; }

/* 行当小考 */
.quiz-box { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.quiz-q { font-size: 14.5px; line-height: 1.85; color: var(--ink); min-height: 46px; }

.quiz-opts { display: flex; flex-direction: column; gap: 8px; }

.quiz-opt {
  border: 1px solid var(--line);
  background: rgba(248, 239, 220, 0.95);
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--brown-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opt:hover { border-color: var(--gold); transform: translateX(3px); }

.quiz-opt.right { background: rgba(64, 128, 84, 0.22); border-color: #3e7c52; }
.quiz-opt.wrong { background: rgba(166, 58, 43, 0.16); border-color: var(--cinnabar); }

.quiz-hint { font-size: 12px; color: var(--brown-mid); padding: 2px 4px; line-height: 1.7; }

.quiz-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.quiz-score { font-size: 12.5px; color: var(--cinnabar); letter-spacing: 0.06em; }

/* 打击乐音板 */
.sound-pad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
  align-items: center;
}

.sound-btn {
  border: none;
  aspect-ratio: 1;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(165deg, var(--brown-mid), var(--brown));
  color: #f8efdc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  box-shadow: 0 10px 22px rgba(58, 42, 20, 0.35), inset 0 0 0 1px rgba(248, 239, 220, 0.25);
  transition: all 0.15s ease;
}

.sound-btn:nth-child(2) { background: linear-gradient(165deg, #8c2c22, #5d1c16); }
.sound-btn:nth-child(3) { background: linear-gradient(165deg, #9a7b2f, #6b531c); }
.sound-btn:nth-child(4) { background: linear-gradient(165deg, #b08a3e, #7a5d26); }

.sound-btn.hit { transform: scale(0.9); box-shadow: 0 4px 12px rgba(58, 42, 20, 0.4); filter: brightness(1.2); }

.sb-mark { font-size: 24px; font-weight: 700; }

.sb-name { font-size: 11px; letter-spacing: 0.1em; opacity: 0.92; }

.sound-tip { text-align: center; font-size: 12px; color: var(--brown-mid); letter-spacing: 0.14em; }

/* 播放器 */
.player-box {
  display: flex;
  align-items: center;
  gap: 26px;
  background: linear-gradient(135deg, rgba(248, 239, 220, 0.96), rgba(233, 217, 184, 0.9));
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(248, 239, 220, 0.6);
  padding: 20px 26px;
}

.record-wrap { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }

#wave-canvas {
  display: block;
  border-radius: 8px;
  background: rgba(47, 36, 22, 0.05);
  border: 1px solid rgba(122, 85, 51, 0.22);
}

.record {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(47, 36, 22, 0.12) 0 1.5px, transparent 1.5px 6px),
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(150deg, #4a3620, #241a0f);
  border: 4px solid rgba(184, 137, 26, 0.75);
  box-shadow: 0 12px 28px rgba(58, 42, 20, 0.4), inset 0 0 22px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  position: relative;
}

.record::before {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), var(--brown) 70%);
}

.record-label { position: relative; font-size: 30px; color: #fdf6e8; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.record.spinning { animation: spin 2.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-main { flex: 1; min-width: 0; }

.np-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.np-badge {
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.np-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-state { flex: none; font-size: 12.5px; color: var(--brown); font-weight: 600; }

.np-sub {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

.player-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.time { font-size: 12.5px; color: var(--brown-mid); font-variant-numeric: tabular-nums; }

input[type="range"] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 0%), rgba(122, 85, 51, 0.28) var(--fill, 0%));
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fdf6e8, var(--gold));
  border: 1px solid var(--brown-mid);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fdf6e8, var(--gold));
  border: 1px solid var(--brown-mid);
}

.player-btns { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-family: var(--font);
  color: #fdf6e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: linear-gradient(160deg, var(--brown-mid), var(--brown-dark));
  box-shadow: 0 5px 14px rgba(84, 55, 28, 0.35);
  transition: all 0.25s ease;
}

.icon-btn.big {
  width: 60px;
  height: 60px;
  font-size: 21px;
  background: linear-gradient(160deg, var(--gold), var(--brown));
  box-shadow: 0 7px 18px rgba(184, 137, 26, 0.45), 0 0 0 4px rgba(184, 137, 26, 0.16);
}

.icon-btn:hover { transform: translateY(-2px) scale(1.05); }
.icon-btn:active { transform: scale(0.95); }

.btn-clip {
  margin-left: auto;
  font-size: 13.5px;
  padding: 11px 20px;
  background: linear-gradient(160deg, var(--cinnabar), #8c2c22);
  box-shadow: 0 6px 16px rgba(140, 44, 34, 0.4);
}

/* 字幕匾额 */
.lantern-stage { display: grid; grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 16px; align-items: stretch; }

.lantern {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 185, 92, 0.92), rgba(166, 58, 43, 0.94) 58%, #7e251c 100%);
  box-shadow: 0 10px 24px rgba(58, 42, 20, 0.35), inset 0 0 16px rgba(253, 246, 232, 0.35);
  color: #fdf6e8;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  animation: lanternSway 4.6s ease-in-out infinite;
  overflow: hidden;
}

.lantern.right { animation-delay: -2.3s; }

@keyframes lanternSway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(1.6deg) translateY(3px); }
}

.lantern-cord {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 2px;
  height: 16px;
  background: rgba(184, 137, 26, 0.7);
}

.stage-board {
  position: relative;
  min-height: 120px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #4a341d, #33220f),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
  border: 1px solid rgba(184, 137, 26, 0.5);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(58, 42, 20, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.subtitle-line {
  padding: 0 22px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.65;
  color: #fdf6e8;
  text-shadow: 0 0 14px rgba(216, 185, 92, 0.55), 0 2px 5px rgba(0, 0, 0, 0.65);
  letter-spacing: 0.1em;
  display: none;
}

.subtitle-line.show { display: block; animation: lyricIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes lyricIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.st-empty {
  font-size: 14px;
  color: rgba(248, 239, 220, 0.6);
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.9;
}

/* ================= 画卷交互控制条 ================= */
.scene-ctl {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(248, 239, 220, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.ctl-btn {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--brown-dark);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.28s ease;
}

.ctl-btn:hover { background: var(--paper-2); color: var(--cinnabar); }
.ctl-btn.on { background: var(--brown); color: #fdf6e8; box-shadow: 0 4px 12px rgba(84, 55, 28, 0.4); }

/* ================= 卷尾 ================= */
.scroll-foot { position: relative; z-index: 2; margin-top: 20px; }

.foot-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(233, 217, 184, 0.55);
  padding: 11px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--brown-mid);
  white-space: nowrap;
}

.marquee-track span { padding-right: 6px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.foot-note {
  text-align: center;
  padding: 20px 22px 30px;
  font-size: 12.5px;
  color: rgba(90, 70, 48, 0.72);
  letter-spacing: 0.08em;
  line-height: 1.9;
}

/* ================= 经典片段弹窗 ================= */
.clip-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(47, 36, 22, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.clip-modal.show { opacity: 1; visibility: visible; }

.clip-frame {
  width: min(860px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px;
  background: linear-gradient(165deg, #f8efdc, #e9d9b8);
  border: 1px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 3px rgba(248, 239, 220, 0.6);
  transform: translateY(24px) scale(0.97);
  transition: all 0.4s ease;
}

.clip-modal.show .clip-frame { transform: translateY(0) scale(1); }

.clip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(120deg, var(--brown-dark), var(--brown));
  color: #f8efdc;
}

.clip-title { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; }

.clip-close {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(248, 239, 220, 0.16);
  color: #f8efdc;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.clip-close:hover { background: var(--cinnabar); }

.clip-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px 20px;
  align-items: start;
}

.clip-screen {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #efe3c8, #e0cea8);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(58, 42, 20, 0.3);
}

.clip-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #14100a;
}

.clip-screen video.on { display: block; }

.clip-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 20%, rgba(184, 137, 26, 0.16), transparent 60%),
    linear-gradient(180deg, #efe3c8, #dfcca4);
}

.fb-img-holder {
  width: 54%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(122, 85, 51, 0.4);
  box-shadow: 0 0 36px rgba(184, 137, 26, 0.22);
  animation: fbBreath 4s ease-in-out infinite;
}

@keyframes fbBreath {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.035); opacity: 1; }
}

.fb-img-holder img { width: 100%; display: block; }

.fb-tag {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(166, 58, 43, 0.88);
  color: #fdf6e8;
}

.clip-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.clip-line {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  text-align: center;
  color: var(--brown-dark);
  line-height: 1.7;
  background: linear-gradient(120deg, rgba(184, 137, 26, 0.16), rgba(95, 138, 106, 0.16));
  border-radius: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
}

#clip-audio { width: 100%; }

.clip-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.clip-dl { text-align: center; text-decoration: none; font-size: 13.5px; }

.clip-note {
  font-size: 12px;
  color: var(--brown-mid);
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.hidden { display: none !important; }

/* ================= 提示条 ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--brown), var(--brown-dark));
  color: #f8efdc;
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 28px rgba(58, 42, 20, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ================= 滚动条 ================= */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(122, 85, 51, 0.1); border-radius: 999px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brown-mid), var(--brown-dark)); border-radius: 999px; }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .dress-carousel { width: min(560px, 100%); }
}

@media (max-width: 980px) {
  .scroll-stage { grid-template-columns: minmax(0, 230px) minmax(0, 1fr) auto; }
  .fun-wrap { grid-template-columns: 1fr 1fr; }
  .page-arrow.left { display: none; }
  .player-box { flex-direction: column; }
  .record { width: 104px; height: 104px; }
  .btn-clip { margin-left: 0; }
  .nav-links { gap: 14px; }
  .nav-link { font-size: 12.5px; }
}

@media (max-width: 640px) {
  .scroll-head { padding-top: 96px; }
  .main-title { letter-spacing: 0.06em; }
  .material-rack { gap: 10px; }
  .mat-card { width: 138px; }
  .fun-wrap { grid-template-columns: 1fr; }
  .fun-card { min-height: 0; }
  .scroll-stage { grid-template-columns: 1fr; text-align: center; }
  .stage-cover-holder { width: 68%; margin: 0 auto; }
  .page-arrow.right { display: none; }
  .si-idx { align-self: center; }
  .si-play { align-self: center; }
  .clip-body { grid-template-columns: 1fr; }
  .lantern-stage { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .nav-visit { display: inline-flex; align-items: center; }
  .nav-visit b { display: none; }
  .scene-ctl { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .ctl-btn { padding: 7px 9px; font-size: 12px; }
}

@media (max-width: 480px) {
  .figure-stage { width: min(430px, 100%); }
  .figure-frame { width: 100%; }
  .figure-img-holder img { width: 100%; }
  .wardrobe { width: 100%; padding: 16px 10px; }
  .wardrobe-title { font-size: 17px; letter-spacing: 0.1em; }
  .dress-tabs { gap: 10px; }
  .dt-tab { padding: 9px 26px; }
  .mat-card { width: 128px; }
  .dress-controls { flex-wrap: wrap; justify-content: center; }
  .fig-card { font-size: 13px; }
  .auth-panel { padding: 22px 18px 18px; }
}

/* ---------- 登录门（IndexedDB 用户库） ---------- */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 26, 14, 0.55);
  backdrop-filter: blur(6px);
  transition: opacity 0.4s ease;
}
.auth-gate.hide { display: none; }
.auth-panel {
  width: min(360px, 90%);
  background: linear-gradient(165deg, #f8efdc, #e8d6ae);
  border: 1px solid rgba(122, 85, 51, 0.35);
  border-radius: 18px;
  padding: 26px 28px 22px;
  box-shadow: 0 18px 50px rgba(38, 26, 14, 0.45);
  text-align: center;
  position: relative;
}
.auth-seal {
  width: 56px; height: 56px; margin: 0 auto 10px;
  border: 2px solid #8a3a2c; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #8a3a2c; font-size: 18px; font-weight: 700; letter-spacing: 0.08em;
}
.auth-title { font-size: 24px; color: #4a3520; letter-spacing: 0.1em; margin: 6px 0 4px; }
.auth-sub { font-size: 12px; color: rgba(84, 55, 28, 0.65); margin-bottom: 18px; letter-spacing: 0.06em; }
.auth-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.auth-tab {
  padding: 6px 22px; border: 1px solid rgba(122, 85, 51, 0.4);
  background: transparent; color: #4a3520; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.12em; cursor: pointer; transition: all 0.25s;
}
.auth-tab.active { background: #4a3520; color: #f8efdc; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input {
  padding: 11px 14px; border: 1px solid rgba(122, 85, 51, 0.4); border-radius: 10px;
  background: rgba(255, 253, 246, 0.85); font-size: 14px; color: #4a3520; outline: none;
}
.auth-form input:focus { border-color: #a3532e; }
.auth-msg { font-size: 12.5px; color: #a03a2c; min-height: 16px; }
.btn-block { width: 100%; }
.auth-foot { margin-top: 14px; font-size: 11px; color: rgba(84, 55, 28, 0.55); letter-spacing: 0.04em; }

/* 导航用户入口 + 道具拖拽 */
.nav-user {
  margin-left: 10px; padding: 3px 10px;
  border: 1px solid rgba(248, 239, 220, 0.5); border-radius: 999px;
  font-size: 12px; cursor: pointer; transition: background 0.25s;
}
.nav-user:hover { background: rgba(248, 239, 220, 0.16); }
.prop-item { cursor: grab; touch-action: none; user-select: none; pointer-events: auto; }
.prop-item:active { cursor: grabbing; }

/* 平台公告条 */
.notice-bar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(138, 58, 44, 0.96), rgba(122, 85, 51, 0.96));
  color: #f8efdc; font-size: 13px; letter-spacing: 0.05em;
  box-shadow: 0 2px 12px rgba(38, 26, 14, 0.25);
}
.notice-bar[hidden] { display: none; }
.notice-seal {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(248, 239, 220, 0.85);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.notice-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 导航管理员入口 */
.nav-admin {
  margin-left: 10px; padding: 3px 10px;
  border: 1px solid rgba(231, 181, 84, 0.65); border-radius: 999px;
  font-size: 12px; color: #e7b554; cursor: pointer; transition: background 0.25s;
}
.nav-admin:hover { background: rgba(231, 181, 84, 0.16); }

/* 管理面板 */
.admin-panel {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(30, 20, 10, 0.55); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
}
.admin-panel[hidden] { display: none; }
.admin-box {
  width: min(560px, 92%); max-height: 82vh; overflow: auto;
  background: linear-gradient(165deg, #f8efdc, #e8d6ae);
  border: 1px solid rgba(122, 85, 51, 0.35); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 12, 5, 0.5);
  padding: 22px 26px;
}
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-head h3 { font-size: 20px; color: #4a3520; letter-spacing: 0.1em; margin: 0; }
.admin-close {
  border: 1px solid rgba(122, 85, 51, 0.4); background: transparent; color: #4a3520;
  border-radius: 999px; width: 30px; height: 30px; cursor: pointer; font-size: 14px;
}
.admin-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-tab {
  padding: 6px 16px; border: 1px solid rgba(122, 85, 51, 0.4); background: transparent;
  color: #4a3520; border-radius: 999px; font-size: 13px; letter-spacing: 0.1em; cursor: pointer;
}
.admin-tab.active { background: #4a3520; color: #f8efdc; }
.admin-sec { display: flex; flex-direction: column; gap: 10px; }
.admin-sec[hidden] { display: none; }
#admin-notice {
  width: 100%; resize: vertical; padding: 10px 12px;
  border: 1px solid rgba(122, 85, 51, 0.4); border-radius: 10px;
  background: rgba(255, 253, 246, 0.85); font-size: 14px; color: #4a3520; outline: none;
  box-sizing: border-box; min-height: 80px;
}
.admin-user-list { max-height: 320px; overflow: auto; }
.au-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-bottom: 1px dashed rgba(122, 85, 51, 0.25);
  font-size: 14px; color: #4a3520;
}
.au-name { font-weight: 600; min-width: 90px; }
.au-role { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(122, 85, 51, 0.14); }
.au-time { margin-left: auto; font-size: 12px; color: rgba(84, 55, 28, 0.6); }
.au-empty { padding: 18px; text-align: center; color: rgba(84, 55, 28, 0.6); }
.as-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.as-cell {
  background: rgba(255, 253, 246, 0.7); border: 1px solid rgba(122, 85, 51, 0.2);
  border-radius: 12px; padding: 14px 8px; text-align: center;
}
.as-cell b { display: block; font-size: 26px; color: #8a3a2c; }
.as-cell span { font-size: 12px; color: rgba(84, 55, 28, 0.7); }

/* 3D 转台换装动画 */
.figure-img-holder { transform-style: preserve-3d; }
.figure-img-holder.spin-in { animation: spinIn 0.6s cubic-bezier(0.22, 0.9, 0.34, 1); }
@keyframes spinIn {
  0%   { transform: rotateY(22deg) translateY(-14px) scale(0.96); opacity: 0.55; }
  100% { transform: rotateY(0deg) translateY(0) scale(1); opacity: 1; }
}
.backdrop-layer { transform-origin: center; will-change: transform; }
.floor-glow { will-change: transform; }

/* 管理面板 · 用户删除 / 剧目上架 */
.au-del {
  margin-left: auto; padding: 3px 12px;
  border: 1px solid rgba(160, 58, 44, 0.55); background: transparent;
  color: #a03a2c; border-radius: 999px; font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.au-del:hover { background: #a03a2c; color: #f8efdc; }
.au-tag { margin-left: auto; font-size: 12px; color: rgba(84, 55, 28, 0.55); }
.admin-opera-tip { font-size: 12px; color: rgba(84, 55, 28, 0.6); letter-spacing: 0.03em; }
.admin-opera-list { max-height: 320px; overflow: auto; }
.ao-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-bottom: 1px dashed rgba(122, 85, 51, 0.22);
  font-size: 13px; color: #4a3520; cursor: pointer;
}
.ao-row input { accent-color: #8a3a2c; width: 16px; height: 16px; cursor: pointer; flex: none; }
.ao-name { font-weight: 600; min-width: 72px; }
.ao-aria { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(84, 55, 28, 0.75); font-size: 12px; }
.ao-state { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(122, 85, 51, 0.12); flex: none; }
