/* ═══════════════════════════════════════════════════
   克孜尔 · 岩壁仍在低语
   设计骨架：全屏视差 + 菱格网格
   ═══════════════════════════════════════════════════ */

:root {
  --ink:        #06050a;
  --ink-2:      #0b0910;
  --stone:      #14100d;
  --stone-2:    #1d1712;
  --ochre:      #8f5f38;
  --ochre-lit:  #b8814a;
  --lapis:      #1a3a94;
  --lapis-deep: #0a1c55;
  --lapis-lit:  #4a74d8;
  --malachite:  #3f6e5a;
  --cream:      #f0e6d2;
  --cream-2:    rgba(240, 230, 210, 0.66);
  --cream-3:    rgba(240, 230, 210, 0.38);
  --gold:       #c9a05a;
  --gold-soft:  rgba(201, 160, 90, 0.22);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --kai: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --brush: "Zhi Mang Xing", "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --latin: "Cormorant Garamond", "EB Garamond", "Noto Serif SC", "Songti SC", "Times New Roman", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
/* 平滑滚动改由 JS 自定义缓动完成（微信内置浏览器对 scroll-behavior:smooth 支持差，
   会瞬间跳到底且可能弄乱触摸滚动状态），此处必须保持 auto */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* 现代内核用 clip：横向裁剪但不创建滚动容器，避免 sticky / 触摸滚动被劫持 */
@supports (overflow: clip) { html { overflow-x: clip; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  /* 注意：不要在这里写 overflow-x:hidden——那会让 body 变成纵向滚动容器，
     微信/安卓 webview 下会导致只能局部滚动。横向裁剪统一交给 html。 */
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }

/* ─────────── 全局菱格幕布 ─────────── */
.lattice-veil {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  color: rgba(214, 178, 120, 0.55);
  opacity: 0.06;
  transition: opacity 0.5s linear;
  mix-blend-mode: screen;
}
.lattice-veil svg { width: 100%; height: 100%; }

.vignette {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 42%, rgba(4, 3, 6, 0.55) 88%, rgba(4, 3, 6, 0.85) 100%);
}

/* ─────────── 阅读进度 ─────────── */
/* 阅读进度：一条悬在顶端的细光带，底下衬一道暗轨 */
.scroll-track {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 59;
  background: linear-gradient(90deg, rgba(122, 158, 255, 0.14), rgba(201, 160, 90, 0.12));
  pointer-events: none;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, #7aa0ff 0%, #a9c2ff 16%, var(--gold) 58%, #f6e3b8 100%);
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow:
    0 0 16px rgba(201, 160, 90, 0.85),
    0 0 6px rgba(255, 242, 214, 0.9),
    0 1px 8px rgba(122, 160, 255, 0.5);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

/* ─────────── 顶栏 ─────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 18px clamp(18px, 4vw, 44px);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), padding 0.4s var(--ease);
}
.topbar.is-solid {
  background: rgba(8, 7, 11, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 160, 90, 0.12);
}

/* 主导航 */
.mainnav {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 0;
}
.mainnav > a, .nav-group > button {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; border-radius: 999px;
  color: rgba(240, 230, 210, 0.6);
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.08em;
  padding: 9px 13px; white-space: nowrap;
  transition: color 0.32s var(--ease), background 0.32s var(--ease);
}
.mainnav > a:hover, .nav-group:hover > button, .nav-group:focus-within > button,
.mainnav > a.is-active { color: var(--cream); background: rgba(201, 160, 90, 0.1); }
.nav-group { position: relative; }
.nav-group > button i { font-style: normal; font-size: 0.6rem; opacity: 0.55; transition: transform 0.3s; }
.nav-group:hover > button i { transform: translateY(1px) rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translate(-50%, 6px);
  min-width: 158px; padding: 7px;
  background: rgba(10, 8, 14, 0.94);
  border: 1px solid rgba(201, 160, 90, 0.2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 1);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
}
.nav-drop a {
  display: block; padding: 8px 12px; border-radius: 2px;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.06em;
  color: rgba(240, 230, 210, 0.62); transition: all 0.26s var(--ease);
}
.nav-drop a:hover { color: var(--cream); background: rgba(201, 160, 90, 0.12); padding-left: 16px; }

.nav-toggle {
  display: none; width: 38px; height: 32px; padding: 0;
  background: none; border: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; width: 20px; height: 1.5px;
  background: var(--cream-2); transition: all 0.34s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; width: 14px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.is-open span { background: var(--gold); }
.nav-toggle.is-open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 1.02rem; letter-spacing: 0.22em; font-weight: 700;
}
.brand-mark {
  width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); display: inline-block;
  box-shadow: 0 0 14px rgba(201, 160, 90, 0.7);
}
.brand-sub {
  font-family: var(--latin); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.32em; color: var(--cream-3); font-weight: 400;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
/* 保证品牌与操作按钮始终浮于全屏菜单之上 */
.topbar .brand, .topbar-actions { position: relative; z-index: 45; }

@keyframes authPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 160, 90, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(201, 160, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 160, 90, 0); }
}
.auth-btn:not(.is-in) { animation: authPulse 2.8s ease-out infinite; }
.sound-toggle, .auth-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 160, 90, 0.24);
  color: var(--cream-2);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 8px 14px; border-radius: 999px;
  transition: all 0.35s var(--ease);
}
.sound-toggle:hover, .auth-btn:hover {
  border-color: rgba(201, 160, 90, 0.6); color: var(--cream);
  background: rgba(201, 160, 90, 0.1);
}
.sound-toggle .snd-on { opacity: 0.25; transition: opacity 0.3s; }
.sound-toggle.is-on .snd-on { opacity: 1; }
.sound-toggle.is-on { border-color: rgba(122, 158, 255, 0.55); color: #cfe0ff; }
.auth-btn.is-in { border-color: rgba(122, 158, 255, 0.5); color: #d9e6ff; }

/* ─────────── 右侧章节导航 ─────────── */
.waypoints {
  position: fixed; right: clamp(10px, 1.6vw, 26px); top: 50%; transform: translateY(-50%);
  z-index: 30; display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.wp { display: flex; align-items: center; gap: 8px; opacity: 0.5; transition: opacity 0.3s; }
.wp:hover, .wp.is-active { opacity: 1; }
.wp-dot {
  width: 7px; height: 7px; background: rgba(240, 230, 210, 0.5);
  transform: rotate(45deg); transition: all 0.35s var(--ease);
}
.wp.is-active .wp-dot {
  background: var(--gold); box-shadow: 0 0 12px rgba(201, 160, 90, 0.9);
  transform: rotate(45deg) scale(1.5);
}
.wp-label {
  font-size: 0.66rem; letter-spacing: 0.16em; color: var(--cream-3);
  opacity: 0; transform: translateX(6px); transition: all 0.3s var(--ease);
}
.wp:hover .wp-label, .wp.is-active .wp-label { opacity: 1; transform: none; color: var(--cream-2); }

/* ─────────── 按钮 ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-family: var(--sans);
  font-size: 0.82rem; letter-spacing: 0.08em; border: 1px solid transparent;
  transition: all 0.4s var(--ease); text-align: center;
}
.btn-ghost {
  border-color: rgba(240, 230, 210, 0.28); color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(240, 230, 210, 0.6); transform: translateY(-2px); }
.btn-lapis {
  background: linear-gradient(135deg, #2a4fb8, #16307e 55%, #0d2160);
  color: #eaf1ff; border-color: rgba(122, 158, 255, 0.4);
  box-shadow: 0 8px 30px -12px rgba(40, 80, 200, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-lapis:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(60, 110, 240, 1), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-arrow { font-family: var(--sans); opacity: 0.7; animation: bob 2.4s infinite ease-in-out; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; padding: 15vh 6vw 22vh;
}
.hero-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-sky::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 78% at 50% 112%, rgba(196, 128, 62, 0.5) 0%, rgba(120, 63, 34, 0.26) 26%, transparent 62%),
    radial-gradient(86% 62% at 52% 18%, rgba(36, 72, 168, 0.52) 0%, rgba(18, 32, 84, 0.28) 42%, transparent 74%),
    radial-gradient(70% 50% at 82% 78%, rgba(26, 58, 148, 0.2) 0%, transparent 70%),
    linear-gradient(180deg, #04040a 0%, #070a18 36%, #0d0b16 62%, #1a1109 88%, #241407 100%);
}
/* 崖壁照片：压低但保留可辨的山体轮廓，让封面有"实景"的分量 */
.hero-photo {
  position: absolute; inset: 0; z-index: 1;
  background: url("../assets/img/cliff.jpg") center 46% / cover no-repeat;
  opacity: 0.56;
  filter: saturate(0.72) brightness(0.72) contrast(1.06);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.88) 46%, rgba(0, 0, 0, 0.3) 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.88) 46%, rgba(0, 0, 0, 0.3) 78%, transparent 100%);
  animation: heroDrift 34s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
@keyframes heroDrift { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.4%, -1.2%, 0); } }

.aurora {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.46; z-index: 3;
  animation: drift 26s infinite alternate ease-in-out;
}
.a1 { width: 62vw; height: 46vh; left: 4vw; top: 8vh; background: radial-gradient(closest-side, rgba(46, 96, 220, 0.5), transparent); }
.a2 { width: 54vw; height: 40vh; right: 2vw; bottom: 6vh; background: radial-gradient(closest-side, rgba(196, 128, 62, 0.42), transparent); animation-delay: -9s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -4%, 0) scale(1.14); }
}
.hero-lattice {
  position: absolute; inset: 0; z-index: 4; opacity: 0.5;
  background-image:
    linear-gradient(45deg, rgba(201, 160, 90, 0.13) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(201, 160, 90, 0.13) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(70% 60% at 50% 48%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 48%, #000 0%, transparent 78%);
  animation: latShift 40s linear infinite;
}
@keyframes latShift { to { background-position: 76px 76px, -76px 76px; } }

/* 光尘 */
.hero-dust { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero-dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(240, 214, 168, 0.85);
  box-shadow: 0 0 8px 2px rgba(240, 200, 140, 0.35);
  animation: floatUp 18s linear infinite;
  opacity: 0;
}
.hero-dust i:nth-child(1) { left: 18%; bottom: 8%; animation-delay: 0s; }
.hero-dust i:nth-child(2) { left: 31%; bottom: 2%; animation-delay: 3.4s; animation-duration: 22s; }
.hero-dust i:nth-child(3) { left: 46%; bottom: 12%; animation-delay: 6.1s; animation-duration: 16s; }
.hero-dust i:nth-child(4) { left: 58%; bottom: 4%; animation-delay: 1.7s; animation-duration: 24s; }
.hero-dust i:nth-child(5) { left: 71%; bottom: 10%; animation-delay: 8.6s; animation-duration: 19s; }
.hero-dust i:nth-child(6) { left: 83%; bottom: 6%; animation-delay: 5.2s; animation-duration: 21s; }
.hero-dust i:nth-child(7) { left: 62%; bottom: 18%; animation-delay: 11s; animation-duration: 26s; }
@keyframes floatUp {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: 0.9; }
  70% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(26px, -58vh, 0); }
}
.hero-glow {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 44%, rgba(8, 10, 26, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, rgba(4, 4, 10, 0.55) 0%, transparent 28%, transparent 62%, rgba(4, 4, 10, 0.92) 100%);
}

/* 内容 */
/* 内框：把满屏封面「框」成一幅立轴，边角留细金线 */
.hero-frame {
  position: absolute; z-index: 7; pointer-events: none;
  inset: clamp(13px, 2.1vw, 32px);
  border: 1px solid rgba(201, 160, 90, 0.13);
}
.hero-frame::before, .hero-frame::after {
  content: ""; position: absolute; width: 28px; height: 28px;
  border: 1px solid rgba(201, 160, 90, 0.46);
}
.hero-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* 左侧竖排地名：给封面加一道"碑侧题记" */
.hero-side {
  position: absolute; z-index: 8; top: 50%; left: clamp(21px, 3.2vw, 54px);
  transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--kai); font-size: 0.7rem;
  letter-spacing: 0.54em; color: rgba(240, 230, 210, 0.28);
}

.hero-inner { position: relative; z-index: 9; text-align: center; max-width: 1120px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--latin); font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.36em; line-height: 1.7;
  color: rgba(240, 230, 210, 0.5); margin: 0 0 2.2em; text-indent: 0.36em;
}
.hero-kicker::before, .hero-kicker::after {
  content: ""; width: clamp(20px, 5vw, 54px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 90, 0.55));
}
.hero-kicker::after { background: linear-gradient(90deg, rgba(201, 160, 90, 0.55), transparent); }

.hero-title {
  margin: 0; font-family: var(--brush); font-weight: 400; line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}
/* 第一行：小、疏、轻——楷体，像碑额上的小字 */
.ht-small {
  display: block;
  font-family: var(--kai); font-weight: 400;
  font-size: clamp(0.8rem, 1.65vw, 1.16rem);
  letter-spacing: 0.58em; text-indent: 0.58em;
  color: rgba(240, 230, 210, 0.46);
  margin-bottom: 1.9em;
}
/* 第二行：起笔——行书小字，金色 */
.ht-lead {
  display: block;
  font-family: var(--brush); font-weight: 400;
  font-size: clamp(1.3rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.3em; text-indent: 0.3em;
  color: rgba(228, 196, 130, 0.92);
  text-shadow: 0 0 30px rgba(201, 160, 90, 0.28);
  margin-bottom: 0.08em;
}
/* 第三行：主体——毛笔行书，最大号，飘逸的连笔在这里 */
.ht-line {
  display: block;
  font-family: var(--brush); font-weight: 400;
  font-size: clamp(2.95rem, 11.4vw, 8.9rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: #faf1de;
  text-shadow:
    0 0 40px rgba(255, 226, 178, 0.16),
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 2px 2px rgba(0, 0, 0, 0.35);
}
.ht-line em {
  font-style: normal; position: relative;
  color: #e8c48a;
  text-shadow: 0 0 44px rgba(232, 196, 138, 0.34), 0 18px 60px rgba(0, 0, 0, 0.5);
}
/* 拉丁副题：一行疏排，压住整幅的重心 */
.hero-en {
  margin: 1.9em 0 0; font-family: var(--latin); font-weight: 500;
  font-size: clamp(0.6rem, 1vw, 0.76rem);
  letter-spacing: 0.5em; text-indent: 0.5em;
  color: rgba(240, 230, 210, 0.3);
}

.hero-sub {
  position: relative;
  margin: 1.5em auto 0; padding-top: 1.4em; max-width: 28em;
  font-size: clamp(0.8rem, 1.05vw, 0.93rem); line-height: 2;
  letter-spacing: 0.03em;
  color: rgba(240, 230, 210, 0.64);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}
.hero-sub::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 38px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 90, 0.72), transparent);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 2.5em; }

/* 底部速览 */
.hero-meta {
  position: absolute; left: 50%; bottom: 6.4vh; transform: translateX(-50%);
  z-index: 9; display: flex; gap: clamp(20px, 4vw, 56px);
  margin: 0; padding: 0; list-style: none;
  width: min(92vw, 780px); justify-content: center;
}
.hero-meta li {
  display: flex; flex-direction: column; align-items: center; gap: 0.35em;
  position: relative; flex: 1;
}
.hero-meta li + li::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 8%;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(201, 160, 90, 0.3), transparent);
}
.hero-meta b {
  font-family: var(--latin); font-weight: 500;
  font-size: clamp(0.98rem, 1.35vw, 1.28rem);
  letter-spacing: 0.05em; color: rgba(240, 230, 210, 0.9);
  font-variant-numeric: lining-nums tabular-nums;
}
.hero-meta span {
  font-family: var(--latin); font-size: 0.68rem; letter-spacing: 0.2em;
  color: rgba(240, 230, 210, 0.34);
}

/* 朱红印章 */
.hero-seal {
  position: absolute; top: 15vh; right: clamp(18px, 4vw, 62px); z-index: 9;
  width: 58px; padding: 9px 5px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 2px solid rgba(174, 62, 44, 0.82);
  background: rgba(174, 62, 44, 0.06);
  color: #c4553e;
  box-shadow: inset 0 0 0 1px rgba(196, 85, 62, 0.28), 0 10px 30px -14px rgba(174, 62, 44, 0.9);
  transform: rotate(-3.5deg);
  opacity: 0.92;
  mix-blend-mode: screen;
}
.hero-seal span {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--kai); font-size: 0.95rem;
  letter-spacing: 0.18em; line-height: 1.2;
}
.hero-seal i {
  font-family: var(--latin); font-style: normal; font-size: 0.48rem;
  letter-spacing: 0.16em; opacity: 0.72; margin-top: 1px;
}

.scroll-hint {
  position: absolute; bottom: 1.6vh; left: 50%; transform: translateX(-50%);
  width: 20px; height: 32px; border: 1px solid rgba(240, 230, 210, 0.2); border-radius: 11px; z-index: 9;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--gold); border-radius: 2px; animation: scrolldot 2.2s infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ═══════════ 入窟 · 视差 ═══════════ */
.enter { position: relative; height: 460vh; }
.sticky-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #05040a;
}
.plx-layer { position: absolute; inset: 0; will-change: opacity; }
.plx-img {
  position: absolute; inset: -8%; background-size: cover; background-position: center 40%;
  will-change: transform; transform-origin: center center;
}
.img-cliff { background-image: url("../assets/img/cliff.jpg"); }
.img-cave { background-image: url("../assets/img/cave.jpg"); }
.img-jataka { background-image: url("../assets/img/jataka.jpg"); }
.img-musicians { background-image: url("../assets/img/musicians.jpg"); }
.img-scar { background-image: url("../assets/img/scar.jpg"); }
.plx-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 3, 8, 0.72) 0%, transparent 26%, transparent 62%, rgba(4, 3, 8, 0.82) 100%),
    radial-gradient(90% 70% at 50% 50%, transparent 40%, rgba(4, 3, 8, 0.55) 100%);
}

.diamond-mask { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; }
.diamond-mask svg { width: 100%; height: 100%; display: block; }
.diamond-mask polygon { fill: #05040a; }

.enter-captions { position: absolute; left: 0; right: 0; bottom: clamp(70px, 12vh, 120px); z-index: 8; pointer-events: none; }
.cap {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(90vw, 580px); margin: 0; padding: 0 0 0 20px;
  border-left: 1px solid rgba(201, 160, 90, 0.45);
  font-family: var(--kai); font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 2.1; letter-spacing: 0.04em;
  color: rgba(246, 238, 220, 0.94); opacity: 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.9);
}

/* ═══════════ 通用章节 ═══════════ */
section { position: relative; }
.sec-head { max-width: 1200px; margin: 0 auto 3.4rem; padding: 0 clamp(20px, 5vw, 60px); }
.sec-kicker {
  font-family: var(--latin); font-size: 0.84rem; font-weight: 500;
  letter-spacing: 0.3em; line-height: 1.6;
  color: var(--gold); margin-bottom: 1.1em;
  display: flex; align-items: center; gap: 0.9em;
}
.sec-kicker::before {
  content: ""; width: 22px; height: 1px; flex: 0 0 auto;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.75;
}
.sec-head .sec-kicker { text-transform: uppercase; }
.sec-head h2, .music-text h2, .scar-text h2, .lapis-inner h2 {
  font-family: var(--kai); font-weight: 400;
  font-size: clamp(1.7rem, 3.7vw, 3rem); line-height: 1.4; letter-spacing: 0.04em;
  margin-bottom: 0.7em;
}
/* 标题内部的字号变化：前半句轻、小，后半句重、大 */
.h2-sm {
  display: block;
  font-size: 0.5em; font-weight: 400; letter-spacing: 0.18em;
  color: rgba(240, 230, 210, 0.46); margin-bottom: 0.45em;
}
.lapis-inner .h2-sm { color: rgba(214, 226, 255, 0.48); }
.sec-lead { max-width: 44em; color: var(--cream-2); font-size: 0.98rem; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════ 数字 ═══════════ */
.numbers {
  padding: clamp(80px, 14vh, 150px) 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(26, 58, 148, 0.12), transparent 70%),
    linear-gradient(180deg, #06050a, #0c0a0f 50%, #06050a);
  border-top: 1px solid rgba(201, 160, 90, 0.08);
}
.num-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(201, 160, 90, 0.14);
  border: 1px solid rgba(201, 160, 90, 0.14);
}
.num-cell {
  background: #08070c; padding: clamp(26px, 3.4vw, 44px) clamp(20px, 2.4vw, 34px);
  display: flex; flex-direction: column; gap: 0.9em; position: relative;
  transition: background 0.5s var(--ease);
}
.num-cell::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg); opacity: 0.35;
  transition: opacity 0.4s;
}
.num-cell:hover { background: #0f0d16; }
.num-cell:hover::after { opacity: 1; box-shadow: 0 0 12px rgba(201, 160, 90, 0.8); }
.num-cell b {
  font-family: var(--latin); font-weight: 500;
  font-size: clamp(2.7rem, 5.2vw, 4.4rem); line-height: 1; letter-spacing: 0.01em;
  background: linear-gradient(160deg, #fff6e4, var(--gold) 60%, #8f5f38);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: lining-nums tabular-nums;
}
.num-cell span { font-family: var(--sans); font-size: 0.8rem; line-height: 1.85; color: var(--cream-3); }

/* ═══════════ 菱格故事 ═══════════ */
.jataka {
  padding: clamp(80px, 13vh, 140px) 0 clamp(90px, 15vh, 160px);
  background:
    radial-gradient(70% 46% at 50% 8%, rgba(80, 44, 24, 0.35), transparent 72%),
    linear-gradient(180deg, #06050a, #100c0a 60%, #06050a);
  overflow: hidden;
}
.jataka-board { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 50px); }
.board-row { display: flex; justify-content: center; align-items: center; gap: 1.5%; }
.board-row.r2 { margin-top: -3.5%; }
.board-row.r2 .jataka-cell { width: 23%; }

.jataka-cell {
  position: relative; width: 26%; aspect-ratio: 1; flex: 0 0 auto;
  display: grid; place-items: center; text-align: center;
  cursor: pointer; transition: transform 0.55s var(--ease);
  outline: none;
}
.jataka-cell::after {
  content: ""; position: absolute; inset: -1.5%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: rgba(201, 160, 90, 0.28);
  opacity: 0.55; transition: opacity 0.5s;
  z-index: 0;
}
.jataka-cell::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background:
    linear-gradient(150deg, rgba(38, 30, 40, 0.96), rgba(14, 12, 20, 0.99) 60%),
    radial-gradient(60% 60% at 50% 20%, rgba(74, 116, 216, 0.22), transparent 70%);
  transition: background 0.6s;
}
.jataka-cell:hover { transform: translateY(-6px) scale(1.02); }
.jataka-cell:hover::after { opacity: 1; }
.jataka-cell:focus-visible::after { opacity: 1; background: var(--lapis-lit); }
.cell-img {
  position: absolute; inset: 0; z-index: 1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background-size: cover; background-position: center;
  filter: saturate(0.9) brightness(0.78);
  transition: filter 0.7s var(--ease), transform 0.9s var(--ease);
}
.jataka-cell:hover .cell-img { filter: saturate(1.05) brightness(0.95); transform: scale(1.05); }
.cell-hero .cell-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(4, 3, 8, 0.72) 78%);
}
.jataka-cell::before:first-child { content: none; }
.cell-hero { width: 34%; }
.cell-hero::after { inset: -1%; }

.cell-sym {
  position: relative; z-index: 3; font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  opacity: 0.8; margin-top: -6%; filter: saturate(0.35) brightness(1.4);
}
.cell-cap { position: relative; z-index: 3; display: block; padding: 0 6%; }
.cell-hero .cell-cap { margin-top: 12%; }
.cell-cap em {
  display: block; font-style: normal; font-family: var(--kai);
  font-size: clamp(0.78rem, 1.15vw, 0.98rem);
  line-height: 1.65; letter-spacing: 0.04em; color: var(--cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}
.cell-cap i {
  display: block; font-style: normal; font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 0.14em; color: rgba(201, 160, 90, 0.7);
  margin-top: 0.5em;
}
.cell-empty { cursor: default; }
.cell-empty::before { background: rgba(255, 255, 255, 0.012); }
.cell-empty::after { opacity: 0.2; }
.cell-empty span {
  position: relative; z-index: 3; font-size: 0.7rem; line-height: 1.7;
  color: rgba(240, 230, 210, 0.28); letter-spacing: 0.1em;
}
.cell-empty span i { font-style: normal; font-size: 0.62rem; opacity: 0.7; }

/* ═══════════ 青金 ═══════════ */
.lapis {
  position: relative; padding: clamp(100px, 20vh, 200px) 0; overflow: hidden;
  background: linear-gradient(180deg, #06050a, #071031 30%, #0a1c55 60%, #071031 85%, #06050a);
}
.lapis-field {
  position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(46% 40% at 22% 34%, rgba(74, 116, 216, 0.55), transparent 66%),
    radial-gradient(38% 34% at 78% 66%, rgba(24, 48, 130, 0.6), transparent 70%),
    radial-gradient(30% 26% at 60% 20%, rgba(63, 110, 90, 0.22), transparent 70%);
  filter: blur(10px);
  animation: lapisBreath 18s ease-in-out infinite alternate;
}
@keyframes lapisBreath { from { transform: scale(1); opacity: 0.42; } to { transform: scale(1.1); opacity: 0.62; } }
.lapis-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.lapis-inner h2 { color: #eef3ff; }
.lapis-inner p { color: rgba(214, 226, 255, 0.78); font-size: clamp(0.95rem, 1.2vw, 1.04rem); line-height: 2.1; }
.lapis-inner .sec-kicker { color: #9db6ff; }

/* ═══════════ 伎乐 ═══════════ */
.music {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; padding: clamp(80px, 14vh, 150px) clamp(20px, 5vw, 60px);
  max-width: 1320px; margin: 0 auto;
  background: linear-gradient(180deg, #06050a, #0a0808);
}
.music-media {
  position: relative; aspect-ratio: 4 / 3.4; overflow: hidden;
  border: 1px solid rgba(201, 160, 90, 0.2);
  clip-path: polygon(6% 0, 100% 0, 100% 94%, 94% 100%, 0 100%, 0 6%);
}
.music-media .plx-img { inset: -10%; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 26px 16px 12px; font-family: var(--sans); font-size: 0.62rem;
  letter-spacing: 0.1em; color: rgba(240, 230, 210, 0.55);
  background: linear-gradient(transparent, rgba(4, 3, 8, 0.9));
}
.music-text h2 { margin-bottom: 1em; }
.music-text p { color: var(--cream-2); }
.music-text b { color: var(--gold); font-size: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6em 0; }
.chips span {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 7px 14px; border: 1px solid rgba(201, 160, 90, 0.26);
  color: rgba(240, 230, 210, 0.8); border-radius: 2px;
  background: rgba(201, 160, 90, 0.05); transition: all 0.35s var(--ease);
}
.chips span:hover { background: rgba(201, 160, 90, 0.18); color: #fff4de; transform: translateY(-2px); }
.music-note {
  font-family: var(--sans); font-size: 0.78rem; line-height: 1.9;
  color: var(--cream-3); border-top: 1px solid rgba(201, 160, 90, 0.16); padding-top: 1.2em;
}

/* ═══════════ 伤痕 ═══════════ */
.scar {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; padding: clamp(80px, 14vh, 150px) clamp(20px, 5vw, 60px);
  max-width: 1320px; margin: 0 auto;
}
.scar-media {
  position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; order: 2;
  border: 1px solid rgba(240, 230, 210, 0.12);
}
.scar-media .plx-img { inset: -10%; filter: grayscale(0.35) contrast(1.05) brightness(0.8); }
.scar-text { order: 1; }
.scar-text p { color: var(--cream-2); }
.scar-text .sec-kicker { color: #c98a6a; }

/* ═══════════ 年表 ═══════════ */
.timeline {
  padding: clamp(80px, 14vh, 150px) 0;
  background: linear-gradient(180deg, #06050a, #0b090d 55%, #06050a);
  border-top: 1px solid rgba(201, 160, 90, 0.07);
}
.tl-track {
  list-style: none; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
  max-width: 980px; position: relative;
}
.tl-track::before {
  content: ""; position: absolute; left: calc(clamp(20px, 5vw, 60px) + 5px); top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(201, 160, 90, 0.4) 12%, rgba(201, 160, 90, 0.4) 88%, transparent);
}
.tl-item { position: relative; padding: 0 0 2.4em 2.6em; }
.tl-node {
  position: absolute; left: 0; top: 0.55em; width: 11px; height: 11px;
  background: var(--ink); border: 1px solid var(--gold);
  transform: rotate(45deg); box-shadow: 0 0 0 4px rgba(6, 5, 10, 1);
}
.tl-item b {
  display: block; font-family: var(--latin); font-weight: 500; font-size: 0.92rem;
  letter-spacing: 0.16em; color: var(--gold); margin-bottom: 0.45em;
}
.tl-item p { margin: 0; color: var(--cream-2); font-size: 0.95rem; }

/* ═══════════ 报道 ═══════════ */
.press { padding: clamp(80px, 14vh, 150px) 0; background: #06050a; }
.press-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(201, 160, 90, 0.12); border: 1px solid rgba(201, 160, 90, 0.12);
}
.press-card {
  background: #09080d; padding: clamp(24px, 3vw, 38px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6em;
  transition: background 0.5s var(--ease);
}
.press-card:hover { background: #0e0c14; }
.press-quote { font-size: 0.96rem; line-height: 2.05; color: rgba(240, 230, 210, 0.86); margin: 0; }
.press-card footer { display: flex; flex-direction: column; gap: 0.35em; border-top: 1px solid rgba(201, 160, 90, 0.14); padding-top: 1.1em; }
.press-card footer b { font-size: 0.84rem; color: var(--cream); font-weight: 700; letter-spacing: 0.02em; }
.press-card footer span { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--cream-3); }
.press-note {
  max-width: 1180px; margin: 1.8em auto 0; padding: 0 clamp(20px, 5vw, 60px);
  font-family: var(--sans); font-size: 0.7rem; color: rgba(240, 230, 210, 0.32); line-height: 1.9;
}

/* ═══════════ 题记 ═══════════ */
.inscribe {
  padding: clamp(80px, 14vh, 150px) 0 clamp(60px, 10vh, 110px);
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(26, 58, 148, 0.18), transparent 70%),
    linear-gradient(180deg, #06050a, #0a0812);
}
.inscribe-panel {
  max-width: 640px; margin: 0 auto 3.4rem; padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(201, 160, 90, 0.2);
  background: rgba(255, 255, 255, 0.018);
  position: relative;
}
.inscribe-panel::before, .inscribe-panel::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--gold);
}
.inscribe-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.inscribe-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.gate { text-align: center; padding: 1.4em 0 0.6em; }
.gate-icon { font-size: 1.5rem; color: var(--gold); opacity: 0.7; margin-bottom: 0.8em; }
.gate p { color: var(--cream-2); font-size: 0.92rem; margin-bottom: 1.4em; }
.scribe-who {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: 0.78rem; color: var(--cream-2);
  padding-bottom: 1em; border-bottom: 1px solid rgba(201, 160, 90, 0.14); margin-bottom: 1.2em;
}
.scribe-who span { color: var(--gold); letter-spacing: 0.1em; }
.linklike {
  background: none; border: 0; color: var(--cream-3); font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.06em; text-decoration: underline;
  text-underline-offset: 4px; padding: 0;
}
.linklike:hover { color: var(--cream); }
#scribeText {
  width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(201, 160, 90, 0.2);
  color: var(--cream); font-family: var(--serif); font-size: 0.95rem; line-height: 1.9;
  padding: 14px 16px; resize: vertical; outline: none; border-radius: 2px;
  transition: border-color 0.3s;
}
#scribeText:focus { border-color: rgba(122, 158, 255, 0.55); }
#scribeText::placeholder { color: rgba(240, 230, 210, 0.28); }
.scribe-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 1em; flex-wrap: wrap; }
.char-count { font-family: var(--sans); font-size: 0.68rem; color: var(--cream-3); letter-spacing: 0.08em; }
.form-error { color: #e2907a; font-family: var(--sans); font-size: 0.76rem; margin: 0.9em 0 0; min-height: 1.2em; }

.ins-wall {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 50px);
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.ins-empty {
  text-align: center; color: rgba(240, 230, 210, 0.3); font-size: 0.86rem;
  line-height: 2; padding: 2em 1em;
}
.ins-cell {
  position: relative; width: clamp(150px, 15vw, 196px); aspect-ratio: 1;
  display: grid; place-items: center; padding: 0 4%;
  animation: pop 0.6s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.ins-cell::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(150deg, rgba(40, 32, 46, 0.9), rgba(12, 10, 18, 0.98));
  border: 0;
}
.ins-cell::after {
  content: ""; position: absolute; inset: -1px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: rgba(201, 160, 90, 0.22); z-index: 0;
}
.ins-inner { position: relative; z-index: 2; text-align: center; width: 62%; }
.ins-text {
  font-family: var(--kai); font-size: 0.86rem; line-height: 1.8; letter-spacing: 0.02em;
  color: #f6ecd8; margin: 0 0 0.5em; word-break: break-word;
}
.ins-by {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.06em;
  color: rgba(201, 160, 90, 0.85); margin: 0; display: flex; flex-direction: column; gap: 2px;
}
.ins-by span { color: rgba(240, 230, 210, 0.25); font-size: 0.55rem; }
.ins-del {
  position: absolute; top: 50%; right: -26px; transform: translateY(-50%);
  background: none; border: 0; color: rgba(240, 230, 210, 0.3); font-size: 0.7rem; padding: 4px;
}
.ins-del:hover { color: #e2907a; }
.ins-note {
  max-width: 640px; margin: 2.4em auto 0; padding: 0 20px; text-align: center;
  font-family: var(--sans); font-size: 0.68rem; line-height: 1.9; color: rgba(240, 230, 210, 0.3);
}

/* ═══════════ 页脚 ═══════════ */
.footer {
  padding: clamp(50px, 8vh, 80px) clamp(20px, 5vw, 60px) 60px;
  border-top: 1px solid rgba(201, 160, 90, 0.12);
  background: #040308; text-align: center;
}
.foot-brand {
  font-size: 1.1rem; letter-spacing: 0.24em; margin-bottom: 1.6em; color: var(--cream);
}
.foot-brand span {
  display: block; font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.3em;
  color: var(--cream-3); margin-top: 0.7em;
}
.footer p { font-family: var(--sans); font-size: 0.7rem; line-height: 2; color: rgba(240, 230, 210, 0.32); max-width: 46em; margin: 0 auto 1.4em; }
.foot-copy { color: rgba(201, 160, 90, 0.4) !important; letter-spacing: 0.3em; font-size: 0.62rem !important; }

/* ═══════════ 弹层 ═══════════ */
.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(3, 2, 6, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.modal-card {
  position: relative; z-index: 2; width: min(100%, 460px);
  background: linear-gradient(170deg, #14111a, #0a0810 70%);
  border: 1px solid rgba(201, 160, 90, 0.24);
  padding: clamp(26px, 4vw, 40px);
  transform: translateY(18px) scale(0.98); transition: transform 0.5s var(--ease);
  max-height: 88vh; overflow-y: auto;
}
.modal.is-open .modal-card { transform: none; }
.modal-card::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 160, 90, 0.1);
  pointer-events: none;
}
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: none; border: 0; color: rgba(240, 230, 210, 0.4); font-size: 0.9rem; padding: 6px;
}
.modal-x:hover { color: var(--cream); }
.modal-head { text-align: center; margin-bottom: 1.6em; }
.modal-glyph { color: var(--gold); font-size: 1rem; display: block; margin-bottom: 0.9em; }
.modal-glyph.big { font-size: 1.6rem; }
.modal-head h3, .story-card h3 {
  font-family: var(--kai); font-weight: 400;
  font-size: 1.55rem; letter-spacing: 0.12em; text-align: center;
}
.modal-sub { font-family: var(--sans); font-size: 0.72rem; line-height: 1.9; color: var(--cream-3); margin: 0.9em 0 0; }

.tabbar { display: flex; gap: 0; margin-bottom: 1.6em; border-bottom: 1px solid rgba(201, 160, 90, 0.16); }
.tab {
  flex: 1; background: none; border: 0; padding: 10px 0 12px;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--cream-3); position: relative; transition: color 0.3s;
}
.tab.is-active { color: var(--cream); }
.tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold); box-shadow: 0 0 10px rgba(201, 160, 90, 0.8);
}
.auth-form { display: flex; flex-direction: column; gap: 1em; }
.auth-form.is-hidden { display: none; }
.auth-form label {
  display: flex; flex-direction: column; gap: 0.5em;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--cream-3);
}
.auth-form input {
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(201, 160, 90, 0.2);
  color: var(--cream); font-family: var(--serif); font-size: 0.92rem;
  padding: 11px 13px; outline: none; border-radius: 2px; transition: border-color 0.3s;
}
.auth-form input:focus { border-color: rgba(122, 158, 255, 0.55); }
.auth-form .btn { margin-top: 0.6em; }
.modal-foot {
  font-family: var(--sans); font-size: 0.64rem; line-height: 1.9;
  color: rgba(240, 230, 210, 0.28); margin: 1.4em 0 0; text-align: center;
}
.story-card { width: min(100%, 560px); text-align: left; }
.story-body { font-size: 0.95rem; line-height: 2.1; color: rgba(240, 230, 210, 0.86); margin: 1.4em 0 1em; }
.story-src { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.08em; color: rgba(201, 160, 90, 0.7); margin: 0; }

/* ═══════════ toast ═══════════ */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  z-index: 90; padding: 11px 22px; border-radius: 2px;
  background: rgba(12, 10, 18, 0.94); border: 1px solid rgba(201, 160, 90, 0.3);
  color: var(--cream); font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.06em;
  opacity: 0; pointer-events: none; transition: all 0.45s var(--ease);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 1024px) {
  .music, .scar { grid-template-columns: 1fr; gap: 2.4rem; }
  .scar-media { order: 1; } .scar-text { order: 2; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: clamp(14px, 3.9vw, 16px); }
  .waypoints { display: none; }
  .brand-sub { display: none; }
  .sound-toggle span, .auth-btn { font-size: 0.68rem; }
  .hero { padding-top: 22vh; }
  .hero-cta .btn { padding: 12px 20px; font-size: 0.76rem; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .enter { height: 380vh; }
  .board-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; justify-items: center; align-items: center; grid-auto-flow: dense; }
  .board-row.r2 { margin-top: 12px; }
  .jataka-cell { width: 100%; max-width: 190px; }
  .cell-hero { grid-column: 1 / -1; width: 100%; max-width: 300px; }
  .board-row.r2 .jataka-cell { width: 100%; }
  .cell-cap em { font-size: 0.62rem; }
  .cell-cap i { display: none; }
  .cell-sym { font-size: 1.1rem; }
  .ins-cell { width: 44%; }
  .cap { width: 88vw; font-size: clamp(0.82rem, 3.5vw, 1rem); line-height: 2; }
  .tl-track::before { left: calc(clamp(20px, 5vw, 60px) + 5px); }
}
@media (max-width: 420px) {
  .jataka-cell { max-width: 165px; }
  .cell-hero { max-width: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .plx-img { transform: none !important; }
}

/* ═══════════════════════════════════════════════════
   新增章节：概览 / 数智新生 / 报道筛选 / 作品
   ═══════════════════════════════════════════════════ */

/* ─────────── 03 石窟概览 ─────────── */
.about {
  padding: clamp(80px, 13vh, 145px) 0 clamp(70px, 11vh, 120px);
  background:
    radial-gradient(58% 40% at 18% 0%, rgba(143, 95, 56, 0.16), transparent 68%),
    linear-gradient(180deg, #06050a, #0b090c 55%, #06050a);
  border-top: 1px solid rgba(201, 160, 90, 0.07);
}
.about-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: clamp(30px, 4.5vw, 68px); align-items: start;
}
.about-text h2 {
  font-family: var(--kai); font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.95rem); line-height: 1.4; letter-spacing: 0.04em;
  margin-bottom: 1.1em;
}
.about-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem) !important;
  line-height: 2.15 !important; color: rgba(240, 230, 210, 0.9) !important;
  padding-left: 1.1em; border-left: 1px solid rgba(201, 160, 90, 0.45);
}
.about-text p {
  color: var(--cream-2); font-size: 0.96rem; line-height: 2.1; margin-bottom: 1.35em;
}
.about-text strong { color: #f6ecd8; font-weight: 700; }

.about-facts {
  position: sticky; top: 100px;
  border: 1px solid rgba(201, 160, 90, 0.18);
  background: linear-gradient(170deg, rgba(22, 18, 26, 0.8), rgba(9, 8, 13, 0.9));
  padding: clamp(20px, 2.6vw, 30px);
}
.about-facts h3 {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.34em;
  color: var(--gold); font-weight: 400; margin: 0 0 1.5em;
  padding-bottom: 1em; border-bottom: 1px solid rgba(201, 160, 90, 0.16);
}
.about-facts dl { margin: 0; display: flex; flex-direction: column; gap: 1.15em; }
.about-facts dl > div { display: grid; grid-template-columns: 3.4em 1fr; gap: 12px; }
.about-facts dt {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.12em;
  color: rgba(201, 160, 90, 0.85); padding-top: 0.15em;
}
.about-facts dd { margin: 0; font-size: 0.82rem; line-height: 1.85; color: rgba(240, 230, 210, 0.72); }

.cave-types {
  max-width: 1260px; margin: clamp(46px, 7vh, 76px) auto 0;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(201, 160, 90, 0.13); border: 1px solid rgba(201, 160, 90, 0.13);
}
.cave-type {
  background: #08070c; padding: clamp(22px, 2.6vw, 32px);
  transition: background 0.5s var(--ease);
  position: relative;
}
.cave-type:hover { background: #100d16; }
.ct-no {
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em;
  color: rgba(201, 160, 90, 0.55);
}
.cave-type h4 {
  margin: 0.9em 0 0.7em; font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: 0.08em; color: #f2e8d4;
}
.cave-type p { margin: 0; font-size: 0.8rem; line-height: 1.95; color: rgba(240, 230, 210, 0.55); }

/* ─────────── 08 数智新生 ─────────── */
.relics {
  padding: clamp(80px, 13vh, 145px) 0;
  background:
    radial-gradient(56% 40% at 76% 6%, rgba(26, 58, 148, 0.26), transparent 70%),
    linear-gradient(180deg, #06050a, #07080f 50%, #06050a);
  border-top: 1px solid rgba(201, 160, 90, 0.06);
}
.relics-grid {
  max-width: 1260px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 60px); align-items: start;
}
.rl-track { list-style: none; margin: 0; padding: 0; position: relative; }
.rl-track::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, rgba(122, 158, 255, 0.5), rgba(201, 160, 90, 0.35), transparent);
}
.rl-track li { position: relative; padding: 0 0 2.1em 1.9em; }
.rl-track li::before {
  content: ""; position: absolute; left: -4px; top: 0.5em; width: 9px; height: 9px;
  background: var(--ink); border: 1px solid rgba(122, 158, 255, 0.9);
  transform: rotate(45deg); box-shadow: 0 0 10px rgba(74, 116, 216, 0.6);
}
.rl-track b {
  display: block; font-family: var(--latin); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.14em; color: #9db6ff; margin-bottom: 0.5em;
}
.rl-track p { margin: 0; font-size: 0.9rem; line-height: 2; color: var(--cream-2); }

.relics-side { display: flex; flex-direction: column; gap: 1px; }
.relic-card {
  border: 1px solid rgba(201, 160, 90, 0.14); border-bottom: 0;
  background: rgba(12, 11, 18, 0.72); padding: clamp(18px, 2.2vw, 26px);
  display: flex; flex-direction: column; gap: 0.4em;
}
.relics-side .relic-card:last-of-type { border-bottom: 1px solid rgba(201, 160, 90, 0.14); }
.rc-k {
  font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.2em;
  color: rgba(240, 230, 210, 0.4);
}
.relic-card b {
  font-family: var(--latin); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 500;
  line-height: 1.05; color: #dfe7ff; letter-spacing: 0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.relic-card b i {
  font-style: normal; font-size: 0.34em; letter-spacing: 0.1em;
  color: rgba(157, 182, 255, 0.7); margin-left: 0.35em;
}
.relic-card p { margin: 0.35em 0 0; font-size: 0.74rem; line-height: 1.8; color: rgba(240, 230, 210, 0.45); }
.relics-note {
  margin: 1.4em 0 0; padding-left: 1em;
  border-left: 1px solid rgba(201, 160, 90, 0.35);
  font-size: 0.82rem; line-height: 1.95; color: rgba(240, 230, 210, 0.55);
}

/* ─────────── 11 报道筛选 ─────────── */
.press-filter {
  max-width: 1180px; margin: -1.6em auto 2.2em; padding: 0 clamp(20px, 5vw, 60px);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pf {
  background: none; border: 1px solid rgba(201, 160, 90, 0.22);
  color: rgba(240, 230, 210, 0.55);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 7px 16px; border-radius: 999px;
  transition: all 0.34s var(--ease);
}
.pf:hover { color: var(--cream); border-color: rgba(201, 160, 90, 0.5); }
.pf.is-active {
  background: rgba(201, 160, 90, 0.14); color: #fff4de;
  border-color: rgba(201, 160, 90, 0.6);
  box-shadow: 0 0 22px -8px rgba(201, 160, 90, 0.9);
}
.press-cat {
  display: inline-block; align-self: flex-start;
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em;
  color: rgba(157, 182, 255, 0.85);
  border: 1px solid rgba(122, 158, 255, 0.26);
  padding: 3px 9px; border-radius: 2px; margin-bottom: 0.3em;
}
.press-card[data-cat="culture"] .press-cat { color: rgba(201, 160, 90, 0.9); border-color: rgba(201, 160, 90, 0.3); }
.press-card[data-cat="depth"] .press-cat { color: rgba(196, 138, 106, 0.95); border-color: rgba(201, 138, 106, 0.3); }
.press-card.is-off { display: none; }

/* ─────────── 12 我的作品 ─────────── */
.works {
  padding: clamp(80px, 13vh, 150px) 0;
  background:
    radial-gradient(64% 44% at 24% 16%, rgba(143, 95, 56, 0.18), transparent 70%),
    radial-gradient(50% 36% at 84% 84%, rgba(26, 58, 148, 0.16), transparent 72%),
    linear-gradient(180deg, #06050a, #0c0a0d 52%, #06050a);
  border-top: 1px solid rgba(201, 160, 90, 0.08);
}
.work-feature {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}

/* 左：作品封面卡 */
.work-cover {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(201, 160, 90, 0.26);
  clip-path: polygon(7% 0, 100% 0, 100% 93%, 93% 100%, 0 100%, 0 7%);
  transition: transform 0.6s var(--ease), border-color 0.5s;
  background: #0a0810;
}
.work-cover:hover { transform: translateY(-6px); border-color: rgba(201, 160, 90, 0.55); }
.work-cover-img { position: absolute; inset: 0; }
.work-cover-img .plx-img {
  inset: -10%; filter: saturate(0.72) brightness(0.5) contrast(1.05);
  transition: filter 0.8s var(--ease), transform 0.9s var(--ease);
}
.work-cover:hover .work-cover-img .plx-img { filter: saturate(0.95) brightness(0.66) contrast(1.02); }
.work-cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 3, 8, 0.55) 0%, rgba(4, 3, 8, 0.1) 34%, rgba(4, 3, 8, 0.86) 78%, rgba(4, 3, 8, 0.97) 100%),
    repeating-linear-gradient(45deg, rgba(201, 160, 90, 0.05) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
.work-cover-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: clamp(24px, 3.4vw, 40px);
}
.work-tag {
  display: inline-block; font-family: var(--sans); font-size: 0.6rem;
  letter-spacing: 0.22em; color: var(--gold);
  border-left: 1px solid var(--gold); padding-left: 0.7em; margin-bottom: 1.1em;
}
.work-cover-body h3 {
  font-family: var(--kai); font-weight: 400;
  font-size: clamp(1.6rem, 2.9vw, 2.35rem); line-height: 1.36; letter-spacing: 0.06em;
  color: #fff8ea; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}
.work-cover-body p {
  margin: 0.9em 0 0; font-size: 0.8rem; line-height: 1.85;
  color: rgba(240, 230, 210, 0.62); max-width: 20em;
}
.work-read {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 1.4em;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em;
  color: rgba(240, 230, 210, 0.85);
  border-bottom: 1px solid rgba(201, 160, 90, 0.4); padding-bottom: 4px;
}
.work-read i { font-style: normal; transition: transform 0.4s var(--ease); }
.work-cover:hover .work-read i { transform: translate(3px, -3px); }
.work-corner {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  color: var(--gold); font-size: 0.8rem; opacity: 0.7;
}

/* 右：文字 */
.work-body { padding-top: 0.4em; }
.work-quote {
  font-family: var(--kai); font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.62rem); line-height: 1.95; letter-spacing: 0.04em;
  color: #f4ecdb; margin: 0 0 1.4em;
  padding-left: 1em; border-left: 1px solid rgba(201, 160, 90, 0.55);
}
.work-desc { font-size: 0.94rem; line-height: 2.1; color: var(--cream-2); }

.work-points { list-style: none; margin: 1.8em 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.work-points li {
  display: grid; grid-template-columns: 5.4em 1fr; align-items: baseline; gap: 14px;
  padding: 0.9em 0; border-top: 1px solid rgba(201, 160, 90, 0.12);
  background: rgba(255, 255, 255, 0.012);
}
.work-points li:last-child { border-bottom: 1px solid rgba(201, 160, 90, 0.12); }
.work-points b {
  font-family: var(--sans); font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.14em; color: var(--gold);
  display: flex; flex-direction: column; gap: 0.3em;
}
.work-points b span { color: rgba(240, 230, 210, 0.42); font-size: 0.66rem; letter-spacing: 0.1em; }
.work-points em { font-style: normal; font-size: 0.82rem; line-height: 1.9; color: rgba(240, 230, 210, 0.66); }

.work-meta {
  margin: 1.6em 0 1.8em; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(201, 160, 90, 0.12); border: 1px solid rgba(201, 160, 90, 0.12);
}
.work-meta > div { background: #08070c; padding: 0.85em 1em; }
.work-meta dt {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em;
  color: rgba(201, 160, 90, 0.7); margin-bottom: 0.45em;
}
.work-meta dd { margin: 0; font-size: 0.82rem; color: rgba(240, 230, 210, 0.8); }
.work-btn { margin-top: 0.2em; }

/* ─────────── 新增章节响应式 ─────────── */
@media (max-width: 1080px) {
  .mainnav > a, .nav-group > button { font-size: 0.72rem; padding: 8px 9px; }
  .about-inner, .relics-grid, .work-feature { grid-template-columns: 1fr; }
  .about-facts { position: static; }
  .cave-types { grid-template-columns: 1fr 1fr; }
  .work-cover { max-width: 460px; aspect-ratio: 4 / 3.4; }
}
@media (max-width: 900px) {
  .mainnav {
    position: fixed; inset: 0; z-index: 39;
    display: block; padding: calc(78px + env(safe-area-inset-top)) clamp(22px, 7vw, 56px) calc(44px + env(safe-area-inset-bottom));
    background: rgba(6, 5, 10, 0.97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .mainnav.is-open { opacity: 1; pointer-events: auto; }
  /* 打开菜单时顶栏必须去掉 backdrop-filter（它会劫持 fixed 定位），换实底 */
  .topbar.menu-open {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(6, 5, 10, 0.97);
    border-bottom: 1px solid rgba(201, 160, 90, 0.16);
  }
  .topbar.menu-open .sound-toggle, .topbar.menu-open .auth-btn { background: rgba(255, 255, 255, 0.05); }
  .mainnav > a, .nav-group > button {
    font-size: 1.02rem; letter-spacing: 0.12em; padding: 14px 4px;
    border-bottom: 1px solid rgba(201, 160, 90, 0.14); border-radius: 0;
    justify-content: space-between; width: 100%;
  }
  .nav-group { margin-top: 6px; }
  .nav-group:first-of-type { margin-top: 10px; }
  .mainnav > a:last-child { margin-top: 10px; }
  .mainnav > a:hover { background: none; color: var(--gold); }
  .nav-group > button { pointer-events: none; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.24em; padding-bottom: 8px; border-bottom: 0; }
  .nav-group > button i { display: none; }
  .nav-drop {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    background: none; border: 0; box-shadow: none; backdrop-filter: none;
    min-width: 0; padding: 0;
  }
  .nav-drop a { font-size: 0.92rem; padding: 11px 0 11px 14px; border-bottom: 1px solid rgba(201, 160, 90, 0.08); }
  .nav-drop a:hover { padding-left: 20px; background: none; }
  .nav-toggle { display: block; }
  .topbar { grid-template-columns: auto 1fr; }
  .topbar-actions { justify-self: end; }
}
/* 矮屏手机：收紧行距，保证 13 个条目全部可滚到 */
@media (max-width: 900px) and (max-height: 730px) {
  .mainnav { padding-top: calc(72px + env(safe-area-inset-top)); padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  .mainnav > a, .nav-group > button { font-size: 0.94rem; padding: 10px 4px; }
  .nav-drop a { font-size: 0.85rem; padding: 8px 0 8px 14px; }
  .nav-group { margin-top: 2px; }
  .nav-group > button { font-size: 0.66rem; padding-bottom: 6px; }
  .mainnav > a:last-child { margin-top: 4px; }
}
@media (max-width: 760px) {
  .hero { padding: 14vh 7vw 9vh; }
  .hero-side { display: none; }
  .hero-frame { inset: 10px; }
  .hero-frame::before, .hero-frame::after { width: 20px; height: 20px; }
  .hero-seal { display: none; }
  /* 移动端速览数据改为文档流内排列，避免与 CTA 按钮重叠 */
  .hero-meta {
    position: static; transform: none;
    margin: 3.2em auto 0; gap: 0;
    width: min(88vw, 420px);
  }
  .hero-meta b { font-size: 0.82rem; }
  .hero-meta span { font-size: 0.54rem; letter-spacing: 0.1em; }
  .hero-sub { font-size: 0.76rem; line-height: 1.85; margin-top: 1em; }
  .hero-kicker { font-size: 0.7rem; letter-spacing: 0.18em; text-indent: 0.18em; gap: 8px; }
  .hero-kicker::before, .hero-kicker::after { width: 14px; }
  .ht-small { letter-spacing: 0.4em; text-indent: 0.4em; margin-bottom: 1.5em; }
  .ht-lead { letter-spacing: 0.2em; text-indent: 0.2em; }
  .hero-en { letter-spacing: 0.32em; text-indent: 0.32em; font-size: 0.56rem; }
  .scroll-hint { display: none; }
  .about-facts dl > div { grid-template-columns: 3.2em 1fr; }
  .cave-types { grid-template-columns: 1fr; }
  .work-meta { grid-template-columns: 1fr; }
  .work-points li { grid-template-columns: 4.6em 1fr; }
  .press-filter { margin-top: -0.8em; }
}
@media (max-width: 420px) {
  .hero-meta { flex-wrap: wrap; gap: 12px 0; width: 88vw; }
  .hero-meta li { flex: 0 0 50%; }
  .hero-meta li + li::before { display: none; }
}

/* ═══════════ 文创玩偶「小孜」 ═══════════ */
.mascot {
  position: fixed; z-index: 70; width: 132px;
  user-select: none; -webkit-user-select: none;
  pointer-events: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5));
  animation: mascotPeek 11s ease-in-out infinite;
}
/* 身后的暖光，让它在深色页面上更醒目 */
.mascot::before {
  content: ""; position: absolute; inset: -16% -14% -8%;
  z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 168, 100, 0.2) 0%, rgba(214, 168, 100, 0.06) 54%, transparent 78%);
  filter: blur(8px);
}
@keyframes mascotPeek {
  0%, 84%, 100% { transform: rotate(0deg) scale(1); }
  88% { transform: rotate(-5deg) scale(1.03); }
  92% { transform: rotate(4deg) scale(1.03); }
  96% { transform: rotate(-2deg) scale(1); }
}
.mascot-body {
  pointer-events: auto; cursor: grab; touch-action: none;
  width: 100%; transform-origin: 50% 100%;
  transition: transform 0.25s var(--ease);
  animation: mascotBob 3.6s ease-in-out infinite;
  outline: none;
}
.mascot-body:hover { transform: scale(1.05) rotate(-2deg); }
.mascot-body:focus-visible svg { filter: drop-shadow(0 0 6px rgba(201, 160, 90, 0.9)); }
.mascot.is-drag .mascot-body {
  cursor: grabbing; animation-play-state: paused;
  transform: scale(1.1) rotate(0deg);
}
@keyframes mascotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
/* 姿势切换：默认全部隐藏，按 data-pose 点亮 */
.mascot-svg [data-g^="pose-"] { display: none; }
.mascot-svg[data-pose="wave"]  [data-g="pose-wave"],
.mascot-svg[data-pose="flute"] [data-g="pose-flute"],
.mascot-svg[data-pose="brush"] [data-g="pose-brush"],
.mascot-svg[data-pose="pray"]  [data-g="pose-pray"] { display: inline; }
.mascot-svg { display: block; width: 100%; height: auto; }
/* 吹埙的音符与小星 */
.mascot-note { animation: noteFloat 2.2s ease-in-out infinite; }
.mascot-note.n2 { animation-delay: 1.1s; }
@keyframes noteFloat {
  0% { opacity: 0; transform: translateY(7px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-15px); }
}
.mascot-spark { animation: sparkTw 2.4s ease-in-out infinite; }
@keyframes sparkTw { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* 话气泡 */
.mascot-bubble {
  position: absolute; bottom: calc(100% + 16px); right: -14px;
  width: max-content; max-width: 262px;
  background: rgba(22, 15, 10, 0.94);
  border: 1px solid rgba(201, 160, 90, 0.45);
  border-radius: 12px 12px 12px 3px;
  padding: 12px 30px 12px 15px;
  pointer-events: auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  animation: bubbleIn 0.35s var(--ease);
}
.mascot-bubble[hidden] { display: none; }
.mascot-bubble::after {
  content: ""; position: absolute; bottom: -6px; right: 30px;
  width: 11px; height: 11px;
  background: rgba(22, 15, 10, 0.94);
  border-right: 1px solid rgba(201, 160, 90, 0.45);
  border-bottom: 1px solid rgba(201, 160, 90, 0.45);
  transform: rotate(45deg);
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mascot-phrase {
  margin: 0; font-family: var(--kai); font-size: 0.84rem;
  line-height: 1.9; letter-spacing: 0.02em; color: var(--cream);
}
.mascot-x {
  position: absolute; top: 3px; right: 6px;
  background: none; border: 0; padding: 2px; line-height: 1;
  font-size: 15px; color: rgba(240, 230, 210, 0.38); cursor: pointer;
}
.mascot-x:hover { color: var(--gold); }
/* 气泡翻到下方（玩偶靠近顶部时） */
.mascot.bubble-below .mascot-bubble { bottom: auto; top: calc(100% + 14px); border-radius: 12px 12px 3px 12px; }
.mascot.bubble-below .mascot-bubble::after { bottom: auto; top: -6px; transform: rotate(-135deg); }

@media (max-width: 760px) {
  .mascot { width: 104px; }
  .mascot-bubble { right: -6px; max-width: 210px; padding: 10px 26px 10px 13px; }
  .mascot-phrase { font-size: 0.78rem; line-height: 1.8; }
  .mascot-bubble::after { right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-body, .mascot-note, .mascot-spark, .auth-btn:not(.is-in) { animation: none; }
}

/* ═══════════ 门厅 · 独立封面 ═══════════ */
html.portal-open { overflow: hidden; height: 100%; }
html.portal-skip .portal { display: none; }
.portal {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  background: #05040b;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.portal.is-leaving {
  opacity: 0; transform: scale(1.07); filter: blur(9px);
  pointer-events: none;
}
/* 背景：不重复内页的崖壁实景 —— 这里是一间更黑的洞，只有一道门透光 */
.portal-void {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(58% 40% at 50% 100%, rgba(96, 54, 22, 0.34) 0%, transparent 68%),
    radial-gradient(64% 46% at 50% 22%, rgba(24, 30, 62, 0.4) 0%, transparent 74%),
    linear-gradient(180deg, #04040a 0%, #05040d 44%, #090509 100%);
}
.portal-door {
  position: absolute; z-index: 1; left: 50%; bottom: -2px;
  width: clamp(230px, 27vw, 360px); height: 72vh;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 32% 32% 0 0;
  background: linear-gradient(180deg, rgba(255, 208, 150, 0.045) 0%, rgba(255, 198, 128, 0.11) 48%, rgba(255, 192, 122, 0.2) 100%);
  border: 1px solid rgba(255, 214, 166, 0.16);
  border-bottom: 0;
  box-shadow: 0 0 100px rgba(255, 190, 120, 0.16), inset 0 0 80px rgba(255, 196, 130, 0.12);
  filter: blur(1.5px);
  animation: portalDoor 9s ease-in-out infinite;
}
@keyframes portalDoor {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
/* 门前光尘 */
.portal-void::after {
  content: ""; position: absolute; left: 50%; bottom: 0; z-index: 1;
  width: clamp(260px, 32vw, 460px); height: 46vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 214, 160, 0.12), transparent 78%);
  filter: blur(30px);
  pointer-events: none;
}
.portal::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(74% 56% at 50% 52%, rgba(4, 3, 10, 0.6) 0%, transparent 76%),
    linear-gradient(180deg, rgba(4, 3, 10, 0.86) 0%, transparent 26%, transparent 72%, rgba(4, 3, 10, 0.92) 100%);
}
.portal-lattice {
  position: absolute; inset: 0; z-index: 1; opacity: 0.55;
  background-image:
    linear-gradient(45deg, rgba(201, 160, 90, 0.12) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(201, 160, 90, 0.12) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(64% 58% at 50% 50%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(64% 58% at 50% 50%, #000 0%, transparent 76%);
  animation: latShift 46s linear infinite;
}
/* 光尘 */
.portal-dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.portal-dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(240, 214, 168, 0.8);
  box-shadow: 0 0 8px 2px rgba(240, 200, 140, 0.3);
  animation: floatUp 16s linear infinite; opacity: 0;
}
.portal-dust i:nth-child(1) { left: 22%; bottom: 10%; }
.portal-dust i:nth-child(2) { left: 38%; bottom: 5%; animation-delay: 3.2s; animation-duration: 20s; }
.portal-dust i:nth-child(3) { left: 55%; bottom: 12%; animation-delay: 6.4s; animation-duration: 15s; }
.portal-dust i:nth-child(4) { left: 70%; bottom: 7%; animation-delay: 1.8s; animation-duration: 22s; }
.portal-dust i:nth-child(5) { left: 84%; bottom: 14%; animation-delay: 8.8s; animation-duration: 18s; }
/* 金线内框 + 四角折角 */
.portal-frame {
  position: absolute; z-index: 2; pointer-events: none;
  inset: clamp(14px, 2.4vw, 36px);
  border: 1px solid rgba(201, 160, 90, 0.16);
}
.portal-frame::before, .portal-frame::after {
  content: ""; position: absolute; width: 30px; height: 30px;
  border: 1px solid rgba(201, 160, 90, 0.5);
}
.portal-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.portal-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.portal-inner { position: relative; z-index: 3; text-align: center; padding: 0 6vw; }
.portal-kicker {
  font-family: var(--latin); font-weight: 500;
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  letter-spacing: 0.52em; text-indent: 0.52em;
  color: rgba(240, 230, 210, 0.4); margin: 0 0 3.2em;
  animation: portalRise 1.4s var(--ease) 0.2s both;
}
.portal-title {
  margin: 0;
  font-family: var(--brush); font-weight: 400; line-height: 1.05;
  font-size: clamp(4.6rem, 16vw, 11.5rem);
  letter-spacing: 0.14em; text-indent: 0.14em;
  color: #faf1de;
  text-shadow:
    0 0 50px rgba(255, 226, 178, 0.18),
    0 22px 70px rgba(0, 0, 0, 0.6),
    0 2px 2px rgba(0, 0, 0, 0.35);
  animation: portalRise 1.5s var(--ease) 0.42s both;
}
.portal-sub {
  font-family: var(--kai); font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.56em; text-indent: 0.56em;
  color: rgba(232, 196, 138, 0.85);
  margin: 2.1em 0 0;
  animation: portalRise 1.5s var(--ease) 0.66s both;
}
.portal-orn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 2.6em 0;
  animation: portalRise 1.5s var(--ease) 0.85s both;
}
.portal-orn i { width: clamp(34px, 6vw, 64px); height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 160, 90, 0.6)); }
.portal-orn i:last-child { transform: scaleX(-1); }
.portal-orn b { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 14px rgba(201, 160, 90, 0.9); }
.portal-btn {
  font-family: var(--kai); font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--cream); background: rgba(201, 160, 90, 0.07);
  border: 1px solid rgba(201, 160, 90, 0.55); border-radius: 2px;
  padding: 1.05em 2.6em; cursor: pointer;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.45s var(--ease), letter-spacing 0.45s var(--ease);
  animation: portalRise 1.5s var(--ease) 1.02s both;
}
.portal-btn:hover, .portal-btn:focus-visible {
  background: rgba(201, 160, 90, 0.2); color: #fff6e4;
  box-shadow: 0 0 34px rgba(201, 160, 90, 0.32), inset 0 0 18px rgba(201, 160, 90, 0.14);
  letter-spacing: 0.58em; outline: none;
}
.portal-hint {
  font-family: var(--kai); font-size: 0.68rem;
  letter-spacing: 0.34em; text-indent: 0.34em;
  color: rgba(240, 230, 210, 0.3); margin: 2.4em 0 0;
  animation: portalRise 1.5s var(--ease) 1.2s both;
}
.portal-foot {
  position: absolute; bottom: 4.2vh; left: 50%; transform: translateX(-50%);
  z-index: 3; margin: 0; white-space: nowrap;
  font-family: var(--kai); font-size: 0.66rem;
  letter-spacing: 0.4em; color: rgba(244, 226, 196, 0.55);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.8);
  animation: portalRise 1.5s var(--ease) 1.35s both;
}
@keyframes portalRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 进入后：封面内容次第浮现 */
.hero .hero-inner > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero .hero-seal, .hero .hero-meta, .hero .scroll-hint, .hero .hero-side {
  opacity: 0;
  transition: opacity 1.2s var(--ease) 1s;
}
body.entered .hero .hero-inner > * { opacity: 1; transform: none; }
body.entered .hero .hero-inner > *:nth-child(1) { transition-delay: 0.35s; }
body.entered .hero .hero-inner > *:nth-child(2) { transition-delay: 0.5s; }
body.entered .hero .hero-inner > *:nth-child(3) { transition-delay: 0.65s; }
body.entered .hero .hero-inner > *:nth-child(4) { transition-delay: 0.8s; }
body.entered .hero .hero-inner > *:nth-child(5) { transition-delay: 0.95s; }
body.entered .hero .hero-inner > *:nth-child(6) { transition-delay: 1.1s; }
body.entered .hero .hero-seal, body.entered .hero .hero-meta,
body.entered .hero .scroll-hint, body.entered .hero .hero-side { opacity: 1; }

@media (max-width: 760px) {
  .portal-frame { inset: 10px; }
  .portal-frame::before, .portal-frame::after { width: 20px; height: 20px; }
  .portal-kicker { margin-bottom: 2.4em; }
  .portal-btn { padding: 1em 2em; }
  .portal-foot { font-size: 0.58rem; letter-spacing: 0.28em; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-door, .portal-lattice, .portal-dust i { animation: none; }
  .portal-inner *, .portal-foot { animation: none; }
  .hero .hero-inner > *, .hero .hero-seal, .hero .hero-meta, .hero .scroll-hint, .hero .hero-side {
    opacity: 1; transform: none; transition: none;
  }
}
