/* ==========================================================================
   西葡 20 日自驾手册 · 2027
   Mobile First · 单页 · 无外部依赖
   ========================================================================== */

:root {
  --bg: #f5efe4;
  --bg-grad-a: rgba(194, 84, 63, .07);
  --bg-grad-b: rgba(47, 111, 107, .07);
  --surface: #fffdf8;
  --surface-2: #fbf6ec;
  --surface-3: #f3ece0;
  --ink: #2c2621;
  --ink-2: #6d6259;
  --ink-3: #9b9086;
  --line: rgba(44, 38, 33, .11);
  --line-soft: rgba(44, 38, 33, .06);
  --line-strong: rgba(44, 38, 33, .24);
  --accent: #c2543f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(194, 84, 63, .10);
  --teal: #2f6f6b;
  --gold: #b07a2c;
  --ok: #3f7d52;
  --warn: #b8823c;
  --danger: #c0392b;
  --shadow-s: 0 1px 2px rgba(44, 38, 33, .06);
  --shadow-m: 0 2px 6px -2px rgba(44, 38, 33, .10), 0 12px 28px -18px rgba(44, 38, 33, .28);
  --shadow-l: 0 4px 12px -4px rgba(44, 38, 33, .12), 0 24px 48px -28px rgba(44, 38, 33, .34);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --bar-brand-h: 48px;
  --bar-tabs-h: 44px;
  --maxw: 780px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
              "PingFang SC", monospace;

  /* 插画地图专用配色：与页面主题解耦，深浅两套各自成套 */
  --map-sea-1: #e0ecf2;   /* 海面（远） */
  --map-sea-2: #c6dbe6;   /* 海面（近岸） */
  --map-es: #f4e7cd;      /* 西班牙陆地 */
  --map-es-2: #ecdbb6;
  --map-pt: #e0e5c8;      /* 葡萄牙陆地（橄榄色，与海面拉开） */
  --map-nb: #eae4d5;      /* 邻国（法 / 摩洛哥），虚线淡化 */
  --map-coast: #a3835f;   /* 海岸线与手绘笔触 */
  --map-glow: rgba(122, 175, 196, .34);   /* 近岸浅滩光晕 */
  --map-sea-ink: #7fa6b5; /* 海名、波浪、海鸥 */
  --map-terrain: #c9b998; /* 山脉填充 */
  --map-halo: #f7f0e1;    /* 文字/徽章描边留白（必须跟地图底色走，不能用卡片底色） */
}

html[data-theme="dark"] {
  --bg: #12151a;
  --bg-grad-a: rgba(224, 113, 90, .09);
  --bg-grad-b: rgba(90, 163, 157, .07);
  --surface: #1b1f26;
  --surface-2: #212630;
  --surface-3: #272d38;
  --ink: #e9edf2;
  --ink-2: #a6b0bc;
  --ink-3: #7a8492;
  --line: rgba(255, 255, 255, .11);
  --line-soft: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .26);
  --accent: #e0715a;
  --accent-ink: #1b1f26;
  --accent-soft: rgba(224, 113, 90, .14);
  --teal: #5aa39d;
  --gold: #d0a156;
  --ok: #6cae82;
  --warn: #d0a156;
  --danger: #e0715a;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-m: 0 2px 6px -2px rgba(0, 0, 0, .4), 0 12px 28px -18px rgba(0, 0, 0, .7);
  --shadow-l: 0 4px 12px -4px rgba(0, 0, 0, .5), 0 24px 48px -28px rgba(0, 0, 0, .8);

  /* 插画地图：深色下陆地必须比海面亮，否则葡萄牙会糊成一个洞 */
  --map-sea-1: #0d1a21;
  --map-sea-2: #09131a;
  --map-es: #4a3f2e;
  --map-es-2: #57492f;
  --map-pt: #3d4633;
  --map-nb: #2f2c25;
  --map-coast: #8f7659;
  --map-glow: rgba(88, 140, 160, .22);
  --map-sea-ink: #5f8494;
  --map-terrain: #6d6249;
  --map-halo: #1c1915;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -4%, var(--bg-grad-a), transparent 62%),
    radial-gradient(760px 560px at 92% 22%, var(--bg-grad-b), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
/* 所有行内图标统一尺寸，避免无 width 属性的 SVG 撑开容器 */
.ico { width: 16px; height: 16px; flex: 0 0 auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- 顶部常驻栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);                                    /* 兜底：不支持 color-mix() 的内核（微信安卓旧内核）走纯色 */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.bar.is-stuck {
  border-bottom-color: var(--line);
  background: var(--bg);                                    /* 兜底 */
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.bar-inner { max-width: var(--maxw); margin: 0 auto; }

/* 第 1 行 · 品牌行（滚动后收起） */
.bar-brand {
  height: var(--bar-brand-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  overflow: hidden;
  transition: height .3s cubic-bezier(.4, 0, .2, 1), opacity .22s, margin .3s;
}
.bar.is-stuck .bar-brand { height: 0; opacity: 0; margin-top: -1px; }

.brand-mark {
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--gold));
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-s);
}
.brand-text { min-width: 0; }
.brand-title {
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 11px; color: var(--ink-3); white-space: nowrap; margin-top: -2px;
}
.brand-spacer { flex: 1 1 auto; }

.clock {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.clock b { font-weight: 600; color: var(--ink-2); font-family: var(--font-num); }
.clock .sep { color: var(--ink-3); opacity: .6; }

/* 窄屏（iPhone SE 等）优先保住时钟与按钮，收起副标题 */
@media (max-width: 379px) {
  .brand-sub { display: none; }
  .brand-title { font-size: 14px; }
  .clock { font-size: 10.5px; }
}

.bar-btn {
  width: 34px; height: 34px; flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  display: grid; place-items: center;
  transition: transform .15s, background .2s;
}
.bar-btn:active { transform: scale(.94); }
.bar-btn svg { width: 17px; height: 17px; }

/* 第 2 行 · 标签行（永远常驻） */
.bar-tabs {
  height: var(--bar-tabs-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.bar-tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .2s, color .2s, border-color .2s;
}
.tab .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  transition: opacity .2s;
}
.tab[aria-current="true"] {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.tab[aria-current="true"] .dot { opacity: 0; }
.tab:active { transform: scale(.97); }

/* ---------------------------------------------------------------- 通用排版 */
main { max-width: var(--maxw); margin: 0 auto; padding-bottom: 96px; }

.sec {
  padding: 26px 14px 4px;
  scroll-margin-top: calc(var(--bar-brand-h) + var(--bar-tabs-h) + 8px);
}
.sec:first-of-type { padding-top: 16px; }

.sec-head { margin-bottom: 14px; }
.sec-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 7px;
}
.sec-kicker::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.sec-title {
  font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  margin: 6px 0 0;
}
.sec-desc { font-size: 13px; color: var(--ink-2); margin: 5px 0 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
}
.pad { padding: 15px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid transparent;
}
.chip.book { background: var(--accent-soft); color: var(--accent); }
.chip.hot { background: rgba(192, 57, 43, .13); color: var(--danger); }
.chip.warn { background: rgba(184, 130, 60, .15); color: var(--gold); }
.chip.info { background: rgba(47, 111, 107, .12); color: var(--teal); }
.chip.ok { background: rgba(63, 125, 82, .13); color: var(--ok); }
.chip.cake { background: rgba(214, 106, 148, .16); color: #c2537f; }
html[data-theme="dark"] .chip.cake { color: #ea8fb4; }
.chip.ghost { background: transparent; border-color: var(--line); color: var(--ink-3); }

.muted { color: var(--ink-2); }
.tiny { font-size: 11.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- ① 此刻关注 */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 140% at 82% 6%, var(--accent-soft), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow-m);
  padding: 16px 15px 14px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  letter-spacing: .06em;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent);
       box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }  /* 后者不支持时沿用前者 */
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-event {
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  margin: 7px 0 2px; line-height: 1.35;
}
.hero-meta {
  font-size: 12.5px; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  font-variant-numeric: tabular-nums;
}
.hero-meta .tz {
  font-size: 10.5px; font-weight: 600;
  padding: 1px 5px; border-radius: 4px;
  background: var(--surface-3); color: var(--ink-3);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 13px 0 11px;
}
.cd-cell {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  padding: 8px 2px 6px;
  text-align: center;
}
.cd-num {
  font-family: var(--font-num);
  font-size: clamp(26px, 8.6vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cd-num.sec { color: var(--accent); }
.cd-lab {
  font-size: 10.5px; color: var(--ink-3); margin-top: 2px;
  letter-spacing: .08em;
}

.hero-todo {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 11px;
  background: var(--surface-2);
  border-radius: var(--r-s);
  border-left: 3px solid var(--gold);
}
.hero-todo .lab {
  font-size: 10.5px; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; flex: 0 0 auto; padding-top: 1px;
}
.hero-todo .txt { font-size: 13px; line-height: 1.5; }

.hero-quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  margin-top: 11px;
}
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  transition: background .2s, transform .12s;
}
.quick:active { transform: scale(.97); }
.quick svg { width: 17px; height: 17px; color: var(--accent); }

/* 预约倒排提醒条 */
.alertbar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  font-size: 12.5px;
  transition: background .2s;
}
.alertbar.sev-far { background: var(--surface-3); color: var(--ink-2); }
.alertbar.sev-mid { background: rgba(184, 130, 60, .13); color: var(--gold); }
.alertbar.sev-near { background: rgba(192, 57, 43, .12); color: var(--danger); }
.alertbar.sev-over { background: rgba(192, 57, 43, .17); color: var(--danger); }
.alertbar .ical {
  flex: 0 0 auto; margin-left: auto;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2);
}
.alert-days { font-family: var(--font-num); font-weight: 700; }
.blink {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); flex: 0 0 auto;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .18; } }

/* ---------------------------------------------------------------- ② 航班大卡 */
.flights-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 14px 4px;
  margin: 0 -14px;
}
.flights-rail::-webkit-scrollbar { display: none; }

.fcard {
  flex: 0 0 86%;
  max-width: 420px;
  scroll-snap-align: center;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-m);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.fcard-top {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px 0;
  font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap;
}
.fcard-top .seq { font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.fcard-top .air { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.fcard-top .air .ico { width: 14px; height: 14px; color: var(--accent); }
.fcard-top .spacer { flex: 1; }

.fcard-body { padding: 8px 13px 13px; }
.fcard-no {
  font-family: var(--font-num);
  font-size: 30px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.1; margin: 2px 0 10px;
  display: flex; align-items: baseline; gap: 8px;
}
.fcard-no small {
  font-family: var(--font); font-size: 11px; font-weight: 600;
  color: var(--ink-3); letter-spacing: 0;
}

.froute { display: flex; align-items: stretch; gap: 10px; }
.fend { flex: 1 1 0; min-width: 0; }
.fend.to { text-align: right; }
.fend .city {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fend .ap { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fend .tm {
  font-family: var(--font-num);
  font-size: 24px; font-weight: 700; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.fend .tzl {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 1px 5px; border-radius: 4px;
  background: var(--surface-3); color: var(--ink-3);
  margin-top: 2px;
}
.fmid {
  flex: 0 0 auto; width: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--ink-3);
}
.fmid .plane { color: var(--accent); }
.fmid .plane svg { width: 18px; height: 18px; }
.fmid .dur { font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.fcard-cd {
  margin-top: 12px; padding: 9px 11px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.fcard-cd .lab { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.fcard-cd .val {
  font-family: var(--font-num); font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.fcard-cd.done .val { color: var(--ok); }

.fcard-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 13px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  font-size: 11.5px; color: var(--ink-2);
}
.fcard-foot .grow { flex: 1; }
.fcard-foot a {
  font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 3px;
}

.rail-nav {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 10px;
}
.rail-dots { display: flex; gap: 5px; }
.rail-dots button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); transition: width .25s, background .25s;
}
.rail-dots button[aria-current="true"] { width: 18px; border-radius: 3px; background: var(--accent); }
.rail-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink-2);
}
.rail-arrow:disabled { opacity: .34; }
.rail-arrow svg { width: 15px; height: 15px; }
@media (hover: none) { .rail-arrow { display: none; } }

/* ---------------------------------------------------------------- ③ 地图 */
.mapwrap {
  position: relative;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.mapwrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mapwrap svg { width: 100%; height: auto; display: block; }
.map-zoom-btn {
  position: absolute; top: 9px; right: 9px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-s);
  pointer-events: none;   /* 整张地图都可点，别让角标吞掉点击 */
}
.map-zoom-btn .ico { width: 13px; height: 13px; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  padding: 11px 13px 13px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-2);
}
.map-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.map-legend .sw { width: 14px; height: 3px; border-radius: 2px; }
.map-legend .sw.dash {
  height: 0; border-top: 2px dashed currentColor; border-radius: 0;
}
.map-legend .sw.num {
  width: auto; height: auto; background: none; border-radius: 0;
  font-family: var(--font-num); font-size: 12px; font-weight: 700;
  color: var(--ink-2); line-height: 1;
}
.stay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.stay-chips .s {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
}
.stay-chips .s i {
  font-style: normal; font-family: var(--font-num);
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10.5px; font-weight: 700;
}
.stay-chips .s em {
  font-style: normal; font-family: var(--font-num);
  color: var(--accent); font-weight: 700;
}

/* ---------------------------------------------- 地图全屏放大（移动端必需） */
html.map-zoom-open, html.map-zoom-open body { overflow: hidden; }
.mapzoom {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.mapzoom[hidden] { display: none; }
.mapzoom-body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 52px) 14px
           calc(env(safe-area-inset-bottom, 0px) + 40px);
}
/* 固定 1000px 宽：在 390px 手机上约 2.9 倍，城市名从 6px 放大到约 18px */
.mapzoom-body svg { width: 1000px; max-width: none; height: auto; display: block; }
.mapzoom-close {
  position: absolute; z-index: 2;
  top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px;
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; line-height: 1;
  box-shadow: var(--shadow-m); cursor: pointer;
}
.mapzoom-tip {
  position: absolute; z-index: 2;
  left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
  box-shadow: var(--shadow-s);
  pointer-events: none;
}
@media (min-width: 760px) {
  .mapzoom-body svg { width: 1200px; margin: 0 auto; }
}

/* ---------------------------------------------------------------- ④ 订单 */
.seg {
  display: flex; gap: 4px; padding: 3px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 12px;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: 1 0 auto;
  height: 30px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: background .2s, color .2s;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.seg .n {
  font-family: var(--font-num); font-size: 10.5px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 0 5px; line-height: 15px;
}
.seg button:not([aria-selected="true"]) .n { background: var(--line); color: var(--ink-2); }

.order {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.order:last-child { border-bottom: 0; }
.order-ic {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--accent);
}
.order-ic svg { width: 17px; height: 17px; }
.order-main { flex: 1 1 auto; min-width: 0; }
.order-t { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.order-s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.order-x { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.order.pending { background: repeating-linear-gradient(135deg, transparent, transparent 7px, var(--line-soft) 7px, var(--line-soft) 8px); }
.order.pending .order-ic { background: var(--surface-2); color: var(--ink-3); }
.empty-note { padding: 14px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ---------------------------------------------------------------- ⑤ 自驾 */
.drive-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 15px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.drive-head .ttl { font-size: 16px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 10px; padding: 13px 15px; font-size: 13px; }
.kv dt { color: var(--ink-3); font-size: 12px; }
.kv dd { margin: 0; }
.req-list { display: flex; flex-wrap: wrap; gap: 6px; }

.seg-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.seg-table th, .seg-table td { padding: 7px 6px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.seg-table th { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.seg-table td.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.seg-table tr.warn td { background: rgba(184, 130, 60, .08); }
.seg-table tfoot td { font-weight: 700; border-bottom: 0; }

/* ---------------------------------------------------------------- ⑥ 逐日行程 */
.day {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  margin-bottom: 9px;
  overflow: hidden;
}
.day[open] { box-shadow: var(--shadow-m); }
.day > summary {
  list-style: none; cursor: pointer;
  padding: 13px 14px;
  display: flex; align-items: flex-start; gap: 11px;
  position: relative;
}
.day > summary::-webkit-details-marker { display: none; }
.day-n {
  flex: 0 0 auto; width: 40px;
  text-align: center;
  font-family: var(--font-num);
  line-height: 1.05;
}
.day-n b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.day-n span { display: block; font-size: 9.5px; color: var(--ink-3); letter-spacing: .06em; }
.day-h { flex: 1 1 auto; min-width: 0; }
.day-date {
  font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.day-route { font-size: 14.5px; font-weight: 650; margin-top: 1px; letter-spacing: -.005em; }
.day-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.day-caret {
  flex: 0 0 auto; color: var(--ink-3); transition: transform .25s;
  align-self: center;
}
.day[open] .day-caret { transform: rotate(180deg); }
.day-caret svg { width: 16px; height: 16px; }

.day-body { padding: 0 14px 14px; }
.day-lead {
  font-size: 13px; color: var(--ink-2); line-height: 1.65;
  padding: 11px 12px; background: var(--surface-2); border-radius: var(--r-s);
  margin-bottom: 12px;
}
.day-facts {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.day-facts .f {
  font-size: 11.5px; color: var(--ink-2);
  background: var(--surface-3); border-radius: 6px; padding: 3px 8px;
  font-variant-numeric: tabular-nums;
}

.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: 59px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.stop { display: flex; gap: 16px; padding: 0 0 14px; position: relative; }
.stop:last-child { padding-bottom: 0; }
.stop-time {
  flex: 0 0 50px; text-align: right;
  font-family: var(--font-num); font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2); padding-top: 1px;
  white-space: nowrap;
}
.stop-dot {
  position: absolute; left: 54px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--surface);
}
.stop-mark .stop-dot { background: var(--accent); }
.stop-c { flex: 1 1 auto; min-width: 0; }
.stop-t {
  font-size: 14px; font-weight: 640; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.stop-sub {
  font-size: 11.5px; color: var(--ink-3); margin-top: 2px;
  display: flex; flex-wrap: wrap; gap: 4px 9px;
}
.stop-note { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.6; }
.stop-img {
  margin-top: 9px; border-radius: var(--r-s); overflow: hidden;
  aspect-ratio: 3 / 2; background: var(--surface-3);
}
.stop-img img { width: 100%; height: 100%; object-fit: cover; }
.stop-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mini-act {
  font-size: 11.5px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 4px;
}
.mini-act.primary { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.mini-act svg { width: 13px; height: 13px; }

.route-box {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--surface-2);
}
.route-box.hidden { display: none; }
.route-box > svg { width: 100%; height: auto; display: block; }
.route-box .mini-act svg { width: 13px; height: 13px; }
.route-box .rb-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-2);
}

.photo-tip {
  margin-top: 12px; padding: 11px 12px;
  border-radius: var(--r-s);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px dashed var(--line);
}
.photo-tip .pt-h {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--teal);
  margin-bottom: 5px;
}
.photo-tip .pt-h svg { width: 14px; height: 14px; }
.photo-tip ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.photo-tip ul li { margin-bottom: 3px; }
.photo-tip .pt-note { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* ---------------------------------------------------------------- ⑦ 清单 */
.prog {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.prog-bar {
  flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3);
  overflow: hidden;
}
.prog-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}
.prog-num {
  font-family: var(--font-num); font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.check-group { margin-bottom: 14px; }
.check-group > h4 {
  margin: 0 0 7px; font-size: 12px; font-weight: 700;
  color: var(--ink-3); letter-spacing: .06em;
  display: flex; align-items: center; gap: 8px;
}
.check-group > h4::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  background: var(--surface);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px;
  border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: var(--surface);
  display: grid; place-items: center;
  transition: background .18s, border-color .18s;
}
.check .box svg { width: 12px; height: 12px; color: var(--accent-ink); opacity: 0; transition: opacity .15s; }
.check .txt { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.5; }
.check .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.check input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ .box svg { opacity: 1; }
.check:has(input:checked) .txt > span:first-child { text-decoration: line-through; color: var(--ink-3); }
.check:has(input:checked) { opacity: .72; }
/* 不支持 :has() 的浏览器用 JS 打的 class 兜底 */
.check.is-done .txt > span:first-child { text-decoration: line-through; color: var(--ink-3); }
.check.is-done { opacity: .72; }
.check .due { font-family: var(--font-num); font-weight: 600; }
.check .due.near { color: var(--danger); }
.check .due.mid { color: var(--gold); }

.local-note {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 11.5px; color: var(--ink-3);
  background: var(--surface-3); border-radius: var(--r-s);
  padding: 9px 11px; margin-bottom: 12px; line-height: 1.55;
}
.local-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; }

/* ---------------------------------------------------------------- ⑧ 预算 */
.budget-total {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 15px;
  border-radius: var(--r-m);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.budget-total .big {
  font-family: var(--font-num); font-size: 29px; font-weight: 700;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.budget-total .per { font-size: 12.5px; color: var(--ink-2); }
.budget-total .unit { font-size: 13px; color: var(--ink-2); font-weight: 600; }

.bgroup { border: 1px solid var(--line-soft); border-radius: var(--r-m); background: var(--surface); margin-bottom: 9px; overflow: hidden; }
.bgroup > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  display: flex; align-items: center; gap: 9px;
}
.bgroup > summary::-webkit-details-marker { display: none; }
.bgroup .bt { flex: 1; font-size: 14px; font-weight: 650; }
.bgroup .bv { font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.bgroup .bc { color: var(--ink-3); transition: transform .25s; }
.bgroup[open] .bc { transform: rotate(180deg); }
.bgroup .bc svg { width: 15px; height: 15px; display: block; }
.brow { display: flex; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.brow .bl { flex: 1; min-width: 0; }
.brow .bn { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.brow .bnote { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---------------------------------------------------------------- ⑩ 工具 */
/* 每日行程天气 */
.wx-card { padding: 13px 14px 9px; }
.wx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wx-src { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.wx-src b { font-weight: 600; color: var(--ink-2); }
.wx-src b.wx-on { color: var(--accent); }
.wx-refresh {
  flex: none; font: inherit; font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.wx-refresh:active { background: var(--surface-3); }
.wx-list { display: flex; flex-direction: column; }
.wx-row {
  display: grid; align-items: center; gap: 5px; padding: 7px 0; font-size: 13.5px;
  grid-template-columns: 26px 40px 18px minmax(0, 1fr) 22px 68px 38px;
  border-bottom: 1px solid var(--line-soft);
}
.wx-row:last-child { border-bottom: none; }
.wx-no { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.wx-date { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wx-wd { color: var(--ink-3); font-size: 12px; }
.wx-city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.wx-ico { text-align: center; font-size: 15px; line-height: 1; }
.wx-ico.is-ref { color: var(--ink-3); opacity: .55; }
.wx-t { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-t b { font-weight: 600; }
.wx-t i { font-style: normal; color: var(--ink-3); margin-left: 5px; }
.wx-p { text-align: right; color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wx-row.is-live .wx-city { font-weight: 500; }
.wx-foot { margin-top: 9px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }

/* 记账 */
.acct-card { padding: 14px; }
.acct-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acct-total { display: flex; align-items: baseline; gap: 7px; }
.acct-total .lab { font-size: 12.5px; color: var(--ink-3); }
.acct-total .num {
  font-family: var(--font-num); font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.acct-meta { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; text-align: right; }
.acct-meta b { color: var(--ink); }
/* 分类小计：胶囊，与住宿编号片同一套视觉语言 */
.acct-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acct-cats:empty { display: none; }
.acct-cat {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.acct-cat i { font-style: normal; color: var(--ink-3); }
.acct-cat b { font-weight: 700; }

/* 录入表单 */
.acct-form { margin-top: 13px; display: flex; flex-direction: column; gap: 9px; }
.acct-row { display: flex; gap: 9px; }
.acct-row-2 > .acct-f { flex: 1 1 0; min-width: 0; }
.acct-f { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; }
.acct-f > span { font-size: 11.5px; color: var(--ink-3); }
.acct-f input, .acct-f select {
  width: 100%; box-sizing: border-box;
  padding: 10px 11px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 14px; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.acct-f input:focus, .acct-f select:focus { outline: none; border-color: var(--accent); }
.acct-add {
  margin-top: 3px; padding: 12px 14px; border: none; border-radius: var(--r-m);
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-s);
}
.acct-add:active { opacity: .9; }

/* 明细列表 */
.acct-list { margin-top: 13px; display: flex; flex-direction: column; gap: 8px; }
.acct-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 11px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line);
}
.acct-item .acct-d { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acct-item .acct-n { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.acct-item .acct-c {
  flex: 0 0 auto; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.acct-item .acct-v { display: flex; align-items: baseline; gap: 8px; }
.acct-item .acct-cy { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.acct-item .acct-o { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.acct-item .acct-del {
  margin-left: auto; width: 24px; height: 24px; flex: 0 0 auto;
  border: none; border-radius: 999px; background: transparent; color: var(--ink-3);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.acct-item .acct-del:active { background: var(--line); }
.acct-item .acct-date { font-size: 11px; color: var(--ink-3); }

.acct-empty { margin-top: 13px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.acct-empty[hidden] { display: none; }

/* 动作按钮 */
.acct-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.acct-act {
  flex: 1 1 auto; padding: 9px 10px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.acct-act:active { opacity: .9; }
.acct-act-danger { color: #c0392b; border-color: rgba(192, 57, 43, .35); }

.acct-note { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.acct-note strong { color: var(--ink-2); font-weight: 600; }

.fx { padding: 15px; }
.fx-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 9px; }
.fx-in {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); padding: 0 10px; height: 44px;
}
.fx-in select, .fx-in input {
  border: 0; background: transparent; font: inherit; color: inherit;
  font-variant-numeric: tabular-nums; min-width: 0; outline: none;
}
.fx-in input { flex: 1 1 auto; font-family: var(--font-num); font-weight: 600; font-size: 15px; }
.fx-in select { font-weight: 600; cursor: pointer; }
.fx-swap {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--accent);
}
.fx-swap svg { width: 17px; height: 17px; }
.fx-out {
  border-radius: var(--r-s); background: var(--surface-2);
  border: 1px solid var(--line-soft); padding: 13px 14px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.fx-out .big {
  font-family: var(--font-num); font-size: 25px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.fx-src { font-size: 11px; color: var(--ink-3); margin-top: 9px; line-height: 1.55; }
.fx-stale { color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------- ⑪ 贴士 */
.tipgroup { border: 1px solid var(--line-soft); border-radius: var(--r-m); background: var(--surface); margin-bottom: 8px; overflow: hidden; }
.tipgroup > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650;
}
.tipgroup > summary::-webkit-details-marker { display: none; }
.tipgroup .ic {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  background: var(--surface-3); color: var(--accent);
  display: grid; place-items: center;
}
.tipgroup .ic svg { width: 15px; height: 15px; }
.tipgroup .cg { margin-left: auto; color: var(--ink-3); transition: transform .25s; }
.tipgroup[open] .cg { transform: rotate(180deg); }
.tipgroup .cg svg { width: 15px; height: 15px; display: block; }
.tipitem { padding: 0 14px 11px; }
.tipitem:first-of-type { padding-top: 2px; }
.tipitem b { font-size: 13px; display: block; }
.tipitem p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------------------------------------------------------------- 页脚 & FAB */
.foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 26px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3); font-size: 11.5px; line-height: 1.75;
}
.foot b { color: var(--ink-2); font-weight: 600; }

.fab {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-m);
  display: grid; place-items: center; color: var(--ink-2);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.fab.show { opacity: 1; pointer-events: auto; }
.fab:active { transform: scale(.93); }
.fab svg { width: 18px; height: 18px; }

.toast {
  position: fixed;
  left: 50%; bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  z-index: 200;
  background: var(--ink); color: var(--bg);
  font-size: 12.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: var(--shadow-l);
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- 桌面端 */
@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .sec { padding: 34px 22px 6px; }
  .fcard { flex: 0 0 46%; }
  .flights-rail { padding: 2px 22px 4px; margin: 0 -22px; }
  .sec-title { font-size: 25px; }
  .cd-num { font-size: 40px; }
  .hero { padding: 22px 22px 18px; }
  .tl::before { left: 65px; }
  .stop-time { flex-basis: 56px; font-size: 13px; }
  .stop-dot { left: 60px; }
  .day > summary { padding: 15px 18px; }
  .day-body { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- 预订实卡（住宿 / 门票） */
.order-m {
  font-size: 11.5px; color: var(--ink-3); margin-top: 4px;
  padding-top: 4px; border-top: 1px dashed var(--line);
}
.order-n {
  font-size: 12px; line-height: 1.55; color: var(--ink-2);
  margin-top: 5px; padding: 7px 9px; border-radius: 8px;
  background: var(--surface-2);
}
.order-acts { margin-top: 8px; flex-wrap: wrap; }

/* 逐日卡片内的「当晚住宿」块 */
.hotel {
  margin: 0 0 12px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--surface-2);
}
.htl-h {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 10px 12px; font-size: 13.5px; font-weight: 650;
  border-bottom: 1px solid var(--line-soft);
}
.htl-h svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.hotel .kv { padding: 10px 12px; grid-template-columns: 56px 1fr; font-size: 12.5px; }
.htl-n {
  padding: 0 12px 10px; font-size: 12px; line-height: 1.6; color: var(--ink-2);
}
.hotel .stop-acts { padding: 0 12px 12px; }

/* 自驾：小标题 / 入住约束 */
.sub-h {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.cin {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px;
}
.cin:last-child { border-bottom: 0; }
.cin .cd {
  flex: 0 0 auto; font-family: var(--font-num); font-weight: 700;
  color: var(--gold); font-variant-numeric: tabular-nums;
}

.due.done { color: var(--ok); background: rgba(63, 125, 82, .12); }

@media print {
  .bar, .fab, .toast, .hero-quick, .rail-nav { display: none !important; }
  body { background: #fff; }
  .sec { break-inside: avoid; }
}
