:root {
  --bg: #F1F5F2;
  --card: #FFFFFF;
  --ink: #22332D;
  --ink-soft: #5F7169;
  --ink-faint: #93A39B;
  --line: #DFE8E2;
  --pine: #1E6B5C;
  --pine-deep: #145246;
  --pine-soft: #E3EFEA;
  --coral: #E96845;
  --coral-soft: #FDEFEA;
  --gold: #D9A441;
  --radius-lg: 18px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 82, 70, 0.10);
  --shadow-soft: 0 4px 14px rgba(20, 82, 70, 0.07);
  --display: Georgia, "Times New Roman", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

/* ── 顶部渐变 hero ── */
.travel-hero {
  position: relative;
  background: linear-gradient(135deg, #0F4237 0%, #1E6B5C 55%, #2E8574 100%);
  color: #fff;
  padding: clamp(26px, 5vw, 44px) clamp(20px, 5vw, 40px) 84px;
  overflow: hidden;
}
.travel-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.6px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; }
.travel-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 6.4vw, 44px);
  margin: 22px 0 8px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.travel-title::after {
  content: "";
  display: block; width: 46px; height: 4px; border-radius: 4px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--gold), #F3CE8B);
}
.travel-tagline { margin: 14px 0 0; color: rgba(255,255,255,.85); font-size: 14.5px; letter-spacing: .04em; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 64px; display: block; }

/* ── 主容器（表单卡叠在 hero 上） ── */
.travel-shell { max-width: 720px; margin: -56px auto 0; padding: 0 clamp(18px, 4.5vw, 36px) 60px; position: relative; }

/* ── 表单卡 ── */
.travel-form {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4.5vw, 32px);
  animation: rise .4s ease both;
}
.field { display: block; margin-bottom: 22px; }
.field__label {
  display: block; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 10px;
}
.field__label em { font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--ink-faint); }
.field__control {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #FAFCFB;
  transition: border-color .2s, box-shadow .2s;
}
.field__control:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(30,107,92,.12); }
.field__control--tail { margin-top: 10px; }
.field__icon { color: var(--pine); flex: none; }
.field input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  padding: 12px 0;
  color: var(--ink); font-size: 16px;
}
.field input::placeholder { color: var(--ink-faint); }

/* 天数 chips */
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .18s;
  font-variant-numeric: tabular-nums;
}
.day-chip:hover { border-color: var(--pine); color: var(--pine); }
.day-chip.is-active {
  background: var(--pine); border-color: var(--pine);
  color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(30,107,92,.28);
}

/* 偏好 chips */
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.pref-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
}
.pref-chip::before { content: "+ "; color: var(--ink-faint); font-weight: 600; }
.pref-chip:hover { border-color: var(--coral); color: var(--coral); }
.pref-chip.is-active {
  background: var(--coral-soft); border-color: var(--coral);
  color: var(--coral); font-weight: 600;
}
.pref-chip.is-active::before { content: "✓ "; }

.travel-go {
  width: 100%;
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pine-deep), var(--pine));
  color: #fff;
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.22em; text-indent: 0.22em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20,82,70,.32);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.travel-go:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20,82,70,.38); filter: brightness(1.06); }
.travel-go:active { transform: none; }
.travel-go:disabled { opacity: .6; cursor: wait; transform: none; }
.travel-form__hint { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: #C25336; }

/* ── 本地历史记录（localStorage，不落库） ── */
.history { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 4px; }
.history-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 2px;
  border: 0; background: transparent;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer;
}
.history-toggle:hover { color: var(--pine); }
.history-toggle__icon { color: var(--pine); flex: none; }
.history-toggle__count {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--pine-soft); color: var(--pine);
  font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.history-toggle__caret { margin-left: auto; color: var(--ink-faint); transition: transform .25s; }
.history.is-open .history-toggle__caret { transform: rotate(180deg); }

.history-panel {
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .32s ease, opacity .24s ease;
}
.history.is-open .history-panel { max-height: 340px; opacity: 1; }
.history-list {
  list-style: none; margin: 0; padding: 0;
  max-height: 282px; overflow-y: auto;
  display: grid; gap: 8px;
}
.history-item {
  display: flex; align-items: center; gap: 4px;
  background: #FAFCFB;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s, background .18s;
}
.history-item:hover { border-color: var(--pine); background: #fff; }
.history-item__open {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  border: 0; background: transparent;
  text-align: left; cursor: pointer;
  font: inherit; color: inherit;
}
.history-item__dest {
  font-family: var(--display);
  font-size: 15.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-item__meta {
  flex: 1; min-width: 0;
  font-size: 12px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-item__time {
  font-size: 11.5px; color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.history-item__del {
  flex: none;
  width: 28px; height: 28px; margin-right: 5px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-faint);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: background .18s, color .18s;
}
.history-item__del:hover { background: var(--coral-soft); color: var(--coral); }
.history-empty { padding: 16px 4px; font-size: 13px; color: var(--ink-faint); text-align: center; }
.history-warn {
  padding: 11px 13px;
  border-radius: var(--radius);
  background: var(--coral-soft);
  border: 1px dashed rgba(233, 104, 69, .4);
  color: #C25336;
  font-size: 12.5px;
  line-height: 1.65;
}
.history-clear {
  width: 100%; margin-top: 8px;
  padding: 9px 0;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink-faint);
  font-size: 12.5px; cursor: pointer;
  transition: color .18s, border-color .18s;
}
.history-clear:hover { color: var(--coral); border-color: var(--coral); }
.history.is-empty .history-clear { display: none; }

/* ── 加载态：跳动的地图钉 ── */
.travel-loading { padding: 46px 0 10px; text-align: center; }
.pins { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; }
.pin { color: var(--pine); display: inline-block; animation: hop 1.15s ease-in-out infinite; }
.pin:nth-child(2) { color: var(--coral); animation-delay: .18s; }
.pin:nth-child(3) { color: var(--gold); animation-delay: .36s; }
.pin svg { filter: drop-shadow(0 4px 6px rgba(20,82,70,.25)); }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-11px); }
  60% { transform: translateY(0) scale(.96, 1.04); }
}
.loading__status { margin: 0 0 4px; color: var(--ink-soft); font-size: 14px; }
.loading__eta { margin: 0 0 26px; font-size: 12.5px; color: var(--ink-faint); }
.skeleton { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; }
.skeleton__card {
  height: 74px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #E7EEE9 35%, #F4F8F5 50%, #E7EEE9 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton__card:nth-child(2) { width: 88%; animation-delay: .15s; }
.skeleton__card:nth-child(3) { width: 72%; animation-delay: .3s; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── 分享落地提示条 ── */
.share-banner {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--pine-soft);
  border: 1px dashed rgba(30, 107, 92, .35);
  color: var(--pine-deep);
  font-size: 13px;
  animation: rise .4s ease both;
}
.share-banner__icon { flex: none; color: var(--pine); }
.share-banner__text { flex: 1; min-width: 0; line-height: 1.5; }
.share-banner__btn {
  flex: none;
  padding: 7px 14px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--pine-deep), var(--pine));
  color: #fff; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(20, 82, 70, .22);
  transition: filter .18s, transform .18s;
}
.share-banner__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* 分享链接打开时的加载态：无需骨架屏与耗时提示 */
.travel-loading.is-share .pins,
.travel-loading.is-share .loading__eta,
.travel-loading.is-share .skeleton { display: none; }

/* 分享按钮提交中 */
.btn--share.is-busy { opacity: .6; cursor: wait; }

/* ── 结果 ── */
.travel-result { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.result-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 28px);
  margin-bottom: 18px;
}
.result-dest {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 5vw, 34px);
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.result-dest::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
  flex: none;
}
.result-overview { margin: 10px 0 16px; color: var(--ink-soft); }
.result-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-radius: 999px;
  background: #FAFCFB;
}

.hero-media { margin: 18px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--pine-soft); }
.hero-media img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.hero-media.is-broken img { display: none; }
.hero-media.is-broken { aspect-ratio: 21 / 9; background: linear-gradient(135deg, #CFE5DB, #7FB4A2); }

/* ── 每日道路路线（A → B，蜿蜒公路） ── */
.day-card { padding-bottom: 4px; }
.day__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.day__label {
  background: linear-gradient(135deg, var(--pine-deep), var(--pine));
  color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(20,82,70,.25);
}
.day__title { font-family: var(--display); font-size: 19px; font-weight: 600; }

.route { position: relative; padding: 16px 0 10px; }
/* 公路本体由 JS 按站点实际位置绘制成蜿蜒曲线（.route-svg），站点浮于路上层 */
.route-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* 起点 / 终点 */
.route-node {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
}
.route-marker {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(20,82,70,.22);
}
.route-marker svg { display: block; }
.route-marker--start { background: linear-gradient(135deg, var(--pine-deep), var(--pine)); }
.route-marker--end { background: linear-gradient(135deg, #C25336, var(--coral)); }
.route-node__text { min-width: 0; }
.route-node--start .route-marker { margin-left: 15%; }
.route-node--start .route-node__text { max-width: 46%; }
.route-node--end .route-marker { margin-left: auto; margin-right: 15%; }
.route-node--end .route-node__text { order: -1; margin-left: auto; max-width: 46%; text-align: right; }
.route-node__tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--pine); background: var(--pine-soft);
  border-radius: 999px; padding: 2px 10px;
  margin-bottom: 4px;
}
.route-node--end .route-node__tag { color: #C25336; background: var(--coral-soft); }
.route-node__stay { font-size: 13px; color: var(--ink-soft); display: inline-block; }

/* 站点：整块可点，进抽屉听讲解；图钉左右交错，公路随之蜿蜒 */
.route-stop {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  cursor: pointer;
}
.route-stop:hover .route-stop__name { color: var(--pine); }
.route-stop:active .route-pin { transform: scale(.94); }
.route-pin {
  position: relative;
  flex: none;
  width: 58px; height: 58px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--pine-soft);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(20,82,70,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.route-pin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.route-pin:hover { transform: scale(1.12); box-shadow: 0 8px 20px rgba(20,82,70,.36); }
.route-pin__no {
  position: absolute; left: -4px; top: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  border: 2px solid #fff;
}
.route-stop__info { min-width: 0; flex: 1; max-width: 44%; }
.route-stop--left .route-pin { margin-left: 13%; }
.route-stop--right .route-pin { margin-left: auto; margin-right: 13%; }
.route-stop--right .route-stop__info { order: -1; text-align: right; }
.route-stop__time {
  font-size: 11.5px; font-weight: 600;
  color: var(--pine); background: var(--pine-soft);
  display: inline-block;
  border-radius: 999px; padding: 2px 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.route-stop__name {
  font-family: var(--display);
  font-weight: 600; font-size: 18px;
  margin: 6px 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.route-stop__cta {
  font-size: 12px; color: var(--coral); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.route-stop__cta::after { content: "→"; transition: transform .2s; }
.route-pin:hover + .route-stop__info .route-stop__cta::after { transform: translateX(3px); }
.route-pin.is-broken { background: linear-gradient(135deg, #CFE5DB, #7FB4A2); }

/* ── 导游讲解抽屉 ── */
.guide-mask {
  position: fixed; inset: 0;
  background: rgba(17, 38, 32, .48);
  z-index: 60;
  opacity: 0;
  transition: opacity .3s ease;
}
.guide-mask.show { opacity: 1; }
.guide-sheet {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translate(-50%, 104%);
  width: min(560px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 44px rgba(0,0,0,.24);
  z-index: 61;
  transition: transform .34s cubic-bezier(.32,.72,.32,1);
}
.guide-sheet.show { transform: translate(-50%, 0); }
.guide-sheet__grip {
  position: sticky; top: 0; z-index: 2;
  padding: 10px 0 4px;
  background: var(--card);
  touch-action: none;
}
.guide-sheet__grip::after {
  content: "";
  display: block;
  width: 42px; height: 5px; border-radius: 5px;
  background: var(--line);
  margin: 0 auto;
}
.guide-sheet__body { padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); }

.guide-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.guide-avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: var(--pine-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.guide-name { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; }
.guide-sub { font-size: 12px; color: var(--ink-faint); }
.guide-close {
  margin-left: auto;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink-soft);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.guide-close:hover { background: var(--coral-soft); color: var(--coral); }

.guide-media { margin: 16px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--pine-soft); }
.guide-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-media.is-broken img { display: none; }
.guide-media.is-broken { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #CFE5DB, #7FB4A2); }

.guide-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.guide-title h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 0; }
.guide-title .guide-chip {
  font-size: 11.5px; font-weight: 600;
  color: var(--pine); background: var(--pine-soft);
  border-radius: 999px; padding: 2px 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.guide-speech {
  margin: 14px 0 0;
  font-size: 15px; line-height: 1.9;
  color: var(--ink);
  min-height: 60px;
  cursor: pointer;
}
.guide-speech.typing::after {
  content: "▍";
  color: var(--coral);
  animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.guide-hint { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-faint); text-align: right; }

.guide-facts {
  margin: 16px 0 0;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: none;
}
.guide-facts.show { display: block; animation: rise .3s ease both; }
.guide-facts p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.guide-facts p:last-child { margin-bottom: 0; }
.guide-facts b {
  display: inline-block;
  min-width: 3.4em; margin-right: 8px;
  color: var(--pine); font-size: 12px; font-weight: 700; letter-spacing: .14em;
}
.guide-facts .fact-hl { color: var(--coral); font-weight: 500; }

/* ── 贴士 ── */
.tips__head {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--pine); margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.tips__head::before { content: "🧭"; font-size: 15px; }
.tips__list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.tips__list li { margin-bottom: 8px; }
.tips__list li::marker { color: var(--coral); }

/* ── 操作区 ── */
.result-actions { display: flex; gap: 10px; padding: 4px 0 0; flex-wrap: wrap; }
.btn {
  flex: 1; min-width: 120px;
  padding: 13px 16px;
  border-radius: 999px;
  cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn--primary { border: 0; background: linear-gradient(135deg, var(--pine-deep), var(--pine)); color: #fff; box-shadow: 0 6px 16px rgba(20,82,70,.28); }
.btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--share { border: 1.5px solid var(--coral); background: var(--coral-soft); color: var(--coral); }
.btn--share:hover { background: var(--coral); color: #fff; transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--pine); color: var(--pine); }

/* token 用量行 */
.token-line {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.token-line b { color: var(--ink-soft); font-weight: 600; }
/* 命中同参数缓存：省下 token，用松绿强调 */
.token-line--cached { color: var(--pine); }
.token-line--cached b { color: var(--pine); }

/* ── toast ── */
.toast {
  position: fixed;
  left: 50%; bottom: calc(30px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: rgba(34, 51, 45, .92);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 50;
  max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.travel-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}

/* ── 移动端 ── */
@media (max-width: 640px) {
  .travel-hero { padding-bottom: 76px; }
  .travel-shell { margin-top: -48px; }
  .result-actions .btn { flex: 1 1 100%; }

  /* 分享提示条：按钮换行占满，便于点按 */
  .share-banner { flex-wrap: wrap; }
  .share-banner__btn { width: 100%; padding: 10px 14px; }

  /* 返回按钮加大触达面积（≥44px） */

  /* 窄屏：站点小幅度交错，公路在 4px↔26px 间轻轻摆动 */
  .route-node { gap: 12px; }
  .route-node--start .route-marker { margin-left: 0; }
  .route-node--start .route-node__text { max-width: none; }
  .route-node--end .route-marker { margin-right: 0; }
  .route-node--end .route-node__text { max-width: none; }
  .route-stop { gap: 12px; padding: 14px 0; }
  .route-stop--left .route-pin { margin-left: 4px; }
  .route-stop--right .route-pin { margin-left: 26px; margin-right: 0; }
  .route-stop--right .route-stop__info { order: 0; text-align: left; }
  .route-stop__info { max-width: none; }
  .route-stop__name { white-space: normal; }

  /* iPhone 底部安全区：toast 避开 home indicator */
  .toast { bottom: calc(22px + env(safe-area-inset-bottom)); }
}
