/* 常州非遗 3D 互动站 · 江南水墨风格 */
:root {
  --paper: #F5F1E6;
  --paper-2: #EFE9DA;
  --paper-3: #FBF8F0;
  --ink: #2A3130;
  --ink-2: #55605D;
  --ink-3: #8A918C;
  --jade: #4A7C6F;
  --ochre: #B8894A;
  --seal: #C0392B;
  --accent: #4A7C6F;          /* 当前非遗主色（详情页按项切换，见 js/app.js applyTheme） */
  --accent-rgb: 74,124,111;
  --stage-a: #F8F2E3;         /* 展台背景三色（按项切换） */
  --stage-b: #EADFC6;
  --stage-c: #D8C9A6;
  --line: rgba(42, 49, 48, 0.14);
  --line-soft: rgba(42, 49, 48, 0.08);
  --shadow-1: 0 2px 10px rgba(42, 49, 48, 0.06);
  --shadow-2: 0 10px 30px rgba(42, 49, 48, 0.13);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "PingFang SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background-color: var(--paper);
  background-image: var(--paper-tex);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  transition: background-color .55s ease;
}
body { min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: var(--jade); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部水墨氛围 ---------- */
.wash {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 42% at 18% 0%, rgba(74, 124, 111, 0.10), transparent 70%),
    radial-gradient(50% 38% at 88% 8%, rgba(184, 137, 74, 0.10), transparent 72%),
    radial-gradient(70% 50% at 50% 108%, rgba(42, 49, 48, 0.07), transparent 70%);
}

/* ---------- 首页 ---------- */
.home { position: relative; z-index: 1; padding: 56px 0 48px; }
.hero { text-align: center; margin-bottom: 46px; }
.hero .seal {
  display: inline-block; font-family: var(--serif); font-size: 12px; letter-spacing: 0.42em;
  color: var(--jade); border: 1px solid rgba(74, 124, 111, 0.4);
  border-radius: 2px; padding: 4px 10px 4px 14px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 6.4vw, 52px); letter-spacing: 0.12em;
  margin: 0 0 14px; color: var(--ink);
}
.hero .sub {
  font-family: var(--serif); color: var(--ink-2);
  font-size: clamp(14px, 3.4vw, 17px); letter-spacing: 0.16em; margin: 0;
}
.hero .rule {
  width: 96px; height: 1px; margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 8px;
}
.card {
  display: block; background: var(--paper-3);
  border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-1); cursor: pointer;
  transition: transform .38s cubic-bezier(.22,.7,.3,1), box-shadow .38s, border-color .38s;
  animation: rise .55s cubic-bezier(.22,.7,.3,1) both;
}
.card:hover, .card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: rgba(42, 49, 48, 0.26);
  outline: none;
}
.card:active { transform: translateY(-2px) scale(.995); }
.card .thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(160deg, #F0EADC, #E4DCC8);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.7,.3,1); }
.card:hover .thumb img { transform: scale(1.045); }
.card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,49,48,0) 55%, rgba(42,49,48,0.16));
}
.card .body { padding: 16px 18px 18px; }
.card .name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .06em; margin: 0 0 6px; }
.card .tag { font-size: 13px; color: var(--ink-2); letter-spacing: .06em; margin: 0 0 12px; }
.card .lv {
  display: inline-block; font-size: 11px; letter-spacing: .14em; padding: 2px 9px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
}
.card .lv[data-lv="国家级非遗"] { color: var(--seal); border-color: rgba(192,57,43,.38); }
.card .lv[data-lv="省级非遗"] { color: var(--ochre); border-color: rgba(184,137,74,.45); }
.card .lv[data-lv="市级非遗"], .card .lv[data-lv="区级非遗"] { color: var(--jade); border-color: rgba(74,124,111,.4); }

.foot {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--ink-3); line-height: 1.9; text-align: center;
}
.foot a { color: var(--ink-2); border-bottom: 1px dotted var(--line); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 详情页 ---------- */
.detail { position: relative; z-index: 1; padding: 22px 0 60px; animation: fadeUp .45s cubic-bezier(.22,.7,.3,1) both; }
/* 每项非遗一重氛围光（用主色染出来的淡晕） */
.dwash {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 40% at 16% 0%, rgba(var(--accent-rgb), .13), transparent 70%),
    radial-gradient(48% 34% at 86% 8%, rgba(var(--accent-rgb), .09), transparent 72%),
    radial-gradient(64% 46% at 50% 112%, rgba(var(--accent-rgb), .06), transparent 70%);
  animation: washIn .9s ease both;
}
@keyframes washIn { from { opacity: 0; } to { opacity: 1; } }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2); background: none; border: 0; padding: 6px 2px;
  cursor: pointer; letter-spacing: .08em; font-family: inherit;
  transition: color .25s;
}
.back:hover { color: var(--accent); }
.back svg { width: 16px; height: 16px; }

/* 双栏：左展台（吸顶）/ 右内容 */
.dgrid {
  display: grid; grid-template-columns: minmax(0, 8.5fr) minmax(0, 4.5fr);
  gap: 30px; align-items: start; margin-top: 10px;
}
/* 详情页专用加宽容器（不动首页 .wrap） */
.detail.wrap { max-width: 1160px; }
.stage-col { position: sticky; top: 20px; }

.stage {
  position: relative; width: 100%; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(74% 60% at 50% 44%, var(--stage-a) 0%, var(--stage-b) 58%, var(--stage-c) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), var(--shadow-1);
  aspect-ratio: 13 / 9;   /* 加宽展台后取 13:9，保证吸顶列不超出视口 */
}
.gl-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }

/* 千里江山图（景泰蓝专属）：整页衬《千里江山图》主峰原画，展台衬溪桥一段，信息栏加绢色衬底保可读 */
body[data-fx="qianli"] {
  background-image:
    linear-gradient(rgba(243, 234, 205, .22), rgba(243, 234, 205, .22)),
    url("../assets/img/qianli-page.jpg");
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="qianli"] .info-col {
  background: rgba(250, 244, 224, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px;
  padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(58, 50, 30, .12);
}
.stage[data-fx="qianli"] {
  background: url("../assets/img/qianli-stage.jpg") center 72% / cover no-repeat;
}

/* 龙泉印泥 · 青花浪涛主题（图二整页背景 + 图一展台背景；展台中央柔光晕衬托蓝白瓷盒） */
body[data-fx="langtao"] {
  background-image:
    linear-gradient(rgba(239, 243, 248, .34), rgba(239, 243, 248, .34)),
    url("../assets/img/langtao-page.jpg?v=20261020b");
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="langtao"] .info-col {
  background: rgba(250, 252, 254, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px;
  padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(35, 52, 82, .14);
}
.stage[data-fx="langtao"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(250, 252, 254, .58), rgba(250, 252, 254, 0) 72%),
    url("../assets/img/langtao-stage.jpg?v=20261020c") center / cover no-repeat;
}

/* 梳篦 · 墨金流云主题（图二整页背景 + 图一展台背景；暗底页面上 back/pager 翻浅色，信息栏米金卡） */
body[data-fx="liujin"] {
  background-image:
    linear-gradient(rgba(18, 22, 30, .38), rgba(18, 22, 30, .38)),
    url("../assets/img/liujin-page.jpg?v=20261020");
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="liujin"] .back { color: rgba(238, 231, 214, .85); }
body[data-fx="liujin"] .back:hover { color: #E8C98A; }
body[data-fx="liujin"] .pager { border-top-color: rgba(238, 231, 214, .25); }
body[data-fx="liujin"] .pg-k { color: rgba(240, 233, 216, .55); }
body[data-fx="liujin"] .pg-n { color: #F0E9D8; }
body[data-fx="liujin"] .pg:hover { background: rgba(240, 233, 216, .10); }
body[data-fx="liujin"] .info-col {
  background: rgba(246, 240, 226, .90);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 201, 138, .35); border-radius: 16px;
  padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .30);
}
.stage[data-fx="liujin"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(246, 238, 220, .42), rgba(246, 238, 220, 0) 72%),
    url("../assets/img/liujin-stage.jpg?v=20261020") center / cover no-repeat;
}

/* 金坛刻纸 · 朱砂山色主题（图二整页背景 + 图一展台背景；暗暖底页面上 back/pager 翻浅色，信息栏暖米卡）
   鲜艳化：撤掉深色纱罩与重白晕，改用半透明朱红 multiply 叠层压深提艳 */
body[data-fx="shanhong"] {
  background-image:
    linear-gradient(rgba(186, 24, 16, .18), rgba(186, 24, 16, .18)),
    url("../assets/img/shanhong-page.jpg?v=20261020");
  background-blend-mode: multiply, normal;
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="shanhong"] .back { color: rgba(248, 236, 220, .88); }
body[data-fx="shanhong"] .back:hover { color: #F6C89A; }
body[data-fx="shanhong"] .pager { border-top-color: rgba(248, 236, 220, .25); }
body[data-fx="shanhong"] .pg-k { color: rgba(248, 236, 220, .55); }
body[data-fx="shanhong"] .pg-n { color: #F8ECDC; }
body[data-fx="shanhong"] .pg:hover { background: rgba(248, 236, 220, .10); }
body[data-fx="shanhong"] .info-col {
  background: rgba(251, 244, 232, .90);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 200, 154, .38); border-radius: 16px;
  padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(40, 12, 6, .30);
}
.stage[data-fx="shanhong"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(252, 242, 222, .16), rgba(252, 242, 222, 0) 72%),
    linear-gradient(rgba(186, 24, 16, .16), rgba(186, 24, 16, .16)),
    url("../assets/img/shanhong-stage.jpg?v=20261020") center / cover no-repeat;
  background-blend-mode: normal, multiply, normal;
}

/* 留青竹刻 · 青峦主题（浅底青绿山水：轻亮纱保可读，信息栏青白卡，展台柔光晕） */
body[data-fx="qingluan"] {
  background-image:
    linear-gradient(rgba(240, 246, 243, .22), rgba(240, 246, 243, .22)),
    url("../assets/img/qingluan-page.jpg?v=20261020");
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="qingluan"] .info-col {
  background: rgba(249, 252, 250, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px;
  padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(46, 78, 68, .14);
}
.stage[data-fx="qingluan"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(250, 253, 251, .42), rgba(250, 253, 251, 0) 72%),
    url("../assets/img/qingluan-stage.jpg?v=20261020") center / cover no-repeat;
}

/* 加蟹小笼包 · 金浪主题（浅底金浪纹：轻亮纱保可读，信息栏暖米卡，展台柔光晕） */
body[data-fx="jinlang"] {
  background-image:
    linear-gradient(rgba(250, 244, 230, .24), rgba(250, 244, 230, .24)),
    url("../assets/img/jinlang-page.jpg?v=20261020");
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="jinlang"] .info-col {
  background: rgba(252, 247, 236, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px;
  padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(88, 68, 40, .14);
}
.stage[data-fx="jinlang"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(253, 247, 234, .40), rgba(253, 247, 234, 0) 72%),
    url("../assets/img/jinlang-stage.jpg?v=20261020b") center / cover no-repeat;
}

/* 展台下方：馆藏瓷器横向轮播（无缝循环，悬停暂停/单图放大，点击看大图，四角钝化 + 边缘羽化，整图等比不裁切） */
.stage-gallery {
  margin-top: 48px; overflow: hidden; padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.sg-track { display: flex; width: max-content; animation: sgMarquee 30s linear infinite; }
.sg-track img {
  display: block; height: 156px; width: auto;
  margin-right: 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 4px 14px rgba(58, 50, 30, .20);
  cursor: zoom-in; position: relative;
  transition: transform .28s cubic-bezier(.22,.7,.3,1), box-shadow .28s;
}
.sg-track img:hover {
  transform: scale(1.09); z-index: 2;
  box-shadow: 0 10px 26px rgba(58, 50, 30, .32);
}
.stage-gallery:hover .sg-track { animation-play-state: paused; }
@keyframes sgMarquee { to { transform: translateX(-50%); } }

/* 点击大图灯箱（再点/ESC 退出） */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(32, 30, 24, .80);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none; cursor: zoom-out;
  transition: opacity .28s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(80vw, 880px); max-height: 80vh;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 20px 64px rgba(0, 0, 0, .45);
  transform: scale(.92); transition: transform .3s cubic-bezier(.22,.7,.3,1);
}
.lightbox.open img { transform: scale(1); }
.lightbox .lb-cap {
  margin: 0; font-family: var(--serif); font-size: 15px; letter-spacing: .14em;
  color: rgba(250, 244, 224, .92); text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
@media (prefers-reduced-motion: reduce) { .sg-track { animation: none; } .sg-track img { transition: none; } }

/* 展品竖签 */
.vlabel {
  position: absolute; top: 14px; left: 14px; z-index: 2; pointer-events: none;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 12px;
  letter-spacing: .3em; color: var(--accent);
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.62);
  border-radius: 9px; padding: 10px 5px; opacity: .88;
}
/* 展台工具条 */
.stage-tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.tool {
  pointer-events: auto; width: 34px; height: 34px; border-radius: 9px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.55); border: 1px solid var(--line-soft);
  color: var(--ink-2); cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tool:hover { background: #fff; color: var(--ink); }
.tool:active { transform: scale(.93); }
.tool svg { width: 16px; height: 16px; }

.stage .hint {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 12px; letter-spacing: .14em; color: var(--ink-3); pointer-events: none;
  transition: opacity .5s; z-index: 1;
}
.stage.touched .hint { opacity: 0; }

.stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.stage:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }

.loader {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: opacity .4s;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader .panel {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  padding: 18px 26px 20px; border-radius: 14px;
  background: rgba(252, 249, 242, .93);
  border: 1px solid rgba(42, 49, 48, .10);
  box-shadow: 0 6px 24px rgba(42, 49, 48, .10);
  max-width: 82%;
}
.loader .bar { width: 150px; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .28s ease; }
.loader .txt { font-size: 12px; letter-spacing: .22em; color: var(--ink-2); font-family: var(--serif); }
.loader .err { font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.9; }
.loader .retry {
  font: inherit; font-size: 13px; letter-spacing: .1em; cursor: pointer;
  padding: 7px 20px; border-radius: 999px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
}

/* 信息栏 */
.dhead { margin: 2px 0 4px; }
.dhead-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dhead-t { min-width: 0; }
.dhead h1 {
  font-family: var(--serif); font-size: clamp(23px, 4.2vw, 31px); font-weight: 700;
  letter-spacing: .1em; margin: 0 0 6px; line-height: 1.32;
}
.dhead .tagline {
  font-family: var(--serif); color: var(--accent); letter-spacing: .12em;
  font-size: 14.5px; margin: 0; opacity: .92;
}
.lv-seal {
  flex: none; font-family: var(--serif); font-size: 11px; letter-spacing: .18em;
  padding: 4px 10px 4px 12px; border-radius: 3px; color: #fff; margin-top: 7px;
  box-shadow: var(--shadow-1);
}
.lv-seal[data-lv="国家级非遗"] { background: var(--seal); }
.lv-seal[data-lv="省级非遗"] { background: var(--ochre); }
.lv-seal[data-lv="市级非遗"], .lv-seal[data-lv="区级非遗"] { background: var(--jade); }
.lead {
  margin: 16px 0 0; padding-left: 14px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 15px; line-height: 2; color: var(--ink-2);
}

/* 选项卡 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 28px 0 0; position: relative; }
.tab {
  display: flex; align-items: center; gap: 8px; position: relative; overflow: hidden;
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .2em;
  padding: 10px 14px 12px; background: none; border: 0; cursor: pointer;
  color: var(--ink-3); transition: color .25s, transform .12s;
}
.tab:hover { color: var(--ink-2); }
.tab:active { transform: translateY(1px) scale(.98); }
.tab.active { color: var(--ink); }
.tab-ic { display: inline-flex; opacity: .75; transition: opacity .25s; }
.tab-ic svg { width: 17px; height: 17px; display: block; }
.tab.active .tab-ic { opacity: 1; color: var(--accent); }
.tab.active .tab-ic svg { animation: icPop .5s cubic-bezier(.22,.7,.3,1); }
@keyframes icPop {
  0% { transform: scale(.55) rotate(-14deg); }
  62% { transform: scale(1.18) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
/* 滑动墨条 */
.tab-ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; pointer-events: none;
  transition: transform .38s cubic-bezier(.22,.7,.3,1), width .38s cubic-bezier(.22,.7,.3,1);
}
/* 点击涟漪（墨滴） */
.ripple {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); opacity: .26; pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rip .62s ease-out forwards;
}
@keyframes rip { to { transform: translate(-50%, -50%) scale(13); opacity: 0; } }
.panel { display: none; padding: 20px 2px 4px; }
.panel.active { display: block; animation: fadeUp .3s cubic-bezier(.22,.7,.3,1) both; }

/* 做法：步骤签 */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 13px; margin-bottom: 15px; }
.step-no {
  flex: none; width: 30px; height: 30px; margin-top: 2px;
  border: 1px solid var(--accent); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; color: var(--accent);
  background: rgba(255,255,255,.5);
}
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.95; }

/* 用法 / 历史：墨点列表 */
.dots { list-style: none; margin: 0; padding: 0; }
.dots li {
  position: relative; padding-left: 17px; margin-bottom: 11px;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.95;
}
.dots li::before {
  content: ""; position: absolute; left: 1px; top: .8em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); opacity: .6;
}

/* 非遗档案 */
.note-box {
  margin-top: 28px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px;
  background: var(--paper-3); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
}
.nb-seal {
  flex: none; width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent); color: #fff; font-family: var(--serif); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.nb-body b {
  display: block; font-family: var(--serif); font-size: 11.5px; letter-spacing: .26em;
  color: var(--ink-3); font-weight: 400; margin-bottom: 3px;
}
.nb-body span { font-size: 13px; color: var(--ink-2); line-height: 1.85; }

/* 参考来源 */
.srcs { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.srcs h3 { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--ink-3); margin: 0 0 10px; font-weight: 400; }
.srcs ul { margin: 0; padding-left: 1.15em; }
.srcs li { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; word-break: break-all; }
.srcs a { color: var(--ink-2); border-bottom: 1px dotted var(--line); transition: color .25s; }
.srcs a:hover { color: var(--accent); }

/* 上一项 / 下一项 */
.pager {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.pg {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 14px;
  border-radius: 12px; transition: background .3s;
}
.pg:hover { background: rgba(255,255,255,.6); }
.pg-k { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }
.pg-n { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); transition: color .25s; }
.pg:hover .pg-n { color: var(--accent); }
.pg.next { align-items: flex-end; text-align: right; }
.pg.home { align-items: center; }

/* ---------- 移动端 ---------- */
@media (max-width: 920px) {
  /* 2026-10-23：单列后 gr[id] 项默认 min-width:auto，会被 .sg-track（跑马灯 max-content）撑到 2000px，
     整页出现横向滚动、正文被挤到屏幕外。这里把「最小宽度 0」一路补下来，并允许单列占满。 */
  .dgrid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .dgrid > * { min-width: 0; }
  .stage-col { position: static; min-width: 0; }
  .info-col { min-width: 0; }
  .stage-gallery { min-width: 0; max-width: 100%; }
  .detail.wrap { max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .vlabel { display: none; }
}
/* 兜底：任何情况下都不要出现横向滚动条（clip 不影响 sticky，hidden 会） */
html { overflow-x: clip; }
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .home { padding: 34px 0 34px; }
  .hero { margin-bottom: 30px; }
  .card .body { padding: 12px 14px 14px; }
  .card .name { font-size: 16px; }
  .card .tag { font-size: 12px; margin-bottom: 9px; }
  .stage { aspect-ratio: 1 / 1; border-radius: 14px; }
  .detail { padding: 16px 0 44px; }
  .dhead h1 { font-size: 23px; }
  .lead { font-size: 14px; }
  .tabs { margin-top: 22px; }
  .tab { padding: 9px 10px 11px; letter-spacing: .14em; font-size: 14px; }
  .steps p, .dots li { font-size: 14px; }
  .pager { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 34px; }
  .pg { padding: 8px 10px; }
  .pg.home { grid-column: span 2; flex-direction: row; justify-content: center; gap: 8px; }
  .pg-n { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ 龙城揽胜 · 常州地标（首页入口键 + 莲花馆主题） ============ */
/* 首页底部地标入口键：与非遗卡片同一纸面语言——左图右文 + 新上徽章 + 圆形箭头 */
.lm-entry {
  margin-top: 56px; display: flex; align-items: center; gap: 20px;
  padding: 16px 24px 16px 16px; text-decoration: none;
  background: var(--paper-3);
  border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-1); cursor: pointer;
  transition: transform .38s cubic-bezier(.22,.7,.3,1), box-shadow .38s, border-color .38s;
  animation: rise .55s cubic-bezier(.22,.7,.3,1) both;
}
.lm-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(42, 49, 48, .12);
  border-color: rgba(176, 86, 127, .35);
}
.lm-entry .lme-thumb {
  flex: none; width: 172px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: url("../assets/img/lianhua.jpg") center 42% / cover no-repeat;
}
.lm-entry .lme-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.lm-entry .lme-name { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.lm-entry .lme-tag { font-style: normal; font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }
.lm-entry .lme-right { flex: none; display: flex; align-items: center; gap: 16px; }
.lm-entry .lme-new {
  font-size: 11px; letter-spacing: .14em; text-indent: .14em; padding: 3px 10px;
  border-radius: 999px; border: 1px solid rgba(176, 86, 127, .4); color: #B0567F;
}
.lm-entry .lme-arrow {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: transform .35s cubic-bezier(.22,.7,.3,1), color .35s, border-color .35s;
}
.lm-entry:hover .lme-arrow { transform: translateX(5px); color: #B0567F; border-color: rgba(176, 86, 127, .4); }
.lm-entry .lme-arrow svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .lm-entry { flex-wrap: wrap; padding: 14px; gap: 14px; }
  .lm-entry .lme-thumb { width: 100%; }
  .lm-entry .lme-right { width: 100%; justify-content: space-between; }
}

/* —— 莲花馆「莲池」主题：整页衬荷塘锦鲤图（浅底亮纱），展台衬墨青荷叶纹 —— */
body[data-fx="lian"] {
  background-image:
    linear-gradient(rgba(250, 246, 243, .30), rgba(250, 246, 243, .30)),
    url("../assets/img/lian-page.jpg?v=20261021");
  background-size: cover, cover; background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="lian"] .info-col {
  background: rgba(252, 248, 250, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px; padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(120, 70, 100, .16);
}
.stage[data-fx="lian"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(247, 239, 244, .22), rgba(247, 239, 244, 0) 72%),
    url("../assets/img/lian-stage.jpg?v=20261021") center / cover no-repeat;
}

/* —— 天宁禅寺「金顶青浪」主题：整页衬红塔祥云插画（浅底亮纱），展台衬青浪塔影 —— */
body[data-fx="ciansi"] {
  background-image:
    linear-gradient(rgba(250, 247, 238, .30), rgba(250, 247, 238, .30)),
    url("../assets/img/tn-page.jpg?v=20261020");
  background-size: cover, cover; background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="ciansi"] .info-col {
  background: rgba(252, 250, 240, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px; padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(96, 74, 40, .16);
}
.stage[data-fx="ciansi"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(246, 240, 224, .22), rgba(246, 240, 224, 0) 72%),
    url("../assets/img/tn-stage.jpg?v=20261020") center / cover no-repeat;
}

/* —— 宝林禅寺「金莲青绿」主题：整页衬金底青山古画（浅底亮纱），展台衬云山松崖 —— */
body[data-fx="baolin"] {
  background-image:
    linear-gradient(rgba(250, 249, 236, .30), rgba(250, 249, 236, .30)),
    url("../assets/img/bl-page.jpg?v=20261020");
  background-size: cover, cover; background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="baolin"] .info-col {
  background: rgba(252, 251, 242, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px; padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(80, 90, 50, .16);
}
.stage[data-fx="baolin"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(244, 243, 227, .22), rgba(244, 243, 227, 0) 72%),
    url("../assets/img/bl-stage.jpg?v=20261020") center / cover no-repeat;
}

/* —— 滆湖之星「湖光水蓝」主题：整页衬湖面涟漪（浅底亮纱），展台衬丝绸水质感 —— */
body[data-fx="gehu"] {
  background-image:
    linear-gradient(rgba(240, 247, 251, .30), rgba(240, 247, 251, .30)),
    url("../assets/img/gehu-page.jpg?v=20261020d");
  background-size: cover, cover; background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="gehu"] .info-col {
  background: rgba(248, 252, 254, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px; padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(52, 90, 120, .16);
}
.stage[data-fx="gehu"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(240, 248, 252, .30), rgba(240, 248, 252, 0) 72%),
    url("../assets/img/gehu-stage.jpg?v=20261020d") center / cover no-repeat;
}

/* —— 文笔塔「墨樱文运」主题：整页衬墨染樱塘（暗底亮字），展台衬樱花水墨 —— */
body[data-fx="wenta"] {
  background-image:
    linear-gradient(rgba(32, 28, 34, .28), rgba(32, 28, 34, .28)),
    url("../assets/img/wenta-page.jpg?v=20261020e");
  background-size: cover, cover; background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="wenta"] .info-col {
  background: rgba(250, 242, 245, .90);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px; padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(90, 60, 75, .22);
}
body[data-fx="wenta"] .back { color: rgba(245, 232, 238, .85); }
body[data-fx="wenta"] .back:hover { color: #F0C6D6; }
body[data-fx="wenta"] .pager { border-top-color: rgba(245, 232, 238, .25); }
body[data-fx="wenta"] .pg-k { color: rgba(245, 232, 238, .55); }
body[data-fx="wenta"] .pg-n { color: #F5E8EE; }
.stage[data-fx="wenta"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(248, 239, 243, .18), rgba(248, 239, 243, 0) 72%),
    url("../assets/img/wenta-stage.jpg?v=20261020e") center / cover no-repeat;
}

/* —— 花神宫「青峦叠翠」主题：整页衬涡线青山（浅底亮纱），展台衬青绿丘林 —— */
body[data-fx="huashen"] {
  background-image:
    linear-gradient(rgba(244, 249, 240, .32), rgba(244, 249, 240, .32)),
    url("../assets/img/huashen-page.jpg?v=20261020f");
  background-size: cover, cover; background-position: center top, center top;
  background-attachment: fixed, fixed;
}
body[data-fx="huashen"] .info-col {
  background: rgba(250, 252, 247, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 16px; padding: 20px 22px 24px;
  box-shadow: 0 6px 22px rgba(60, 90, 55, .16);
}
.stage[data-fx="huashen"] {
  background:
    radial-gradient(ellipse 62% 56% at 50% 52%, rgba(240, 248, 236, .24), rgba(240, 248, 236, 0) 72%),
    url("../assets/img/huashen-stage.jpg?v=20261020f") center / cover no-repeat;
}

/* 2026-10-23 无障碍：键盘焦点环（朱砂），仅 :focus-visible 触发 */
:where(a,button,input,[tabindex]:not([tabindex="-1"])):focus-visible{
  outline:2px solid var(--accent, #C03A2B);outline-offset:2px;border-radius:6px}

/* 2026-10-23 触控目标：详情页返回键 31px、右侧工具键 34px，手机上都偏小。
   统一抬到 38px（视觉尺寸通过 padding 补足，圆角不变）。 */
@media (max-width:640px){
  #btnBack{min-height:38px;display:inline-flex;align-items:center}
  .tool{width:38px;height:38px}
  .tabs .tab{min-height:44px}
}

/* 2026-10-23 高模开关（.tool.hd）：未开与其它工具键一致；已开用朱砂底色 + 白字，
   与全站「选中的红」一致。文字用等宽小字，和图标按钮区分开。 */
.tool.hd{font:700 10px/1 ui-monospace,"SFMono-Regular",Consolas,monospace;letter-spacing:.06em;color:var(--ink-2)}
.tool.hd.on{background:#C03A2B;border-color:#C03A2B;color:#FBF8F1}
.tool.hd.on:hover{background:#A83225;color:#fff}
