/* ==========================================================================
   百合山 ユリ / Yuri Yuriyama —— 角色档案站
   风格：弹丸论破 UI 美学 / 黑白主调 + 霓虹粉·血红 / 故障·破碎·纸张撕裂
   --------------------------------------------------------------------------
   目录：
   00 变量与重置
   01 全局叠加层（噪点 / 扫描线 / 刮痕 / 暗角）
   02 开机过场（黑白蚊）
   03 顶部导航
   04 首页 Hero
   05 通用：分段 / 撞击入场 / 区块标题 / 胶带 / 纸张
   06 基本信息表（学籍档案卡）
   07 才能申报表
   08 绝密·学籍档案（打字机）
   09 独白记录（加密日记 / 节目期间片段）
   10 瓜条（挂人帖）
   11 筛选问题（学级裁判）
   12 校规（卷轴 / 告示板）
   13 页脚
   14 响应式
   15 无障碍与动效降级
   ========================================================================== */

/* ============================ 00 变量与重置 ============================ */
:root {
  /* 主色板 */
  --ink: #0a0a0a;
  --ink-warm: #1a0a0a;
  --pink: #ff2a6d;          /* 霓虹粉：标题 / 高亮 / 按钮 */
  --blood: #d40000;         /* 血红：警告 / 死亡 */
  --paper: #f5f5dc;         /* 米白纸色 */
  --paper-dark: #e8e2c4;
  --text: #ffffff;
  --text-dim: #e0e0e0;
  --glitch: #00fff0;        /* 故障青 */
  --grey: #1c1c1f;          /* 论坛底色 */

  /* 字体栈：优先外链字体，离线时回退到本机字体，保证双击可用 */
  --font-display: "Bebas Neue", "Anton", "Impact", "Haettenschweiler",
    "Noto Sans JP", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans JP", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Noto Serif JP", "Source Han Serif SC", "Songti SC", "SimSun",
    "Yu Mincho", serif;
  --font-type: "Special Elite", "Courier New", "Consolas", "楷体", "KaiTi",
    monospace;
  --font-hand: "Ma Shan Zheng", "楷体", "KaiTi", "STKaiti", cursive;

  /* 尺寸 */
  --nav-h: 58px;
  --edge: 1px;              /* 描边基准 */

  /* 立绘与证件照：多处复用同一张图，统一走变量，
     这样打包成单文件时 base64 只出现一次（否则每处都塞一份，文件立刻翻几倍）。
     多文件版指向 assets/ 下的文件，单文件版由 _work/build-standalone.py 换成 data URI。 */
  --img-yuri: url("yuri.png");
  --img-face: url("yuri-face.png");
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 锚点滚动时给固定导航留位置 */
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--ink);
  /* 手机：禁止 Safari 自动放大字号、去掉点击时的蓝色高亮 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dim);
  background: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--pink); text-decoration: none; }

::selection { background: var(--pink); color: #000; }

/* 滚动条也做成弹丸风 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink), var(--blood));
  border: 2px solid #111;
}

/* ======================= 01 全局叠加层（氛围） ======================= */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
}

/* 雪花噪点：SVG 湍流做颗粒，靠位移抖动模拟胶片噪点 */
.fx-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: overlay;
  animation: grain-shift .55s steps(1) infinite;
}
@keyframes grain-shift {
  0%   { background-position: 0 0; }
  20%  { background-position: -30px 12px; }
  40%  { background-position: 18px -26px; }
  60%  { background-position: -12px 22px; }
  80%  { background-position: 26px 6px; }
  100% { background-position: 0 0; }
}

/* 扫描线：老式监视器质感 */
.fx-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .035) 0 1px,
    transparent 1px 3px
  );
  opacity: .55;
}

/* 胶片刮痕：几道会闪的竖线 */
.fx-scratch span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .5), transparent);
  opacity: 0;
  animation: scratch-run 7s linear infinite;
}
.fx-scratch span:nth-child(1) { left: 12%; animation-duration: 5.5s; animation-delay: .4s; }
.fx-scratch span:nth-child(2) { left: 47%; animation-duration: 9s;  animation-delay: 2.1s; background: linear-gradient(to bottom, transparent, rgba(255,42,109,.55), transparent); }
.fx-scratch span:nth-child(3) { left: 78%; animation-duration: 6.6s; animation-delay: 4.3s; }
@keyframes scratch-run {
  0%   { opacity: 0; transform: translateY(-20%); }
  6%   { opacity: .9; }
  12%  { opacity: 0; transform: translateY(18%); }
  100% { opacity: 0; }
}

/* 暗角 */
.fx-vignette {
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, .78) 100%);
}

/* 全屏故障闪切（撞击入场时点亮） */
.fx-flash {
  background: linear-gradient(105deg, transparent 40%, rgba(255, 42, 109, .55) 50%, transparent 60%);
  opacity: 0;
}
.fx-flash.on { animation: flash-sweep .42s ease-out; }
@keyframes flash-sweep {
  0%   { opacity: 0; transform: translateX(-30%); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(30%); }
}

/* ======================== 02 开机过场（黑白蚊） ======================== */
#boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity .5s ease;
}
#boot.gone { opacity: 0; pointer-events: none; }
#boot.done { display: none; }

/* 两片黑幕，点击后向上下拉开 */
#boot .shutter {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: #000;
  transition: transform .8s cubic-bezier(.7, 0, .2, 1);
}
#boot .shutter.top { top: 0; }
#boot .shutter.bottom { bottom: 0; }
#boot.open .shutter.top { transform: translateY(-100%); }
#boot.open .shutter.bottom { transform: translateY(100%); }

#boot .boot-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: opacity .28s ease, transform .4s ease;
}
#boot.open .boot-inner { opacity: 0; transform: scale(1.35); }

/* 蚊子剪影：上下浮动 + 轻微偏转，模拟"悬停" */
#boot .mosq {
  width: min(46vw, 260px);
  margin: 0 auto 18px;
  color: #fff;
  filter: drop-shadow(0 0 14px rgba(255, 42, 109, .55));
  animation: mosq-hover 2.6s ease-in-out infinite;
}
#boot .mosq svg { width: 100%; height: auto; }
@keyframes mosq-hover {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50%      { transform: translateY(-14px) rotate(7deg); }
}

#boot .buzz {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.4vw, 34px);
  letter-spacing: .42em;
  color: var(--pink);
  margin: 0 0 6px;
  animation: buzz-blink .28s steps(1) infinite;
}
@keyframes buzz-blink { 50% { opacity: .35; } }

#boot .press {
  font-family: var(--font-display);
  font-size: clamp(14px, 2.6vw, 20px);
  letter-spacing: .3em;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 26px;
  margin-top: 16px;
  display: inline-block;
  cursor: pointer;
  background: transparent;
  transform: skewX(-8deg);
  animation: press-blink 1.1s ease-in-out infinite;
}
#boot .press:hover { background: var(--pink); border-color: var(--pink); color: #000; }
@keyframes press-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

/* =========================== 03 顶部导航 =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  background: rgba(8, 8, 8, .86);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .6);
  transform: translateY(-110%);
  transition: transform .5s cubic-bezier(.2, .9, .25, 1.2);
}
.nav.show { transform: translateY(0); }

.nav .brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .18em;
  color: #fff;
  padding-right: 12px;
  margin-right: 6px;
  border-right: 1px solid #333;
  white-space: nowrap;
  transform: skewX(-8deg);
}
.nav .brand b { color: var(--pink); }

.nav .tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.nav .tabs::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--text-dim);
  padding: 8px 14px;
  white-space: nowrap;
  transform: skewX(-10deg);
  border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}
.nav a:hover { color: #fff; background: rgba(255, 42, 109, .16); border-color: rgba(255, 42, 109, .5); }
.nav a.active {
  color: #000;
  background: var(--pink);
  border-color: #fff;
  text-shadow: none;
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: #fff;
}

.nav .sound {
  margin-left: auto;
  flex: none;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid #444;
  padding: 6px 10px;
  cursor: pointer;
  transform: skewX(-10deg);
}
.nav .sound:hover { border-color: var(--pink); color: #fff; }
.nav .sound.off { color: #555; border-color: #2a2a2a; }

/* 顶部进度条：粉→血红的滚动进度 */
.nav .progress {
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--glitch));
}

/* ============================ 04 首页 Hero ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;   /* 手机上避开地址栏遮挡；不认这条的浏览器用上面 100vh 兜底 */
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 20px;
  padding: calc(var(--nav-h) + 44px) 5vw 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 65% at 62% 46%, #2a060f 0%, #14050a 42%, var(--ink) 78%),
    var(--ink);
}

/* 标志性黑白棋盘格（斜置、双面） */
.hero .checker {
  position: absolute;
  inset: -10%;
  background-image:
    repeating-conic-gradient(#fff 0 25%, transparent 0 50%);
  background-size: 68px 68px;
  opacity: .055;
  transform: perspective(600px) rotateX(38deg) rotateZ(-8deg);
  pointer-events: none;
}
/* 报纸碎片 */
.hero .scrap {
  position: absolute;
  background: var(--paper-dark);
  color: #2a2620;
  font-family: var(--font-serif);
  font-size: 10px;
  line-height: 1.15;
  padding: 8px 10px;
  opacity: .3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
  overflow: hidden;
  white-space: pre-wrap;
  pointer-events: none;
}
.hero .scrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(0, 0, 0, .28) 4px 5px);
  opacity: .35;
}
.hero .scrap.a { top: 12%; left: 3%; width: 150px; transform: rotate(-11deg); }
.hero .scrap.b { top: 62%; left: 6%; width: 118px; transform: rotate(7deg); }
.hero .scrap.c { top: 8%; right: 4%; width: 132px; transform: rotate(9deg); }
.hero .scrap.d { bottom: 4%; right: 3%; width: 150px; transform: rotate(-6deg); }
.hero .scrap .big {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}

/* --- 立绘 --- */
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 60vh;
  z-index: 2;
}
/* 立绘底部与黑暗融合的柔光 */
.hero-portrait .halo {
  position: absolute;
  bottom: -2%;
  left: 50%;
  transform: translateX(-50%);
  width: 118%;
  height: 34%;
  background: radial-gradient(ellipse at 50% 60%, rgba(212, 0, 0, .4), rgba(255, 42, 109, .14) 45%, transparent 72%);
  filter: blur(24px);
  z-index: 1;
}
/* 背后的一层模糊鬼影，制造"从黑暗中浮现" */
.hero-portrait .ghost {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: min(90vh, 940px);
  aspect-ratio: 780 / 1756;
  background: var(--img-yuri) center bottom / contain no-repeat;
  filter: blur(11px) brightness(.5);
  opacity: .5;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}
/* 立绘定位框：尺寸=图片尺寸，眼睛发光与取景框都以它为参照 */
.art-box {
  position: relative;
  display: inline-block;
  z-index: 3;
}
.hero-portrait .art {
  position: relative;
  z-index: 3;
  max-height: min(90vh, 940px);
  width: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .85));
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, rgba(0, 0, 0, .25) 97%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, rgba(0, 0, 0, .25) 97%, transparent 100%);
  transition: filter .3s;
}
body.hero-live .hero-portrait .art {
  animation: rise-in 1.5s cubic-bezier(.18, .86, .24, 1) both;
  animation-delay: .85s;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(56px) scale(.965); filter: brightness(.15) blur(8px); }
  to   { opacity: 1; transform: none; }
}
/* 悬停：红色故障边框 + 眼睛发光 + 抖动 */
.hero-portrait:hover .art {
  animation: art-buzz .22s steps(2) infinite;
  filter: drop-shadow(0 0 10px rgba(255, 42, 109, .85)) drop-shadow(0 0 26px rgba(212, 0, 0, .5)) saturate(1.08);
}
@keyframes art-buzz {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2px, 1px); }
  100% { transform: translate(2px, -1px); }
}
/* 眼睛发光层（屏幕混合，位置对齐面部；百分比相对立绘定位框） */
.hero-portrait .eyeglow {
  position: absolute;
  left: 61.5%;
  top: 11.2%;
  width: 21%;
  height: 3%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 60, 120, .95), rgba(255, 42, 109, .3) 55%, transparent 78%);
  filter: blur(3px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .35s;
  z-index: 4;
  pointer-events: none;
}
.hero-portrait:hover .eyeglow { opacity: 1; animation: eye-pulse 1.4s ease-in-out infinite; }
@keyframes eye-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* 悬停时出现的红色故障取景框 */
.hero-portrait .frame {
  position: absolute;
  inset: 3% 2% 6%;
  border: 1px solid rgba(255, 42, 109, 0);
  z-index: 5;
  pointer-events: none;
  transition: border-color .25s;
}
.hero-portrait:hover .frame { border-color: rgba(255, 42, 109, .55); }
.hero-portrait .frame span {
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--pink);
  opacity: 0;
  transition: opacity .25s;
}
.hero-portrait .frame .tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-portrait .frame .tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero-portrait .frame .bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero-portrait .frame .br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-portrait:hover .frame span { opacity: 1; }

/* --- 标题区 --- */
.hero-text {
  position: relative;
  z-index: 3;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: .34em;
  color: var(--pink);
  border: 1px solid rgba(255, 42, 109, .55);
  padding: 4px 12px;
  margin-bottom: 14px;
  transform: skewX(-10deg);
  background: rgba(255, 42, 109, .07);
}

/* 大标题：「超高校级的侦探助手」——左右撞击进入 */
.hero-title {
  margin: 0 0 16px;   /* scaleY(1.12) 会让字视觉上溢出行盒，留出余量免得压到下一行 */
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7.4vw, 104px);
  line-height: .98;
  letter-spacing: -.01em;
  color: #fff;
  transform: skewX(-7deg) scaleY(1.12);
  -webkit-text-stroke: 3px #000;
  text-shadow:
    5px 5px 0 #000,
    10px 10px 0 rgba(255, 42, 109, .35);
}
.hero-title .l, .hero-title .r { display: inline-block; }
/* 注意：所有首页入场动画都挂在 body.hero-live 下。
   开机过场（黑白蚊）会盖住首页，如果动画在页面加载时就跑，用户点进来时已经播完了。
   body.hero-live 由脚本在过场拉开时加上；脚本万一失效则退化成"直接可见"，不会白屏。 */
body.hero-live .hero-title .l {
  animation: slam-left 1s cubic-bezier(.14, .9, .22, 1.32) both;
  animation-delay: .12s;
}
body.hero-live .hero-title .r {
  animation: slam-right 1s cubic-bezier(.14, .9, .22, 1.32) both;
  animation-delay: .12s;
  color: var(--pink);
  text-shadow: 5px 5px 0 #000, 10px 10px 0 rgba(0, 255, 240, .22);
}
@keyframes slam-left {
  0%   { opacity: 0; transform: translateX(-70vw) skewX(22deg) scaleX(1.5); filter: blur(14px); }
  62%  { opacity: 1; transform: translateX(9px) skewX(-10deg) scaleX(.98); filter: blur(0); }
  78%  { transform: translateX(-4px); }
  100% { transform: none; }
}
@keyframes slam-right {
  0%   { opacity: 0; transform: translateX(70vw) skewX(-22deg) scaleX(1.5); filter: blur(14px); }
  62%  { opacity: 1; transform: translateX(-9px) skewX(-4deg) scaleX(.98); filter: blur(0); }
  78%  { transform: translateX(4px); }
  100% { transform: none; }
}

/* 标题下的日文原文 */
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 21px);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .78);
  margin: 6px 0 22px;
  padding-left: 2px;
}
body.hero-live .hero-sub { animation: fade-up .8s ease both; animation-delay: .7s; }
.hero-sub::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 2px;
  background: var(--pink);
  vertical-align: middle;
  margin-right: 12px;
}

/* 角色名 */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: .14em;
  color: #fff;
  margin: 0 0 4px;
}
body.hero-live .hero-name { animation: fade-up .8s ease both; animation-delay: .85s; }
.hero-name .jp { font-family: var(--font-serif); color: var(--pink); margin-right: 10px; }
.hero-name .en { color: #8b8b8b; font-size: .62em; letter-spacing: .22em; }

/* 台词 */
.hero-quote {
  position: relative;
  margin: 24px 0 30px;
  padding: 12px 18px 12px 22px;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.9vw, 22px);
  color: #fff;
  border-left: 3px solid var(--pink);
  background: linear-gradient(90deg, rgba(255, 42, 109, .12), transparent 70%);
  width: fit-content;   /* 盒子紧贴文字，桌面端不会在最后一个字前折行 */
  max-width: 100%;
}
body.hero-live .hero-quote { animation: fade-up .8s ease both; animation-delay: 1s; }
.hero-quote::before {
  content: "“";
  position: absolute;
  left: 4px; top: -14px;
  font-size: 44px;
  color: rgba(255, 42, 109, .55);
  font-family: var(--font-serif);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.hero-live .hero-stats { animation: fade-up .8s ease both; animation-delay: 1.15s; }
.hero-stats .chip {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  padding: 5px 12px;
  border: 1px solid #3a3a3a;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .03);
  transform: skewX(-8deg);
}
.hero-stats .chip.danger { border-color: var(--blood); color: #ff8b8b; }

/* 向下滚动提示 */
.hero .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .45);
  text-align: center;
  animation: cue-bob 2s ease-in-out infinite;
  z-index: 4;
}
.hero .scroll-cue i {
  display: block;
  width: 1px; height: 34px;
  margin: 8px auto 0;
  background: linear-gradient(var(--pink), transparent);
}
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ 05 通用：分段 / 撞击入场 / 区块标题 / 纸张 ============ */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 130px) 5vw;
  overflow: hidden;
}
.section.dark { background: var(--ink); }
.section.warm { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-warm) 55%, var(--ink) 100%); }

.wrap { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; }
.wrap.narrow { max-width: 900px; }

/* 撞击入场 */
.reveal {
  opacity: 0;
  transform: translateX(-90px) skewX(-14deg) scaleX(1.14);
  filter: blur(7px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.16, .9, .24, 1.3), filter .4s ease;
  will-change: transform, opacity;
}
.reveal.from-right { transform: translateX(90px) skewX(14deg) scaleX(1.14); }
.reveal.from-bottom { transform: translateY(60px) scale(.98); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* 分段标题：黑底粉字 + 描边 + 故障 */
.sec-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.sec-head .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  opacity: .85;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.2vw, 50px);
  letter-spacing: .02em;
  color: #fff;
  transform: skewX(-7deg);
  -webkit-text-stroke: 2px #000;
  text-shadow: 4px 4px 0 rgba(255, 42, 109, .55);
  position: relative;
}
.sec-head .jp-note {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .18em;
  color: #7a7a7a;
  padding-bottom: 8px;
}
.sec-head .rule-line {
  flex: 1;
  height: 3px;
  min-width: 60px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 14px, transparent 14px 22px);
  margin-bottom: 12px;
}

/* 故障文字：data-text 双层伪元素错位 */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--glitch);
  z-index: -1;
  animation: glitch-a 2.6s steps(2) infinite;
}
.glitch::after {
  color: var(--pink);
  z-index: -2;
  animation: glitch-b 3.4s steps(2) infinite;
}
@keyframes glitch-a {
  0%, 88%, 100% { transform: translate(0, 0); opacity: 0; }
  90% { transform: translate(-3px, 1px); opacity: .9; clip-path: inset(8% 0 42% 0); }
  94% { transform: translate(3px, -1px); opacity: .9; clip-path: inset(52% 0 12% 0); }
  97% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 84%, 100% { transform: translate(0, 0); opacity: 0; }
  86% { transform: translate(3px, -2px); opacity: .85; clip-path: inset(30% 0 48% 0); }
  92% { transform: translate(-4px, 2px); opacity: .85; clip-path: inset(70% 0 6% 0); }
  96% { opacity: 0; }
}

/* 纸张 / 撕裂边缘
   结构：.paper（定位 / 旋转 / 投影）> .paper-clip（纸色 + 锯齿裁切 + 纸纹）
   —— 用 filter: drop-shadow 而不是 box-shadow，投影会跟着裁切后的轮廓走；
      胶带、卷轴轴心等需要"露出纸外"的元素放在 .paper 下、.paper-clip 之外 */
.paper {
  position: relative;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .62)) drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}
.paper-clip {
  position: relative;
  padding: clamp(22px, 3.4vw, 42px);
  background-color: var(--paper);
  color: #17161a;
  box-shadow: inset 0 0 90px rgba(120, 96, 40, .22);
}
/* 纸纹（纤维 + 斑点） */
.paper-clip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23p)' opacity='.35'/%3E%3C/svg%3E"),
    radial-gradient(circle at 12% 18%, rgba(150, 120, 60, .16), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(150, 120, 60, .18), transparent 34%);
  mix-blend-mode: multiply;
  opacity: .5;
  z-index: 0;
}
/* 内层褶皱阴影 */
.paper-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, transparent 28%),
              linear-gradient(-24deg, rgba(120, 100, 60, .14) 40%, transparent 60%);
  z-index: 1;
}
.paper-clip > * { position: relative; z-index: 2; }

/* 胶带贴纸 */
.tape {
  position: absolute;
  width: 96px;
  height: 27px;
  background: linear-gradient(105deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .16));
  border-left: 1px dashed rgba(255, 255, 255, .35);
  border-right: 1px dashed rgba(255, 255, 255, .35);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  backdrop-filter: blur(1px);
  z-index: 6;
}
.tape.t1 { top: -13px; left: 6%; transform: rotate(-6deg); }
.tape.t2 { top: -13px; right: 8%; transform: rotate(5deg); }
.tape.t3 { bottom: -13px; left: 12%; transform: rotate(4deg); }
.tape.t4 { bottom: -13px; right: 14%; transform: rotate(-5deg); }

/* 手写体 / 打字机 */
.type-font { font-family: var(--font-type); }
.hand-font { font-family: var(--font-hand); }

/* 通用小标签 */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  padding: 3px 9px;
  border: 1px solid currentColor;
  transform: skewX(-9deg);
}
.tag.pink { color: var(--pink); }
.tag.blood { color: var(--blood); }
.tag.cyan { color: var(--glitch); }

/* 屏幕震动（撞击入场时） */
body.shake { animation: screen-shake .34s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes screen-shake {
  10%, 90% { transform: translate3d(-1px, 1px, 0); }
  20%, 80% { transform: translate3d(2px, -1px, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 1px, 0); }
  40%, 60% { transform: translate3d(3px, -1px, 0); }
}

/* =================== 06 基本信息表（学籍档案卡） =================== */
.archive-card {
  position: relative;
  transform: rotate(-.5deg);
}
/* 档案抬头 */
.archive-card .head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px double #17161a;
}
.archive-card .head-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: .06em;
  color: #fff;
  -webkit-text-stroke: 1.6px #000;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .25);
  transform: skewX(-8deg);
}
.archive-card .head-row .no {
  margin-left: auto;
  font-family: var(--font-type);
  font-size: 12px;
  color: #6b6350;
  letter-spacing: .1em;
}
.archive-card .stamp-mini {
  width: 30px; height: 30px;
  color: var(--blood);
  opacity: .85;
  flex: none;
}

.archive-grid {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

/* 证件照 */
.id-photo {
  position: relative;
  background: #fff;
  padding: 9px 9px 30px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  transform: rotate(-2deg);
}
.id-photo img {
  width: 100%;
  background:
    repeating-conic-gradient(#dcd7bd 0 25%, #f2eed6 0 50%);
  background-size: 18px 18px;
  /* 证件照当作深色页面里的"贴纸"，背景网格衬托 */
  background-color: #cfc9ae;
}
.id-photo .cap {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  text-align: center;
  font-family: var(--font-type);
  font-size: 11px;
  color: #5c5544;
  letter-spacing: .06em;
}
.id-photo .seal {
  position: absolute;
  right: -14px; bottom: 14px;
  width: 62px; height: 62px;
  color: rgba(212, 0, 0, .8);
  transform: rotate(-14deg);
}
.id-photo .clip {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 40px;
  border: 3px solid #9a937c;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  opacity: .55;
}

/* 信息表：虚线 + 胶带感 */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.info-table th,
.info-table td {
  border-bottom: 1px dashed #9c9377;
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.info-table tr:first-child th,
.info-table tr:first-child td { border-top: 1px dashed #9c9377; }
.info-table th {
  width: 132px;
  font-weight: 700;
  color: #4a4433;
  background: rgba(120, 100, 50, .09);
  border-right: 1px dashed #9c9377;
  white-space: nowrap;
  font-family: var(--font-serif);
}
.info-table td { color: #17161a; }
.info-table td .val {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
}
.info-table td .note {
  display: block;
  font-size: 12px;
  color: #6d6551;
  font-weight: 400;
  letter-spacing: .02em;
}
.info-table .hi { color: var(--blood); font-weight: 700; }
.info-table tr:hover td { background: rgba(255, 42, 109, .1); }

/* 备注区 */
.archive-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(120, 100, 50, .1);
  border-left: 4px solid var(--blood);
  font-size: 14.5px;
  color: #2b271d;
  line-height: 1.85;
}
.archive-note b { color: #000; }
.archive-note .label {
  display: block;
  font-family: var(--font-display);
  letter-spacing: .16em;
  color: var(--blood);
  margin-bottom: 4px;
  transform: skewX(-8deg);
}
/* 诊断小标签组 */
.diag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.diag-row .d-chip {
  font-size: 12.5px;
  padding: 4px 10px;
  border: 1px dashed #8e8670;
  color: #3b3527;
  background: rgba(255, 255, 255, .4);
}
.diag-row .d-chip b { color: var(--blood); }

/* ========================= 07 才能申报表 ========================= */
.talent-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
}
.talent-card {
  position: relative;
  transform: rotate(.4deg);
}
.talent-card .form-no {
  font-family: var(--font-type);
  font-size: 12px;
  color: #7b735d;
  letter-spacing: .16em;
  margin-bottom: 12px;
}
.talent-name-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 3px solid #17161a;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.talent-name-line .k {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #5d5644;
  letter-spacing: .1em;
}
.talent-name-line .v {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 2px #000;
  text-shadow: 5px 5px 0 rgba(212, 0, 0, .35);
  transform: skewX(-8deg);
}
.talent-block { margin-bottom: 18px; }
.talent-block .bk {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: .18em;
  font-size: 13px;
  color: #fff;
  background: #17161a;
  padding: 3px 10px;
  transform: skewX(-10deg);
  margin-bottom: 8px;
}
/* 才能描述：打字机字体 */
.talent-block .bv {
  font-family: var(--font-type);
  font-size: 15.5px;
  line-height: 1.95;
  color: #201e18;
}
/* 对角色的看法：手写体 */
.talent-block .comment {
  font-family: var(--font-hand);
  font-size: 19px;
  line-height: 1.9;
  color: #8c1220;
  padding-left: 14px;
  border-left: 3px solid rgba(212, 0, 0, .45);
}
.talent-block .comment::before { content: "“"; }
.talent-block .comment::after { content: "”"; }

/* 才能徽章：放大镜 + 骷髅 */
.talent-badge {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}
.talent-badge .badge-ring {
  position: relative;
  width: min(230px, 52vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--pink);
}
.talent-badge .badge-ring svg { width: 100%; height: 100%; }
.talent-badge .badge-ring::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 109, .22), transparent 70%);
  animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.talent-badge .badge-cap {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .28em;
  color: #8a8a8a;
}
/* 环绕的蚊子剪影 */
.talent-badge .swarm i {
  position: absolute;
  color: #fff;
  opacity: .18;
  animation: swarm 6s ease-in-out infinite;
}
.talent-badge .swarm i:nth-child(1) { top: 4%; left: -6%; width: 34px; animation-delay: 0s; }
.talent-badge .swarm i:nth-child(2) { top: 68%; left: -10%; width: 26px; animation-delay: 1.2s; }
.talent-badge .swarm i:nth-child(3) { top: 12%; right: -8%; width: 30px; animation-delay: 2.4s; }
.talent-badge .swarm i:nth-child(4) { bottom: 12%; right: -12%; width: 22px; animation-delay: 3.1s; }
@keyframes swarm {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); opacity: .12; }
  50%      { transform: translate(9px, -12px) rotate(8deg); opacity: .34; }
}

/* ===================== 08 绝密·学籍档案（打字机） ===================== */
.secret {
  background:
    radial-gradient(ellipse 70% 52% at 18% 22%, rgba(120, 0, 0, .32), transparent 62%),
    radial-gradient(ellipse 60% 45% at 88% 78%, rgba(120, 0, 0, .26), transparent 60%),
    linear-gradient(180deg, #08080a, #100507 50%, #08080a);
  color: #e8e8e8;
}
/* 血迹 */
.blood-stain {
  position: absolute;
  pointer-events: none;
  opacity: .34;
  filter: blur(2px);
}
.blood-stain.s1 { top: 6%; right: 4%; width: 230px; transform: rotate(12deg); }
.blood-stain.s2 { bottom: 12%; left: 2%; width: 180px; transform: rotate(-24deg); opacity: .26; }

/* 破碎镜片 */
.shards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.shards .shard {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 45%, rgba(255, 42, 109, .1));
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(.5px);
  box-shadow: 0 0 22px rgba(0, 0, 0, .6) inset;
}
/* 镜中模糊人影 */
.shards .shard .mirror {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 70% at 50% 55%, rgba(255, 255, 255, .22), transparent 70%);
  filter: blur(3px);
  opacity: .55;
  animation: mirror-flicker 4.5s ease-in-out infinite;
}
@keyframes mirror-flicker { 0%, 100% { opacity: .25; } 45% { opacity: .6; } 55% { opacity: .12; } }

/* 档案纸 */
.secret-file {
  position: relative;
  z-index: 3;
  padding: clamp(22px, 3.6vw, 44px);
  background: linear-gradient(180deg, rgba(14, 14, 16, .92), rgba(22, 6, 8, .94));
  border: 1px solid rgba(212, 0, 0, .35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .8), inset 0 0 90px rgba(212, 0, 0, .08);
}
.secret-file::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(255, 255, 255, .035) 27px 28px);
  pointer-events: none;
}
/* 红色保密章 */
.secret-file .cls-stamp {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 22px);
  letter-spacing: .22em;
  color: rgba(212, 0, 0, .8);
  border: 3px double rgba(212, 0, 0, .7);
  padding: 4px 12px;
  transform: rotate(-9deg);
  z-index: 4;
}
.secret-file .file-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: .1em;
  color: #fff;
  margin: 0 0 6px;
  transform: skewX(-8deg);
  -webkit-text-stroke: 1.6px #000;
  text-shadow: 4px 4px 0 rgba(212, 0, 0, .5);
}
.secret-file .file-meta {
  font-family: var(--font-type);
  font-size: 12px;
  color: #8b6b6b;
  letter-spacing: .1em;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(212, 0, 0, .4);
}

/* 打字机段落 */
.typed {
  font-family: var(--font-type);
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 2.05;
  color: #dcdcdc;
  margin: 0 0 20px;
  min-height: 1.4em;
}
.typed .ch { opacity: 0; }
.typed .ch.on { opacity: 1; }
/* 光标 */
.typed .caret {
  display: inline-block;
  width: .58em;
  height: 1.05em;
  background: var(--pink);
  vertical-align: -.18em;
  margin-left: 2px;
  animation: caret-blink .7s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* 重点：血红高亮 + 轻微故障抖动 */
.typed .hl,
.hl {
  color: #ff4d4d;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(212, 0, 0, .8);
  position: relative;
}
.hl-dead {
  color: #fff;
  background: var(--blood);
  padding: 1px 6px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .6);
  animation: hl-jitter 3.2s steps(1) infinite;
}
@keyframes hl-jitter {
  0%, 92%, 100% { transform: none; }
  94% { transform: translate(-2px, 1px) skewX(-6deg); }
  97% { transform: translate(2px, -1px) skewX(4deg); }
}
.glitch-text {
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
}

.secret-file .tail-note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed rgba(212, 0, 0, .4);
  font-family: var(--font-serif);
  font-size: 14px;
  color: #b98a8a;
  letter-spacing: .06em;
}
.secret-file .skip {
  position: absolute;
  right: 20px; bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .16em;
  color: #777;
  background: transparent;
  border: 1px solid #3a2a2a;
  padding: 4px 10px;
  cursor: pointer;
}
.secret-file .skip:hover { color: var(--pink); border-color: var(--pink); }

/* ============= 09 独白记录（加密日记 / 节目期间片段） ============= */
.monologue {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 46% at 50% 0%, rgba(86, 118, 172, .16), transparent 64%),
    linear-gradient(180deg, #05060a 0%, #0a0e16 45%, #05060a 100%);
}
/* 冷雨：细密斜线缓慢下移，呼应文中「冰冷的雨水拍打在身上」 */
.monologue .rain {
  position: absolute;
  inset: -25% -12%;
  pointer-events: none;
  background-image: repeating-linear-gradient(100deg,
    transparent 0 7px,
    rgba(186, 212, 255, .075) 7px 8px,
    transparent 8px 15px);
  animation: rain-fall 7s linear infinite;
  opacity: .5;
}
@keyframes rain-fall { to { background-position: -240px 1000px; } }

/* 深色纸：复用 .paper / .paper-clip 的撕裂边缘机制，只换配色 */
.diary { position: relative; transform: rotate(-.4deg); }
.record { position: relative; transform: rotate(.3deg); margin-top: clamp(34px, 5vw, 60px); }

.diary .paper-clip {
  background-color: #12161f;
  color: #dde4f0;
  box-shadow: inset 0 0 90px rgba(60, 92, 145, .2);
}
/* 深色纸换成 screen 混合，纸纹变成细粉尘而不是暗斑 */
.diary .paper-clip::before { mix-blend-mode: screen; opacity: .1; }
/* 横格纸 + 左侧红线 */
.diary .paper-clip::after {
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(160, 190, 240, .075) 31px 32px),
    linear-gradient(90deg, transparent 0 15px, rgba(212, 0, 0, .38) 15px 17px, transparent 17px),
    linear-gradient(115deg, rgba(255, 255, 255, .045) 0%, transparent 30%);
}

/* 抬头 */
.sheet-head {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(160, 190, 240, .22);
}
.sheet-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.7vw, 29px);
  letter-spacing: .05em;
  color: #fff;
  transform: skewX(-7deg);
  -webkit-text-stroke: 1.4px #000;
  text-shadow: 3px 3px 0 rgba(255, 42, 109, .35);
}
.sheet-head .sheet-meta {
  margin: 0;
  font-family: var(--font-type);
  font-size: 11.5px;
  line-height: 1.8;
  color: #7d8ba6;
  letter-spacing: .06em;
}

/* 「已解密」章 */
.decoded-stamp {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: .2em;
  color: var(--pink);
  border: 2px solid rgba(255, 42, 109, .72);
  padding: 3px 10px;
  transform: rotate(7deg);
  box-shadow: 0 0 20px rgba(255, 42, 109, .22);
  z-index: 5;
}

/* 正文 */
.diary-body,
.record-body {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(14.5px, 1.55vw, 16.5px);
  line-height: 2.15;
  color: #cfd8e8;
}
.diary-body p,
.record-body p { margin: 0 0 14px; }

/* “真实” —— 全篇的第一个词，单独放大做故障处理 */
.d-lead {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.1;
  text-align: center;
  letter-spacing: .08em;
  color: #fff;
  margin: 4px 0 24px;
  -webkit-text-stroke: 1.6px #000;
  text-shadow: 4px 4px 0 rgba(255, 42, 109, .28);
}
.d-quiet { color: #8ea0bc; }
.d-ask { color: #fff; font-weight: 700; font-size: 1.06em; }
.d-hl {
  color: #ff6b6b;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(212, 0, 0, .5);
}
.d-cry {
  color: #ff4d4d;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: .03em;
}
.d-ellipsis {
  text-align: center;
  color: #67768f;
  letter-spacing: .6em;
  margin: 22px 0;
}

/* [她] / [死去]：被标记的词，像真相从涂黑里透出来 */
.brk {
  color: #ff6060;
  background: rgba(212, 0, 0, .14);
  border: 1px solid rgba(212, 0, 0, .45);
  border-radius: 2px;
  padding: 0 4px;
  font-weight: 700;
  white-space: nowrap;
}

/* 招募对话 */
.dlg {
  margin: 28px 0 4px;
  padding: 18px 20px;
  border-left: 3px solid var(--pink);
  background: linear-gradient(90deg, rgba(255, 42, 109, .09), transparent 80%);
  display: grid;
  gap: 13px;
}
.dlg .line {
  margin: 0;
  font-family: var(--font-type);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.95;
}
.dlg .who {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .14em;
  padding: 1px 7px;
  margin-right: 9px;
  transform: skewX(-9deg);
  vertical-align: 1px;
}
.dlg .q { color: #ffd0dc; }
.dlg .q .who { background: var(--pink); color: #000; }
.dlg .a { color: #e8eef8; padding-left: 20px; }
.dlg .a .who { border: 1px solid #6d7d99; color: #b9c6da; }

/* 节目期间的片段：冷色 + 打字机字 */
.record .paper-clip {
  background-color: #0a0f17;
  color: #c9d4e4;
  box-shadow: inset 0 0 90px rgba(0, 255, 240, .05);
}
.record .paper-clip::before { mix-blend-mode: screen; opacity: .08; }
.record .paper-clip::after {
  background: linear-gradient(115deg, rgba(0, 255, 240, .055) 0%, transparent 34%);
}
.record .sheet-head { border-bottom-color: rgba(0, 255, 240, .2); }
.record .sheet-head h3 { text-shadow: 3px 3px 0 rgba(0, 255, 240, .22); }
.record-body {
  font-family: var(--font-type);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2.1;
  color: #c9d4e4;
}
/* 碧绿眼眸的主人开口 —— 用故障青把「另一个人的声音」标出来 */
.quote-line {
  color: var(--glitch);
  padding-left: 16px;
  border-left: 2px solid rgba(0, 255, 240, .4);
  text-shadow: 0 0 14px rgba(0, 255, 240, .25);
}

/* 巧克力罐里的字条 */
.note-slip {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto !important;
  padding: 12px 20px;
  background: linear-gradient(160deg, #f2ecd8, #dcd5b9);
  color: #26221c;
  font-family: var(--font-type);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.95;
  border-left: 3px solid rgba(212, 0, 0, .55);
  transform: rotate(-1.6deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .62);
}

/* 终幕 */
.finale {
  margin: 28px 0 0 !important;
  padding-top: 18px;
  border-top: 1px dashed rgba(160, 190, 240, .25);
  font-size: clamp(16px, 2vw, 21px) !important;
  line-height: 1.95 !important;
  color: #fff;
}
.finale span {
  color: var(--pink);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(255, 42, 109, .45);
}
.finale.small {
  margin-top: 10px !important;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(14.5px, 1.6vw, 17px) !important;
  color: #ffb3c9;
}

/* ==================== 10 瓜条（挂人帖 / 论坛） ==================== */
.forum {
  background:
    linear-gradient(180deg, #111 0%, #16161a 40%, #0d0d10 100%);
  position: relative;
}
.forum .board {
  background: var(--grey);
  border: 1px solid #2e2e33;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .85);
  position: relative;
}
.forum .board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #232327;
  border-bottom: 1px solid #333;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  color: #9a9a9a;
}
.forum .board-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #444; }
.forum .board-head .dot.r { background: #ff5f57; }
.forum .board-head .dot.y { background: #febc2e; }
.forum .board-head .dot.g { background: #28c840; }
.forum .board-head .path { margin-left: 6px; color: #7a7a7a; }

/* 帖子卡片：像被撕下来贴在页面上 */
.post {
  position: relative;
  margin: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 32px);
  background: #1a1a1e;
  border: 1px solid #333;
  border-left: 4px solid var(--blood);
  transform: rotate(-.7deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
  cursor: pointer;
  transition: box-shadow .3s, transform .3s;
}
.post:hover { box-shadow: 0 22px 54px rgba(212, 0, 0, .3); transform: rotate(0deg); }
.post .post-type {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  background: var(--blood);
  color: #fff;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.post h3.title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 27px);
  line-height: 1.5;
  color: #ff6060;
  letter-spacing: .01em;
}
.post h3.title .strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 96, 96, .8);
  opacity: .7;
}
.post .poster {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #8d8d8d;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed #3a3a40;
}
.post .poster .avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #26262b;
  border: 1px solid #3d3d44;
  color: var(--blood);
  flex: none;
}
.post .poster .avatar svg { width: 70%; height: 70%; }
.post .poster b { color: #cfcfcf; font-weight: 600; }
.post .poster .time { margin-left: auto; font-family: var(--font-type); font-size: 12px; }

.post-body {
  font-size: 15.5px;
  line-height: 2;
  color: #ff3b3b;
  position: relative;
  max-height: 340px;
  overflow: hidden;
  transition: max-height .7s cubic-bezier(.2, .8, .25, 1);
}
.post.open .post-body { max-height: 4200px; }
/* 折叠时的渐隐 + 提示 */
.post .fade-mask {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(transparent, #1a1a1e 78%);
  pointer-events: none;
  transition: opacity .4s;
}
.post.open .fade-mask { opacity: 0; }
.post .unfold {
  position: relative;
  z-index: 3;
  display: block;
  margin: 6px auto 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--pink);
  background: transparent;
  border: 1px solid var(--pink);
  padding: 6px 16px;
  cursor: pointer;
  transform: skewX(-9deg);
}
.post .unfold:hover { background: var(--pink); color: #000; }

.post-body p { margin: 0 0 16px; }
.post-body .strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #d40000;
  color: #ff8f8f;
  opacity: .72;
}
.post-body .censor {
  display: inline-block;
  background: #000;
  color: #000;
  text-shadow: none;
  padding: 0 4px;
  position: relative;
  user-select: none;
}
.post-body .censor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #000 0 6px, #2a0000 6px 7px);
}
.post-body .spam {
  font-family: var(--font-type);
  color: #ff8080;
  opacity: .85;
}
.post-body .robot { font-family: var(--font-type); font-size: 12.5px; color: #ff9b9b; }

/* 红墨飞溅：展开帖子时从左上方炸开一摊，右下方补几滴 */
.ink-splat {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform-origin: 30% 30%;
}
.ink-splat.a { left: -5%; top: -7%; width: 44%; height: 40%; transform: rotate(-12deg); }
.ink-splat.b { right: -6%; bottom: 4%; width: 24%; height: 22%; transform: rotate(24deg); }
.post.splatting .ink-splat.a { animation: splat .95s ease-out; }
.post.splatting .ink-splat.b { animation: splat .95s ease-out .1s; }
@keyframes splat {
  0%   { opacity: 0; transform: scale(.35) rotate(-12deg); }
  18%  { opacity: .95; }
  55%  { opacity: .62; }
  100% { opacity: 0; transform: scale(1.18) rotate(-12deg); }
}

/* 无尽的「永远」→ 绳 / 藤蔓 → 吊着的人影 */
.forever-block {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed #3a3a40;
}
.forever {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1px;
  line-height: 1;
  max-height: 300px;
  overflow: hidden;
  /* 末行不做硬切，向下溶进黑暗，像是"还没写完" */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .35) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .35) 90%, transparent 100%);
}
.forever span {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--blood);
  will-change: font-size, opacity;
}
.forever .tail { color: #7a2a2a; }
/* 绳与吊影 */
.rope-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: -6px;
}
.rope-wrap svg { width: min(280px, 64vw); height: auto; overflow: visible; }
.rope-wrap .draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.2s ease-in-out;
}
.rope-wrap.in .draw { stroke-dashoffset: 0; }
.rope-wrap .hanger {
  opacity: 0;
  filter: blur(2.5px);
  animation: hanger-sway 5s ease-in-out infinite;
  transition: opacity 1s ease 1.6s;
}
.rope-wrap.in .hanger { opacity: .8; }
@keyframes hanger-sway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}
.rope-wrap .hang-text {
  font-family: var(--font-hand);
  font-size: 15px;
  color: #b04a4a;
  text-align: center;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 1s ease 2.2s;
}
.rope-wrap.in .hang-text { opacity: 1; }

/* ============== 11 筛选问题（学级裁判 问答） ============== */
.trial {
  position: relative;
  background:
    linear-gradient(180deg, #0b0b0d, #131317 60%, #0b0b0d);
}
/* 裁判场抽象线条（透视地板 + 光柱） */
.trial .court {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    /* 地砖透视 */
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 76px),
    /* 中央光柱 */
    radial-gradient(ellipse 46% 62% at 50% 0%, rgba(255, 42, 109, .16), transparent 66%);
  transform: perspective(520px) rotateX(56deg) scale(1.9);
  transform-origin: 50% 100%;
  bottom: 0; top: auto;
  height: 62%;
}
.trial .court-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 44%, rgba(255, 42, 109, .12) 50%, transparent 56%),
    linear-gradient(-120deg, transparent 44%, rgba(0, 255, 240, .08) 50%, transparent 56%);
}

.q-block {
  position: relative;
  margin-bottom: clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.q-block .qno {
  position: absolute;
  left: -18px;
  top: -20px;
  width: clamp(46px, 6vw, 64px);
  height: clamp(46px, 6vw, 64px);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  color: #fff;
  background: var(--pink);
  border: 3px solid #fff;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 #000;
  z-index: 4;
}
.q-block .qno svg {
  position: absolute;
  inset: -34%;
  width: 168%;
  height: 168%;
  color: var(--glitch);
  opacity: .55;
  pointer-events: none;
}
.q-block .qno span { position: relative; z-index: 2; }

/* 黑白蚊对话框：白底黑框，切角 */
.bubble {
  position: relative;
  padding: 16px 20px;
  font-size: 15.5px;
  line-height: 1.9;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.bubble.q {
  background: var(--paper);
  color: #14130f;
  border: 2px solid #000;
  margin-left: clamp(30px, 5vw, 54px);
  font-family: var(--font-serif);
  font-weight: 600;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .55);
}
.bubble.q::before {
  content: "";
  position: absolute;
  left: 26px; bottom: -13px;
  width: 0; height: 0;
  border: 7px solid transparent;
  border-top-color: var(--paper);
  border-right: 0;
}
.bubble.q .who {
  position: absolute;
  top: -12px; left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  background: #000;
  color: #fff;
  padding: 2px 9px;
  transform: skewX(-10deg);
}
.bubble.q .who svg { width: 14px; height: 14px; color: var(--pink); }

/* 角色回答气泡 */
.bubble.a {
  position: relative;
  margin-left: clamp(40px, 8vw, 110px);
  background: linear-gradient(160deg, rgba(255, 42, 109, .16), rgba(20, 20, 24, .95));
  border: 2px solid rgba(255, 42, 109, .55);
  color: #fff;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .6);
}
.bubble.a .pfp {
  width: 56px; height: 56px;
  border: 2px solid var(--pink);
  overflow: hidden;
  background: #111 var(--img-face) 50% 22% / cover no-repeat;
  transform: rotate(-3deg);
}
.bubble.a .txt { font-size: 15.5px; }
.bubble.a .txt em {
  font-style: normal;
  color: #ffb3c9;
  font-size: 12.5px;
  letter-spacing: .1em;
  display: block;
  margin-top: 3px;
}
.bubble.a.dim { opacity: .82; }

/* ===================== 12 校规（卷轴 / 告示板） ===================== */
.rules-board {
  position: relative;
  transform: rotate(.3deg);
}
.rules-board .paper-clip { padding-top: clamp(34px, 4.4vw, 58px); padding-bottom: clamp(34px, 4.4vw, 58px); }
.rules-board .board-title {
  text-align: center;
  margin-bottom: 6px;
}
.rules-board .board-title h3 {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.4vw, 48px);
  letter-spacing: .12em;
  color: #fff;
  -webkit-text-stroke: 2px #000;
  text-shadow: 4px 4px 0 rgba(212, 0, 0, .4);
  transform: skewX(-8deg);
}
.rules-board .subtitle {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 13px;
  color: #6b6350;
  letter-spacing: .22em;
  margin-bottom: 24px;
}
/* 卷轴轴心 */
.rules-board .roller {
  position: absolute;
  left: -14px; right: -14px;
  height: 22px;
  background: linear-gradient(180deg, #6b5a3c, #3b3120 60%, #5c4d33);
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.rules-board .roller.top { top: -12px; }
.rules-board .roller.bottom { bottom: -12px; }

.rule-group { margin-bottom: 22px; }
.rule-group > h4 {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .16em;
  color: #fff;
  background: #17161a;
  padding: 3px 12px;
  transform: skewX(-10deg);
}
.rule-group > h4 .cn {
  font-family: var(--font-serif);
  letter-spacing: .1em;
  font-size: 13px;
  color: #d8d0b8;
  margin-left: 8px;
}
.rule {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  padding: 9px 6px;
  font-size: 15px;
  line-height: 1.9;
  color: #24211a;
  border-bottom: 1px dashed rgba(140, 130, 100, .55);
  transition: background .2s;
}
.rule:last-child { border-bottom: 0; }
.rule:hover { background: rgba(120, 100, 50, .1); }
.rule .mosq-ico {
  width: 24px; height: 24px;
  color: #3b3630;
  opacity: .8;
  margin-top: 3px;
  flex: none;
}
.rule .mosq-ico svg { width: 100%; height: 100%; }
/* 关键规则：红色下划线 */
.rule.key { color: #7d0d17; }
.rule.key .mosq-ico { color: var(--blood); opacity: 1; animation: ico-buzz 3s steps(2) infinite; }
@keyframes ico-buzz {
  0%, 88%, 100% { transform: none; }
  92% { transform: translate(-1.5px, 1px); }
  96% { transform: translate(1.5px, -1px); }
}
.rule.key .txt {
  text-decoration: underline;
  text-decoration-color: var(--blood);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-weight: 700;
}
/* 小标签 */
.rule .badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: #fff;
  background: var(--blood);
  padding: 1px 7px;
  margin-right: 7px;
  transform: skewX(-10deg);
  vertical-align: 1px;
}
.rule .badge.kill { background: var(--blood); }
.rule .badge.alarm { background: #a33; }
.rule .badge.trial { background: #7a0f18; }
.rule .badge.daily { background: #57503c; }

/* 名词解释 */
.glossary {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 3px double #17161a;
}
.glossary h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .14em;
  color: #17161a;
  transform: skewX(-8deg);
}
.glossary dl {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14.5px;
}
.glossary dt {
  font-weight: 700;
  color: #5a1220;
  border-right: 2px solid rgba(212, 0, 0, .5);
  padding-right: 10px;
}
.glossary dd { margin: 0; color: #2b271d; }

/* 底部签名 + 蚊子印章 */
.sign-area {
  margin-top: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sign-area .sign {
  font-family: var(--font-hand);
  font-size: clamp(24px, 3.4vw, 36px);
  color: #1b1a16;
  transform: rotate(-4deg);
  line-height: 1;
}
.sign-area .sign small {
  display: block;
  font-family: var(--font-type);
  font-size: 11px;
  color: #7b735d;
  letter-spacing: .18em;
  transform: none;
  margin-top: 6px;
}
.mosquito-seal {
  position: relative;
  width: 108px; height: 108px;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  color: rgba(212, 0, 0, .78);
  mix-blend-mode: multiply;
}
.mosquito-seal .ring {
  position: absolute;
  inset: 0;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(212, 0, 0, .35);
}
.mosquito-seal svg { width: 62%; height: 62%; }
.mosquito-seal .seal-text {
  position: absolute;
  bottom: -4px;
  font-family: var(--font-serif);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--blood);
  background: var(--paper);
  padding: 0 4px;
}

/* ============================ 13 页脚 ============================ */
.footer {
  position: relative;
  padding: 60px 5vw 40px;
  text-align: center;
  background: #050505;
  border-top: 1px solid #1e1e1e;
  overflow: hidden;
}
.footer .big-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 8vw, 96px);
  letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 42, 109, .32);
  line-height: 1;
  margin-bottom: 18px;
  user-select: none;
}
.footer .meta {
  font-family: var(--font-type);
  font-size: 12px;
  color: #5d5d5d;
  letter-spacing: .1em;
  line-height: 2;
}
.footer .meta .quote { font-family: var(--font-serif); color: #9a6a6a; }

/* ============================ 14 响应式 ============================ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 22px);
    padding-bottom: 34px;
    text-align: center;
  }
  .hero-portrait { min-height: auto; order: 2; margin-top: 10px; }
  .hero-text { order: 1; text-align: center; }
  .hero-quote { margin-left: auto; margin-right: auto; margin-top: 18px; margin-bottom: 20px; text-align: left; }
  .hero-stats { justify-content: center; }
  .hero .scrap { display: none; }
  .archive-grid { grid-template-columns: 1fr; }
  .id-photo { max-width: 220px; margin: 0 auto; }
  .talent-wrap { grid-template-columns: 1fr; }
  .talent-badge { order: -1; }
  .glossary dl { grid-template-columns: 1fr; gap: 2px 0; }
  .glossary dt { border-right: 0; border-left: 3px solid rgba(212, 0, 0, .5); padding-left: 8px; }
  .glossary dd { margin-bottom: 10px; padding-left: 11px; }
}

/* 横屏 / 矮视口：压扁间距，别让标题压到下面的行 */
@media (max-height: 520px) and (min-width: 700px) {
  .hero { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 20px; }
  .hero-title { font-size: clamp(30px, 5.6vw, 54px); margin-bottom: 10px; }
  .hero-sub { margin: 2px 0 10px; }
  .hero-quote { margin: 10px 0 12px; font-size: 15px; }
  .hero-stats, .hero .scroll-cue { display: none; }
  .hero-portrait .art, .hero-portrait .ghost { max-height: 62vh; }
}

/* 手机 / 平板：削掉持续重绘的开销，保证滚动跟手 */
@media (max-width: 820px), (pointer: coarse) {
  /* 毛玻璃顶栏在移动端每帧都要重绘，换成接近不透明的实色 */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 8, 8, .96); }
  /* 胶片噪点抖动放慢，不必每 0.55s 全屏重绘一次 */
  .fx-grain { animation-duration: 1.8s; }
  /* 镜片上的 backdrop-filter 同理 */
  .shards .shard { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 620px) {
  :root { --nav-h: 52px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .nav .brand { display: none; }
  .nav a { font-size: 14px; padding: 8px 10px; }
  .nav .sound { font-size: 11px; padding: 5px 7px; }
  .hero-title { font-size: clamp(34px, 11vw, 54px); -webkit-text-stroke-width: 2px; }
  .hero-portrait .art, .hero-portrait .ghost { max-height: 46vh; }
  /* 编号徽章别压住气泡正文 */
  .q-block .qno { left: -4px; top: -20px; width: 44px; height: 44px; font-size: 19px; }
  .bubble.q { margin-left: 30px; }
  .bubble.a { margin-left: 30px; grid-template-columns: 46px 1fr; }
  .bubble.a .pfp { width: 46px; height: 46px; }
  .bubble { font-size: 14.5px; padding: 14px 15px; }
  .post { margin: 12px; transform: none; }
  .info-table th { width: 92px; font-size: 13px; }
  .info-table td .val { font-size: 15px; }
  /* 「已解密」章在窄屏改成随文流排在最前，否则会压住抬头那几行小字 */
  .decoded-stamp { position: static; display: inline-block; margin: 0 0 10px; }
  .sign-area { justify-content: center; text-align: center; }
  .rules-board .roller { left: -6px; right: -6px; }
}

/* ================== 15 无障碍与动效降级 ================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .05ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .typed .ch { opacity: 1 !important; }
}

/* 键盘可达性 */
:focus-visible {
  outline: 2px dashed var(--glitch);
  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;
}
