/* ============================================================
   秦腔数字人智能交互平台 — 样式表 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-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-gate[hidden] { 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: 12px; 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); }

/* 换装台：人物静止正面展示，仅换装时播放一次翻转入场（避免频繁摆动） */
.figure-img-holder { transform-style: preserve-3d; }
.figure-img-holder.an-still,
.figure-img-holder:not([class*="an-"]) { animation: none; }
.figure-img-holder.an-sleeve { animation: sleeveAnim 4.5s ease-in-out infinite; }
.figure-img-holder.an-sway { animation: swayAnim 3.8s ease-in-out infinite; }
.figure-img-holder.an-whisk { animation: whiskAnim 5.2s ease-in-out infinite; }
.figure-img-holder.spin-in { animation: spinIn 0.6s cubic-bezier(0.22, 0.9, 0.34, 1); }
@keyframes holderSway {
  0%, 100% { transform: rotateY(-7deg); }
  50%      { transform: rotateY(7deg); }
}
@keyframes sleeveAnim {
  0%, 100% { transform: rotateY(-12deg) translateX(-10px) translateY(0); }
  25%      { transform: rotateY(4deg) translateX(10px) translateY(-14px) scale(1.03); }
  50%      { transform: rotateY(-6deg) translateX(-8px) translateY(-4px); }
  75%      { transform: rotateY(12deg) translateX(12px) translateY(-10px); }
}
@keyframes swayAnim {
  0%, 100% { transform: rotateY(-13deg) rotate(-2deg) translateX(-7px); }
  50%      { transform: rotateY(13deg) rotate(2.5deg) translateX(9px); }
}
@keyframes whiskAnim {
  0%, 100% { transform: rotateY(-8deg); }
  30%      { transform: rotateY(18deg) translateX(16px) translateY(-8px); }
  55%      { transform: rotateY(6deg) translateX(-8px); }
  78%      { transform: rotateY(16deg) translateX(12px) translateY(-4px); }
}
@keyframes spinIn {
  0%   { transform: rotateY(22deg) translateY(-14px) scale(0.96); opacity: 0.55; }
  100% { transform: rotateY(0deg) translateY(0) scale(1); opacity: 1; }
}
/* 人物静止展示，去掉常驻浮动动画 */
.figure-img-holder img { position: relative; animation: none; }
@keyframes imgFloat {
  0%, 100% { top: 0; }
  50%      { top: -7px; }
}
.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; }
.ai-field { display: block; margin: 10px 0; font-size: 13px; color: #4a3520; }
.ai-field span { display: block; margin-bottom: 4px; }
.ai-field input {
  width: 100%; box-sizing: border-box; padding: 7px 10px;
  border: 1px solid rgba(122, 85, 51, 0.35); border-radius: 6px;
  background: #fdf9f0; color: #3a2a16; font-size: 13px;
}
.ai-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ai-status {
  margin-top: 10px; font-size: 12px; line-height: 1.7; color: rgba(84, 55, 28, 0.75);
  background: rgba(122, 85, 51, 0.08); border-radius: 6px; padding: 8px 10px;
}
.btn-line {
  border: 1px solid rgba(160, 58, 44, 0.5); background: transparent; color: #8a3a2c;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.btn-line:hover { background: #8a3a2c; color: #f8efdc; }

/* ---------- AI 戏妆工坊 ---------- */
.makeup-studio {
  width: 100%; max-width: 1040px; margin: 4px auto 0;
  padding: 26px 20px 6px;
  border-top: 1px dashed rgba(122, 85, 51, 0.25);
}
.mu-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.mu-preview {
  position: relative;
  width: 320px; max-width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #efe3c8, #e0cea8);
  box-shadow: var(--shadow);
}
.mu-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mu-preview video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2;
}
.mu-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; text-align: center;
  padding: 22px; font-size: 14px; line-height: 2;
  color: rgba(84, 55, 28, 0.75); letter-spacing: 0.05em;
  background: radial-gradient(80% 70% at 50% 30%, rgba(248, 239, 220, 0.6), transparent 70%);
}
.mu-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mu-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mu-actions .btn { flex: none; }
.mu-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mu-topic {
  padding: 10px 6px;
  border: 1px solid rgba(122, 85, 51, 0.3);
  border-radius: 10px;
  background: rgba(248, 239, 220, 0.5);
  color: var(--brown);
  font-size: 13px; line-height: 1.45;
  cursor: pointer; transition: all 0.2s;
}
.mu-topic:hover { border-color: var(--gold); }
.mu-topic.active {
  background: linear-gradient(135deg, var(--cinnabar), #7c2c1e);
  color: #fdf6e8; border-color: transparent;
  box-shadow: 0 6px 16px rgba(166, 58, 43, 0.3);
}
.mu-tip {
  font-size: 12.5px; line-height: 1.8; color: rgba(84, 55, 28, 0.62);
  background: rgba(122, 85, 51, 0.07);
  border-radius: 10px; padding: 10px 12px;
}
.mu-status {
  font-size: 12px; line-height: 1.7;
  color: rgba(84, 55, 28, 0.8);
  background: rgba(122, 85, 51, 0.1);
  border: 1px dashed rgba(122, 85, 51, 0.35);
  border-radius: 10px; padding: 8px 10px;
  min-height: 36px;
}
.mu-ai-result {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(122, 85, 51, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.admin-sec select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(122, 85, 51, 0.35);
  border-radius: 8px;
  background: rgba(248, 239, 220, 0.7);
  color: var(--brown);
  font-size: 13px;
}
.admin-sec select:focus { outline: none; border-color: var(--gold); }
.mu-samples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mu-sample {
  margin: 0;
  border: 1px solid rgba(122, 85, 51, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(248, 239, 220, 0.45);
}
.mu-sample img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
.mu-sample figcaption {
  padding: 6px 8px;
  font-size: 12px;
  text-align: center;
  color: var(--brown);
  letter-spacing: 0.04em;
}
@media (max-width: 480px) {
  .mu-samples { grid-template-columns: 1fr; }
}

/* ---------- 梨园入场券（右上角小卡，自动收起） ---------- */
.ticket-strip {
  position: fixed;
  top: 58px; right: 14px; left: auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(370px, calc(100vw - 28px));
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(58, 36, 16, 0.96), rgba(86, 56, 24, 0.96));
  border: 1px solid rgba(184, 137, 26, 0.5);
  color: #f8efdc;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  animation: tkIn 0.5s cubic-bezier(0.22, 0.9, 0.34, 1);
  transition: opacity 0.6s, transform 0.6s, visibility 0.6s;
}
.ticket-strip.auto-hide {
  opacity: 0; transform: translateY(-12px) scale(0.95);
  visibility: hidden; pointer-events: none;
}
@keyframes tkIn {
  0%   { opacity: 0; transform: translateY(-16px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.tk-seal {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid rgba(232, 196, 118, 0.75);
  color: #e8c476;
  font-size: 15px; font-weight: 700; letter-spacing: 0.05em;
}
.tk-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-title { font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; color: #e8c476; }
.tk-line { font-size: 12.5px; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-side { flex: none; display: flex; align-items: center; gap: 8px; }
.tk-date { font-size: 11.5px; color: rgba(248, 239, 220, 0.85); }
.btn-tk {
  border-color: rgba(232, 196, 118, 0.7);
  color: #e8c476;
  padding: 5px 12px;
}
.btn-tk:hover { background: #e8c476; color: #4a3520; }
.tk-close {
  flex: none;
  width: 24px; height: 24px;
  border: none; border-radius: 50%;
  background: rgba(248, 239, 220, 0.16);
  color: #f8efdc;
  font-size: 13px;
  cursor: pointer;
}
.tk-close:hover { background: var(--cinnabar); }
.nav-ticket {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(232, 196, 118, 0.18);
  color: #e8c476;
  font-size: 12px;
  border: 1px solid rgba(232, 196, 118, 0.5);
  cursor: pointer;
}
.nav-ticket:hover { background: rgba(232, 196, 118, 0.32); }
@media (max-width: 640px) {
  .ticket-strip { top: 52px; right: 8px; width: min(330px, calc(100vw - 16px)); gap: 10px; }
  .tk-date { display: none; }
  .tk-title { font-size: 12.5px; }
}

/* ---------- 今日戏码 ---------- */
.today-opera {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(122, 85, 51, 0.12), rgba(184, 137, 26, 0.14));
  border: 1px solid rgba(184, 137, 26, 0.35);
}
.to-seal {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-size: 12px;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 10px rgba(166, 58, 43, 0.3);
}
.to-text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--brown); }
.to-btn { flex: none; }
@media (max-width: 640px) {
  .to-text { font-size: 12.5px; }
}

/* ---------- 收藏星 / 我的戏单 ---------- */
.thumb { position: relative; }
.thumb-fav {
  position: absolute;
  right: 4px; top: 4px;
  z-index: 2;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(58, 36, 16, 0.72);
  color: rgba(248, 239, 220, 0.75);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.thumb-fav.on { color: #ffd76a; background: rgba(166, 58, 43, 0.85); box-shadow: 0 0 12px rgba(255, 215, 106, 0.5); }
#fav-btn.active {
  background: linear-gradient(135deg, var(--cinnabar), #7c2c1e);
  color: #fdf6e8;
  border-color: transparent;
}
#fav-btn { flex: none; }

/* ---------- 移动端加固：戏妆工坊 / 播放框 / 剧场 ---------- */
@media (max-width: 640px) {
  .mu-row { grid-template-columns: 1fr; }
  .mu-preview { width: min(320px, 100%); margin: 0 auto; }
  .mu-topics { grid-template-columns: repeat(2, 1fr); }
  .clip-frame { max-height: 90vh; }
  .clip-body { padding: 14px; gap: 14px; }
  .clip-screen { border-radius: 10px; }
}
@media (max-width: 480px) {
  .mu-side { align-items: center; }
  .mu-actions { justify-content: center; }
  .mu-topic { font-size: 12px; padding: 9px 4px; }
  .makeup-studio { padding: 22px 10px 4px; }
}
.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; }

/* 导航退出登录 */
.nav-logout {
  margin-left: 8px; padding: 3px 10px;
  border: 1px solid rgba(160, 58, 44, 0.6); border-radius: 999px;
  font-size: 12px; color: #a03a2c; cursor: pointer; transition: background 0.25s;
}
.nav-logout:hover { background: rgba(160, 58, 44, 0.14); }

/* 换装 · 动画/氛围 文字卡 */
.mat-card.mat-text {
  padding: 14px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.mc-mode {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fdf6e8;
  background: linear-gradient(145deg, #8a6336, #4a3520);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 8px rgba(40, 24, 8, 0.28);
}
.mat-card.active .mc-mode { background: linear-gradient(145deg, #a03a2c, #6f2a1f); }
.mc-tip { display: block; font-size: 10px; color: rgba(74, 53, 32, 0.6); letter-spacing: 0.04em; }

/* 舞台氛围光效层：纯光影叠色，不遮人物 */
.mood-layer {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: screen; opacity: 0.72; transition: background 0.9s ease;
}
.mo-warm { background: radial-gradient(70% 60% at 50% 28%, rgba(255, 204, 128, 0.40), transparent 62%), radial-gradient(120% 90% at 50% 100%, rgba(140, 70, 24, 0.22), transparent 72%); }
.mo-moon { background: radial-gradient(60% 55% at 72% 20%, rgba(198, 216, 255, 0.36), transparent 62%), radial-gradient(110% 85% at 50% 100%, rgba(36, 58, 122, 0.26), transparent 72%); }
.mo-spring { background: radial-gradient(70% 60% at 50% 30%, rgba(255, 194, 210, 0.34), transparent 62%), radial-gradient(120% 90% at 50% 100%, rgba(188, 126, 168, 0.20), transparent 72%); }
.mo-snow { background: radial-gradient(65% 55% at 55% 18%, rgba(226, 238, 255, 0.42), transparent 62%), radial-gradient(110% 85% at 50% 100%, rgba(100, 138, 198, 0.24), transparent 72%); }

@media (max-width: 760px) {
  .nav-logout { margin-left: 4px; padding: 2px 8px; }
  .mc-tip { display: none; }
}

/* ================= 我的戏单（收藏筛选） ================= */
.fav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 5px 12px;
}
.fav-btn svg { display: block; flex: none; }
.fav-btn .star-on { display: none; }
.fav-btn.active .star-off { display: none; }
.fav-btn.active .star-on { display: block; }
.fav-btn.active {
  border-color: #e9b84a; color: #a06a1f;
  background: linear-gradient(160deg, rgba(233, 184, 74, 0.18), rgba(233, 184, 74, 0.08));
}
.fav-btn .star-off { color: #a03a2c; transition: transform 0.25s ease; }
.fav-btn:hover .star-off { transform: rotate(-18deg) scale(1.1); }
.fav-btn .fav-label { letter-spacing: 0.08em; line-height: 1; }
.fav-count { font-weight: 700; color: #a03a2c; min-width: 1em; text-align: left; line-height: 1; }

/* ================= 首页 CTA ================= */
.hero-cta {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 22px; padding: 12px 30px;
  background: linear-gradient(160deg, var(--cinnabar, #a03a2c), #7a2f22);
  color: #f8efdc; border: 1px solid rgba(248, 239, 220, 0.6);
  border-radius: 999px; text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: 0.34em;
  box-shadow: 0 10px 26px rgba(122, 47, 34, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-cta span { font-size: 11px; font-weight: 400; letter-spacing: 0.22em; opacity: 0.85; }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(122, 47, 34, 0.45); }
@media (max-width: 640px) { .hero-cta { padding: 11px 24px; font-size: 14px; } }

/* ================= 伍 · 参赛方案 ================= */
.chapter-plan { padding-bottom: 40px; }
.plan-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  max-width: 1080px; margin: 0 auto;
}
.plan-card {
  background: linear-gradient(165deg, rgba(253, 246, 232, 0.97), rgba(244, 230, 204, 0.97));
  border: 1px solid rgba(122, 85, 51, 0.28);
  border-top: 3px solid var(--cinnabar, #a03a2c);
  border-radius: 12px; padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(64, 42, 14, 0.08);
}
.plan-card h4 {
  font-size: 15px; color: #7a2f22; letter-spacing: 0.16em; font-weight: 700;
  margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
.plan-card h4::before { content: ""; width: 7px; height: 7px; background: var(--cinnabar, #a03a2c); border-radius: 50%; flex: none; }
.plan-card p { margin: 0; font-size: 13px; line-height: 1.85; color: rgba(60, 42, 24, 0.92); }
.plan-card b { color: #7a2f22; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

/* ================= 陆 · 能力演示 ================= */
.chapter-demo { padding-bottom: 44px; }
.demo-block { max-width: 1080px; margin: 0 auto 20px; }
.demo-title {
  font-size: 14px; font-weight: 700; color: #5c3a1e; letter-spacing: 0.18em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.demo-title::before { content: ""; width: 20px; height: 2px; background: var(--cinnabar, #a03a2c); }
.demo-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.task-card {
  background: rgba(255, 252, 243, 0.94);
  border: 1px solid rgba(122, 85, 51, 0.26); border-radius: 12px;
  padding: 16px 16px 14px; text-align: center;
}
.task-card b { display: block; font-size: 14px; color: var(--cinnabar, #a03a2c); letter-spacing: 0.1em; margin-bottom: 6px; }
.task-card span { display: block; font-size: 12px; color: rgba(74, 53, 32, 0.8); line-height: 1.6; }
.demo-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; justify-content: center; }
.df-step {
  flex: 1 1 170px; max-width: 240px;
  background: rgba(255, 252, 243, 0.94);
  border: 1px solid rgba(122, 85, 51, 0.26); border-radius: 10px;
  padding: 12px 14px; text-align: center;
}
.df-step b { display: block; font-size: 13.5px; color: #7a2f22; letter-spacing: 0.08em; margin-bottom: 6px; }
.df-step span { display: block; font-size: 11.5px; color: rgba(74, 53, 32, 0.8); line-height: 1.55; }
.df-arrow { align-self: center; color: rgba(122, 85, 51, 0.55); font-size: 18px; flex: none; }
.demo-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stat-card {
  background: linear-gradient(170deg, rgba(160, 58, 44, 0.09), rgba(160, 58, 44, 0.03));
  border: 1px solid rgba(160, 58, 44, 0.28); border-radius: 12px;
  padding: 16px 8px; text-align: center;
}
.stat-card b { display: block; font-size: 22px; color: var(--cinnabar, #a03a2c); letter-spacing: 0.04em; }
.stat-card span { display: block; font-size: 12px; color: rgba(74, 53, 32, 0.8); margin-top: 6px; letter-spacing: 0.08em; }
@media (max-width: 900px) { .demo-tasks { grid-template-columns: 1fr; } .demo-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .demo-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-flow { flex-direction: column; align-items: center; }
  .df-step { max-width: 100%; width: 100%; }
  .df-arrow { transform: rotate(90deg); }
}

/* ================= 卷尾 ================= */

/* ================= 茶馆 · 智能体能力增强 ================= */
.tea-badges {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin: 0 auto 16px; max-width: 860px;
}
.tea-badges span {
  font-size: 11.5px; letter-spacing: 0.1em; color: #7a2f22;
  background: rgba(160, 58, 44, 0.07);
  border: 1px solid rgba(160, 58, 44, 0.3); border-radius: 999px;
  padding: 4px 12px;
}
.tea-badges b.tea-served {
  font-size: 11.5px; color: #a06a1f; letter-spacing: 0.06em;
  background: rgba(233, 184, 74, 0.14);
  border: 1px dashed rgba(160, 106, 31, 0.5); border-radius: 999px;
  padding: 4px 12px; font-weight: 700;
}
.agent-status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 12px;
  background: rgba(160, 58, 44, 0.05);
  border: 1px dashed rgba(160, 58, 44, 0.35); border-radius: 10px;
  font-size: 12.5px;
}
.agent-status i { color: rgba(160, 58, 44, 0.4); font-style: normal; }
.agent-status .as-step {
  color: rgba(74, 53, 32, 0.45); letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
.agent-status .as-step.on { color: var(--cinnabar, #a03a2c); font-weight: 700; }
.agent-status .as-step.on::before { content: "✓ "; }
@media (max-width: 480px) { .agent-status { font-size: 11px; gap: 6px; } }

/* ================= 能力演示 · 印章任务卡 ================= */
.demo-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 12px;
  border: 2px solid var(--cinnabar, #a03a2c); border-radius: 50%;
  color: var(--cinnabar, #a03a2c);
  font-size: 24px; font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6), inset 0 0 0 5px rgba(160, 58, 44, 0.15);
  background: rgba(253, 246, 232, 0.9);
}
.task-card { display: flex; flex-direction: column; align-items: center; }

/* ================= 能力演示 · SVG 执行过程 ================= */
.demo-flow-svg {
  width: 100%; max-width: 1080px; margin: 0 auto;
  background: linear-gradient(170deg, rgba(255, 252, 243, 0.9), rgba(244, 230, 204, 0.85));
  border: 1px solid rgba(122, 85, 51, 0.28); border-radius: 14px;
  padding: 14px 10px 10px;
}
.demo-flow-svg svg { width: 100%; height: auto; display: block; }
.flow-arc { fill: none; stroke: rgba(160, 58, 44, 0.5); stroke-width: 2; stroke-dasharray: 7 5; stroke-linecap: round; }
.flow-arc-under { fill: none; stroke: rgba(160, 106, 31, 0.35); stroke-width: 1.5; stroke-dasharray: 3 6; }
.flow-ring { fill: none; stroke: rgba(160, 58, 44, 0.35); stroke-width: 1.5; stroke-dasharray: 4 4; }
.flow-seal {
  fill: rgba(160, 58, 44, 0.1);
  stroke: var(--cinnabar, #a03a2c); stroke-width: 2;
}
.flow-char { text-anchor: middle; font-size: 30px; font-weight: 700; fill: var(--cinnabar, #a03a2c); }
.flow-tag { text-anchor: middle; font-size: 13px; font-weight: 700; fill: #5c3a1e; letter-spacing: 0.06em; }
.flow-sub { text-anchor: middle; font-size: 12.5px; fill: rgba(74, 53, 32, 0.75); letter-spacing: 0.06em; }
@media (max-width: 640px) {
  .flow-char { font-size: 22px; }
  .flow-tag { font-size: 10px; }
  .flow-sub { font-size: 9.5px; }
  .demo-flow-svg { padding: 6px 4px 4px; }
}

/* ================= 效果数据 ================= */
.demo-real { font-size: 11px; font-weight: 400; color: #a06a1f; letter-spacing: 0.1em; margin-left: 10px; }
.demo-note { text-align: center; font-size: 11.5px; color: rgba(74, 53, 32, 0.66); max-width: 860px; margin: 12px auto 0; line-height: 1.7; }

/* ================= v36 · 首页价值摘要 ================= */
.hero-summary {
  max-width: 720px; margin: 18px auto 0; padding: 0 18px;
  font-size: 14.5px; color: rgba(74, 53, 32, 0.88); line-height: 1.9; letter-spacing: 0.04em;
}
.hero-stats {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px;
}
.hero-stats span {
  background: rgba(255, 252, 243, 0.88);
  border: 1px solid rgba(160, 58, 44, 0.3); border-radius: 999px;
  padding: 7px 18px; font-size: 13px; color: #5c3a1e; letter-spacing: 0.08em;
}
.hero-stats b { font-size: 17px; color: var(--cinnabar, #a03a2c); margin-right: 3px; }

/* ================= v36 · 登录门游客模式 ================= */
.auth-intro { font-size: 12.5px; color: rgba(74, 53, 32, 0.8); margin: 12px 0 16px; line-height: 1.7; text-align: center; }
.auth-or { text-align: center; color: rgba(122, 85, 51, 0.55); margin: 12px 0; font-size: 12px; letter-spacing: 0.2em; }
#auth-guest { margin-top: 6px; }

/* ================= v36 · 导航工具与汉堡 ================= */
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.anim-toggle, .hamburger {
  background: rgba(255, 252, 243, 0.8);
  border: 1px solid rgba(160, 58, 44, 0.4); border-radius: 8px;
  color: var(--cinnabar, #a03a2c); font-size: 14px; font-weight: 700;
  padding: 4px 10px; cursor: pointer; line-height: 1.2;
}
.anim-toggle.off { opacity: 0.55; text-decoration: line-through; }
.hamburger { display: none; font-size: 17px; padding: 4px 11px; }
/* 移动端抽屉 */
.mobile-drawer { position: fixed; inset: 0; z-index: 1200; }
.md-mask { position: absolute; inset: 0; background: rgba(35, 22, 8, 0.45); backdrop-filter: blur(2px); }
.md-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw);
  background: linear-gradient(180deg, #fdf6e7, #f1e3c6);
  border-left: 1px solid rgba(122, 85, 51, 0.35);
  box-shadow: -12px 0 30px rgba(35, 22, 8, 0.25);
  padding: 22px 18px 28px; overflow-y: auto;
}
.md-head { font-size: 16px; font-weight: 700; color: #5c3a1e; letter-spacing: 0.14em; padding-bottom: 14px; border-bottom: 1px dashed rgba(122, 85, 51, 0.3); margin-bottom: 10px; }
.md-link {
  display: block; padding: 12px 8px; color: #5c3a1e; text-decoration: none;
  font-size: 14px; letter-spacing: 0.1em; border-bottom: 1px dashed rgba(122, 85, 51, 0.16);
}
.md-link:hover { color: var(--cinnabar, #a03a2c); background: rgba(160, 58, 44, 0.05); }
.md-auth { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.md-auth #md-user { font-size: 13px; color: #7a2f22; margin-right: auto; }
.md-note { margin-top: 20px; font-size: 11px; color: rgba(74, 53, 32, 0.55); text-align: center; }
@media (max-width: 980px) {
  .hamburger { display: inline-block; }
  .nav-links { display: none; }
}

/* ================= v36 · 茶馆标准体验任务 ================= */
.tea-demo-tasks {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin: 14px auto 0; max-width: 720px;
}
.tdt-label {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; color: #a06a1f; letter-spacing: 0.08em; font-weight: 700;
}
.tdt-label b { font-size: 13px; color: #a03a2c; letter-spacing: 0.12em; }
.tdt-label em { font-style: normal; font-size: 11px; color: rgba(74, 53, 32, 0.62); letter-spacing: 0.04em; font-weight: 400; }
.tdt-btn {
  background: rgba(255, 252, 243, 0.92);
  border: 1px solid rgba(160, 106, 31, 0.45); border-radius: 999px;
  color: #7a4a12; font-size: 12.5px; padding: 6px 14px; cursor: pointer;
  transition: all 0.2s ease; letter-spacing: 0.04em;
}
.tdt-btn:hover { background: #a06a1f; color: #fdf6e7; }
@media (max-width: 640px) {
  .tea-test-card { flex-direction: column; align-items: stretch; gap: 8px; }
  .tdt-label { width: 100%; text-align: center; }
  .tdt-btn { text-align: center; }
}
/* v58 · 标准任务紧凑卡 */
.tea-test-card {
  padding: 12px 16px;
  border: 1px solid rgba(160, 106, 31, 0.32); border-radius: 16px;
  background: rgba(255, 252, 243, 0.72);
  box-shadow: 0 6px 18px rgba(84, 55, 28, 0.06);
}

/* ================= v36 · 参赛方案案例与对比表 ================= */
.plan-cases, .plan-compare { max-width: 1080px; margin: 26px auto 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-card {
  background: linear-gradient(165deg, rgba(255, 252, 243, 0.96), rgba(244, 230, 204, 0.94));
  border: 1px solid rgba(122, 85, 51, 0.28); border-radius: 12px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.case-card b { font-size: 14.5px; color: #7a2f22; letter-spacing: 0.08em; }
.case-card p { margin: 0; font-size: 13px; color: rgba(60, 42, 24, 0.92); line-height: 1.85; }
.case-seal {
  width: 42px; height: 42px; border: 2px solid var(--cinnabar, #a03a2c); border-radius: 50%;
  color: var(--cinnabar, #a03a2c); font-size: 18px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(160, 58, 44, 0.12);
}
.compare-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; background: rgba(255, 252, 243, 0.9); }
.compare-table th, .compare-table td { border: 1px solid rgba(122, 85, 51, 0.3); padding: 10px 14px; text-align: left; }
.compare-table th { background: rgba(160, 58, 44, 0.09); color: #7a2f22; letter-spacing: 0.06em; }
.compare-table td { color: rgba(60, 42, 24, 0.92); }
.compare-table td:first-child { font-weight: 700; color: #5c3a1e; }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } .compare-table { font-size: 12px; } }

/* ================= v36 · 系统状态 ================= */
.demo-sys { margin-top: 8px; }
.sys-line {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  background: rgba(255, 252, 243, 0.9);
  border: 1px dashed rgba(122, 85, 51, 0.35); border-radius: 10px;
  padding: 12px 16px;
}
.sys-line span {
  font-size: 12px; color: rgba(74, 53, 32, 0.85); letter-spacing: 0.05em;
  background: rgba(160, 58, 44, 0.05); border-radius: 999px; padding: 4px 12px;
}
.answer-src {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(122, 85, 51, 0.25);
  font-size: 11px; color: rgba(74, 53, 32, 0.62); letter-spacing: 0.03em;
}
@media (max-width: 640px) { .answer-src { font-size: 10.5px; } .sys-line { gap: 8px; } .sys-line span { width: 100%; text-align: center; } }

/* ================= v36 · 页脚隐私版权 ================= */
.foot-legal { max-width: 1080px; margin: 0 auto; padding: 10px 20px 26px; }
.foot-legal p { font-size: 11.5px; color: rgba(74, 53, 32, 0.7); line-height: 1.8; margin: 4px 0; text-align: center; letter-spacing: 0.03em; }

/* ================= v36 · 无障碍与减少动画 ================= */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(160, 58, 44, 0.55); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body.no-anim .scroll-painting, body.no-anim .night-layer, body.no-anim .rain-layer,
body.no-anim .clouds, body.no-anim .crane, body.no-anim #ink-canvas, body.no-anim #ink-trail {
  animation: none !important; transition: none !important;
}

/* ================= v37 · 画卷展开加载动画 ================= */
.boot-veil {
  position: fixed; inset: 0; z-index: 99999;
  background: linear-gradient(170deg, #f8f0dd, #e9d9b8);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.boot-veil.done { opacity: 0; visibility: hidden; }
.bv-scroll { text-align: center; animation: bvUp 1.2s ease both; }
.bv-title {
  font-size: 30px; letter-spacing: 0.5em; text-indent: 0.5em;
  color: #7a2f22; font-weight: 700; display: block; margin-bottom: 18px;
}
.bv-line { display: block; width: 220px; height: 3px; margin: 0 auto; position: relative; overflow: hidden; background: rgba(160,58,44,0.15); }
.bv-line i { position: absolute; left: -60%; top: 0; bottom: 0; width: 60%; background: linear-gradient(90deg, transparent, #a03a2c, transparent); animation: bvSweep 1.3s ease infinite; }
@keyframes bvUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bvSweep { from { left: -60%; } to { left: 120%; } }

/* ================= v37 · 首屏非对称主视觉 ================= */
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 26px 20px 8px;
}
.hero-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-left .head-orn { margin-left: 0; justify-content: center; }
.hero-left .main-title { text-align: center; margin: 10px 0 6px; }
.hero-left .sub-title { text-align: center; margin: 0 0 14px; }
.hero-left .hero-summary { margin: 0 0 16px; padding: 0; text-align: center; font-size: 15px; }
.hero-left .hero-stats { justify-content: center; margin: 0 0 20px; }
.hero-right { position: relative; }
.hero-figure {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 46px rgba(74,53,32,0.28);
  border: 1px solid rgba(122,85,51,0.4);
}
.hero-figure img { display: block; width: 100%; height: auto; object-fit: cover; }
.hero-fig-name {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 18px; color: #fdf6e7; letter-spacing: 0.4em; text-indent: 0.4em;
  background: linear-gradient(90deg, rgba(122,47,34,0.82), rgba(122,47,34,0.55));
  padding: 5px 14px 5px 12px; border-radius: 999px 4px 4px 999px;
}
.hero-dialogue {
  position: absolute; right: -14px; top: 16px; width: 230px;
  background: #fdf6e7; border: 1px solid rgba(160,58,44,0.45);
  border-radius: 12px 12px 12px 4px; box-shadow: 0 12px 30px rgba(74,53,32,0.25);
  padding: 12px 14px; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-dialogue:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(74,53,32,0.32); }
.hd-seal {
  display: inline-block; background: #a03a2c; color: #fdf6e7;
  font-size: 11px; letter-spacing: 0.14em; padding: 2px 8px; border-radius: 4px; margin-bottom: 7px;
}
.hd-text { margin: 0 0 8px; font-size: 13px; line-height: 1.75; color: #4a3520; }
.hd-hint { font-size: 11.5px; color: #7a5533; letter-spacing: 0.06em; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
  .hero-left { text-align: center; align-items: center; }
  .hero-left .head-orn, .hero-left .main-title, .hero-left .sub-title, .hero-left .hero-summary { text-align: center; }
  .hero-left .hero-summary { margin-left: auto; margin-right: auto; }
  .hero-left .hero-stats { justify-content: center; }
  .hero-right { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-dialogue { right: 6px; top: 10px; width: 200px; }
}

/* ================= v37 · 无障碍视觉隐藏标签 ================= */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; overflow: hidden;
}

/* ================= v37 · 参赛方案艺术化（题跋/长卷/书签/幕布） ================= */
.plan-art { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.plan-colophon {
  position: relative; background: #fbf3e2; border-left: 5px solid #a03a2c;
  padding: 22px 46px 22px 28px; border-radius: 4px 14px 14px 4px;
  box-shadow: inset 0 0 0 1px rgba(122,85,51,0.18);
}
.plan-colophon h3 { margin: 0 0 10px; font-size: 20px; color: #7a2f22; letter-spacing: 0.2em; }
.plan-colophon p { margin: 0; font-size: 14.5px; line-height: 1.95; color: #4a3520; letter-spacing: 0.02em; }
.colophon-seal {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border: 2px solid #a03a2c; border-radius: 50%;
  color: #a03a2c; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(160,58,44,0.14);
}
.plan-scroll {
  background: linear-gradient(180deg, #f8eed8, #efdfc0);
  border: 1px solid rgba(122,85,51,0.3); border-radius: 12px;
  padding: 24px 30px;
}
.plan-scroll h3 { margin: 0 0 12px; font-size: 20px; color: #7a2f22; letter-spacing: 0.2em; }
.scroll-steps {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
.scroll-steps span {
  width: 46px; height: 46px; border-radius: 50%;
  background: #a03a2c; color: #fdf6e7; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(160,58,44,0.3);
}
.scroll-steps i { color: #a06a1f; font-style: normal; font-size: 16px; }
.plan-scroll p { margin: 0; font-size: 14.5px; line-height: 1.95; color: #4a3520; letter-spacing: 0.02em; }
.plan-bookmarks {
  background: #fbf3e2; border: 1px solid rgba(122,85,51,0.26);
  border-radius: 12px; padding: 24px 28px;
}
.plan-bookmarks h3 { margin: 0 0 16px; font-size: 20px; color: #7a2f22; letter-spacing: 0.2em; }
.bm-list { display: flex; flex-direction: column; gap: 12px; }
.bm {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(90deg, rgba(160,58,44,0.06), transparent);
  border-left: 4px solid #a03a2c; padding: 12px 16px; border-radius: 0 8px 8px 0;
}
.bm i {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px 12px 6px 12px;
  background: #a03a2c; color: #fdf6e7; font-style: normal;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.bm p { margin: 0; font-size: 14px; line-height: 1.8; color: #4a3520; letter-spacing: 0.02em; }
.plan-curtain {
  position: relative; background: #2c1c10;
  border-radius: 12px; padding: 26px 30px; overflow: hidden;
}
.plan-curtain::before, .plan-curtain::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 26%;
  background: repeating-linear-gradient(90deg, #7a1212 0 8px, #5e0e0e 8px 16px);
  opacity: 0.85;
}
.plan-curtain::before { left: 0; border-radius: 12px 0 0 12px; }
.plan-curtain::after { right: 0; border-radius: 0 12px 12px 0; }
.plan-curtain h3 { margin: 0 0 14px; font-size: 20px; color: #f0d9a8; letter-spacing: 0.2em; text-align: center; position: relative; z-index: 1; }
.curtain-scenes {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; position: relative; z-index: 1; flex-wrap: wrap;
}
.curtain-scenes span {
  background: #e9b84a; color: #4a2a08; font-size: 13px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; letter-spacing: 0.2em;
}
.plan-curtain p { margin: 0; font-size: 14.5px; line-height: 1.95; color: #e8d9b8; letter-spacing: 0.02em; text-align: center; position: relative; z-index: 1; }
@media (max-width: 640px) {
  .plan-colophon { padding: 18px 20px 18px 20px; }
  .colophon-seal { right: 10px; width: 44px; height: 44px; font-size: 18px; }
  .plan-scroll, .plan-bookmarks, .plan-curtain { padding: 18px 16px; }
  .bm { padding: 10px 12px; }
}

/* ================= v37 · 能力演示测试块 ================= */
.demo-test {
  margin-top: 18px; padding: 16px 20px;
  background: rgba(255, 252, 243, 0.92);
  border: 1px dashed rgba(160, 58, 44, 0.4); border-radius: 12px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.dt-head { display: flex; flex-direction: column; gap: 4px; }
.dt-head b { font-size: 15px; color: #7a2f22; letter-spacing: 0.12em; }
.dt-head span { font-size: 12px; color: #68472d; }
.dt-result { font-size: 13.5px; color: #4a3520; line-height: 1.8; letter-spacing: 0.02em; }
.dt-result b { color: #a03a2c; }
@media (max-width: 640px) { .demo-test { align-items: stretch; } }

/* ================= v37 · 对比度与排版收束 ================= */
.ch-en { color: #7a5533; }
.stat-card span, .sys-line span, .answer-src, .demo-note, .fd-note,
.foot-legal p, .dt-head span, .tdt-label, .hero-dialogue .hd-hint {
  color: #68472d;
}
.stat-card b { color: #7a2f22; }
.answer-body p, .case-card p, .plan-colophon p, .plan-scroll p, .plan-curtain p,
.hero-summary, .qa-empty {
  letter-spacing: 0.02em;
}
.demo-title { font-size: 19px; margin: 6px 0 14px; letter-spacing: 0.18em; color: #7a2f22; font-weight: 700; text-align: center; }
/* 章节 h2 视觉保持 */
.chapter-rule { font-size: 26px; margin: 0 0 10px; display: flex; align-items: center; justify-content: center; gap: 14px; letter-spacing: 0.14em; color: #7a2f22; font-weight: 700; }
@media (max-width: 640px) { .chapter-rule { font-size: 21px; flex-wrap: wrap; gap: 8px; } }

/* ================= v37.1 · 经典片段与戏单星形细节 ================= */
/* 经典片段：隐藏原生进度条与时间数字，保留播放/音量/全屏；唱词进度由下方字幕匾额呈现 */
.clip-screen video::-webkit-media-controls-timeline,
.clip-screen video::-webkit-media-controls-current-time-display,
.clip-screen video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}
.clip-screen video { display: block; width: 100%; background: #140b06; }
/* 收藏星形：切换时保持同轮廓（统一描边），杜绝跳动偏移 */
.fav-btn svg { vertical-align: 0; }
.fav-btn .star-on { transform: none; }

/* ================= v39 · 视频自定义播放 / 首屏 / 焦点 ================= */
.clip-screen { position: relative; background: #140b06; border-radius: 10px; overflow: hidden; }
.clip-playbtn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%; border: 2px solid rgba(253, 246, 231, 0.5);
  background: rgba(160, 58, 44, 0.88); color: #fdf6e7; font-size: 22px; line-height: 1;
  cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); transition: opacity 0.35s ease, transform 0.25s ease;
}
.clip-playbtn:hover { transform: translate(-50%, -50%) scale(1.1); }
.clip-screen.playing .clip-playbtn { opacity: 0; pointer-events: none; }

/* 首屏：数字人融入画卷（去圆角卡片感，墨色晕边） */
.hero-figure {
  position: relative; overflow: hidden;
  border-radius: 6px 6px 42% 6px;
  box-shadow: 0 10px 30px rgba(74, 53, 32, 0.22);
  border: none;
  mask-image: radial-gradient(115% 100% at 50% 12%, #000 78%, transparent 99%);
  -webkit-mask-image: radial-gradient(115% 100% at 50% 12%, #000 78%, transparent 99%);
}
.hero-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 8%, transparent 66%, rgba(74, 53, 32, 0.22));
}
.hero-dialogue {
  position: absolute; left: -18px; bottom: 18px; top: auto; right: auto;
  width: 236px; text-align: left; font: inherit;
  background: #fdf6e7; border: 1px solid rgba(160, 58, 44, 0.45);
  border-radius: 4px 14px 14px 14px; box-shadow: 0 12px 30px rgba(74, 53, 32, 0.25);
  padding: 12px 14px; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}
.hero-dialogue:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(74, 53, 32, 0.32); }
.hero-dialogue:focus-visible { outline: 2px solid #a03a2c; outline-offset: 2px; }
.hd-seal {
  display: inline-block; background: #a03a2c; color: #fdf6e7;
  font-size: 11px; letter-spacing: 0.14em; padding: 2px 8px; border-radius: 4px; margin-bottom: 7px;
}
.hd-text { display: block; margin: 0 0 8px; font-size: 13px; line-height: 1.75; color: #4a3520; }
.hd-hint { font-size: 11.5px; color: #7a5533; letter-spacing: 0.06em; }
@media (max-width: 860px) {
  .hero-right { order: -1; }
  .hero-dialogue { left: 8px; bottom: 12px; width: 200px; }
}

/* 导航当前章节高亮 */
.nav-link.active { color: #a63a2b; border-bottom-color: #a63a2b; font-weight: 700; }
.nav-link:focus-visible { outline: 2px solid #a03a2c; outline-offset: 2px; }

/* ================= v40 · 视频完整控制条 / fallback / 状态 ================= */
.clip-screen video { display: block; width: 100%; background: #140b06; }
.clip-playbtn { display: flex; }
.clip-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(160deg, #241408, #0f0703); z-index: 1; }
.clip-fallback[hidden] { display: none; }
/* v48 · 无视频剧目：封面铺满 + 中央大播放按钮 + 右上角角标 —— 与有视频弹窗同款播放器外观 */
.fb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 30%, #d9543f, #a03a2c 58%, #7c2a1e);
  box-shadow: 0 0 0 5px rgba(233, 184, 74, 0.28), 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 -4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fb-play:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 7px rgba(233, 184, 74, 0.36), 0 14px 32px rgba(0, 0, 0, 0.55); }
.fb-ico { fill: #fdf6e7; display: block; margin-left: 3px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.fb-tag {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  color: #e9b84a; font-size: 11.5px; letter-spacing: 0.14em;
  background: rgba(10, 5, 2, 0.72); border: 1px solid rgba(233, 184, 74, 0.4);
  padding: 3px 12px; border-radius: 999px;
}
.clip-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(20, 11, 6, 0.72); color: #f0d9a8; font-size: 13px; letter-spacing: 0.1em; z-index: 2; }
.clip-loading[hidden] { display: none; }
.cl-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(233, 184, 74, 0.25); border-top-color: #e9b84a; animation: clipSpin 0.9s linear infinite; }
@keyframes clipSpin { to { transform: rotate(360deg); } }
.clip-err { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(20, 11, 6, 0.8); color: #f0c9b8; font-size: 14px; z-index: 2; }
.clip-err[hidden] { display: none; }
.clip-retry { background: #a03a2c; color: #fdf6e7; border: none; border-radius: 999px; padding: 6px 18px; cursor: pointer; letter-spacing: 0.12em; }
.clip-retry:hover { background: #c24634; }
.clip-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px 12px 9px;
  background: linear-gradient(0deg, rgba(10, 5, 2, 0.9), rgba(10, 5, 2, 0));
}
.clip-bar[hidden] { display: none; }
/* 优酷式两行：第一行进度条占主全宽，第二行 播放|时间 / 时间 ······ 静音|音量|全屏 */
.cb-prow { display: flex; align-items: center; width: 100%; }
.cb-prow input[type="range"] { flex: 1; }
.cb-crow { display: flex; align-items: center; gap: 7px; width: 100%; }
.cb-btn { background: none; border: none; color: #fdf6e7; font-size: 14px; cursor: pointer; padding: 3px 5px; line-height: 1; }
.cb-btn:hover { color: #e9b84a; }
.cb-btn .ico-ico { fill: #fdf6e7; display: block; }
.cb-btn:hover .ico-ico { fill: #e9b84a; }
.cp-ico { fill: #fdf6e7; display: block; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.clip-playbtn .cp-pause[hidden] { display: none; }
.cb-time { color: #f0d9a8; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-sep { color: rgba(240, 217, 168, 0.45); font-size: 11px; }
.cb-spacer { flex: 1; }
.clip-bar input[type="range"] {
  min-width: 40px; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(240, 217, 168, 0.35); border-radius: 2px; outline: none; cursor: pointer;
}
.clip-bar input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: rgba(240, 217, 168, 0.35);
}
.clip-bar input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 2px; background: rgba(240, 217, 168, 0.35);
}
.clip-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%;
  background: #e9b84a; border: none; cursor: pointer;
}
.clip-bar input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #e9b84a; border: none; cursor: pointer; }
/* 音量滑块：固定窄宽，不随进度条拉伸 */
#cb-volume { flex: 0 0 auto; width: 56px; accent-color: #e9b84a; margin: 0 2px 0 4px; }
#cb-volume::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; }
#cb-volume::-moz-range-thumb { width: 12px; height: 12px; }
@media (max-width: 640px) {
  #cb-volume { width: 44px; }
}
.clip-screen:fullscreen video { height: 100%; object-fit: contain; }
.clip-screen:fullscreen .clip-bar { bottom: 0; }
/* 播放一次后中央大按钮永久隐藏，避免与底部控制条重复 */
.clip-screen.started .clip-playbtn { display: none; }

/* 弹窗右侧竖向滚动条：细条深色，不再是浏览器默认白条 */
.clip-frame { scrollbar-width: thin; scrollbar-color: #a03a2c rgba(47, 36, 22, 0.08); }
.clip-frame::-webkit-scrollbar { width: 6px; }
.clip-frame::-webkit-scrollbar-track { background: rgba(47, 36, 22, 0.08); }
.clip-frame::-webkit-scrollbar-thumb { background: #a03a2c; border-radius: 999px; }

/* 唱段参考标签 */
.clip-ref { display: inline-block; font-size: 11px; color: #68472d; letter-spacing: 0.14em; margin-bottom: 2px; }

/* 手机端弹窗顺序：视频→控制条→唱词→提示→音频→下载 */
@media (max-width: 860px) {
  .clip-info { display: flex; flex-direction: column; }
  .clip-info .clip-ref { order: 0; }
  .clip-info .clip-line { order: 1; }
  .clip-info .clip-note { order: 2; }
  .clip-info .clip-audio { order: 3; }
  .clip-info .clip-actions { order: 4; }
}

/* ================= v40 · 手机首屏：人物限高，标题/按钮同屏可见 ================= */
/* v47 修正：窄屏不再硬裁 38vh（会截断全身照），改为 contain 完整显示全身并水平居中 */
@media (max-width: 860px) {
  .hero-figure { max-height: 58vh; }
  .hero-figure img { object-fit: contain; height: 58vh; width: auto; max-width: 100%; margin: 0 auto; object-position: center top; }
  .hero-right { order: -1; }
  .hero-dialogue { left: 8px; bottom: 10px; width: 190px; }
}

/* ================= v40 · 剧场缩略条滑动提示 ================= */
.thumbs-wrap { position: relative; }
.thumbs-fade { position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; z-index: 2; }
.thumbs-fade.l { left: 0; background: linear-gradient(90deg, #f3e7c9, transparent); }
.thumbs-fade.r { right: 0; background: linear-gradient(270deg, #f3e7c9, transparent); }
.thumbs-hint { text-align: center; font-size: 12px; color: #68472d; letter-spacing: 0.1em; margin-top: 6px; }

/* 演示测试日志与结果 */
.dt-result { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.dt-result > div { line-height: 1.7; }
.dt-final { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(160, 58, 44, 0.4); font-family: inherit; }
.dt-final b { color: #a03a2c; }


/* ================= v42 · 登录面板：入场券视觉 / 关闭 / 小屏 / 密码显隐 / 个人中心 ================= */
.auth-close {
  position: absolute; right: 14px; top: 12px; z-index: 5;
  background: none; border: 1px solid rgba(160, 58, 44, 0.4); border-radius: 50%;
  width: 30px; height: 30px; color: #a03a2c; font-size: 14px; line-height: 1;
  cursor: pointer;
}
.auth-close:hover { background: rgba(160, 58, 44, 0.1); color: #7a3325; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 15px; cursor: pointer; color: #7a5533; padding: 4px;
}
.pw-eye:hover { color: #a03a2c; }
.auth-profile { margin-top: 10px; }
.ap-row { font-size: 13.5px; line-height: 1.9; color: #4b3a24; }
.ap-row b { color: #a03a2c; }
.auth-profile .btn { margin-top: 10px; }
.auth-gate {
  display: flex; align-items: flex-start; overflow-y: auto;
  padding: 24px 12px;
}
.auth-panel { max-height: 92vh; overflow-y: auto; margin: auto; }
.auth-foot { font-size: 12.5px; line-height: 1.7; color: #68472d; }
@media (max-width: 480px) {
  .auth-panel { max-height: 86vh; }
}


/* ================= v43 · 视频图标 / 音量滑块 / 输入框 / hero 对齐 / 手机 chips / 方案折叠 ================= */
/* 修复 SVG hidden 被 display:block 覆盖：播放/暂停、音量/静音图标只能显示其一 */
.cb-btn .ico-ico[hidden], .clip-playbtn .cp-ico[hidden] { display: none !important; }
/* 登录输入框宽度统一（用户名与包在 .pw-wrap 内的密码框等宽） */
.auth-form input, .pw-wrap input { width: 100%; box-sizing: border-box; }
.pw-wrap { width: 100%; }
/* 标题左对齐时，"戏"字印章装饰行与标题左边缘对齐，不再内部居中错位 */
.hero-left .head-orn { align-self: center; justify-content: center; }
/* 音量滑块 */
#cb-volume { width: 74px; accent-color: #e9b84a; margin: 0 2px 0 4px; }
/* 手机端：提示词默认 4 条 + 更多问题按钮（视频控制条已为两行优酷式，无需额外换行） */
/* v58 · 全端生效：提示词默认 4 条，展开后限高滚动，不再把页面撑长 */
.tea-chips .chip:nth-child(n + 5) { display: none; }
.tea-chips.show-all .chip { display: inline-flex; }
html.boot-lock { overflow: hidden; }
.tea-chips.show-all { max-height: 300px; overflow-y: auto; padding-right: 4px; }
/* v64/v65/v66 展开后：内部最后一行与容器底留白 + 容器与下方答案区明确拉开 */
.tea-chips.show-all { margin-bottom: 44px; padding-bottom: 14px; }
.tea-more {
  display: block;
  margin: 10px auto 0; padding: 6px 16px;
  background: rgba(255, 252, 243, 0.92); border: 1px dashed rgba(160, 58, 44, 0.5); border-radius: 999px;
  color: #a03a2c; font-size: 12.5px; cursor: pointer; letter-spacing: 0.05em;
}
.tea-more:hover { background: rgba(160, 58, 44, 0.08); }
/* 参赛方案折叠 */
.plan-fold { margin-top: 10px; }
.plan-fold summary {
  cursor: pointer; list-style: none;
  padding: 14px 18px; border: 1px dashed rgba(160, 58, 44, 0.45); border-radius: 12px;
  background: rgba(255, 250, 240, 0.55);
}
.plan-fold summary::-webkit-details-marker { display: none; }
.plan-summary { display: flex; flex-direction: column; gap: 6px; }
.ps-title { font-weight: 700; color: #7a3325; font-size: 15px; letter-spacing: 0.06em; }
.ps-line { font-size: 13.5px; color: #4b3a24; }
.fold-caret { color: #a03a2c; font-size: 12px; margin-top: 2px; transition: transform 0.2s; }
.plan-fold[open] .fold-caret { transform: rotate(180deg); }
.plan-fold .plan-art, .plan-fold .plan-cases, .plan-fold .plan-compare { margin-top: 16px; }


/* ================= v45 · 视频控制条平台化 + 登录注册链接入场券风格 ================= */
/* 控制条：优酷/爱奇艺式深色渐变浮层、hover 反馈、等宽时间 */
.clip-bar {
  padding: 12px 14px 9px;
  background: linear-gradient(0deg, rgba(8, 4, 1, 0.94) 0%, rgba(8, 4, 1, 0.6) 55%, rgba(8, 4, 1, 0) 100%);
}
.cb-btn { padding: 6px 8px; border-radius: 6px; transition: background 0.15s, transform 0.15s; }
.cb-btn:hover { background: rgba(233, 184, 74, 0.16); transform: translateY(-1px); }
.cb-time { font-size: 12px; color: #fdf6e7; min-width: 36px; text-align: center; }
.clip-bar input[type="range"] {
  height: 5px; background: rgba(253, 246, 231, 0.4); border-radius: 3px;
}
.clip-bar input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px; background: rgba(253, 246, 231, 0.4);
}
.clip-bar input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 3px; background: rgba(253, 246, 231, 0.4);
}
.clip-bar input[type="range"]::-webkit-slider-thumb {
  width: 14px; height: 14px; margin-top: -4.5px; background: #e9b84a;
  box-shadow: 0 0 0 3px rgba(233, 184, 74, 0.22);
}
.clip-bar input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: #e9b84a; }
.clip-bar input[type="range"]:hover::-webkit-slider-runnable-track { height: 6px; }
.clip-bar input[type="range"]:hover::-moz-range-track { height: 6px; }
.clip-bar input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
/* 大播放按钮：爱奇艺式圆形半透明底 + 白三角 + 红色晕 */
.clip-playbtn {
  width: 68px; height: 68px;
  background: radial-gradient(circle at 50% 40%, rgba(176, 58, 43, 0.9), rgba(122, 51, 37, 0.72));
  border: 1px solid rgba(253, 246, 231, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(233, 184, 74, 0.12);
}
.clip-playbtn:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(233, 184, 74, 0.2); }
/* 登录面板：注册链接入场券风格（消除浏览器默认白按钮） */
.auth-reglink {
  display: inline-block; margin: 4px auto 0; padding: 7px 18px;
  background: rgba(250, 240, 216, 0.6); border: 1px dashed rgba(160, 58, 44, 0.55); border-radius: 999px;
  color: #a03a2c; font-size: 12.5px; letter-spacing: 0.1em; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.auth-reglink:hover { background: rgba(250, 240, 216, 1); border-color: #a03a2c; color: #7a3325; }
.auth-form .btn-block { margin-top: 4px; }


/* ==================== v46 · 视频控件精调 ==================== */
/* 1) 视频弹窗右侧滚动条彻底隐藏（内容仍可滚动，视觉上无白框竖条） */
.clip-frame {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.clip-frame::-webkit-scrollbar {
  display: none;
  width: 0;
}

/* 2) 播放进度条稍微拉大：轨道加厚、滑块放大（仅作用于 #cb-progress） */
.clip-bar input[type="range"]#cb-progress::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; }
.clip-bar input[type="range"]#cb-progress::-moz-range-track { height: 6px; border-radius: 3px; }
.clip-bar input[type="range"]#cb-progress::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5px; }
.clip-bar input[type="range"]#cb-progress::-moz-range-thumb { width: 16px; height: 16px; }
.clip-bar input[type="range"]#cb-progress:hover::-webkit-slider-runnable-track { height: 8px; }
.clip-bar input[type="range"]#cb-progress:hover::-moz-range-track { height: 8px; }

/* 3) 音量滑块稍微收窄（进度条外的音量条保持小尺寸） */
#cb-volume { width: 56px; }
#cb-volume::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; }
#cb-volume::-moz-range-thumb { width: 12px; height: 12px; }
@media (max-width: 640px) {
  #cb-volume { width: 44px; }
}

/* ==================== v48 · 原生白色 audio 控件移除 → 墨色自定义试听条 ==================== */
/* 弹窗内 audio 不再使用浏览器原生控件（Chrome 默认白色进度条），无 controls 即不渲染 */
audio#clip-audio { display: block; width: 0; height: 0; position: absolute; opacity: 0; pointer-events: none; }
.ca-wrap {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 2px; padding: 7px 10px;
  background: linear-gradient(160deg, #2a1a10, #1d1209);
  border: 1px solid rgba(160, 58, 44, 0.55);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ca-wrap[hidden] { display: none; }
.ca-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #a03a2c; color: #fdf6e7; border: none;
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
  font-size: 12px; letter-spacing: 0.08em; line-height: 1;
}
.ca-btn:hover { background: #c24634; }
.ca-btn .ca-ico { fill: #fdf6e7; display: block; }
.ca-btn .ca-pause[hidden] { display: none; }
.ca-progress {
  flex: 1; min-width: 40px; height: 3px; -webkit-appearance: none; appearance: none;
  background: rgba(240, 217, 168, 0.35); border-radius: 2px; outline: none; cursor: pointer;
}
.ca-progress::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: rgba(240, 217, 168, 0.35); }
.ca-progress::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(240, 217, 168, 0.35); }
.ca-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: #e9b84a; border: none; cursor: pointer; }
.ca-progress::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #e9b84a; border: none; cursor: pointer; }
.ca-time { color: #e8cfa0; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ca-sep { color: rgba(232, 207, 160, 0.45); font-size: 11px; }
@media (max-width: 640px) {
  .ca-wrap { flex-wrap: wrap; row-gap: 6px; }
  .ca-progress { order: 4; flex-basis: 100%; }
  .ca-time { font-size: 10.5px; }
}
/* 视频控制条：进度条占主 + 播放键左 + 音量右（优酷/爱奇艺式），手机端控制行自动收紧 */
@media (max-width: 640px) {
  .cb-crow { gap: 4px; }
  .cb-time { font-size: 10.5px; }
  .clip-bar { padding: 6px 8px 7px; gap: 4px; }
  .cb-btn { padding: 2px 3px; }
}
/* ================= v54 · 云端 Agent ================= */
.cloud-toggle {
  font-size: 12px; letter-spacing: 0.05em; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(122, 85, 51, 0.4);
  background: rgba(255, 252, 243, 0.9); color: #68472d;
  transition: all 0.2s ease;
}
.cloud-toggle[aria-pressed="true"] {
  background: rgba(160, 58, 44, 0.12);
  border-color: rgba(160, 58, 44, 0.55);
  color: #7a2f22;
}
.cloud-toggle:hover { border-color: rgba(160, 58, 44, 0.75); }
.answer-degrade {
  margin-top: 9px; padding-top: 7px;
  border-top: 1px dashed rgba(160, 106, 31, 0.4);
  font-size: 11.5px; line-height: 1.6;
  color: #a06a1f; letter-spacing: 0.03em;
}
/* ================= v55 · 手办活起来 ================= */
/* 铭牌（fig-card 内） */
.fig-card { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fig-idrow { display: inline-flex; align-items: center; gap: 8px; }
.fp-mark {
  display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 6px; background: var(--cinnabar); color: #fdf6e8;
  font-size: 14px; font-weight: 700; box-shadow: 0 0 0 1px rgba(216, 185, 92, 0.6);
  animation: markBreath 3.6s ease-in-out infinite;
}
@keyframes markBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.fp-name { font-size: 23px; font-weight: 700; letter-spacing: 0.5em; text-indent: 0.5em; color: #f8efdc; }

/* 手办状态：待机 → 醒来 */
.figure-frame.asleep .figure-img-holder img { filter: saturate(0.78) brightness(0.97); }
.figure-stage.alive .figure-img-holder img { animation: figFloat 3.4s ease-in-out infinite; }
@keyframes figFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.figure-frame.awake img { animation: figBlink 4.2s ease-in-out; }
@keyframes figBlink {
  0%, 100% { opacity: 1; }
  6% { opacity: 0.55; }
  10% { opacity: 1; }
  16% { opacity: 0.6; }
  22% { opacity: 1; }
}
.figure-frame.wiggle { animation: figWiggle 0.55s ease-in-out; }
@keyframes figWiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-2.5deg) translateX(-3px); }
  40% { transform: rotate(2deg) translateX(2px); }
  60% { transform: rotate(-1.5deg); }
  80% { transform: rotate(1deg); }
}
.figure-frame.dragging { transition: transform 0.06s linear; cursor: grabbing; }

/* 粒子特效 */
.ptcl {
  position: absolute; z-index: 9; pointer-events: none;
  color: #e9b84a; text-shadow: 0 0 6px rgba(233, 184, 74, 0.9);
  animation: ptclRise 1.5s ease-out forwards;
}
@keyframes ptclRise {
  0% { opacity: 0; transform: translateY(10px) scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-38px) scale(1.2); }
}

/* 交互条 */
.fig-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin-top: 2px; position: relative; z-index: 2;
}
.fig-hint { font-size: 12px; color: rgba(74, 53, 32, 0.68); letter-spacing: 0.06em; }
.fig-collect {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(160, 58, 44, 0.1); border: 1px dashed rgba(160, 58, 44, 0.45);
  color: #7a2f22; letter-spacing: 0.08em; white-space: nowrap;
}

@media (max-width: 760px) {
  .fig-hint { display: none; }
}

/* ================= v56 · 3D 立体人物旋转台 ================= */
/* 去掉卡片式外框，人物本体悬浮于 3D 空间 */
.figure-frame {
  background: none; border: none; box-shadow: none;
  padding: 0; border-radius: 0; overflow: visible;
  /* v62 修复：去掉旧卡片定宽残留，容器按内容自适应，人物立像水平居中与台子对齐 */
  width: auto;
  display: flex;
  justify-content: center;
  /* v63 修复：人物置于台子前方，脚踩圆盘（不被台子盖住） */
  z-index: 3;
}
.figure-img-holder {
  background: none; border-radius: 0; overflow: visible;
}
#main-figure-img {
  display: block; height: min(440px, 56vh); width: auto; margin: 0 auto;
  filter: drop-shadow(0 14px 20px rgba(47, 36, 22, 0.28));
  transform: translateZ(0);
}
.figure-3d {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.34, 1);
  will-change: transform;
}
.figure-3d.dragging { transition: transform 0.06s linear; }
.figure-3d.flipping { transform: rotateY(70deg) scale(0.94); }

/* 背部光晕（z 轴后方，旋转时产生空间纵深感）——已调弱，避免头顶发白 */
.fig-halo {
  position: absolute; left: 50%; top: 48%;
  width: 130%; height: 66%;
  transform: translate(-50%, -50%) translateZ(-48px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(233, 184, 74, 0.28), rgba(233, 184, 74, 0.06) 55%, transparent 72%);
  filter: blur(18px); opacity: 0.16;
  pointer-events: none; z-index: 0;
}
/* 高光扫掠（z 轴前方，随旋转在人物身上游走）——已调弱，只扫身不扫头 */
.fig-sheen {
  position: absolute; inset: 0;
  transform: translateZ(30px);
  background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 222, 0.30) 50%, transparent 60%);
  mix-blend-mode: screen; opacity: 0.14;
  pointer-events: none; z-index: 3;
}
/* 立体底座（手办站台圆盘 + 铭牌） */
.fig-plinth {
  position: relative; z-index: 2;
  margin-top: -18px; width: min(330px, 78%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center;
}
.fp-disc {
  width: 74%; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #f6e3b4, #c9a25c 62%, #8a642f);
  box-shadow: 0 8px 16px rgba(47, 36, 22, 0.4), inset 0 -4px 8px rgba(47, 36, 22, 0.28);
  margin-bottom: 2px;
}
.fig-plinth .fp-name { color: #3c2d1a; }
.fig-plinth .fig-role { color: #7a5a2e; }
/* 地面投影（随旋转伸缩位移，增强立体感） */
.fig-shadow {
  position: relative; z-index: 1;
  margin-top: -10px; width: min(300px, 70%); height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(47, 36, 22, 0.4), transparent 66%);
  filter: blur(7px);
  transform-origin: center;
  transition: transform 0.12s ease-out, opacity 0.12s ease-out;
  pointer-events: none;
}
.figure-stage { perspective: 1200px; }

/* ================= v59 · 立像回中 ================= */
/* 卸掉旧卡片外框的暗角衬层，让人物本体干净悬浮 */
.figure-img-holder::after { display: none; }
.figure-img-holder { position: relative; display: inline-block; margin-bottom: -4px; }
/* 静立也有呼吸浮动，不显得死气沉沉 */
.figure-stage .figure-img-holder img { animation: figIdle 5.6s ease-in-out infinite; }
@keyframes figIdle { 0%, 100% { transform: translateY(0) rotateZ(0deg); } 50% { transform: translateY(-4px) rotateZ(0.35deg); } }
