/* ==========================================================================
   《荔枝三日 · 杨玉环》盛唐主题皮肤：宫墨 · 荔枝朱 · 鎏金 · 宣纸
   覆盖层：加载于 styles.css 之后，仅作用于主站 index.html
   ========================================================================== */

:root {
  --paper: #f4ede1;
  --paper-deep: #ebe1cf;
  --ink: #1a1410;
  --ink-soft: #2a211b;
  --body: #5a4d42;
  --muted: #948676;
  --mist: #e9dfcb;
  --surface: rgba(255, 251, 243, 0.82);
  --surface-solid: #fffaf1;
  --bg-deep: #f4ede1;
  --bg-card: #fffaf1;
  --bg-elevated: #f8f1e4;
  --text-main: #1a1410;
  --text-muted: #5a4d42;
  --text-dim: #948676;
  --gold: #b8893a;
  --gold-bright: #e2c27a;
  --gold-soft: rgba(184, 137, 58, 0.14);
  --crimson: #a8231c;
  --crimson-deep: #7d1712;
  --crimson-soft: rgba(168, 35, 28, 0.09);
  --peacock: #2f5d57;
  --peacock-bright: #2f5d57;
  --border: rgba(90, 64, 36, 0.16);
  --border-gold: rgba(184, 137, 58, 0.42);
  --font-callig: "Ma Shan Zheng", "STXingkai", "KaiTi", cursive;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Serif SC", "Inter", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --gold-grad: linear-gradient(180deg, #f6e3ad 0%, #d9b267 42%, #a8792c 70%, #e9cd8a 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(184, 137, 58, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(168, 35, 28, 0.05), transparent 60%);
  color: var(--ink);
  letter-spacing: 0.01em;
}

::selection { background: rgba(168, 35, 28, 0.85); color: #fff8ea; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: #c9b48f; }
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }

/* ---------------- 顶部导航：宫墨磨砂 + 金丝线 ---------------- */
.topbar {
  padding: 10px 32px;
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.94), rgba(26, 19, 15, 0.9));
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(226, 194, 122, 0.22);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 10px 30px rgba(10, 6, 4, 0.18);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 194, 122, 0.85) 30%, rgba(226, 194, 122, 0.85) 70%, transparent);
  opacity: 0.55;
}

.brand { gap: 10px; align-items: center; }
.brand-callig {
  font-family: var(--font-callig);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.04em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  padding: 2px 2px 0;
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand:hover .brand-callig {
  filter: drop-shadow(0 0 12px rgba(226, 194, 122, 0.55));
  transform: translateY(-1px);
}
.brand-seal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 34px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: #fff3e0;
  background: radial-gradient(circle at 30% 25%, #c6362b, var(--crimson) 55%, var(--crimson-deep));
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 230, 200, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(-4deg);
  text-align: center;
}

.nav-btn {
  position: relative;
  color: rgba(244, 233, 210, 0.72);
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.nav-btn:hover {
  color: var(--gold-bright);
  background: rgba(226, 194, 122, 0.07);
}
.nav-btn.active {
  color: #f7e6bd;
  background: transparent;
  font-weight: 600;
}
.nav-btn.active::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 1px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.nav-btn.active::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 5px; height: 5px;
  background: var(--gold-bright);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(226, 194, 122, 0.8);
}
.nav-game-link {
  background: linear-gradient(180deg, #b32a21, var(--crimson-deep));
  border: 1px solid rgba(226, 194, 122, 0.55);
  color: #fff1d8;
  margin-left: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.25), 0 4px 12px rgba(125, 23, 18, 0.35);
}
.nav-game-link:hover {
  background: linear-gradient(180deg, #c8372c, #8e1b15);
  color: #fff;
  border-color: var(--gold-bright);
}

.bgm-widget {
  background: rgba(255, 240, 210, 0.05);
  border: 1px solid rgba(226, 194, 122, 0.28);
  padding: 4px 10px 4px 5px;
}
.bgm-select {
  color: rgba(244, 233, 210, 0.85);
  font-family: var(--font-serif);
}
.bgm-select option, .bgm-select optgroup { background: #1d1611; color: #f2e6cc; }
.icon-btn {
  color: #f2e2b8;
  border-color: rgba(226, 194, 122, 0.4);
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
}
.icon-btn:hover { background: rgba(226, 194, 122, 0.12); }
.icon-btn.playing {
  background: var(--gold-grad);
  color: #2a1a0c;
  border-color: transparent;
}
.topbar .vol-control {
  background: transparent;
  border: 0;
  color: #f2e2b8;
  padding: 0;
}

/* ---------------- 子页返回栏 ---------------- */
.subpage-bar {
  background: rgba(244, 237, 225, 0.94);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
}
.subpage-breadcrumb { font-family: var(--font-serif); letter-spacing: 0.06em; color: var(--body); }

/* ---------------- 按钮体系 ---------------- */
.btn {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(246, 237, 220, 0.95));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(90, 64, 36, 0.08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background: #fffaf0;
  border-color: var(--gold);
  color: var(--crimson-deep);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(120, 80, 30, 0.14);
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #bf3127 0%, var(--crimson) 50%, var(--crimson-deep) 100%);
  border: 1px solid rgba(226, 194, 122, 0.75);
  color: #fff4dc;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 222, 170, 0.22), inset 0 1px 0 rgba(255, 230, 200, 0.35), 0 6px 18px rgba(125, 23, 18, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #d13a2f 0%, #b0261e 50%, #861912 100%);
  color: #fff;
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(255, 222, 170, 0.35), 0 10px 26px rgba(125, 23, 18, 0.38);
}
.btn-gold {
  background: linear-gradient(180deg, #fffaf0, #f5e9cf);
  border: 1px solid var(--gold);
  color: #6b4a17;
  font-weight: 600;
}
.btn-gold:hover {
  background: var(--gold-grad);
  color: #2a1a0c;
  border-color: #a8792c;
}
.btn-sm { padding: 5px 12px; font-size: 12px; }

.tag {
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  border-radius: 3px;
  background: rgba(255, 250, 240, 0.8);
  border-color: var(--border-gold);
  color: var(--body);
}
.tag-gold { background: var(--gold-soft); color: #6b4a17; border-color: var(--border-gold); }
.tag-crimson { background: var(--crimson-soft); color: var(--crimson); border-color: rgba(168, 35, 28, 0.3); }
.tag-peacock { background: rgba(47, 93, 87, 0.1); color: var(--peacock); border-color: rgba(47, 93, 87, 0.28); }

.vol-control {
  font-family: var(--font-serif);
  background: rgba(255, 250, 240, 0.85);
  border-color: var(--border-gold);
}
input[type="range"] { accent-color: var(--crimson); }
.vol-control input[type="range"] { accent-color: var(--gold); }

/* ---------------- 标题 / 区块 ---------------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--crimson);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(168, 35, 28, 0.14);
}
.section-header { border-bottom: 1px solid var(--border); padding-bottom: 12px; }

/* 金色描角混入 */
.portal-card, .media-card, .wf-node, .audio-card, .history-scroll-card,
.chapter-detail-box, .detail-panel, .script-reader, .cycle-phase, .role-card, .modal-prompt-panel {
  position: relative;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 14px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1.5px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 14px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1.5px 14px no-repeat,
    var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 6px 22px rgba(90, 64, 36, 0.06);
}

.portal-card {
  padding: 22px 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s ease;
}
.portal-card:hover, .media-card:hover, .media-card.selected, .wf-node:hover, .wf-node.active, .role-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 16px 38px rgba(90, 64, 36, 0.14);
}
.portal-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.portal-card p { color: var(--body); line-height: 1.75; }

.media-card { overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.media-card-title { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.03em; }
.media-card.selected { outline: 1.5px solid var(--crimson); outline-offset: -1.5px; }

.wf-node { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.wf-node .wf-step { color: var(--crimson); font-family: var(--font-serif); letter-spacing: 0.18em; font-weight: 600; }
.wf-node .wf-title { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; }

.history-scroll-card { border-right: 1px solid var(--border); border-left: 3px solid var(--crimson); }
.history-scroll-card .source-label { color: var(--crimson); letter-spacing: 0.04em; }
.history-scroll-card .quote-text { font-family: var(--font-serif); }

.chapter-tab {
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  border-radius: 4px;
}
.chapter-tab.active {
  background: linear-gradient(180deg, #bf3127, var(--crimson-deep)) !important;
  color: #fff4dc !important;
  border-color: rgba(226, 194, 122, 0.7) !important;
}
.script-item { font-family: var(--font-serif); border-radius: 4px; }
.script-item.active, .script-item:hover { border-color: var(--border-gold); background: var(--gold-soft); }

.prompt-box {
  background: #1c1511;
  color: #efdfbd;
  border: 1px solid rgba(184, 137, 58, 0.35);
  border-radius: 4px;
}
.modal-prompt-head { font-family: var(--font-serif); letter-spacing: 0.04em; }

.search-input {
  font-family: var(--font-serif);
  border-color: var(--border-gold);
  background: #fffaf1;
  border-radius: 4px;
}
.search-input:focus { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(168, 35, 28, 0.12); }

/* ---------------- 弹窗与提示 ---------------- */
.modal-backdrop { background: rgba(14, 9, 6, 0.72); backdrop-filter: blur(8px); }
.lightbox-content, .video-modal-content {
  background: var(--surface-solid);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.video-modal-header { font-family: var(--font-serif); letter-spacing: 0.04em; border-bottom-color: var(--border-gold); }
.modal-close { background: #f4ead6; border-color: var(--border-gold); }
.modal-close:hover { background: var(--crimson); color: #fff; }
.lightbox-img-wrap { background: #efe5d2; }
.toast {
  background: linear-gradient(180deg, #2a1f18, #150f0b);
  color: #f6e3ad;
  border: 1px solid rgba(226, 194, 122, 0.45);
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   开屏：大片片头 · 书法揭幕
   ========================================================================== */
.splash-intro {
  background: radial-gradient(ellipse at 50% 40%, #2a1a12 0%, #120b08 55%, #070403 100%);
  transition: opacity 0.9s var(--ease), visibility 0.9s ease, transform 0.9s var(--ease);
}
.splash-intro.dismissed { transform: scale(1.04); }
.splash-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000 0, transparent 9%, transparent 91%, #000 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
}
.splash-content { color: #f2e6cc; max-width: 860px; }
.splash-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.5em;
  color: rgba(226, 194, 122, 0.8);
  margin-bottom: 10px;
  animation: tangFadeUp 1s var(--ease) both;
}
.splash-kicker span {
  width: 54px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 194, 122, 0.8));
}
.splash-kicker span:last-child { transform: scaleX(-1); }
.splash-callig {
  position: relative;
  display: inline-flex;
  gap: 0.04em;
  font-family: var(--font-callig);
  font-weight: 400;
  font-size: clamp(96px, 17vw, 220px);
  line-height: 1.05;
  margin: 0 0 6px;
}
.splash-callig > span {
  display: inline-block;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 55%);
  -webkit-mask-size: 100% 220%;
  mask-size: 100% 220%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  animation: tangBrush 1.1s var(--ease) var(--d, 0s) forwards;
}
.splash-stamp {
  position: absolute;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(13px, 2vw, 22px);
  width: 2.6em;
  height: 3em;
  line-height: 1.2;
  right: -2.4em;
  bottom: 0.9em;
  color: #fff1dc;
  letter-spacing: 0.08em;
  background: radial-gradient(circle at 30% 25%, #d03a2e, var(--crimson) 55%, var(--crimson-deep));
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(255, 225, 190, 0.55), 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: rotate(-8deg) scale(1.9);
  animation: tangStamp 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 1.75s forwards;
}
.splash-verse {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.32em;
  color: #f2e2b8;
  margin-bottom: 8px;
  animation: tangFadeUp 1s var(--ease) 1.4s both;
}
.splash-sub {
  font-family: var(--font-serif);
  color: rgba(242, 230, 204, 0.55);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
  animation: tangFadeUp 1s var(--ease) 1.6s both;
}
.splash-actions { animation: tangFadeUp 1s var(--ease) 1.9s both; }
.splash-enter-btn { padding: 13px 34px; font-size: 15px; letter-spacing: 0.3em; border-radius: 3px; }
.splash-actions .btn-gold {
  background: rgba(255, 240, 210, 0.04);
  color: #f2e2b8;
  border-color: rgba(226, 194, 122, 0.55);
  padding: 13px 26px;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.splash-actions .btn-gold:hover { background: var(--gold-grad); color: #2a1a0c; }
.splash-hint {
  font-family: var(--font-serif);
  color: rgba(226, 194, 122, 0.45);
  letter-spacing: 0.3em;
  animation: tangFadeUp 1s var(--ease) 2.2s both;
}

@keyframes tangBrush {
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes tangStamp {
  to { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes tangFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   首页影院：大片既视感
   ========================================================================== */
.home-fullscreen-stage {
  height: calc(100vh - 58px);
  min-height: 560px;
  background: #070403;
  border-bottom: 0;
  margin-bottom: 40px;
}
.home-fullscreen-video { transition: filter 0.6s ease; filter: saturate(1.05) contrast(1.04); }

.cine-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: cineGrain 0.9s steps(5) infinite;
  mix-blend-mode: overlay;
}
@keyframes cineGrain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(1%, 3%); }
}
.cine-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 4, 3, 0.82) 0%, rgba(7, 4, 3, 0.35) 28%, transparent 52%),
    linear-gradient(180deg, transparent 55%, rgba(7, 4, 3, 0.92) 100%),
    radial-gradient(ellipse at 60% 45%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.cine-bar {
  position: absolute;
  left: 0; right: 0;
  height: 5.5vh;
  min-height: 26px;
  background: #000;
  pointer-events: none;
  z-index: 2;
}
.cine-bar.top { top: 0; }
.cine-bar.bottom { bottom: 0; }

.cine-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(5.5vh + 14px) clamp(20px, 4vw, 56px) calc(5.5vh + 12px);
  color: #f2e6cc;
  pointer-events: none;
}
.cine-hud > * { pointer-events: auto; }

.cine-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: rgba(242, 226, 184, 0.75);
}
.cine-top .cine-live { display: inline-flex; align-items: center; gap: 8px; }
.cine-top .cine-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e0453a;
  box-shadow: 0 0 0 3px rgba(224, 69, 58, 0.25);
  animation: cinePulse 1.6s ease-in-out infinite;
}
@keyframes cinePulse { 50% { opacity: 0.35; } }

.cine-main {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 0;
}
.cine-title-v {
  position: relative;
  writing-mode: vertical-rl;
  font-family: var(--font-callig);
  font-size: clamp(72px, 11vh, 132px);
  line-height: 1;
  letter-spacing: 0.04em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
  margin: 0;
  animation: tangFadeUp 1.2s var(--ease) both;
}
.cine-seal {
  align-self: flex-end;
  margin-bottom: 8%;
  display: grid;
  place-items: center;
  width: 44px; height: 52px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  color: #fff1dc;
  text-align: center;
  background: radial-gradient(circle at 30% 25%, #d03a2e, var(--crimson) 55%, var(--crimson-deep));
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 225, 190, 0.55), 0 8px 20px rgba(0, 0, 0, 0.5);
  transform: rotate(-6deg);
}
.cine-copy { max-width: 440px; animation: tangFadeUp 1.2s var(--ease) 0.2s both; }
.cine-copy .cine-kicker {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold-bright);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.cine-copy .cine-kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold-bright); }
.cine-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: 0.12em;
  color: #fbf1da;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}
.cine-copy .cine-verse {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.14em;
  color: rgba(242, 230, 204, 0.82);
  margin-bottom: 18px;
}
.cine-copy .cine-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(242, 230, 204, 0.6);
  margin-bottom: 22px;
}
.cine-copy .cine-meta span + span::before { content: "·"; margin-right: 14px; color: var(--gold); }
.cine-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cine-cta .btn { padding: 11px 22px; font-size: 13.5px; letter-spacing: 0.18em; }
.cine-cta .btn-ghost {
  background: rgba(255, 240, 210, 0.06);
  color: #f2e2b8;
  border: 1px solid rgba(226, 194, 122, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.cine-cta .btn-ghost:hover { background: var(--gold-grad); color: #2a1a0c; border-color: transparent; }

/* 底部：章节时间轴 + 进度 + 控制 */
.cine-bottom { display: grid; gap: 12px; }
.cine-chapters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.cine-ch {
  position: relative;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(242, 226, 184, 0.22);
  padding: 10px 4px 0;
  color: rgba(242, 230, 204, 0.55);
  font-family: var(--font-serif);
  cursor: pointer;
  transition: color 0.3s ease;
}
.cine-ch::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 2px;
  width: 0;
  background: var(--gold-grad);
  transition: width 0.5s var(--ease);
}
.cine-ch:hover { color: #f7e6bd; }
.cine-ch:hover::before { width: 40%; }
.cine-ch.is-active { color: #fff6e0; }
.cine-ch.is-active::before { width: 100%; box-shadow: 0 0 12px rgba(226, 194, 122, 0.7); }
.cine-ch .cine-ch-num {
  display: block;
  font-family: var(--font-callig);
  font-size: 22px;
  line-height: 1.1;
  color: var(--gold-bright);
  opacity: 0.85;
}
.cine-ch .cine-ch-title { display: block; font-size: 13px; letter-spacing: 0.12em; margin-top: 2px; }
.cine-ch .cine-ch-time { display: block; font-size: 10.5px; letter-spacing: 0.08em; opacity: 0.6; margin-top: 2px; }

.cine-progress {
  position: relative;
  height: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cine-progress-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(242, 226, 184, 0.18);
  transition: height 0.2s ease;
}
.cine-progress:hover .cine-progress-track { height: 4px; }
.cine-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--crimson), var(--gold-bright));
  box-shadow: 0 0 10px rgba(226, 194, 122, 0.6);
}
.cine-progress-fill::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  width: 9px; height: 9px;
  background: #f6e3ad;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(246, 227, 173, 0.9);
}
.cine-tick {
  position: absolute;
  top: 50%;
  width: 1px; height: 8px;
  background: rgba(242, 226, 184, 0.55);
  transform: translateY(-50%);
}

.cine-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cine-controls-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cine-time {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(242, 230, 204, 0.7);
  margin-left: 6px;
}
.cine-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: rgba(255, 240, 210, 0.05);
  border: 1px solid rgba(226, 194, 122, 0.28);
  border-radius: 3px;
  color: #f2e2b8;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cine-icon-btn:hover { background: rgba(226, 194, 122, 0.16); border-color: rgba(226, 194, 122, 0.7); color: #fff6e0; }
.cine-icon-btn.is-on { background: var(--gold-grad); color: #2a1a0c; border-color: transparent; }
.cine-icon-btn svg { width: 14px; height: 14px; }
.cine-vol {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border: 1px solid rgba(226, 194, 122, 0.28);
  border-radius: 3px;
  background: rgba(255, 240, 210, 0.05);
  color: #f2e2b8;
  font-family: var(--font-serif);
  font-size: 12px;
}
.cine-vol input { width: 78px; accent-color: var(--gold-bright); cursor: pointer; }

/* 首页下方：风格提示词面板 */
#view-home > .modal-prompt-panel { padding: 0; overflow: hidden; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .nav-btn { padding: 6px 9px; font-size: 12.5px; letter-spacing: 0.04em; }
}
@media (max-width: 900px) {
  .cine-title-v { font-size: clamp(56px, 9vh, 90px); }
  .cine-copy .cine-verse { font-size: 13px; }
  .cine-chapters { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; }
  .cine-shade { background: linear-gradient(180deg, rgba(7, 4, 3, 0.5) 0%, rgba(7, 4, 3, 0.4) 40%, rgba(7, 4, 3, 0.94) 100%); }
}
@media (max-width: 768px) {
  .topbar { padding: 8px 14px; }
  .brand-callig { font-size: 28px; }
  .home-fullscreen-stage { height: calc(100svh - 52px - 66px); min-height: 520px; }
  .cine-main { flex-direction: row; align-items: flex-end; }
  .cine-copy h1 { font-size: 22px; }
  .cine-copy .cine-meta, .cine-ch-time, .cine-time { display: none; }
  .splash-stamp { right: -1.6em; }
  .mobile-bottom-nav { background: rgba(18, 13, 10, 0.96); border-top: 1px solid rgba(226, 194, 122, 0.3); }
  .mob-nav-btn { color: rgba(242, 230, 204, 0.6); font-family: var(--font-serif); }
  .mob-nav-btn.active { color: var(--gold-bright); }
}

@media (prefers-reduced-motion: reduce) {
  .cine-grain, .splash-callig > span, .splash-stamp { animation: none !important; }
  .splash-callig > span { -webkit-mask: none; mask: none; }
  .splash-stamp { opacity: 1; transform: rotate(-8deg); }
}

/* ---------------- 视觉复核修正 ---------------- */
.splash-callig { filter: drop-shadow(0 6px 24px rgba(226, 160, 70, 0.28)); }

/* 首页影院紧贴顶栏，去除宣纸缝隙 */
#view-home .home-fullscreen-stage { margin-top: -24px; }

/* 导航不换行 */
.topbar { flex-wrap: nowrap; }
.main-nav { flex-wrap: nowrap; gap: 2px; }
.nav-btn { white-space: nowrap; }
@media (max-width: 1360px) {
  .nav-btn { padding: 6px 8px; font-size: 12.5px; letter-spacing: 0.03em; }
  .bgm-select { max-width: 112px; }
}
@media (max-width: 1180px) {
  .bgm-select { display: none; }
  .brand-seal { display: none; }
  .topbar { padding: 10px 18px; gap: 10px; }
}
@media (max-width: 1020px) {
  .nav-btn { padding: 6px 6px; font-size: 12px; }
  .topbar .vol-control { display: none; }
}

.cine-cta .btn-ghost:hover, .cine-cta a.btn-ghost:hover { color: #2a1a0c !important; }


/* 移动端影院 */
@media (max-width: 768px) {
  #view-home .home-fullscreen-stage { margin-top: -14px; }
  .bgm-select { display: none; }
  .cine-top > span:last-child { display: none; }
  .cine-seal { display: none; }
  .cine-hud { padding-left: 16px; padding-right: 16px; }
  .cine-title-v { font-size: 64px; }
  .cine-copy .cine-verse { font-size: 12.5px; line-height: 1.8; margin-bottom: 12px; }
  .cine-cta .btn { padding: 9px 14px; font-size: 12.5px; letter-spacing: 0.08em; }
  .cine-chapters { grid-template-columns: repeat(5, 1fr); gap: 4px; overflow: visible; }
  .cine-ch { padding: 6px 0 0; }
  .cine-ch .cine-ch-num { font-size: 18px; }
  .cine-ch .cine-ch-title { font-size: 10.5px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cine-controls { gap: 6px; }
  .cine-controls-group { gap: 4px; }
  .cine-icon-btn, .cine-vol { height: 28px; padding: 0 8px; font-size: 11px; letter-spacing: 0.04em; }
  .cine-vol input { width: 56px; }
}

.cine-cta .btn-ghost { background: rgba(14, 9, 6, 0.55); }

/* ---------------- 页脚：宣纸 + 金色毛笔题字 ---------------- */
.drift-footer { background: var(--paper); border-top: 1px solid var(--border-gold); }
.drift-footer__stage::after {
  background: linear-gradient(to bottom, var(--paper) 0%, rgba(244, 237, 225, 0.97) 60%, rgba(244, 237, 225, 0.86) 78%, rgba(244, 237, 225, 0.3) 96%);
}
.drift-footer__content { padding-bottom: 28px; }
.drift-footer__fog { background: linear-gradient(to top, var(--mist) 0%, rgba(233, 223, 203, 0.6) 40%, rgba(233, 223, 203, 0) 100%); }
.drift-footer h2 { font-family: var(--font-display); font-weight: 400 !important; letter-spacing: 0.1em !important; }
.drift-col__title { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.12em; }
.drift-col__title::after { content: ""; display: block; width: 22px; height: 1.5px; margin-top: 8px; background: var(--crimson); }
.drift-col__list button:hover, .drift-col__list a:hover { opacity: 1; color: var(--crimson); }
.drift-chip { border-radius: 3px; border-color: var(--border-gold); background: rgba(255, 250, 240, 0.75); font-family: var(--font-serif); letter-spacing: 0.04em; }
.drift-chip__dot { background: var(--crimson); box-shadow: 0 0 0 2.5px rgba(168, 35, 28, 0.2); }

/* ---------------- 三处「杨玉环」毛笔手写体（仅替换红框与底部大字） ---------------- */
.brand-brush-gold {
  display: block;
  height: 38px;
  aspect-ratio: 905 / 484;
  background: var(--gold-grad);
  -webkit-mask: url('./assets/brand/yyh_h.png') center / contain no-repeat;
  mask: url('./assets/brand/yyh_h.png') center / contain no-repeat;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.brand:hover .brand-brush-gold {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 12px rgba(226, 194, 122, 0.55));
}
.drift-footer .brand-brush-ink {
  height: 40px;
  background: linear-gradient(180deg, #3a2a1c, #1a1410);
  filter: none;
}

/* 主页左侧完整手写大字 + 居中主视觉文案 */
.cine-brush-stage {
  position: absolute;
  left: clamp(20px, 3.5vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  height: clamp(320px, 66vh, 580px);
  aspect-ratio: 416 / 616;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

.cine-title-brush {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(246, 240, 230, 0.90) 58%,
    rgba(226, 216, 200, 0.52) 100%
  );
  -webkit-mask: url('./assets/brand/yyh_v.png') center / contain no-repeat;
  mask: url('./assets/brand/yyh_v.png') center / contain no-repeat;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
}

.cine-main {
  padding-left: 0;
  justify-content: center;
  align-items: center;
}

.cine-seal {
  position: absolute;
  left: clamp(240px, 24vw, 390px);
  bottom: 22%;
  margin-bottom: 0;
}

.cine-copy {
  max-width: 520px;
  text-align: center;
}
.cine-copy .cine-kicker {
  justify-content: center;
}
.cine-copy .cine-kicker::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-bright);
}
.cine-copy .cine-meta,
.cine-cta {
  justify-content: center;
}

.drift-footer__wordmark-brush {
  position: relative;
  z-index: 1;
  width: min(86vw, 980px);
  aspect-ratio: 905 / 484;
  margin: 16px auto -18px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 246, 225, 0.92), rgba(214, 178, 110, 0.55) 55%, rgba(255, 240, 210, 0.75));
  -webkit-mask: url('./assets/brand/yyh_h.png') center / contain no-repeat;
  mask: url('./assets/brand/yyh_h.png') center / contain no-repeat;
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.6)) drop-shadow(0 0 22px rgba(214, 170, 90, 0.35));
}

@media (max-width: 768px) {
  .brand-brush-gold { height: 30px; }
  .cine-brush-stage { left: 10px; transform: translateY(-50%); height: clamp(190px, 40vh, 280px); opacity: 0.55; }
  .cine-main { padding-left: 0; justify-content: center; }
  .drift-footer__content { grid-template-columns: 1fr 1fr; }
}
