:root {
  --bg-black: #000000;
  --gold-border: rgba(212, 165, 92, 0.55);
  --gold-text: #f3d28f;
  --card-bg: rgba(34, 17, 5, 0.78);
  --stage-max-width: 450px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-black);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
}

/* 移动端全屏无黑边；PC 端居中限宽模拟手机端 */
.app-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--bg-black);
}

@media (min-width: 520px) {
  .app-shell {
    max-width: var(--stage-max-width);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  }
}

/* 通用页面层 */
.page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
  z-index: 1;
}

.page.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* =========================================
   单屏页面（第4页首页、第5页地点、第8页效果）
   左右严格铺满（cover），上下对称裁剪，前景垂直居中收拢
   ========================================= */
.page-single {
  overflow: hidden;
}

.single-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.single-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top, 12px) 0 env(safe-area-inset-bottom, 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 品牌 Logo：全站统一固定在左上角，大小与位置一致 */
.brand-header,
.long-brand-header {
  position: absolute;
  top: max(calc(env(safe-area-inset-top, 0px) + 16px), 6.5dvh);
  left: 0;
  right: 0;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  z-index: 5;
  pointer-events: none;
}

.brand-logo {
  width: clamp(58px, 16%, 68px);
  height: auto;
}

/* 通用图片按钮 */
.img-btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: block;
  transition: transform 0.14s cubic-bezier(0.4, 0, 0.2, 1), filter 0.14s ease;
}

.img-btn:active {
  transform: scale(0.95);
  filter: brightness(1.12);
}

.img-btn img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* =========================================
   第4页：首页
   ========================================= */
.home-content {
  /* 整体重心上移，使 Logo 与主标题位于上方安全区，4个按钮居中落在光环圆心内 */
  padding-bottom: min(16dvh, 132px);
}

.home-hero {
  width: 75%;
  max-width: 306px;
  display: flex;
  justify-content: center;
  margin-bottom: min(5.4dvh, 46px);
}

.home-title {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.75));
}

.home-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: min(1.9dvh, 16px);
}

.home-btn {
  width: min(42.5%, 176px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

/* =========================================
   第5页：展览地点
   ========================================= */
.location-content {
  padding-top: calc(max(calc(env(safe-area-inset-top, 0px) + 16px), 6.5dvh) + 42px);
  gap: 0;
}

.location-card {
  position: relative;
  /* 同时受宽度与视口高度约束，确保短屏下卡片位于 Logo 下方且与返回按钮全可见 */
  width: min(88%, 50dvh);
  max-width: 390px;
  aspect-ratio: 1419 / 1850;
}

.location-card-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.location-card-inner {
  position: absolute;
  inset: 0;
  padding: 16% 7.5% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.location-text {
  width: 94%;
  height: auto;
}

.location-map-link {
  display: block;
  width: 82%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 165, 92, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.location-map-link:active {
  transform: scale(0.97);
  filter: brightness(1.08);
}

.location-map {
  width: 100%;
  height: auto;
}

.single-footer {
  margin-top: min(2.2vh, 18px);
  display: flex;
  justify-content: center;
}

.back-btn {
  width: clamp(98px, 28%, 126px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.65));
}

/* =========================================
   第6页（展台日程）& 第7页（专题日程）超长拼接页
   顶部 bg-up.png + 中间纯黑 CSS 背景 + 底部 bg-down.png
   ========================================= */
.page-long {
  background-color: var(--bg-black);
  overflow: hidden;
}

.long-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.long-scroll::-webkit-scrollbar {
  display: none;
}

.long-stage {
  position: relative;
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-black);
  overflow: hidden;
}

.long-bg-up {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.long-bg-down {
  position: absolute;
  bottom: -48px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.long-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* 留出顶部空白与 Logo 下方间距，确保长图卡片起始位置与原设计图一致，不遮挡 Logo */
  padding-top: calc(max(calc(env(safe-area-inset-top, 0px) + 16px), 6.5dvh) + 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.long-card-wrap {
  width: 91%;
}

.long-text-img {
  width: 100%;
  height: auto;
}

/* 为底部悬浮返回按钮留出紧凑的滚动安全空间 */
.long-bottom-spacer {
  width: 100%;
  height: calc(52px + env(safe-area-inset-bottom, 0px));
}

/* 底部悬浮固定返回栏 */
.floating-back-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 6px 0 max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 35%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.floating-back-bar .back-btn {
  pointer-events: auto;
}

/* =========================================
   第8页：展览效果（暂用占位结构）
   ========================================= */
.effect-content {
  padding-top: calc(max(calc(env(safe-area-inset-top, 0px) + 16px), 6.5dvh) + 42px);
}

.effect-card {
  position: relative;
  width: min(88%, 50dvh);
  max-width: 390px;
  aspect-ratio: 1419 / 1850;
  border-radius: 16px;
  border: 1px solid var(--gold-border);
  background: linear-gradient(180deg, rgba(46, 23, 6, 0.88) 0%, rgba(22, 11, 3, 0.92) 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 224, 155, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 7% 7%;
}

.effect-card-tab {
  width: 54%;
  height: 44px;
  background: linear-gradient(180deg, #9d6f32 0%, #5b3b14 100%);
  border: 1px solid rgba(255, 222, 154, 0.6);
  border-top: none;
  border-radius: 0 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.effect-card-tab span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.effect-card-body {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 12px;
}

.effect-box {
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(212, 165, 92, 0.52);
  background: #070503;
  overflow: hidden;
  padding: 0;
}

.effect-spin-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

.effect-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(243, 210, 143, 0.35);
  color: var(--gold-text);
  font-size: 11px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.effect-fullscreen-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(243, 210, 143, 0.45);
  color: var(--gold-text);
  font-size: 11px;
  cursor: pointer;
}

.effect-fullscreen-btn:active {
  transform: scale(0.94);
}

.effect-loading-bar {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(243, 210, 143, 0.9);
  font-size: 11px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.effect-loading-bar.is-done {
  opacity: 0;
}

.effect-pano-entry {
  display: block;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.effect-pano-entry:active {
  transform: scale(0.98);
  filter: brightness(1.08);
}

.effect-pano-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.effect-pano-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.68) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.effect-pano-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b8843b 0%, #6f4919 100%);
  border: 1px solid rgba(255, 224, 155, 0.72);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.effect-pano-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffe39b;
  box-shadow: 0 0 0 0 rgba(255, 227, 155, 0.75);
  animation: pano-pulse 1.8s infinite;
}

@keyframes pano-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 227, 155, 0.75); }
  70% { box-shadow: 0 0 0 10px rgba(255, 227, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 227, 155, 0); }
}

.effect-pano-cta-text {
  color: #fff6dc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.effect-pano-sub {
  font-size: 11px;
  color: rgba(243, 210, 143, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* =========================================
   全屏 VR 模态框（外观序列帧 & 2:1 内景漫游）
   ========================================= */
.vr-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000000;
  display: flex;
  flex-direction: column;
}

.vr-modal[hidden] {
  display: none;
}

.vr-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: max(calc(env(safe-area-inset-top, 0px) + 12px), 16px) 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.vr-close-btn {
  pointer-events: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 143, 0.55);
  background: rgba(20, 12, 4, 0.75);
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.vr-close-btn:active {
  transform: scale(0.95);
}

.vr-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.vr-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.vr-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vr-hint {
  position: absolute;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(243, 210, 143, 0.35);
  color: var(--gold-text);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

/* 3D 空间热点 */
.pano-hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pano-hotspot {
  position: absolute;
  left: 0;
  top: 0;
  border: none;
  background: transparent;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  will-change: transform, opacity;
  transition: opacity 0.18s ease;
}

.pano-hotspot-ring {
  position: absolute;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 155, 0.85);
  animation: pano-pulse 1.8s infinite;
}

.pano-hotspot-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe5a3 25%, #b97d28 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.pano-hotspot-label {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 10, 4, 0.82);
  border: 1px solid rgba(243, 210, 143, 0.6);
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.pano-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(243, 210, 143, 0.45);
  color: var(--gold-text);
  font-size: 12px;
  pointer-events: none;
}

/* 底部场景切换卡片 */
.pano-scene-switcher {
  position: absolute;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(12, 8, 4, 0.78);
  border: 1px solid rgba(212, 165, 92, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scene-chip {
  position: relative;
  width: 94px;
  height: 52px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: #000000;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.14s ease;
}

.scene-chip.is-active {
  border-color: #f3d28f;
  box-shadow: 0 0 12px rgba(243, 210, 143, 0.45);
}

.scene-chip:active {
  transform: scale(0.95);
}

.scene-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-chip span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
  color: #ffffff;
  font-size: 11px;
  text-align: center;
}

/* =========================================
   开场 HUD（右上角跳过按钮 + 底部进度指示点）
   ========================================= */
.intro-hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.intro-hud[hidden] {
  display: none;
}

.intro-skip-btn {
  pointer-events: auto;
  position: absolute;
  top: max(calc(env(safe-area-inset-top, 0px) + 13px), 6dvh);
  right: calc(5% + 38px);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 143, 0.52);
  background: rgba(15, 9, 3, 0.58);
  color: var(--gold-text);
  font-size: 12px;
  letter-spacing: 1px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.18s ease;
}

.intro-skip-btn:active {
  transform: scale(0.94);
  background: rgba(45, 28, 8, 0.78);
}

.intro-dots {
  position: absolute;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.intro-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(243, 210, 143, 0.3);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.intro-dot.is-active {
  width: 18px;
  background: #f3d28f;
}

/* =========================================
   全局氛围特效：星尘闪烁 & 大标题金色流光扫过
   ========================================= */
.starfield {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffe9b3;
  box-shadow: 0 0 6px 2px rgba(255, 216, 130, 0.8);
  opacity: 0;
  animation: star-twinkle 3.6s ease-in-out infinite;
}

.star.s1 { left: 16%; top: 22%; animation-delay: 0.2s; }
.star.s2 { left: 82%; top: 19%; width: 4px; height: 4px; animation-delay: 1.1s; }
.star.s3 { left: 12%; top: 46%; animation-delay: 2.0s; }
.star.s4 { left: 87%; top: 42%; width: 2px; height: 2px; animation-delay: 0.7s; }
.star.s5 { left: 23%; top: 64%; width: 4px; height: 4px; animation-delay: 1.6s; }
.star.s6 { left: 78%; top: 61%; animation-delay: 2.5s; }
.star.s7 { left: 34%; top: 16%; width: 2px; height: 2px; animation-delay: 1.9s; }
.star.s8 { left: 66%; top: 30%; animation-delay: 0.4s; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.6); }
  50% { opacity: 0.92; transform: scale(1.35); }
}

/* 书法标题精准轮廓金色流光（CSS mask-image 贴合文字笔画） */
.shimmer-wrap {
  position: relative;
}

.shimmer-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 248, 214, 0.88) 49%,
    rgba(255, 224, 140, 0.55) 54%,
    rgba(255, 255, 255, 0) 68%
  );
  background-size: 240% 100%;
  background-position: 140% 0;
  mix-blend-mode: overlay;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: gold-shimmer 3.4s ease-in-out infinite;
}

.shimmer-intro1::after {
  -webkit-mask-image: url('../pic/1/title.png');
  mask-image: url('../pic/1/title.png');
  animation-delay: 0.7s;
}

.shimmer-intro2::after {
  -webkit-mask-image: url('../pic/2/t1.png');
  mask-image: url('../pic/2/t1.png');
  animation-delay: 0.65s;
}

.shimmer-home::after {
  -webkit-mask-image: url('../pic/4/title-4.png');
  mask-image: url('../pic/4/title-4.png');
  animation-delay: 0.5s;
}

@keyframes gold-shimmer {
  0% { background-position: 140% 0; }
  55%, 100% { background-position: -60% 0; }
}

/* 首页菜单按钮在从开场切入时错峰微浮现 */
.page-home.is-active .home-btn {
  animation: home-btn-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-home.is-active .home-btn:nth-child(1) { animation-delay: 0.08s; }
.page-home.is-active .home-btn:nth-child(2) { animation-delay: 0.16s; }
.page-home.is-active .home-btn:nth-child(3) { animation-delay: 0.24s; }
.page-home.is-active .home-btn:nth-child(4) { animation-delay: 0.32s; }

@keyframes home-btn-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   第1页：开场页1（金标世代 精准无界）
   ========================================= */
.page-intro {
  cursor: pointer;
}

/* 与 background-size: cover 100% 数学等价的舞台容器，确保地平线设备不偏位 */
.cover-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(100dvh * 750 / 1624));
  aspect-ratio: 750 / 1624;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.cover-stage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro1-machine {
  position: absolute;
  left: 1%;
  width: 98%;
  bottom: 18.2%;
  height: auto;
  opacity: 0;
}

.page-intro-1.is-active .intro1-machine {
  animation: fade-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.intro1-content {
  padding-bottom: min(14dvh, 112px);
}

.shimmer-intro1 {
  width: 85%;
  max-width: 342px;
  margin-bottom: min(3.4dvh, 28px);
}

.intro1-sub-wrap {
  width: 69%;
  max-width: 278px;
}

/* 纯 CSS 金色水平激光光束（替代有底色边界问题的 light.png） */
.css-gold-flare {
  position: relative;
  width: 82%;
  max-width: 332px;
  height: 26px;
  margin: min(1.2dvh, 10px) 0;
  pointer-events: none;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(238, 152, 36, 0.46) 0%,
    rgba(196, 108, 16, 0.16) 45%,
    rgba(196, 108, 16, 0) 100%
  );
}

.css-gold-flare::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(255, 180, 60, 0) 0%,
    rgba(242, 168, 52, 0.55) 22%,
    #fff6d6 50%,
    rgba(242, 168, 52, 0.55) 78%,
    rgba(255, 180, 60, 0) 100%
  );
}

.css-gold-flare::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #ffffff 0%,
    #ffd573 42%,
    rgba(255, 174, 43, 0) 100%
  );
  filter: blur(0.6px);
}

.intro1-date-wrap {
  width: 49%;
  max-width: 198px;
}

.page-intro-1.is-active .intro-anim-title {
  animation: title-drop-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}
.page-intro-1.is-active .intro-anim-sub {
  animation: fade-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}
.page-intro-1.is-active .intro-anim-light {
  animation: light-expand 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
}
.page-intro-1.is-active .intro-anim-date {
  animation: pop-fade-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.02s both;
}

/* =========================================
   第2页：开场页2（金标飞白 + 实体手术设备）
   ========================================= */
.intro2-content {
  padding-top: min(8dvh, 64px);
  padding-bottom: min(4dvh, 32px);
}

.shimmer-intro2 {
  width: 67%;
  max-width: 272px;
  margin-bottom: min(1.8dvh, 14px);
}

.intro2-sub-wrap {
  width: 56.5%;
  max-width: 228px;
}

.intro2-machine-wrap {
  width: 61%;
  max-width: 248px;
  margin-top: min(2dvh, 16px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.75));
}

.page-intro-2.is-active .intro2-anim-t1 {
  animation: title-drop-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.page-intro-2.is-active .intro2-anim-t2 {
  animation: fade-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}
.page-intro-2.is-active .intro2-anim-light {
  animation: light-expand 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both;
}
.page-intro-2.is-active .intro2-anim-machine {
  animation: machine-advance 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.88s both;
}

/* =========================================
   第3页：开场页3（精准 · 共见 · 智见 · 未来）
   ========================================= */
.intro3-content {
  padding-bottom: min(12dvh, 96px);
}

.intro3-words {
  width: 82%;
  max-width: 332px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro3-row {
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
}

.intro3-row.row-1 {
  width: 51%;
  align-self: flex-start;
  margin-left: 6%;
}

.intro3-row.row-2 {
  width: 38%;
  align-self: flex-end;
  margin-right: 7%;
  margin-top: -3%;
}

.intro3-row.row-3 {
  width: 41%;
  align-self: flex-start;
  margin-left: 8%;
  margin-top: -2%;
}

.intro3-row.row-4 {
  width: 53%;
  align-self: flex-end;
  margin-right: 4%;
  margin-top: -3%;
}

.page-intro-3.is-active .intro3-row.row-1 {
  animation: fly-in-left 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}
.page-intro-3.is-active .intro3-row.row-2 {
  animation: fly-in-right 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}
.page-intro-3.is-active .intro3-row.row-3 {
  animation: fly-in-left 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.90s both;
}
.page-intro-3.is-active .intro3-row.row-4 {
  animation: fly-in-right 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1.28s both;
}

/* 四角金色星芒装饰 */
.flare-star {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, #fffbe0 0%, #f5c96b 35%, rgba(245, 201, 107, 0) 72%);
}

.flare-star::before,
.flare-star::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(255, 236, 179, 0), #fff6d1 50%, rgba(255, 236, 179, 0));
}

.flare-star::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.flare-small {
  right: -18px;
  top: 22%;
  width: 12px;
  height: 12px;
  animation: star-twinkle 2.4s ease-in-out infinite;
}
.flare-small::before,
.flare-small::after {
  width: 22px;
  height: 1.5px;
}

.flare-large {
  left: -34px;
  top: 44%;
  width: 18px;
  height: 18px;
  animation: star-twinkle 2.6s ease-in-out 0.4s infinite;
}
.flare-large::before,
.flare-large::after {
  width: 36px;
  height: 2px;
}

/* =========================================
   通用关键帧动画库
   ========================================= */
@keyframes title-drop-in {
  from {
    opacity: 0;
    transform: scale(1.1) translateY(-10px);
    filter: brightness(1.35);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes light-expand {
  from {
    opacity: 0;
    transform: scaleX(0.25);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes pop-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes machine-advance {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fly-in-left {
  0% {
    opacity: 0;
    transform: translateX(-64px) scale(0.94);
  }
  75% {
    opacity: 1;
    transform: translateX(4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fly-in-right {
  0% {
    opacity: 0;
    transform: translateX(64px) scale(0.94);
  }
  75% {
    opacity: 1;
    transform: translateX(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* 全站固定右下角审批号 */
.approval-code {
  position: absolute;
  right: 10px;
  bottom: max(6px, calc(env(safe-area-inset-bottom, 0px) + 4px));
  z-index: 60;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.45);
  transform: scale(0.85);
  transform-origin: right bottom;
  white-space: nowrap;
  pointer-events: none;
}

/* 全站固定右上角背景音乐开关 */
.bgm-toggle-btn {
  position: absolute;
  top: max(calc(env(safe-area-inset-top, 0px) + 12px), 5.9dvh);
  right: 5%;
  z-index: 60;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(243, 210, 143, 0.55);
  background: rgba(15, 9, 3, 0.58);
  color: var(--gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.bgm-toggle-btn:active {
  transform: scale(0.92);
}

.bgm-icon {
  width: 15px;
  height: 15px;
}

.bgm-toggle-btn.is-playing .bgm-icon {
  animation: bgm-spin 4.5s linear infinite;
}

.bgm-mute-slash {
  position: absolute;
  width: 18px;
  height: 1.6px;
  background: #f3d28f;
  transform: rotate(-45deg) scaleX(0);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.bgm-toggle-btn.is-muted {
  opacity: 0.65;
  border-color: rgba(243, 210, 143, 0.32);
}

.bgm-toggle-btn.is-muted .bgm-mute-slash {
  transform: rotate(-45deg) scaleX(1);
}

@keyframes bgm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}