/* ==========================================================================
   凌博雕塑园 · 智慧导览系统 — 深色艺术展馆风格
   ========================================================================== */

:root {
  --bg: #0d0d0d;
  --panel: #161616;
  --panel-2: #1d1b17;
  --gold: #c9a96e;
  --copper: #cd7f32;
  --ink: #f5f0e8;
  --muted: #9c9485;
  --red: #c0392b;
  --line: rgba(201, 169, 110, 0.18);
  --line-strong: rgba(201, 169, 110, 0.4);
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 14px;
  --nav-h: 62px;
  --topbar-h: 56px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(201, 169, 110, 0.06), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: transparent;
}

/* ---------- 顶部扫码横幅 ---------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  height: var(--topbar-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: rgba(13, 13, 13, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.scan-hint {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.scan-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.scan-title {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.scan-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 视图容器 ---------- */
.view-root {
  padding: calc(var(--topbar-h) + 16px) 16px calc(var(--nav-h) + 28px);
  min-height: 100vh;
}

.view {
  animation: fadeSlide 0.15s ease-out;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 通用排版 ---------- */
.section-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 1px;
  margin: 26px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--copper);
  border-radius: 2px;
  flex-shrink: 0;
}

.serif {
  font-family: var(--serif);
}

.muted {
  color: var(--muted);
}

/* ==========================================================================
   首页
   ========================================================================== */
.hero {
  text-align: center;
  padding: 18px 6px 8px;
}

.hero-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 35%, transparent 42%, rgba(201, 169, 110, 0.15) 43%, transparent 55%),
    linear-gradient(160deg, #2a241a, var(--panel));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 30px;
  font-weight: 700;
}

.hero .park-name {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 6px;
  color: var(--gold);
  font-weight: 700;
}

.hero .park-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 2px;
}

.hero .park-sub::before,
.hero .park-sub::after {
  content: " · ";
  color: var(--copper);
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 0;
  color: var(--gold);
}

.gold-divider .line {
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-divider .line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.artist-card,
.intro-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 18px;
}

.artist-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.artist-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--copper), #7a4a1d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1206;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.artist-name {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
  font-weight: 700;
}

.artist-role {
  font-size: 12px;
  color: var(--copper);
  letter-spacing: 0.5px;
}

.artist-desc {
  font-size: 13.5px;
  color: var(--ink);
}

.intro-card p {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 8px;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.theme-chip {
  font-size: 11.5px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(201, 169, 110, 0.06);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.theme-chip:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(201, 169, 110, 0.12);
  border-color: var(--gold);
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cta-enter {
  margin-top: 24px;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(201, 169, 110, 0.16), rgba(205, 127, 50, 0.08));
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.cta-enter:active {
  transform: scale(0.97);
  background: rgba(201, 169, 110, 0.24);
}

/* ==========================================================================
   作品列表
   ========================================================================== */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn.active {
  color: #1a1206;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.work-group-title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-card {
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease;
}

.work-card.in {
  opacity: 1;
  transform: translateY(0);
}

.work-card:active {
  border-color: var(--line-strong);
}

.work-thumb {
  width: 74px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.work-thumb .art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: rgba(245, 240, 232, 0.55);
  font-size: 26px;
}

.work-thumb .tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10px;
  color: #1a1206;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.work-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.work-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  font-weight: 700;
}

.work-cat {
  font-size: 11.5px;
  color: var(--copper);
  margin: 4px 0 6px;
  letter-spacing: 0.5px;
}

.work-desc {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card .arrow {
  align-self: center;
  color: var(--gold);
  font-size: 16px;
}

/* ==========================================================================
   作品详情
   ========================================================================== */
.detail-back {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 16px;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-hero {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-hero .art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: rgba(245, 240, 232, 0.5);
  font-size: 56px;
}

.detail-hero .art-cap {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 11px;
  color: rgba(245, 240, 232, 0.5);
  letter-spacing: 1px;
}

.detail-title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 20px;
  letter-spacing: 1px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.detail-meta b {
  color: var(--copper);
  font-weight: 600;
  font-family: var(--serif);
}

.detail-body {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 22px;
}

.detail-body p {
  margin-bottom: 12px;
}

/* 语音讲解 */
.audio-player {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 8px;
}

.audio-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(201, 169, 110, 0.18), rgba(205, 127, 50, 0.08));
  color: var(--gold);
  font-size: 14.5px;
  font-family: var(--serif);
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease;
}

.audio-btn:active {
  transform: scale(0.97);
}

.audio-btn .mic-ico {
  font-size: 18px;
}

.audio-player.playing .audio-btn span.label {
  color: var(--ink);
}

/* 语言切换 */
.lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--serif);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}
.lang-btn.active {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.35), rgba(205, 127, 50, 0.22));
  color: var(--gold);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.lang-btn:active { transform: scale(0.96); }

/* 波形动画 */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  margin-top: 14px;
}

.wave .bar {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--copper);
  transition: height 0.15s ease;
}

.wave.playing .bar {
  animation: wavePulse 0.9s ease-in-out infinite;
}

.wave.playing .bar:nth-child(1) { animation-delay: 0s; }
.wave.playing .bar:nth-child(2) { animation-delay: 0.12s; }
.wave.playing .bar:nth-child(3) { animation-delay: 0.24s; }
.wave.playing .bar:nth-child(4) { animation-delay: 0.36s; }
.wave.playing .bar:nth-child(5) { animation-delay: 0.48s; }
.wave.playing .bar:nth-child(6) { animation-delay: 0.6s; }
.wave.playing .bar:nth-child(7) { animation-delay: 0.72s; }

@keyframes wavePulse {
  0%, 100% { height: 8px; }
  50% { height: 26px; }
}

/* 循环进度条 */
.progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(201, 169, 110, 0.15);
  overflow: hidden;
  margin-top: 10px;
}

.progress .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--copper));
}

.progress .fill.running {
  animation: progressRun 60s linear forwards;
}

@keyframes progressRun {
  from { width: 0%; }
  to { width: 100%; }
}

.audio-status {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.audio-dur {
  font-family: var(--serif);
  color: var(--copper);
}

/* ==========================================================================
   导览地图
   ========================================================================== */
.map-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.map-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}

.map-legend .lg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.map-caption {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  font-family: var(--serif);
}

.map-pop {
  margin-top: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px;
  animation: fadeSlide 0.15s ease-out;
}

.map-pop .pop-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold);
  font-weight: 700;
}

.map-pop .pop-cat {
  font-size: 11.5px;
  color: var(--copper);
  margin: 4px 0 6px;
}

.map-pop .pop-desc {
  font-size: 12.5px;
  color: var(--muted);
}

.map-pop .pop-go {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: none;
  color: var(--gold);
  font-size: 13px;
  font-family: var(--serif);
  cursor: pointer;
}

.map-pop .pop-go:active {
  background: rgba(201, 169, 110, 0.12);
}

/* ==========================================================================
   关于页
   ========================================================================== */
.about-banner {
  text-align: center;
  padding: 24px 8px;
}

.about-banner .icon {
  font-size: 40px;
  color: var(--gold);
}

.about-banner .title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  margin-top: 10px;
  letter-spacing: 3px;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 8px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-list {
  list-style: none;
  margin-top: 8px;
}

.about-list li {
  font-size: 13px;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list .li-ico {
  color: var(--copper);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.park-foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 0 8px;
  font-family: var(--serif);
}

/* ==========================================================================
   主题色板（缩略图/详情渐变色）
   ========================================================================== */
.th-red {
  background: linear-gradient(150deg, #5a1a14, #2b0e0a);
}
.th-red .tag { background: var(--red); }

.th-huaqiao {
  background: linear-gradient(150deg, #6b4a20, #2a1c0c);
}
.th-huaqiao .tag { background: var(--copper); }

.th-limiao {
  background: linear-gradient(150deg, #3d5a3a, #182720);
}
.th-limiao .tag { background: #7da883; }

.th-qing {
  background: linear-gradient(150deg, #2f4a4f, #12201f);
}
.th-qing .tag { background: #6aa0a8; }

.th-life {
  background: linear-gradient(150deg, #5a4a30, #2a2115);
}
.th-life .tag { background: var(--gold); }

/* ==========================================================================
   底部导航
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-item .nav-ico {
  font-size: 19px;
  line-height: 1;
  font-family: var(--serif);
}

.nav-item .nav-label {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.nav-item.active {
  color: var(--gold);
}

/* ==========================================================================
   占位图底部留白（作品大图处）保护
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   真实照片 — 封面 / 图片卡片 / 缩略图 / 分类头图 / 降级
   ========================================================================== */

/* 首页封面（入口标识牌） */
.hero-cover {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.12) 0%, rgba(13, 13, 13, 0.55) 55%, rgba(13, 13, 13, 0.86) 100%);
}

.cover-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
}

.cover-text .park-name {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 6px;
  color: #f3e6c8;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.cover-text .park-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 3px;
}

/* 语音提示条（微信内） */
.tts-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(205, 127, 50, 0.4);
  background: rgba(205, 127, 50, 0.1);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.tts-tip-ico {
  color: var(--copper);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tts-tip strong {
  color: var(--gold);
}

/* 通用圆角照片卡片 */
.photo-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 14px 0;
}

.photo-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, transparent, rgba(13, 13, 13, 0.82));
}

.map-photo .photo-img {
  height: 150px;
}

/* 作品列表缩略图（真实照片） */
.work-thumb {
  background: var(--panel-2);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.work-thumb .thumb-img + .tag,
.work-thumb img ~ .tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10px;
  color: #1a1206;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  background: var(--gold);
}

/* 详情大图（真实照片） */
.detail-hero.has-img {
  display: block; /* 用块级布局，避免 flex 与绝对定位伪元素在微信内核里互相挤压 */
  padding: 0;
  position: relative;
  height: 240px;
}

/* 竖图适配：完整显示不裁切，两侧用自身模糊放大填充 */
.detail-hero.has-img.is-portrait {
  height: 420px; /* 兜底值，实际由脚本按图片比例算出 */
  background: #0d0a07;
}

.detail-hero.has-img.is-portrait::before {
  content: "";
  position: absolute;
  top: -26px;
  right: -26px;
  bottom: -26px;
  left: -26px;
  pointer-events: none;
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.62) saturate(1.2);
  z-index: 0;
}

.detail-hero.has-img.is-portrait .detail-img {
  position: relative;
  z-index: 1;
  /* 铺满外框：容器比例与图片一致时不裁切；超长图锁定高度后裁上下，左右始终铺满 */
  object-fit: cover;
  object-position: center 38%;
  animation: none !important;
}

.detail-hero.has-img.is-portrait .art-cap {
  z-index: 3;
}

/* 图片底部渐隐，视觉上把大图“化”进正文，暗示下面还有内容 */
.detail-hero.has-img.is-portrait::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0) 0%,
    rgba(13, 13, 13, 0.55) 55%,
    rgba(13, 13, 13, 0.92) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* 下滑提示：只在竖图占满屏时出现 */
.scroll-hint {
  display: none;
}

.detail-hero.has-img.is-portrait .scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 0);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(245, 240, 232, 0.28);
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  animation: hintPulse 1.9s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.75; }
  50%      { transform: translate(-50%, 5px); opacity: 1; }
}

.detail-img {
  position: relative;
  z-index: 1; /* 兜底：任何情况下都压在模糊背景和渐隐层之上 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.detail-hero.has-img .art-cap {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 11px;
  color: rgba(245, 240, 232, 0.85);
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* 分类头图（红色文化） */
.cat-header {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  margin: 22px 0 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cat-header.in {
  opacity: 1;
  transform: translateY(0);
}

.cat-header-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cat-header-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px;
  font-family: var(--serif);
  font-size: 15px;
  color: #f3e6c8;
  letter-spacing: 2px;
  background: linear-gradient(180deg, transparent, rgba(13, 13, 13, 0.85));
}

/* stagger-pending 保持初始隐藏态 */
.stagger-item.stagger-pending:not(.in) {
  opacity: 0;
  transform: translateY(16px);
}

/* ==========================================================================
   语音不支持 — 降级展示
   ========================================================================== */
.audio-fallback {
  text-align: center;
}

.fallback-ico {
  width: 46px;
  height: 46px;
  margin: 2px auto 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
}

.fallback-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 6px;
}

.fallback-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  text-align: left;
}

.fallback-text {
  text-align: left;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.8;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  max-height: 240px;
  overflow-y: auto;
}

/* 作品直达链接提示条（位于语音播放器上方） */
.deep-tip {
  margin-bottom: 4px;
  animation: rise 0.35s ease both;
}

/* ==========================================================================
   详情页氛围动效（Ken Burns / 金色粒子 / 文字渐入 / 标签微动 / 方向转场）
   全部基于 transform + opacity，避免 layout/paint，兼顾微信内置浏览器
   ========================================================================== */

/* 内容层置于粒子层之上 */
.view-root {
  position: relative;
  z-index: 1;
}

/* 金色粒子氛围层（Canvas 由 JS 注入） */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* ---------- 1. Ken Burns 纪录片式呼吸镜头 ---------- */
.detail-hero.has-img {
  /* 让缓慢放大的图不被裁切到容器外的白边 */
  backface-visibility: hidden;
  transform: translateZ(0);
}

.detail-img.kb {
  will-change: transform;
  animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.15) translate3d(-1.6%, 1.4%, 0);
  }
}

/* ---------- 3. 文字逐段渐入上浮（IntersectionObserver 触发） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. 分类标签微动效：轻缩放 + 金色光泽扫过 ---------- */
.filter-btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.filter-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(245, 240, 232, 0) 30%,
    rgba(245, 240, 232, 0.28) 50%,
    rgba(245, 240, 232, 0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.filter-btn:hover {
  transform: scale(1.05);
  border-color: var(--line-strong);
}

.filter-btn:hover::after {
  opacity: 1;
  animation: sheen 0.7s ease forwards;
}

.filter-btn:active {
  transform: scale(0.96);
}

.filter-btn.active:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 14px rgba(201, 169, 110, 0.28);
}

@keyframes sheen {
  from {
    left: -80%;
  }
  to {
    left: 130%;
  }
}

/* ---------- 5. 列表 ↔ 详情 方向性转场（slide + fade） ---------- */
@keyframes enterForward {
  from {
    opacity: 0;
    transform: translateX(7%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes enterBack {
  from {
    opacity: 0;
    transform: translateX(-7%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.view.enter-forward {
  animation: enterForward 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.view.enter-back {
  animation: enterBack 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* 详情页内容在转场结束后即刻可被观察，避免入场位移与渐入冲突 */
.view.enter-forward .reveal {
  transition-delay: 0.1s;
}

/* ---------- 无障碍：尊重系统“减少动态效果”设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  .detail-img.kb,
  .filter-btn::after {
    animation: none !important;
  }

  .filter-btn:hover,
  .filter-btn:active,
  .filter-btn.active:hover {
    transform: none;
    box-shadow: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .view.enter-forward,
  .view.enter-back {
    animation: fadeSlide 0.15s ease-out both;
  }

  .ambient-canvas {
    display: none;
  }
}
/* ==========================================================================
   九大展区（v1.6 新增）
   ========================================================================== */
.zones-lead {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 14px;
}

.zone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(201, 169, 110, 0.07), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.zone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease;
}

.zone-head:active {
  background: rgba(201, 169, 110, 0.08);
}

.zone-idx {
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(201, 169, 110, 0.55);
  letter-spacing: 1px;
  min-width: 22px;
}

.zone-titles {
  flex: 1;
  min-width: 0;
}

.zone-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 1.5px;
}

.zone-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.zone-arrow {
  color: rgba(201, 169, 110, 0.55);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.zone-card.open .zone-arrow {
  transform: rotate(90deg);
}

.zone-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
  padding: 0 14px;
}

.zone-card.open .zone-body {
  max-height: 2200px;
  padding-bottom: 14px;
}

.zone-summary {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.zone-sec {
  margin-top: 12px;
  padding-left: 11px;
  border-left: 2px solid rgba(201, 169, 110, 0.35);
}

.zone-sec-name {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.zone-sec-desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .zone-body,
  .zone-arrow {
    transition: none;
  }
}

/* ---------- 顶部语言切换 ---------- */
.lang-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--panel);
  color: var(--gold);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:active {
  background: rgba(201, 169, 110, 0.2);
  border-color: var(--gold);
}
