:root {
  --ink: #f6efe6;
  --ink-dim: rgba(246, 239, 230, 0.66);
  --accent: #f2623b;
  --bg: #0a0807;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }

/* 文字可读性遮罩 */
.scrim {
  position: fixed; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.55) 0%, rgba(8, 6, 5, 0) 16%),
    linear-gradient(0deg, rgba(8, 6, 5, 0.62) 0%, rgba(8, 6, 5, 0) 42%);
  transition: opacity 1.2s var(--ease);
}

/* 加载 */
#loader { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; transition: opacity 0.9s ease 0.2s, visibility 0s linear 1.2s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; gap: 14px; justify-items: center; }
.loader-label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); }
.loader-bar { width: 160px; height: 1px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }

/* 顶栏 */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px clamp(16px, 4vw, 56px);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
body.ready .topbar { opacity: 1; transform: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: 0.01em; }
.brand-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 18px rgba(242, 98, 59, 0.6); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: 14px; }
.nav a { position: relative; color: var(--ink-dim); transition: color 0.3s; }
.nav a em { font-style: normal; opacity: 0.55; margin-left: 4px; font-size: 12px; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
body[data-mode='welcome'] .nav, body[data-mode='home'] .nav { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.nav { transition: opacity 0.8s var(--ease) 0.9s, transform 0.8s var(--ease) 0.9s; }
body[data-mode='welcome'] .nav { transition-delay: 0s; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 8px #7fd18b; }
#time { color: var(--ink); }

/* 欢迎页 */
/* 欢迎语：3D 场景当背景，文字居中偏上，停在显示器上方。英文在上营造氛围，中文在下点题 */
.welcome {
  position: fixed; left: 50%; top: clamp(40px, 7vh, 80px); z-index: 5; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  pointer-events: none;
}
/* 文字背后一团很淡的暗光，让浅色字在墙面上也清楚 */
.welcome::before {
  content: ''; position: absolute; inset: -40% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(14, 9, 5, 0.42), rgba(14, 9, 5, 0));
  opacity: 0; transition: opacity 1.4s var(--ease);
}
body.ready[data-mode='welcome'] .welcome::before { opacity: 1; }
body[data-mode='home'] .welcome::before { opacity: 0; transition-duration: 0.6s; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 18px; }
.headline { font-weight: 400; }
.headline .en {
  font: 400 clamp(38px, min(4.8vw, 7.6vh), 72px)/1.08 var(--serif); letter-spacing: -0.012em;
  color: #fbf4ea; text-wrap: balance;
  text-shadow: 0 2px 28px rgba(16, 10, 5, 0.55), 0 1px 2px rgba(16, 10, 5, 0.35);
}
.headline .en em { font-style: italic; color: #f3d9b6; }
.headline .zh {
  margin-top: clamp(10px, 1.6vh, 18px);
  font: 500 clamp(14px, min(1.45vw, 2.5vh), 22px)/1.6 var(--serif-cn);
  color: rgba(251, 244, 234, 0.86); text-shadow: 0 1px 14px rgba(16, 10, 5, 0.6);
}
/* 中文字距拉开，两侧各一条细线；右边的间距少算一个字距（最后一个字后面本身带着字距），保证视觉居中 */
.headline .zh > span { letter-spacing: 0.42em; }
.headline .zh > span::before, .headline .zh > span::after {
  content: ''; display: inline-block; vertical-align: middle; width: 1.8em; height: 1px;
  background: rgba(251, 244, 234, 0.45);
}
.headline .zh > span::before { margin-right: 1em; }
.headline .zh > span::after { margin-left: 0.58em; }
.headline .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
/* 标题逐行滑入/滑出。行高 0.98 时 g、y 等字母的下伸部分会超出裁切框，所以滑出时同时淡出，避免残留白色笔画 */
.headline .line > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 1.3s var(--ease), opacity 0.9s var(--ease); }
.headline .line:nth-child(2) > span { transition-delay: 0.08s; }
.headline .line:nth-child(3) > span { transition-delay: 0.16s; }
.welcome .eyebrow, .welcome .sub { opacity: 0; transition: opacity 1.2s var(--ease) 0.4s; }
.welcome .sub { margin-top: 22px; font-size: 15px; line-height: 1.7; color: var(--ink-dim); font-weight: 300; max-width: 420px; }
body.ready[data-mode='welcome'] .headline .line > span { transform: none; opacity: 1; }
body.ready[data-mode='welcome'] .welcome .eyebrow, body.ready[data-mode='welcome'] .welcome .sub { opacity: 1; }
body[data-mode='home'] .headline .line > span { transform: translateY(-105%); opacity: 0; transition-duration: 0.9s, 0.45s; transition-delay: 0s; }
body[data-mode='home'] .welcome .eyebrow, body[data-mode='home'] .welcome .sub { opacity: 0; transition-delay: 0s; transition-duration: 0.5s; }

.scroll-cue {
  position: fixed; left: 50%; bottom: 34px; z-index: 6; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; color: var(--ink-dim);
  opacity: 0; transition: opacity 1s var(--ease);
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.8)); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
.scroll-cue .cue-text, .home-cue .cue-text { font: 400 11px/1 var(--font); letter-spacing: 0.5em; padding-left: 0.5em; color: rgba(246, 239, 230, 0.72); animation: cue-breathe 2.2s var(--ease) infinite; }
@keyframes cue-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes drip { 0% { top: -40%; } 70%, 100% { top: 100%; } }
body.ready[data-mode='welcome'] .scroll-cue { opacity: 1; transition-delay: 0.8s; }

/* 首页 */
.home { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.home-intro {
  position: absolute; left: clamp(16px, 5vw, 72px); bottom: clamp(40px, 8vh, 80px);
  max-width: min(430px, calc(100vw - 32px));
}
/* 主标题负责氛围：大号宋体，两行；下面两段描述负责把话说清楚 */
.home-intro h2 {
  font: 700 clamp(30px, min(3.3vw, 5.6vh), 52px)/1.28 var(--serif-cn); letter-spacing: 0.02em;
  color: #fbf4ea; text-shadow: 0 2px 24px rgba(16, 10, 5, 0.55);
}
.home-intro h2 span { display: block; white-space: nowrap; }
.home-intro h2 span + span { padding-left: 1em; }          /* 第二行错开一个字，像随手写下的两句 */
.home-intro h2::after {
  content: ''; display: block; width: 36px; height: 1px; margin-top: clamp(16px, 2.4vh, 24px);
  background: rgba(243, 217, 182, 0.7);
}
.home-intro .lead {
  margin-top: clamp(12px, 1.8vh, 18px); font-size: 14.5px; line-height: 1.9; letter-spacing: 0.02em;
  color: rgba(246, 239, 230, 0.78); font-weight: 400; text-shadow: 0 1px 12px rgba(16, 10, 5, 0.6);
}
.home-intro .lead + .lead { margin-top: 8px; }
.cta { display: flex; gap: 12px; margin-top: 26px; }
.btn { pointer-events: auto; padding: 11px 20px; border-radius: 999px; font-size: 13px; background: var(--ink); color: #1a120d; font-weight: 500; transition: transform 0.3s var(--ease), background 0.3s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); }
.home-index {
  position: absolute; right: clamp(16px, 5vw, 72px); bottom: clamp(40px, 8vh, 80px);
  list-style: none; display: grid; gap: 10px; font-size: 13px; color: var(--ink-dim); text-align: right;
}
.home-index li { pointer-events: none; }
.home-index span { font-variant-numeric: tabular-nums; opacity: 0.5; margin-right: 12px; font-size: 11px; }

.home-intro > *, .home-index li { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
body[data-mode='home'] .home-intro > *, body[data-mode='home'] .home-index li { opacity: 1; transform: none; transition-duration: 1.1s; }
body[data-mode='home'] .home-intro > :nth-child(1) { transition-delay: 1.9s; }
body[data-mode='home'] .home-intro > :nth-child(2) { transition-delay: 2.0s; }
body[data-mode='home'] .home-intro > :nth-child(3) { transition-delay: 2.1s; }
body[data-mode='home'] .home-intro > :nth-child(4) { transition-delay: 2.2s; }
body[data-mode='home'] .home-index li:nth-child(1) { transition-delay: 2.1s; }
body[data-mode='home'] .home-index li:nth-child(2) { transition-delay: 2.18s; }
body[data-mode='home'] .home-index li:nth-child(3) { transition-delay: 2.26s; }
body[data-mode='home'] .home-index li:nth-child(4) { transition-delay: 2.34s; }

@media (max-width: 720px) {
  .nav { display: none; }
  /* 手机竖屏：显示器在画面偏下，上方空间多，标题往下放一点，英文折成两行、字更大 */
  .welcome { top: 13vh; max-width: calc(100vw - 48px); }
  .headline .en { font-size: clamp(40px, 12.5vw, 54px); line-height: 1.02; }
  .home-index { display: none; }

  .home-intro { bottom: 110px; }
  .home-intro .lead { font-size: 13px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue i::after, .cue-text { animation: none; }
}

/* ================= 首页 → 进入屏幕的提示 ================= */
.home-cue {
  position: fixed; left: 50%; bottom: 30px; z-index: 6; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.2em; color: var(--ink-dim);
  opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease);
}
.home-cue i { width: 1px; height: 36px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8)); position: relative; overflow: hidden; }
.home-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
body[data-mode='home'] .home-cue { opacity: 1; pointer-events: auto; transition-delay: 2.6s; transition-duration: 1s; }

/* ================= 介绍页：暗场里的个人档案 ================= */
:root {
  --stage: #16110d;                 /* 与推进屏幕时画面最终的颜色一致 */
  --cover: #1e1712;
  --leaf-l: #1a140f;
  --leaf-r: #211913;
  --paper-ink: #efe6da;
  --paper-ink-2: #a8998a;
  --paper-ink-3: #6f6255;
  --hair: rgba(239, 230, 218, 0.12);
  --hair-2: rgba(239, 230, 218, 0.2);
  --serif: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', serif;
  --serif-cn: 'Noto Serif SC', 'Songti SC', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
/* 进入屏幕后的整个档案：一个可以滚动的容器。最上面是个人档案（吸顶），后面的章节依次滑上来盖住它 */
.about {
  position: fixed; inset: 0; z-index: 4; overflow: hidden;
  background: transparent; color: var(--paper-ink);   /* 背景是 3D 的台灯和书（js/book.js） */
  opacity: 0; pointer-events: none;                 /* 由 main.js 在画面与页面一致的那一帧切换 */
  scrollbar-width: none; overscroll-behavior: contain;
}
.about::-webkit-scrollbar { display: none; }
body[data-mode='about'] .about { pointer-events: auto; }
.folder-screen {
  position: sticky; top: 0; z-index: 1; height: 100%; overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(78px, 11vh, 104px) clamp(12px, 2.6vw, 44px) clamp(40px, 6vh, 64px);
  transform-origin: 50% 30%;
}
.folder-dim { position: absolute; inset: 0; z-index: 8; background: #0b0806; opacity: 0; pointer-events: none; }
/* 台灯般的暖光：从左上（工牌所在）晕开 */
.about-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.8s ease 0.1s;
  background:
    radial-gradient(52vw 52vw at 20% 26%, rgba(214, 118, 52, 0.24), transparent 62%),
    radial-gradient(46vw 34vw at 84% 92%, rgba(130, 64, 30, 0.16), transparent 70%);
}
body.about-in .about-glow { opacity: 1; }

/* ---------- 档案本体 ---------- */
.dossier {
  position: relative; width: min(95vw, 1600px); height: 100%; max-height: 920px;
  display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 72fr);   /* 工牌只是点缀：左页窄一些 */
  background: linear-gradient(135deg, rgba(70, 50, 32, 0.3), rgba(20, 15, 11, 0.4) 55%);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 22px;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 226, 190, 0.1), inset 0 1px 0 rgba(255, 232, 200, 0.16);
  padding: 14px; perspective: 2400px;
  opacity: 0; transform: translateY(46px) scale(0.965);
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease);
}
body.about-in .dossier { opacity: 1; transform: none; }
.dossier-tab {
  position: absolute; left: calc(28% + 40px); top: -34px; height: 36px; padding: 0 18px;   /* 放在右页上方，避开工牌挂绳 */
  display: flex; align-items: center; gap: 10px;
  background: rgba(40, 29, 20, 0.62); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-radius: 12px 12px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 226, 190, 0.1);
  font: 500 11px/1 var(--mono); letter-spacing: 0.18em; color: var(--paper-ink-2);
}
.dossier-tab .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(242, 98, 59, 0.7); }
.dossier-tab .sep { color: var(--paper-ink-3); }
.page { position: relative; border-radius: 12px; overflow: hidden; }
.page::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 236, 214, 0.05); }
.page-left {
  background: radial-gradient(90% 80% at 30% 20%, rgba(255, 196, 130, 0.1), rgba(16, 11, 8, 0.2) 75%);
  border-radius: 12px 4px 4px 12px; display: grid; grid-template-rows: 1fr;
  padding: clamp(18px, 2.4vh, 28px) clamp(18px, 2vw, 30px);
  transform-origin: right center; transform: rotateY(-62deg); opacity: 0.4;
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s, opacity 1s ease 0.15s;
}
body.about-in .page-left { transform: none; opacity: 1; }
.page-right {
  background: linear-gradient(140deg, rgba(255, 214, 160, 0.06), rgba(18, 13, 9, 0.18) 60%); border-radius: 4px 12px 12px 4px;
  display: grid; grid-template-rows: auto 1fr; gap: clamp(14px, 2.4vh, 30px); align-content: center;
  padding: clamp(20px, 3vh, 38px) clamp(22px, 3vw, 52px) clamp(18px, 2.6vh, 30px);
}
.spine { position: absolute; top: 14px; bottom: 14px; left: calc(14px + (100% - 28px) * 0.28); width: 26px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.45) 45%, rgba(255, 236, 214, 0.05) 52%, rgba(0, 0, 0, 0.25) 60%, transparent); }
.spine::before { content: ''; position: absolute; left: 50%; top: 18px; bottom: 18px; width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(239, 230, 218, 0.22) 0 6px, transparent 6px 14px); }

/* 小字 / 等宽标签 */
.pl-head, .pl-foot, .pr-top { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1.4 var(--mono); letter-spacing: 0.16em; color: var(--paper-ink-2); }
.pl-foot b { font-weight: 500; color: var(--paper-ink); }
.drag-hint { color: var(--accent); }

/* ---------- 左页：卡槽 ---------- */
.slot-area { position: relative; display: grid; place-items: center; min-height: 0; }
.badge-slot {
  position: relative; height: min(48%, 300px); aspect-ratio: 1.6 / 2.25; max-width: 70%;   /* 工牌高度 ≈ 卡槽 92% */
  border-radius: 16px; border: 1px dashed var(--hair-2);
  background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 10px 40px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: scale(0.94); transition: opacity 0.8s ease 0.6s, transform 1s var(--ease) 0.6s;
}
body.about-in .badge-slot { opacity: 1; transform: none; }
.tick { position: absolute; width: 16px; height: 16px; border-color: var(--accent); border-style: solid; border-width: 0; }
.tick.tl { left: -8px; top: -8px; border-left-width: 1.5px; border-top-width: 1.5px; }
.tick.tr { right: -8px; top: -8px; border-right-width: 1.5px; border-top-width: 1.5px; }
.tick.bl { left: -8px; bottom: -8px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.tick.br { right: -8px; bottom: -8px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings i { grid-area: 1 / 1; border-radius: 50%; border: 1px solid var(--hair); aspect-ratio: 1; opacity: 0; transform: scale(0.7); transition: opacity 1.4s ease, transform 1.8s var(--ease); }
.rings i:nth-child(1) { height: 56%; transition-delay: 0.5s; }
.rings i:nth-child(2) { height: 76%; transition-delay: 0.65s; border-style: dashed; }
.rings i:nth-child(3) { height: 100%; transition-delay: 0.8s; }
body.about-in .rings i { opacity: 1; transform: none; }

/* ---------- 右页 ---------- */
.barcode { width: 120px; height: 22px; background: repeating-linear-gradient(90deg, var(--paper-ink-2) 0 2px, transparent 2px 4px, var(--paper-ink-2) 4px 5px, transparent 5px 8px, var(--paper-ink-2) 8px 11px, transparent 11px 13px); opacity: 0.7; }
.pr-title { position: relative; padding-bottom: clamp(10px, 1.6vh, 18px); }
.pr-title::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair-2); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.5s; }
body.about-in .pr-title::after { transform: scaleX(1); }
.t-line { overflow: hidden; font: 700 clamp(36px, 4.2vw, 72px)/1.1 var(--serif-cn); letter-spacing: -0.02em; color: var(--paper-ink); }
.t-line > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 1.2s var(--ease) 0.35s, opacity 0.8s ease 0.35s; }
body.about-in .t-line > span { transform: none; opacity: 1; }
.t-sub { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.t-sub em { font: italic 400 clamp(22px, 2vw, 32px)/1 var(--serif); color: var(--paper-ink-2); }
.strip { font: 500 11px/1 var(--mono); letter-spacing: 0.32em; color: var(--paper-ink); padding: 7px 12px; border: 1px solid var(--hair-2); border-radius: 999px; }

.pr-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 56px); align-items: start; min-height: 0; }
.hello { font: 500 clamp(20px, 1.7vw, 28px)/1.4 var(--serif-cn); color: var(--paper-ink); }
.hello b { color: var(--accent); font-weight: 700; }
.intro { margin-top: 8px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.8; color: var(--paper-ink-2); max-width: 34em; }
.pr-index { list-style: none; margin-top: clamp(12px, 2.4vh, 28px); border-top: 1px solid var(--hair); }
.pr-index li { border-bottom: 1px solid var(--hair); }
.pr-index li > a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: clamp(8px, 1.3vh, 14px) 4px; cursor: pointer;
}
.pr-index li.soon > a { cursor: default; }
.pr-index li.soon .k { color: var(--paper-ink-2); }
.pr-index li.soon i { font: 500 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--paper-ink-3); }
.pr-index li.soon:hover i { transform: none; color: var(--paper-ink-3); }
.pr-index li.soon:hover .k { color: var(--paper-ink-2); }
.nav a.soon { opacity: 0.4; pointer-events: none; }
.pr-index .n { font: italic 400 26px/1 var(--serif); color: var(--accent); }
.pr-index .k { font: 700 clamp(16px, 1.25vw, 20px)/1.3 var(--serif-cn); }
.pr-index .d { font-size: 13px; color: var(--paper-ink-2); }
.pr-index i { font-style: normal; color: var(--paper-ink-3); transition: transform 0.4s var(--ease), color 0.3s; }
.pr-index li:hover i { transform: translateX(6px); color: var(--accent); }
.pr-index li:hover .k { color: var(--accent); }

/* 卡通照片：三张错位叠放的相片卡，悬停时被抽到最前、轻微放大并提亮 */
.snaps { position: relative; width: min(clamp(250px, 22vw, 380px), calc((100vh - 470px) * 0.84)); aspect-ratio: 0.84; margin: -10px 8px 0 0; }
.snap {
  position: absolute; margin: 0; padding: 7px 7px 0; border-radius: 12px;
  background: linear-gradient(160deg, #f1e8dc, #d9ccbb);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 18px 40px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 60%; cursor: pointer;
  /* 入场：从右上方依次飞入并落定在各自的角度 */
  opacity: 0; transform: translate(70px, -50px) rotate(calc(var(--r) + 14deg)) scale(0.9);
  transition: opacity 0.7s ease, transform 1.2s cubic-bezier(0.2, 1.15, 0.3, 1),
              scale 0.45s var(--ease), translate 0.45s var(--ease), filter 0.35s ease, box-shadow 0.35s ease;
  transition-delay: calc(1.05s + var(--i) * 0.16s), calc(1.05s + var(--i) * 0.16s), 0s, 0s, 0s, 0s;
}
body.about-in .snap { opacity: 1; transform: rotate(var(--r)); }
.snap img { display: block; width: 100%; height: auto; border-radius: 7px; object-fit: cover; }
.snap figcaption { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 4px; font: 500 10px/1 var(--mono); letter-spacing: 0.2em; color: #8a7458; }
.snap figcaption b { font: italic 400 16px/1 var(--serif); letter-spacing: 0; color: var(--accent); }
/* 光泽：悬停时一道高光扫过 */
.snap::after {
  content: ''; position: absolute; inset: 7px 7px 33px; border-radius: 7px; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 48%, transparent 62%);
  background-size: 260% 100%; background-position: 120% 0; opacity: 0; transition: background-position 0.8s var(--ease), opacity 0.3s ease;
}
.s1 { width: 82%; left: 0; top: 0; z-index: 1; }
.s1 img { aspect-ratio: 1.25; }
.s2 { width: 60%; right: -4%; top: 25%; z-index: 2; }
.s2 img { aspect-ratio: 0.92; }
.s3 { width: 58%; left: 4%; top: 45%; z-index: 3; }
.s3 img { aspect-ratio: 0.92; object-position: 50% 15%; }
/* 悬停：其它照片稍微压暗，被指向的那张抬起、放大、提亮 */
.snaps:hover .snap { filter: brightness(0.72) saturate(0.85); }
.snaps .snap:hover {
  z-index: 5; scale: 1.07; translate: 0 -8px; filter: brightness(1.08) saturate(1.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(242, 98, 59, 0.55), 0 0 36px rgba(242, 98, 59, 0.22);
}
.snap:hover::after { opacity: 1; background-position: -40% 0; }
.spark { position: absolute; right: 2%; top: -4%; width: 34px; fill: var(--accent); z-index: 6; pointer-events: none;
  opacity: 0; transform: scale(0) rotate(-40deg); transition: opacity 0.4s ease 1.75s, transform 0.7s cubic-bezier(0.3, 1.8, 0.5, 1) 1.75s; }
body.about-in .spark { opacity: 1; transform: none; animation: spark-spin 9s linear 2.5s infinite; }
@keyframes spark-spin { to { transform: rotate(360deg); } }
.snaps-note { position: absolute; left: 2%; bottom: -30px; font: 500 10px/1 var(--mono); letter-spacing: 0.24em; color: var(--paper-ink-3);
  opacity: 0; transition: opacity 0.8s ease 1.9s; }
body.about-in .snaps-note { opacity: 1; }

.pr-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.pr-meta dt { font: 500 10px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-ink-3); margin-bottom: 6px; }
.pr-meta dd { font-size: 14px; color: var(--paper-ink); }

/* 印章：盖下来 */
.stamp { position: absolute; right: clamp(18px, 2.6vw, 44px); bottom: clamp(8px, 1.6vh, 20px); width: clamp(88px, 7vw, 116px); pointer-events: none;   /* 盖在信息栏右端的空白处 */
  opacity: 0; transform: scale(1.8) rotate(-28deg); transition: opacity 0.25s ease 1.9s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.9s; }
body.about-in .stamp { opacity: 0.85; transform: scale(1) rotate(-14deg); }
.stamp circle { fill: none; stroke: var(--accent); stroke-width: 2; }
.stamp circle:nth-of-type(2) { stroke-width: 1; stroke-dasharray: 3 4; }
.stamp text { fill: var(--accent); font: 600 12.5px var(--mono); letter-spacing: 2.4px; }
.stamp .stamp-c { font: italic 400 34px var(--serif); letter-spacing: 0; }

.about-cue { position: absolute; left: 50%; bottom: clamp(8px, 1.6vh, 16px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: 0.24em; color: var(--paper-ink-2); white-space: nowrap; }
.about-cue i { width: 1px; height: 18px; background: rgba(239, 230, 218, 0.25); position: relative; overflow: hidden; }
.about-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 2.2s var(--ease) infinite; }

/* 逐个出现：--d 为顺序 */
.about .r { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + 450ms); }
body.about-in .about .r { opacity: 1; transform: none; }
body.about-in .about .about-cue { transform: translateX(-50%); }
.about .about-cue { transform: translate(-50%, 14px); }
/* 离开时所有元素快速收起 */
body:not(.about-in) .about *, body:not(.about-in) .about *::after { transition-delay: 0s !important; transition-duration: 0.35s !important; }

/* 工牌画布：盖在介绍页上，鼠标事件由 JS 判断是否点到卡片 */
#lanyard { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
#lanyard.on { opacity: 1; }
#lanyard canvas { display: block; width: 100%; height: 100%; }
body[data-mode='about'] .nav { opacity: 1; pointer-events: auto; transform: none; }
/* 暗边遮罩的透明度由 main.js 随推进进度控制 */

/* ---------- 窄屏：上下排列 ---------- */
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .folder-screen { padding: 76px 10px 36px; }
  .dossier { grid-template-columns: 1fr; grid-template-rows: minmax(0, 30fr) minmax(0, 70fr); width: 100%; padding: 10px; }
  .page-left { border-radius: 12px 12px 4px 4px; transform-origin: center bottom; transform: rotateX(62deg); }
  .page-right { border-radius: 4px 4px 12px 12px; padding: 16px 16px 14px; gap: 10px; }
  .spine { display: none; }
  .t-line { font-size: clamp(28px, 8.4vw, 46px); }
  .snaps, .stamp, .pr-index .d, .barcode { display: none; }
  .pr-body { grid-template-columns: 1fr; }
  .pr-index li > a { grid-template-columns: 40px 1fr auto; }
  .pr-meta dd { font-size: 12px; }
  .badge-slot { height: 86%; }
  .dossier-tab { display: none; }   /* 窄屏时挂绳会穿过页签，直接隐藏 */
  .strip, .pr-meta { display: none; }
  .t-sub em { font-size: 20px; }
  .hello { font-size: 18px; }
  .intro { font-size: 13px; line-height: 1.7; }
  .pr-index { margin-top: 8px; }
  .pr-index li > a { padding: 8px 2px; }
  .pr-index .n { font-size: 20px; }
  .folder-screen { padding-bottom: 44px; }
  .about-cue { bottom: 12px; font-size: 10px; }
  .pr-index li > a { padding: 7px 2px; }
}

/* ================= 兜底：跑不了 3D 时 ================= */
.loader-skip { margin-top: 18px; font-size: 13px; letter-spacing: 0.04em; color: rgba(246, 239, 230, 0.75); text-decoration: none; border-bottom: 1px solid rgba(246, 239, 230, 0.3); padding-bottom: 3px; opacity: 0; pointer-events: none; transition: opacity 0.8s ease; }
.loader-skip.show { opacity: 1; pointer-events: auto; }
.loader-skip:hover { color: #fff; border-color: #fff; }
.no-webgl .scroll-cue, .no-webgl .welcome, .no-webgl .home, .no-webgl .about, .no-webgl #stage { display: none !important; }
.fallback { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: radial-gradient(70% 60% at 25% 20%, #3a2a1d, #16110d 70%); color: #f3e8d6; }
.fallback[hidden] { display: none; }
.fb-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; width: min(980px, 100%); }
.fb-card img { width: 100%; height: auto; padding: 12px 12px 40px; background: #fbf6ea; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); rotate: -3deg; }
.fb-kicker { display: flex; align-items: center; gap: 10px; font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: 0.22em; color: #b9a48c; }
.fb-kicker span { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
.fb-text h1 { margin-top: 18px; font: 700 clamp(38px, 5vw, 60px)/1.2 'Noto Serif SC', serif; }
.fb-hand { margin-top: 8px; font: 400 clamp(24px, 2.6vw, 32px)/1.3 'Long Cang', cursive; color: #e9b88a; }
.fb-why { margin-top: 18px; font-size: 14px; line-height: 1.8; color: rgba(243, 232, 214, 0.7); max-width: 30em; }
.fb-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fb-links a { padding: 10px 16px; border: 1px solid rgba(243, 232, 214, 0.3); border-radius: 999px; font-size: 14px; color: #f3e8d6; text-decoration: none; transition: background 0.3s, border-color 0.3s; }
.fb-links a:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.fb-links a:hover { border-color: #f3e8d6; }
@media (max-width: 720px) { .fb-card { grid-template-columns: 1fr; } .fb-card img { width: 70%; margin: 0 auto; } }

/* 只保留必要的文字：滚动提示只剩一根会动的细线 */
.about-cue { gap: 0; }
.pr-body { align-items: center; }
.pr-index { margin-top: clamp(18px, 3vh, 34px); }
.pr-index .k { font-size: clamp(17px, 1.35vw, 22px); }
