/* ===================================
   TripLite 全局样式
   Mobile-first 旅行引导网站
   =================================== */

:root {
  --primary: #1a3a5c;
  --primary-light: #2563a8;
  --primary-dark: #0f2540;
  --accent: #f59e0b;
  --accent-light: #fcd34d;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --bg-dark: #1a3a5c;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --nav-height: 64px;
  --header-height: 56px;
  
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1,h2,h3,h4 { margin: 0; }

/* === Header === */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--primary);
  z-index: 100;
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon { font-size: 20px; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}
.header-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* === Main Content === */
.app-main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  padding: 12px;
}

/* === Bottom Nav === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item i { font-size: 18px; transition: transform 0.2s; }
.nav-item.active { color: var(--primary-light); }
.nav-item.active i { transform: scale(1.1); }
.nav-item:active i { transform: scale(0.9); }

/* === 通用卡片 === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .icon { font-size: 16px; }

/* === 页面标题 === */
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* === Hero 主卡 === */
.hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero-card::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-day-label {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-city {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.hero-summary {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 16px;
}
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-tag {
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero-tag.urgent {
  background: var(--accent);
  color: #1a1a1a;
}

/* === 步骤列表 === */
.step-list { display: flex; flex-direction: column; gap: 8px; }
.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border);
  transition: border-color 0.2s;
}
.step-item.am { border-color: #f59e0b; }
.step-item.pm { border-color: #3b82f6; }
.step-item.night { border-color: #8b5cf6; }
.step-item.warning { border-color: var(--danger); background: #fef2f2; }
.step-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 44px;
  padding-top: 2px;
  text-transform: uppercase;
}
.step-content { flex: 1; }
.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === 进度条 === */
.progress-strip {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.progress-count { font-size: 13px; font-weight: 700; color: var(--primary-light); }
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}
.progress-cities {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.progress-city-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.city-dot.active { background: var(--primary-light); }
.city-dot.done { background: var(--success); }
.city-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }

/* === 快捷按钮 === */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.quick-btn:active { transform: scale(0.96); box-shadow: none; }
.quick-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}
.quick-btn-icon.blue { background: linear-gradient(135deg, #2563a8, #3b82f6); }
.quick-btn-icon.teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.quick-btn-icon.amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.quick-btn-icon.rose { background: linear-gradient(135deg, #dc2626, #ef4444); }
.quick-btn-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* === 时间轴 === */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid white;
  z-index: 1;
  transition: background 0.3s;
}
.tl-item.current::before { background: var(--accent); }
.tl-item.done::before { background: var(--success); }
.tl-item.future::before { background: var(--border); }
.tl-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.tl-card:active { transform: scale(0.98); }
.tl-card.current { border-color: var(--accent); background: #fffbeb; }
.tl-date { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; text-transform: uppercase; }
.tl-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.tl-subtitle { font-size: 12px; color: var(--text-secondary); }
.tl-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}
.tl-badge.macau { background: #fef3c7; color: #92400e; }
.tl-badge.bangkok { background: #ecfdf5; color: #065f46; }
.tl-badge.pattaya { background: #eff6ff; color: #1e40af; }
.tl-badge.return { background: #f0fdf4; color: #166534; }
.tl-badge.urgent { background: #fef2f2; color: #991b1b; }

/* === 提醒卡 === */
.alert-card {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-card.warning { background: #fffbeb; border: 1px solid #fde68a; }
.alert-card.info { background: #eff6ff; border: 1px solid #bfdbfe; }
.alert-card.danger { background: #fef2f2; border: 1px solid #fecaca; }
.alert-card.success { background: #f0fdf4; border: 1px solid #bbf7d0; }
.alert-icon { font-size: 18px; flex-shrink: 0; padding-top: 1px; }
.alert-content { flex: 1; }
.alert-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.alert-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.alert-card.warning .alert-title { color: #92400e; }
.alert-card.info .alert-title { color: #1e40af; }
.alert-card.danger .alert-title { color: #991b1b; }
.alert-card.success .alert-title { color: #065f46; }

/* === 标签 === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.tag.green { background: #dcfce7; color: #166534; }
.tag.amber { background: #fef3c7; color: #92400e; }
.tag.blue { background: #dbeafe; color: #1e40af; }
.tag.purple { background: #f3e8ff; color: #6b21a8; }
.tag.red { background: #fee2e2; color: #991b1b; }
.tag.gray { background: #f1f5f9; color: #475569; }

/* === 分隔线 === */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 12px 0;
}

/* === 章节标题 === */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  margin-top: 4px;
}

/* === 网格布局 === */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.info-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.info-item-label { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.info-item-value { font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary-light); color: white; }
.btn-primary:active { background: var(--primary); }
.btn-secondary { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-full { width: 100%; }

/* === 城市芯片 === */
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-secondary);
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.city-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* === 单日执行页特有样式 === */
.day-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  color: white;
}
.day-date { font-size: 12px; opacity: 0.75; margin-bottom: 4px; font-weight: 600; }
.day-city { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.day-summary { font-size: 13px; opacity: 0.85; line-height: 1.5; }
.day-energy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.9;
}
.energy-bar {
  display: flex;
  gap: 3px;
}
.energy-dot {
  width: 16px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
}
.energy-dot.filled { background: rgba(255,255,255,0.9); }

.time-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.time-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.time-label {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.time-label.am { background: #fef3c7; color: #92400e; }
.time-label.pm { background: #dbeafe; color: #1e40af; }
.time-label.night { background: #f3e8ff; color: #6b21a8; }
.time-range { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-dot.must { background: var(--danger); }
.activity-dot.suggest { background: var(--accent); }
.activity-dot.optional { background: var(--text-muted); }
.activity-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.activity-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin-top: 1px; }
.activity-meta { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

/* === Checklist 样式 === */
.checklist-group { margin-bottom: 16px; }
.checklist-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 2px;
  cursor: pointer;
  border: 1px solid var(--border-light);
}
.checklist-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}
.checklist-progress {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
}
.checklist-progress.done { background: #dcfce7; color: #166534; }
.checklist-items { display: none; }
.checklist-items.open { display: block; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.check-item:active { background: var(--bg); }
.check-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: white;
  font-size: 12px;
}
.check-item.checked .check-box {
  background: var(--success);
  border-color: var(--success);
}
.check-item.checked .check-name { text-decoration: line-through; color: var(--text-muted); }
.check-item.must-item .check-box { border-color: var(--danger); }
.check-item.must-item.checked .check-box { background: var(--success); border-color: var(--success); }
.check-name { font-size: 14px; font-weight: 600; color: var(--text-primary); transition: color 0.2s; }
.check-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }
.check-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}
.check-badge.must { background: #fee2e2; color: #991b1b; }
.check-badge.tip { background: #fef3c7; color: #92400e; }

/* === 地图页 === */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  position: relative;
  background: #e8f0fe;
}
#leafletMap { width: 100%; height: 100%; }
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.poi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.poi-card:active { box-shadow: none; }
.poi-emoji { font-size: 28px; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; }
.poi-info { flex: 1; }
.poi-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.poi-addr { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.poi-actions { display: flex; gap: 6px; margin-top: 6px; }
.poi-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.poi-action-btn.primary { background: var(--primary-light); color: white; border-color: transparent; }
.poi-action-btn:active { opacity: 0.7; }

/* === 住宿页 === */
.hotel-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.hotel-top {
  padding: 18px;
  border-bottom: 1px solid var(--border-light);
}
.hotel-name { font-size: 17px; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; }
.hotel-area { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.hotel-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.hotel-price { font-size: 22px; font-weight: 800; color: var(--primary-light); }
.hotel-price-unit { font-size: 13px; color: var(--text-muted); }
.hotel-score { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #f59e0b; }
.hotel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hotel-body { padding: 14px 18px; }
.hotel-pros { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.hotel-pro { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.hotel-pro::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; padding-top: 1px; }
.hotel-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: #92400e;
  display: flex;
  gap: 6px;
}
.hotel-actions { display: flex; gap: 8px; margin-top: 12px; }
.hotel-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hotel-action-btn.primary { background: var(--primary-light); color: white; }
.hotel-action-btn.secondary { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }

/* === 应急页 === */
.emergency-section { margin-bottom: 16px; }
.emergency-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 6px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.emergency-icon { font-size: 22px; flex-shrink: 0; }
.emergency-content { flex: 1; }
.emergency-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.emergency-text { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
}

/* === 复制成功提示 === */
.copy-toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === 城市筛选Tab === */
.city-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.city-tabs::-webkit-scrollbar { display: none; }

/* === 路线卡 === */
.route-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.route-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.route-steps { display: flex; flex-direction: column; gap: 0; }
.route-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}
.route-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.route-step::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 34px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}
.route-step:last-child::before { display: none; }
.route-step-info { flex: 1; padding-top: 3px; }
.route-step-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.route-step-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.route-transport { font-size: 11px; color: var(--primary-light); background: #dbeafe; padding: 2px 8px; border-radius: 20px; font-weight: 600; display: inline-block; margin-top: 4px; }

/* === 加载与空状态 === */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; font-weight: 600; color: var(--text-secondary); }

/* === 底部安全区填充 === */
.safe-bottom { height: 8px; }

/* === 动画 === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.3s ease forwards; }

/* === 夜间模式适配 === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-dark: #0f1e30;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d3f55;
    --border-light: #1e293b;
  }
  .step-item { background: #263447; }
  .info-item { background: #263447; }
  .quick-btn { background: #1e293b; }
  .check-item { background: #1e293b; }
  .tl-card { background: #1e293b; }
  .tl-card.current { background: #2d2512; }
  .hero-card { background: linear-gradient(135deg, #0f2540, #1a3f70); }
  .alert-card.warning { background: #2d2512; border-color: #854d0e; }
  .alert-card.info { background: #0f2040; border-color: #1e40af; }
  .alert-card.danger { background: #2d1212; border-color: #991b1b; }
  .hotel-card { background: #1e293b; }
  .hotel-top { border-color: #2d3f55; }
}

/* 单独页面的header调整 */
.page-header {
  background: var(--primary);
  margin: -12px -12px 16px;
  padding: 16px 16px 20px;
}
.page-header-title {
  color: white;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header-sub {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-top: 2px;
}
