/* ============================================================
   上海艺术品博物馆 · 官网改版提案
   设计系统：紫金 · 宣纸 · 祥云 · 回纹 · 月洞
   ============================================================ */

/* 主视觉拉丁字体本地托管；中文优先使用系统宋体，避免大量外部字体分片请求 */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --zi-950: #13061f;
  --zi-900: #1d0a2e;
  --zi-800: #2a1042;
  --zi-700: #3b185b;
  --zi-600: #522379;
  --zi-500: #6a3396;
  --zi-300: #b39ad0;
  --jin: #c9a45c;
  --jin-light: #e6cf98;
  --jin-pale: #f4e9cc;
  --jin-deep: #96733a;
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --ink: #2a1e33;
  --ink-soft: #62566b;
  --line: rgba(150, 115, 58, .28);
  --zhu: #a8342a;

  --serif: "SACM Serif", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --latin: "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --brush: "STKaiti", "KaiTi", "Kaiti SC", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 84px;

  /* 纹样 */
  --cloud: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'><g fill='none' stroke='%23c9a45c' stroke-width='1.1' stroke-linecap='round'><path d='M20 70c0-12 16-16 22-6 2-12 20-16 26-4 6-10 24-8 24 6 10-2 16 8 8 14H28c-6 0-10-6-8-10z'/><path d='M42 64c-2 6 6 8 8 3 1-4-4-6-6-3M68 60c-2 7 6 10 9 5 2-4-4-7-6-4'/><path d='M130 30c0-9 12-12 17-5 2-9 15-12 20-3 5-7 18-6 18 5 8-2 12 6 6 10h-55c-5 0-8-4-6-7z'/><path d='M147 25c-1 5 5 6 6 2 1-3-3-4-4-2'/></g></svg>");
  --fret: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'><g fill='none' stroke='%23c9a45c' stroke-width='1'><path d='M0 11.5h11.5v-11h-10v8h7v-5h-4'/><path d='M12 .5h11.5v11h-10v-8h7v5h-4'/></g></svg>");
  --lattice: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><g fill='none' stroke='%23c9a45c' stroke-width='.8' opacity='.5'><path d='M0 0h48v48H0z'/><path d='M14 14h20v20H14z'/><path d='M24 0v14M24 34v14M0 24h14M34 24h14'/></g></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* 宣纸肌理 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.latin { font-family: var(--latin); letter-spacing: .08em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 图片兜底 ---------- */
.img-box { position: relative; overflow: hidden; background: var(--zi-800); }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.img-box.fallback { background: linear-gradient(135deg, var(--zi-700), var(--zi-900)); }
.img-box.fallback::after {
  content: attr(data-alt); position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--jin-light); font-size: 14px; letter-spacing: .3em; text-align: center; padding: 20px;
  background: var(--cloud) center/180px repeat; background-blend-mode: overlay;
}
.img-box.fallback img { opacity: 0; }

/* ============================================================
   加载动画：钤印 + 卷轴开合
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  pointer-events: none;
}
.loader .half {
  position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--zi-900);
  transition: transform 1.1s var(--ease) .1s;
}
.loader .half.l { left: 0; border-right: 1px solid var(--jin-deep); }
.loader .half.r { right: 0; border-left: 1px solid var(--jin-deep); }
.loader .half::after { content: ""; position: absolute; inset: 0; background: var(--cloud) center/260px; opacity: .07; }
.loader .mark { position: relative; z-index: 2; text-align: center; color: var(--jin); transition: opacity .5s; }
.loader .mark .seal { width: 76px; height: 76px; margin: 0 auto 22px; font-size: 26px; animation: stamp .7s var(--ease) both; }
.loader .mark p { font-size: 18px; letter-spacing: .6em; padding-left: .6em; animation: fadeUp .8s .35s var(--ease) both; }
.loader .mark small { display: block; font-family: var(--latin); font-size: 12px; letter-spacing: .35em; opacity: .7; margin-top: 6px; animation: fadeUp .8s .5s var(--ease) both; }
.loader.done .half.l { transform: translateX(-101%); }
.loader.done .half.r { transform: translateX(101%); }
.loader.done .mark { opacity: 0; }
.loader.gone { display: none; }
@keyframes stamp { 0% { transform: scale(1.8) rotate(-8deg); opacity: 0; } 60% { transform: scale(.94) rotate(0); opacity: 1; } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 印章 ---------- */
.seal {
  display: inline-grid; grid-template-columns: 1fr 1fr; place-items: center;
  width: 46px; height: 46px; padding: 4px; border-radius: 4px;
  background: var(--zhu); color: #fbe9dc; font-family: var(--brush); font-size: 16px; line-height: 1;
  box-shadow: inset 0 0 0 2px var(--zhu), inset 0 0 0 3px rgba(255,235,220,.55);
  flex: none;
}
.seal span { display: block; }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: relative; z-index: 60; background: var(--zi-950); color: var(--jin-light);
  font-size: 13px; letter-spacing: .06em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar .status { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; min-width: 0; padding-left: 2px; }
.topbar .status .js-status { overflow: hidden; text-overflow: ellipsis; }
/* 开放中：纯色墨绿（祖母绿感），柔和的渐变光晕由内向外晕开、淡去 */
/* 圆点对齐到汉字的视觉中线：底边先贴基线，再上移到基线以上约 0.33em（宋体、思源宋体、苹方的汉字墨迹中心都在这附近），不受字体行高差异影响 */
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; position: relative; background: #135a3f; display: inline-block; align-self: baseline; transform: translateY(calc(4px - .33em)); }
.topbar .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,139,98,.75) 0%, rgba(34,118,82,.4) 35%, rgba(19,90,63,0) 70%);
  animation: inkGlow 2.6s ease-out infinite; pointer-events: none; }
@keyframes inkGlow { 0% { transform: scale(.3); opacity: .95; } 100% { transform: scale(1); opacity: 0; } }
/* 闭馆：纯色朱砂红，静止不闪 */
.topbar .dot.closed { background: #b23a2a; }
.topbar .dot.closed::after { display: none; }
.topbar .sep { opacity: .35; }
.topbar .ganzhi { opacity: .75; }
.topbar .tools { display: flex; align-items: center; gap: 18px; }
.topbar .tools a { opacity: .85; transition: opacity .3s, color .3s; }
.topbar .tools a:hover { opacity: 1; color: var(--jin-pale); }
.lang { display: inline-flex; border: 1px solid rgba(201,164,92,.45); border-radius: 30px; overflow: hidden; }
.lang button { padding: 1px 10px; font-size: 12px; color: var(--jin-light); transition: background .3s, color .3s; }
.lang button.on { background: var(--jin); color: var(--zi-950); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123,197,154,.55); } 70% { box-shadow: 0 0 0 8px rgba(123,197,154,0); } 100% { box-shadow: 0 0 0 0 rgba(123,197,154,0); } }

.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(29, 10, 46, .0); color: var(--jin);
  transition: background .5s, box-shadow .5s, height .4s;
}
body.has-hero .header { position: fixed; top: 38px; left: 0; right: 0; }
body:not(.has-hero) .header, .header.solid {
  background: rgba(29, 10, 46, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201,164,92,.25);
}
body.has-hero .header.solid { top: 0; }
.header.solid { --header-h: 68px; }
.header .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand .seal { width: 42px; height: 42px; font-size: 15px; transition: transform .6s var(--ease); }
.brand:hover .seal { transform: rotate(-6deg) scale(1.05); }
.brand .cn { font-size: 21px; font-weight: 600; letter-spacing: .22em; color: var(--jin-light); line-height: 1.25; }
.brand .en { font-family: var(--latin); font-size: 11px; letter-spacing: .26em; color: var(--jin); opacity: .85; text-transform: uppercase; line-height: 1.2; }

.nav { margin-left: auto; display: flex; align-items: center; height: 100%; }
.nav > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav > li > a {
  position: relative; padding: 6px 15px; font-size: 16px; letter-spacing: .2em; color: var(--jin-light);
  transition: color .3s;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 1px; background: var(--jin);
  transition: left .45s var(--ease), right .45s var(--ease);
}
.nav > li > a::before {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; background: var(--jin);
  transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .4s var(--ease);
}
.nav > li:hover > a, .nav > li.active > a { color: var(--jin-pale); }
.nav > li:hover > a::after, .nav > li.active > a::after { left: 15px; right: 15px; }
.nav > li.active > a::before { transform: translateX(-50%) rotate(45deg) scale(1); }
.sub {
  position: absolute; top: calc(100% - 8px); left: 50%; min-width: 172px; padding: 14px 0;
  background: var(--zi-900); border: 1px solid rgba(201,164,92,.3);
  transform: translate(-50%, 10px); opacity: 0; visibility: hidden;
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--fret) repeat-x; background-size: 12px 6px; opacity: .6; }
.nav > li:hover .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: block; padding: 7px 24px; font-size: 14px; letter-spacing: .12em; color: var(--jin-light); white-space: nowrap; transition: color .3s, padding .3s, background .3s; }
.sub a:hover { color: var(--jin-pale); padding-left: 30px; background: rgba(201,164,92,.08); }

.hd-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--jin-light); transition: background .3s; }
.icon-btn:hover { background: rgba(201,164,92,.14); }
.icon-btn svg { width: 19px; height: 19px; }
.btn-book {
  margin-left: 6px; padding: 8px 20px; border: 1px solid var(--jin); color: var(--jin-pale);
  font-size: 14px; letter-spacing: .2em; white-space: nowrap; position: relative; overflow: hidden;
  transition: color .4s;
}
.btn-book::before { content: ""; position: absolute; inset: 0; background: var(--jin); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); z-index: -1; }
.btn-book:hover { color: var(--zi-950); }
.btn-book:hover::before { transform: scaleX(1); transform-origin: left; }
.burger { display: none; }

/* 移动菜单 */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--zi-950); color: var(--jin-light);
  display: flex; flex-direction: column; padding: 22px var(--gutter) 30px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease);
  overflow-y: auto;
}
.drawer::before { content: ""; position: absolute; inset: 0; background: var(--cloud) 0 0/260px; opacity: .06; pointer-events: none; }
.drawer.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(201,164,92,.18); font-size: 22px; letter-spacing: .3em; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s var(--ease); }
.drawer nav a small { font-family: var(--latin); font-size: 12px; letter-spacing: .2em; color: var(--jin); text-transform: uppercase; }
.drawer.open nav a { opacity: 1; transform: none; }
.drawer .foot { margin-top: auto; padding-top: 30px; font-size: 13px; line-height: 2; opacity: .8; }

/* 搜索层 */
.search-layer {
  position: fixed; inset: 0; z-index: 95; background: rgba(19, 6, 31, .96); color: var(--jin-light);
  display: grid; place-items: start center; padding-top: 18vh; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.search-layer.open { opacity: 1; visibility: visible; }
.search-layer .box { width: min(760px, 90vw); }
.search-layer form { display: flex; border-bottom: 1px solid var(--jin); }
.search-layer input { flex: 1; background: none; border: 0; outline: 0; color: var(--jin-pale); font: inherit; font-size: clamp(20px, 3vw, 30px); padding: 12px 0; letter-spacing: .1em; }
.search-layer input::placeholder { color: rgba(230,207,152,.4); }
.search-layer .hot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.search-layer .hot span { opacity: .6; margin-right: 6px; }
.search-layer .hot a { padding: 3px 14px; border: 1px solid rgba(201,164,92,.35); border-radius: 30px; transition: background .3s; }
.search-layer .hot a:hover { background: rgba(201,164,92,.15); }
.search-layer .results { margin-top: 26px; max-height: 46vh; overflow: auto; }
.search-layer .results a { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(201,164,92,.15); }
.search-layer .results em { font-style: normal; font-size: 12px; color: var(--jin); border: 1px solid var(--jin-deep); padding: 0 8px; flex: none; }
.search-layer .close { position: absolute; top: 24px; right: 24px; }

/* ============================================================
   通用：按钮、标题、动效
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 28px;
  border: 1px solid var(--jin); color: var(--jin-pale); font-size: 15px; letter-spacing: .25em;
  position: relative; overflow: hidden; isolation: isolate; transition: color .45s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--jin); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: var(--zi-950); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arr { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.btn .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arr { width: 32px; }
.btn.solid { background: var(--jin); color: var(--zi-950); }
.btn.solid::before { background: var(--jin-pale); }
.btn.dark { border-color: var(--zi-600); color: var(--zi-700); }
.btn.dark::before { background: var(--zi-700); }
.btn.dark:hover { color: var(--jin-pale); }

.link-more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .2em; color: var(--jin-deep); white-space: nowrap; }
.link-more i { width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease), background .4s, color .4s; }
.link-more i svg { width: 12px; height: 12px; }
.link-more:hover i { transform: translateX(4px); background: var(--jin); color: var(--zi-950); border-color: var(--jin); }
.dark-sec .link-more { color: var(--jin); }

.sec { position: relative; padding: clamp(72px, 10vw, 132px) 0; }
.sec-head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-num {
  writing-mode: vertical-rl; font-size: 13px; letter-spacing: .35em; color: var(--jin-deep); white-space: nowrap;
  border-left: 1px solid var(--line); padding: 2px 0 2px 10px; line-height: 1;
}
.sec-title .eyebrow { font-family: var(--latin); font-size: 13px; letter-spacing: .4em; color: var(--jin-deep); text-transform: uppercase; }
.sec-title h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: .28em; line-height: 1.3; color: var(--zi-800); }
.sec-head .link-more { margin-left: auto; padding-bottom: 8px; }
.fret-rule { height: 12px; background: var(--fret) repeat-x center/24px 12px; opacity: .55; }
.dark-sec { background: var(--zi-900); color: var(--jin-light); }
.dark-sec .sec-title h2 { color: var(--jin-light); }
.dark-sec .sec-title .eyebrow, .dark-sec .sec-num { color: var(--jin); }
.dark-sec .sec-num { border-color: rgba(201,164,92,.35); }

/* 滚动显现 */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; } .rv-d4 { transition-delay: .4s; }
/* 水墨晕开：图片由圆心扩散显现 */
.ink { clip-path: circle(0% at 50% 50%); transition: clip-path 1.6s var(--ease); }
.ink.in { clip-path: circle(75% at 50% 50%); }
/* 标题逐字浮现 */
.chars .ch { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s; }
.chars.in .ch { opacity: 1; transform: none; filter: none; }

/* ============================================================
   首页 · 首屏
   ============================================================ */
.hero {
  position: relative; min-height: max(680px, 100svh); background: var(--zi-900); color: var(--jin-light);
  overflow: hidden; display: flex; align-items: center; padding: calc(38px + var(--header-h) + 20px) 0 150px;
}
.hero .bg-glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 45%, rgba(106,51,150,.55), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(201,164,92,.10), transparent 70%); }
.hero .clouds { position: absolute; inset: -20% -10%; background: var(--cloud) 0 0/300px; opacity: .08; animation: drift 90s linear infinite; }
@keyframes drift { to { background-position: 600px 120px; } }
.hero .mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none; }
.hero .mountains svg { position: absolute; bottom: 0; width: 120%; left: -10%; height: 100%; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-text { position: relative; z-index: 3; }
.hero-text .tag { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .4em; color: var(--jin); margin-bottom: 28px; }
.hero-text h1 { font-size: clamp(34px, 5.2vw, 66px); font-weight: 600; line-height: 1.28; letter-spacing: .12em; color: var(--jin-pale); }
.hero-text h1 .gold { background: linear-gradient(100deg, var(--jin-deep), var(--jin-pale) 45%, var(--jin) 60%, var(--jin-deep)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes sheen { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-text .sub { margin-top: 18px; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .25em; color: var(--jin); }
.hero-text .en { font-family: var(--latin); font-style: italic; font-size: 17px; letter-spacing: .06em; opacity: .7; margin-top: 6px; }
.hero-text .meta { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 34px 0 40px; font-size: 14px; letter-spacing: .12em; }
.hero-text .meta div { border-left: 1px solid rgba(201,164,92,.45); padding-left: 14px; }
.hero-text .meta small { display: block; font-size: 12px; color: var(--jin); opacity: .8; letter-spacing: .3em; }
.hero-text .ctas { display: flex; gap: 16px; flex-wrap: wrap; }
@keyframes slideIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* 月洞拱窗 */
.arch-wrap { position: relative; justify-self: center; width: min(440px, 100%, calc((100svh - 250px) * .8)); min-width: 280px; aspect-ratio: 4 / 5; z-index: 2; }
.arch-wrap .rings { position: absolute; inset: -9% -14%; }
.arch-wrap .rings svg { width: 100%; height: 100%; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.arch {
  position: absolute; inset: 0; border-radius: 999px 999px 6px 6px; overflow: hidden;
  border: 1px solid var(--jin); padding: 10px; background: rgba(19,6,31,.35);
}
.arch::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 2px 2px; border: 1px solid rgba(230,207,152,.45); pointer-events: none; }
.arch .img-box { position: absolute; inset: 10px; border-radius: 999px 999px 2px 2px; }
.arch .img-box img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-2%, -1%); } }
.arch-wrap .vert {
  position: absolute; right: -46px; top: 12%; writing-mode: vertical-rl; font-size: 15px; letter-spacing: .6em; color: var(--jin);
}
.arch-wrap .seal { position: absolute; left: -18px; bottom: 16%; transform: rotate(-4deg); }

.hero-ctrl { position: absolute; z-index: 4; left: 0; right: 0; bottom: 44px; }
.hero-ctrl .wrap { display: flex; align-items: center; gap: 26px; }
.hero-dots { display: flex; gap: 22px; }
.hero-dots button { position: relative; padding: 10px 0; font-family: var(--latin); font-size: 13px; letter-spacing: .2em; color: rgba(230,207,152,.5); width: 76px; text-align: left; }
.hero-dots button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: rgba(201,164,92,.25); }
.hero-dots button i { position: absolute; left: 0; bottom: 4px; height: 1px; width: 0; background: var(--jin); z-index: 1; }
.hero-dots button.on { color: var(--jin-pale); }
.hero-dots button.on i { animation: progress var(--dur, 7s) linear forwards; }
@keyframes progress { to { width: 100%; } }
.scroll-hint { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .4em; color: var(--jin); writing-mode: vertical-rl; }
.scroll-hint::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--jin), transparent); animation: drop 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 参观速览条 */
.quick { position: relative; z-index: 5; margin-top: -54px; }
.quick .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(29,10,46,.35);
}
.quick .item { padding: 26px 26px 24px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--line); transition: background .4s; }
.quick .item:last-child { border-right: 0; }
.quick .item:hover { background: var(--paper-2); }
.quick svg { width: 30px; height: 30px; color: var(--jin-deep); flex: none; margin-top: 4px; }
.quick b { display: block; font-size: 16px; letter-spacing: .15em; color: var(--zi-800); font-weight: 600; }
.quick span { font-size: 13px; color: var(--ink-soft); line-height: 1.7; display: block; }

/* 展览：当期 + 卡片 */
.feature-ex { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: var(--zi-900); color: var(--jin-light); min-height: 460px; }
.feature-ex .img-box { min-height: 340px; }
.feature-ex:hover .img-box img { transform: scale(1.05); }
.feature-ex .body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.feature-ex .body::before { content: ""; position: absolute; right: -60px; top: -40px; width: 300px; height: 200px; background: var(--cloud) center/220px no-repeat; opacity: .14; }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 12px; letter-spacing: .3em; padding: 4px 12px; border: 1px solid var(--jin); color: var(--jin); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7bc59a; animation: pulse 2.2s infinite; }
.badge.past::before { display: none; }
.badge.soon::before { background: var(--jin); animation: none; }
.feature-ex h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: .14em; line-height: 1.45; margin: 22px 0 8px; color: var(--jin-pale); font-weight: 600; }
.feature-ex .en { font-family: var(--latin); font-style: italic; opacity: .7; }
.feature-ex p.intro { font-size: 15px; line-height: 2; opacity: .85; margin: 20px 0 30px; }
.feature-ex dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; margin-bottom: 30px; }
.feature-ex dt { color: var(--jin); letter-spacing: .2em; }
.feature-ex .btn { margin-top: auto; align-self: flex-start; }

.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(28px, 4vw, 48px); }
.ex-card { display: block; position: relative; }
.ex-card .img-box { aspect-ratio: 4 / 3; }
.ex-card .frame { position: absolute; inset: 12px; pointer-events: none; z-index: 2; }
.ex-card .frame::before, .ex-card .frame::after { content: ""; position: absolute; width: 0; height: 0; border-color: var(--jin-pale); border-style: solid; transition: width .5s var(--ease), height .5s var(--ease); }
.ex-card .frame::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.ex-card .frame::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.ex-card:hover .frame::before, .ex-card:hover .frame::after { width: 46px; height: 46px; }
.ex-card:hover .img-box img { transform: scale(1.06); }
.ex-card .meta { padding: 18px 2px 0; }
.ex-card .meta small { font-family: var(--latin); font-size: 13px; letter-spacing: .14em; color: var(--jin-deep); }
.ex-card h4 { font-size: 18px; line-height: 1.6; letter-spacing: .06em; margin: 4px 0 6px; color: var(--zi-800); font-weight: 600; transition: color .3s; }
.ex-card:hover h4 { color: var(--zi-500); }
.ex-card .place { font-size: 13px; color: var(--ink-soft); }
.ex-card .flag { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: 12px; letter-spacing: .2em; padding: 2px 10px; background: rgba(29,10,46,.82); color: var(--jin-light); border: 1px solid rgba(201,164,92,.5); }

/* 数字 */
.stats { position: relative; background: var(--zi-950); color: var(--jin-light); overflow: hidden; padding: clamp(64px, 8vw, 100px) 0; }
.stats::before { content: ""; position: absolute; inset: 0; background: var(--lattice) 0 0/48px; opacity: .25; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats .stat { position: relative; padding: 0 12px; }
.stats .stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(transparent, rgba(201,164,92,.5), transparent); }
.stats .num { font-family: var(--latin); font-size: clamp(54px, 7vw, 92px); font-weight: 500; line-height: 1; color: var(--jin); }
.stats .num sup { font-size: .38em; vertical-align: top; margin-left: 4px; }
.stats .lbl { margin-top: 14px; font-size: 15px; letter-spacing: .22em; }
.stats .lbl small { display: block; font-size: 12px; opacity: .6; letter-spacing: .1em; }

/* 典藏 */
.collect-sec { overflow: hidden; }
.collect-sec .layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.moon { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin: 0 auto; }
.moon .ring { position: absolute; inset: -16px; border: 1px solid var(--line); border-radius: 50%; }
.moon .ring.r2 { inset: -34px; border-style: dashed; border-color: rgba(150,115,58,.22); animation: spin 120s linear infinite; }
.moon .img-box { position: absolute; inset: 0; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--jin), 0 40px 80px -40px rgba(29,10,46,.5); }
.moon .img-box img { object-fit: cover; transition: opacity .6s, transform .9s var(--ease); }
.moon .img-box.swap img { opacity: 0; transform: scale(.92); }
.moon .cap { position: absolute; right: -6px; bottom: 6%; background: var(--zi-900); color: var(--jin-light); padding: 14px 20px; max-width: 76%; border-left: 2px solid var(--jin); }
.moon .cap b { display: block; font-size: 17px; letter-spacing: .12em; }
.moon .cap span { font-size: 12px; letter-spacing: .2em; color: var(--jin); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 10px 16px; font-size: 15px; letter-spacing: .2em; color: var(--ink-soft); transition: color .3s; }
.tabs button::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; background: var(--zi-600); transition: left .4s var(--ease), right .4s var(--ease); }
.tabs button.on { color: var(--zi-700); font-weight: 600; }
.tabs button.on::after { left: 12px; right: 12px; }
.tabs button sup { font-family: var(--latin); font-size: 11px; color: var(--jin-deep); margin-left: 2px; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.art-card { display: block; position: relative; cursor: pointer; }
.art-card .img-box { aspect-ratio: 1; background: var(--paper-2); }
.art-card .img-box img { object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.art-card .img-box::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); z-index: 2; transition: inset .5s var(--ease), border-color .5s; }
.art-card:hover .img-box::before { inset: 8px; border-color: var(--jin); }
.art-card:hover .img-box img { transform: scale(1.07); }
.art-card h5 { font-size: 15px; letter-spacing: .08em; margin-top: 10px; color: var(--zi-800); font-weight: 600; line-height: 1.5; }
.art-card span { font-size: 12px; color: var(--ink-soft); letter-spacing: .1em; }
.art-card.dim { display: none; }

/* 国际交流 */
.intl { overflow: hidden; }
.intl .lead { max-width: 640px; font-size: 16px; line-height: 2.1; opacity: .85; }
.marquee { position: relative; margin-top: 54px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.station { flex: none; width: 250px; padding: 26px 28px; margin-right: 18px; border: 1px solid rgba(201,164,92,.28); position: relative; transition: background .4s, border-color .4s; }
.station:hover { background: rgba(201,164,92,.08); border-color: var(--jin); }
.station .no { font-family: var(--latin); font-size: 13px; color: var(--jin); letter-spacing: .2em; }
.station b { display: block; font-size: 22px; letter-spacing: .2em; color: var(--jin-pale); margin: 6px 0 2px; font-weight: 600; }
.station span { font-size: 13px; opacity: .7; }
.station i { display: block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: .1em; color: var(--jin); }
.intl .partners { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 44px; font-size: 14px; }
.intl .partners span { padding: 6px 16px; border: 1px solid rgba(201,164,92,.3); border-radius: 40px; letter-spacing: .08em; }

/* 资讯 + 日历 */
.news-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 4vw, 60px); }
.news-main { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.news-card { display: block; }
.news-card.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.news-card .img-box { aspect-ratio: 16 / 10; }
.news-card:hover .img-box img { transform: scale(1.05); }
.news-card .date { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; color: var(--jin-deep); }
.news-card.big .date { margin-top: 0; }
.news-card .date b { font-family: var(--latin); font-size: 30px; font-weight: 500; line-height: 1; }
.news-card .date span { font-size: 13px; letter-spacing: .12em; }
.news-card .tag { font-size: 12px; padding: 0 8px; border: 1px solid var(--line); margin-left: auto; letter-spacing: .15em; color: var(--ink-soft); }
.news-card h4 { font-size: 17px; line-height: 1.7; color: var(--zi-800); font-weight: 600; letter-spacing: .04em; transition: color .3s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card.big h4 { font-size: 22px; }
.news-card:hover h4 { color: var(--zi-500); }

.cal { background: var(--zi-900); color: var(--jin-light); padding: 28px 26px 24px; position: relative; overflow: hidden; align-self: start; }
.cal::before { content: ""; position: absolute; right: -40px; top: -30px; width: 220px; height: 140px; background: var(--cloud) center/200px no-repeat; opacity: .12; }
.cal .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal .hd b { font-size: 20px; letter-spacing: .2em; font-weight: 600; }
.cal .hd b small { font-family: var(--latin); font-size: 14px; color: var(--jin); margin-left: 8px; letter-spacing: .1em; }
.cal .hd .nav-btns button { width: 30px; height: 30px; border: 1px solid rgba(201,164,92,.4); border-radius: 50%; margin-left: 6px; transition: background .3s; }
.cal .hd .nav-btns button:hover { background: rgba(201,164,92,.18); }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-family: var(--latin); font-size: 15px; }
.cal th { font-family: var(--serif); font-weight: 400; font-size: 12px; color: var(--jin); padding-bottom: 8px; letter-spacing: .1em; }
.cal td { padding: 3px 0; }
.cal td span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background .3s; position: relative; }
.cal td.closed span { color: rgba(230,207,152,.32); }
.cal td.closed span::after { content: ""; position: absolute; width: 14px; height: 1px; background: currentColor; transform: rotate(-35deg); }
.cal td.temp-closed span { color: #f4b6ab; background: rgba(168, 56, 46, .28); border: 1px dashed rgba(244, 182, 171, .55); }
.cal td.temp-closed span::after { background: rgba(244, 182, 171, .75); }
.cal td.today span { background: var(--jin); color: var(--zi-950); font-weight: 700; }
.cal td.open:not(.today) span:hover { background: rgba(201,164,92,.2); }
.cal .legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; font-size: 12px; opacity: .8; letter-spacing: .08em; }
.cal .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cal .on-view { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(201,164,92,.25); font-size: 14px; }
.cal .on-view small { display: block; font-size: 12px; color: var(--jin); letter-spacing: .3em; margin-bottom: 6px; }

/* 视频 */
.video-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { position: relative; display: block; }
.video-card .img-box { aspect-ratio: 16 / 9; }
.video-card .img-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(19,6,31,.85)); }
.video-card .play { position: absolute; z-index: 2; left: 50%; top: 42%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 1px solid var(--jin-pale); display: grid; place-items: center; color: var(--jin-pale); transition: transform .4s var(--ease), background .4s; }
.video-card .play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(230,207,152,.4); animation: ripple 2.4s ease-out infinite; }
@keyframes ripple { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-card:hover .play { transform: scale(1.1); background: rgba(201,164,92,.35); }
.video-card .cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; color: var(--jin-pale); font-size: 14px; line-height: 1.6; }
.video-card .cap small { display: block; color: var(--jin); font-family: var(--latin); letter-spacing: .2em; font-size: 12px; }

/* 参观带 */
.visit-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.visit-band .map { background: #e9e4da; position: relative; }
.visit-band .map .img-box { position: absolute; inset: 0; background: #ece7dc; cursor: zoom-in; }
.visit-band .map img { object-fit: contain; }
@media (max-width: 1000px) { .visit-band .map { aspect-ratio: 4 / 3; } }
.visit-band .info { background: var(--zi-800); color: var(--jin-light); padding: clamp(32px, 5vw, 70px); position: relative; overflow: hidden; }
.visit-band .info::after { content: ""; position: absolute; inset: 0; background: var(--lattice) 0 0/48px; opacity: .15; pointer-events: none; }
.visit-band h3 { font-size: 28px; letter-spacing: .3em; font-weight: 600; color: var(--jin-pale); margin-bottom: 24px; }
.visit-band ul li { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(201,164,92,.2); font-size: 15px; }
.visit-band ul li b { color: var(--jin); font-weight: 400; letter-spacing: .25em; }
.visit-band .btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ============================================================
   页脚
   ============================================================ */
.footer { position: relative; background: var(--zi-950); color: var(--jin-light); padding-top: 0; overflow: hidden; }
.footer .fret-rule { opacity: .5; }
.footer::before { content: ""; position: absolute; inset: 0; background: var(--cloud) 0 0/320px; opacity: .04; pointer-events: none; }

/* 无效详情链接：不再静默展示另一条内容 */
.content-unavailable { min-height: 62vh; padding: clamp(120px, 16vw, 210px) 0 90px; background: var(--paper); }
.content-unavailable-inner { max-width: 760px; text-align: center; }
.content-unavailable-mark { display: block; color: var(--jin); font-family: var(--latin); font-size: 52px; line-height: 1; }
.content-unavailable p { margin-top: 12px; color: var(--jin-deep); font-family: var(--latin); font-size: 12px; letter-spacing: .28em; }
.content-unavailable h1 { margin: 18px 0 12px; color: var(--zi-800); font-size: clamp(28px, 4vw, 46px); font-weight: 600; letter-spacing: .08em; }
.content-unavailable-inner > div { color: var(--ink-soft); line-height: 1.9; }
.content-unavailable .g-btn { margin-top: 30px; }
.footer .main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 46px; }
.footer h5 { font-size: 14px; letter-spacing: .3em; color: var(--jin); margin-bottom: 16px; font-weight: 400; }
.footer .main a, .footer .main p { display: block; font-size: 14px; line-height: 2.1; opacity: .82; transition: opacity .3s, color .3s; }
.footer .main a:hover { opacity: 1; color: var(--jin-pale); }
.footer .qrs { display: flex; gap: 18px; }
.footer .qrs figure { text-align: center; font-size: 12px; letter-spacing: .1em; opacity: .9; }
.footer .qrs .img-box { width: 92px; height: 92px; background: #fff; padding: 5px; margin-bottom: 6px; }
.footer .qrs .img-box img { object-fit: contain; }
.footer .social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social a { width: 36px; height: 36px; border: 1px solid rgba(201,164,92,.35); border-radius: 50%; display: grid !important; place-items: center; line-height: 1 !important; transition: background .3s, color .3s !important; }
.footer .social a:hover { background: var(--jin); color: var(--zi-950) !important; }
.footer .social svg { width: 15px; height: 15px; }
.footer .legal { border-top: 1px solid rgba(201,164,92,.18); padding: 20px 0 26px; font-size: 12px; opacity: .6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; letter-spacing: .06em; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; background: var(--zi-900); color: var(--jin); border: 1px solid var(--jin); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s var(--ease), background .3s; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--jin); color: var(--zi-950); }
.to-top svg { width: 18px; height: 18px; }

/* ============================================================
   内页
   ============================================================ */
.page-hero {
  position: relative; background: var(--zi-900); color: var(--jin-light); overflow: hidden;
  padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 7vw, 96px);
}
.page-hero .clouds { position: absolute; inset: -20%; background: var(--cloud) 0 0/300px; opacity: .07; animation: drift 90s linear infinite; }
.page-hero .glow { position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 30%, rgba(106,51,150,.6), transparent 70%); }
.page-hero .big-char { position: absolute; right: 4%; bottom: -12%; font-size: clamp(180px, 26vw, 360px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,164,92,.28); font-weight: 700; pointer-events: none; user-select: none; }
.crumbs { font-size: 13px; letter-spacing: .15em; color: var(--jin); opacity: .85; margin-bottom: 26px; }
.crumbs a:hover { color: var(--jin-pale); }
.crumbs i { font-style: normal; margin: 0 10px; opacity: .5; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 64px); letter-spacing: .3em; font-weight: 600; line-height: 1.25; color: var(--jin-pale); }
.page-hero .en { font-family: var(--latin); font-size: 15px; letter-spacing: .4em; text-transform: uppercase; color: var(--jin); margin-top: 10px; }
.page-hero p.lead { max-width: 640px; margin-top: 24px; font-size: 16px; line-height: 2; opacity: .85; }
.subnav { position: sticky; top: 68px; z-index: 30; background: rgba(247,242,232,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 16px 18px; font-size: 15px; letter-spacing: .2em; color: var(--ink-soft); position: relative; transition: color .3s; }
.subnav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--zi-600); transition: left .4s var(--ease), right .4s var(--ease); }
.subnav a:hover, .subnav a.on { color: var(--zi-700); }
.subnav a.on::after { left: 14px; right: 14px; }

.prose { font-size: 16px; line-height: 2.15; color: #3d3145; }
.prose p + p { margin-top: 1.2em; }
.prose p:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: 1; margin: .08em .14em 0 0; color: var(--zi-600); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.quote { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.8; letter-spacing: .12em; color: var(--zi-700); font-weight: 600; position: relative; padding-left: 26px; border-left: 2px solid var(--jin); }

.timeline { position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--jin), rgba(201,164,92,.2)); }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 40px; padding: 18px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 106px; top: 30px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--jin-deep); transform: rotate(45deg); transition: background .4s; }
.tl-item:hover::before { background: var(--jin); }
.tl-item b { font-family: var(--latin); font-size: 26px; color: var(--jin-deep); font-weight: 500; text-align: right; line-height: 1.4; }
.tl-item h4 { font-size: 18px; color: var(--zi-800); letter-spacing: .08em; font-weight: 600; }
.tl-item p { font-size: 14px; color: var(--ink-soft); }
.dark-sec .tl-item h4 { color: var(--jin-pale); }
.dark-sec .tl-item p { color: var(--jin-light); opacity: .75; }
.dark-sec .tl-item::before { background: var(--zi-900); }

.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.honor { background: var(--paper); padding: 34px 30px; position: relative; transition: background .4s; }
.honor:hover { background: var(--paper-2); }
.honor .ic { width: 52px; height: 52px; border: 1px solid var(--jin); border-radius: 50%; display: grid; place-items: center; color: var(--jin-deep); margin-bottom: 18px; transition: transform .6s var(--ease); }
.honor:hover .ic { transform: rotate(360deg); }
.honor .ic svg { width: 24px; height: 24px; }
.honor h4 { font-size: 18px; letter-spacing: .1em; color: var(--zi-800); margin-bottom: 8px; font-weight: 600; }
.honor p { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

.filter-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-bar .tabs { margin: 0; border: 0; }
.search-in { margin-left: auto; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--jin-deep); padding: 4px 2px; min-width: 240px; }
.search-in input { border: 0; outline: 0; background: none; font: inherit; font-size: 15px; flex: 1; color: var(--ink); min-width: 0; }
.search-in svg { width: 16px; height: 16px; color: var(--jin-deep); }
.empty { padding: 60px 0; text-align: center; color: var(--ink-soft); letter-spacing: .2em; grid-column: 1 / -1; }
.empty::before { content: ""; display: block; width: 120px; height: 60px; margin: 0 auto 14px; background: var(--cloud) center/200px no-repeat; opacity: .6; }

.coll-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.coll-grid .art-card .img-box { aspect-ratio: 4 / 5; }

.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 110px 1fr 240px; gap: 36px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.news-row::before { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 1px; background: var(--zi-600); transition: right .7s var(--ease); }
.news-row:hover::before { right: 0; }
.news-row .d { text-align: center; color: var(--jin-deep); border-right: 1px solid var(--line); padding-right: 30px; }
.news-row .d b { display: block; font-family: var(--latin); font-size: 44px; font-weight: 500; line-height: 1; }
.news-row .d span { font-size: 13px; letter-spacing: .1em; }
.news-row h3 { font-size: 19px; line-height: 1.7; letter-spacing: .04em; color: var(--zi-800); font-weight: 600; transition: color .3s; }
.news-row:hover h3 { color: var(--zi-500); }
.news-row .tag { display: inline-block; font-size: 12px; letter-spacing: .2em; padding: 0 10px; border: 1px solid var(--jin); color: var(--jin-deep); margin-bottom: 8px; }
.news-row .img-box { aspect-ratio: 16 / 10; }
.news-row:hover .img-box img { transform: scale(1.06); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; font-family: var(--latin); }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 15px; transition: background .3s, color .3s; }
.pager a.on, .pager a:hover { background: var(--zi-800); color: var(--jin-light); border-color: var(--zi-800); }

.res-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.res-card { display: flex; flex-direction: column; background: #fff9ee; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.res-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(29,10,46,.4); }
.res-card .img-box { aspect-ratio: 16 / 10; }
.res-card .bd { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.res-card small { font-size: 12px; letter-spacing: .3em; color: var(--jin-deep); }
.res-card h3 { font-size: 19px; line-height: 1.6; letter-spacing: .06em; color: var(--zi-800); margin: 8px 0 12px; font-weight: 600; }
.res-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.res-card .link-more { margin-top: auto; padding-top: 18px; }
.forum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.forum-card { padding: 34px; border: 1px solid rgba(201,164,92,.3); position: relative; overflow: hidden; transition: border-color .4s; }
.forum-card:hover { border-color: var(--jin); }
.forum-card .n { font-family: var(--latin); font-size: 80px; line-height: 1; color: var(--jin); opacity: .9; }
.forum-card .n small { font-size: 18px; margin-left: 6px; }
.forum-card h4 { font-size: 21px; color: var(--jin-pale); letter-spacing: .14em; margin: 14px 0 8px; font-weight: 600; }
.forum-card p { font-size: 14px; opacity: .78; line-height: 2; }

/* 参观页 */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.visit-grid > div { background: var(--paper); padding: 34px 32px; }
.visit-grid h3 { font-size: 15px; letter-spacing: .3em; color: var(--jin-deep); font-weight: 400; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.visit-grid h3 svg { width: 22px; height: 22px; }
.visit-grid .big { font-family: var(--latin); font-size: 40px; color: var(--zi-700); line-height: 1.2; }
.visit-grid p { font-size: 15px; color: var(--ink-soft); line-height: 1.95; }
.transit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.transit .mapbox { border: 1px solid var(--line); padding: 10px; background: #fff; }
.transit .mapbox .img-box { aspect-ratio: 4 / 3; background: #eee; }
.transit .mapbox .img-box img { object-fit: contain; }
.route { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.route .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--zi-800); color: var(--jin); display: grid; place-items: center; }
.route .ic svg { width: 22px; height: 22px; }
.route h4 { font-size: 17px; letter-spacing: .15em; color: var(--zi-800); font-weight: 600; }
.route p { font-size: 14px; color: var(--ink-soft); line-height: 1.95; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; gap: 18px; align-items: center; font-size: 17px; letter-spacing: .08em; color: var(--zi-800); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font-family: var(--latin); color: var(--jin-deep); width: 30px; font-size: 18px; }
.acc summary .pm { margin-left: auto; width: 16px; height: 16px; position: relative; flex: none; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--jin-deep); transition: transform .4s var(--ease); }
.acc summary .pm::after { transform: rotate(90deg); }
.acc details[open] summary .pm::after { transform: rotate(0); }
.acc .ans { padding: 0 0 22px 48px; font-size: 15px; color: var(--ink-soft); line-height: 2; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.form label { display: block; font-size: 13px; letter-spacing: .2em; color: var(--jin); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(201,164,92,.45); color: var(--jin-pale); font: inherit; font-size: 16px; padding: 8px 0; outline: 0; transition: border-color .3s; border-radius: 0; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--jin-pale); }
.form .full { grid-column: 1 / -1; }
.form .note { font-size: 13px; opacity: .7; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 30px); background: var(--zi-900); color: var(--jin-pale); border: 1px solid var(--jin); padding: 14px 28px; z-index: 99; opacity: 0; transition: opacity .4s, transform .4s var(--ease); letter-spacing: .1em; font-size: 15px; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 详情页 */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.detail-hero .img-box { aspect-ratio: 4 / 3; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 15px; margin: 26px 0 32px; }
.facts dt { color: var(--jin); letter-spacing: .25em; white-space: nowrap; }
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chapter { background: var(--paper); padding: 34px 26px; min-height: 220px; position: relative; overflow: hidden; transition: background .5s; }
.chapter:hover { background: var(--zi-800); color: var(--jin-light); }
.chapter .n { font-size: 46px; line-height: 1; color: var(--jin-deep); font-weight: 600; }
.chapter h4 { margin-top: 30px; font-size: 20px; letter-spacing: .2em; font-weight: 600; color: var(--zi-800); transition: color .5s; }
.chapter p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; transition: color .5s; }
.chapter:hover h4 { color: var(--jin-pale); }
.chapter:hover p { color: var(--jin-light); }
.works-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.works-table th { text-align: left; font-weight: 400; font-size: 13px; letter-spacing: .25em; color: var(--jin-deep); padding: 12px 10px; border-bottom: 1px solid var(--jin-deep); }
.works-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.works-table tr { transition: background .3s; }
.works-table tbody tr:hover { background: var(--paper-2); }
.works-table td:first-child { font-family: var(--latin); color: var(--jin-deep); width: 50px; }
.works-table td b { color: var(--zi-800); font-weight: 600; letter-spacing: .06em; }
.gallery { columns: 3; column-gap: 16px; }
.gallery .img-box { margin-bottom: 16px; break-inside: avoid; cursor: zoom-in; }
.gallery .img-box img { height: auto; }
.gallery .img-box:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 98; background: rgba(19,6,31,.94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; cursor: zoom-out; padding: 5vh 5vw; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border: 1px solid var(--jin); transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.art-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.art-detail .stage { background: var(--paper-2); aspect-ratio: 1; position: relative; border: 1px solid var(--line); }
.art-detail .stage::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none; z-index: 2; }
.art-detail .stage .img-box { position: absolute; inset: 0; background: transparent; }
.art-detail .stage img { object-fit: contain; padding: 10%; mix-blend-mode: multiply; cursor: zoom-in; }
.art-detail h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: .15em; color: var(--zi-800); font-weight: 600; line-height: 1.4; }
.art-detail .facts dt { color: var(--jin-deep); }
.art-detail .tools { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); font-size: 14px; letter-spacing: .12em; color: var(--zi-700); transition: border-color .3s, background .3s; }
.chip:hover { border-color: var(--jin); background: var(--paper-2); }
.chip svg { width: 16px; height: 16px; }

/* 商店 */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.prod { display: block; text-align: center; }
.prod .img-box { aspect-ratio: 1; background: var(--paper-2); display: grid; place-items: center; }
.prod .ph { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .8s var(--ease); }
.prod:hover .ph { transform: scale(1.06); }
.prod .ph svg { width: 46%; height: 46%; color: var(--zi-600); opacity: .85; }
.prod h4 { margin-top: 14px; font-size: 16px; letter-spacing: .12em; color: var(--zi-800); font-weight: 600; }
.prod span { font-size: 13px; color: var(--ink-soft); }
.shop-cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(30px, 5vw, 60px); background: var(--zi-800); color: var(--jin-light); position: relative; overflow: hidden; }
.shop-cta::before { content: ""; position: absolute; inset: 0; background: var(--lattice) 0 0/48px; opacity: .15; }
.shop-cta h3 { font-size: 28px; letter-spacing: .25em; color: var(--jin-pale); font-weight: 600; }
.shop-cta .qr { width: 150px; height: 150px; background: #fff; padding: 8px; position: relative; }
.note-tag { display: inline-block; font-size: 12px; letter-spacing: .1em; color: var(--zhu); border: 1px solid var(--zhu); padding: 0 8px; margin-left: 10px; vertical-align: middle; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .quick .grid { grid-template-columns: 1fr 1fr; }
  .quick .item:nth-child(2) { border-right: 0; }
  .quick .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .arch-wrap .vert { display: none; }
  .nav > li > a { padding: 6px 10px; letter-spacing: .14em; }
  .nav > li:hover > a::after, .nav > li.active > a::after { left: 10px; right: 10px; }
  .btn-book { display: none; }
  .brand .cn { font-size: 19px; }
}
@media (max-width: 1000px) {
  :root { --header-h: 68px; }
  .nav, .topbar .ganzhi, .topbar .sep.g { display: none; }
  .burger { display: grid; }
  .hd-actions { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .arch-wrap { width: min(380px, 78%); order: -1; }
  .arch-wrap .vert { right: -40px; }
  .hero { padding-bottom: 130px; }
  .quick .grid { grid-template-columns: 1fr 1fr; }
  .quick .item:nth-child(2) { border-right: 0; }
  .quick .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-ex, .collect-sec .layout, .news-layout, .visit-band, .two-col, .transit, .detail-hero, .art-detail { grid-template-columns: 1fr; }
  .news-layout .cal { max-width: 460px; }
  .footer .main { grid-template-columns: 1fr 1fr; }
  .coll-grid, .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .chapters { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .res-list { grid-template-columns: 1fr 1fr; }
  .moon { max-width: 380px; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .topbar .wrap { height: 34px; font-size: 12px; }
  .topbar .tools .dir { display: none; }
  body.has-hero .header { top: 34px; }
  .brand .cn { font-size: 16px; letter-spacing: .14em; }
  .brand .en { font-size: 9px; letter-spacing: .14em; }
  .brand .seal { width: 36px; height: 36px; font-size: 13px; }
  .hero { padding-top: calc(34px + var(--header-h) + 18px); }
  .arch-wrap { width: 72%; }
  .arch-wrap .vert { display: none; }
  .hero-text .meta { gap: 10px 22px; margin: 26px 0 30px; }
  .hero-dots { gap: 12px; }
  .hero-dots button { width: 54px; }
  .scroll-hint { display: none; }
  .quick { margin-top: -40px; }
  .quick .grid { grid-template-columns: 1fr; }
  .quick .item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .quick .item:last-child { border-bottom: 0; }
  .sec-head { flex-wrap: wrap; gap: 14px; }
  .sec-head .link-more { margin-left: 0; width: 100%; padding-bottom: 0; }
  .ex-grid, .video-row, .res-list, .forum { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .stats .grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stats .stat:nth-child(3)::before { display: none; }
  .news-main { grid-template-columns: 1fr; }
  .news-card.big { grid-template-columns: 1fr; gap: 0; }
  .news-card.big .date { margin-top: 14px; }
  .news-card.big h4 { font-size: 18px; }
  .footer .main { grid-template-columns: 1fr; gap: 32px; }
  .coll-grid, .shop-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .news-row { grid-template-columns: 74px 1fr; gap: 18px; }
  .news-row .d { padding-right: 14px; }
  .news-row .d b { font-size: 32px; }
  .news-row h3 { font-size: 16px; }
  .news-row .img-box { display: none; }
  .timeline::before { left: 64px; }
  .tl-item { grid-template-columns: 64px 1fr; gap: 26px; }
  .tl-item::before { left: 60px; }
  .tl-item b { font-size: 19px; }
  .honor-grid { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .chapter { min-height: 0; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery .img-box { margin-bottom: 10px; }
  .form { grid-template-columns: 1fr; }
  .shop-cta { grid-template-columns: 1fr; }
  .works-table th:nth-child(3), .works-table td:nth-child(3) { display: none; }
  .filter-bar .search-in { margin-left: 0; width: 100%; }
  .page-hero .big-char { right: -4%; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .moon .cap { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv, .chars .ch { opacity: 1; transform: none; filter: none; }
  .ink { clip-path: none; }
}
.shop-cta .qr .img-box { height: 100%; background: #fff; }
.shop-cta .qr img { object-fit: contain; }
.dark-sec .form { color-scheme: dark; }

/* 全站弹窗公告 */
.announce-modal { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; padding: 20px; background: rgba(18, 10, 28, .66); backdrop-filter: blur(4px); opacity: 0; transition: opacity .24s ease; }
.announce-modal.open { opacity: 1; }
.announce-modal .ann-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--paper, #f7f4ee); color: var(--ink, #23192d); border: 1px solid rgba(196, 162, 101, .45); box-shadow: 0 28px 80px rgba(12, 6, 22, .45); transform: translateY(14px) scale(.98); transition: transform .28s var(--ease, ease); }
.announce-modal.open .ann-card { transform: none; }
.announce-modal .ann-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(74, 40, 104, .18); background: rgba(247, 244, 238, .92); color: var(--zi-800, #3b185b); cursor: pointer; transition: background .2s, color .2s; }
.announce-modal .ann-close:hover { background: var(--zi-800, #3b185b); color: #fff; }
.announce-modal .ann-close svg { width: 16px; height: 16px; }
.announce-modal .ann-img { width: 100%; max-height: 240px; overflow: hidden; background: #1d0a2e; }
.announce-modal .ann-img img { display: block; width: 100%; height: 100%; max-height: 240px; object-fit: cover; }
.announce-modal .ann-bd { padding: 30px 32px 28px; }
.announce-modal .ann-tag { font-size: 11px; letter-spacing: .28em; color: var(--jin-deep, #8e6c34); margin-bottom: 10px; }
.announce-modal h3 { margin: 0 0 14px; font-family: var(--serif, serif); font-size: clamp(20px, 3vw, 24px); font-weight: 600; line-height: 1.45; color: var(--zi-800, #3b185b); }
.announce-modal .ann-body { font-size: 15px; line-height: 1.9; color: var(--ink-soft, #4b4254); }
.announce-modal .ann-body p { margin: 0 0 10px; }
.announce-modal .ann-body p:last-child { margin-bottom: 0; }
.announce-modal .ann-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.announce-modal .ann-ok { border-color: rgba(74, 40, 104, .32); color: var(--zi-800, #3b185b); }
.announce-modal .ann-ok:hover { background: var(--zi-800, #3b185b); color: #fff; }
.hours-grid .hours-multi { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 6px; }
.hours-grid .hours-multi div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hours-grid .hours-multi b { font-family: var(--latin); font-size: 20px; font-weight: 500; color: var(--zi-800); }
.hours-grid .hours-multi span { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 600px) { .announce-modal .ann-bd { padding: 24px 20px 22px; } }

/* ============================================================
   凤凰（掐丝珐琅小摆件）
   ============================================================ */
.phoenix { position: fixed; left: 0; top: 0; z-index: 45; width: 88px; pointer-events: none; cursor: pointer; will-change: transform; }
.phoenix .ph-inner { transition: transform .35s var(--ease); }
.phoenix svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 10px rgba(19, 6, 31, .35)); }
.phoenix .ph-wing, .phoenix .ph-tail, .phoenix .ph-head, .phoenix .ph-body, .phoenix .ph-cloud { transform-box: view-box; }
.phoenix .ph-near { transform-origin: 71px 50px; transition: transform .6s var(--ease); }
.phoenix .ph-far { transform-origin: 77px 46px; transition: transform .6s var(--ease); }
.phoenix .ph-tail { transform-origin: 56px 63px; animation: phTail 2.6s ease-in-out infinite alternate; }
.phoenix .ph-head { transform-origin: 91px 36px; }
.phoenix .ph-cloud { opacity: 0; transform: translateY(6px) scale(.8); transform-origin: 80px 73px; transition: opacity .6s, transform .6s var(--ease); }

/* 飞行：振翅、尾羽快摆 */
.phoenix.flying .ph-near { animation: phFlap .34s ease-in-out infinite alternate; }
.phoenix.flying .ph-far { animation: phFlapFar .34s ease-in-out -.06s infinite alternate; }
.phoenix.flying .ph-tail { animation-duration: .7s; }
.phoenix.landing .ph-near, .phoenix.landing .ph-far { animation-duration: .5s; }
@keyframes phFlap { from { transform: rotate(-6deg) scaleY(1); } to { transform: rotate(16deg) scaleY(-.5); } }
@keyframes phFlapFar { from { transform: rotate(-4deg) scaleY(.95); } to { transform: rotate(12deg) scaleY(-.4); } }
@keyframes phTail { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }

/* 停驻：收翅、呼吸、偶尔转头，脚下浮出祥云 */
.phoenix.perched .ph-near { transform: rotate(-80deg) scale(.6); }
.phoenix.perched .ph-far { transform: rotate(-72deg) scale(.52); }
.phoenix.perched .ph-body { animation: phBreathe 3.2s ease-in-out infinite; }
.phoenix.perched .ph-head { animation: phLook 7s ease-in-out infinite; }
.phoenix.perched .ph-cloud { opacity: 1; transform: none; }
.phoenix.perched:hover .ph-near { transform: rotate(-60deg) scale(.68); }
.phoenix.perched:hover .ph-body { animation-duration: 1.2s; }
@keyframes phBreathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes phLook { 0%, 38%, 62%, 100% { transform: rotate(0); } 44%, 56% { transform: rotate(-12deg); } }

/* 星屑 */
.ph-spark { position: fixed; z-index: 44; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; pointer-events: none; background: linear-gradient(135deg, #f7e9bd, #c9a45c); transform: rotate(45deg); box-shadow: 0 0 6px rgba(230, 207, 152, .8); animation: phSpark .9s ease-out forwards; }
.ph-spark.burst { animation: phBurst .8s ease-out forwards; }
@keyframes phSpark { from { opacity: .95; transform: rotate(45deg) scale(1); } to { opacity: 0; transform: translate(-4px, 14px) rotate(45deg) scale(.2); } }
@keyframes phBurst { from { opacity: 1; transform: rotate(45deg) scale(1.1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(45deg) scale(.3); } }

/* ============================================================
   首屏轮播：稳重克制
   - 文字整行缓缓浮现，金字为静态描金
   - 换图像挂轴自上而下徐徐展开
   ============================================================ */
.hero-text { position: relative; z-index: 3; }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.hero-slide.on { visibility: visible; pointer-events: auto; }
.hero-text .tag i { display: inline-block; width: 0; height: 1px; background: var(--jin); transition: width 1.4s var(--ease) var(--d0, 0s); }
.hero-slide.play .tag i { width: 36px; }
.hero-text .tag, .hero-text h1 .ln, .hero-text .fx { opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease, transform 1.6s var(--ease); }
.hero-text .tag { transition-delay: var(--d0, 0s); }
.hero-text h1 .ln { display: block; transition-delay: calc(var(--d0, 0s) + .2s + var(--l) * .18s); }
.hero-text h1 .ln.small { font-size: .6em; margin-top: .3em; }
.hero-text h1 .ln.gold { background: linear-gradient(180deg, var(--jin-pale) 0%, var(--jin) 55%, var(--jin-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text .fx { transition-delay: calc(var(--d0, 0s) + .8s + var(--k) * .12s); }
.hero-slide.play .tag, .hero-slide.play h1 .ln, .hero-slide.play .fx { opacity: 1; transform: none; }
.hero-slide.out .tag, .hero-slide.out h1 .ln, .hero-slide.out .fx { opacity: 0; transform: none; transition: opacity .8s ease; transition-delay: 0s; }

.arch .img-box { opacity: 0; z-index: 0; }
.arch .img-box.on { opacity: 1; z-index: 2; }
.arch .img-box.leave { opacity: 1; z-index: 1; }
.arch .img-box.enter { animation: unroll 2.2s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.arch .img-box img { animation-duration: 26s; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.09); } }

.hero-dots button { width: auto; min-width: 120px; padding: 10px 0 12px; display: flex; align-items: baseline; gap: 10px; transition: color .4s; }
.hero-dots button em { font-style: normal; font-size: 13px; }
.hero-dots button span { font-family: var(--serif); font-size: 13px; letter-spacing: .14em; white-space: nowrap; opacity: .75; }
.hero-dots button:hover { color: var(--jin-light); }
.hero.paused .hero-dots button.on i { animation-play-state: paused; }
.hero-arrows { display: flex; gap: 8px; margin-left: 10px; }
.hero-arrows button { width: 36px; height: 36px; border: 1px solid rgba(201,164,92,.4); border-radius: 50%; color: var(--jin-light); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: border-color .4s, color .4s; }
.hero-arrows button:hover { border-color: var(--jin); color: var(--jin-pale); }
@media (max-width: 700px) {
  .hero-dots button { min-width: 0; }
  .hero-dots button span { display: none; }
  .hero-arrows button { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text .tag, .hero-text h1 .ln, .hero-text .fx { opacity: 1 !important; transform: none !important; }
}

/* 页脚：微信公众号二维码浮层 */
.footer .wx { position: relative; display: inline-block; }
.footer .wx-pop { position: absolute; left: 50%; bottom: calc(100% + 12px); width: 132px; padding: 8px 8px 6px; background: #fff; text-align: center; color: var(--ink);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; box-shadow: 0 14px 30px rgba(0,0,0,.35); z-index: 5; }
.footer .wx-pop::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.footer .wx-pop .img-box { width: 116px; height: 116px; background: #fff; }
.footer .wx-pop .img-box img { object-fit: contain; }
.footer .wx-pop small { display: block; font-size: 11px; letter-spacing: .05em; margin-top: 4px; color: var(--ink-soft); }
.footer .wx:hover .wx-pop, .footer .wx.open .wx-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   英文版排版：收紧中文用的大字距，标题改用西文衬线
   ============================================================ */
html[lang="en"] body { line-height: 1.7; }
html[lang="en"] :is(.nav > li > a, .sub a, .btn, .btn-book, .link-more, .tabs button, .subnav a, .quick b, .badge, .feature-ex dt, .facts dt,
  .hero-text .meta small, .hero-text .sub, .stats .lbl, .station b, .visit-band ul li b, .visit-band h3, .footer h5,
  .cal .hd b, .cal .on-view small, .honor h4, .route h4, .visit-grid h3, .forum-card h4, .chapter h4, .res-card small, .news-row .tag, .news-card .tag,
  .form label, .drawer nav a, .prod h4, .shop-cta h3, .acc summary, .ex-card h4, .art-card h5, .news-card h4, .news-row h3, .res-card h3, .tl-item h4,
  .crumbs, .search-layer input, .hero-dots button span, .works-table th, .art-detail h1, .quote, .lead, .prose, .footer .main a, .footer .main p) {
  letter-spacing: .02em;
}
html[lang="en"] :is(.sec-title h2, .page-hero h1, .hero-text h1, .feature-ex h3, .art-detail h1, .visit-band h3, .shop-cta h3, .quote, .station b, .chapter h4, .forum-card h4) {
  font-family: var(--latin); font-weight: 600; letter-spacing: .01em;
}
html[lang="en"] .sec-title h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; }
html[lang="en"] .page-hero h1 { font-size: clamp(44px, 6vw, 76px); }
html[lang="en"] .hero-text h1 { font-size: clamp(32px, 3.5vw, 54px); line-height: 1.08; }
html[lang="en"] .hero-text h1 .ln.small { font-size: .5em; line-height: 1.25; }
html[lang="en"] .hero-text .en, html[lang="en"] .feature-ex .en { font-family: var(--serif); font-style: normal; letter-spacing: .12em; }
html[lang="en"] .sec-title .eyebrow { letter-spacing: .3em; font-family: var(--serif); }
html[lang="en"] .nav > li > a { font-size: 15px; padding: 6px 12px; }
html[lang="en"] .brand .cn { font-family: var(--latin); font-size: 20px; letter-spacing: .02em; }
html[lang="en"] .brand .en { letter-spacing: .3em; font-family: var(--serif); text-transform: none; }
html[lang="en"] .quote { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.35; }
html[lang="en"] .prose p:first-of-type::first-letter { font-family: var(--latin); font-size: 3.8em; }
html[lang="en"] .stats .num sup { font-size: .32em; margin-left: 2px; }
html[lang="en"] .sec-num { letter-spacing: .18em; }
html[lang="en"] .hero-dots button { min-width: 0; }
html[lang="en"] .timeline .tl-item b { font-size: 20px; }
@media (max-width: 1180px) { html[lang="en"] .nav > li > a { padding: 6px 8px; font-size: 14px; } }

@media (max-width: 700px) {
  .header .brand { min-width: 0; flex: 1 1 auto; }
  .hd-actions { flex: none; }
  html[lang="en"] .brand .cn { font-size: 15px; line-height: 1.2; white-space: normal; }
  html[lang="en"] .brand .en { font-size: 10px; letter-spacing: .2em; }
}

/* ============================================================
   联网地图
   ============================================================ */
.livemap { display: flex; flex-direction: column; height: 100%; background: #fff; }
.map-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--paper); }
.map-tabs button { flex: 1; padding: 11px 0; font-size: 14px; letter-spacing: .2em; color: var(--ink-soft); position: relative; transition: color .3s; }
.map-tabs button.on { color: var(--zi-700); font-weight: 600; }
.map-tabs button.on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 2px; background: var(--zi-600); }
.map-stage { position: relative; flex: 1; min-height: 320px; }
.mapbox .map-stage { aspect-ratio: 4 / 3; min-height: 0; }
.map-canvas, .map-plan { position: absolute; inset: 0; }
.map-canvas { background: #eef0f3; z-index: 1; }
.map-canvas[hidden], .map-plan[hidden], .map-hint[hidden] { display: none; }
.map-plan .img-box { position: absolute; inset: 0; background: #fff; cursor: zoom-in; }
.map-plan .img-box img { object-fit: contain; }
.map-canvas .leaflet-tile-pane { filter: saturate(.82) sepia(.08); }
.map-hint { position: absolute; z-index: 2; left: 12px; bottom: 10px; font-size: 12px; padding: 2px 10px; background: rgba(255,255,255,.9); color: var(--ink-soft); pointer-events: none; letter-spacing: .05em; }
.map-fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); background: var(--paper); }
.map-actions a { padding: 12px 6px; text-align: center; font-size: 14px; letter-spacing: .1em; color: var(--zi-700); transition: background .3s, color .3s; }
.map-actions a + a { border-left: 1px solid var(--line); }
.map-actions a:hover { background: var(--paper-2); }
.map-actions a.go { background: var(--zi-800); color: var(--jin-light); }
.map-actions a.go:hover { background: var(--zi-700); }
.map-pin { display: flex; align-items: center; gap: 6px; transform: translate(-13px, -50%); white-space: nowrap; filter: drop-shadow(0 4px 10px rgba(29,10,46,.3)); }
.map-pin .seal { width: 42px; height: 42px; font-size: 15px; }
.map-pin > div { background: var(--zi-900); color: var(--jin-light); padding: 4px 10px 3px; border-left: 2px solid var(--jin); line-height: 1.3; }
.map-pin b { display: block; font-family: var(--serif); font-size: 13px; letter-spacing: .06em; font-weight: 600; }
.map-pin small { font-size: 11px; color: var(--jin); letter-spacing: .1em; }
.livemap .leaflet-bar { border: 1px solid var(--line); box-shadow: none; border-radius: 0; }
.livemap .leaflet-bar a { color: var(--zi-700); border-radius: 0 !important; }
.livemap .leaflet-control-attribution { font-size: 10px; }
.visit-band .map { background: #fff; }
.visit-band .map .livemap { position: absolute; inset: 0; }
@media (max-width: 1000px) { .visit-band .map { aspect-ratio: auto; height: 420px; } }
@media (max-width: 700px) { .map-actions a { font-size: 13px; letter-spacing: .02em; } .map-pin b { font-size: 13px; } }

/* 自适应后的海报：已完整放入，不再大幅推近，避免边缘文字被裁 */
.img-box.fitted img { object-fit: cover; }
.arch .img-box.fitted img { animation-name: kenburnsSoft; }
@keyframes kenburnsSoft { from { transform: scale(1); } to { transform: scale(1.03); } }
.feature-ex .img-box.fitted, .ex-card .img-box.fitted { background: var(--zi-900); }

/* ============================================================
   首屏横版（?hero=wide）：装裱式画框，适配横画幅海报
   - 深紫绫子裱边 + 内外两道金线，四角委角
   - 换图像手卷一样从右往左徐徐展开
   ============================================================ */
body.hero-wide .hero .wrap { grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); }
body.hero-wide .hero-text h1 { font-size: clamp(32px, 4vw, 56px); }
body.hero-wide .arch-wrap { width: 100%; max-width: 780px; min-width: 0; aspect-ratio: 3 / 2; justify-self: end; }
body.hero-wide .arch-wrap .rings { display: none; }
body.hero-wide .arch {
  border-radius: 0; padding: 0; border: 1px solid var(--jin);
  background: var(--zi-800) var(--cloud) center / 220px; background-blend-mode: soft-light;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}
body.hero-wide .arch::after { inset: clamp(16px, 2.2vw, 26px); border-radius: 0; border-color: rgba(230,207,152,.55); }
body.hero-wide .arch .img-box { inset: clamp(20px, 2.6vw, 30px); border-radius: 0; }
body.hero-wide .arch .img-box.enter { animation-name: unrollX; animation-duration: 2.4s; }
@keyframes unrollX { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
/* 四角金色回纹角饰 */
body.hero-wide .arch-wrap::before, body.hero-wide .arch-wrap::after {
  content: ""; position: absolute; width: 46px; height: 46px; border: 1px solid var(--jin); z-index: 3; pointer-events: none;
}
body.hero-wide .arch-wrap::before { left: -10px; top: -10px; border-right: 0; border-bottom: 0; }
body.hero-wide .arch-wrap::after { right: -10px; bottom: -10px; border-left: 0; border-top: 0; }
body.hero-wide .arch-wrap .vert { right: -42px; top: 8%; }
body.hero-wide .arch-wrap .seal { left: -16px; bottom: 12%; }
@media (max-width: 1180px) {
  body.hero-wide .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
@media (max-width: 1000px) {
  body.hero-wide .hero .wrap { grid-template-columns: 1fr; }
  body.hero-wide .arch-wrap { width: 100%; justify-self: center; order: -1; }
}
@media (max-width: 700px) {
  body.hero-wide .arch-wrap { width: 100%; }
  body.hero-wide .arch-wrap::before, body.hero-wide .arch-wrap::after { width: 28px; height: 28px; }
  body.hero-wide .arch-wrap::before { left: -6px; top: -6px; }
  body.hero-wide .arch-wrap::after { right: -6px; bottom: -6px; }
  body.hero-wide .arch .img-box { inset: 14px; }
  body.hero-wide .arch::after { inset: 10px; }
}

/* 祥云间飘过的小艺术品 */
.art-drift { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.art-piece { position: absolute; opacity: 0; will-change: transform, opacity; }
.art-piece svg { display: block; width: 100%; height: 100%; overflow: visible; }
.art-piece svg { filter: drop-shadow(0 0 6px rgba(230, 207, 152, .35)); }

/* 祥云拆成独立元素（artdrift.js）：整层不再用背景图和整体透明度，改为每朵云单独控制 */
.clouds.split { background: none !important; animation: none !important; opacity: 1 !important; }
.cloud-item { position: absolute; left: 0; top: 0; opacity: .08; pointer-events: none; will-change: transform; }
.page-hero .cloud-item { opacity: .07; }
.cloud-item svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cloud-item.is-art { opacity: .26; }
.cloud-item.is-art svg { transform: rotate(var(--rot, 0deg)); }
.topbar .dot.hours { background: var(--jin); animation: none; box-shadow: none; }

/* 参观页：开放时间三格与右侧日历等高 */
.hours-layout { align-items: stretch; }
.hours-layout .cal { align-self: stretch; }
.hours-main { display: flex; flex-direction: column; gap: 18px; }
.hours-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); align-self: stretch; flex: 1; }
.hours-grid > div { padding: 18px 28px; display: flex; flex-direction: column; justify-content: center; }
.hours-grid h3 { margin-bottom: 6px; }
.hours-grid .big { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.2; }
.hours-grid .big.zh { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); letter-spacing: .1em; }
.hours-grid p { font-size: 14px; line-height: 1.7; }
.temp-closures { background: #fdf6f4; border: 1px solid rgba(162, 56, 46, .28); border-left: 3px solid #9e3229; padding: 18px 22px; }
.temp-closures .tc-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.temp-closures .tc-badge { font-size: 12px; letter-spacing: .14em; color: #fff; background: #9e3229; padding: 2px 9px; font-weight: 500; }
.temp-closures .tc-list { display: flex; flex-direction: column; gap: 10px; }
.temp-closures .tc-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.temp-closures .tc-item + .tc-item { padding-top: 10px; border-top: 1px dashed rgba(162, 56, 46, .2); }
.temp-closures .tc-date { font-family: var(--latin); font-size: 15px; font-weight: 600; color: #8c271f; letter-spacing: .04em; }
.temp-closures .tc-reason { font-weight: 600; color: var(--zi-900); }
.temp-closures .tc-note { width: 100%; font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.hours-disclaimer { margin: 0; padding: 12px 16px; background: rgba(201, 164, 92, .08); border-left: 2px solid var(--jin); font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
@media (max-width: 1000px) { .hours-grid { grid-template-rows: none; } }

/* 顶栏：左侧开放状态，右侧农历 */
.topbar .lunar { opacity: .8; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 700px) { .topbar .lunar { display: none; } }

/* 馆徽（篆书印） */
.seal-logo { display: block; flex: none; width: 46px; height: auto; transition: transform .6s var(--ease); }
.brand:hover .seal-logo { transform: rotate(-4deg) scale(1.04); }
.footer .brand .seal-logo { width: 54px; }
.drawer .brand .seal-logo { width: 40px; }
/* 地图标注里的印章：Leaflet 自带的 img 样式优先级更高，这里要写得更具体 */
.leaflet-container .leaflet-marker-pane .map-pin img.seal-logo { width: 26px !important; height: auto !important; flex: none; }
.loader .mark .seal-logo { width: 84px; margin: 0 auto 22px; animation: stamp .7s var(--ease) both; }
@media (max-width: 700px) { .brand .seal-logo { width: 38px; } }
/* 首页透明导航保持馆徽原图的暗红色；其他深色背景区域适度提亮以保证辨识度 */
.footer .seal-logo, .drawer .seal-logo, .loader .seal-logo {
  filter: brightness(1.45) saturate(1.15);
}

/* 隐藏浏览器自带滚动条（鼠标设备），改用 scrollbar.js 的悬浮细线 */
@media (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.sb-rail { position: fixed; top: 0; right: 0; bottom: 0; width: 14px; z-index: 96; }
.sb-thumb { position: absolute; top: 0; right: 3px; width: 4px; border-radius: 4px; background: rgba(150, 115, 58, .65);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); opacity: 0; transition: opacity .5s ease, width .2s ease, background .2s ease; }
.sb-rail.on .sb-thumb { opacity: 1; }
.sb-rail:hover .sb-thumb, .sb-rail.drag .sb-thumb { opacity: 1; width: 7px; background: #96733a; }
