/* ==========================================================================
   诡秘之主 · LORD OF THE MYSTERIES — 沉浸式致敬单页
   设计系统：维多利亚哥特 × 蒸汽朋克 × 神秘学仪式
   ========================================================================== */

:root {
  /* 色板 */
  --ink: #0B0A08;            /* 炭墨黑 */
  --ink-2: #14110D;          /* 深棕黑（面板底） */
  --ink-3: #1D1913;          /* 黄铜面板 */
  --fog: #9BA3AD;            /* 灰雾银 */
  --fog-dim: #6E737B;
  --brass: #C9A45C;          /* 黄铜古金 */
  --brass-hi: #E9CF9A;       /* 高光黄铜 */
  --ember: #E8B45A;          /* 烛焰琥珀 */
  --ember-hi: #F5C96B;
  --blood: #7A2430;          /* 血月绯红 */
  --paper: #E7DFCE;          /* 旧纸米白 */

  /* 字体 */
  --f-cn: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "STSong", "KaiTi", "SimSun", serif;
  --f-en: "Cinzel", "Times New Roman", Georgia, serif;
  --f-en-body: "Cormorant Garamond", "Times New Roman", serif;

  /* 节奏 */
  --pad-x: clamp(20px, 5vw, 88px);
  --sec-gap: clamp(90px, 14vh, 180px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-cn);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(201, 164, 92, .35); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3a3125; border-radius: 99px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--brass); }

/* 自定义光标：隐藏原生（仅指针设备） */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ==========================================================================
   全局纹理层
   ========================================================================== */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 90;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainShift 1.1s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2.5%, 1.5%); }
  66% { transform: translate(1.8%, -1.2%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 89;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 4, 3, .55) 100%),
    linear-gradient(to bottom, rgba(5,4,3,.28), transparent 14%, transparent 88%, rgba(5,4,3,.4));
}

.fog { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: .5; }

/* ==========================================================================
   自定义光标
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  border-radius: 50%; opacity: 0; transition: opacity .3s;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 6px; height: 6px; background: var(--ember-hi);
  box-shadow: 0 0 10px 2px rgba(232, 180, 90, .8);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(201, 164, 92, .65);
  transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), border-color .3s, background .3s;
}
.cursor-ring.is-hover { width: 62px; height: 62px; border-color: var(--ember); background: rgba(232, 180, 90, .08); }

/* ==========================================================================
   开场仪式 Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .9s ease, visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__circle { width: clamp(150px, 22vw, 210px); height: auto; overflow: visible; }
.loader__circle .lc-ring { stroke: var(--brass); stroke-width: 1; opacity: .9; }
.loader__circle .lc-ring--outer { stroke-width: 1.6; }
.loader__circle .lc-runes path { fill: var(--brass); opacity: 0; }
.loader__circle .lc-eye path { stroke: var(--ember); stroke-width: 1.4; }
.loader__circle .lc-eye circle { stroke: var(--ember); stroke-width: 1.4; }
.loader__circle .lc-eye circle:last-child { fill: var(--ember); stroke: none; }
.loader__circle .lc-spokes path { stroke: var(--brass); stroke-width: 1; opacity: .55; }
.loader.is-live .lc-ring { stroke-dasharray: 620; stroke-dashoffset: 620; animation: drawRing 1.7s var(--ease-out) forwards; }
.loader.is-live .lc-ring--mid { animation-delay: .15s; }
.loader.is-live .lc-ring--inner { animation-delay: .3s; }
.loader.is-live .lc-runes path { animation: runeIn .7s ease forwards; }
.loader.is-live .lc-runes path:nth-child(2) { animation-delay: .2s; }
.loader.is-live .lc-runes path:nth-child(3) { animation-delay: .4s; }
.loader.is-live .lc-runes path:nth-child(4) { animation-delay: .6s; }
.loader.is-live .lc-eye { opacity: 0; animation: runeIn .9s ease .55s forwards; }
.loader.is-live .lc-spokes { opacity: 0; animation: runeIn 1s ease .7s forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes runeIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

.loader__cn {
  font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: .5em; text-indent: .5em;
  color: var(--paper);
  text-shadow: 0 0 26px rgba(232, 180, 90, .45);
  opacity: 0; transform: translateY(12px);
}
.loader__en {
  font-family: var(--f-en); font-size: 11px; letter-spacing: .6em; text-indent: .6em;
  color: var(--brass); opacity: 0; transform: translateY(8px);
}
.loader.is-live .loader__cn { animation: loaderText 1s var(--ease-out) .7s forwards; }
.loader.is-live .loader__en { animation: loaderText 1s var(--ease-out) 1s forwards; }
@keyframes loaderText { to { opacity: 1; transform: translateY(0); } }

.loader__hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .4em; color: var(--fog-dim);
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  transition: background .5s, padding .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 10, 8, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom-color: rgba(201, 164, 92, .22);
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; }
.nav__brand svg { width: 26px; height: 26px; color: var(--brass); align-self: center; }
.nav__brand-cn { font-size: 19px; font-weight: 700; letter-spacing: .34em; }
.nav__brand-en { font-family: var(--f-en); font-size: 9px; letter-spacing: .3em; color: var(--fog-dim); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav__links a {
  position: relative; font-size: 13px; letter-spacing: .3em; color: var(--fog);
  padding: 6px 2px; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--ember), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ember-hi); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__burger { display: none; flex-direction: column; gap: 7px; padding: 8px; z-index: 130; }
.nav__burger span { display: block; width: 26px; height: 1.5px; background: var(--brass); transition: transform .4s var(--ease-out), opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(9, 8, 6, .96);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.mmenu.is-open { opacity: 1; visibility: visible; }
.mmenu__links { display: grid; gap: 6px; text-align: center; }
.mmenu__links a {
  font-size: 24px; letter-spacing: .4em; padding: 10px 0; color: var(--paper);
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out), color .3s;
}
.mmenu.is-open .mmenu__links a { opacity: 1; transform: none; }
.mmenu__links a i { display: block; font-family: var(--f-en); font-style: normal; font-size: 10px; letter-spacing: .5em; color: var(--brass); }
.mmenu__links a:hover { color: var(--ember-hi); }

/* ==========================================================================
   序列爬升侧轨
   ========================================================================== */
.rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transition: opacity .8s;
}
.rail.is-live { opacity: 1; }
.rail__cap { writing-mode: vertical-rl; font-family: var(--f-en); font-size: 9px; letter-spacing: .5em; color: var(--fog-dim); }
.rail__list { list-style: none; display: grid; gap: 9px; position: relative; padding: 6px 0; }
.rail__list::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,164,92,.4) 20%, rgba(201,164,92,.4) 80%, transparent);
}
.rail__list li { position: relative; display: grid; justify-items: center; gap: 2px; }
.rail__list i {
  font-style: normal; font-family: var(--f-en); font-size: 9px; letter-spacing: .08em;
  color: var(--fog-dim); transition: color .4s, text-shadow .4s;
}
.rail__list b {
  width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid rgba(201, 164, 92, .5); background: var(--ink);
  transition: background .4s, box-shadow .4s, border-color .4s;
}
.rail__list li.is-lit i { color: var(--ember-hi); text-shadow: 0 0 8px rgba(232,180,90,.8); }
.rail__list li.is-lit b { background: var(--ember); border-color: var(--ember-hi); box-shadow: 0 0 10px rgba(232,180,90,.9); }
.rail__label {
  writing-mode: vertical-rl; font-size: 12px; letter-spacing: .4em; color: var(--fog);
  transition: color .4s;
}

/* ==========================================================================
   共用标题组件
   ========================================================================== */
.sec-tag { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .4em; color: var(--brass); }
.sec-tag em { font-family: var(--f-en); font-style: normal; font-size: 10px; letter-spacing: .45em; color: var(--fog-dim); }
.sec-tag::after { content: ""; height: 1px; width: clamp(40px, 6vw, 90px); background: linear-gradient(90deg, rgba(201,164,92,.7), transparent); }
.sec-head { position: relative; z-index: 5; }
.sec-head--center { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(40px, 7vh, 90px); }
.sec-head--center .sec-tag::after { display: none; }
.sec-head--left { display: grid; gap: 14px; }
.sec-title {
  font-size: clamp(34px, 5.4vw, 72px); font-weight: 900; letter-spacing: .14em; line-height: 1.3;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}
.sec-title--sm { font-size: clamp(26px, 3.6vw, 48px); }
.sec-sub { max-width: 640px; color: var(--fog); font-size: 14px; }

/* 拆字动画初始态（JS 填充 span） */
.split-char { display: inline-block; will-change: transform, opacity; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: grid; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: 1; will-change: transform; }
.hero__media img { object-fit: cover; object-position: 50% 38%; transform: scale(1.12); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(30, 34, 48, .1), rgba(11, 10, 8, .62) 78%),
              linear-gradient(to top, var(--ink) 2%, transparent 36%);
}
.hero__moon {
  position: absolute; z-index: 2; top: 8%; right: 13%;
  width: clamp(120px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%,
    rgba(238, 178, 138, .95) 0%, rgba(190, 92, 70, .88) 34%,
    rgba(130, 40, 48, .7) 58%, rgba(90, 24, 34, .42) 76%, rgba(74, 18, 28, 0) 88%);
  box-shadow: 0 0 90px 30px rgba(122, 36, 48, .38), 0 0 240px 100px rgba(122, 36, 48, .16);
  filter: saturate(.85);
  opacity: .9;
  will-change: transform;
}
.hero__shade { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero__content {
  position: relative; z-index: 5;
  align-self: end; justify-self: start;
  padding: 0 var(--pad-x) clamp(64px, 11vh, 120px);
  max-width: 980px;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-en); font-size: 10px; letter-spacing: .5em; color: var(--brass);
  margin-bottom: clamp(18px, 3vh, 30px); white-space: nowrap;
}
.hero__eyebrow-line { height: 1px; width: clamp(30px, 5vw, 70px); background: linear-gradient(90deg, transparent, var(--brass)); }
.hero__eyebrow-line:last-child { background: linear-gradient(90deg, var(--brass), transparent); }
.hero__title { display: grid; gap: 14px; }
.hero__title-cn {
  font-size: clamp(64px, 12.5vw, 176px);
  font-weight: 900; letter-spacing: .12em; line-height: 1.04;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, .65));
}
/* 渐变放在每个拆字 span 上：background-clip:text 会因子元素 transform 失效 */
.hero__title-cn .split-char {
  background: linear-gradient(168deg, #F4EAD2 18%, #D9BE8A 46%, #A97F3C 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-en {
  font-family: var(--f-en); font-weight: 600;
  font-size: clamp(12px, 2vw, 24px); letter-spacing: .58em; color: var(--fog);
}
.hero__quote {
  margin-top: clamp(18px, 3.4vh, 34px);
  font-size: clamp(15px, 1.8vw, 21px); letter-spacing: .22em; color: var(--ember-hi);
  text-shadow: 0 0 22px rgba(232, 180, 90, .4);
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin-top: clamp(16px, 3vh, 28px); }
.hero__meta li {
  font-size: 12px; letter-spacing: .3em; color: var(--fog);
  padding-left: 14px; position: relative;
}
.hero__meta li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 7px; color: var(--brass); }

.hero__scroll {
  position: absolute; z-index: 5; right: clamp(24px, 5vw, 72px); bottom: 40px;
  display: grid; justify-items: center; gap: 14px;
}
.hero__scroll span { writing-mode: vertical-rl; font-size: 11px; letter-spacing: .42em; color: var(--fog); }
.hero__scroll i { width: 1px; height: 64px; background: rgba(201, 164, 92, .35); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--ember-hi));
  animation: scrollDrip 2.2s var(--ease-out) infinite;
}
@keyframes scrollDrip { 0% { top: -40%; } 60%, 100% { top: 110%; } }

/* ==========================================================================
   序章
   ========================================================================== */
.prologue {
  position: relative; padding: var(--sec-gap) var(--pad-x);
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: clamp(30px, 6vw, 90px); align-items: center;
  background: linear-gradient(to bottom, var(--ink), #100D0A 30%, #100D0A 70%, var(--ink));
}
.prologue__media {
  position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 164, 92, .28), 0 0 60px rgba(232, 180, 90, .07);
  transform: rotate(-1.2deg);
  will-change: transform;
}
.prologue__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.prologue__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(232,180,90,.08), transparent 34%, rgba(11,10,8,.5));
}
.prologue__body { display: grid; gap: 22px; }
.prologue__title {
  font-size: clamp(34px, 5vw, 64px); font-weight: 900; line-height: 1.35; letter-spacing: .1em;
}
.prologue__sub {
  font-size: clamp(16px, 2vw, 24px); letter-spacing: .5em; color: var(--brass);
}
.prologue__text { max-width: 560px; color: var(--fog); font-size: 15px; }
.prologue__note { font-size: 13px; letter-spacing: .3em; color: var(--ember); opacity: .85; }

/* ==========================================================================
   世界观
   ========================================================================== */
.world { position: relative; padding-top: var(--sec-gap); }
.world__band {
  position: relative; height: clamp(300px, 52vh, 520px); overflow: hidden;
  display: grid; align-items: center;
}
.world__band img { width: 100%; height: 132%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.world__band-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, transparent 30%, transparent 62%, var(--ink) 100%),
              rgba(11, 10, 8, .38);
}
.world .sec-head { padding: 0 var(--pad-x); margin-top: clamp(50px, 8vh, 110px); }
.world__cards {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
  padding: 0 var(--pad-x) var(--sec-gap);
}
.wcard {
  --d: 0;
  position: relative;
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2) 70%);
  border: 1px solid rgba(201, 164, 92, .22);
  border-radius: 4px;
  padding: clamp(22px, 2.4vw, 36px) clamp(18px, 2vw, 28px) clamp(26px, 3vw, 40px);
  transform: translateY(calc(var(--d) * 26px));
  transition: transform .6s var(--ease-out), border-color .5s, box-shadow .6s;
}
.wcard:hover {
  transform: translateY(calc(var(--d) * 26px - 8px));
  border-color: rgba(232, 180, 90, .55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 46px rgba(232, 180, 90, .1);
}
.wcard__num {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 18px;
  font-family: var(--f-en); font-size: 13px; color: var(--brass);
  border: 1px solid rgba(201, 164, 92, .5); border-radius: 50%;
}
.wcard h3 { font-size: clamp(17px, 1.6vw, 21px); letter-spacing: .16em; margin-bottom: 12px; color: var(--paper); }
.wcard p { font-size: 13px; line-height: 2; color: var(--fog); }
.wcard::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 90, .5), transparent);
  opacity: 0; transition: opacity .5s;
}
.wcard:hover::before { opacity: 1; }

/* ==========================================================================
   塔罗会
   ========================================================================== */
.tarot { position: relative; padding: var(--sec-gap) var(--pad-x); overflow: hidden; }
.tarot__bg { position: absolute; inset: -10% 0; z-index: 0; }
.tarot__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: saturate(.55) brightness(.8); will-change: transform; }
.tarot__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 40%, transparent, var(--ink) 92%); }
.tarot .sec-head { position: relative; z-index: 5; }

.tarot__wall {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  max-width: 1180px; margin: 0 auto;
}

/* 塔罗牌 */
.tcard { perspective: 1100px; aspect-ratio: 5 / 8; }
.tcard__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--flip, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease-out);
  will-change: transform;
}
.tcard.is-flipped .tcard__inner, .tcard.is-hover-flipped .tcard__inner { --flip: 180deg; }
.tcard__face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 9px; overflow: hidden;
  display: grid;
}
/* 牌背 */
.tcard__back {
  background:
    radial-gradient(130% 100% at 50% 0%, #241D12, #12100B 58%, #0C0A07);
  border: 1px solid rgba(201, 164, 92, .4);
  box-shadow: inset 0 0 0 4px #0C0A07, inset 0 0 0 5px rgba(201, 164, 92, .35), 0 14px 30px rgba(0, 0, 0, .55);
  place-items: center;
  transition: box-shadow .5s;
}
.tcard:hover .tcard__back { box-shadow: inset 0 0 0 4px #0C0A07, inset 0 0 0 5px rgba(232,180,90,.6), 0 14px 34px rgba(0,0,0,.6), 0 0 34px rgba(232,180,90,.18); }
.tcard__back svg { width: 62%; opacity: .9; }
.tcard__back-rune {
  position: absolute; bottom: 9%; left: 0; right: 0;
  text-align: center; font-family: var(--f-en); font-size: 10px; letter-spacing: .3em; color: rgba(201, 164, 92, .8);
}
/* 牌面 */
.tcard__front {
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 90% at 50% 10%, #262019, #131009 60%, #0B0906);
  border: 1px solid rgba(232, 180, 90, .5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .6);
  padding: 12% 9%;
  align-content: space-between;
  justify-items: start;
}
.tcard__front::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 164, 92, .3); border-radius: 6px; pointer-events: none; z-index: 3;
}
.tcard__front-cn {
  writing-mode: vertical-rl; font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: .34em;
  color: var(--paper); margin-left: auto;
}
.tcard__front-foot { display: grid; gap: 3px; width: 100%; }
.tcard__front-code { font-family: var(--f-en); font-size: 9px; letter-spacing: .26em; color: var(--ember); }
.tcard__front-name { font-size: 12px; letter-spacing: .14em; color: var(--fog); line-height: 1.7; }
.tcard__front-path { font-size: 10.5px; letter-spacing: .1em; color: rgba(158, 148, 128, .9); line-height: 1.7; }
.tcard__front--void { align-content: center; justify-items: center; text-align: center; gap: 10px; }
.tcard__front--void .tcard__front-cn { writing-mode: horizontal-tb; margin: 0; font-size: 15px; color: var(--fog-dim); }
.tcard__void-star { font-family: var(--f-en); color: rgba(201,164,92,.5); font-size: 11px; letter-spacing: .4em; }

/* 形象图牌面 */
.tcard__front--pic { padding: 10% 9%; align-content: end; gap: 3px; }
.tcard__front--pic img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.92) contrast(1.02);
}
.tcard__front--pic .tcard__front-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 8, 6, .93) 20%, rgba(9, 8, 6, .3) 52%, rgba(9, 8, 6, .1));
}
.tcard__front--pic .tcard__front-cn { z-index: 2; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.tcard__front--pic .tcard__front-foot { position: relative; z-index: 2; }

/* 意象符印牌面（暂无立绘的成员） */
.tcard__front--sigil { padding: 10% 9%; align-content: end; gap: 3px; }
.tcard__sigil {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 68%; height: auto; color: var(--brass);
  filter: drop-shadow(0 0 12px rgba(201, 164, 92, .25));
}
.tcard__front--sigil .tcard__front-cn { z-index: 2; }
.tcard__front--sigil .tcard__front-foot { position: relative; z-index: 2; }

/* ==========================================================================
   非凡途径 · 序列爬升
   ========================================================================== */
.seq { position: relative; }
.seq__bg { position: absolute; inset: 0; overflow: hidden; }
.seq__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); }
.seq__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink), rgba(11,10,8,.55) 22%, rgba(11,10,8,.55) 80%, var(--ink));
}
.seq__pin {
  position: relative; z-index: 5;
  height: 100vh; min-height: 620px;
  display: grid; align-content: center; gap: clamp(20px, 4vh, 44px);
  padding: 90px var(--pad-x) 40px calc(var(--pad-x) + clamp(40px, 6vw, 90px));
}
.seq__stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 80px); }
.seq__info { display: grid; gap: 8px; justify-items: start; }
.seq__ordinal {
  font-family: var(--f-en); font-size: clamp(60px, 8vw, 120px); line-height: 1; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 164, 92, .75);
  text-shadow: 0 0 46px rgba(232, 180, 90, .18);
}
.seq__label-cn { font-size: clamp(30px, 4vw, 54px); font-weight: 900; letter-spacing: .2em; line-height: 1.4; }
.seq__label-en { font-family: var(--f-en); font-size: clamp(11px, 1.3vw, 15px); letter-spacing: .5em; color: var(--brass); }
.seq__desc { margin-top: 12px; max-width: 480px; color: var(--fog); font-size: 14.5px; min-height: 3.4em; }

.seq__circle-wrap { position: relative; width: clamp(180px, 22vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.seq__circle { width: 100%; height: 100%; will-change: transform; }
.seq__circle circle { stroke: rgba(201, 164, 92, .55); stroke-width: 1; }
.seq__circle circle:nth-child(2) { stroke: rgba(201, 164, 92, .32); stroke-dasharray: 4 7; }
.seq__circle circle:nth-child(3) { stroke: rgba(232, 180, 90, .6); }
.seq__circle-runes path { fill: var(--brass); }
.seq__circle-spokes path { stroke: rgba(201, 164, 92, .4); stroke-width: 1; }
.seq__circle-num {
  position: absolute; font-family: var(--f-en); font-size: clamp(34px, 4vw, 56px); font-weight: 700; color: var(--ember-hi);
  text-shadow: 0 0 30px rgba(232, 180, 90, .55);
}

.seq__dots { list-style: none; display: flex; gap: 0; align-items: center; }
.seq__dots li { flex: 1; height: 2px; background: rgba(201, 164, 92, .18); position: relative; }
.seq__dots li.is-lit { background: linear-gradient(90deg, var(--ember), var(--ember-hi)); box-shadow: 0 0 12px rgba(232, 180, 90, .6); }

.seq__paths {
  position: relative; z-index: 5;
  padding: 0 var(--pad-x) var(--sec-gap);
  display: grid; gap: 26px; justify-items: center; text-align: center;
}
.seq__paths-title { font-size: clamp(16px, 1.8vw, 22px); letter-spacing: .3em; color: var(--paper); font-weight: 700; }
.seq__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.chip {
  display: grid; gap: 2px; justify-items: center;
  padding: 12px 22px; border: 1px solid rgba(201, 164, 92, .3); border-radius: 3px;
  background: rgba(20, 17, 13, .6);
  transition: border-color .4s, background .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.chip b { font-size: 15px; letter-spacing: .22em; color: var(--paper); font-weight: 700; }
.chip i { font-family: var(--f-en); font-style: normal; font-size: 8.5px; letter-spacing: .3em; color: var(--fog-dim); }
.chip:hover, .chip.is-active {
  border-color: var(--ember); background: rgba(35, 27, 16, .75);
  box-shadow: 0 0 26px rgba(232, 180, 90, .14);
  transform: translateY(-3px);
}
.chip.is-active b { color: var(--ember-hi); }
.seq__flavor { min-height: 2em; font-size: 14px; letter-spacing: .2em; color: var(--ember); }

/* ==========================================================================
   画廊（横向滚动）
   ========================================================================== */
.gallery { position: relative; overflow: hidden; }
.gallery__pin {
  position: relative; height: 100vh; min-height: 560px;
  display: grid; align-content: center; gap: clamp(24px, 5vh, 50px);
  padding: 80px 0 30px;
  overflow: hidden;
}
.gallery__track { display: flex; gap: clamp(18px, 2.6vw, 40px); padding: 0 var(--pad-x); will-change: transform; }
.gpanel {
  position: relative; flex: 0 0 auto;
  width: clamp(300px, 42vw, 640px);
  aspect-ratio: 3 / 4;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 164, 92, .25);
}
.gpanel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1s var(--ease-out); }
.gpanel:hover img { transform: scale(1.13); }
.gpanel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 7, 5, .82), transparent 42%);
}
.gpanel figcaption {
  position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 7%;
  display: grid; gap: 4px;
}
.gpanel figcaption b { font-size: clamp(18px, 2vw, 26px); letter-spacing: .26em; font-weight: 700; }
.gpanel figcaption i { font-family: var(--f-en); font-style: normal; font-size: 10px; letter-spacing: .4em; color: var(--brass); }
.gpanel--cap-top figcaption { top: 7%; bottom: auto; }
/* 代码绘制的红月面板 */
.gpanel--art { background: linear-gradient(to bottom, #0D0B14 0%, #1A0F14 55%, #241016 100%); }
.gpanel__moon-art { position: absolute; inset: 0; overflow: hidden; }
.gpanel__moon {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, #E8A08A, #A03A38 52%, #5C1420 80%);
  box-shadow: 0 0 60px 18px rgba(122, 36, 48, .55), 0 0 160px 60px rgba(122, 36, 48, .25);
  animation: moonBreathe 6s ease-in-out infinite;
}
@keyframes moonBreathe { 0%, 100% { box-shadow: 0 0 60px 18px rgba(122,36,48,.55), 0 0 160px 60px rgba(122,36,48,.25); } 50% { box-shadow: 0 0 80px 26px rgba(160,44,52,.65), 0 0 200px 80px rgba(122,36,48,.32); } }
.gpanel__cloud {
  position: absolute; height: 12%; border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(155, 163, 173, .22), transparent);
  filter: blur(6px);
}
.gpanel__cloud.c1 { top: 34%; left: -20%; width: 80%; animation: cloudDrift 14s linear infinite; }
.gpanel__cloud.c2 { top: 52%; left: 40%; width: 90%; animation: cloudDrift 19s linear infinite reverse; }
@keyframes cloudDrift { from { transform: translateX(-14%); } to { transform: translateX(24%); } }

/* ==========================================================================
   语录
   ========================================================================== */
.quotes {
  position: relative;
  padding: calc(var(--sec-gap) * 1.2) var(--pad-x);
  display: grid; gap: calc(var(--sec-gap) * 1.1);
  background:
    radial-gradient(60% 34% at 18% 12%, rgba(232, 180, 90, .06), transparent 70%),
    radial-gradient(50% 30% at 84% 46%, rgba(122, 36, 48, .08), transparent 70%),
    radial-gradient(60% 34% at 30% 82%, rgba(232, 180, 90, .05), transparent 70%);
}
.quote { max-width: 980px; margin: 0 auto; width: 100%; display: grid; gap: 20px; }
.quote:nth-child(2) { justify-items: end; text-align: right; }
.quote:nth-child(2) cite { justify-self: end; }
.quote p {
  font-size: clamp(26px, 4.6vw, 58px); font-weight: 900; letter-spacing: .14em; line-height: 1.6;
  text-shadow: 0 0 44px rgba(232, 180, 90, .12);
}
.quote cite { font-style: normal; font-size: 12.5px; letter-spacing: .34em; color: var(--brass); display: inline-flex; align-items: center; gap: 12px; }
.quote cite::before { content: ""; width: 34px; height: 1px; background: rgba(201, 164, 92, .6); }

/* ==========================================================================
   角色档案
   ========================================================================== */
.chars { padding: var(--sec-gap) var(--pad-x); }
.chars__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(430px, 62vh, 580px);
  gap: clamp(16px, 2vw, 28px);
  max-width: 1280px; margin: 0 auto;
}
.ccard {
  position: relative; border-radius: 6px; overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(201, 164, 92, .24);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
  transition: border-color .5s, box-shadow .6s, transform .6s var(--ease-out);
}
.ccard:hover { border-color: rgba(232, 180, 90, .6); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 50px rgba(232, 180, 90, .1); transform: translateY(-6px); }
.ccard--wide { grid-column: span 4; }
.ccard:nth-child(3), .ccard:nth-child(4) { grid-column: span 3; }
.ccard__media { position: absolute; inset: 0; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.1s var(--ease-out), filter .8s; }
.ccard:hover .ccard__media img { transform: scale(1.07); }
.ccard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 8, 6, .94) 16%, rgba(9, 8, 6, .38) 46%, transparent 68%);
}
.ccard__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(18px, 2vw, 30px);
  display: grid; gap: 8px;
}
.ccard__code { font-family: var(--f-en); font-size: 10px; letter-spacing: .4em; color: var(--ember); }
.ccard__body h3 { font-size: clamp(20px, 2.2vw, 30px); font-weight: 900; letter-spacing: .16em; }
.ccard__en { font-family: var(--f-en); font-size: 10px; letter-spacing: .34em; color: var(--fog-dim); margin-bottom: 6px; }
.ccard__body dl { display: grid; gap: 5px; margin: 4px 0 2px; }
.ccard__body dl > div { display: flex; gap: 12px; font-size: 12.5px; }
.ccard__body dt { color: var(--brass); letter-spacing: .2em; flex: 0 0 3.2em; }
.ccard__body dd { color: var(--fog); }
.ccard__quote {
  margin-top: 8px; font-size: 12.5px; letter-spacing: .12em; color: var(--ember-hi); opacity: .92;
  border-top: 1px solid rgba(201, 164, 92, .22); padding-top: 10px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .7s var(--ease-out), opacity .6s, margin-top .7s;
}
.ccard:hover .ccard__quote { max-height: 80px; opacity: .92; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding: calc(var(--sec-gap) * .8) var(--pad-x) 60px;
  display: grid; justify-items: center; gap: 22px; text-align: center;
  background: linear-gradient(to bottom, var(--ink), #080705);
  border-top: 1px solid rgba(201, 164, 92, .16);
}
.footer__circle { width: 76px; color: var(--brass); opacity: .8; animation: footerSpin 26s linear infinite; }
.footer__circle circle { stroke: currentColor; stroke-width: 1; }
.footer__circle circle:nth-child(2) { stroke-dasharray: 3 6; opacity: .7; }
.footer__circle path { stroke: currentColor; stroke-width: 1; opacity: .6; }
@keyframes footerSpin { to { transform: rotate(360deg); } }
.footer__line { font-size: clamp(20px, 3vw, 34px); font-weight: 900; letter-spacing: .5em; text-indent: .5em; }
.footer__en { font-family: var(--f-en); font-size: 10px; letter-spacing: .5em; color: var(--fog-dim); }
.footer__nav { display: flex; gap: 34px; margin-top: 8px; }
.footer__nav a { font-size: 13px; letter-spacing: .3em; color: var(--fog); transition: color .3s; }
.footer__nav a:hover { color: var(--ember-hi); }
.footer__legal { max-width: 760px; margin-top: 26px; display: grid; gap: 6px; }
.footer__legal p { font-size: 11.5px; line-height: 2; color: rgba(155, 163, 173, .55); letter-spacing: .06em; }
.footer__legal b { color: rgba(232, 180, 90, .75); font-weight: 700; }
.footer__legal span { color: rgba(201, 164, 92, .8); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .rail { display: none; }
  .world__cards { grid-template-columns: repeat(2, 1fr); }
  .chars__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(380px, 54vh, 520px); }
  .ccard--wide, .ccard:nth-child(3), .ccard:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__brand-en { display: none; }
  .hero__content { padding-bottom: 96px; }
  .hero__scroll { display: none; }
  .prologue { grid-template-columns: 1fr; gap: 34px; }
  .prologue__media { transform: none; }
  .seq__stage { grid-template-columns: 1fr; }
  .seq__circle-wrap { order: -1; justify-self: center; width: clamp(150px, 40vw, 210px); }
  .seq__pin { padding-left: var(--pad-x); }
  .tarot__wall { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .tcard__front-cn { font-size: 15px; }
}
@media (max-width: 620px) {
  .world__cards { grid-template-columns: 1fr; }
  .wcard { transform: none; }
  .wcard:hover { transform: translateY(-6px); }
  .chars__grid { grid-template-columns: 1fr; grid-auto-rows: clamp(430px, 68vh, 560px); }
  .ccard--wide, .ccard:nth-child(3), .ccard:nth-child(4) { grid-column: span 1; }
  .gpanel { width: 78vw; }
  .quote p { letter-spacing: .08em; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .grain { animation: none; }
  .fog { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* JS 降级模式（reduced motion 时钉住段与横向画廊退化为常规布局） */
.no-anim .seq__pin { height: auto; min-height: 0; padding: var(--sec-gap) var(--pad-x); }
.no-anim .gallery__pin { height: auto; min-height: 0; padding: var(--sec-gap) 0; }
.no-anim .gallery__track { overflow-x: auto; padding-bottom: 20px; }
