/* ============================================================
   一念菩提 · Cyber Joss —— 主样式
   审美基调：墨骨金魂 · 留白 · 竖排书法 · 细金发丝线
   ============================================================ */

/* 毛笔书法显示字体 —— 本地子集，仅覆盖站内展示大字 */
@font-face {
  font-family: "Moksha Brush";
  src: url("../assets/fonts/mashanzheng-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink-0);
  color: var(--ivory);
  font-family: var(--font-song);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201, 164, 92, 0.35); color: var(--ivory); }

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 纸纹噪点 —— 全站叠加，避免死黑 */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ═══════════════ 入寺幕帘 ═══════════════ */

.veil {
  position: fixed; inset: 0;
  z-index: 150;
  background: var(--ink-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1.4s var(--ease-solemn), visibility 1.4s;
}
.veil.is-lifted { opacity: 0; visibility: hidden; }

.veil-mark { text-align: center; }
.veil-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px;
  font-family: var(--font-kai);
  font-size: 44px;
  color: var(--cinnabar-bright);
  border: 1.5px solid var(--cinnabar);
  border-radius: 6px;
  animation: sealStamp 1.1s var(--ease-out) both;
}
.veil-word {
  display: block;
  margin-top: 26px;
  font-family: var(--font-kai);
  font-size: 15px;
  letter-spacing: 0.5em;
  color: var(--ivory-dim);
  animation: fadeInSoft 1.6s 0.5s var(--ease-out) both;
}

/* Create by AI Begin 2026-07-13 12:41:43 */
.veil-load {
  width: min(280px, 68vw);
  margin: 36px auto 0;
  opacity: 0;
  animation: fadeInSoft 1s 0.35s var(--ease-out) both;
}
.veil-load-track {
  height: 1px;
  background: rgba(201, 164, 92, 0.18);
  overflow: hidden;
}
.veil-load-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(238, 217, 164, 0.35);
  transition: width 0.25s var(--ease-out);
}
.veil-load-text {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ivory-faint);
}
body.is-booting {
  overflow: hidden;
  height: 100%;
}
/* Create by AI End */

/* ═══════════════ 顶部导航 ═══════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
  padding: 0 44px;
  background: transparent;
}
.nav.is-solid {
  background: transparent;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-name {
  font-size: 24px;
  letter-spacing: 0.28em;
  margin-left: 0.28em;
}
.nav-brand-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  font-family: var(--font-kai);
  font-size: 14px;
  color: #f0e6d2;
  background: var(--cinnabar);
  border-radius: 3px;
}

/* 中央胶囊导航 —— 参考图：深色横条浮于画面之上 */
.nav-links {
  display: flex;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.62);
  border: 1px solid rgba(201, 164, 92, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.nav-link {
  position: relative;
  font-family: var(--font-kai);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: rgba(236, 226, 204, 0.72);
  padding: 6px 18px 6px calc(18px + 0.2em);
  border-radius: 999px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link::after {
  content: "";
  position: absolute; left: 50%; bottom: 3px;
  width: 14px; height: 1.5px;
  background: var(--gold-bright);
  transform: translateX(-50%) scaleX(0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--gold-bright); }
.nav-link.is-active { color: var(--gold-bright); background: rgba(201, 164, 92, 0.13); }
.nav-link.is-active::after { transform: translateX(-50%) scaleX(1); }

.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.62);
  border: 1px solid rgba(201, 164, 92, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-user-rank {
  font-family: var(--font-kai);
  font-size: 12px;
  color: var(--gold-bright);
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  padding: 1px 9px;
  letter-spacing: 0.2em;
}
.nav-user-name { font-family: var(--font-kai); letter-spacing: 0.12em; color: rgba(236, 226, 204, 0.85); }

/* ═══════════════ 右侧浮列 ═══════════════ */

.rail {
  position: fixed; right: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-rail);
  display: flex; flex-direction: column; gap: 14px;
}
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 62px; padding: 10px 4px;
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 4px;
  background: rgba(6, 9, 16, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ivory-faint);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.rail-btn:hover { color: var(--gold-bright); border-color: var(--gold-hairline); background: rgba(16, 21, 35, 0.7); }
.rail-btn svg { width: 20px; height: 20px; fill: currentColor; }
.rail-btn span { font-family: var(--font-kai); font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; }

/* 视频进度垂线 */
.thread {
  position: fixed; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 38vh;
  background: rgba(236, 226, 204, 0.12);
  z-index: var(--z-rail);
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.thread.is-visible { opacity: 1; }
.thread-fill {
  position: absolute; top: 0; left: -0.5px;
  width: 2px; height: 0%;
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold));
  box-shadow: 0 0 8px var(--gold-glow);
  transition: height 0.08s linear;
}

/* ═══════════════ 一·二屏 · 大殿视频滚动轨道 ═══════════════ */

.hall-track {
  position: relative;
  z-index: 2;
  /* Create by AI Begin 2026-07-13 10:43:03 */
  /* 相对原 3522vh 缩短 1 倍（减半）：~943vh 拖帧 + ~124vh 末帧停留 + ~695vh 切换淡出 + 100vh 视口 */
  height: 1761vh;
  /* Create by AI End */
}

.hall-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--ink-0);
}

/* 视频 + 高清底图 · 同容器同裁剪，保证末帧像素重合 */
.hall-media {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: var(--z-video);
  transform-origin: center center;
  will-change: transform;
}

.hall-hd,
.hall-media .hero-video,
.hall-media .hero-frames {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hall-hd {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Create by AI Begin 2026-07-13 13:06:40 */
.hall-media .hero-frames {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  display: block;
}
.hall-media .hero-frames.is-ready {
  opacity: 1;
}
.hall-media.is-frame-mode .hero-video {
  opacity: 0 !important;
  visibility: hidden !important;
}
/* Create by AI End */

.hall-media .hero-video {
  z-index: 2;
}

/* 香炉烟雾 · 叠于视频之上、UI 之下 */
.hero-smoke {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hall-hero-ui {
  position: absolute; inset: 0;
  z-index: 4;
  transition: opacity 0.4s var(--ease-out);
}

/* 暂时隐藏的章节：不占布局、不产生滚动高度 */
.is-hidden-section { display: none !important; }

.hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  transition: opacity 1.2s var(--ease-solemn);
}
.hero-poster.is-hidden { opacity: 0; }

/* 画面收束 —— 参考图基调明亮，只留极轻的四角与底部过渡 */
.hero-shade {
  position: absolute; inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 42%, transparent 58%, rgba(9, 13, 22, 0.22) 100%),
    linear-gradient(to bottom, rgba(9, 13, 22, 0.14) 0%, transparent 16%, transparent 74%, rgba(9, 13, 22, 0.5) 100%);
  will-change: opacity;
}

/* Create by AI Begin 2026-07-13 10:33:18 */
/* 景深场 · 全程连续视差 */
.depth-field {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.depth-layer {
  position: absolute;
  will-change: transform, opacity;
  opacity: 0.4;
}

.depth-mist {
  inset: -18% -10%;
  background:
    radial-gradient(55% 40% at 30% 70%, rgba(236, 226, 200, 0.1), transparent 70%),
    radial-gradient(50% 45% at 72% 35%, rgba(201, 164, 92, 0.08), transparent 68%);
  filter: blur(18px);
}

.depth-mist--near {
  inset: -12% -8%;
  background:
    radial-gradient(40% 35% at 48% 78%, rgba(255, 248, 230, 0.12), transparent 72%),
    radial-gradient(35% 30% at 18% 40%, rgba(180, 150, 100, 0.08), transparent 70%);
  filter: blur(10px);
}

.depth-dust {
  inset: -8%;
  opacity: 0.35;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(239, 230, 205, 0.55), transparent),
    radial-gradient(1px 1px at 28% 58%, rgba(239, 230, 205, 0.4), transparent),
    radial-gradient(1.4px 1.4px at 46% 18%, rgba(201, 164, 92, 0.5), transparent),
    radial-gradient(1px 1px at 63% 72%, rgba(239, 230, 205, 0.35), transparent),
    radial-gradient(1.2px 1.2px at 78% 34%, rgba(201, 164, 92, 0.45), transparent),
    radial-gradient(1px 1px at 88% 66%, rgba(239, 230, 205, 0.3), transparent);
  background-size: 100% 100%;
}

.depth-vignet {
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 46%, rgba(4, 6, 11, 0.35) 100%);
}

.depth-ribbon {
  top: 8%;
  bottom: 8%;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-kai);
  font-size: clamp(13px, 1.35vw, 17px);
  letter-spacing: 0.55em;
  color: rgba(239, 230, 205, 0.28);
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-shadow: 0 0 18px rgba(4, 6, 11, 0.35);
}

.depth-ribbon p { margin: 0; }

.depth-ribbon--left { left: clamp(12px, 2.4vw, 36px); }
.depth-ribbon--right {
  right: clamp(12px, 2.4vw, 36px);
  color: rgba(201, 164, 92, 0.26);
}

@media (max-width: 900px) {
  .depth-ribbon { display: none; }
  .depth-dust { opacity: 0.22; }
}
/* Create by AI End */

/* 滚动字幕 · 竖排 1–3 列 · 参考图风格（毛笔 + 宋体） */
.hero-credits {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(24px, 3.6vw, 48px);
  padding: 0 clamp(40px, 7vw, 108px) 0 clamp(24px, 4vw, 64px);
  overflow: hidden;
}

.credits-col {
  position: relative;
  writing-mode: vertical-rl;
  text-orientation: upright;
  will-change: transform, opacity;
  opacity: 0;
}

.credits-col--brush {
  align-self: center;
}

.credits-brush {
  font-family: var(--font-brush);
  font-size: clamp(52px, 6vw, 96px);
  line-height: 1;
  letter-spacing: 0.22em;
  filter: drop-shadow(0 1px 2px rgba(255, 252, 244, 0.35)) drop-shadow(0 5px 18px rgba(20, 14, 6, 0.22));
}

.credits-col--song {
  font-family: var(--font-song);
  font-size: clamp(13px, 1.35vw, 17px);
  letter-spacing: 0.72em;
  color: rgba(36, 29, 19, 0.9);
  text-shadow: 0 1px 2px rgba(255, 252, 244, 0.4);
  padding-right: 16px;
  border-right: 1px solid rgba(36, 29, 19, 0.24);
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.credits-col--song p {
  margin: 0;
}

.credits-col--dim {
  font-size: clamp(12px, 1.15vw, 15px);
  letter-spacing: 0.58em;
  color: rgba(36, 29, 19, 0.62);
  border-right-color: rgba(36, 29, 19, 0.14);
}

.credits-col::before {
  content: "";
  position: absolute;
  inset: -12% -28%;
  background: radial-gradient(52% 48% at 50% 50%, rgba(244, 240, 228, 0.42), rgba(244, 240, 228, 0.1) 58%, transparent 78%);
  filter: blur(5px);
  pointer-events: none;
  z-index: -1;
}

/* 墨笔鎏金 —— 笔触字体 + 金墨渐染 + 纸纹透底 */
.ink-brush {
  font-family: var(--font-brush);
  font-weight: 400;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.16' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.07 0 0 0 0 0.02 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(168deg, #f4e5b8 0%, #d9b877 34%, #b08c4b 62%, #6f5730 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 墨骨变体 —— 参考图中的浓墨笔字：焦墨为骨、笔锋处透金 */
.ink-brush--dark {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.14' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.3 0 0 0 0 0.1 0 0 0 0.34 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(172deg, #3b332a 0%, #16120d 34%, #241c12 58%, #100d09 76%, #52401f 100%);
}

/* 黑金变体 —— 玄墨为体、鎏金勾边（导航品牌字） */
.ink-brush--black-gold {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 0.38 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(
      158deg,
      #080706 0%,
      #0e0c0a 22%,
      #151210 42%,
      #1c1814 58%,
      #2a2318 72%,
      #3d3220 84%,
      #5a4828 94%,
      #7a6238 100%
    );
  filter:
    drop-shadow(0 0 0.6px rgba(203, 185, 141, 0.55))
    drop-shadow(0 1px 3px rgba(203, 185, 141, 0.22))
    drop-shadow(0 2px 10px rgba(6, 5, 4, 0.35));
}

.nav-brand-name.ink-brush--black-gold {
  font-size: 24px;
  letter-spacing: 0.28em;
  margin-left: 0.28em;
}

/* 底部仪式入口 —— 两侧扁匾，中央留空给香炉 */
.hero-rites {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(20px, 3.6vh, 40px);
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(80px, 28vw, 420px);
  padding: 0 clamp(20px, 5.5vw, 88px);
  pointer-events: none;
}

.rite-tab {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  animation: riseIn 1.4s var(--ease-out) both;
}

.hero-rites > .rite-tab:nth-child(1) { animation-delay: 1s; }
.hero-rites > .rite-tab:nth-child(2) { animation-delay: 1.15s; }

.rite-tab::before {
  content: "";
  flex-shrink: 0;
  width: 2px;
  align-self: stretch;
  min-height: 34px;
  background: linear-gradient(
    to bottom,
    rgba(203, 185, 141, 0.08),
    rgba(203, 185, 141, 0.72),
    rgba(203, 185, 141, 0.08)
  );
  transition: background var(--dur-mid);
}

.rite-tab-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px 9px 0;
  border-top: 1px solid rgba(203, 185, 141, 0.28);
  border-bottom: 1px solid rgba(203, 185, 141, 0.16);
  background: linear-gradient(90deg, rgba(8, 10, 16, 0.62), rgba(8, 10, 16, 0.38));
  transition: border-color var(--dur-mid), background var(--dur-mid), transform var(--dur-mid);
}

.rite-tab-name {
  font-family: var(--font-kai);
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: 0.28em;
  margin-left: 0.28em;
  color: rgba(239, 230, 205, 0.92);
  text-shadow: 0 1px 8px rgba(6, 8, 12, 0.75);
  transition: color var(--dur-mid);
}

.rite-tab-hint {
  font-family: var(--font-song);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  margin-left: 0.22em;
  color: rgba(203, 185, 141, 0.58);
  transition: color var(--dur-mid);
}

.rite-tab--accent .rite-tab-name {
  color: var(--gold-bright);
}

.rite-tab--accent .rite-tab-body {
  border-top-color: rgba(203, 185, 141, 0.42);
  background: linear-gradient(90deg, rgba(12, 10, 6, 0.68), rgba(8, 10, 16, 0.42));
}

.rite-tab:hover .rite-tab-body,
.rite-tab:focus-visible .rite-tab-body {
  transform: translateY(-2px);
  border-top-color: rgba(239, 230, 205, 0.55);
  border-bottom-color: rgba(203, 185, 141, 0.32);
  background: linear-gradient(90deg, rgba(12, 14, 22, 0.78), rgba(8, 10, 16, 0.52));
}

.rite-tab:hover::before,
.rite-tab:focus-visible::before {
  background: linear-gradient(
    to bottom,
    rgba(239, 230, 205, 0.12),
    rgba(239, 230, 205, 0.92),
    rgba(239, 230, 205, 0.12)
  );
}

.rite-tab:hover .rite-tab-name,
.rite-tab:focus-visible .rite-tab-name { color: var(--gold-bright); }

.rite-tab:hover .rite-tab-hint,
.rite-tab:focus-visible .rite-tab-hint { color: rgba(203, 185, 141, 0.82); }

.rite-tab:focus-visible {
  outline: 1px solid rgba(203, 185, 141, 0.45);
  outline-offset: 4px;
}

/* Create by AI Begin 2026-07-13 10:10:03 */
/* 落幅双匾 · 高清显现后浮现 */
.landing-gates {
  position: absolute;
  left: 50%;
  bottom: clamp(7vh, 12vh, 140px);
  z-index: 8;
  display: flex;
  gap: clamp(18px, 3.2vw, 40px);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out);
}

.gate-plaque {
  min-width: clamp(148px, 18vw, 210px);
  padding: 16px 22px 15px;
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.72), rgba(8, 9, 14, 0.78)),
    rgba(6, 8, 14, 0.55);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.12) inset,
    0 10px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  text-align: center;
  transition: transform 220ms var(--ease-out), border-color 220ms, box-shadow 220ms, background 220ms;
}

.gate-plaque:hover,
.gate-plaque:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(232, 201, 122, 0.85);
  box-shadow:
    0 0 0 1px rgba(232, 201, 122, 0.2) inset,
    0 14px 40px rgba(0, 0, 0, 0.4),
    0 0 28px -10px rgba(201, 164, 92, 0.45);
}

.gate-plaque-name {
  display: block;
  font-family: var(--font-kai);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.55em;
  margin-right: -0.55em;
  color: var(--gold-bright);
}

.gate-plaque-hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(236, 226, 200, 0.62);
}

.gate-plaque--accent .gate-plaque-name {
  color: #f0d48a;
}
/* Create by AI End */

/* 滚动引导 */
.hero-scrollcue {
  position: absolute; left: 50%; bottom: 2.6vh;
  transform: translateX(-50%);
  z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: fadeIn 1.5s 2s both;
  transition: opacity var(--dur-mid);
}
.hero-scrollcue.is-hidden { opacity: 0; }
.scrollcue-line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, transparent, rgba(28, 22, 14, 0.75));
  animation: threadDown 2.6s var(--ease-solemn) infinite;
}
.scrollcue-word {
  font-family: var(--font-kai);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(28, 22, 14, 0.6);
  text-shadow: 0 1px 1px rgba(255, 252, 244, 0.4);
}

/* ═══════════════ 章节公共 ═══════════════ */

.section-head {
  position: relative;
  text-align: center;
  padding: 110px 24px 64px;
}
.blessing .section-head { padding: 104px 24px 30px; }
.section-mark {
  position: absolute; left: 50%; top: 92px;
  transform: translateX(-50%);
  font-family: var(--font-brush);
  font-size: 150px;
  line-height: 1;
  color: rgba(201, 164, 92, 0.06);
  pointer-events: none;
  user-select: none;
}
.section-title {
  font-family: var(--font-kai);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  color: var(--gold-bright);
}
.section-sub {
  margin-top: 14px;
  font-size: 13.5px;
  letter-spacing: 0.4em;
  margin-left: 0.4em;
  color: var(--ivory-faint);
}
.section-sub::before, .section-sub::after {
  content: "·";
  color: var(--gold-deep);
  margin: 0 14px;
}

/* ═══════════════ 第二页 · 祈愿求签（叠于视频末帧） ═══════════════ */

.blessing {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 46px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.blessing > .section-head, .blessing > .blessing-cue { position: relative; z-index: 2; }

/* 二图之上 —— 参考图的深色牌匾：金字不与底图抢明暗 */
.blessing .section-head .plaque {
  display: inline-block;
  padding: 18px 54px 20px;
  background: linear-gradient(to bottom, rgba(10, 13, 20, 0.78), rgba(10, 13, 20, 0.62));
  border: 1px solid rgba(201, 164, 92, 0.4);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(10, 13, 20, 0.6),
    inset 0 0 24px rgba(201, 164, 92, 0.08),
    0 12px 34px rgba(10, 8, 4, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}
/* 匾额两端的卷轴短线 */
.blessing .section-head .plaque::before,
.blessing .section-head .plaque::after {
  content: "";
  position: absolute; top: 50%;
  width: 26px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 164, 92, 0.65));
}
.blessing .section-head .plaque::before { right: 100%; margin-right: 10px; }
.blessing .section-head .plaque::after { left: 100%; margin-left: 10px; transform: scaleX(-1); }
.blessing .section-sub { color: rgba(236, 226, 204, 0.86); text-shadow: 0 1px 8px rgba(10, 8, 4, 0.8); }
.blessing .section-mark { display: none; }
.blessing::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(720px, 76vw); height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-hairline), transparent);
}

/* 祈福总览页 · 底部下行引导 */
.blessing-cue {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
}
.blessing-cue .scrollcue-line {
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, transparent, rgba(236, 226, 204, 0.7));
  animation: threadDown 2.6s var(--ease-solemn) infinite;
}
.blessing-cue-word {
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: rgba(236, 226, 204, 0.78);
  text-shadow: 0 1px 8px rgba(10, 8, 4, 0.8);
}

/* ═══════════════ 五签 · 每签一页（全屏视差幕帘） ═══════════════ */

.sign-pages {
  position: relative;
  z-index: 2;
}

.sign-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ink-0);
}

/* 底图超出视口上下各 13vh，由 JS 依滚动位移 —— 视差层 */
.sign-bg {
  position: absolute;
  left: 0; right: 0;
  top: -13vh; bottom: -13vh;
  will-change: transform;
}
.sign-bg img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
.sign-bg-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(5, 7, 12, 0.72) 0%, transparent 36%),
    linear-gradient(to right, rgba(5, 7, 12, 0.5) 0%, transparent 48%),
    linear-gradient(to bottom, rgba(5, 7, 12, 0.36) 0%, transparent 16%);
}
.sign-page--alt .sign-bg-veil {
  background:
    linear-gradient(to top, rgba(5, 7, 12, 0.72) 0%, transparent 36%),
    linear-gradient(to left, rgba(5, 7, 12, 0.5) 0%, transparent 48%),
    linear-gradient(to bottom, rgba(5, 7, 12, 0.36) 0%, transparent 16%);
}

/* 巨字编号 · 底图上一层淡淡的印 */
.sign-no {
  position: absolute;
  top: 12vh;
  right: clamp(40px, 7vw, 140px);
  z-index: 1;
  font-family: var(--font-brush);
  font-size: clamp(130px, 17vw, 250px);
  line-height: 1;
  color: rgba(238, 227, 200, 0.1);
  text-shadow: 0 2px 30px rgba(5, 7, 12, 0.4);
  pointer-events: none;
  user-select: none;
}
.sign-page--alt .sign-no { right: auto; left: clamp(40px, 7vw, 140px); }

/* 文案 · 左下（--alt 右下），入场自下而上浮现 */
.sign-content {
  position: absolute;
  left: clamp(44px, 8vw, 150px);
  bottom: clamp(60px, 13vh, 150px);
  z-index: 2;
  max-width: 480px;
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.sign-page.is-inview .sign-content { opacity: 1; transform: translateY(0); }
.sign-page--alt .sign-content {
  left: auto;
  right: clamp(44px, 8vw, 150px);
  text-align: right;
}

.sign-title {
  font-family: var(--font-brush);
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 2px 16px rgba(5, 7, 12, 0.7)) drop-shadow(0 0 2px rgba(5, 7, 12, 0.35));
}
.sign-sub {
  margin-top: 16px;
  font-family: var(--font-kai);
  font-size: clamp(14px, 1.15vw, 17px);
  letter-spacing: 0.32em;
  color: rgba(242, 237, 225, 0.92);
  text-shadow: 0 1px 10px rgba(5, 7, 12, 0.8);
}
.sign-deity {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: rgba(242, 237, 225, 0.6);
  text-shadow: 0 1px 8px rgba(5, 7, 12, 0.8);
}
.sign-btn {
  margin-top: 26px;
  font-family: var(--font-kai);
  font-size: 14.5px;
  letter-spacing: 0.34em;
  padding: 11px 34px 11px calc(34px + 0.34em);
  color: var(--gold-bright);
  border: 1px solid var(--gold-hairline);
  border-radius: 2px;
  background: rgba(4, 6, 11, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.sign-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-0);
  box-shadow: 0 0 34px -8px var(--sign-tint, var(--gold));
}

/* 页缘竖排小字 · 与文案相对的一侧 */
.sign-vert {
  position: absolute;
  top: 50%;
  right: clamp(28px, 4vw, 72px);
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.44em;
  color: rgba(236, 226, 204, 0.62);
  border-right: 1px solid var(--gold-hairline-dim);
  padding-right: 12px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.sign-page--alt .sign-vert {
  right: auto;
  left: clamp(28px, 4vw, 72px);
  border-right: none;
  border-left: 1px solid var(--gold-hairline-dim);
  padding-right: 0;
  padding-left: 12px;
}

/* ═══════════════ 第三页 · 功德 ═══════════════ */

.merit {
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, #04060b 0%, var(--ink-1) 30%, #05070d);
  padding-bottom: 0;
}

.merit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 44px;
}

.merit-panel {
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 6px;
  background: rgba(16, 21, 35, 0.5);
  backdrop-filter: blur(6px);
  padding: 34px 36px;
}
.panel-title {
  font-family: var(--font-kai);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--gold);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gold-hairline-dim);
}

/* 修行三线 */
.faith-line {
  display: grid;
  grid-template-columns: 64px 52px 1fr 48px;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
}
.faith-name { font-family: var(--font-kai); font-size: 15px; letter-spacing: 0.14em; }
.faith-rank {
  font-family: var(--font-kai);
  font-size: 11.5px;
  text-align: center;
  color: var(--gold);
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 3px;
  padding: 1px 0;
}
.faith-bar {
  position: relative;
  height: 3px;
  background: rgba(236, 226, 204, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.faith-bar i {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(to right, var(--gold-deep), var(--gold-bright));
  border-radius: 2px;
  transition: width 1.2s var(--ease-out);
}
.faith-xp { font-size: 12.5px; text-align: right; color: var(--ivory-faint); font-variant-numeric: tabular-nums; }

.faith-stats {
  display: flex;
  margin-top: 24px;
  border-top: 1px solid var(--gold-hairline-dim);
  padding-top: 22px;
}
.faith-stat { flex: 1; text-align: center; }
.faith-stat + .faith-stat { border-left: 1px solid var(--gold-hairline-dim); }
.faith-stat b {
  display: block;
  font-family: var(--font-kai);
  font-size: 30px;
  font-weight: 400;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.faith-stat span { font-size: 12px; letter-spacing: 0.28em; color: var(--ivory-faint); }

/* 功德榜 */
.board { display: flex; flex-direction: column; }
.board-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10.5px 6px;
  border-bottom: 1px dashed rgba(201, 164, 92, 0.12);
  font-size: 14.5px;
}
.board-row:last-child { border-bottom: none; }
.board-row .rankno {
  font-family: var(--font-kai);
  color: var(--ivory-faint);
  text-align: center;
}
.board-row:nth-child(1) .rankno,
.board-row:nth-child(2) .rankno,
.board-row:nth-child(3) .rankno { color: var(--gold); }
.board-row .bname { font-family: var(--font-kai); letter-spacing: 0.1em; color: var(--ivory-dim); }
.board-row .bval { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.board-row .bval::after { content: " 香火"; font-size: 11px; color: var(--ivory-faint); }
.board-row.is-me .bname { color: var(--cinnabar-bright); font-weight: 700; }
.board-row.is-me { background: rgba(166, 58, 43, 0.07); border-radius: 3px; }

/* 页脚 */
.foot {
  margin-top: 120px;
  text-align: center;
  padding: 70px 24px 46px;
  border-top: 1px solid var(--gold-hairline-dim);
}
.foot-mantra {
  font-family: var(--font-kai);
  font-size: 20px;
  letter-spacing: 0.7em;
  margin-left: 0.7em;
  color: rgba(201, 164, 92, 0.5);
}
.foot-note { margin-top: 18px; font-size: 12px; letter-spacing: 0.1em; color: rgba(236, 226, 204, 0.25); }

/* ═══════════════ 弹层 ═══════════════ */

.modal-root:empty, .drawer-root:empty { display: none; }

.modal-mask {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 3, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.4s both;
  padding: 24px;
}
.modal-mask.is-closing { animation: fadeIn 0.35s reverse both; }

.modal {
  position: relative;
  width: min(680px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--gold-hairline);
  border-radius: 8px;
  padding: 46px 48px 42px;
  animation: modalIn 0.55s var(--ease-out) both;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.modal--wide { width: min(880px, 94vw); }

/* 四角金饰 */
.modal::before, .modal::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--gold-hairline);
  border-style: solid;
  pointer-events: none;
}
.modal::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.modal::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.modal-close {
  position: absolute; top: 16px; right: 18px;
  font-size: 22px;
  line-height: 1;
  color: var(--ivory-faint);
  transition: color var(--dur-fast), transform var(--dur-fast);
  z-index: 2;
}
.modal-close:hover { color: var(--gold-bright); transform: rotate(90deg); }

.modal-title {
  font-family: var(--font-kai);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--gold-bright);
}
.modal-sub {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--ivory-faint);
}

/* —— 选香 —— */
.incense-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.incense-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 10px 20px;
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 5px;
  background: rgba(4, 6, 11, 0.4);
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.incense-opt:hover { transform: translateY(-4px); border-color: var(--gold-hairline); }
.incense-opt.is-picked {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.08);
  box-shadow: 0 0 0 1px var(--gold-hairline), 0 0 28px -8px var(--gold-glow);
}
.incense-stick {
  width: 3px; height: 58px;
  border-radius: 2px;
  background: var(--stick, var(--gold));
}
.incense-opt .iname { font-family: var(--font-kai); font-size: 17px; letter-spacing: 0.2em; }
.incense-opt .imerit { font-size: 11.5px; color: var(--gold); }
.incense-opt .idesc { font-size: 11px; color: var(--ivory-faint); letter-spacing: 0.06em; }

/* Create by AI Begin 2026-07-13 10:10:03 */
.incense-grid--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.incense-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 10px 14px;
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 4px;
  background: rgba(4, 6, 11, 0.55);
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}

.incense-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-hairline);
}

.incense-card.is-picked {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.1);
  box-shadow: 0 0 0 1px var(--gold-hairline), 0 0 28px -8px var(--gold-glow);
}

.incense-card-art {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(201, 164, 92, 0.22);
  background: #080a10;
}

.incense-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.incense-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.incense-card .iname {
  font-family: var(--font-kai);
  font-size: 17px;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: var(--ivory);
}

.incense-card .idesc {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ivory-faint);
}

.cat-grid--scrolls {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 8px 12px;
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 4px;
  background: rgba(4, 6, 11, 0.55);
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-hairline);
  box-shadow: 0 0 30px -12px var(--tint);
}

.cat-card-art {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(201, 164, 92, 0.22);
  background: #080a10;
}

.cat-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cat-card .cname {
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
}

.cat-card .cdesc {
  font-size: 10.5px;
  color: var(--ivory-faint);
  letter-spacing: 0.08em;
}
/* Create by AI End */

.modal-action {
  display: block;
  margin: 36px auto 0;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: 0.4em;
  padding: 13px 58px 13px calc(58px + 0.4em);
  color: var(--ink-0);
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold));
  border-radius: 3px;
  transition: filter var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
}
.modal-action:hover { filter: brightness(1.1); transform: translateY(-1px); }
.modal-action:disabled { opacity: 0.35; cursor: not-allowed; transform: none; filter: none; }
.modal-action--ghost {
  background: none;
  color: var(--ivory-dim);
  border: 1px solid var(--gold-hairline-dim);
}
.modal-action--ghost:hover { color: var(--gold-bright); border-color: var(--gold-hairline); }

/* —— 上香仪式舞台 —— */
.incense-stage {
  position: relative;
  height: 320px;
  margin-top: 20px;
  display: flex; align-items: flex-end; justify-content: center;
}
.incense-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.burner {
  position: relative;
  z-index: 1;
  width: 150px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}
.burner .ember {
  position: absolute;
  left: 50%; top: 26px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #ffb066;
  opacity: 0;
}
.burner.is-lit .ember { opacity: 1; animation: emberPulse 1.6s ease-in-out infinite; }

/* Create by AI Begin 2026-07-13 10:21:59 */
.incense-stage--photo {
  height: min(420px, 52vh);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: 4px;
  background: #05070c;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}

.incense-stage-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  animation: incenseReveal 1.1s var(--ease-out) both;
  filter: saturate(1.05) contrast(1.04);
}

.incense-stage-glow {
  position: absolute;
  left: 50%;
  top: 26%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 70, 0.35), transparent 68%);
  pointer-events: none;
  animation: emberPulse 1.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.ember--photo {
  position: absolute;
  left: 50%;
  top: 27%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #ffb066;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.ember--photo.is-lit {
  opacity: 1;
  animation: emberPulse 1.6s ease-in-out infinite;
}

.incense-stage-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: rgba(242, 237, 225, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.incense-stage--photo .merit-pop {
  bottom: 62%;
}
/* Create by AI End */

.merit-pop {
  position: absolute;
  left: 50%; bottom: 55%;
  font-family: var(--font-kai);
  font-size: 30px;
  color: var(--gold-bright);
  text-shadow: 0 0 22px var(--gold-glow);
  pointer-events: none;
  animation: meritFloat 2.4s var(--ease-out) both;
  z-index: 3;
}

/* —— 求签 —— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.cat-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 6px 18px;
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 5px;
  background: rgba(4, 6, 11, 0.4);
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.cat-opt:hover { transform: translateY(-4px); border-color: var(--gold-hairline); box-shadow: 0 0 30px -12px var(--tint); }
.cat-opt .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); }
.cat-opt .cname { font-family: var(--font-kai); font-size: 17px; letter-spacing: 0.18em; }
.cat-opt .cdesc { font-size: 10.5px; color: var(--ivory-faint); }

/* 签筒舞台 */
.tube-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 0 8px;
}
.tube {
  position: relative;
  width: 130px;
  transform-origin: 50% 88%;
}
.tube.is-shaking { animation: tubeShake 1.25s var(--ease-solemn); }
.tube .stick {
  position: absolute;
  bottom: 74%;
  width: 5px; height: 74px;
  border-radius: 2px;
  background: linear-gradient(to top, #7d6238, #b99a5d);
}
.tube .stick.is-leaping { animation: stickLeap 0.7s var(--ease-out) both; background: linear-gradient(to top, #a63a2b, #e0c184); }
.tube-word {
  margin-top: 26px;
  font-family: var(--font-kai);
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--ivory-faint);
}

/* Create by AI Begin 2026-07-13 10:21:59 */
.tube-stage--photo {
  padding: 18px 0 4px;
}

.tube--photo {
  width: min(280px, 72vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.3);
  border-radius: 4px;
  background: #07090f;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 248, 230, 0.04);
  transform-origin: 50% 70%;
}

.tube-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

.tube-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 50% 28%, rgba(255, 190, 110, 0.12), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(4, 6, 11, 0.35) 100%);
  pointer-events: none;
}

.lucky-stick {
  position: absolute;
  left: 50%;
  bottom: 38%;
  width: 18%;
  max-width: 52px;
  transform: translateX(-50%);
  opacity: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.lucky-stick.is-leaping {
  opacity: 1;
  animation: stickLeapPhoto 0.85s var(--ease-out) both;
}

.tube--photo.is-shaking .tube-photo {
  animation: tubePulse 1.25s var(--ease-solemn);
}
/* Create by AI End */

/* ═══════ 签文结果 · 菩萨全屏降临 ═══════ */
.deity-scene {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  overflow: hidden;
  background: var(--ink-0);
  animation: fadeIn 0.6s both;
}
.deity-scene.is-closing { animation: fadeIn 0.5s reverse both; }

.deity-scene .ds-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: deityArrive 2.2s var(--ease-solemn) both, dsDrift 34s 2.2s ease-in-out infinite alternate;
}
@keyframes dsDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* 光轮 + 暗角，压住画面让文字可读 */
.deity-scene .ds-halo {
  position: absolute; inset: -22%;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(238, 217, 164, 0.05) 12%, transparent 16%, transparent 33%, rgba(238, 217, 164, 0.05) 38%, transparent 42%, transparent 58%, rgba(238, 217, 164, 0.05) 63%, transparent 67%, transparent 83%, rgba(238, 217, 164, 0.05) 88%, transparent 92%);
  animation: haloTurn 40s linear infinite;
  pointer-events: none;
}
.deity-scene .ds-shade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 85% at 50% 38%, transparent 40%, rgba(4, 6, 11, 0.55) 100%),
    linear-gradient(to bottom, rgba(4, 6, 11, 0.4), transparent 24%, transparent 46%, rgba(4, 6, 11, 0.88) 92%);
}

.deity-scene .ds-close {
  position: absolute; top: 26px; right: 32px;
  z-index: 3;
  font-size: 24px;
  color: var(--ivory-dim);
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.deity-scene .ds-close:hover { color: var(--gold-bright); transform: rotate(90deg); }

/* 右上 · 菩萨名号竖排 */
.ds-deityname {
  position: absolute; top: 92px; right: 56px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-kai);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  text-shadow: 0 0 34px rgba(238, 217, 164, 0.35), 0 2px 18px rgba(0, 0, 0, 0.8);
  animation: inkReveal 2s 0.9s var(--ease-solemn) both;
}
.ds-deityname small {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--ivory-dim);
  margin-top: 16px;
}

/* 底部 · 签文横幅 */
.ds-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(24px, 4vh, 44px) clamp(28px, 6vw, 96px) clamp(26px, 4.5vh, 48px);
  background: linear-gradient(to top, rgba(4, 6, 11, 0.82) 55%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: riseIn 1.3s 0.7s var(--ease-out) both;
}
.ds-panel-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.ds-left { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ds-verse {
  font-family: var(--font-kai);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 2;
  letter-spacing: 0.14em;
  color: var(--ivory);
  padding-left: 18px;
  border-left: 2px solid var(--gold-hairline);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.ds-mid .ds-detail { font-size: 14px; line-height: 2; color: var(--ivory-dim); max-width: 60ch; }
.ds-mid .ds-advice { margin-top: 10px; font-size: 13px; color: var(--gold); }
.ds-mid .ds-advice::before { content: "宜 · "; color: var(--ivory-faint); }
.ds-actions { display: flex; flex-direction: column; gap: 12px; }
.ds-actions .modal-action { margin: 0; padding: 11px 30px; font-size: 14px; letter-spacing: 0.26em; white-space: nowrap; }

.fr-badge {
  display: inline-block;
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: #f0e6d2;
  background: var(--cinnabar);
  border-radius: 3px;
  padding: 3px 12px 3px calc(12px + 0.24em);
}
.fr-badge--good { background: #3e6247; }
.fr-badge--great { background: var(--gold-deep); }

/* Create by AI Begin 2026-07-13 11:38:18 */
/* ═══════ 签文详解卷轴 ═══════ */
.oracle-scroll {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 6, 11, 0.72);
  animation: fadeIn 0.35s both;
}
.oracle-scroll.is-closing { animation: fadeIn 0.32s reverse both; }
.oracle-scroll-inner {
  width: min(720px, 94vw);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 28px 28px 24px;
  border: 1px solid var(--gold-hairline);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 12, 0.97), rgba(8, 9, 14, 0.98));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  animation: riseIn 0.45s var(--ease-out) both;
  color: var(--ivory-dim);
}
.os-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  font-size: 20px;
  color: var(--ivory-faint);
}
.os-close:hover { color: var(--gold-bright); }
.os-head { clear: both; margin-bottom: 22px; }
.os-meta {
  margin-top: 12px;
  font-family: var(--font-kai);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.18em;
  color: var(--ivory);
}
.os-deity {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.os-block { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(201, 164, 92, 0.16); }
.os-block h3 {
  margin-bottom: 10px;
  font-family: var(--font-kai);
  font-size: 15px;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  font-weight: 400;
}
.os-block p { font-size: 14px; line-height: 1.95; }
.os-verse {
  font-family: var(--font-kai);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 2.1;
  letter-spacing: 0.12em;
  color: var(--ivory);
}
.os-aspects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.os-aspect {
  padding: 12px 14px;
  border: 1px solid rgba(201, 164, 92, 0.18);
  border-radius: 6px;
  background: rgba(255, 248, 230, 0.03);
}
.os-aspect h4 {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 400;
}
.os-aspect p { font-size: 13px; line-height: 1.8; margin: 0; }
.os-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.os-grid2 > div { min-width: 0; }
.os-sutra {
  font-family: var(--font-kai);
  color: var(--ivory);
  margin-bottom: 8px;
}
.os-sutra small {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: var(--ivory-faint);
  letter-spacing: 0.12em;
}
.os-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 164, 92, 0.2);
}
.os-foot .modal-action { margin: 0; }

.modal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}
.incense-afterglow {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 164, 92, 0.22);
  border-radius: 8px;
  background: rgba(255, 248, 230, 0.03);
}
.ia-virtue {
  font-family: var(--font-kai);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}
.ia-origin { margin-top: 12px; font-size: 14px; line-height: 1.9; }
.ia-when { margin-top: 10px; font-size: 13px; color: var(--ivory-dim); }
.ia-when span {
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.ia-mantra {
  margin-top: 16px;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--ivory);
}

.oracle-book-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  max-height: 52vh;
  overflow: auto;
}
.oracle-book-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(201, 164, 92, 0.2);
  border-radius: 6px;
  background: rgba(255, 248, 230, 0.03);
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.oracle-book-item:hover {
  border-color: var(--gold-hairline);
  background: rgba(201, 164, 92, 0.08);
}
.obi-title {
  font-family: var(--font-kai);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--ivory);
}
.obi-meta { font-size: 12px; letter-spacing: 0.14em; color: var(--ivory-faint); }
.oracle-book-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--ivory-faint);
  letter-spacing: 0.18em;
}

@media (max-width: 720px) {
  .os-aspects, .os-grid2 { grid-template-columns: 1fr; }
  .ds-panel-inner { grid-template-columns: 1fr; gap: 18px; }
  .ds-actions { flex-direction: row; flex-wrap: wrap; }
}
/* Create by AI End */

/* —— 功德箱 —— */
.donate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.donate-opt {
  padding: 24px 8px;
  text-align: center;
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 5px;
  background: rgba(4, 6, 11, 0.4);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.donate-opt:hover { transform: translateY(-3px); border-color: var(--gold-hairline); }
.donate-opt.is-picked { border-color: var(--gold); background: rgba(201, 164, 92, 0.08); }
.donate-opt b { display: block; font-family: var(--font-kai); font-size: 28px; font-weight: 400; color: var(--gold-bright); }
.donate-opt span { font-size: 11.5px; letter-spacing: 0.2em; color: var(--ivory-faint); }

/* —— 在线法师 —— */
.master-form { margin-top: 30px; }
.master-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  background: rgba(4, 6, 11, 0.5);
  border: 1px solid var(--gold-hairline-dim);
  border-radius: 5px;
  color: var(--ivory);
  font-family: var(--font-song);
  font-size: 14.5px;
  line-height: 1.9;
  padding: 16px 18px;
  outline: none;
  transition: border-color var(--dur-fast);
}
.master-form textarea:focus { border-color: var(--gold-hairline); }
.master-form textarea::placeholder { color: var(--ivory-faint); }

/* —— 供奉抽屉 —— */
.drawer-mask {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  background: rgba(2, 3, 6, 0.55);
  animation: fadeIn 0.35s both;
}
.drawer-mask.is-closing { animation: fadeIn 0.3s reverse both; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(390px, 92vw);
  background: linear-gradient(200deg, var(--ink-2), var(--ink-1));
  border-left: 1px solid var(--gold-hairline);
  padding: 40px 30px 26px;
  display: flex; flex-direction: column;
  animation: drawerIn 0.5s var(--ease-out) both;
}
.drawer-title {
  font-family: var(--font-kai);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gold-hairline-dim);
}
.drawer-list { flex: 1; overflow-y: auto; margin-top: 8px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.record {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px dashed rgba(201, 164, 92, 0.12);
}
.record .ricon { font-size: 17px; text-align: center; }
.record .rmain { font-size: 14px; color: var(--ivory-dim); }
.record .rmain b { font-weight: 400; color: var(--ivory); font-family: var(--font-kai); letter-spacing: 0.06em; }
.record .rtime { display: block; font-size: 11px; color: var(--ivory-faint); margin-top: 1px; }
.record .rmerit { font-family: var(--font-kai); font-size: 16px; color: var(--gold); }
.drawer-empty { text-align: center; padding: 70px 0; font-size: 13px; letter-spacing: 0.3em; color: var(--ivory-faint); }
.drawer-clear {
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--ivory-faint);
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.drawer-clear:hover { color: var(--cinnabar-bright); border-color: rgba(166, 58, 43, 0.4); }

/* ═══════════════ 特效层 ═══════════════ */

.flash {
  position: fixed; inset: 0;
  z-index: var(--z-fx);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(70% 55% at 50% 45%, rgba(255, 190, 110, 0.24), transparent 75%);
}
.flash.is-pulsing { animation: lightPulse 1.1s var(--ease-out); }

.fx-canvas {
  position: fixed; inset: 0;
  z-index: var(--z-fx);
  pointer-events: none;
  width: 100%; height: 100%;
}

.toast {
  position: fixed;
  left: 50%; bottom: 64px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  font-family: var(--font-kai);
  font-size: 14.5px;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  background: rgba(6, 9, 16, 0.88);
  border: 1px solid var(--gold-hairline);
  border-radius: 4px;
  padding: 12px 30px;
  animation: toastIn 2.6s var(--ease-out) both;
  pointer-events: none;
}

/* Create by AI Begin 2026-07-13 10:19:06 */
/* ═══════════════ 朝圣内容长页 ═══════════════ */

.lore-path {
  position: relative;
  z-index: 3;
  margin-top: -8vh;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201, 164, 92, 0.08), transparent 55%),
    linear-gradient(180deg, #07090f 0%, var(--ink-0) 18%, #06080e 100%);
}

/* Create by AI Begin 2026-07-13 10:38:25 */
.cinema-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.cinema-mist,
.cinema-dust,
.cinema-veil {
  position: absolute;
  inset: -20%;
  will-change: transform, opacity;
}

.cinema-mist {
  background:
    radial-gradient(50% 40% at 30% 60%, rgba(236, 226, 200, 0.12), transparent 70%),
    radial-gradient(45% 35% at 75% 30%, rgba(201, 164, 92, 0.1), transparent 68%);
  filter: blur(28px);
  opacity: 0.3;
}

.cinema-dust {
  background-image:
    radial-gradient(1.2px 1.2px at 10% 20%, rgba(239, 230, 205, 0.5), transparent),
    radial-gradient(1px 1px at 30% 55%, rgba(239, 230, 205, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 55% 25%, rgba(201, 164, 92, 0.45), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(239, 230, 205, 0.3), transparent),
    radial-gradient(1.2px 1.2px at 88% 40%, rgba(201, 164, 92, 0.4), transparent);
  opacity: 0.25;
}

.cinema-veil {
  inset: 0;
  background: radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(4, 6, 11, 0.28) 100%);
  opacity: 0.15;
}

.cinema-bridge {
  position: relative;
  z-index: 3;
  height: 70vh;
  margin-top: -18vh;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 6, 11, 0.55) 35%, var(--ink-0) 100%);
}

.cinema-bridge-layer {
  position: absolute;
  inset: -10% 0;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(201, 164, 92, 0.14), transparent 70%);
  filter: blur(20px);
  will-change: transform, opacity;
}

.cinema-bridge-layer--mid {
  background:
    linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.65) 50%, transparent);
  filter: blur(8px);
}

.cinema-bridge-word {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-family: var(--font-kai);
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.85em;
  margin-right: -0.85em;
  color: rgba(239, 230, 205, 0.42);
  will-change: transform, opacity;
}

.lore-section--cinematic {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: auto;
  padding: clamp(88px, 14vh, 160px) 0;
}

.lore-section--cinematic .lore-shell,
.lore-section--cinematic [data-plx],
.lore-section--cinematic [data-plx-bg] {
  will-change: auto;
}

.lore-section-aura {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 45% at 20% 30%, rgba(201, 164, 92, 0.09), transparent 70%),
    radial-gradient(45% 40% at 80% 70%, rgba(166, 58, 43, 0.06), transparent 72%);
  filter: blur(12px);
}

.lore-section-aura--gold {
  background:
    radial-gradient(55% 50% at 50% 20%, rgba(239, 230, 205, 0.08), transparent 70%),
    radial-gradient(40% 35% at 70% 80%, rgba(201, 164, 92, 0.1), transparent 72%);
}

.lore-section--cinematic > .lore-shell {
  position: relative;
  z-index: 1;
}

.lore-intro.lore-section--cinematic {
  min-height: 140vh;
  display: flex;
  align-items: center;
  padding-top: 18vh;
  padding-bottom: 18vh;
}

.lore-implements-frame {
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.28);
}

.lore-implements-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

.lore-sticky-art {
  position: sticky;
  top: 18vh;
  align-self: start;
}

.lore-section--split .lore-implements-layout {
  align-items: start;
}

@media (max-width: 900px) {
  .cinema-bridge { height: 28vh; margin-top: -4vh; }
  .lore-sticky-art { position: relative; top: auto; }
  .lore-intro.lore-section--cinematic {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-atmosphere,
  .cinema-bridge { display: none; }
}
/* Create by AI End */

.lore-section {
  position: relative;
  padding: clamp(72px, 12vh, 140px) 0;
  border-top: 1px solid rgba(201, 164, 92, 0.12);
}

.lore-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.lore-mark {
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 18px;
}

.lore-title {
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: var(--gold-bright);
  line-height: 1.15;
}

.lore-lead,
.lore-sub {
  margin-top: 18px;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
}

.lore-head { margin-bottom: clamp(36px, 6vh, 64px); }

.lore-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.lore-reveal.is-inview {
  opacity: 1;
  transform: none;
}
.lore-reveal[style*="--i"] {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* 简介 */
.lore-intro {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(64px, 10vh, 120px);
  border-top: none;
  overflow: hidden;
}

.lore-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lore-intro-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.55);
  will-change: transform;
  transform: scale(1.08);
}

.lore-intro-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 11, 0.35) 0%, rgba(4, 6, 11, 0.82) 55%, rgba(4, 6, 11, 0.96) 100%),
    radial-gradient(60% 50% at 70% 30%, rgba(201, 164, 92, 0.12), transparent 70%);
}

.lore-intro .lore-shell { position: relative; z-index: 1; }

.lore-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.lore-pill {
  padding: 22px 20px 20px;
  border: 1px solid var(--gold-hairline-dim);
  background: rgba(8, 10, 16, 0.55);
  backdrop-filter: blur(6px);
}

.lore-pill h3 {
  font-family: var(--font-kai);
  font-size: 20px;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.lore-pill p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ivory-dim);
  letter-spacing: 0.06em;
}

.lore-disclaimer {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ivory-faint);
}

/* 经文 */
.sutra-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sutra-card {
  position: relative;
  min-height: 360px;
  padding: 28px 24px 26px;
  border: 1px solid rgba(201, 164, 92, 0.28);
  background:
    linear-gradient(165deg, rgba(28, 24, 18, 0.92), rgba(10, 12, 18, 0.94)),
    rgba(12, 10, 8, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 230, 0.03);
}

.sutra-short {
  display: inline-block;
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--cinnabar-bright);
  border: 1px solid rgba(166, 58, 43, 0.45);
  padding: 4px 10px 3px;
  margin-bottom: 18px;
}

.sutra-title {
  font-family: var(--font-kai);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 22px;
}

.sutra-verse {
  font-family: var(--font-song);
  font-size: 18px;
  line-height: 2.05;
  letter-spacing: 0.12em;
  color: var(--ivory);
  writing-mode: vertical-rl;
  height: 210px;
  margin: 0 auto 22px;
}

.sutra-note {
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--ivory-faint);
  border-top: 1px solid rgba(201, 164, 92, 0.16);
  padding-top: 14px;
}

/* 法器 */
.lore-implements-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.implement-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.implement-item {
  padding: 16px 0 16px;
  border-bottom: 1px solid rgba(201, 164, 92, 0.14);
}

.implement-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.implement-head h3 {
  font-family: var(--font-kai);
  font-size: 22px;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: var(--gold-bright);
}

.implement-head span {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.implement-item p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ivory-dim);
  letter-spacing: 0.05em;
}

.lore-implements-art {
  margin: 0;
  border: 1px solid rgba(201, 164, 92, 0.28);
  background: #080a10;
  overflow: hidden;
}

.lore-implements-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  will-change: transform;
  transform: scale(1.08);
}

.lore-implements-art figcaption {
  padding: 12px 16px 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--ivory-faint);
  border-top: 1px solid rgba(201, 164, 92, 0.14);
}

/* 菩萨 */
.deity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.deity-card {
  border: 1px solid rgba(201, 164, 92, 0.22);
  background: rgba(8, 10, 16, 0.72);
  overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms, box-shadow 220ms;
}

.deity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 201, 122, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.deity-card-art {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a0c12;
}

.deity-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.deity-card:hover .deity-card-art img {
  transform: scale(1.04);
}

.deity-card-body {
  padding: 12px 12px 14px;
}

.deity-card-body h3 {
  font-family: var(--font-kai);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.deity-domain {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
}

.deity-mantra {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ivory-faint);
  line-height: 1.5;
}

/* 偈语墙 */
.mantra-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mantra-tile {
  margin: 0;
  min-height: 180px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(201, 164, 92, 0.24);
  background:
    linear-gradient(145deg, rgba(18, 14, 10, 0.9), rgba(8, 10, 16, 0.92));
}

.mantra-tile:nth-child(odd) {
  background:
    linear-gradient(145deg, rgba(24, 16, 12, 0.92), rgba(8, 10, 16, 0.94));
}

.mantra-tile blockquote {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.18em;
  line-height: 1.45;
  color: var(--gold-bright);
}

.mantra-tile figcaption {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--ivory-faint);
}

/* 回殿 */
.lore-close {
  padding-bottom: clamp(48px, 8vh, 88px);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(201, 164, 92, 0.1), transparent 65%);
}

.lore-close-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lore-close .lore-sub { text-align: center; }

.lore-close-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.lore-foot {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 164, 92, 0.16);
  width: min(560px, 100%);
}

.lore-foot .foot-mantra {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 12px;
}

.lore-foot .foot-note {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ivory-faint);
  line-height: 1.8;
}
/* Create by AI End */

/* ═══════════════ 响应式 ═══════════════ */

@media (max-width: 1180px) {
  .sign-no { font-size: clamp(110px, 15vw, 190px); }
}

@media (max-width: 900px) {
  .nav { padding: 0 20px; height: 62px; }
  .nav-links { display: none; }
  .rail { right: 12px; gap: 10px; }
  .rail-btn { width: 52px; padding: 8px 2px; }
  .thread { display: none; }
  .hero-credits { gap: 18px; padding-right: 28px; }
  .credits-col--dim { display: none; }
  .hero-rites { gap: 48px; padding: 0 16px; bottom: 18px; }
  .rite-tab-body { padding: 6px 10px 7px 0; }
  .rite-tab-name { font-size: 16px; letter-spacing: 0.22em; }
  .rite-tab-hint { font-size: 10px; }
  /* Create by AI Begin 2026-07-13 14:44:30 */
  .landing-gates {
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    bottom: max(12px, env(safe-area-inset-bottom, 0px) + 8vh);
    gap: 12px;
  }
  .gate-plaque {
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .gate-plaque-name {
    font-size: 20px;
    letter-spacing: 0.32em;
    margin-right: -0.32em;
  }
  .gate-plaque-hint {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  /* Create by AI End */
  .incense-grid--cards,
  .cat-grid--scrolls { grid-template-columns: repeat(2, 1fr); }
  .incense-grid, .donate-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .fortune-result { grid-template-columns: 1fr; }
  .fr-deity { max-width: 250px; margin: 0 auto; }
}

/* Create by AI Begin 2026-07-13 14:44:30 */
@media (max-width: 720px) {
  .lore-shell {
    width: calc(100% - 32px);
  }
  .lore-section,
  .lore-section--cinematic {
    padding: 56px 0;
    overflow-x: clip;
  }
  .lore-title {
    font-size: clamp(28px, 9vw, 40px);
    letter-spacing: 0.16em;
    margin-right: -0.16em;
    line-height: 1.25;
    word-break: keep-all;
  }
  .lore-mark {
    letter-spacing: 0.28em;
    font-size: 12px;
  }
  .lore-lead,
  .lore-sub {
    font-size: 14.5px;
    line-height: 1.75;
    letter-spacing: 0.04em;
    max-width: none;
  }
  .lore-intro-grid,
  .sutra-rail,
  .deity-grid,
  .mantra-wall {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lore-implements-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lore-pill {
    padding: 18px 16px;
  }
  .lore-pill h3 {
    font-size: 18px;
    letter-spacing: 0.22em;
    margin-right: -0.22em;
  }
  .lore-pill p {
    font-size: 13.5px;
    line-height: 1.7;
  }
  .sutra-card {
    min-height: 0;
    padding: 22px 18px;
  }
  .sutra-verse {
    writing-mode: horizontal-tb;
    height: auto;
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
  }
  .deity-card,
  .mantra-tile {
    min-width: 0;
  }
  .lore-close-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
  }
  .lore-close-actions .gate-plaque {
    width: 100%;
    min-height: 52px;
  }
  .lore-foot .foot-mantra {
    font-size: 20px;
    letter-spacing: 0.18em;
  }
  .cinema-bridge {
    height: 22vh;
    margin-top: 0;
  }
  .cinema-bridge-word {
    letter-spacing: 0.35em;
    margin-right: -0.35em;
    font-size: 16px;
    white-space: nowrap;
  }
  .lore-intro-bg img,
  .lore-implements-frame img {
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 380px) {
  .landing-gates {
    left: 12px;
    right: 12px;
    gap: 10px;
  }
  .gate-plaque-name {
    font-size: 18px;
    letter-spacing: 0.24em;
    margin-right: -0.24em;
  }
  .lore-shell {
    width: calc(100% - 24px);
  }
}
/* Create by AI End */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .depth-field { display: none; }
  .hall-media { transform: none !important; }
}
