/* =========================================================
   《我们》· 黑金液态玻璃
   ========================================================= */
:root {
  --bg: #08070a;
  --bg-2: #110e0c;
  --ink: #f3ebdd;
  --ink-2: rgba(243, 235, 221, .68);
  --ink-3: rgba(243, 235, 221, .42);
  --gold: #d9b779;
  --gold-soft: #ead6ae;
  --champagne: #f4e4c1;
  --rose: #e8c3b0;
  --line: rgba(234, 214, 174, .28);
  --line-2: rgba(234, 214, 174, .12);

  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "STSong", "SimSun", serif;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;

  --nav-h: 76px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --pad-x: clamp(20px, 5vw, 96px);
  --maxw: 1360px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* 滚动吸附：每个展厅停在屏幕顶部。展厅自身已留出导航高度，所以不再需要 scroll-padding */
/* 吸附逻辑在 main.js（停止滚动后贴到最近的展厅顶部），CSS 只保留平滑滚动 */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
main { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(217, 183, 121, .10), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(232, 195, 176, .06), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .02em;
  /* 横向溢出由 html 处理；body 不能设 overflow，否则会变成独立滚动容器，滚动吸附失效 */
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
::selection { background: rgba(217, 183, 121, .35); }

/* ---------- 通用文字 ---------- */
.label {
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .38em;
  color: var(--gold);
  text-transform: uppercase;
}
.num { font-family: var(--display); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- 液态玻璃（Apple 风格） ---------- */
.glass {
  --lx: -999px; --ly: -999px;    /* 跟随鼠标的高光位置，由 JS 设置 */
  --glass-fill: linear-gradient(135deg, rgba(255, 248, 235, .17), rgba(255, 248, 235, .045) 42%, rgba(217, 183, 121, .10));
  position: relative;
  background:
    radial-gradient(260px circle at var(--lx) var(--ly), rgba(255, 250, 240, .16), transparent 60%),   /* 鼠标高光 */
    radial-gradient(130% 70% at 18% -12%, rgba(255, 250, 240, .24), transparent 48%),                 /* 顶部反光 */
    radial-gradient(90% 60% at 100% 112%, rgba(217, 183, 121, .18), transparent 60%),                 /* 底部暖色折射 */
    var(--glass-fill);
  -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.1);
  backdrop-filter: blur(30px) saturate(190%) brightness(1.1);
  border: 1px solid rgba(234, 214, 174, .10);
  box-shadow:
    inset 0 1px 1px rgba(255, 252, 245, .42),           /* 上沿高光 */
    inset 0 -1px 1px rgba(217, 183, 121, .22),          /* 下沿金色反射 */
    inset 0 -14px 28px -16px rgba(244, 228, 193, .22),  /* 玻璃厚度感 */
    inset 14px 0 30px -22px rgba(255, 250, 240, .18),
    0 28px 64px -26px rgba(0, 0, 0, .9),
    0 0 0 .5px rgba(0, 0, 0, .5);
  isolation: isolate;
}
.glass::before {               /* 渐变描边：左上与右下更亮，像玻璃边缘折射的光 */
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg, rgba(255, 250, 240, .85), rgba(234, 214, 174, .22) 28%, rgba(234, 214, 174, .05) 55%, rgba(217, 183, 121, .30) 80%, rgba(244, 228, 193, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.glass--btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--champagne);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.glass--btn i { font-style: normal; font-family: var(--display); letter-spacing: 0; transition: transform .35s var(--ease); }
.glass--btn:hover { border-color: rgba(234, 214, 174, .6); box-shadow: inset 0 1px 0 rgba(255,250,240,.3), 0 0 40px -6px rgba(217,183,121,.45); }
.glass--btn:hover i { transform: translateX(4px); }
.glass--btn:active { transform: scale(.97); }

/* 降级：不支持 backdrop-filter 时用更实的底色 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(28, 24, 20, .88); }
}

/* ---------- 背景层 ---------- */
#water { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 183, 121, .10), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   入口
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  height: 100vh; height: 100svh; height: 100dvh;
  padding: var(--safe-t) 24px var(--safe-b);
  background: radial-gradient(60% 50% at 50% 50%, #17120d 0%, var(--bg) 70%);
  overflow: hidden;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s;
}
.intro.is-leaving { opacity: 0; filter: blur(10px); pointer-events: none; }
.intro__orbit, .intro__content { transition: transform 1.1s var(--ease); }
.intro.is-leaving .intro__orbit, .intro.is-leaving .intro__content { transform: scale(1.18); }   /* 镜头推进 */
.intro__orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(217, 183, 121, .28);
  opacity: 0;
  animation: ringIn 1.2s var(--ease-out) forwards, spin linear infinite;
}
.ring::after {                  /* 轨道上的光点 */
  content: ""; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--champagne); box-shadow: 0 0 14px 3px rgba(244, 228, 193, .7);
}
.ring--1 { width: min(78vmin, 640px); aspect-ratio: 1; animation-duration: 1.2s, 38s; transform: rotateX(68deg); }
.ring--2 { width: min(60vmin, 500px); aspect-ratio: 1; animation-duration: 1.2s, 26s; animation-delay: .15s, 0s; border-color: rgba(232, 195, 176, .22); }
.ring--3 { width: min(96vmin, 820px); aspect-ratio: 1; animation-duration: 1.2s, 60s; animation-delay: .3s, 0s; border-style: dashed; border-color: rgba(217, 183, 121, .14); }
.halo {
  position: absolute; width: min(56vmin, 460px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 248, 235, .18), rgba(217, 183, 121, .07) 45%, transparent 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 60px rgba(244, 228, 193, .08);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes ringIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: 1.05; opacity: .8; } }

.intro__content { position: relative; text-align: center; }
.intro__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 16vmin, 168px);
  line-height: 1.1;
  letter-spacing: .18em;
  padding-left: .18em;          /* 平衡字距让标题居中 */
  opacity: 0;
  animation: fadeUp 1s .45s var(--ease-out) forwards;
}
/* 香槟金高光扫过 */
.shine {
  background: linear-gradient(100deg, #b8955a 0%, #ead6ae 35%, #fff6e2 50%, #ead6ae 65%, #b8955a 100%);
  background-size: 250% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.intro__title.shine { animation: fadeUp 1s .45s var(--ease-out) forwards, sweep 1.8s 1.1s var(--ease) forwards; }
@keyframes sweep { to { background-position: -20% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.intro__sub {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(11px, 1.4vmin, 14px);
  letter-spacing: .55em;
  padding-left: .55em;
  color: var(--ink-2);
  opacity: 0;
  animation: fadeUp .9s .9s var(--ease-out) forwards;
}
.intro__btn { margin-top: clamp(36px, 7vmin, 64px); opacity: 0; animation: fadeUp .9s 1.3s var(--ease-out) forwards; }

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + var(--safe-t));
  padding: var(--safe-t) var(--pad-x) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  opacity: 0; transform: translateY(-16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
body.is-entered .nav { opacity: 1; transform: none; pointer-events: auto; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 7, 10, .85), rgba(8, 7, 10, 0));
  pointer-events: none;
}
.nav__logo { font-family: var(--serif); font-size: 22px; letter-spacing: .3em; color: var(--champagne); }
.nav__plates { display: flex; gap: 4px; padding: 5px; border-radius: 999px; }
.nav__plates a {
  position: relative;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink-2);
  transition: color .3s, background .3s;
}
.nav__plates a:hover { color: var(--champagne); }
.nav__plates a.is-active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  box-shadow: 0 0 22px -4px rgba(217, 183, 121, .6);
}
.nav__right { display: flex; align-items: center; gap: 10px; }
.music {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: .15em; color: var(--ink-2);
}
.music__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.music__bars i { width: 2px; height: 100%; background: var(--gold); border-radius: 1px; transform-origin: bottom; animation: bar 1s ease-in-out infinite; }
.music__bars i:nth-child(2) { animation-delay: -.3s; }
.music__bars i:nth-child(3) { animation-delay: -.6s; }
.music__bars i:nth-child(4) { animation-delay: -.15s; }
.music.is-paused .music__bars i { animation-play-state: paused; transform: scaleY(.25); }
@keyframes bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { width: 16px; height: 1px; background: var(--champagne); transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   章节通用
   ========================================================= */
main { position: relative; z-index: 3; }
.sec {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + var(--safe-t) + clamp(32px, 6vh, 80px)) var(--pad-x) clamp(64px, 10vh, 120px);
  max-width: calc(var(--maxw) + var(--pad-x) * 2);
  margin: 0 auto;
  scroll-snap-align: start;
}
/* 比一屏还高的展厅（故事），底部也给一个吸附点 */
.snap-end { scroll-snap-align: end; height: 1px; }
.sec__head { text-align: center; margin-bottom: clamp(36px, 6vh, 72px); }

/* 视差：JS 写入 --py，用独立的 translate 属性，不影响元素自己的 transform 动画 */
[data-depth] { translate: 0 var(--py, 0px); will-change: translate; }
/* Safari 14.0 及更早不支持独立 translate 属性，直接关掉视差 */
@supports not (translate: 0) { [data-depth] { will-change: auto; } }
.sec__title {
  margin: 16px 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.3;
  letter-spacing: .12em;
  color: var(--champagne);
}
.sec__desc { margin: 0; color: var(--ink-3); font-size: 15px; letter-spacing: .15em; }
.m-br { display: none; }

/* 空间化滚动：进入视口时像走近展品 */
.reveal { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* =========================================================
   大厅
   ========================================================= */
.hall {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px);
}
.hall__sculpture { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; max-height: 62svh; justify-self: center; }
.sculpt { position: absolute; border-radius: 50%; }
.sculpt--a { inset: 10% 22% 22% 10%; animation: float 9s ease-in-out infinite; }
.sculpt--b { inset: 34% 8% 8% 34%; border-radius: 42% 58% 50% 50% / 50% 44% 56% 50%; animation: float 11s -3s ease-in-out infinite reverse; background: linear-gradient(135deg, rgba(232,195,176,.16), rgba(255,248,235,.03) 55%, rgba(217,183,121,.10)); }
.sculpt--c {
  inset: 38% 38% 38% 38%;
  background: radial-gradient(circle at 35% 30%, #fff6e2, var(--gold) 45%, #7a5d2e 100%);
  box-shadow: 0 0 60px 10px rgba(217, 183, 121, .35);
  animation: float 7s -1s ease-in-out infinite;
}
.sculpt__orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line-2);
  transform: rotateX(70deg) rotateZ(20deg);
}
.sculpt__orbit::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid transparent; border-top-color: var(--gold);
  animation: spin 8s linear infinite;
}
@keyframes float { 50% { transform: translate3d(0, -14px, 0) rotate(4deg); } }
.hall__title {
  margin: 20px 0 18px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.35; letter-spacing: .1em;
  color: var(--champagne);
}
.hall__desc { margin: 0 0 32px; color: var(--ink-2); max-width: 26em; }
.hall__count { display: inline-flex; align-items: baseline; gap: 14px; padding: 18px 28px; border-radius: 22px; }
.hall__count strong { font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--champagne); }
.hall__unit { font-family: var(--serif); color: var(--ink-2); }
.scroll-hint {
  position: absolute; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .4em; color: var(--ink-3);
}
.scroll-hint span { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* =========================================================
   故事展品区
   ========================================================= */
.theme-tabs { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 48px; padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.theme-tabs::-webkit-scrollbar { display: none; }
.theme-tabs button { flex: none; min-height: 44px; padding: 6px 20px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; line-height: 1.3; color: var(--ink-3); transition: color .3s, background .3s; }
.theme-tabs button b { font-family: var(--display); font-weight: 400; font-size: 10px; letter-spacing: .3em; }
.theme-tabs button span { font-family: var(--serif); font-size: 14px; letter-spacing: .15em; }
.theme-tabs button.is-active { color: var(--champagne); background: rgba(217, 183, 121, .14); box-shadow: inset 0 0 0 1px var(--line); }
.exhibits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2vw, 32px); perspective: 1200px; }
.exhibit {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px; border-radius: 26px;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, opacity .6s var(--ease);
  will-change: transform;
}
.exhibit::after {               /* 跟随鼠标的玻璃高光 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 246, 226, .16), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.exhibit:hover { border-color: rgba(234, 214, 174, .6); box-shadow: inset 0 1px 0 rgba(255,250,240,.3), 0 30px 60px -24px rgba(0,0,0,.8), 0 0 50px -20px rgba(217,183,121,.5); }
.exhibit:hover::after { opacity: 1; }
.exhibit.is-hidden { display: none; }
.exhibit__art { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; margin-bottom: 20px; background: #0e0c0a; }
.exhibit__art img { width: 100%; height: 100%; object-fit: cover; }
.exhibit__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.exhibit__no { font-family: var(--display); font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.exhibit__title { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .1em; color: var(--champagne); }
.exhibit__sum { margin: 0; color: var(--ink-2); font-size: 14px; }
.exhibit__foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.exhibit__foot .num { letter-spacing: .15em; }

/* ---------- 艺术化占位装置（没有照片时显示） ---------- */
.art { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at var(--ax, 30%) var(--ay, 20%), rgba(217,183,121,.22), transparent 55%),
              radial-gradient(90% 80% at 85% 90%, rgba(232,195,176,.14), transparent 60%), #0d0b09; }
.art i { position: absolute; border-radius: 50%; }
.art .a1 { width: 46%; aspect-ratio: 1; left: var(--x1, 18%); top: var(--y1, 20%); border: 1px solid rgba(234,214,174,.45); }
.art .a2 { width: 30%; aspect-ratio: 1; left: var(--x2, 50%); top: var(--y2, 40%);
  background: linear-gradient(135deg, rgba(255,248,235,.28), rgba(255,248,235,.02)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,250,240,.25); }
.art .a3 { width: 9%; aspect-ratio: 1; left: var(--x3, 62%); top: var(--y3, 28%);
  background: radial-gradient(circle at 35% 30%, #fff6e2, var(--gold) 50%, #7a5d2e); box-shadow: 0 0 24px 4px rgba(217,183,121,.45); }
.art .a4 { left: -10%; right: -10%; top: var(--y4, 70%); height: 1px; border-radius: 0; background: linear-gradient(90deg, transparent, rgba(234,214,174,.5), transparent); transform: rotate(var(--r4, -8deg)); }
.art b { position: absolute; right: 14px; bottom: 10px; font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .3em; color: rgba(234,214,174,.5); }

/* =========================================================
   时间长廊
   ========================================================= */
.corridor { position: relative; overflow-x: auto; overflow-y: hidden; padding: 20px 0 40px; scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.corridor::-webkit-scrollbar { display: none; }
.corridor.is-drag { cursor: grabbing; }
.corridor__track { position: relative; display: flex; gap: clamp(24px, 3vw, 48px); width: max-content; padding: 0 8vw; }
.corridor__rail { position: absolute; left: 0; right: 0; top: 118px; height: 1px; background: var(--line-2); }
.corridor__rail i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, transparent, var(--gold), var(--champagne)); box-shadow: 0 0 12px rgba(217,183,121,.8); transition: width .5s var(--ease); }
.node { position: relative; width: clamp(240px, 22vw, 300px); flex: none; opacity: .35; transition: opacity .6s var(--ease), transform .6s var(--ease); transform: translateY(14px); }
.node.is-lit { opacity: 1; transform: none; }
.node__chapter { height: 24px; font-family: var(--display); font-size: 11px; letter-spacing: .35em; color: var(--gold); }
.node__date { margin: 14px 0 0; font-family: var(--display); font-size: 30px; line-height: 1.2; color: var(--champagne); letter-spacing: .05em; }
.node__dot { position: relative; display: block; width: 13px; height: 13px; margin: 26px 0 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); transition: box-shadow .6s, background .6s; }
.node.is-lit .node__dot { background: var(--champagne); box-shadow: 0 0 0 6px rgba(217,183,121,.15), 0 0 26px 6px rgba(244,228,193,.55); }
.node.is-current .node__dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.node__card { padding: 20px 22px; border-radius: 20px; }
.node__place { font-size: 12px; letter-spacing: .25em; color: var(--ink-3); }
.node__title { margin: 6px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .12em; color: var(--champagne); }
.node__line { margin: 0; font-size: 14px; color: var(--ink-2); }
.node__no { position: absolute; right: 18px; top: 18px; font-family: var(--display); font-size: 12px; color: var(--gold); letter-spacing: .15em; }

/* =========================================================
   环形胶片墙
   ========================================================= */
.photos { overflow: hidden; max-width: none; }
.film-stage { position: relative; height: clamp(320px, 52svh, 560px); perspective: 1800px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.film-stage.is-drag { cursor: grabbing; }
.film-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.film {
  position: absolute;
  width: var(--fw, 220px); height: calc(var(--fw, 220px) * 1.32);
  left: calc(var(--fw, 220px) / -2); top: calc(var(--fw, 220px) * -.66);
  padding: 10px 10px 34px;
  border-radius: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.film:hover { border-color: rgba(234, 214, 174, .7); box-shadow: 0 0 40px -10px rgba(217, 183, 121, .6); }
.film__img { position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: #0d0b09; }
.film__img img { width: 100%; height: 100%; object-fit: cover; }
.film__cap { position: absolute; left: 14px; right: 14px; bottom: 8px; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }
.film__cap .num { color: var(--gold); flex: none; }
.film__cap span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: 6px; }
/* 胶片孔 */
.film::after { content: ""; position: absolute; left: 14px; right: 14px; top: 3px; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(234,214,174,.25) 0 6px, transparent 6px 14px); border-radius: 2px; }
.film-tip { margin: 8px 0 0; text-align: center; font-size: 12px; letter-spacing: .3em; color: var(--ink-3); }

/* =========================================================
   纪念日长廊
   ========================================================= */
.plaques { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.plaque {
  position: relative; padding: 30px 26px 26px; border-radius: 6px 6px 26px 26px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(244,228,193,.16), rgba(217,183,121,.04) 40%, rgba(255,248,235,.08));
}
.plaque::after { content: ""; position: absolute; left: 50%; top: 0; width: 60%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--champagne), transparent); }
.plaque__no { font-family: var(--display); font-size: 12px; color: var(--gold); letter-spacing: .3em; }
.plaque__en { margin: 14px 0 4px; font-family: var(--display); font-size: 10px; letter-spacing: .35em; color: var(--ink-3); }
.plaque__name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .15em; color: var(--champagne); }
.plaque__date { margin: 6px 0 20px; font-family: var(--display); font-size: 14px; letter-spacing: .2em; color: var(--ink-2); }
.plaque__count { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.plaque__count strong { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: transparent;
  background: linear-gradient(180deg, #fff6e2, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.plaque__count span { font-size: 13px; color: var(--ink-3); letter-spacing: .15em; }
.plaque__sub { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); letter-spacing: .15em; font-variant-numeric: tabular-nums; }

/* =========================================================
   发光地图
   ========================================================= */
.map-frame { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 70svh; width: 100%; margin: 0 auto; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-grid { stroke: rgba(234,214,174,.07); stroke-width: 1; }
.map-coast { fill: none; stroke: rgba(234,214,174,.18); stroke-width: 1; stroke-dasharray: 2 6; }
.map-route { fill: none; stroke: url(#routeGrad); stroke-width: 2; stroke-linecap: round; filter: url(#glow); }
.map-route--wide { stroke-width: 10; opacity: .12; filter: none; }
.map-node { cursor: pointer; }
.map-node .dot { fill: var(--champagne); filter: url(#glow); }
.map-node .ring { fill: none; stroke: var(--gold); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.map-node .hit { fill: transparent; }
.map-node text { fill: var(--ink-2); font-family: var(--serif); font-size: 15px; letter-spacing: .2em; }
.map-node text.en { fill: var(--gold); font-family: var(--display); font-size: 9px; letter-spacing: .35em; }
.map-node.is-active .dot { fill: #fff; }
.map-node.is-active text { fill: var(--champagne); }
.map-card { position: absolute; right: 20px; bottom: 20px; width: min(320px, calc(100% - 40px)); padding: 18px; border-radius: 20px; animation: fadeUp .5s var(--ease-out); }
.map-card__art { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.map-card__art img { width: 100%; height: 100%; object-fit: cover; }
.map-card h3 { margin: 4px 0; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .15em; color: var(--champagne); }
.map-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.map-card__meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--ink-3); letter-spacing: .12em; }
.map-card__close { position: absolute; right: 10px; top: 6px; width: 32px; height: 32px; font-size: 20px; color: var(--ink-3); }

/* =========================================================
   结尾
   ========================================================= */
.ending { display: grid; place-items: center; text-align: center; max-width: none; overflow: hidden; }
.ending__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ending__lines path { fill: none; stroke: rgba(217,183,121,.35); stroke-width: 1; }
.ending__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 5vh, 48px); }
.unfinished { width: clamp(180px, 22vw, 240px); aspect-ratio: 3 / 4; border-radius: 6px; display: grid; place-items: center; padding: 20px; border-style: dashed; }
.unfinished__no { font-family: var(--display); font-size: 48px; line-height: 1; color: var(--gold); }
.unfinished__t { margin: 12px 0 2px; font-family: var(--serif); letter-spacing: .2em; color: var(--champagne); }
.unfinished__en { font-family: var(--display); font-size: 9px; letter-spacing: .35em; color: var(--ink-3); }
.unfinished__cursor { display: inline-block; width: 1px; height: 18px; margin-top: 10px; background: var(--gold); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ending__text p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 36px); line-height: 1.9; letter-spacing: .18em; color: var(--champagne); }
.ending__text p + p { color: var(--ink-2); }

/* =========================================================
   详情层（故事 / 照片）
   ========================================================= */
.viewer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); }
.viewer[hidden] { display: none; }
.viewer__bg { position: absolute; inset: 0; background: rgba(5, 4, 6, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .5s var(--ease); }
.viewer.is-open .viewer__bg { opacity: 1; }
.viewer__panel {
  position: relative; width: min(1080px, 100%); max-height: calc(100svh - 32px - var(--safe-t) - var(--safe-b));
  border-radius: 30px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(135deg, rgba(40,33,26,.82), rgba(16,13,11,.9));
  opacity: 0; transform: scale(.92) translateY(20px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.viewer.is-open .viewer__panel { opacity: 1; transform: none; }
.viewer__close { position: absolute; right: 14px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink-2); background: rgba(0,0,0,.3); }
.viewer__close:hover { color: var(--champagne); }
.viewer__body { overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: 1.2fr 1fr; }
.viewer__media { position: relative; min-height: 360px; background: #0d0b09; display: grid; gap: 2px; }
.viewer__media img { width: 100%; height: 100%; max-height: 80svh; object-fit: contain; background: #000; }
.viewer__media .art { position: relative; min-height: 360px; }
.viewer__text { padding: clamp(28px, 4vw, 52px); }
.viewer__text h3 { margin: 14px 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 38px); letter-spacing: .12em; color: var(--champagne); }
.viewer__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; font-size: 13px; letter-spacing: .15em; color: var(--ink-3); }
.viewer__meta .num { color: var(--gold); }
.viewer__text p { margin: 0 0 14px; color: var(--ink-2); line-height: 2; }
.viewer__lead { font-family: var(--serif); font-size: 17px; color: var(--champagne) !important; }
.viewer__nav { display: flex; gap: 10px; margin-top: 28px; }
.viewer__nav button { min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 13px; letter-spacing: .15em; color: var(--ink-2); }

/* 点击时粒子散开 */
.burst { position: fixed; z-index: 90; width: 4px; height: 4px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 8px var(--gold); pointer-events: none; animation: burst .8s var(--ease-out) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* =========================================================
   响应式
   ========================================================= */
/* 超宽屏 21:9 / 4K：加留白，不拉伸 */
@media (min-width: 1920px) {
  :root { --maxw: 1520px; --nav-h: 88px; }
  body { font-size: 17px; }
}
@media (min-width: 2560px) {
  :root { --maxw: 1800px; }
  html { font-size: 125%; }
  body { font-size: 20px; }
  .nav__plates a { font-size: 17px; padding: 10px 22px; }
  .label { font-size: 13px; }
}
@media (min-aspect-ratio: 2/1) {
  .map-frame { aspect-ratio: 21 / 9; }
}

/* 高度较小的横屏显示器 */
@media (min-width: 900px) and (max-height: 760px) {
  :root { --nav-h: 64px; }
  .sec__head { margin-bottom: 28px; }
  .hall__sculpture { max-height: 56svh; }
  .film-stage { height: clamp(280px, 58svh, 460px); }
  .map-frame { max-height: 64svh; }
}

/* 平板与小屏电脑 */
@media (max-width: 1080px) {
  .nav__plates a { padding: 8px 12px; letter-spacing: .12em; }
  .music__name { display: none; }
}

/* 手机 */
@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .menu-btn { display: inline-flex; }
  .nav__plates {
    position: fixed; left: 16px; right: 16px; top: calc(var(--nav-h) + var(--safe-t));
    flex-direction: column; gap: 2px; padding: 10px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(40,33,26,.78), rgba(16,13,11,.86));
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav__plates.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__plates a { display: flex; align-items: center; min-height: 48px; padding: 0 18px; font-size: 16px; }
  .music { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }

  .sec { min-height: auto; padding-bottom: 72px; }
  .hall { grid-template-columns: 1fr; text-align: center; min-height: 100svh; min-height: 100dvh; align-content: center; gap: 12px; }
  .hall__sculpture { width: 72vw; max-height: 38svh; }
  .hall__desc { margin-left: auto; margin-right: auto; }
  .m-br { display: inline; }

  .theme-tabs { justify-content: flex-start; width: 100%; }
  .exhibit { padding: 16px; border-radius: 22px; }

  /* 时间线：手机端改为竖向，上下滚动前进 */
  .corridor { overflow: visible; cursor: auto; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .corridor__track { flex-direction: column; width: auto; padding: 0 0 0 30px; gap: 28px; }
  .corridor__rail { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .corridor__rail i { width: 100% !important; height: var(--fill, 0%); background: linear-gradient(180deg, transparent, var(--gold), var(--champagne)); transition: height .5s var(--ease); }
  .node { width: 100%; transform: translateX(14px); }
  .node__dot { position: absolute; left: -30px; top: 6px; margin: 0; }
  .node__date { margin: 4px 0 12px; font-size: 24px; }
  .node__chapter { height: auto; }

  .film-stage { height: clamp(300px, 56svh, 440px); }

  .map-frame { aspect-ratio: 3 / 4; max-height: 72svh; border-radius: 24px; }
  .map-card { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px 16px; }
  .map-card__art { display: none; }
  .map-card h3 { font-size: 19px; }

  .viewer { padding: 0; place-items: end center; }
  .viewer__panel { border-radius: 26px 26px 0 0; max-height: calc(92svh - var(--safe-t)); padding-bottom: var(--safe-b); }
  .viewer__body { grid-template-columns: 1fr; }
  .viewer__media, .viewer__media .art { min-height: 240px; }
  .viewer__media img { max-height: 52svh; }
}

/* 手机横屏 */
@media (max-height: 500px) and (orientation: landscape) {
  .hall { grid-template-columns: 1fr 1fr; text-align: left; }
  .hall__sculpture { max-height: 70svh; width: auto; height: 70svh; }
  .film-stage { height: 80svh; }
  .map-frame { aspect-ratio: 16 / 9; max-height: 80svh; }
  .viewer__body { grid-template-columns: 1fr 1fr; }
}

/* 用户偏好减少动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  html { scroll-behavior: auto; }
}
