/* ==========================================================================
   槟城九皇大帝诞辰庆典 · 3D数位全景地图 - 宏大帝王华美视觉设计系统
   Penang Nine Emperor Gods Festival 3D Digital Atlas - Grand Imperial Edition
   ========================================================================== */

:root {
  --primary-gold: #f59e0b;
  --gold-glow: #fde047;
  --gold-metallic: linear-gradient(135deg, #fffbeb 0%, #fde047 30%, #f59e0b 60%, #b45309 100%);
  --gold-border: rgba(245, 158, 11, 0.45);
  --gold-border-bright: #fbbf24;
  --primary-crimson: #dc2626;
  --crimson-glow: rgba(220, 38, 38, 0.8);
  --bg-dark: #050811;
  --bg-panel: rgba(8, 13, 26, 0.92);
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-card-hover: rgba(30, 45, 74, 0.96);
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-gold: #fef08a;
  --glow-strong: 0 0 25px rgba(245, 158, 11, 0.65), 0 0 50px rgba(245, 158, 11, 0.25);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 8px;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* ==========================================================================
   3D 地图容器与孔明灯环境画布
   ========================================================================== */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 升空孔明灯与神圣香雾粒子画布 */
.lantern-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   高精度无延迟地图标记 (Zero-Latency Map Markers)
   绝对禁用外层 transform 过渡，确保缩放与拖拽零延迟、强跟手！
   ========================================================================== */
.custom-temple-marker {
  cursor: pointer;
  pointer-events: auto;
  /* 关键：绝对禁止在根节点应用 transition: transform，否则 MapLibre 移动标记时会有 200ms 拖拽跟随延迟！ */
  transition: none !important;
  will-change: transform;
  z-index: 20;
}

.custom-temple-marker .marker-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 悬停放大效果仅应用于内部子容器，绝不干扰外层坐标定位 */
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  transform-origin: bottom center;
}

.custom-temple-marker:hover .marker-inner {
  transform: scale(1.22) translateY(-4px);
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.95));
  z-index: 100;
}

/* 宏伟帝王神殿金印图钉 */
.marker-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #f59e0b 45%, #991b1b 90%);
  border: 2px solid #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.9), 0 6px 14px rgba(0, 0, 0, 0.9);
}

.marker-label {
  margin-top: 5px;
  background: rgba(8, 13, 26, 0.94);
  border: 1.5px solid var(--primary-gold);
  color: #fef08a;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.4);
  letter-spacing: 0.5px;
}

.marker-pulse {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  animation: marker-ripple 2.4s infinite cubic-bezier(0, 0.2, 0.8, 1);
  pointer-events: none;
}

@keyframes marker-ripple {
  0% { width: 42px; height: 42px; opacity: 1; border-color: #fef08a; }
  100% { width: 95px; height: 95px; opacity: 0; border-color: #dc2626; }
}

/* 接神与送神海滩标记 (水龙青澜) */
.sea-site-marker .marker-icon {
  background: radial-gradient(circle at 35% 35%, #e0f2fe 0%, #0284c7 50%, #082f49 90%);
  border-color: #bae6fd;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.95);
}
.sea-site-marker .marker-label {
  border-color: #38bdf8;
  color: #e0f2fe;
}
.sea-site-marker .marker-pulse {
  border-color: #38bdf8;
}

/* 素食美食街标记 (翡翠祥瑞) */
.veg-site-marker .marker-icon {
  background: radial-gradient(circle at 35% 35%, #dcfce7 0%, #16a34a 50%, #052e16 90%);
  border-color: #86efac;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.9);
}
.veg-site-marker .marker-label {
  border-color: #22c55e;
  color: #bbf7d0;
}
.veg-site-marker .marker-pulse {
  border-color: #22c55e;
}

/* 槟城宏伟地标 (光大 / 槟威大桥) */
.landmark-marker .marker-icon {
  background: radial-gradient(circle at 35% 35%, #f3e8ff 0%, #9333ea 50%, #3b0764 90%);
  border-color: #e9d5ff;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.9);
}
.landmark-marker .marker-label {
  border-color: #c084fc;
  color: #f3e8ff;
}

/* ==========================================================================
   宏大开场动画：九皇御驾 · 沧海渡舟到槟城 (Grand Prologue)
   ========================================================================== */
.prologue-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 30%, #0f1c3f 0%, #070d1e 65%, #020408 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prologue-overlay.hidden {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.constellation-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.prologue-scene {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.sacred-boat-stage {
  position: relative;
  width: 360px;
  height: 220px;
  margin-bottom: 24px;
}

.ocean-waves {
  position: absolute;
  bottom: 10px;
  left: -20%;
  width: 140%;
  height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 350,-40 500,50 C650,140 900,-20 1200,40 L1200,120 L0,120 Z' fill='rgba(3,105,161,0.4)'/%3E%3C/svg%3E") repeat-x;
  animation: wave-motion 6s linear infinite;
}

.ocean-waves.layer-2 {
  bottom: 0;
  opacity: 0.75;
  animation: wave-motion 4s linear infinite reverse;
}

.boat-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 150px;
  animation: boat-bobbing 3.8s ease-in-out infinite alternate;
}

@keyframes boat-bobbing {
  0% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  100% { transform: translateX(-50%) translateY(-12px) rotate(3deg); }
}

.sacred-boat-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.9));
}

.sea-mist {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(ellipse at 50% 100%, rgba(245, 158, 11, 0.25), transparent 75%);
  filter: blur(24px);
  pointer-events: none;
}

.prologue-crest {
  font-family: var(--font-serif);
  font-size: 14px;
  color: #fef08a;
  letter-spacing: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}

.prologue-crest::before, .prologue-crest::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--primary-gold));
}
.prologue-crest::after {
  background: linear-gradient(to left, transparent, var(--primary-gold));
}

.prologue-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 5px;
  margin-bottom: 12px;
  text-shadow: 0 0 35px rgba(245, 158, 11, 0.9), 0 4px 15px rgba(0,0,0,0.9);
}

.prologue-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.prologue-poem {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2.2;
  color: #e2e8f0;
  margin-bottom: 32px;
  max-width: 680px;
}

.prologue-poem p {
  opacity: 0;
  animation: poemFadeIn 0.8s forwards;
}
.prologue-poem p:nth-child(1) { animation-delay: 0.4s; }
.prologue-poem p:nth-child(2) { animation-delay: 1.1s; }
.prologue-poem p:nth-child(3) { animation-delay: 1.8s; }

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

.prologue-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.prologue-enter-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706, #dc2626);
  border: 2px solid var(--gold-pale);
  border-radius: 35px;
  padding: 16px 52px;
  color: #000;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.8), 0 10px 25px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prologue-enter-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 55px rgba(245, 158, 11, 1), 0 14px 30px rgba(0,0,0,0.9);
  color: #fff;
}

.prologue-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1.5px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.prologue-skip-btn:hover {
  color: var(--gold-glow);
}

/* ==========================================================================
   页面主框架与地图视口
   ========================================================================== */
.app-layout {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.main-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-container {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   顶部宏伟状态导航栏 (Grand Header Navbar)
   ========================================================================== */
.navbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 68px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.2);
}

.brand-section,
.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo,
.lantern-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, #f59e0b 45%, #991b1b 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--glow-strong);
  border: 2px solid var(--gold-pale);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 32px rgba(245, 158, 11, 0.95); }
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.brand-text p {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.lunar-tag,
.badge-pill {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid rgba(254, 240, 138, 0.5);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid var(--gold-border);
  color: var(--text-primary);
  padding: 9px 16px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
}

.action-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--gold-border-bright);
  color: var(--text-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.action-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  border-color: var(--gold-pale);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

/* ==========================================================================
   左侧主要抽屉互动面板 (Sidebar Drawer)
   ========================================================================== */
.sidebar {
  position: absolute;
  top: 96px;
  left: 16px;
  bottom: 86px;
  width: 440px;
  max-width: calc(100vw - 32px);
  background: var(--bg-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-xl);
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden; /* 保证圆角剪裁，禁止卡片无休止溢出 */
}

.sidebar.collapsed {
  transform: translateX(-480px);
  opacity: 0;
  pointer-events: none;
}

.sidebar-toggle,
.sidebar-toggle-btn {
  position: absolute;
  top: 104px;
  left: 468px;
  z-index: 15;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1.5px solid var(--gold-border);
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
  font-size: 18px;
}

.sidebar-toggle:hover,
.sidebar-toggle-btn:hover {
  background: var(--primary-gold);
  color: #000;
  box-shadow: var(--glow-strong);
  transform: scale(1.05);
}

.sidebar.collapsed ~ .sidebar-toggle,
.sidebar.collapsed ~ .sidebar-toggle-btn,
.sidebar.collapsed + .sidebar-toggle,
.sidebar.collapsed + .sidebar-toggle-btn {
  left: 16px;
}

.sidebar-header {
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.search-wrapper,
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

.search-input,
.search-box input,
#search-input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.25s;
}

.search-input:focus,
.search-box input:focus,
#search-input:focus {
  border-color: var(--gold-glow);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.search-icon,
.search-box::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  color: var(--primary-gold);
  font-size: 15px;
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.filter-chips::-webkit-scrollbar {
  height: 3px;
}
.filter-chips::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
}

.chip {
  padding: 6px 13px;
  font-size: 11.5px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  user-select: none;
}

.chip:hover, .chip.active {
  background: rgba(245, 158, 11, 0.28);
  border-color: var(--gold-border-bright);
  color: var(--text-gold);
  font-weight: 700;
}

/* 导航 Tabs */
.tabs-nav,
.tabs-header {
  display: flex !important;
  width: 100% !important;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.tabs-nav .tab-btn,
.tabs-header .tab-btn,
.tab-btn {
  flex: 1 1 0px !important;
  padding: 10px 2px !important;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  white-space: nowrap;
}

.tabs-nav .tab-btn span,
.tabs-header .tab-btn span,
.tab-btn span {
  font-size: 15px;
  line-height: 1;
}

.tab-btn:hover {
  color: var(--gold-glow);
  background: rgba(245, 158, 11, 0.08);
}

.tab-btn.active {
  color: var(--text-gold);
  border-bottom: 2.5px solid var(--primary-gold);
  background: rgba(245, 158, 11, 0.16);
  font-weight: 800;
}

.sidebar-content,
.tab-content {
  flex: 1 1 auto;
  min-height: 0; /* 核心：让 flex 子容器中的 overflow-y 生效，独立滚动 */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
}

.sidebar-content::-webkit-scrollbar,
.tab-content::-webkit-scrollbar {
  width: 6px;
}
.sidebar-content::-webkit-scrollbar-thumb,
.tab-content::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 4px;
}
.sidebar-content::-webkit-scrollbar-track,
.tab-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

.cards-list,
.timeline-container,
.guide-container {
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-pane.active {
  display: block;
}

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

/* 宫庙卡片 */
.temple-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.temple-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, #f59e0b, #dc2626);
  opacity: 0;
  transition: opacity 0.2s;
}

.temple-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.temple-card:hover::before, .temple-card.selected::before {
  opacity: 1;
}

.temple-card.selected {
  border-color: var(--gold-pale);
  background: rgba(35, 50, 80, 0.95);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.45);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.temple-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-gold);
}

.temple-region-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(220, 38, 38, 0.7);
  color: #fca5a5;
  font-weight: 700;
}

.temple-region-badge.mainland {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(37, 99, 235, 0.7);
  color: #93c5fd;
}

.temple-altname {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.temple-desc-pill {
  font-size: 11px;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.18);
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
  display: inline-block;
  border-left: 3px solid var(--primary-gold);
  font-weight: 600;
}

.temple-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.meta-icon {
  color: var(--primary-gold);
  font-size: 13px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.card-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}

.card-btn:hover {
  background: var(--primary-gold);
  color: #000;
}

.card-btn.fly {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(220, 38, 38, 0.35));
  border-color: var(--primary-gold);
  color: var(--gold-pale);
}

/* 素食街区卡片 */
.veg-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.veg-card:hover {
  border-color: #4ade80;
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.veg-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #86efac;
  font-weight: 800;
  margin-bottom: 4px;
}

.veg-highlight {
  font-size: 11.5px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
  line-height: 1.4;
}

.veg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.veg-tag {
  font-size: 10.5px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef08a;
  padding: 2px 7px;
  border-radius: 10px;
}

/* 仪轨大典卡片 */
.ritual-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ritual-card:hover {
  border-color: var(--gold-border-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  background: var(--bg-card-hover);
}

.ritual-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ritual-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: radial-gradient(circle, #b45309, #451a03);
  border: 1.5px solid var(--gold-border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ritual-title-wrap h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-gold);
}

.ritual-title-wrap span {
  font-size: 11px;
  color: var(--text-muted);
}

.ritual-date-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.3);
  border: 1px solid rgba(220, 38, 38, 0.5);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.ritual-summary {
  font-size: 12.5px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 10px;
}

/* 日程时间表 */
.timeline-item {
  position: relative;
  padding-left: 26px;
  margin-bottom: 22px;
  border-left: 2px dashed rgba(245, 158, 11, 0.45);
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-gold);
  border: 3.5px solid var(--bg-dark);
  box-shadow: 0 0 12px var(--primary-gold);
}

.timeline-day-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-gold);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-highlight {
  font-size: 12.5px;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.16);
  border-left: 3px solid var(--primary-gold);
  padding: 7px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.timeline-subevent {
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  margin-bottom: 7px;
  font-size: 11.5px;
  line-height: 1.5;
}

.subevent-time {
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 2px;
}

/* 参拜指南 */
.guide-section {
  background: var(--bg-card);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.guide-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 8px;
}

.rule-box {
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.6;
}

.rule-label {
  color: #fef08a;
  font-weight: 700;
  margin-bottom: 2px;
}

.rule-desc {
  color: #cbd5e1;
}

/* ==========================================================================
   底部时间轴悬浮控制器 (Bottom Timeline Bar)
   ========================================================================== */
.timeline-bar {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 60px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  padding: 0 14px;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.timeline-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
}

.timeline-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}

.timeline-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 2px;
}

.timeline-day-btn {
  flex: 0 0 auto;
  min-width: 95px;
  height: 44px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 2px 6px;
}

.timeline-day-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--gold-border-bright);
  color: var(--text-primary);
}

.timeline-day-btn.active {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  border-color: var(--gold-pale);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.7);
  transform: translateY(-2px);
}

.timeline-day-btn .day-label {
  font-size: 11.5px;
  font-weight: 700;
}

.timeline-day-btn .day-sub {
  font-size: 9.5px;
  opacity: 0.9;
}

/* ==========================================================================
   右下角 3D 地图控制器 (Map Control Tools)
   ========================================================================== */
.map-controls,
.map-floating-controls {
  position: absolute;
  right: 16px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 10;
}

.map-btn,
.float-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-panel);
  border: 1.5px solid var(--gold-border);
  border-radius: 50%;
  color: var(--gold-glow);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  transition: all 0.2s;
}

.map-btn:hover,
.float-btn:hover {
  background: var(--primary-gold);
  color: #000;
  transform: scale(1.1);
  box-shadow: var(--glow-strong);
}

.map-btn.active,
.float-btn.active {
  background: #f59e0b;
  color: #000;
  border-color: #fef08a;
  box-shadow: var(--glow-strong);
}

/* 3D 航拍漫游解说横幅 */
.tour-banner,
.tour-hud-banner {
  position: absolute;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 720px;
  background: rgba(8, 13, 26, 0.96);
  border: 2px solid var(--gold-border-bright);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  z-index: 20;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), var(--glow-strong);
  display: none;
  animation: slideUp 0.3s ease;
}

.tour-banner.active,
.tour-hud-banner.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.tour-top,
.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tour-step-badge,
.tour-badge {
  font-size: 11px;
  font-weight: 800;
  background: var(--primary-gold);
  color: #000;
  padding: 3px 9px;
  border-radius: 12px;
}

.tour-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-gold);
  font-weight: 800;
  margin-bottom: 6px;
}

.tour-desc {
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 14px;
}

.tour-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tour-btn {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
  transition: all 0.2s;
}

.tour-btn:hover {
  background: var(--primary-gold);
  color: #000;
}

.tour-btn.exit {
  background: rgba(220, 38, 38, 0.4);
  border-color: rgba(220, 38, 38, 0.8);
}
.tour-btn.exit:hover {
  background: #dc2626;
  color: #fff;
}

/* ==========================================================================
   沉浸式详尽弹窗 (Detail Modal)
   ========================================================================== */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay.open,
.modal-backdrop.open {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 780px;
  max-width: 100%;
  max-height: 86vh;
  background: #090f1d;
  border: 2px solid var(--gold-border-bright);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), var(--glow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(220, 38, 38, 0.28));
  border-bottom: 1.5px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-gold);
  margin-bottom: 4px;
}

.modal-close,
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover,
.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.8;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.45);
  border-radius: 4px;
}

.modal-body h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-gold);
  margin: 18px 0 10px;
  border-left: 3.5px solid var(--primary-gold);
  padding-left: 10px;
}

.modal-body ol, .modal-body ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.modal-body li {
  margin-bottom: 7px;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95);
}

/* ==========================================================================
   太空入轨俯冲遥测 HUD (Space Descent Telemetry HUD)
   ========================================================================== */
.space-hud {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 13, 26, 0.95);
  border: 1.5px solid var(--gold-border-bright);
  border-radius: 30px;
  padding: 10px 24px;
  color: var(--text-gold);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), var(--glow-strong);
  z-index: 500;
  pointer-events: none;
  display: none;
  animation: hudPulse 1.5s infinite alternate;
}

.space-hud.active {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes hudPulse {
  0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.95); }
}

/* 3D 俯冲提示 Toast */
.dive-toast {
  position: absolute;
  top: 100px;
  right: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 13, 26, 0.98));
  border: 1.5px solid var(--primary-gold);
  border-radius: 20px;
  padding: 8px 18px;
  color: #fef08a;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8), var(--glow-strong);
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dive-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
/* ==========================================================================
   九皇至尊金龙圣船 · 破浪正面驶向观众 (Sacred Imperial Dragon Ship & Animated Waves)
   ========================================================================== */
.sacred-ship-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}

.ship-ocean-viewport {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.95));
}

.sacred-ship-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: sacredShipSailing 6s ease-in-out infinite;
  transform-origin: 50% 85%;
  will-change: transform;
}

.sacred-dragon-ship-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

/* 船体破浪起伏动画 (Ship Pitch, Heave & Roll with ocean swells) */
@keyframes sacredShipSailing {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-16px) rotate(-1.5deg) scale(1.02);
  }
  50% {
    transform: translateY(8px) rotate(1.2deg) scale(0.985);
  }
  75% {
    transform: translateY(-12px) rotate(1.4deg) scale(1.015);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

/* 左侧劈波卷雪浪花 (Left Bow Breaking Wave) */
.bow-wave-left {
  animation: waveSurgeLeft 3.5s ease-in-out infinite;
  transform-origin: 480px 450px;
}

@keyframes waveSurgeLeft {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate(-18px, -12px) scale(1.12);
    opacity: 1;
  }
}

/* 右侧劈波卷雪浪花 (Right Bow Breaking Wave) */
.bow-wave-right {
  animation: waveSurgeRight 3.5s ease-in-out infinite;
  transform-origin: 480px 450px;
}

@keyframes waveSurgeRight {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate(18px, -12px) scale(1.12);
    opacity: 1;
  }
}

/* 船首激射飞溅浪花与水珠 (Central Upward Wave Spray & Splash Droplets) */
.central-spray-burst {
  animation: sprayBurst 2.8s ease-in-out infinite alternate;
  transform-origin: 480px 420px;
}

@keyframes sprayBurst {
  0% {
    transform: translateY(0px) scale(0.85);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-24px) scale(1.22);
    opacity: 1;
  }
  100% {
    transform: translateY(-8px) scale(1.05);
    opacity: 0.75;
  }
}

/* 龙须随海风狂舞 (Dragon Whiskers Swaying in the Wind) */
.dragon-whisker-left {
  animation: whiskerLeftSway 3s ease-in-out infinite;
  transform-origin: 440px 350px;
}

@keyframes whiskerLeftSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-6deg) translateY(-5px); }
}

.dragon-whisker-right {
  animation: whiskerRightSway 3s ease-in-out infinite;
  transform-origin: 520px 350px;
}

@keyframes whiskerRightSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(6deg) translateY(-5px); }
}

/* 神幡旗帜迎风展动 (Sacred Banners Fluttering) */
.flutter-banner-main {
  animation: bannerMainFlutter 3.2s ease-in-out infinite;
  transform-origin: 484px 15px;
}

@keyframes bannerMainFlutter {
  0%, 100% { transform: skewX(0deg) rotate(0deg); }
  50% { transform: skewX(6deg) rotate(2.5deg); }
}

.flutter-banner-left {
  animation: bannerLeftFlutter 3.8s ease-in-out infinite;
  transform-origin: 320px 55px;
}

@keyframes bannerLeftFlutter {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-5deg); }
}

.flutter-banner-right {
  animation: bannerRightFlutter 3.5s ease-in-out infinite;
  transform-origin: 640px 55px;
}

@keyframes bannerRightFlutter {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(5deg); }
}

/* 船舷神灯轻摇 (Nine Emperor Lanterns Swinging) */
.ship-lantern {
  animation: lanternSwing 3.6s ease-in-out infinite alternate;
  transform-origin: 0 0;
}

@keyframes lanternSwing {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(6deg); }
}

/* 神明登舟交互效果 (Interactive Deity on Ship) */
.ship-god-unit {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.ship-god-unit:hover {
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.95)) !important;
  transform: scale(1.14) translateY(-14px) !important;
}

.ship-god-unit.chief-god:hover {
  filter: drop-shadow(0 0 32px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 16px rgba(245, 158, 11, 0.9)) !important;
  transform: scale(1.20) translateY(-18px) !important;
}

.ship-god-unit.highlighted {
  filter: drop-shadow(0 0 26px rgba(245, 158, 11, 1)) !important;
  transform: scale(1.15) translateY(-15px) !important;
}

.ship-god-unit.chief-god.highlighted {
  filter: drop-shadow(0 0 35px rgba(239, 68, 68, 1)) drop-shadow(0 0 20px rgba(245, 158, 11, 1)) !important;
  transform: scale(1.22) translateY(-20px) !important;
}

/* 船下九皇神位巡礼导引条 (Interactive Deity Badges Bar) */
.ship-deities-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  width: 100%;
  max-width: 940px;
  overflow-x: auto;
  padding: 4px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ship-deities-nav::-webkit-scrollbar {
  display: none;
}

.deity-nav-pill {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 14px;
  background: rgba(18, 12, 8, 0.94);
  border: 1.2px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.deity-nav-pill:hover, .deity-nav-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(220, 38, 38, 0.4));
  border-color: #fef08a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.85);
}

.deity-nav-pill.chief {
  border-color: #ef4444;
  background: rgba(50, 10, 10, 0.95);
  color: #fca5a5;
  font-weight: 900;
}

.deity-nav-pill.chief:hover, .deity-nav-pill.chief.active {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.95);
}


/* ==========================================================================
   移动端全适配响应式设计系统 (Mobile-First Responsive System)
   ========================================================================== */
@media (max-width: 768px) {
  .celestial-gods-tier {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: flex-start !important;
    gap: 8px;
    padding: 24px 12px 12px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 40px;
  }

  .celestial-gods-tier::-webkit-scrollbar {
    display: none;
  }

  .god-portrait-card {
    flex-shrink: 0;
    width: 92px !important;
    scroll-snap-align: center;
  }

  .god-portrait-card.tier-pos-5 {
    width: 108px !important;
  }
  
  .prologue-crest {
    margin-top: 10px !important;
    font-size: 11px;
    letter-spacing: 2px;
    gap: 8px;
  }

  .prologue-crest::before, .prologue-crest::after {
    width: 25px;
  }

  .prologue-title {
    font-size: 22px;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .prologue-subtitle {
    font-size: 9.5px;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .prologue-poem {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .prologue-enter-btn {
    padding: 11px 24px;
    font-size: 14px;
  }

  .prologue-skip-btn {
    font-size: 11px;
    padding: 4px;
  }

  /* 太空入轨遥测 HUD 与 Toast */
  .space-hud {
    top: 56px;
    padding: 5px 12px;
    font-size: 10.5px;
    max-width: 92%;
    text-align: center;
  }

  .dive-toast {
    top: 60px;
    right: 8px;
    font-size: 10.5px;
    padding: 5px 10px;
  }
}

@media (max-width: 380px) {
  .brand-text h1 {
    font-size: 12.5px;
  }
  .tabs-nav .tab-btn,
  .tabs-header .tab-btn,
  .tab-btn {
    font-size: 9px !important;
  }
  .timeline-day-btn {
    min-width: 62px;
  }
}

