/* ==========================================================================
   伊蕾娜 · 黑底极简
   设计原则：纯黑底 / 大留白 / 极少点缀色 / 动画克制
   点缀色仅一支：灰紫 #9c90c4（伊蕾娜的紫发，在黑底上提亮以保证可读）
   ========================================================================== */

:root {
  /* 底色阶 —— 整套网站只用这四层黑 */
  --bg: #000000;
  --surface: #0d0d0f;
  --surface-2: #17171a;
  --line: #26262b;
  --line-soft: #1b1b1f;

  /* 文字阶 */
  --ink: #f2f2f4;
  --ink-2: #a3a3ad;
  --ink-3: #6b6b76;

  /* 唯一点缀色（黑底上提亮的灰紫） */
  --accent: #9c90c4;
  --accent-soft: #5d5478;
  --accent-wash: #161320;

  /* ---------------------------------------------------------------
     光 — 全站只有一套光，方向恒定「左上方来光」，其余都是它的衰减。
     每层光只有一个变量，避免各处随手写 rgba 造成色彩脏乱。
     --------------------------------------------------------------- */
  --light: 156, 144, 196;        /* 光色（与 accent 同源） */
  --light-warm: 214, 200, 236;   /* 光的暖端：靠近光源处的提亮 */
  --light-amb: 0.055;            /* L1 环境光强度 */
  --light-rim: 0.42;             /* L2 边缘光强度 */
  --light-key: 0.30;             /* L3 主体光强度 */
  --light-cur: 0.30;             /* L4 交互光强度 */

  /* 版式 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Georgia", "Songti SC", "SimSun", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;

  /* 节奏 */
  --gap: 24px;
  --radius: 14px;
  --radius-lg: 20px;
  --shell: 1080px;

  /* 动效统一缓动 —— 全局只有这一条曲线，避免节奏杂乱 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* 注意：overflow-x:clip 不会把 html 变成滚动容器，
     所以 sticky 与 scroll 进度计算仍然以文档为准。
     千万不要在 body 上用 overflow-x:hidden —— 那会让 body 成为滚动容器，
     直接破坏 position:sticky 与基于 window.scrollY 的推镜逻辑。 */
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
  color: #fff;
}

/* ==========================================================================
   L1 环境光 —— 整页只有这一层，两团极弱的辉光挂在文档上，
   随滚动做很慢的反向位移（视差）。它不照亮任何东西，只是让纯黑
   不死板 —— 黑底上任何一点亮度都会被眼睛放大，所以强度必须很低。
   ========================================================================== */
.amb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.amb__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* 主光源：左上，与全站受光方向一致 */
.amb__blob--key {
  top: -18vh;
  left: -12vw;
  width: 88vw;
  height: 88vw;
  max-width: 1180px;
  max-height: 1180px;
  background: radial-gradient(
    circle,
    rgba(var(--light), var(--light-amb)) 0%,
    rgba(var(--light), calc(var(--light-amb) * 0.34)) 38%,
    rgba(var(--light), 0) 68%
  );
}

/* 补光：右下，更弱、更暖，把主体从背景里"分离"出来 */
.amb__blob--fill {
  right: -20vw;
  bottom: -26vh;
  width: 72vw;
  height: 72vw;
  max-width: 980px;
  max-height: 980px;
  background: radial-gradient(
    circle,
    rgba(var(--light-warm), calc(var(--light-amb) * 0.62)) 0%,
    rgba(var(--light-warm), 0) 62%
  );
}

/* L4 交互光：指针处一团柔光。默认隐藏，等 JS 接管后淡入 ——
   这样没有鼠标的设备（触屏）根本不会看到它。 */
.cur {
  position: fixed;
  top: 0;
  left: 0;
  width: min(620px, 58vw);
  height: min(620px, 58vw);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  background: radial-gradient(
    circle,
    rgba(var(--light), calc(var(--light-cur) * 0.5)) 0%,
    rgba(var(--light), calc(var(--light-cur) * 0.14)) 34%,
    rgba(var(--light), 0) 62%
  );
}

@media (hover: none) {
  .cur { display: none; }
}

/* 全站受光方向统一：左上 → 右下。
   凡是"有厚度"的面（卡片、画框、头像框）都遵循同一套：
   顶边一条 1px 高光线 + 左上柔光斑；高光位置由 --px/--py 驱动。*/
.card,
.portrait,
.hero__icon-frame,
.shot__frame,
.nation,
.tl__item {
  --px: 0;
  --py: 0;
  transform-style: preserve-3d;
}

/* ---------- 通用容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: 132px 0;
}

.section--tight {
  padding: 96px 0;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.is-stuck {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav__mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* 品牌图标：圆形头像，带一圈细描边，暗底上刚好浮起来 */
.nav__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 7px 13px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav__links a.is-active {
  color: var(--accent);
}

/* ---------- 返回日记站（站点集成时加的，不属于原设计） ----------
   这一页是独立文档，身上没有日记站那套顶栏，所以要自带一个出口。
   配色一律取本页变量，别写死颜色，否则改了主题就对不上。 */
.nav__lead {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.nav__back {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__back:hover {
  color: var(--ink);
  border-color: var(--accent-soft);
  background: var(--surface-2);
}

/* ---------- 章节小标题 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lede {
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.85;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 78vw);
  height: min(760px, 78vw);
  margin: calc(min(760px, 78vw) / -2) 0 0 calc(min(760px, 78vw) / -2);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(156, 144, 196, 0.16) 0%,
    rgba(156, 144, 196, 0.055) 42%,
    rgba(156, 144, 196, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 56px;
  align-items: center;
}

.hero__col { min-width: 0; }

/* 首屏图标：圆角方框里的一张头像，四角对齐网格，安静地待在右侧 */
.hero__icon {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 340px;
}

.hero__icon-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 40px 90px -40px rgba(156, 144, 196, 0.35);
}

.hero__icon-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero__icon figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--ink-3);
  text-align: right;
}

.hero__name-ja {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(56px, 12vw, 148px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 8px;
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__sub {
  max-width: 44ch;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.9;
  margin-top: 28px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  column-gap: 46px;
  row-gap: 22px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  max-width: 720px;
}

.hero__meta dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.hero__meta dd {
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
}

.hero__scroll {
  position: absolute;
  right: 32px;
  bottom: 34px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.hero__scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
  animation: drop 2.4s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- 入场动画（统一由 IntersectionObserver 触发） ---------- */
[data-rise] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-rise].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 人物档案 ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, #17171c 0%, #101014 48%, #1a1a20 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* 设定图铺满画框，底部压一层渐隐，让图与暗底融在一起 */
.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 0.25) 100%);
  mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 0.25) 100%);
}

.portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.portrait__cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.profile__rows {
  border-top: 1px solid var(--line);
}

.prow {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}

.prow dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}

.prow dd {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.7;
}

.prow dd .dim {
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- 性格 ---------- */
.traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}

.trait {
  background: var(--surface);
  padding: 34px 28px 38px;
  transition: background 0.4s var(--ease);
}

.trait:hover {
  background: var(--accent-wash);
}

.trait__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-soft);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.trait h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.trait p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

.quote {
  margin-top: 76px;
  padding: 0 0 0 32px;
  border-left: 2px solid var(--accent-soft);
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  letter-spacing: -0.01em;
}

.quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- 魔法与能力 ---------- */
.abilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 56px;
}

.ability {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 30px 34px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.ability:hover {
  border-color: var(--accent-soft);
  transform: translateY(-3px);
}

.ability__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ability h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ability__en {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
}

.ability p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 22px;
}

.ability__meter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.ability__bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.ability__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1.3s var(--ease);
}

.ability__val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- 名场面 ---------- */
.scenes-wrap {
  position: relative;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.scenes-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.scenes {
  position: relative;
  z-index: 1;
  list-style: none;
}

.scene {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 34px 36px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}

.scene:last-child {
  border-bottom: 0;
}

.scene:hover {
  background: rgba(30, 26, 44, 0.72);
}

.scene__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  padding-top: 3px;
}

.scene h3 {
  font-size: 17.5px;
  font-weight: 500;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.scene p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 60ch;
}

.scene__tag {
  align-self: start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.scene:hover .scene__tag {
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* ---------- 图集 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 56px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}

/* L2 边缘光：盖在最上层的一层"反光"。
   两个来源叠在一起：
   ① 顶部一条 1px 高光线 —— 光从上方来，物体上沿必然最亮；
   ② 一团跟着指针走的柔光 —— 相当于镜面高光，指针到哪反光到哪。
   两层都用 mix-blend-mode:screen，只加亮、不改色，黑底上不会发灰。 */
.card::after,
.shot__frame::after,
.hero__icon-frame::after,
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
  mix-blend-mode: screen;
  background:
    linear-gradient(
      to bottom,
      rgba(var(--light-warm), calc(var(--light-rim) * 0.30)) 0%,
      rgba(var(--light-warm), 0) 16%
    ),
    radial-gradient(
      360px circle at calc(50% + var(--px) * 50%) calc(50% + var(--py) * 50%),
      rgba(var(--light), calc(var(--light-rim) * 0.20)) 0%,
      rgba(var(--light), 0) 62%
    );
  transition: opacity 0.5s var(--ease);
}

.card:hover::after,
.shot__frame:hover::after,
.hero__icon-frame:hover::after,
.portrait:hover::after {
  opacity: 1;
}

.card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
}

.card__art {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}

.card__art svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 真实图片：填满画框，居中裁切，悬停时轻微推近 */
.card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.001);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.92) brightness(0.94);
}

.card:hover .card__art img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}

.card__body {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line-soft);
}

.card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

.g-a { grid-column: span 7; }
.g-b { grid-column: span 5; }
.g-c { grid-column: span 5; }
.g-d { grid-column: span 7; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer__note {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 52ch;
  line-height: 1.75;
}

.footer__sig {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-align: right;
  line-height: 2;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .section { padding: 96px 0; }
  .profile { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .portrait { max-width: 340px; }
  .traits { grid-template-columns: minmax(0, 1fr); }
  .abilities { grid-template-columns: minmax(0, 1fr); }
  .g-a, .g-b, .g-c, .g-d { grid-column: span 12; }
  .scene { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 26px 22px; }
  .scene__tag { grid-column: 2; justify-self: start; margin-top: 14px; }
  .footer__inner { flex-direction: column; }
  .footer__sig { text-align: left; }
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .hero__meta dd { white-space: normal; }
  /* 首屏图标：窄屏时改到文案上方，靠左，别缩得太小 */
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__icon { order: -1; justify-self: start; max-width: 200px; }
  .hero__icon figcaption { text-align: left; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .shell, .nav__inner, .hero__inner { padding: 0 22px; }
  .hero__scroll { right: 22px; bottom: 22px; }
  .prow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ==========================================================================
   镜头细节 · Apple 产品页那种「一镜到底」的推进
   做法：每屏一个 canvas 画框，内容由 JS 逐帧重绘。
   滚动进度驱动镜头 zoom / pan，画框本身 sticky 钉在视口中央。
   框内动效由 JS 画，所以这里只管版式。
   ========================================================================== */

/* ---------- 章节导语 ---------- */
.intro {
  padding: 132px 0 0;
}

.intro__rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.intro__rule::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--line);
}

/* ---------- 一屏一镜 ---------- */
/* 不做运镜：段落不再需要超长滚动行程来推镜，
   保留一段适中的滚动距离用于「图形自身形变」即可。 */
.shot {
  position: relative;
  height: 150vh;
}

.shot--tall {
  height: 170vh;
}

.shot__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.shot__grid {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.shot--flip .shot__grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.shot--flip .shot__text {
  order: 2;
}

.shot--flip .shot__frame-col {
  order: 1;
}

/* 文本列 */
.shot__no {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 26px;
}

.shot__no::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.shot__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.shot__title {
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.022em;
  margin-bottom: 18px;
}

.shot__copy {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.9;
  margin-bottom: 30px;
  max-width: 40ch;
}

.shot__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shot__specs > div {
  background: var(--bg);
  padding: 15px 18px 15px 0;
}

.shot__specs > div:nth-child(even) {
  padding-left: 18px;
}

.shot__specs dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.shot__specs dd {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
}

/* 画框 */
.shot__frame-col {
  display: flex;
  justify-content: center;
}

.shot__frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #1a1a20 0%, #121216 52%, #1c1c22 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.shot__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 框内四角刻度 —— 取景器暗示 */
.shot__mark {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent-soft);
  opacity: 0.5;
  pointer-events: none;
}

.shot__mark--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.shot__mark--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.shot__mark--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.shot__mark--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* 框内读数：焦距 / 当前视角 */
.shot__hud {
  position: absolute;
  left: 22px;
  bottom: 18px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  pointer-events: none;
}

.shot__hud b {
  font-weight: 400;
  color: var(--accent);
}

/* 顶部：当前子视角名 + 指示点 */
.shot__views {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  pointer-events: none;
}

.shot__views .js-view {
  color: var(--accent);
}

.shot__dots {
  display: flex;
  gap: 6px;
}

.shot__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.shot__dots i.is-on {
  background: var(--accent);
  transform: scale(1.35);
}

.shot__focal {
  font-size: 26px;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-family: var(--font-mono);
}

.shot__focal span {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 3px;
}

/* 焦点游标（那一小片"在跟焦"的暗示） */
.shot__reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.shot__reticle::before,
.shot__reticle::after {
  content: "";
  position: absolute;
  background: var(--accent);
  opacity: 0.55;
}

.shot__reticle::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  margin-left: -0.5px;
}

.shot__reticle::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  margin-top: -0.5px;
}

.shot__frame.is-focus .shot__reticle {
  opacity: 1;
}

/* 底部滚动进度条 —— 让"这是一镜推进"变得可读 */
.shot__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.shot__progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  opacity: 0.5;
}

/* 镜头之间的过渡留白 */
.shot-join {
  height: 14vh;
}

/* ---------- 镜头段响应式 ---------- */
@media (max-width: 900px) {
  .shot { height: auto; }
  .shot--tall { height: auto; }
  .shot__sticky {
    position: static;
    height: auto;
    padding: 72px 0;
    overflow: visible;
  }
  .shot__grid,
  .shot--flip .shot__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .shot--flip .shot__text,
  .shot--flip .shot__frame-col { order: 0; }
  .shot__frame { max-width: 440px; }
  .shot__specs { grid-template-columns: minmax(0, 1fr); }
  .shot__specs > div { padding: 14px 0; }
  .shot__specs > div:nth-child(even) { padding-left: 0; }
  .shot-join { display: none; }
  .intro { padding: 96px 0 0; }
}

/* ==========================================================================
   旅途时间线
   ========================================================================== */

.timeline {
  position: relative;
  margin-top: 64px;
  padding-left: 34px;
}

/* 竖轴 */
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

/* 滚动进度高亮：由 JS 控制高度 */
.timeline__fill {
  position: absolute;
  left: 5px;
  top: 8px;
  width: 1px;
  height: 0;
  background: var(--accent);
  opacity: 0.65;
}

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line-soft);
}

.tl:last-child {
  border-bottom: 0;
}

/* 轴上的节点 */
.tl::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 33px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}

.tl.is-in::before {
  border-color: var(--accent);
  background: var(--accent);
}

.tl__age {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  padding-top: 1px;
  transition: color 0.5s var(--ease);
}

.tl.is-in .tl__age {
  color: var(--accent);
}

.tl__body h3 {
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}

.tl__body p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.82;
  max-width: 62ch;
}

.tl__tag {
  display: inline-block;
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ==========================================================================
   人物关系
   ========================================================================== */

.rel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 56px;
}

.rel__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 28px 30px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.rel__card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-3px);
}

.rel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* 姓名首字圆牌 */
.rel__avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  background: var(--accent-wash);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}

.rel__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.rel__role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rel__card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.82;
}

.rel__tie {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.rel__tie i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.rel__tie b {
  font-weight: 400;
  color: var(--accent);
}

/* ==========================================================================
   国家档案
   ========================================================================== */

.nations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}

.nation {
  background: var(--surface);
  padding: 30px 26px 32px;
  transition: background 0.4s var(--ease);
}

.nation:hover {
  background: var(--accent-wash);
}

.nation__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}

.nation h3 {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.nation__en {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 15px;
}

.nation p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}

.nation__mood {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nation:hover .nation__mood {
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* ---------- 新板块响应式 ---------- */
@media (max-width: 900px) {
  .rel { grid-template-columns: minmax(0, 1fr); }
  .nations { grid-template-columns: minmax(0, 1fr); }
  .timeline { padding-left: 26px; }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tl::before { left: -25px; top: 30px; }
}

/* ---------- 无障碍降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rise] { opacity: 1; transform: none; transition: none; }
  .hero__scroll i { animation: none; }
  .ability__bar i { transition: none; }
  .shot { height: auto; }
  .shot__sticky { position: static; height: auto; padding: 72px 0; overflow: visible; }
  .shot__reticle { display: none; }
  * { transition-duration: 0.01ms !important; }
}
