/* ============================================================
   澳新自驾 2026 · 样式表（Phase 4B）
   字号：body 19px / Day标题 34px / 路线卡 24px / 地点 22px
   ============================================================ */

/* ── Reset & 基础 ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  font-size: 19px;
  overflow: hidden; /* 防止 body-scroll，由内层 scroll-view 接管 */
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB',
               'Microsoft YaHei', sans-serif;
  font-size: 19px;
  line-height: 1.7;
  color: #111;
  background: #f5f6fa;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── CSS 变量 ─────────────────────────────────────────────── */
:root {
  --au:       #e8762f;
  --nzn:      #2d8a4e;
  --nzs:      #1a73c8;
  --accent:   #1a73c8;
  --bg:       #f5f6fa;
  --card:     #ffffff;
  --text:     #111111;
  --sub:      #4a4a4a;
  --muted:    #888888;
  --border:   #e4e4e4;
  --warn-bg:  #fff8e1;
  --warn:     #f57c00;
  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 2px 16px rgba(0,0,0,.09);
  --shadow-sm:0 1px 6px  rgba(0,0,0,.07);
}

/* ── 页面框架 ─────────────────────────────────────────────── */
#app {
  position: fixed;          /* 固定于视口，防止 body 滚动 */
  inset: 0;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

/* ── 页面层：每个页面撑满整个 #app ──────────────────────── */
.pg {
  display: none;
  flex-direction: column;
  height: 100%;             /* ← 关键：占满 #app，不溢出 */
  overflow: hidden;
}
.pg.active { display: flex; }

/* ── 顶部导航栏 ───────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  /* 顶部留出 safe area（处理 iPhone 刘海 / Dynamic Island）*/
  padding: calc(13px + env(safe-area-inset-top, 0px)) 16px 13px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;           /* 不被压缩 */
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 16px;
  font-family: inherit;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .12s;
}
.topbar-back:active { background: #e5e8ef; }

.topbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-right { width: 80px; flex-shrink: 0; }

/* ── 滚动容器（内层滚动，不依赖 body） ────────────────────── */
.scroll-view {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;            /* Flex 子元素必须设置，否则不收缩 */
}

/* ══════════════════════════════════════════════════════════
   首页
══════════════════════════════════════════════════════════ */
/* ── 首页英雄区（旅行杂志风）──────────────────────────────── */
.home-hero {
  background: #fff;
  padding: 28px 20px 22px;
  border-bottom: 1px solid #efefec;
}

.hero-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #bbb;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  color: #111;
  letter-spacing: -2.5px;
  line-height: .92;
  margin: 0 0 16px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-date-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-date-val {
  font-size: 17px;
  font-weight: 800;
  color: #222;
}

.hero-divider {
  width: 1px;
  height: 32px;
  background: #e8e8e4;
  flex-shrink: 0;
}

/* 今日状态卡 */
.home-today-card {
  margin: 18px 16px 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-today-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.home-today-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.home-today-day {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.home-today-body { padding: 16px 18px 18px; }

.home-today-route {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.4;
}

.home-today-date {
  font-size: 16px;
  color: var(--sub);
  margin: 0 0 16px;
}

.home-today-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: .2px;
}
.home-today-btn:active { opacity: .88; }

/* 区域卡片 */
.home-regions {
  padding: 20px 16px 0;
}

.home-regions-hd {
  font-size: 11px;
  font-weight: 800;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
}

.region-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.04);
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: transform .12s, opacity .12s;
}
.region-card:active {
  transform: scale(.98);
  opacity: .9;
}

/* 左侧色条（加宽至 5px，更显眼）*/
.region-card-bar {
  width: 5px;
  flex-shrink: 0;
  border-radius: 0;
}

.region-card-main {
  flex: 1;
  padding: 16px 14px 15px;
  min-width: 0;
}

.region-card-name {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 3px;
  /* color 由 JS inline style 注入区域色 */
}

.region-card-dates {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* 区域内 Day 预览列表 */
.region-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-preview-row {
  display: flex;
  gap: 8px;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.5;
}

.region-preview-num {
  color: var(--muted);
  font-weight: 700;
  min-width: 28px;
  flex-shrink: 0;
}

.region-preview-route {
  color: var(--sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-card-arrow {
  align-self: center;
  font-size: 20px;
  font-weight: 700;
  opacity: .5;
  padding-right: 16px;
  flex-shrink: 0;
  /* color 由 JS inline style 注入区域色 */
}

/* 地图入口 */
.home-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 16px 36px;
  padding: 18px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  color: var(--sub);
  cursor: pointer;
  width: calc(100% - 32px);
  transition: background .1s;
}
.home-map-btn:active { background: #eef0f5; }

/* ══════════════════════════════════════════════════════════
   区域页
══════════════════════════════════════════════════════════ */
.region-pg-hero {
  padding: 22px 18px 18px;
  color: #fff;
}
.region-pg-hero.au  { background: linear-gradient(135deg, var(--au),  #c45e1c); }
.region-pg-hero.nzn { background: linear-gradient(135deg, var(--nzn), #1f6335); }
.region-pg-hero.nzs { background: linear-gradient(135deg, var(--nzs), #0d4f8c); }

.region-pg-name  { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.region-pg-dates { font-size: 16px; opacity: .85; margin: 0; }

/* Day 行 */
.drow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: var(--card);
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background .1s;
}
.drow:active { background: #f4f6fb; }

.drow-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.drow-body  { flex: 1; min-width: 0; }

.drow-route {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drow-date  { font-size: 15px; color: var(--sub); }
.drow-arrow { font-size: 20px; color: #d0d0d0; }

.drow.today {
  background: #e8f0fe;
  border-left: 5px solid var(--accent);
}
.drow.today .drow-num { color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   Day 详情页
══════════════════════════════════════════════════════════ */
.day-hd {
  padding: 22px 18px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.day-num {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin: 0 0 2px;
  line-height: 1;
}

.day-date {
  font-size: 18px;
  color: var(--sub);
  margin: 6px 0 10px;
}

.day-route-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

/* 快捷按钮 */
.quick-btns {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}
.quick-btns::-webkit-scrollbar { display: none; }

.qb {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .1s, border-color .1s;
}
.qb:active   { background: #e5e8ef; }
.qb.active   {
  background: #e8f0fe;
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 通用区块 ─────────────────────────────────────────────── */
.section       { padding: 20px 16px 0; }
.section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.section-gap { height: 20px; }

/* ══════════════════════════════════════════════════════════
   Phase 4A 新增卡片
══════════════════════════════════════════════════════════ */

/* ── 今日概览卡 ───────────────────────────────────────────── */
.overview-card {
  margin: 14px 16px 0;
  background: var(--card);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}

.overview-card-hd {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.ov-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ov-row:last-child { border-bottom: none; padding-bottom: 0; }

.ov-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  min-width: 54px;
  flex-shrink: 0;
  padding-top: 2px;
}

.ov-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.ov-route {
  font-size: 19px;
  font-weight: 800;
}

.ov-transport-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f0f4fb;
  color: var(--accent);
}

.ov-place-tag {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-right: 8px;
  line-height: 1.65;
}

/* ── 租车状态卡 ───────────────────────────────────────────── */
.car-card {
  margin: 10px 16px 0;
  border-radius: 14px;
  padding: 14px 18px;
}

.car-card.car-active {
  background: #f0f7ff;
  border: 1.5px solid #c8dfff;
}
.car-card.car-pickup {
  background: #f0fff4;
  border: 1.5px solid #b6e9c6;
}
.car-card.car-return {
  background: #fff7f0;
  border: 1.5px solid #ffd9b3;
}
.car-card.car-none {
  background: #f8f8f8;
  border: 1px solid #ebebeb;
}

.car-body { flex: 1; }

.car-card-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.car-status-line {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.car-status-line.pickup { color: var(--nzn); }
.car-status-line.return { color: var(--au); }
.car-status-line.active { color: var(--accent); }
.car-status-line.none   { color: var(--muted); }

.car-detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 出行提醒卡 ───────────────────────────────────────────── */
.reminder-card {
  margin: 10px 16px 0;
  background: #fffbf0;
  border: 1.5px solid #ffe88a;
  border-radius: 14px;
  padding: 14px 16px;
}

.reminder-hd {
  font-size: 11px;
  font-weight: 800;
  color: #c49800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.reminder-item {
  font-size: 15px;
  color: #5a4400;
  line-height: 1.65;
  padding: 5px 0;
  border-top: 1px solid rgba(200,160,0,.12);
}
.reminder-item:first-of-type { border-top: none; padding-top: 0; }

/* ── 今日 Checklist ───────────────────────────────────────── */
.checklist-card {
  margin: 0 16px;
  background: var(--card);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
}

.checklist-hd {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.cl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.cl-item:last-child { border-bottom: none; padding-bottom: 0; }
.cl-item.done .cl-text {
  color: var(--muted);
  text-decoration: line-through;
}

.cl-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2.5px solid #ddd;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background .18s, border-color .18s;
}
.cl-box.checked {
  background: #34a853;
  border-color: #34a853;
}
.cl-box.checked::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.cl-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   路线关系图（离线核心，地铁图风格）
   注意：index.html 内联 <style> 的 Flexbox 覆盖方案优先
══════════════════════════════════════════════════════════ */
.routemap-card {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
}

.routemap-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px;
}

/* 路线图主体（Fallback：伪元素竖线，被 index.html 内联覆盖） */
.routemap {
  position: relative;
  padding-left: 38px;
}
.routemap::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: linear-gradient(to bottom, #34a853 0%, var(--accent) 60%, var(--au) 100%);
  border-radius: 2px;
}

.rm-stop { position: relative; margin-bottom: 0; }

.rm-dot {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #bbb;
  background: #bbb;
  z-index: 1;
}

.rm-stop.type-start  .rm-dot { background: #34a853; box-shadow: 0 0 0 3px #34a853; }
.rm-stop.type-hotel  .rm-dot { background: var(--au); box-shadow: 0 0 0 3px var(--au); }
.rm-stop.type-end    .rm-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.rm-stop.type-transit .rm-dot{ background: #9c27b0; box-shadow: 0 0 0 3px #9c27b0; }
.rm-stop.type-stop   .rm-dot { background: #fff; box-shadow: 0 0 0 3px #aaa; }

.rm-stop-emoji {
  font-size: 20px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.rm-stop-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.rm-stop-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 2px 0 4px;
  line-height: 1.3;
}
.rm-stop-sub {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 20px;
}
.rm-connector { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.rm-connector-info { font-size: 14px; color: #bbb; font-style: italic; }
.rm-stop-body { padding-bottom: 6px; }
.rm-stop:last-child .rm-stop-body { padding-bottom: 0; }

/* ── SVG 迷你地图 ────────────────────────────────────────── */
.minimap-wrap {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
  height: auto;
}
.minimap-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.minimap-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.minimap-note {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 10px;
}
.day-minimap-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 60px;
  background: #e8edf5;
}

/* ── 地点卡片 ─────────────────────────────────────────────── */
.places-list { padding: 0 16px; }

.place-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.place-card-body { padding: 16px 18px 12px; }

.pzh {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px;
  line-height: 1.3;
}
.pen { font-size: 15px; color: var(--muted); margin: 0; }

/* 导航按钮 */
.nav-btns { display: flex; gap: 10px; padding: 0 18px 16px; }

.ba {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: .2px;
}
.ba:active { opacity: .85; }

.bg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: #4285f4;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: .2px;
}
.bg:active { opacity: .85; }

/* ── 住宿卡 ───────────────────────────────────────────────── */
.hotel-card {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hotel-card.alert {
  background: var(--warn-bg);
  border: 1.5px solid var(--warn);
}
.hotel-icon     { font-size: 24px; flex-shrink: 0; line-height: 1.3; }
.hotel-name     { font-size: 20px; font-weight: 700; color: var(--text); }
.hotel-alert-text { font-size: 15px; color: var(--warn); font-weight: 700; margin-top: 3px; }

/* ── 备注卡 ───────────────────────────────────────────────── */
.note-card {
  margin: 0 16px;
  background: #f7f9ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--sub);
  line-height: 1.7;
}

/* ── 底部 Day 切换器 ──────────────────────────────────────── */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;            /* 不被压缩，固定在底部 */
  gap: 8px;
  /* 安全区适配 */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.day-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  cursor: pointer;
  line-height: 1.3;
  flex-shrink: 0;
}
.day-nav-btn:disabled { opacity: .3; cursor: default; }
.day-nav-btn:not(:disabled):active { background: #e5e8ef; }

.day-nav-center { flex: 1; text-align: center; }

.day-nav-overview {
  display: block;
  width: 100%;
  padding: 10px 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--sub);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
.day-nav-overview:active { background: #e5e8ef; }

.day-nav-daynum {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   地图页（Phase 4C：Pure SVG 全程路线图）
══════════════════════════════════════════════════════════ */
.global-map-outer {
  padding: 14px 14px 0;
}

.global-map-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.global-map-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.global-map-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.global-map-note {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 10px;
}

#global-map-svg { display: block; width: 100%; }

.map-day-bar {
  padding: 10px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}
.map-day-bar::-webkit-scrollbar { display: none; }

.map-day-chip {
  padding: 9px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--sub);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .1s;
}
.map-day-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   区域颜色主题（Day 页）
══════════════════════════════════════════════════════════ */
.theme-au  .day-num,
.theme-au  .topbar-back,
.theme-au  .home-today-day { color: var(--au); }

.theme-au  .home-today-btn,
.theme-au  .day-nav-btn:not(:disabled) { color: var(--au); border-color: rgba(232,118,47,.3); }

.theme-nzn .day-num,
.theme-nzn .topbar-back  { color: var(--nzn); }
.theme-nzn .day-nav-btn:not(:disabled) { color: var(--nzn); border-color: rgba(45,138,78,.3); }

.theme-nzs .day-num,
.theme-nzs .topbar-back  { color: var(--nzs); }
.theme-nzs .day-nav-btn:not(:disabled) { color: var(--nzs); border-color: rgba(26,115,200,.3); }

/* ══════════════════════════════════════════════════════════
   PWA 安装横幅
══════════════════════════════════════════════════════════ */
.install-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #e8f0fe;
  border-bottom: 1px solid #c5d8ff;
  font-size: 15px;
  color: var(--text);
  flex-shrink: 0;
}
.install-banner.show         { display: flex; }
.install-banner-btn {
  margin-left: auto;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.install-banner-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   Phase 4B：行程状态卡（倒计时 / 当前 / 结束）
══════════════════════════════════════════════════════════ */
.status-card {
  margin: 16px 16px 0;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
}

.status-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #f4f5f8;
}

.status-card-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #bbb;
  text-transform: uppercase;
}

.status-card-body { padding: 18px 18px 20px; }

/* 倒计时大数字 */
.status-countdown {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.status-num {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--accent);
  line-height: 1;
}
.status-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--sub);
}
.status-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* 当前 Day 状态 */
.status-live-day {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.status-live-route {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.4;
}
.status-live-date {
  font-size: 16px;
  color: var(--sub);
  margin: 0 0 16px;
}
.status-live-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: .2px;
}
.status-live-btn:active { opacity: .88; }

/* 行程结束 */
.status-ended {
  text-align: center;
  padding: 4px 0 2px;
}
.status-ended-emoji {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
}
.status-ended-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.status-ended-sub {
  font-size: 15px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   Phase 4B：路线示意图（Route Diagram）.rd-*
══════════════════════════════════════════════════════════ */
.rd-wrap {
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
}

.rd-row {
  display: flex;
  align-items: flex-start;
  min-height: 52px;
}

.rd-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
  padding-top: 5px;
}

.rd-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rd-vline {
  flex: 1;
  min-height: 16px;
  margin: 3px 0 0;
  width: 0;
  border-left: 2px dashed #d0d8e8;
}

.rd-content {
  flex: 1;
  padding: 0 0 14px 8px;
  min-width: 0;
}

.rd-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  opacity: .8;
  display: inline-block;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.rd-place {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  word-break: break-all;
}

.rd-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.rd-footer {
  margin: 2px 2px 6px 28px;
  padding: 9px 14px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
}

.rd-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 14px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   Phase 4B：强度标签 & 今日提示
══════════════════════════════════════════════════════════ */
.day-intensity-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.day-intensity-badge.light  { background: #f0fff4; color: #2d8a4e; }
.day-intensity-badge.medium { background: #fff7e6; color: #e8762f; }
.day-intensity-badge.heavy  { background: #ffeef0; color: #c62828; }

.day-hint-line {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   Phase 4B：地图打开按钮
══════════════════════════════════════════════════════════ */
.minimap-open-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 4px 14px 14px;
  padding: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--sub);
  cursor: pointer;
  text-align: center;
  transition: background .1s;
}
.minimap-open-btn:active { background: #e5e8ef; }

/* ══════════════════════════════════════════════════════════
   Phase 4B：快速定位 Day 跳转网格
══════════════════════════════════════════════════════════ */
.day-jump-wrap {
  padding: 20px 16px 28px;
}

.day-jump-hd {
  font-size: 11px;
  font-weight: 800;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
}

.day-jump-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.djb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  overflow: hidden;
  transition: background .1s;
}
.djb:active { background: #e5e8ef; }
.djb.today  { background: #e8f0fe; border-color: var(--accent); }

.djb-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 22px;
}
.djb.today .djb-num { color: var(--accent); }

.djb-route {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 日历末尾间距 */
.day-jump-end { height: 28px; }

/* ══════════════════════════════════════════════════════════
   Phase 4B：Trip Memory Checklist（三段式 A/B/C）
══════════════════════════════════════════════════════════ */
.cl-section + .cl-section {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f5f5f5;
}

.cl-sec-hd {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 12px 0 6px;
}
.cl-sec-hd:first-child { margin-top: 0; }

/* Section A：系统自动（灰） */
.cl-sec-a .cl-sec-hd { color: var(--muted); }
.cl-sec-a .cl-item   { cursor: default; }

/* Section B：AI 提示（蓝，不可编辑） */
.cl-sec-b .cl-sec-hd { color: var(--accent); }
.cl-sec-b .cl-item   { cursor: default; }
.cl-sec-b .cl-box    { border-color: #c5d8ff; background: #f0f7ff; }
.cl-sec-b .cl-text   { color: var(--sub); font-size: 15px; }

/* Section C：用户自定义（绿，可编辑） */
.cl-sec-c .cl-sec-hd { color: #2d8a4e; }
.cl-sec-c .cl-box    { border-color: #b6e9c6; }

/* 删除按钮 */
.cl-del {
  background: none;
  border: none;
  color: #d0d0d0;
  font-size: 18px;
  cursor: pointer;
  padding: 0 0 0 8px;
  flex-shrink: 0;
  line-height: 1;
}
.cl-del:active { color: #e53935; }

/* 新增行 */
.cl-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 2px;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.cl-add-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  -webkit-appearance: none;
}
.cl-add-input:focus { border-color: #34a853; }

.cl-add-btn {
  padding: 10px 14px;
  background: #34a853;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.cl-add-btn:active { opacity: .88; }

/* ══════════════════════════════════════════════════════════
   工具类
══════════════════════════════════════════════════════════ */
.hidden      { display: none !important; }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* 小屏保护 */
@media (max-width: 360px) {
  html, body       { font-size: 17px; }
  .day-num         { font-size: 28px; }
  .day-route-title { font-size: 20px; }
  .rm-stop-name    { font-size: 19px; }
  .pzh             { font-size: 19px; }
  .ba, .bg         { font-size: 15px; }
  .ov-val          { font-size: 16px; }
  .cl-text         { font-size: 16px; }
  .status-num      { font-size: 44px; }
  .djb-route       { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════
   Phase 4D · 双层地图 UI
══════════════════════════════════════════════════════════ */

/* ── 全程地图：类型切换分段控件 ─────────────────────────── */
.map-type-bar {
  padding: 8px 14px 10px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.map-type-seg {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
}
.map-type-btn {
  flex: 1;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.map-type-btn.active {
  background: var(--card);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,.13);
}

/* ── 全程地图：实景瓦片层（flex:1 填满剩余高度）────────── */
.global-tile-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: #dde5f0;
}
.global-tile-map {
  width: 100%;
  height: 100%;
}
/* Leaflet 控件 z-index（避免被 topbar 遮住）*/
.global-tile-wrap .leaflet-top { top: 8px; }
.global-tile-wrap .leaflet-control-zoom { margin: 8px; }

/* ── 全程地图：SVG 层（scroll-view，默认隐藏）───────────── */
#global-svg-wrap {
  /* 与 .scroll-view 共用 flex:1；display 由 JS 控制 */
}

/* ── Day minimap：标签页切换按钮 ────────────────────────── */
.minimap-hd-btns {
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  border: 1.5px solid var(--border);
}
.mmap-tab {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  background: var(--bg);
  border: none;
  cursor: pointer;
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.mmap-tab + .mmap-tab {
  border-left: 1.5px solid var(--border);
}
.mmap-tab.active {
  background: var(--accent);
  color: #fff;
}

/* ── Day 实景地图容器 ───────────────────────────────────── */
.day-tile-map {
  width: 100%;
  height: 220px;
  background: #dde5f0;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   Phase 4C+4E · 信息架构 & 路线可视化重构
══════════════════════════════════════════════════════════ */

/* ── Day 页 Index Bar（固定于 topbar 下方）────────────── */
.day-index-bar {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.day-index-bar::-webkit-scrollbar { display: none; }

.dib-btn {
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.dib-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* 区域主题：Index Bar 激活色跟随区域色 */
.theme-au  .dib-btn.active { color: var(--au);  border-bottom-color: var(--au); }
.theme-nzn .dib-btn.active { color: var(--nzn); border-bottom-color: var(--nzn); }
.theme-nzs .dib-btn.active { color: var(--nzs); border-bottom-color: var(--nzs); }

/* ── 回到顶部浮动按钮 ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(26,115,200,.88);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 16px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  transform: translateY(8px);
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Day 页 Section 结构 ─────────────────────────────────── */
.day-section {
  padding: 24px 16px 0;
}
.sec-hd {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── 交通 & 里程快览行 ──────────────────────────────────── */
.day-facts {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.fact-lbl {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.fact-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

/* ── Day Nav 简化（无"行程总览"按钮）────────────────────── */
.day-nav-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 住宿告警样式（替换 emoji）──────────────────────────── */
.hotel-card .alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8762f;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   Phase 4E · 区域时间轴（Region Timeline）
══════════════════════════════════════════════════════════ */

/* 区域页头 */
.region-hero {
  padding: 22px 20px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.region-hero-name {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.3;
}
.region-hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 4px;
}
.region-hero-dates {
  font-size: 13px;
  color: var(--muted);
}

/* 区域路线示意图 */
.region-map-section {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.region-map-hd {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 18px 6px;
}
.region-map-section svg {
  display: block;
  border-radius: 0 0 0 0;
}

/* 时间轴容器 */
.region-timeline { padding: 16px 0 32px; }

.tl-item {
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .1s;
}
.tl-item:active { background: rgba(0,0,0,.04); }

.tl-connector {
  width: 32px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}
.tl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid #ddd;
  background: var(--card);
  flex-shrink: 0;
}
.tl-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  background: #e8e8e8;
  margin: 4px 0;
}
.tl-content {
  flex: 1;
  padding: 10px 0 22px;
  min-width: 0;
}
.tl-daynum {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.tl-route {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-arrow {
  align-self: center;
  font-size: 22px;
  font-weight: 300;
  padding: 0 2px 12px;
}
.tl-item.today .tl-dot { border-width: 3px; }
.tl-item.today .tl-route { font-weight: 900; }

/* ══════════════════════════════════════════════════════════
   Phase 4E · 全程概览图（静态路线结构图）
══════════════════════════════════════════════════════════ */

.global-overview {
  padding: 24px 20px 40px;
  min-height: 100%;
  display: flex;
  justify-content: center;
}
.ov-flow {
  width: 100%;
  max-width: 440px;
}
.ov-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  border-left: 5px solid #ccc;
  box-shadow: var(--shadow);
}
.ov-card-days {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: var(--muted);
}
.ov-card-title {
  font-size: 21px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.ov-card-dates {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.ov-leg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 0 6px 20px;
}
.ov-leg-line {
  width: 2px;
  height: 36px;
  background: #ddd;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 1px;
}
.ov-leg-info {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 4px;
}

/* ══════════════════════════════════════════════════════════
   新信息架构 v2 · Day 概览卡（dov-*）
   用 dov- 前缀避免与地图页 ov- 类名冲突
══════════════════════════════════════════════════════════ */
.dov-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* 第一行：Day N + 日期 + 强度 */
.dov-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 18px 0;
}
.dov-daynum {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1;
}
.dov-date {
  font-size: 16px;
  color: var(--sub);
  font-weight: 600;
  flex: 1;
}

/* 路线摘要大字 */
.dov-route {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  padding: 8px 18px 0;
}

/* 交通 + 里程横排 */
.dov-meta-row {
  display: flex;
  padding: 12px 18px;
  border-top: 1px solid #f0f0f0;
  margin-top: 10px;
}
.dov-meta-item { flex: 1; }
.dov-meta-item + .dov-meta-item {
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.dov-meta-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}
.dov-meta-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

/* 今日亮点标签组 */
.dov-highlights { padding: 0 18px 12px; }
.dov-hl-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.dov-hl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dov-hl-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  background: var(--bg);
  border-radius: 20px;
  padding: 4px 10px;
  border: 1px solid var(--border);
}

/* 今日取车 / 还车提醒条 */
.dov-car {
  padding: 10px 18px;
  border-top: 1px solid #f0f0f0;
}
.dov-car.pickup { background: #f0fff4; border-top-color: #b6e9c6; }
.dov-car.return { background: #fff7f0; border-top-color: #ffd9b3; }
.dov-car-val {
  font-size: 16px;
  font-weight: 800;
}
.dov-car.pickup .dov-car-val { color: var(--nzn); }
.dov-car.return .dov-car-val { color: var(--au); }
.dov-car-detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}

/* 出行提醒条（黄色背景） */
.dov-alert {
  padding: 10px 18px;
  background: #fffbf0;
  border-top: 1.5px solid #ffe88a;
}
.dov-alert-hd {
  font-size: 11px;
  font-weight: 800;
  color: #c49800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.dov-alert-item {
  font-size: 14px;
  color: #5a4400;
  line-height: 1.65;
  padding: 2px 0;
}

/* 今晚住宿行（卡片最底部） */
.dov-tonight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 18px;
  border-top: 1px solid #f0f0f0;
}
.dov-tonight-lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  flex-shrink: 0;
}
.dov-tonight-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.dov-tonight-alert {
  font-size: 12px;
  color: var(--warn);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── sec-hd 折叠控件（地图 / 备注）─────────────────────── */
.sec-hd-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.sec-toggle-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

/* ── Index Bar 禁用态 ─────────────────────────────────── */
.dib-btn:disabled {
  opacity: .32;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── 导航 section 空状态 ─────────────────────────────── */
.nav-empty {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  padding: 24px 0 8px;
}

/* ── 清单 B段：只读信息行（去除虚假 checkbox）──────────── */
.cl-info-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cl-info-row:last-child { border-bottom: none; }
.cl-info-text {
  font-size: 15px;
  color: var(--sub);
  font-weight: 600;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   新首页架构 · 区域卡片（去除 preview）+ Day Quick Jump
══════════════════════════════════════════════════════════ */

/* 区域卡片：城市子标题 */
.region-card-sub {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.4;
}
/* 区域卡片：日期行内天数角标 */
.region-card-total {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Day Quick Jump：按区域分行的芯片索引 */
.dqj-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.dqj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.dqj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.dqj-chip {
  padding: 6px 10px;
  background: #f6f7fb;
  border: 1px solid #e8eaf0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .1s;
}
.dqj-chip:active { opacity: .75; }

/* ══════════════════════════════════════════════════════════
   旅行杂志风首页组件
══════════════════════════════════════════════════════════ */

/* ── Day 快速定位芯片（平铺版）──────────────────────────── */
.dj-section {
  padding: 14px 20px 16px;
  background: #fff;
  border-bottom: 1px solid #efefec;
}

.dj-label {
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dj-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.djc {
  padding: 5px 9px;
  background: #f5f5f2;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #555;
  border: 1px solid #e8e8e4;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background .1s;
}
.djc:active { background: #eaeae6; }

/* 今日：黑底白字 */
.djc.djc-today {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ── 区域卡片（旅行杂志风，渐变色调背景）────────────────── */
.rcc-wrap {
  padding: 14px 16px 32px;
  background: #fafaf8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rcc-card {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  font-family: inherit;
  display: block;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.rcc-card:active { transform: scale(.98); }

.rcc-inner {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.rcc-au  .rcc-inner { background: linear-gradient(120deg, #fff4ee, #fde6cf); }
.rcc-nzn .rcc-inner { background: linear-gradient(120deg, #edfbf2, #d0f3de); }
.rcc-nzs .rcc-inner { background: linear-gradient(120deg, #eef4ff, #cfe3ff); }

/* 英文副标题 */
.rcc-accent {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.rcc-au  .rcc-accent { color: #c45e1c; }
.rcc-nzn .rcc-accent { color: #1f6335; }
.rcc-nzs .rcc-accent { color: #0d4f8c; }

/* 区域名（深色）*/
.rcc-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 3px;
  line-height: 1.15;
}
.rcc-au  .rcc-name { color: #7a3b0e; }
.rcc-nzn .rcc-name { color: #144d26; }
.rcc-nzs .rcc-name { color: #0a3570; }

/* 城市路线 */
.rcc-cities {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.rcc-au  .rcc-cities { color: #b05010; }
.rcc-nzn .rcc-cities { color: #196030; }
.rcc-nzs .rcc-cities { color: #0c4090; }

/* 底部：日期 + 天数 */
.rcc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rcc-dates {
  font-size: 12px;
  font-weight: 600;
  color: #888;
}
.rcc-days {
  font-size: 12px;
  font-weight: 800;
  color: #888;
}

/* 箭头（绝对定位，右侧居中，半透明）*/
.rcc-arr {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 900;
  opacity: .15;
  color: #333;
  pointer-events: none;
}
