/* =========================================================
   深圳山海连城 · 徒步全息深度指南 (Shenzhen Hiking Portal)
   Modern Outdoor Obsidian & Cyber Emerald Mobile Design System
   ========================================================= */

:root {
  --bg-space: #070a0e;
  --bg-surface: #0e141b;
  --bg-card: rgba(18, 26, 36, 0.85);
  --bg-card-hover: rgba(24, 34, 48, 0.95);
  --bg-glass: rgba(10, 15, 22, 0.92);

  --accent-neon: #00f5a0;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 245, 160, 0.35);

  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(0, 245, 160, 0.25);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 1. App Header */
.app-header {
  position: sticky;
  top: 0;
  height: 54px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  flex-shrink: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #00f5a0 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 10px rgba(0, 245, 160, 0.3);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-icon-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.12);
}

/* 2. Top Filter Bar (Sticky) */
.top-filter-bar {
  position: sticky;
  top: 54px;
  background: rgba(10, 15, 22, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 12px;
  height: 38px;
  transition: border-color var(--transition-fast);
}

.search-input-wrap:focus-within {
  border-color: var(--accent-neon);
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.2);
}

.search-lens {
  font-size: 0.85rem;
  margin-right: 8px;
  opacity: 0.7;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
}

/* Horizontal Chip Scroller */
.filter-chips-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.filter-chips-scroller::-webkit-scrollbar {
  display: none;
}

.chip-item {
  flex-shrink: 0;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chip-item:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.chip-item.active {
  background: var(--accent-neon);
  color: #032014;
  border-color: var(--accent-neon);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 245, 160, 0.35);
}

.chip-divider {
  width: 1px;
  height: 18px;
  background: var(--border-light);
  flex-shrink: 0;
  margin: 0 4px;
}

/* 3. Main Application Viewport */
.app-main-viewport {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

.list-view-section {
  width: 100%;
}

.feed-summary-header {
  margin-bottom: 16px;
}

.feed-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-count-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.feed-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 3px;
}

.feed-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Routes List Feed Grid */
.routes-list-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

@media (max-width: 768px) {
  .routes-list-feed {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .app-main-viewport {
    padding: 12px;
  }
}

/* Feed Card */
.feed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feed-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feed-card-hero {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.feed-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feed-card:hover .feed-card-img {
  transform: scale(1.04);
}

.feed-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(7, 10, 14, 0.95) 100%);
}

.feed-card-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.feed-badge-scenario {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.feed-badge-trailheads {
  background: rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(10px);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.feed-diff-tag {
  background: rgba(16, 185, 129, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.feed-diff-tag.hard {
  background: rgba(245, 158, 11, 0.9);
}

.feed-diff-tag.hell {
  background: rgba(244, 63, 94, 0.9);
  animation: glowRed 2s infinite;
}

@keyframes glowRed {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.feed-card-bottom-info {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
}

.feed-badge-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-neon);
  display: block;
  margin-bottom: 2px;
}

.feed-route-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

/* Feed Card Body */
.feed-card-body {
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feed-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.feed-tag-pill {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
}

/* 4-Column Quick Metrics Grid */
.feed-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  margin-bottom: 10px;
}

.metric-cell {
  text-align: center;
}

.metric-cell-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.metric-cell-val small {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.metric-cell-lbl {
  font-size: 0.62rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Terrain Pill */
.feed-terrain-pill {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  margin-bottom: 10px;
}

/* Highlights Box */
.feed-highlights-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  flex: 1;
}

.highlight-item {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.h-bullet {
  color: var(--accent-neon);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Card Action Footer */
.feed-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 6px;
  margin-top: auto;
}

.card-btn-nav {
  padding: 7px 4px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

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

.amap-mini-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.gpx-mini-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.card-btn-cta {
  background: var(--accent-neon);
  color: #032014;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

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

/* 4. Full Holographic Trail Dossier Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.route-detail-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 680px;
  margin: 0 auto;
  height: 90vh;
  height: 90dvh;
  background: #0d131a;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  border-bottom: none;
  z-index: 2010;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.route-detail-drawer.open {
  transform: translateY(0);
}

/* Desktop Drawer (side sheet) */
@media (min-width: 901px) {
  .route-detail-drawer {
    left: auto;
    right: 0;
    width: 600px;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border-left: 1px solid var(--border-light);
    transform: translateX(100%);
  }

  .route-detail-drawer.open {
    transform: translateX(0);
  }
}

.drawer-handle-bar {
  display: flex;
  justify-content: center;
  padding: 12px 0 6px 0;
  cursor: grab;
  touch-action: none;
}

.drawer-drag-pill {
  width: 38px;
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
}

.drawer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-neon);
}

.drawer-close-circle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 40px 16px;
  scroll-behavior: auto !important;
  overscroll-behavior-y: contain;
}

/* Dossier Components */
.drawer-hero-banner {
  position: relative;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.drawer-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.drawer-hero-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-neon);
  color: #032014;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.drawer-route-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.drawer-route-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* 3-Action Quick Navigation Grid in Drawer */
.drawer-quick-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.app-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.74rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
  text-align: center;
  cursor: pointer;
  border: none;
}

.app-nav-button:active {
  transform: scale(0.96);
}

.amap-nav-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
}

.google-nav-btn {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
}

.gpx-download-btn {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
  color: #fff;
}

/* 8-Metric Dossier Grid */
.dossier-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.dossier-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.d-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.d-val small {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.d-lbl {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Best Season Badge */
.best-season-badge {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #fde68a;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* Terrain Composition Bar */
.terrain-bar-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.terrain-bar-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
}

.terrain-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Section Title */
.detail-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 8px 0;
}

/* Dynamic SVG Elevation Profile */
.elevation-profile-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  margin-bottom: 14px;
}

.elev-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.elev-peak-badge {
  color: var(--accent-neon);
  font-family: monospace;
  font-size: 0.72rem;
}

.elevation-sparkline-svg {
  width: 100%;
  height: 85px;
  overflow: visible;
}

.elevation-legend-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 5px;
}

/* Radar Bars */
.radar-bars-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.radar-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.radar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.radar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.radar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

/* Waypoints Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 2px dashed rgba(255, 255, 255, 0.15);
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-node {
  position: relative;
}

.node-bullet {
  position: absolute;
  left: -27px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.node-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.node-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.node-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.node-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-start { background: #059669; color: #fff; }
.badge-end { background: #2563eb; color: #fff; }
.badge-peak { background: #7c3aed; color: #fff; }
.badge-evac { background: #dc2626; color: #fff; }
.badge-supply { background: #0284c7; color: #fff; }
.badge-view { background: #d97706; color: #fff; }
.badge-pass { background: #4b5563; color: #fff; }

.node-alt {
  font-size: 0.68rem;
  color: var(--accent-neon);
  font-family: monospace;
}

.node-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Photo Spots Box */
.photo-spots-box {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.photo-spot-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.spot-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.spot-text {
  font-size: 0.75rem;
  color: #fde68a;
  line-height: 1.45;
}

/* Cultural History Box */
.cultural-box {
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.76rem;
  color: #cffafe;
  line-height: 1.55;
  margin-bottom: 14px;
}

/* Warnings Box */
.warning-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.76rem;
  color: #fecdd3;
  line-height: 1.55;
  margin-bottom: 14px;
}

/* Info Card Box (Supplies & Transit) */
.info-card-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 14px;
}

/* Gear Checklist */
.gear-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .gear-checklist {
    grid-template-columns: 1fr;
  }
}

.gear-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #cbd5e1;
  cursor: pointer;
}

.gear-item input[type="checkbox"] {
  accent-color: var(--accent-neon);
  width: 15px;
  height: 15px;
}

/* 5. Modals */
.wechat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.wechat-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f161f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.share-card-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}

.modal-btn {
  background: var(--accent-neon);
  color: #032014;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  width: 100%;
}

.action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Empty State */
.feed-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* =========================================================
   NEW ENHANCED UI/UX DESIGN TOKENS & COMPONENTS
   ========================================================= */

/* 1. Daylight Safety Banner */
.daylight-safety-banner {
  margin: 8px 16px 0 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.daylight-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.daylight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.daylight-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.daylight-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daylight-status {
  font-size: 0.72rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daylight-link-pill {
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.daylight-link-pill:hover {
  background: rgba(245, 158, 11, 0.35);
}

/* 2. Sorting & Controls Toolbar */
.feed-sort-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.sort-icon {
  font-size: 0.85rem;
  color: var(--accent-neon);
}

.sort-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sort-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.sort-select option {
  background: #0f172a;
  color: #fff;
}

/* 3. Favorites Button & Animation */
.fav-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
  color: rgba(255, 255, 255, 0.6);
}

.fav-heart-btn:hover {
  transform: scale(1.12);
  background: rgba(0, 0, 0, 0.7);
}

.fav-heart-btn.active {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
  transform: scale(1.08);
}

.drawer-header-fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.drawer-header-fav-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
}

.chip-fav {
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.chip-fav.active {
  background: #f43f5e;
  color: #fff;
  border-color: #f43f5e;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4);
}

/* 4. Interactive Elevation Scrubber */
.interactive-elev-container {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 14px 0;
  touch-action: none;
}

.scrub-tooltip {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-neon);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 245, 160, 0.2);
  transition: all 0.1s ease-out;
}

.elevation-sparkline-svg {
  width: 100%;
  height: 95px;
  display: block;
  cursor: crosshair;
}

/* 5. Vector Trajectory Mini-Map */
.vector-trail-map-box {
  background: #080d13;
  border: 1px solid rgba(0, 245, 160, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.vector-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vector-map-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vector-map-badge {
  font-size: 0.7rem;
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-neon);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.vector-map-svg-wrap {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at center, rgba(14, 28, 22, 0.6) 0%, rgba(5, 10, 15, 0.95) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.vector-map-svg {
  width: 100%;
  height: 190px;
  display: block;
}

.vector-waypoint-info-toast {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.74rem;
  color: #e2e8f0;
  display: none;
  animation: fadeInToast 0.2s ease;
}

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

/* 6. Multi-Platform Navigation Buttons */
.multi-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 16px 0;
}

.multi-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition-fast), opacity 0.2s;
}

.multi-nav-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.nav-amap {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.nav-tencent {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.nav-baidu {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  border: 1px solid rgba(234, 88, 12, 0.4);
}

.nav-apple {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 7. Hydration & Calorie Calculator */
.hydration-calculator-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(56, 189, 248, 0.04) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
}

.calc-weight-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.weight-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.weight-pill.active {
  background: var(--accent-cyan);
  color: #032014;
  border-color: var(--accent-cyan);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.calc-res-item {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}

.calc-res-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.calc-res-lbl {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 8. Poster Card Modal */
.poster-modal-content {
  max-width: 420px;
  padding: 16px;
  background: #090e15;
}

.poster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.poster-title-tag {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.poster-card-preview-area {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.poster-card-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.poster-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f172a 0%, transparent 80%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.poster-route-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.poster-route-badge {
  font-size: 0.72rem;
  color: var(--accent-neon);
}

.poster-card-content {
  padding: 12px;
}

.poster-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  text-align: center;
}

.poster-stat-v {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.poster-stat-l {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* 9. Public Welfare Footer */
.app-public-welfare-footer {
  margin-top: 40px;
  background: linear-gradient(to bottom, #070a0e 0%, #030609 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 16px 40px 16px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.welfare-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.welfare-pill {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-weight: 700;
}

.welfare-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.welfare-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.lnt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .lnt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lnt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.lnt-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.lnt-t {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.lnt-d {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  line-height: 1.4;
  margin-top: 2px;
}

.welfare-copyright {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

/* 10. Solar Time Grid */
.solar-time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.solar-time-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.st-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.st-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   11. Trailheads Hub & Multi-Entrance Switcher (多登山口接驳规划)
   ========================================================= */
.trailheads-hub-container {
  margin: 18px 0;
  background: rgba(18, 26, 36, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.th-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.th-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.th-tip-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-neon);
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.trailhead-tabs-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.trailhead-tabs-scroller::-webkit-scrollbar {
  display: none;
}

.th-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  max-width: 220px;
}

.th-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.th-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(0, 245, 160, 0.15) 100%);
  border-color: var(--accent-neon);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.25);
}

.th-tab-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.th-tab-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-sky);
  white-space: nowrap;
}

.th-tab.active .th-tab-tag {
  color: var(--accent-neon);
}

.th-detail-card {
  background: rgba(10, 16, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.th-active-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.th-active-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.th-active-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-neon);
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.th-meta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.th-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.th-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.th-meta-text {
  flex: 1;
}

.th-meta-text b {
  color: #fff;
  font-weight: 700;
}

.th-nav-action-bar {
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.th-nav-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.th-nav-btn-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (max-width: 480px) {
  .th-nav-btn-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.th-nav-pill-btn {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.th-nav-pill-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

