/* ═══════════════════════════════════════════════════════════════
   明清戏卷 Dramaticroll — 官网样式
   色板与视觉语言沿用 deliverables/.../spec_lock.md 已定稿的品牌规范：
   宣纸留白 + 稀少朱砂 + 不规则墨线 + 书页列线做网格。
   刻意避开通用落地页的模板感：不用卡片墙、不用圆角阴影拟物 UI。
   ═══════════════════════════════════════════════════════════════ */

/* ── 字体：全部自托管，不用任何 CDN ─────────────────────────────
   降级链末端接系统字体，与自动抽取的字形子集构成防豆腐块的两道防线。 */
@font-face {
  font-family: 'LXGW WenKai';
  src: url('../fonts/lxgw-wenkai-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('../fonts/mashanzheng-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 品牌色板 */
  --paper: #f4e9d2;
  --paper-2: #e7d9bc;
  --ink: #26333c;
  --ink-soft: #4a5a63;
  --cinnabar: #b84032;
  --mineral: #4b7466;
  --body: #2a2a2a;
  --hairline: rgba(38, 51, 60, 0.18);
  --hairline-strong: rgba(38, 51, 60, 0.34);

  /* 字体栈 */
  --font-display: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'LXGW WenKai', serif;
  --font-body: 'LXGW WenKai', 'Kaiti SC', KaiTi, 'Songti SC', SimSun, serif;

  /* 排版阶梯（流式） */
  /* 首屏标题要给下方群像留出高度，且必须同时受视口高度约束——
     只按 vw 缩放时，矮视口（如 688px 高的笔记本）会把群像挤到折线以下。
     故取 min(11vw, 15vh)。 */
  /* 首屏标题的高度 = 视口高度的 15%（889 高时 133px，即用户认可的那一版）。
     上限从 8.5rem 放到 12rem：原上限会在 907px 高处开始截住，标题就不再成比例了。
     下限 2.2rem 只为极矮窗口兜底。min(11vw, …) 是必要的例外——窄窗口里标题
     必须先放得下宽度，否则会横向溢出。 */
  --fs-display: clamp(2.2rem, min(11vw, 15svh), 12rem);
  --fs-h1: clamp(1.85rem, 4.4vw, 3.2rem);
  --fs-h2: clamp(1.35rem, 2.6vw, 2rem);
  --fs-body: clamp(1rem, 1.05vw, 1.14rem);
  --fs-small: 0.9rem;
  --fs-label: 0.78rem;
  --fs-stat: clamp(2.6rem, 6vw, 4.6rem);

  /* 节奏 */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-gap: clamp(5rem, 13vh, 10rem);
  --measure: 62ch;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: 0.012em;
  overflow-x: hidden;
}

/* 宣纸底：极淡的纤维噪点，不是纯色平铺 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='380' height='380'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.40 0 0 0 0 0.34 0 0 0 0 0.24 0 0 0 0.5'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, video { max-width: 100%; display: block; }

a { color: var(--cinnabar); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 100; background: var(--ink); color: var(--paper);
  padding: 0.6rem 1.1rem; text-decoration: none; font-size: var(--fs-small);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── 版心 ─────────────────────────────────────────────────────── */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; z-index: 1; }

/* ── 竖排小字标：书页天头的位置感 ──────────────────────────────── */
.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: var(--fs-label);
  letter-spacing: 0.42em;
  color: var(--cinnabar);
  margin: 0;
  padding-block: 0.2em;
}

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }

.section-head .vertical-label { margin-bottom: 1.1rem; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.section-head .sub {
  margin: 0;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* 发丝分隔线 */
.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ═══ 首屏 ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--paper-2);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 墨色渐晕：只压在**文字所在的那条带**上，而不是整幅均匀铺一层。
   整幅铺会连人物背后的画面一起洗淡，看起来就是「发虚」；
   按带压则标题区照样读得清，中下部几乎原样透出。
   人物是透明立绘、叠在渐晕之上，不受这里影响。 */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 标题带：从顶部压下，到 58% 处完全消失 */
    linear-gradient(to bottom,
      rgba(244, 233, 210, 0.76) 0%,
      rgba(244, 233, 210, 0.52) 24%,
      rgba(244, 233, 210, 0.14) 42%,
      rgba(244, 233, 210, 0) 58%,
      rgba(244, 233, 210, 0) 86%,
      rgba(244, 233, 210, 0.28) 100%),
    /* 全局极淡提亮：只为统一色调，不遮细节 */
    radial-gradient(ellipse 94% 72% at 50% 40%, rgba(244, 233, 210, 0.14), rgba(244, 233, 210, 0) 80%);
}

.hero-inner {
  position: relative;
  flex: 1;                          /* 撑满，把画廊推到底部 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 首屏的竖向留白比别处要紧：文案块 + 人物 + 头顶留白必须装进一屏，
     而用户要的是「字大、人物比例固定」——腾地方只能从这里出，不能从字号出。 */
  padding-block: clamp(1.4rem, 4.2svh, 3rem) 0;
  text-align: center;
}

.hero-copy { flex: none; }

.hero-eyebrow {
  /* 1.4svh：889 高时 12.5px，与 --fs-label 一致，但随窗口成比例 */
  font-size: clamp(0.7rem, 1.4svh, 1.2rem);
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--ink-soft);
  margin: 0 0 clamp(0.6rem, 1.5svh, 1.4rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: var(--ink);
  margin: 0;
  text-shadow: 0 2px 0 rgba(38, 51, 60, 0.05);
}

.hero-rule {
  width: clamp(80px, 14vw, 150px);
  height: clamp(1px, 0.22svh, 3px);
  background: var(--cinnabar);
  border: 0;
  margin: clamp(0.4rem, 1svh, 0.9rem) auto;
  opacity: 0.9;
}

.hero-latin {
  font-family: Georgia, 'Times New Roman', serif;
  /* 2.7svh：889 高时 24px，与用户认可的一致 */
  font-size: clamp(0.9rem, min(2.1vw, 2.7svh), 2.2rem);
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: var(--ink);
  margin: 0 0 clamp(0.45rem, 1.1svh, 1rem);
  text-transform: uppercase;
}

.hero-slogan {
  /* 2.52svh：889 高时 22.4px */
  font-size: clamp(0.95rem, min(1.9vw, 2.52svh), 2rem);
  line-height: 1.9;
  color: var(--ink);
  margin: 0 auto;
  letter-spacing: 0.06em;
  /* 一行。主张句断成两行就散了，所以宁可收字号也不换行：
     中文 20 个全角字 × 1.06em（含字距）≈ 21.2em，窄屏按 vw 收即可始终一行。 */
  white-space: nowrap;
  position: relative;                /* 打字机光标的定位基准 */
}

/* 英文那句 69 个字符，同样字号要占 1.63 倍宽度；窄屏压到一行会小到读不了，
   所以英文退回正常折行。中文（默认）不受影响。 */
html[lang="en"] .hero-slogan { white-space: normal; }

/* 打字机：单字。未显形前**占位**（透明），所以整行排版从头就是定稿的样子，
   不会随着打字左右抽动。只有 site.js 拆出来的字带这个类——
   没有 JS 或降低动态效果时根本不会拆，文案原样可读。 */
.tchar { opacity: 0; transition: opacity 0.18s ease-out; }
.tchar.is-in { opacity: 1; }

.hero-slogan-caret {
  position: absolute;
  width: 2px;
  background: var(--cinnabar);
  pointer-events: none;
  animation: caret-blink 1.06s linear infinite;
}
@keyframes caret-blink { 0%, 46% { opacity: 1; } 47%, 100% { opacity: 0; } }
/* 打完之后不再一直闪——首屏已经有一个会动的画廊了 */
.hero-slogan-caret.is-done { animation: none; opacity: 0; transition: opacity 0.7s ease 0.9s; }

@media (max-width: 640px) {
  /* 一行放不下时收字号，而不是换行 */
  .hero-slogan { font-size: clamp(0.8rem, 3.9vw, 1.15rem); }
}

/* 印章：朱砂方块，全站唯一的"图形化品牌符号" */
.seal {
  display: inline-grid;
  place-items: center;
  width: clamp(58px, 8vw, 76px);
  aspect-ratio: 1;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(184, 64, 50, 0.2), inset 0 0 0 3px rgba(244, 233, 210, 0.2);
  transform: rotate(-4deg);
  user-select: none;
}

/* ── 首屏群像：十二位主要角色，可横向拖动的画廊 ──────────────────
   为什么是可浏览的画廊：三张 2:3 竖构图在合理高度下横向只能占约 600px，
   宽屏两侧各空 400px 以上；加到六人刚好填满，但要把人再放大就装不下了。
   横向浏览解开了这个死结——不必所有人同时可见，于是既能在首屏放入全部
   主要角色，又能把每个人都放大。浏览由用户驱动，因此也不涉及
   「自动播放动效需可暂停」的无障碍要求。
   首尾相接成闭环（site.js 在两端补克隆后折回滚动位置），所以拖不到头，
   也就不存在「边角那几位永远放大不了」的问题。 */
.hero-cast {
  /* 满幅：画廊是 .hero 的直接子元素，width:100% 就是整个页面宽度。
     不用 100vw —— 它把滚动条宽度也算进去，会让整条带子向左偏约 7px。 */
  width: 100%;
  flex: none;

  /* 头顶留白：放大是从底部向上长（transform-origin: bottom center），
     而 overflow 在**内边距边缘**裁剪——不预留就会被切掉头顶。
     实测居中者（缩放 1.148）会被裁 61px。这里的 7.5vh 是保守默认值，
     site.js 会在布局完成后按实测高度写入精确值。 */
  padding-top: 11.25vh;

  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;              /* 触屏走原生横滑 */
  cursor: grab;
  /* 整条带子禁止选中文字。只给 <img> 设是不够的——从名字说明上按下拖动时，
     浏览器会开始选文本，拖动就会「没效果」。 */
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;            /* 用两端淡出与拖动提示代替滚动条 */
  -webkit-overflow-scrolling: touch;

  /* 两端淡出：让「还有更多」这件事可见 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hero-cast::-webkit-scrollbar { display: none; }
.hero-cast.is-dragging { cursor: grabbing; }
.hero-cast:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: -4px; }
/* 指针点进来也会聚焦（滚轮的接管条件就是焦点），但焦点框是「键位导航」的记号：
   整条带子是满幅的，这一圈朱砂会以两条横线的样子出现在人物上下，
   看着像选中了什么东西。所以指针交互不画，键盘交互照旧画（见 site.js）。 */
.hero-cast.is-pointer-focus:focus-visible { outline: none; }

.cast-track {
  display: flex;
  align-items: flex-end;
  width: max-content;
  /* 首尾留白：无 JS 时兜底；闭环生效后兼作折回点的缓冲，别改成按高度算。 */
  padding-inline: 18vw;
}

.cast-figure {
  margin: 0;
  flex: none;
  display: grid;
  justify-items: center;
  gap: clamp(0.25rem, 1svh, 1rem);
  /* 居中者放大：--scale 由 site.js 按距画面中心的远近实时写入。
     用 transform 而非改尺寸——不影响布局，因此不会引起滚动条抖动，
     也不会因为改变尺寸而反复触发滚动事件。 */
  transform: scale(var(--scale, 1));
  transform-origin: bottom center;
  transition: transform 0.25s ease-out;
}

.cast-figure img {
  /* 高度必须随视口高度收：首屏 = 非画廊部分（约 420px，基本不缩）+ 人物 × 1.1667。
     取 58.5vh 时两者约 1.17 屏，常见笔记本必然把脚部与姓名挤到折线以下。
     46vh 是保守值，只保证「装得下」；富余由 site.js 的 fitCast() 还给人物。
     336px 下限是刻意的：到那里宁可首屏略高，也不把人缩成一排小人（见 README）。 */
  height: var(--cast-figure-h, clamp(336px, 51vh, 615px));
  height: var(--cast-figure-h, clamp(336px, 51svh, 615px));
  width: auto;
  display: block;
  /* 极淡的投影，把人物从背景里托出来（不是拟物阴影） */
  filter: drop-shadow(0 8px 20px rgba(38, 51, 60, 0.16));
  -webkit-user-drag: none;
  user-select: none;
}

.cast-figure figcaption {
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 相邻人物轻微重叠，像戏班站成一排 */
.cast-figure + .cast-figure { margin-left: -1.8vw; }

/* 折回闭环的那一帧不播缩放过渡。折回会让「画面正中」这个位置改由克隆承担，
   新接手的元素起点是它原来在画面外的倍率，若让它过渡过来，居中者会当着面缩一下。
   site.js 只在折回的那一帧挂上这个类，下一帧就摘掉。

   is-measuring 同理，但用于量周期：过渡在起止之间是新值还没生效的状态，
   不压掉的话量到的是旧倍率。那一小段不绘制，用户看不见。 */
.cast-track.is-looping .cast-figure,
.cast-track.is-measuring .cast-figure { transition: none; }

@media (max-width: 900px) {
  /* 原有一条立绘高度覆盖（clamp(285px, 45vh, 480px)）：它让立绘在 900px 宽处
     从 58.5vh 一步砍到 45vh，造成「900 放得下、901 溢出 118px」的硬台阶。已删。 */
  .cast-figure + .cast-figure { margin-left: -3.75vw; }
  .cast-track { padding-inline: 27vw; }
}


/* ── 语言切换 ─────────────────────────────────────────────────── */
.lang-switch {
  position: fixed;
  top: clamp(0.9rem, 2.5vh, 1.6rem);
  right: var(--gutter);
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switch button {
  font: inherit;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(244, 233, 210, 0.86);
  border: 1px solid var(--hairline-strong);
  padding: 0.34rem 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.lang-switch button:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.lang-switch button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ═══ 通用区块节奏 ═══════════════════════════════════════════════ */
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(3.5rem, 9vh, 7rem); }

/* ═══ 品牌片 ═════════════════════════════════════════════════════ */
.film-copy {
  display: grid;
  gap: 0.4rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}
.film-copy .line-1 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.04em;
}
.film-copy .line-2 {
  font-size: var(--fs-body);
  color: var(--cinnabar);
  margin: 0;
  letter-spacing: 0.16em;
}

.film-stage {
  position: relative;
  border: 1px solid var(--hairline-strong);
  background: #14181b;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.film-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #14181b;
}

/* 封面态：海报 + 播放按钮 */
.film-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-color: #14181b;
  background-image: url('../video/hero-poster.jpg');
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}
.film-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 24, 27, 0.28) 0%, rgba(20, 24, 27, 0.62) 100%);
}
.film-cover[hidden] { display: none; }

.film-play {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  color: var(--paper);
}
.film-play .glyph {
  width: clamp(58px, 8vw, 78px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 233, 210, 0.7);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}
.film-play .glyph::before {
  content: '';
  width: 0; height: 0;
  border-left: 15px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.film-cover:hover .glyph,
.film-cover:focus-visible .glyph {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  transform: scale(1.06);
}
.film-play .txt {
  font-size: var(--fs-small);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

/* ═══ 这是什么 ═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
}

.about-body {
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 2.05;
  color: var(--body);
  margin: 0;
  max-width: 44ch;
}
.about-body::first-letter {
  font-family: var(--font-display);
  font-size: 2.4em;
  line-height: 0.9;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--cinnabar);
}

/* 关键词带：发丝线分隔，不是标签胶囊 */
.kw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.kw-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-body);
  color: var(--ink);
  letter-spacing: 0.06em;
}
.kw-list li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--cinnabar);
  transform: rotate(45deg);
  align-self: center;
}

/* ═══ 六出俱成 ═══════════════════════════════════════════════════ */
.plays { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-strong); }

.play-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2.4rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3.5vw, 2.4rem);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.35s ease;
}
.play-row:hover { background-color: rgba(231, 217, 188, 0.5); }

.play-idx {
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  color: var(--hairline-strong);
  line-height: 1;
  min-width: 2.2ch;
  transition: color 0.35s ease;
}
.play-row:hover .play-idx { color: var(--cinnabar); }

.play-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
  align-items: start;
}

/* 实机画面：与「如何入戏」那张同一个组件（.mock），只去掉它自带的上间距。
   每剧一张，通栏——这是这一节的主角，人物在画面里比原先的单张立绘还大。 */
.play-frame { margin: 0; }
.play-frame .mock { margin-top: 0; }

/* 画面之下：这一剧的字与阵容 */
.play-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem clamp(1rem, 3vw, 2.4rem);
  align-items: end;
}
.play-head { min-width: 0; }
.play-info .play-support { margin-top: 0; }
.play-info .play-status { margin-top: 0.55rem; }
@media (max-width: 760px) {
  .play-info { grid-template-columns: minmax(0, 1fr); }
}

/* 配角阵列：一眼看出这部剧的阵容有多厚 */
.play-support {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
}
.play-support li {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}
.play-support img {
  height: clamp(78px, 8.5vw, 108px);
  width: auto;
  display: block;
}
.play-support span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.play-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.15rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.play-meta {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.play-meta .author { color: var(--mineral); }

.play-theme {
  margin: 0.4rem 0 0;
  color: var(--body);
  line-height: 1.8;
}

.play-status {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  color: var(--mineral);
  border-bottom: 1px solid rgba(75, 116, 102, 0.4);
  padding-bottom: 0.12em;
}

.plays-total {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.plays-total strong {
  font-family: Georgia, serif;
  font-size: 1.35em;
  color: var(--cinnabar);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* ═══ 如何入戏：实机画面重构 ═════════════════════════════════════ */
.play-copy { max-width: var(--measure); }
.play-copy p { margin: 0 0 1.6rem; }

blockquote.pull {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding-left: clamp(1rem, 3vw, 1.8rem);
  border-left: 2px solid var(--cinnabar);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.mock-figure { margin: 0; }

/* 实机画面：背景 + 立绘 + 对话框 + 姓名框，全部用真实 UI 素材拼出 */
.mock {
  position: relative;
  margin-top: clamp(2.4rem, 6vw, 3.6rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background-color: var(--ink);
  isolation: isolate;
  /* 画框里的字号按**画框宽度**缩放，不按视口——同一套样式既用于通栏的实机画面，
     也用于六剧里窄一些的。没有容器查询时 cqw 那几条声明会被丢弃，
     自动落回上面那条 vw 的写法。 */
  container-type: inline-size;
}
.mock-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mock-portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 88%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  z-index: 1;
}
/* 对话框带。高度必须由宽度推出，不能同时给 aspect-ratio 和 min-height ——
   那样高度先被 min-height 定住，aspect-ratio 反过来算宽，会把容器撑得比舞台还宽。
   .mock 固定 16:9，对话框素材 1920:278，故其高度恒为舞台高度的 25.74%。 */
.mock-ui {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 25.74%;
  display: flex;
  align-items: center;
}
/* 窄画框里姓名框会长到占掉带子的三分之一（它的 aspect-ratio 只是期望值，
   文字撑得更高时就按文字走），而台词是垂直居中的——两者会叠上。
   这种宽度下把台词压到带子下缘，给姓名框让开位置。 */
@container (max-width: 420px) {
  .mock-ui { align-items: flex-end; }
}
.mock-textbox {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.mock-namebox {
  position: absolute;
  left: 7%;
  top: 4%;
  width: 22%;
  height: auto;
}
.mock-name {
  position: absolute;
  left: 7%;
  top: 4%;
  width: 22%;
  aspect-ratio: 450 / 54;
  /* 别让姓名的文字把牌子撑高：牌子高度由 450:54 定死，文字略溢出牌子无所谓
     （它只是半透明的底纹）。撑高了会吃掉带子三分之一，把台词逼到叠上来。 */
  min-height: 0;
  display: grid;
  place-items: center;
  color: #f1dca8;
  font-size: clamp(0.62rem, 1.15vw, 0.95rem);
  font-size: clamp(0.62rem, 1.445cqw, 0.95rem);
  letter-spacing: 0.14em;
  z-index: 3;
}
.mock-line {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 9% 0 8%;
  margin: 0;
  color: #e0dccc;
  font-size: clamp(0.72rem, 1.45vw, 1.16rem);
  /* 下限 0.66rem 是算出来的：最长的台词 22 字，含字距约 23.1 倍字号宽，
     窄屏画框宽约 300px、去掉左右内边距只剩 249px，故字号须 ≤ 10.8px。
     压到 0.72rem（11.5px）会让它折成两行，而第二行会顶到姓名框上。 */
  font-size: clamp(0.66rem, 1.764cqw, 1.16rem);
  line-height: 1.9;
  letter-spacing: 0.05em;
}
.mock-caption {
  margin: 0.8rem 0 0;
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}

/* ═══ 表情谱 ═════════════════════════════════════════════════════
   一次只展示一张立绘。二十七种情绪由读者点选，而按钮上只有词、没有缩略图——
   所以页面上任何时刻只有一张立绘，也不会一屏铺满二十七个人。 */
.expr {
  /* 立绘高度只定义一次，展示台的下限由它推出：两个下限各写各的时窗口一矮就裁头顶。 */
  --expr-h: clamp(260px, 38vh, 390px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 820px) {
  .expr { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

/* 展示台：人物站在框的下沿；下限由立绘高推出，框永远不比里面的人矮 */
.expr-stage {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: calc(var(--expr-h) + 1.5rem);
  padding-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 252, 244, 0.9), rgba(231, 217, 188, 0.75) 78%),
    var(--paper-2);
}
/* 高度对着 md 立绘（347×520）取：展示到 390px 高时，2× 屏需要 780 设备像素，
   md 的 520 短了约 1.33 倍——与改版前用 lg 撑 500px 时的宽松程度相当，
   换来的是二十七张只出一份立绘（点选的图与这里展示的是同一个文件）。 */
.expr-portrait {
  height: var(--expr-h);
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(38, 51, 60, 0.18));
}

.expr-hint {
  margin: 0 0 1.1rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.expr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* 二十七格排成 3×9：三列九行，正好排满、没有半截的尾行。
     行高统一（grid-auto-rows: 1fr），中英文标签长短不一也不会把某一行撑高。 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.5rem;
}

.expr-btn {
  font: inherit;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  padding: 0.42rem 0.95rem;
  /* 撑满格子：三列各占满一条，二十七块才是齐的方块；
     保持自然宽度的话，格子之间的空当会有两三倍按钮宽，反而更乱。 */
  width: 100%;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.expr-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.expr-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
/* 手机上三列只有一百来像素宽，左右内边距要收，否则英文标签会折成两行 */
@media (max-width: 560px) {
  .expr-btn { padding-inline: 0.4rem; letter-spacing: 0.06em; }
}

/* ═══ 规模 ═══════════════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline-strong);
}
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
  padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(0.9rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 860px) {
  .stat:nth-child(2n) { border-right: 1px solid var(--hairline); }
  .stat:last-child { border-right: 0; }
}
.stat .v {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.stat .l {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* ═══ 视觉语言：横向长卷带 ═══════════════════════════════════════ */
.band {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(66%, 1fr);
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
@media (min-width: 900px) {
  .band {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}
.band figure {
  margin: 0;
  scroll-snap-align: start;
}

/* 剧照：角色入画。背景与人物在 HTML 里分层叠加而非烘焙成一张图，
   这样换人、换景、改文案都不必重新出图。

   画框用 3:4 竖构图而不是 16:9 —— 立绘是 2:3 的全身体，放进 16:9 横框里
   只能占约 32% 的画面宽度，剩下全是景；竖框下人物占到约 85% 宽度。
   背景用 object-fit: cover 中心裁到 3:4，正好把多余的景裁掉。 */
.still {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: var(--paper-2);
}
.still-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 绝对定位而非 grid 对齐：容器的行高是 auto，百分比高度解析不出确定值，
   人物会按固有尺寸渲染（800px 高）然后被 overflow 裁掉大半。
   绝对定位下百分比对容器的 padding box 解析，容器高度由 aspect-ratio 确定。 */
.still-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 94%;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(38, 51, 60, 0.22));
}
.band figcaption {
  margin-top: 0.85rem;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--ink-soft);
}
.band figcaption .t {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

/* ═══ 关注 ═══════════════════════════════════════════════════════ */
.follow { text-align: center; }
.follow .section-head { display: grid; justify-items: center; }
.follow-seal { margin: 0 0 clamp(1.6rem, 4vw, 2.4rem); }
.follow .vertical-label { writing-mode: horizontal-tb; letter-spacing: 0.42em; text-indent: 0.42em; }
.follow .section-head h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.follow .sub { margin-inline: auto; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: clamp(2rem, 5vw, 2.8rem) 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-block;
  padding: 0.62rem 1.5rem;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  transition: background-color 0.28s, color 0.28s, border-color 0.28s;
}
.social a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.follow-note {
  margin: clamp(1.8rem, 4vw, 2.4rem) 0 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* 无社交链接时的占位提示 */
.social-empty {
  margin: clamp(2rem, 5vw, 2.8rem) 0 0;
  padding: 1.1rem 1.4rem;
  border: 1px dashed var(--hairline-strong);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  display: inline-block;
}

/* ═══ 页脚 ═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--hairline-strong);
  padding-block: clamp(2.6rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.footer-studio {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink);
  letter-spacing: 0.14em;
  margin: 0 0 1.6rem;
}
.footer-grid {
  display: grid;
  gap: 0.7rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.footer p { margin: 0; line-height: 1.8; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--cinnabar); }
.footer-bottom {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: space-between;
  align-items: baseline;
}

/* ═══ 滚动揭示 ═══════════════════════════════════════════════════
   隐藏态挂在 .has-reveal 下，由 site.js 在首次绘制前加到 <html> 上。
   这样 JS 未加载或执行失败时，页面是**全部可见**的，而不是整页空白。 */
.reveal { opacity: 1; transform: none; }

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.has-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ═══ 降级：尊重系统"减少动态效果" ══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .has-reveal .reveal { opacity: 1; transform: none; }
  /* 画廊的缩放跟随不改变内容，只是即时反馈；降低动态效果时去掉过渡，
     让它变成瞬时切换。横向浏览本身是用户驱动的，不属自动动效。 */
  .cast-figure { transition: none; }
  .seal { transform: none; }
  /* 打字机与光标：site.js 在降低动态效果时直接不拆字、不打字，
     这里再兜一道，免得光标以别的路径被创建出来。 */
  .hero-slogan-caret { display: none; }
}

/* ═══ 404 ═══════════════════════════════════════════════════════ */
.nf {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.nf .seal { margin-bottom: 2rem; }
.nf h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--ink);
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}
.nf p { color: var(--ink-soft); margin: 0 0 0.6rem; }
.nf a.back {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.62rem 1.6rem;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  transition: background-color 0.28s, color 0.28s, border-color 0.28s;
}
.nf a.back:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ═══ 打印 ═══════════════════════════════════════════════════════ */
@media print {
  body::before, .lang-switch { display: none; }
  .hero { min-height: auto; }
  .reveal { opacity: 1; transform: none; }
}
