/* ==================== Reset & Base ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c41e3a;
  --primary-dark: #8b1a2b;
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --bg-dark: #0a0a0a;
  --bg-panel: rgba(10, 10, 15, 0.85);
  --text: #e8e0d0;
  --text-muted: #a09888;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.15);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
  background: #000;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

/* ==================== 语言切换 ==================== */
#lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-option {
  width: 36px;
  height: 32px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  font-family: inherit;
  line-height: 32px;
  padding: 0;
  text-align: center;
}

.lang-option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-option.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== 首页 ==================== */
#home-page {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 天空层：朝霞渐变 */
.home-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(255, 180, 80, 0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 30%, rgba(255, 160, 100, 0.15) 0%, transparent 40%),
    linear-gradient(180deg,
      #1a1a3e 0%,
      #2d1b3e 8%,
      #4a2545 18%,
      #7a3a45 30%,
      #b85a40 45%,
      #e8a055 58%,
      #f5d080 68%,
      #faeba0 76%
    );
}

/* 太阳 */
.home-bg::after {
  content: '';
  position: absolute;
  top: 22%;
  right: 28%;
  width: 140px;
  height: 140px;
  background:
    radial-gradient(circle, rgba(255, 245, 200, 0.9) 0%, rgba(255, 200, 100, 0.5) 30%, rgba(255, 150, 60, 0.15) 60%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}

/* 山体层容器 */
.home-mountains {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 远山层 1 — 最淡最远 */
.home-mountain-1 {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 115%;
  height: 55%;
  background:
    /* 山体轮廓 */
    linear-gradient(178deg, transparent 0%, transparent 15%, rgba(60, 45, 80, 0.4) 18%),
    /* 山峰形状 */
    radial-gradient(ellipse 140% 90% at 5% 100%, rgba(50, 35, 70, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 25% 100%, rgba(55, 40, 75, 0.4) 0%, transparent 65%),
    radial-gradient(ellipse 120% 85% at 50% 100%, rgba(48, 33, 68, 0.42) 0%, transparent 68%),
    radial-gradient(ellipse 90% 75% at 72% 100%, rgba(55, 40, 78, 0.38) 0%, transparent 62%),
    radial-gradient(ellipse 110% 88% at 95% 100%, rgba(50, 35, 72, 0.43) 0%, transparent 70%);
  filter: blur(3px);
}

/* 远山层 2 — 中景山 */
.home-mountain-2 {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 115%;
  height: 42%;
  background:
    radial-gradient(ellipse 130% 70% at 10% 100%, rgba(35, 25, 55, 0.6) 0%, transparent 65%),
    radial-gradient(ellipse 100% 60% at 38% 100%, rgba(40, 28, 60, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 110% 65% at 60% 100%, rgba(33, 22, 52, 0.58) 0%, transparent 62%),
    radial-gradient(ellipse 95% 58% at 85% 100%, rgba(38, 25, 58, 0.55) 0%, transparent 58%);
  filter: blur(1.5px);
}

/* 近山层 3 — 前景深色山 */
.home-mountain-3 {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 115%;
  height: 30%;
  background:
    radial-gradient(ellipse 140% 55% at 0% 100%, rgba(20, 14, 35, 0.75) 0%, transparent 58%),
    radial-gradient(ellipse 110% 50% at 28% 100%, rgba(25, 16, 42, 0.72) 0%, transparent 54%),
    radial-gradient(ellipse 120% 52% at 55% 100%, rgba(18, 12, 32, 0.78) 0%, transparent 56%),
    radial-gradient(ellipse 105% 48% at 78% 100%, rgba(22, 15, 38, 0.73) 0%, transparent 52%),
    radial-gradient(ellipse 130% 55% at 100% 100%, rgba(20, 14, 35, 0.76) 0%, transparent 60%);
  filter: blur(0.5px);
}

/* 云雾层 */
.home-mist {
  position: absolute;
  bottom: 22%;
  left: -10%;
  width: 130%;
  height: 18%;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(255, 235, 200, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 55% 50%, rgba(255, 230, 190, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(255, 235, 195, 0.11) 0%, transparent 68%);
  filter: blur(8px);
  z-index: 2;
}

/* 水面倒影 */
.home-water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 10, 30, 0.6) 40%, rgba(10, 8, 25, 0.85) 100%);
  z-index: 3;
}

/* 水面光线 */
.home-water::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 30% at 50% 10%, rgba(255, 220, 150, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 20% at 40% 20%, rgba(255, 200, 120, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 35% 18% at 65% 30%, rgba(255, 210, 140, 0.07) 0%, transparent 55%);
  filter: blur(2px);
}

/* 鸟群点缀 */
.home-birds {
  position: absolute;
  top: 32%;
  right: 22%;
  z-index: 2;
  opacity: 0.6;
}

.home-birds span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(30, 20, 40, 0.6);
  text-shadow: 0 1px 2px rgba(255, 200, 150, 0.2);
}

/* 首页头部 */
.home-header {
  text-align: center;
  padding: 28px 20px 8px;
  z-index: 2;
  flex-shrink: 0;
}

.home-title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.3;
}

.title-icon {
  font-size: 34px;
  vertical-align: middle;
  margin-right: 2px;
}

.title-accent {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 3px;
}

.home-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* 首页内容 */
.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px 0;
  overflow-y: auto;
  z-index: 2;
}

/* ==================== 景点轮播 ==================== */
#hero-carousel {
  width: 100%;
  max-width: 1000px;
  flex-shrink: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 4px;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 单个幻灯片 */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* 幻灯片背景层 */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 幻灯片底部渐变遮罩 */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 25%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.55) 80%,
    rgba(0,0,0,0.8) 100%
  );
}

/* 幻灯片文字内容 */
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 36px;
  width: 100%;
  pointer-events: none;
}

.slide-location {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.slide-name {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.slide-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 500px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.slide-enter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  padding: 10px 28px;
  background: rgba(196, 30, 58, 0.75);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slide-enter:hover {
  background: rgba(220, 40, 70, 0.9);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.slide-enter::after {
  content: '→';
  transition: transform 0.3s ease;
}

.slide-enter:hover::after {
  transform: translateX(3px);
}

/* 轮播指示点 */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  width: 24px;
  border-radius: 4px;
}

/* 左右箭头 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

#hero-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(0,0,0,0.65);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

/* 景点卡片网格 */
#spots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 900px;
  padding: 20px 0 16px;
  flex-shrink: 0;
}

.spot-card {
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.spot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.spot-card:hover {
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: rgba(25, 25, 38, 0.85);
}

.spot-card:hover::before {
  opacity: 1;
}

.spot-card:active {
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.card-location {
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-location::before {
  content: '📍';
  font-size: 10px;
}

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

.card-enter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gold-light);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

.card-enter::after {
  content: '→';
  transition: transform 0.3s ease;
}

.spot-card:hover .card-enter::after {
  transform: translateX(3px);
}

/* 首页底部 */
.home-footer {
  text-align: center;
  padding: 8px 20px 16px;
  z-index: 2;
  flex-shrink: 0;
}

.home-footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

/* ==================== VR 页面 ==================== */
#vr-page {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#vr-page.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#vr-page.transitioning-in {
  animation: fadeInPage 0.5s ease;
}

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

/* ==================== VR 容器 ==================== */
#vr-container {
  position: fixed;
  inset: 0;
  z-index: 1;
}

#vr-container canvas {
  display: block;
}

/* ==================== 加载遮罩 ==================== */
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#loading-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 168, 67, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.progress-track {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 1px;
  transition: width 0.3s ease;
}

/* ==================== 信息面板 ==================== */
#info-panel {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  max-width: 380px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: opacity var(--transition), transform var(--transition);
}

#info-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.info-enter {
  animation: infoSlideIn 0.5s ease;
}

@keyframes infoSlideIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.info-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 6px;
  padding: 2px 10px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 2px;
}

#spot-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 4px;
  line-height: 1.2;
}

#spot-location {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

#spot-location::before {
  content: '📍';
  font-size: 12px;
}

#spot-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* ==================== 控制按钮 ==================== */
#toggle-bar {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
  transition: opacity var(--transition);
}

#toggle-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

.ctrl-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.ctrl-btn:hover {
  color: #fff;
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.ctrl-btn.active {
  color: #fff;
  background: rgba(196, 30, 58, 0.5);
  border-color: var(--primary);
}

#btn-gyroscope {
  display: none;
}

/* ==================== 底部景点画廊 ==================== */
#gallery-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 0 24px 0;
  transition: transform var(--transition), opacity var(--transition);
}

#gallery-panel.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.gallery-scroll {
  display: flex;
  gap: 12px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.thumbnail-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.thumbnail-card:hover,
.thumbnail-card.active {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.thumbnail-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.25);
}

.thumbnail-card.active .thumbnail-preview {
  opacity: 1;
}

.thumbnail-preview {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.thumbnail-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.thumbnail-info {
  padding: 10px 12px;
}

.thumbnail-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.thumbnail-location {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==================== 返回按钮 ==================== */
#btn-back {
  position: fixed;
  top: 24px;
  right: 180px;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
}

#btn-back:hover {
  color: #fff;
  border-color: var(--gold);
}

#gallery-panel.hidden ~ #btn-back,
#btn-back.show {
  opacity: 1;
  pointer-events: all;
}

/* ==================== 提示文字 ==================== */
.hint-text {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#gallery-panel.hidden ~ .hint-text {
  opacity: 0;
}

/* ==================== 响应式 ==================== */

/* 平板 */
@media (max-width: 900px) {
  #spots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .home-title {
    font-size: 24px;
  }
}

/* 平板竖屏 */
@media (max-width: 768px) {
  #lang-switcher {
    top: 12px;
    right: 12px;
    padding: 3px;
    gap: 2px;
  }

  .lang-option {
    width: 30px;
    height: 28px;
    font-size: 11px;
    line-height: 28px;
  }

  .home-header {
    padding: 20px 16px 6px;
  }

  .home-title {
    font-size: 22px;
  }

  .home-subtitle {
    font-size: 12px;
  }

  .home-content {
    padding: 6px 12px 0;
  }

  .carousel-viewport {
    aspect-ratio: 16 / 8;
  }

  .slide-content {
    padding: 0 24px 24px;
  }

  .slide-name {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .slide-desc {
    font-size: 12px;
    max-width: 380px;
  }

  .slide-enter {
    font-size: 12px;
    padding: 8px 20px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    opacity: 1;
  }

  #spots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 14px 0 12px;
  }

  .spot-card {
    padding: 14px 12px 12px;
  }

  .card-name {
    font-size: 13px;
  }

  .card-desc {
    font-size: 11px;
  }

  #info-panel {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 16px;
  }

  #spot-name {
    font-size: 20px;
  }

  #spot-description {
    font-size: 13px;
  }

  #toggle-bar {
    top: auto;
    bottom: 120px;
    right: 16px;
    flex-direction: column;
  }

  #btn-back {
    top: 16px;
    right: 16px;
    left: auto;
    width: 40px;
    height: 40px;
  }

  .thumbnail-card {
    width: 130px;
  }

  .thumbnail-preview {
    height: 72px;
  }

  .gallery-scroll {
    gap: 8px;
    padding: 0 16px;
  }
}

/* 手机 */
@media (max-width: 480px) {
  .home-header {
    padding: 16px 12px 4px;
  }

  .home-title {
    font-size: 19px;
    letter-spacing: 1px;
  }

  .home-subtitle {
    font-size: 11px;
  }

  .home-content {
    padding: 4px 8px 0;
  }

  #hero-carousel {
    border-radius: 10px;
  }

  .carousel-viewport {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .slide-content {
    padding: 0 16px 18px;
  }

  .slide-location {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .slide-name {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .slide-desc {
    font-size: 11px;
    max-width: 100%;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-enter {
    font-size: 11px;
    padding: 7px 16px;
    letter-spacing: 1px;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    opacity: 1;
  }

  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }

  .carousel-dot.active {
    width: 18px;
  }

  #spots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px 0;
  }

  .spot-card {
    padding: 12px 10px 10px;
  }

  .card-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 6px;
  }

  .card-name {
    font-size: 12px;
  }

  .card-desc {
    font-size: 10px;
  }

  .card-enter {
    font-size: 10px;
  }

  #info-panel {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 12px 16px;
    border-radius: 8px;
  }

  #spot-name {
    font-size: 18px;
  }

  #spot-description {
    font-size: 12px;
    line-height: 1.5;
  }

  .thumbnail-card {
    width: 110px;
  }

  .thumbnail-preview {
    height: 62px;
  }

  .thumbnail-name {
    font-size: 12px;
  }

  .thumbnail-location {
    font-size: 10px;
  }

  #toggle-bar {
    bottom: 105px;
    right: 8px;
    gap: 6px;
  }

  .ctrl-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .gallery-scroll {
    gap: 6px;
    padding: 0 12px;
  }

  .hint-text {
    bottom: 110px;
    font-size: 10px;
  }

  #btn-back {
    top: 10px;
    right: 8px;
    left: auto;
    width: 36px;
    height: 36px;
  }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
  .home-header {
    padding: 8px 20px 0;
  }

  .home-title {
    font-size: 18px;
  }

  .home-subtitle {
    font-size: 11px;
    margin-top: 2px;
  }

  .home-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 16px 0;
  }

  #hero-carousel {
    max-width: 380px;
  }

  .carousel-viewport {
    aspect-ratio: 16 / 8;
  }

  #spots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0;
  }

  #info-panel {
    top: 8px;
    left: 8px;
    max-width: 300px;
    padding: 10px 14px;
  }

  #spot-name {
    font-size: 18px;
  }

  #spot-description {
    font-size: 11px;
    line-height: 1.4;
  }

  .thumbnail-card {
    width: 100px;
  }

  .thumbnail-preview {
    height: 50px;
  }

  #gallery-panel {
    padding-bottom: 12px;
  }

  #toggle-bar {
    top: 8px;
    bottom: auto;
  }
}

/* ==================== 暗色滚动条 ==================== */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
