﻿/* ============================================================
   阿尔希塔 ARUSITA · 角色应援站
   零依赖 / 零构建 · 深浅双主题令牌见 :root 与 .theme-dark
   ============================================================ */

:root {
  --maxw: 1200px;
  --pad: 28px;

  --bg: #f7f5f8;
  --bg-soft: #ffffff;
  --bg-lift: #f1edf5;
  --ink: #191521;
  --ink-dim: #5d566c;
  --ink-mute: #8e879b;
  --line: #e3ddea;
  --line-soft: #ece7f1;

  --gold: #a87c31;
  --gold-soft: rgba(168, 124, 49, .10);
  --lav: #6b53d6;
  --lav-soft: rgba(107, 83, 214, .08);
  --silver: #b9b4c6;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --veil: rgba(247, 245, 248, .86);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", var(--serif);
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SFMono-Regular", monospace;
}

.theme-dark {
  --bg: #0a0810;
  --bg-soft: #12101b;
  --bg-lift: #191623;
  --ink: #efeaf5;
  --ink-dim: #b2a9c4;
  --ink-mute: #7d7490;
  --line: #2a2536;
  --line-soft: #201c2b;
  --veil: rgba(9, 7, 14, .87);

  --gold: #dcb877;
  --gold-soft: rgba(220, 184, 119, .12);
  --lav: #a390ff;
  --lav-soft: rgba(163, 144, 255, .12);
  --silver: #6f6a80;
}

/* ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- 全站背景视频 ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0810 url("../video/bg-poster.jpg") center / cover no-repeat;
}
.site-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: blur(7px) saturate(.95);
  transform: scale(1.08);
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--veil);
}
main, .site-footer { position: relative; z-index: 1; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: #0a0810; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap-narrow { max-width: 880px; }

.skip {
  position: fixed;
  left: -9999px;
  top: 10px;
  z-index: 999;
  background: var(--gold);
  color: #0a0810;
  padding: 10px 18px;
  border-radius: 8px;
}
.skip:focus { left: 12px; }

/* 胶片颗粒 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: .30;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---------- 开场 / 进入页 ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(70% 60% at 50% 38%, #14101f 0%, #06050a 70%);
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro[data-done="true"] { opacity: 0; visibility: hidden; pointer-events: none; }

.intro video,
.intro img {
  width: min(56vw, 600px);
  height: auto;
  filter: drop-shadow(0 0 70px rgba(163, 144, 255, .26));
}

.intro-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: introIn .9s var(--ease) .5s forwards;
}
@keyframes introIn { to { opacity: 1; transform: none; } }

.intro-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: #6b6383;
}
.intro-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .26em;
  text-indent: .26em;
  color: #e6dff2;
}
.intro-top {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: #57506b;
}

.intro-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 30px;
  border-radius: 999px;
  background: linear-gradient(120deg, #e8cf9a, #cba868 55%, #e6cd9b);
  color: #15101f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  box-shadow: 0 18px 44px -20px rgba(220, 184, 119, .85);
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.intro-enter:hover { transform: translateY(-2px); filter: brightness(1.06); }
.intro-enter:active { transform: translateY(0); }

.intro-quiet {
  margin-top: 4px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: .1em;
  color: #665f7c;
  transition: color .2s var(--ease);
}
.intro-quiet:hover { color: #b6adc8; }

/* ---------- 背景音乐控件 ---------- */
.bgm {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 420;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(10, 8, 16, .6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, .9);
  color: #efeaf7;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.bgm[data-visible="true"] { opacity: 1; transform: none; pointer-events: auto; }

.bgm-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.bgm-toggle:hover { background: rgba(255, 255, 255, .16); border-color: rgba(220, 184, 119, .55); }
.bgm[data-blocked="true"] .bgm-toggle { animation: invite 2.6s var(--ease) infinite; }
@keyframes invite {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 184, 119, .55); }
  60% { box-shadow: 0 0 0 8px rgba(220, 184, 119, 0); }
}

.bgm-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}
.bgm-bars i {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: #e3c98f;
}
.bgm[data-playing="true"] .bgm-bars i { animation: eq 1.05s ease-in-out infinite; }
.bgm[data-playing="true"] .bgm-bars i:nth-child(2) { animation-delay: .16s; }
.bgm[data-playing="true"] .bgm-bars i:nth-child(3) { animation-delay: .32s; }
.bgm[data-playing="true"] .bgm-bars i:nth-child(4) { animation-delay: .48s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}

.bgm-meta b {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}
.bgm-meta span {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8d85a0;
}

/* ---------- 顶栏 ---------- */
.site-nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  padding-inline: var(--pad);
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: var(--maxw);
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(10, 8, 16, .52);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-nav[data-solid="true"] .nav-shell {
  background: rgba(8, 6, 13, .82);
  border-color: rgba(255, 255, 255, .13);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #f2eefa;
  white-space: nowrap;
}
.nav-brand .brand-mark {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .18em;
}
.nav-brand .brand-sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .3em;
  color: #cbb488;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding-inline: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  position: relative;
  padding: 9px 14px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: rgba(236, 232, 246, .82);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current="true"] { color: #dcb877; }

.nav-cta {
  margin-left: 52px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #15101f;
  background: linear-gradient(120deg, #e8cf9a, #cba868 55%, #e6cd9b);
  white-space: nowrap;
  box-shadow: 0 8px 24px -14px rgba(220, 184, 119, .9);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 720px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0a0810;
  isolation: isolate;
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-media video { z-index: 1; }
.hero-media img { z-index: 0; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(6, 5, 10, .96) 4%, rgba(6, 5, 10, .55) 38%, rgba(6, 5, 10, .12) 66%, rgba(6, 5, 10, .42) 100%),
    linear-gradient(to right, rgba(6, 5, 10, .78) 0%, rgba(6, 5, 10, .18) 46%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: 64px;
  padding-top: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 48px;
  align-items: end;
}

.hero-title { color: #f6f2fc; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #d3b77f;
}
.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}

.hero-name {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(56px, 10vw, 132px);
  line-height: .96;
  font-weight: 600;
  letter-spacing: .06em;
  color: #f4e9d3;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5));
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-name {
    background: linear-gradient(150deg, #ffffff 8%, #f4e6c6 38%, #cbb488 62%, #fffaf0 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero-sub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .52em;
  text-transform: uppercase;
  color: rgba(214, 205, 232, .62);
}
.hero-sub::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 160px;
  background: linear-gradient(to right, rgba(214, 205, 232, .34), transparent);
}

.hero-lede {
  max-width: 30em;
  margin-top: 26px;
  color: rgba(232, 226, 244, .78);
  font-size: 15.5px;
  line-height: 1.9;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .7);
}
.hero-lede em {
  font-style: normal;
  color: #e9d7ae;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(235, 230, 246, .8);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9bd84;
  display: inline-block;
}
.tag-project {
  border-color: rgba(220, 184, 119, .45);
  background: rgba(220, 184, 119, .10);
  color: #f2e3c2;
  letter-spacing: .1em;
}

/* 首屏入口卡 */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(12, 10, 20, .46);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  color: #f2eef9;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
    background .35s var(--ease);
}
.hcard::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% -30%;
  height: 130px;
  background: radial-gradient(closest-side, rgba(220, 184, 119, .28), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.hcard:hover { transform: translateY(-3px); border-color: rgba(220, 184, 119, .5); }
.hcard:hover::after { opacity: 1; }
.hcard .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(214, 205, 232, .55);
}
.hcard .t {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .06em;
}
.hcard .t em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .18em;
  color: rgba(220, 184, 119, .75);
}
.badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  padding: 2px 7px;
  border-radius: 4px;
  background: #c4453f;
  color: #fff;
}

.hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(214, 205, 232, .45);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-foot .scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-foot .scroll-hint::after {
  content: "";
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(220, 184, 119, .9), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(.2); opacity: .2; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(.2); opacity: .2; transform-origin: top; }
}

.hero-sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(232, 226, 244, .7);
  text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.hero-sound:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-sound .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(220, 184, 119, .9);
}
.hero-sound[aria-pressed="true"] .dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- 通用区块 ---------- */
.sec {
  position: relative;
  background: transparent;
  color: var(--ink);
  padding: 108px 0;
  scroll-margin-top: 104px;
}
.sec + .sec { border-top: 1px solid var(--line-soft); }
.theme-dark.sec + .sec { border-top-color: var(--line-soft); }
.sec--tint { background: color-mix(in srgb, var(--bg-lift) 38%, transparent); }

/* ---------- 分页背景 ---------- */
.sec { overflow: hidden; }
.sec > .wrap { position: relative; z-index: 1; }

.sec[data-bg]::before,
.sec[data-bg]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sec[data-bg]::before {
  background-image: var(--bg-img);
  background-size: cover;
  background-position: var(--bg-pos, center);
  background-repeat: no-repeat;
  opacity: var(--bg-op, .18);
  filter: saturate(.88) blur(var(--bg-blur, 2px));
  transform: scale(1.05);
}
.sec[data-bg]::after {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(255, 255, 255, 0) 17%,
    rgba(255, 255, 255, 0) 83%,
    var(--bg) 100%
  );
}

#profile[data-bg]  { --bg-img: url("../img/gallery/g20-04-bg.webp"); --bg-op: .21; --bg-pos: 50% 45%; --bg-blur: 5px; }
#formes[data-bg]   { --bg-img: url("../img/gallery/g20-09-t.webp"); --bg-op: .18; --bg-pos: 50% 32%; --bg-blur: 5px; }
#fire[data-bg]     { --bg-img: url("../img/gallery/g10-01.webp"); --bg-op: .32; --bg-pos: 50% 45%; }
#relics[data-bg]   { --bg-img: url("../img/gallery/g20-02-t.webp"); --bg-op: .18; --bg-pos: 50% 22%; --bg-blur: 5px; }
#world[data-bg]    { --bg-img: url("../img/gallery/g20-05-bg.webp"); --bg-op: .28; --bg-pos: 50% 50%; }
#timeline[data-bg] { --bg-img: url("../img/gallery/g20-06-bg.webp"); --bg-op: .21; --bg-pos: 50% 55%; --bg-blur: 5px; }
#trivia[data-bg]   { --bg-img: url("../img/gallery/g20-08-t.webp"); --bg-op: .17; --bg-pos: 50% 28%; --bg-blur: 5px; }
#gifts[data-bg]    { --bg-img: url("../img/gallery/g20-01-t.webp"); --bg-op: .19; --bg-pos: 50% 18%; --bg-blur: 5px; }
#cards[data-bg]    { --bg-img: url("../img/gallery/g10-02-t.webp"); --bg-op: .22; --bg-pos: 50% 30%; --bg-blur: 4px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.sec-head h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: .04em;
}

.sec-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  white-space: nowrap;
  padding-bottom: 6px;
}
.sec-num b {
  display: block;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink-mute);
  opacity: .3;
}

.lead {
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.95;
}

.quote {
  position: relative;
  margin: 34px 0 0;
  padding: 22px 26px 22px 26px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(to right, var(--gold-soft), transparent 70%);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-family: var(--kai);
  font-size: 17px;
  line-height: 2;
  color: var(--ink);
}
.quote p { margin: 0 0 .6em; }
.quote p:last-child { margin-bottom: 0; }
.quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ---------- 子页容器与页头 ---------- */
.page {
  background: transparent;
  color: var(--ink);
  min-height: 70vh;
}
.page-head {
  padding: 150px 0 46px;
  border-bottom: 1px solid var(--line-soft);
}
.page-head + .sec { padding-top: 68px; }

.crumbs {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin-inline: 9px; opacity: .45; }

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 20px;
}
.page-head h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.14;
}

/* ---------- 站点目录 ---------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 26px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--bg-soft);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
    box-shadow .3s var(--ease);
}
.route-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% -30%;
  height: 140px;
  background: radial-gradient(closest-side, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.route-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 22px 44px -34px rgba(60, 40, 90, .55);
}
.route-card:hover::after { opacity: 1; }
.route-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
}
.route-kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.route-title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .06em;
}
.route-desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  padding-right: 20px;
}
.route-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-family: var(--mono);
  color: var(--gold);
  transition: transform .3s var(--ease);
}
.route-card:hover .route-arrow { transform: translateX(5px); }

/* ---------- 档案 ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.portrait {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -60px rgba(40, 30, 70, .55);
}
.portrait img {
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}
.portrait:hover img { transform: scale(1.02); }

.portrait-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 16, .62);
  backdrop-filter: blur(8px);
  color: #f0ebf8;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 4px;
}
.facts dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.75;
}
.facts dd small {
  display: block;
  margin-top: 3px;
  font-family: var(--kai);
  font-size: 13px;
  color: var(--ink-dim);
}

.name-plate {
  margin: 0 0 26px;
  padding: 24px 26px 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-m);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.name-full {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}
.name-sep {
  margin: 0 1px 0 2px;
  color: var(--ink-mute);
  font-weight: 400;
}
.name-masked {
  margin-left: 3px;
  font-size: .6em;
  letter-spacing: .14em;
  color: var(--gold);
  opacity: .85;
}
.name-gloss {
  margin: 12px 0 0;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-dim);
}
.name-gloss b { color: var(--ink); font-weight: 600; margin-right: 7px; }
.name-gloss i { font-style: normal; margin: 0 12px; color: var(--ink-mute); }
.name-note {
  margin: 9px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-mute);
}


/* ---------- 双形态 ---------- */
.forme-switch {
  display: inline-flex;
  margin-top: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  gap: 4px;
}
.forme-switch button {
  padding: 9px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-dim);
  transition: all .28s var(--ease);
}
.forme-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.forme {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}

.forme-figure {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}
.forme-figure img { width: 100%; height: auto; transition: opacity .35s var(--ease); }

.forme-symbol {
  position: absolute;
  right: 16px;
  top: 12px;
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  color: var(--lav);
  opacity: .34;
  pointer-events: none;
}

.forme-body h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: .05em;
}
.forme-body .forme-en {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.forme-body .lead { margin-top: 20px; }

.diff-list { list-style: none; margin: 26px 0 0; padding: 0; }
.diff-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 14.5px;
  color: var(--ink-dim);
  border-bottom: 1px dashed var(--line-soft);
}
.diff-list li::before {
  content: "◇";
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 10px;
  color: var(--gold);
}

.compare-note {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--ink-dim);
}
.compare-note b { color: var(--ink); font-weight: 600; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-dim);
  transition: color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.link-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }

/* ---------- 内在之火 ---------- */
.fire-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}

.flame-stage {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.flame-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.flame-ring:nth-child(2) { inset: 16%; border-style: dashed; opacity: .6; }
.flame-ring:nth-child(3) { inset: 26%; opacity: .35; }

.flame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 50px rgba(150, 122, 255, .55))
    drop-shadow(0 0 110px rgba(220, 200, 255, .22));
}

.flame-tongue {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  bottom: 5%;
  transform-origin: 50% 100%;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'><path d='M50,2C58,20,72,34,76,56C80,80,74,100,62,116C56,124,52,130,50,134C48,128,44,122,38,116C26,100,20,80,24,56C28,34,42,20,50,2Z' fill='white'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'><path d='M50,2C58,20,72,34,76,56C80,80,74,100,62,116C56,124,52,130,50,134C48,128,44,122,38,116C26,100,20,80,24,56C28,34,42,20,50,2Z' fill='white'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  will-change: transform;
}

.f1 {
  width: 56%;
  height: 78%;
  background: linear-gradient(to top,
    rgba(255, 255, 255, .97) 0%,
    rgba(246, 241, 255, .8) 42%,
    rgba(214, 198, 255, .42) 74%,
    rgba(198, 180, 255, 0) 100%);
  mix-blend-mode: screen;
  filter: blur(5px);
  animation: flicker-a 2.6s ease-in-out infinite;
}

.f2 {
  width: 38%;
  height: 56%;
  bottom: 6%;
  background: linear-gradient(to top,
    rgba(236, 226, 255, .98) 0%,
    rgba(178, 152, 252, .85) 40%,
    rgba(120, 92, 232, .5) 76%,
    rgba(107, 83, 214, 0) 100%);
  filter: blur(7px);
  animation: flicker-b 1.8s ease-in-out infinite;
}

.f3 {
  width: 23%;
  height: 36%;
  bottom: 7%;
  background: linear-gradient(to top,
    rgba(210, 190, 255, 1) 0%,
    rgba(126, 100, 236, .95) 46%,
    rgba(107, 83, 214, 0) 100%);
  filter: blur(8px);
  animation: flicker-c 1.3s ease-in-out infinite;
}

.flame-core {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 13%;
  height: 17%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ede3ff 44%, rgba(255, 255, 255, 0) 74%);
  filter: blur(9px);
  animation: core-glow 1.1s ease-in-out infinite;
}

.ember {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 44%;
  height: 9%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(170, 140, 255, .45), transparent 72%);
  filter: blur(12px);
  animation: core-glow 2.2s ease-in-out infinite;
}

@keyframes flicker-a {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  17% { transform: scale(.96, 1.05) skewX(-2.4deg); }
  39% { transform: scale(1.03, .965) skewX(1.8deg); }
  61% { transform: scale(.975, 1.04) skewX(2.6deg); }
  82% { transform: scale(1.015, .985) skewX(-1.4deg); }
}

@keyframes flicker-b {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  22% { transform: scale(.94, 1.08) skewX(3.4deg); }
  49% { transform: scale(1.06, .94) skewX(-2.6deg); }
  74% { transform: scale(.96, 1.06) skewX(-3.4deg); }
}

@keyframes flicker-c {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  28% { transform: scale(.9, 1.12) skewX(-4deg); }
  57% { transform: scale(1.08, .92) skewX(3.2deg); }
}

@keyframes core-glow {
  0%, 100% { opacity: .88; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

.fire-legend {
  position: absolute;
  bottom: 2%;
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fire-legend span { display: inline-flex; align-items: center; gap: 7px; }
.fire-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.fire-legend .o { background: #fdfbff; box-shadow: 0 0 10px rgba(255,255,255,.8); }
.fire-legend .i { background: #7d63e0; box-shadow: 0 0 10px rgba(125,99,224,.9); }

/* ---------- 珍惜之物 ---------- */
.relics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.relic {
  position: relative;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(165deg, var(--bg-soft), var(--bg));
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.relic:hover { transform: translateY(-4px); border-color: var(--gold); }
.relic .relic-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--gold);
}
.relic h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .08em;
}
.relic .relic-en {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.relic p {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.9;
}
.relic .relic-gem {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  opacity: .5;
  filter: blur(24px);
  pointer-events: none;
}
.relic-a .relic-gem { background: radial-gradient(circle, #e4747a, transparent 68%); }
.relic-b .relic-gem { background: radial-gradient(circle, #b9c7ee, transparent 68%); }

/* ---------- 世界观 ---------- */
.world-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.world {
  position: relative;
  padding: 38px 34px 34px;
  background: var(--bg);
}
.world h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .1em;
}
.world .world-en {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.world p {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.95;
}
.world-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--ink-mute);
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 28px;
  padding: 0 0 40px 0;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.tl-dot span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  z-index: 1;
}

.tl-body h4 {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--ink);
}
.tl-body p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
  max-width: 56ch;
  line-height: 1.9;
}
.tl-item[data-flip="true"] .tl-dot span {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.tl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.tl-side {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--bg-soft);
}
.tl-side h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.tl-side p { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.9; }

/* ---------- 趣事 ---------- */
.trivia {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.triv {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--bg-soft);
  overflow: hidden;
}
.triv .triv-no {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--gold);
  opacity: .28;
}
.triv h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .06em;
}
.triv p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.9;
}

/* ---------- 舰长礼 ---------- */
.gift-table {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--bg-soft);
}
.gift-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.gift-row:last-child { border-bottom: 0; }
.gift-tier {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--ink);
}
.gift-tier em {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}
.gift-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gift-items span {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-dim);
}

/* ---------- 设定卡 ---------- */
.cards-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
/* 不要写 scrollbar-width —— 新版 Chrome 会让它覆盖下面的自定义样式 */
.cards-rail::-webkit-scrollbar {
  height: 6px;
  background: transparent;
}
.cards-rail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
  border-radius: 99px;
}
.cards-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 99px;
}
.cards-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .30);
}
/* Firefox 用另一套属性，颜色对齐就行 */
@supports (-moz-appearance: none) {
  .cards-rail {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
  }
}
.card-shot {
  flex: 0 0 min(72vw, 640px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card-shot:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-shot img { width: 100%; height: auto; }

/* ---------- 画廊 ---------- */
.gal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.gal-filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.gal-filter button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-dim);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.gal-filter button:hover { color: var(--ink); }
.gal-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.gal-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-mute);
}

.gal { column-count: 3; column-gap: 16px; }
.gal figure {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.gal img {
  width: 100%;
  height: auto;
  transition: transform .7s var(--ease);
}
.gal figure:hover img { transform: scale(1.035); }
.gal .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 8, 16, .6);
  backdrop-filter: blur(6px);
  color: #f1ecfa;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
}
.gal .zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 8, 16, .55);
  backdrop-filter: blur(6px);
  color: #f2eef9;
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.gal figure:hover .zoom { opacity: 1; }
.gal figure[hidden] { display: none; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 5vmin;
  background: rgba(5, 4, 9, .93);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 40px 120px -40px #000; }
.lb-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255, 255, 255, .12); }
.lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  color: #cfc7dd;
  font-size: 13px;
  letter-spacing: .08em;
  pointer-events: none;
}
.lb-cap:empty { display: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: #07060c;
  color: #d9d3e6;
  padding: 72px 0 104px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -20%;
  background: radial-gradient(closest-side, rgba(107, 83, 214, .22), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}
.footer-lockup b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .26em;
  color: #f0ebf8;
}
.footer-lockup i {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .36em;
  color: #7f7794;
}
.footer-project {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 11px;
  border: 1px solid rgba(220, 184, 119, .32);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .18em;
  color: #d8bd88;
}
.footer-brand p {
  margin: 20px 0 0;
  max-width: 48ch;
  font-size: 13px;
  color: #8d859f;
  line-height: 1.9;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-content: start;
}
.footer-links a {
  font-size: 13.5px;
  color: #a79fb8;
  padding: 6px 0;
  transition: color .2s;
}
.footer-links a:hover { color: #e6dcf7; }
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid #191524;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: #6a6279;
  text-transform: uppercase;
}

/* ---------- 进场 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
  .profile { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 460px; }
  .forme { grid-template-columns: 1fr; gap: 36px; }
  .fire-layout { grid-template-columns: 1fr; gap: 40px; }
  .flame-stage { max-width: 420px; margin-inline: auto; }
  .gal { column-count: 2; }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  .sec { padding: 76px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .sec-num { display: none; }
  .relics { grid-template-columns: 1fr; }
  .world-grid { grid-template-columns: 1fr; }
  .trivia { grid-template-columns: 1fr; }
  .tl-split { grid-template-columns: 1fr; }
  .gift-row { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-cta { display: none; }
  .nav-brand .brand-sub { display: none; }
  .nav-links { -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent); }
  .hero-inner { padding-top: 120px; padding-bottom: 40px; }
  .page-head { padding: 130px 0 34px; }
  .page-head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-foot { font-size: 9.5px; letter-spacing: .12em; }
  .hero-foot .scroll-hint { display: none; }
  .tl-item { grid-template-columns: 56px 1fr; gap: 16px; }
  .facts > div { grid-template-columns: 104px 1fr; gap: 14px; }
}

@media (max-width: 560px) {
  .hero { min-height: 92svh; }
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(6, 5, 10, .97) 8%, rgba(6, 5, 10, .9) 50%, rgba(6, 5, 10, .74) 78%, rgba(6, 5, 10, .58) 100%);
  }
  .hero-cards { grid-template-columns: 1fr; }
  .hcard { min-height: 84px; gap: 14px; }
  .hero-name { font-size: clamp(44px, 15vw, 64px); }
  .hero-lede { font-size: 14px; }
  .hero-media img { display: block; }
  .hero-media video { display: none; }
  .forme-switch button { padding: 8px 15px; font-size: 11px; }
  .quote { padding: 18px 18px 18px 24px; font-size: 15px; }
  .gal { column-count: 1; }
  .route-grid { grid-template-columns: 1fr; }
  .site-bg video { display: none; }
  .site-bg::after { background: color-mix(in srgb, var(--bg) 90%, transparent); }
  .name-plate { padding: 20px 20px 18px; }
  .bgm { left: 14px; bottom: 14px; gap: 9px; padding: 7px 13px 7px 7px; }
  .bgm-meta b { font-size: 12px; }
  .intro video, .intro img { width: min(78vw, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   深色玻璃风格（全站统一）
   ============================================================ */

.theme-dark {
  --glass: rgba(19, 16, 29, .55);
  --glass-line: rgba(255, 255, 255, .10);
}

/* ---- 玻璃面板 ---- */
.route-card,
.quote,
.compare-note,
.relic,
.world,
.tl-side,
.triv,
.gift-table,
.card-shot,
.gal-filter,
.forme-switch {
  background: var(--glass);
  border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.quote {
  border-left: 2px solid var(--gold);
  background: linear-gradient(to right, var(--gold-soft), transparent 72%),
    var(--glass);
}

.facts {
  padding: 2px 22px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-m);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.facts > div { border-bottom-color: rgba(255, 255, 255, .07); }
.facts > div:last-child { border-bottom: 0; }

.sec--tint { background: rgba(255, 255, 255, .025); }

/* ---- 立绘：去掉白卡，人物直接站在背景上 ---- */
.portrait {
  height: min(76vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 6% 0 2% 0;
  background: radial-gradient(58% 46% at 50% 56%, rgba(150, 130, 255, .22), transparent 72%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}
.portrait img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, .55));
}
.portrait:hover img { transform: none; }
.portrait-tag {
  left: 0;
  top: 2px;
  bottom: auto;
  transform: none;
  background: rgba(8, 6, 13, .6);
  border: 1px solid rgba(255, 255, 255, .12);
}

.forme-figure {
  height: min(72vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
}
.forme-figure::before {
  content: "";
  position: absolute;
  inset: 6% 0 2% 0;
  background: radial-gradient(58% 46% at 50% 56%, rgba(150, 130, 255, .20), transparent 72%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}
.forme-figure img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, .55));
}

@media (max-width: 860px) {
  .portrait { height: min(58vh, 520px); }
  .forme-figure { height: min(56vh, 520px); }
}

/* ============================================================
   页面之间：淡入淡出衔接
   ============================================================ */

/* 同源跨文档切换：浏览器原生的 View Transition，旧页面淡出、新页面淡入 */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vtOut .28s cubic-bezier(.4, 0, .9, .5) both;
}
::view-transition-new(root) {
  animation: vtIn .4s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes vtOut {
  to { opacity: 0; }
}
@keyframes vtIn {
  from { opacity: 0; }
}

/* 不支持 View Transition 的浏览器：整页淡入 + 轻微上浮 */
@supports not (view-transition-name: none) {
  main {
    animation: pageIn .5s cubic-bezier(.22, .61, .36, 1) both;
  }
  @keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ============================================================
   现世观测
   ============================================================ */
.obs-bar { display: flex; align-items: center; gap: 18px; margin: 26px 0 22px; flex-wrap: wrap; }
.obs-bar .link-btn { margin-top: 0; }
.obs-count { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-mute); }

.obs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .72fr);
  gap: 22px;
  align-items: start;
}

.obs-map {
  position: relative;
  aspect-ratio: 1000 / 586.6;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-m);
  background: rgba(12, 10, 20, .62);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.obs-land {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(226, 220, 240, .46) 1.1px, transparent 1.6px);
  background-size: 5px 5px;
  -webkit-mask: url("../img/world-land.svg?v=3") 0 0 / 100% 100% no-repeat;
  mask: url("../img/world-land.svg?v=3") 0 0 / 100% 100% no-repeat;
}
.obs-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 10% 20%;
}

.obs-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.obs-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
  transition: transform .2s var(--ease);
}
.obs-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--c);
  animation: obsPing 2.6s ease-out infinite;
}
@keyframes obsPing {
  0% { transform: scale(.25); opacity: .75; }
  70% { transform: scale(1); opacity: 0; }
  100% { opacity: 0; }
}
.obs-marker:hover .obs-dot,
.obs-marker.is-active .obs-dot { transform: scale(1.4); }
.obs-marker.is-active .obs-ping { animation-duration: 1.5s; }

.obs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-mute);
}
.obs-legend span { display: inline-flex; align-items: center; gap: 7px; }
.obs-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.obs-panel {
  border: 1px solid var(--glass-line);
  border-radius: var(--r-m);
  background: var(--glass);
  padding: 18px;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.obs-detail-hint { font-size: 12.5px; color: var(--ink-mute); }
.obs-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--c);
  color: var(--c);
  font-size: 10.5px;
  letter-spacing: .1em;
}
.obs-detail h3 { margin: 12px 0 0; font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.obs-detail h3 em { font-style: normal; font-size: 12px; color: var(--ink-mute); margin-left: 6px; }
.obs-facts { margin: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.obs-facts > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px;
}
.obs-facts dt { color: var(--ink-mute); font-size: 11px; }
.obs-facts dd { margin: 0; }
.obs-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-dim); }

.obs-list { list-style: none; margin: 16px 0 0; padding: 0; max-height: 330px; overflow: auto; }
.obs-row {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 8px;
  border-radius: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.obs-row:hover { background: rgba(255, 255, 255, .05); }
.obs-row.is-active { background: rgba(255, 255, 255, .09); }
.obs-row-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-top: 7px; flex: none; }
.obs-row-main b { display: block; font-size: 13px; font-weight: 500; }
.obs-row-main i {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.obs-foot { margin-top: 26px; font-size: 12px; color: var(--ink-mute); }

@media (max-width: 960px) {
  .obs-layout { grid-template-columns: 1fr; }
  .obs-list { max-height: none; }
}


.obs-bar .obs-today,
.obs-bar .obs-next {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-mute);
}
.obs-bar .obs-next { margin-left: auto; color: var(--gold); }

/* 滚动条：细、深色，跟玻璃面板一致 */
.obs-list,
.obs-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.obs-list::-webkit-scrollbar { width: 6px; }
.obs-list::-webkit-scrollbar-track { background: transparent; }
.obs-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: 99px;
}
.obs-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .28); }

/* 11 项在中等宽度放不下时，给右侧一个渐隐提示，说明可以横向滚 */
@media (max-width: 1120px) {
  .nav-links a { padding: 8px 8px; font-size: 12.5px; }
}

/* 再窄一点才真的放不下，这时才需要渐隐提示 */
@media (max-width: 920px) {
  .nav-links {
    -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
    mask-image: linear-gradient(to right, #000 92%, transparent);
  }
}

/* 档案页：制作名单 */
.credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-line);
}
.credits-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-mute);
  margin-right: 4px;
}
.credits a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.credits a em { font-style: normal; color: var(--ink); }
.credits a span { font-size: 10px; color: var(--gold); }
.credits a:hover {
  border-color: rgba(216, 185, 128, .55);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
}

/* 404 */
.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.lost-links .link-btn { margin-top: 0; }



/* 设定卡横向指示条（替代原生滚动条） */
.rail-bar {
  position: relative;
  width: min(1144px, 100%);
  height: 2px;
  margin: -8px auto 0;
  background: rgba(255, 255, 255, .07);
  border-radius: 99px;
  overflow: hidden;
}
.rail-bar i {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(232, 207, 154, .85), rgba(232, 207, 154, .45));
  transition: opacity .3s var(--ease);
}
.rail-bar[hidden] { display: none; }

/* ---------- 中英文切换 ---------- */
.lang-toggle {
  flex: none;
  margin-left: 14px;
  padding: 7px 11px;
  border: 1px solid var(--glass-line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.lang-toggle:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .09);
}
@media (max-width: 860px) {
  .lang-toggle { margin-left: 10px; }
}

/* 英文界面：标签更长，收一下字号和内边距 */
html[lang="en"] .nav-links a {
  padding: 9px 7px;
  font-size: 12px;
  letter-spacing: .02em;
}
html[lang="en"] .nav-brand .brand-mark { font-size: 15px; }
html[lang="en"] .nav-cta { margin-left: 40px; }
@media (max-width: 1120px) {
  html[lang="en"] .nav-links a { padding: 8px 6px; font-size: 11.5px; }
}

/* 开场页语言切换 */
.intro-lang {
  position: absolute;
  top: 30px;
  right: 34px;
  z-index: 2;
  margin: 0;
  padding: 8px 13px;
  opacity: .75;
}
.intro-lang:hover { opacity: 1; }
@media (max-width: 560px) {
  .intro-lang { top: 18px; right: 18px; padding: 7px 11px; }
}
