/* ========== Variables & Reset ========== */
:root {
  --bg-deep: #070b14;
  --bg-map: #060912;
  --bg-card: rgba(8, 12, 24, 0.88);
  --gold: #c49a3c;
  --gold-glow: rgba(196, 154, 60, 0.35);
  --gold-light: #ecd488;
  --gold-dim: rgba(196, 154, 60, 0.15);
  --vermillion: #a83226;
  --vermillion-light: rgba(168, 50, 38, 0.2);
  --ink: #1e1c2a;
  --ink-light: #2e2c3e;
  --text-primary: #ddd6c8;
  --text-muted: #8a8278;
  --text-dim: #5a5248;
  --nav-width: 52px;
  --font-display: "Noto Serif SC", "STKaiti", "KaiTi", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ========== Side Nav (Desktop) — 沉入背景的古卷侧签 ========== */
.side-nav {
  position: fixed;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  padding: 8px 0;
}
.side-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.side-nav .nav-link {
  display: block;
  position: relative;
  padding: 8px 10px;
  color: rgba(90, 82, 72, 0.35);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  transition: all 0.6s ease;
}
.side-nav .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  box-shadow: 0 0 6px var(--gold-glow);
}
.side-nav .nav-link.active {
  color: rgba(236, 212, 136, 0.5);
}
.side-nav .nav-link.active::before {
  width: 14px;
  opacity: 1;
}
.side-nav .nav-link:not(.active):hover {
  color: rgba(221, 214, 200, 0.3);
}

/* ========== Bottom Nav (Mobile) ========== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  border-top: none;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
  font-family: var(--font-display);
}
.bottom-nav-link.active {
  color: var(--gold-light);
}
.bottom-nav-link.active::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ========== Sections ========== */
.section {
  min-height: 100vh;
  position: relative;
}

/* ========== Hero Section ========== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 154, 60, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(168, 50, 38, 0.04) 0%, transparent 50%),
    var(--bg-deep);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M30 2L37 20H55L40 31L45 50L30 39L15 50L20 31L5 20H23Z" fill="none" stroke="rgba(196,154,60,0.025)" stroke-width="0.5"/%3E%3C/svg%3E') repeat;
  pointer-events: none;
}
.hero-atmosphere {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 22px);
  color: rgba(196, 154, 60, 0.85);
  letter-spacing: 10px;
  white-space: nowrap;
  font-weight: 600;
  animation: fadeInAtmosphere 2s ease 0.5s forwards;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(196,154,60,0.2);
}
.hero-content {
  text-align: center;
  z-index: 1;
  padding: 20px;
}
.hero-emblem {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(196, 154, 60, 0.12);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.2s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 400;
  letter-spacing: 12px;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(221, 214, 200, 0.1);
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.4s forwards;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 3vw, 28px);
  letter-spacing: 8px;
  color: var(--gold);
  margin-top: 12px;
  text-shadow: 0 0 20px var(--gold-glow);
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.6s forwards;
}
.hero-desc {
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.8s forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 1.2s ease 1.2s forwards;
}
.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ========== Map Section — 夜色洛邑图志 ========== */
.map-section {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--bg-map);
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 100vh;
}

/* 金角云纹装饰 — 四角点缀，替代边框 */
.corner-ornament {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.25;
}
.corner-tl { top: 10px; left: 10px; border-top: 1px solid rgba(196,154,60,0.2); border-left: 1px solid rgba(196,154,60,0.2); }
.corner-tr { top: 10px; right: 10px; border-top: 1px solid rgba(196,154,60,0.2); border-right: 1px solid rgba(196,154,60,0.2); }
.corner-bl { bottom: 10px; left: 10px; border-bottom: 1px solid rgba(196,154,60,0.2); border-left: 1px solid rgba(196,154,60,0.2); }
.corner-br { bottom: 10px; right: 10px; border-bottom: 1px solid rgba(196,154,60,0.2); border-right: 1px solid rgba(196,154,60,0.2); }

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* 地图底图 — 深蓝黑水墨底 + 参考图低透明纹理 */
.map-bg {
  position: absolute;
  inset: -30px;
  background:
    url('assets/luoyi-map-reference.jpg') center/cover no-repeat;
  opacity: 0.14;
  filter: sepia(0.7) saturate(0.35) brightness(0.45) contrast(2.0);
  pointer-events: none;
  mix-blend-mode: luminosity;
}

/* 宣纸暗纹 */
.map-paper-texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.003) 2px, rgba(255,255,255,0.003) 3px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* 古城建筑暗影 — 抽象街坊网格 */
.map-city-grid {
  position: absolute;
  inset: 0;
  background:
    /* 城墙外轮廓 */
    radial-gradient(ellipse 78% 68% at 50% 55%, transparent 38%, rgba(168, 50, 38, 0.05) 39%, transparent 40%),
    /* 建筑群暗影 */
    radial-gradient(ellipse 20% 25% at 25% 30%, rgba(0,0,0,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 15% 20% at 65% 35%, rgba(0,0,0,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 18% 15% at 40% 70%, rgba(0,0,0,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 12% 18% at 70% 65%, rgba(0,0,0,0.25) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* 街巷轮廓 */
.map-streets {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(196,154,60,0.025) 0px, transparent 1px, transparent 36px),
    repeating-linear-gradient(90deg, rgba(196,154,60,0.025) 0px, transparent 1px, transparent 36px),
    /* 主干道 */
    linear-gradient(120deg, transparent 45%, rgba(196,154,60,0.012) 45.5%, transparent 46%);
  pointer-events: none;
  z-index: 1;
}

/* 水系反光 */
.map-water {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 28% 22% at 55% 40%, rgba(100, 160, 200, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 15% 12% at 52% 38%, rgba(100, 160, 200, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ========== Mist ========== */
.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}
.mist-1 {
  width: 400px;
  height: 200px;
  top: 15%;
  left: 10%;
  background: radial-gradient(ellipse, rgba(196, 154, 60, 0.04) 0%, transparent 70%);
  animation: mistDrift 12s ease-in-out infinite alternate;
}
.mist-2 {
  width: 350px;
  height: 250px;
  bottom: 20%;
  right: 5%;
  background: radial-gradient(ellipse, rgba(100, 160, 200, 0.025) 0%, transparent 70%);
  animation: mistDrift 15s ease-in-out infinite alternate-reverse;
}
.mist-3 {
  width: 300px;
  height: 180px;
  top: 50%;
  left: 40%;
  background: radial-gradient(ellipse, rgba(196, 154, 60, 0.025) 0%, transparent 70%);
  animation: mistDrift 18s ease-in-out infinite alternate;
}

/* ========== Firefly Container ========== */
.firefly-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.firefly {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 4px 2px rgba(236, 212, 136, 0.2), 0 0 8px 4px rgba(196, 154, 60, 0.08);
  animation: fireflyFloat linear infinite;
  opacity: 0;
}

/* ========== Lanterns — 灯笼造型 ========== */
.lantern {
  position: absolute;
  z-index: 4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  transition: transform 0.4s ease;
  opacity: 0;
  animation: fadeInLantern 0.6s ease forwards;
}
.lantern[data-index="0"] { animation-delay: 0.15s; }
.lantern[data-index="1"] { animation-delay: 0.3s; }
.lantern[data-index="2"] { animation-delay: 0.45s; }
.lantern[data-index="3"] { animation-delay: 0.6s; }
.lantern[data-index="4"] { animation-delay: 0.75s; }
.lantern[data-index="5"] { animation-delay: 0.9s; }
.lantern[data-index="6"] { animation-delay: 1.05s; }
.lantern[data-index="7"] { animation-delay: 1.2s; }

.lantern:hover { transform: translate(-50%, -50%) scale(1.2); }

/* 灯笼本体 — 悬挂式 */
.lantern-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  filter: drop-shadow(0 0 6px rgba(196,154,60,0.2));
  transition: filter 0.4s ease;
}
.lantern:hover .lantern-body,
.lantern.active .lantern-body {
  filter: drop-shadow(0 0 14px rgba(196,154,60,0.5)) drop-shadow(0 0 30px rgba(196,154,60,0.15));
}

/* 灯笼盖 */
.lantern-cap {
  width: 14px;
  height: 5px;
  background: linear-gradient(180deg, #8a6a2a, #c49a3c);
  border-radius: 2px 2px 0 0;
  position: relative;
}
.lantern-cap::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #8a6a2a;
  border-radius: 0 0 50% 50%;
}

/* 灯笼玻璃 */
.lantern-glass {
  width: 16px;
  height: 20px;
  background: radial-gradient(ellipse at 50% 60%, rgba(236, 212, 136, 0.5), rgba(196, 154, 60, 0.2));
  border-radius: 3px 3px 4px 4px;
  position: relative;
  box-shadow: inset 0 0 6px rgba(236, 212, 136, 0.2);
}
.lantern.active .lantern-glass,
.lantern:hover .lantern-glass {
  background: radial-gradient(ellipse at 50% 60%, rgba(236, 212, 136, 0.7), rgba(196, 154, 60, 0.3));
  box-shadow: inset 0 0 10px rgba(236, 212, 136, 0.3);
}

/* 灯笼底 */
.lantern-bottom {
  width: 12px;
  height: 4px;
  background: linear-gradient(180deg, #c49a3c, #8a6a2a);
  border-radius: 0 0 2px 2px;
}

/* 灯笼穗 */
.lantern-tassel {
  width: 1px;
  height: 8px;
  background: linear-gradient(to bottom, #c49a3c, transparent);
  position: relative;
  animation: tasselSway 2s ease-in-out infinite;
}
.lantern-tassel::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #c49a3c;
  border-radius: 50%;
}

/* 灯笼名 */
.lantern-name {
  position: absolute;
  bottom: calc(100% + 10px);
  white-space: nowrap;
  font-size: 10px;
  color: rgba(90, 82, 72, 0.4);
  letter-spacing: 2px;
  transition: color 0.4s;
  font-family: var(--font-display);
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
}
.lantern:hover .lantern-name,
.lantern.active .lantern-name {
  color: rgba(236, 212, 136, 0.6);
}

/* 灯笼光晕基座 (hover/active时扩散) */
.lantern-glow-base {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(196,154,60,0.15) 0%, transparent 70%);
  transition: all 0.6s ease;
  pointer-events: none;
  opacity: 0;
}
.lantern:hover .lantern-glow-base,
.lantern.active .lantern-glow-base {
  width: 80px;
  height: 80px;
  opacity: 1;
  background: radial-gradient(ellipse, rgba(196,154,60,0.2) 0%, rgba(196,154,60,0.08) 30%, transparent 70%);
}

/* 灯笼悬停时附近建筑微亮模拟 — 通过光晕叠加 */
.lantern.nearby-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(196,154,60,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: nearbyGlowFade 0.8s ease forwards;
}

/* ========== Info Card (Desktop) — 古风小笺 ========== */
.info-card {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 270px;
  background: linear-gradient(135deg, rgba(12, 16, 28, 0.92), rgba(8, 12, 24, 0.92));
  border: 1px solid rgba(196, 154, 60, 0.08);
  border-radius: 4px;
  padding: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
  transform: translateY(-50%) translateX(16px);
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}
.info-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 卷轴顶部/底部装饰 */
.info-card-scroll-top,
.info-card-scroll-bottom {
  height: 6px;
  background: linear-gradient(90deg, transparent 5%, rgba(196,154,60,0.08) 20%, rgba(196,154,60,0.08) 80%, transparent 95%);
  border-radius: 2px;
  margin: 0 12px;
}

.info-card-inner {
  padding: 20px 22px 24px;
}

.info-card-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(90, 82, 72, 0.5);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2;
  line-height: 1;
}
.info-card-close:hover { color: var(--gold-light); }

/* 信息卡内的灯笼图标 */
.info-card-lantern-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.ic-lantern-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 8px rgba(196,154,60,0.2));
}
.ic-cap {
  width: 18px;
  height: 6px;
  background: linear-gradient(180deg, #8a6a2a, #c49a3c);
  border-radius: 2px 2px 0 0;
}
.ic-cap::before {
  content: '';
  display: block;
  margin: -4px auto 0;
  width: 5px;
  height: 4px;
  background: #8a6a2a;
  border-radius: 0 0 50% 50%;
}
.ic-glass {
  width: 22px;
  height: 28px;
  background: radial-gradient(ellipse at 50% 60%, rgba(236, 212, 136, 0.5), rgba(196, 154, 60, 0.2));
  border-radius: 3px 3px 4px 4px;
  box-shadow: inset 0 0 8px rgba(236, 212, 136, 0.15);
}
.ic-bottom {
  width: 16px;
  height: 4px;
  background: linear-gradient(180deg, #c49a3c, #8a6a2a);
  border-radius: 0 0 2px 2px;
}
.ic-tassel {
  width: 1px;
  height: 10px;
  background: linear-gradient(to bottom, #c49a3c, transparent);
}
.ic-tassel::after {
  content: '';
  display: block;
  margin-top: 8px;
  width: 4px;
  height: 4px;
  background: #c49a3c;
  border-radius: 50%;
  margin-left: -1.5px;
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 6px;
}
.info-card-seal {
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  border: 1px solid rgba(196,154,60,0.15);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card-seal::after {
  content: '夜';
  font-family: var(--font-display);
  font-size: 10px;
  color: rgba(196,154,60,0.2);
}
.info-card-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.info-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.info-card-tags span {
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 2px;
  border: 1px solid rgba(196, 154, 60, 0.1);
  color: rgba(196, 154, 60, 0.5);
  letter-spacing: 1px;
  font-family: var(--font-display);
}

/* ========== Bottom Sheet (Mobile) — 古风底卡 ========== */
.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.92), rgba(6, 9, 18, 0.96));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(196, 154, 60, 0.06);
  border-radius: 16px 16px 0 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: none;
  max-height: 45vh;
  overflow-y: auto;
  box-shadow: 0 -10px 60px rgba(0,0,0,0.5);
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle {
  width: 36px;
  height: 3px;
  background: rgba(90, 82, 72, 0.3);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.bottom-sheet-inner {
  text-align: center;
}
.bs-lantern { transform: scale(0.85); }
.bottom-sheet-icon { margin-bottom: 6px; }
.bottom-sheet-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.bottom-sheet-seal {
  width: 20px;
  height: 20px;
  margin: 0 auto 8px;
  border: 1px solid rgba(196,154,60,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-sheet-seal::after {
  content: '夜';
  font-family: var(--font-display);
  font-size: 9px;
  color: rgba(196,154,60,0.15);
}
.bottom-sheet-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.bottom-sheet-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.bottom-sheet-tags span {
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 2px;
  border: 1px solid rgba(196, 154, 60, 0.1);
  color: rgba(196, 154, 60, 0.5);
  letter-spacing: 1px;
  font-family: var(--font-display);
}
.bottom-sheet-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 18px;
  color: rgba(90, 82, 72, 0.4);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.bottom-sheet-close:hover { color: var(--gold-light); }

/* ========== Content Sections ========== */
.content-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(196, 154, 60, 0.025) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(168, 50, 38, 0.015) 0%, transparent 50%),
    var(--bg-deep);
  padding: 40px 20px;
}
.content-inner {
  max-width: 700px;
  text-align: center;
  padding: 0 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--text-primary);
}
.section-divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 20px;
  opacity: 0.4;
}
.section-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.gallery-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-light);
  transition: background 0.3s;
}
.gallery-dot:first-child { background: var(--gold); }

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 32px 20px 80px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
}
.footer-ornament {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,154,60,0.15), transparent);
  margin: 0 auto 16px;
}
.footer-contact {
  font-size: 10px;
  margin-top: 6px;
  color: var(--text-dim);
  opacity: 0.5;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInAtmosphere {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}
@keyframes mistDrift {
  0% { opacity: 0; transform: translate(0, 0); }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; transform: translate(35px, -20px); }
}
@keyframes fadeInLantern {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes fireflyFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}
@keyframes tasselSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}
@keyframes nearbyGlowFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .side-nav { display: none; }
  .bottom-nav { display: flex; }

  .corner-ornament { display: none; }

  .hero-atmosphere { font-size: 14px; letter-spacing: 6px; top: 60px; }

  .map-container {
    aspect-ratio: unset;
    height: 100vh;
    width: 140%;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .map-container::-webkit-scrollbar { display: none; }
  .map-container > * { scroll-snap-align: start; }

  .info-card { display: none; }
  .bottom-sheet { display: block; }

  .lantern { cursor: pointer; }
  .lantern-body { transform: scale(1.4); }
  .lantern-name { font-size: 11px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .info-card {
    right: 16px;
    width: 220px;
  }
  .info-card-inner { padding: 16px 16px 20px; }
}

@media (max-width: 480px) {
  .map-container {
    width: 180%;
    height: 100vh;
  }
  .lantern-body { transform: scale(1.6); }
  .lantern-name { font-size: 12px; }
  .bottom-sheet { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); max-height: 40vh; }
}

/* ========== 首屏转场动画（首次进入页面触发） ========== */

/* 地图屏初始隐藏 — 仅在首屏转场动画启用时生效 */
.map-section.map-init-hidden {
  opacity: 0;
}

/* 首屏淡出 — 透明度降至 0 + 轻微上移 */
.hero-section.hero-fade-out {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* 地图屏淡入 — 从隐藏到可见 */
.map-section.map-fade-in {
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
