/* ============================================================
   isa的上海推荐 — 样式
   设计基调：极简留白 + 高饱和点缀色
   ============================================================ */

:root {
  --ink: #14161a;
  --ink-2: #3d434d;
  --muted: #7b828e;
  --line: #e9eaee;
  --line-2: #f3f4f6;
  --bg: #ffffff;
  --bg-soft: #fafafb;

  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --teal: #14b8a6;
  --cyan: #0ea5e9;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #ec4899;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
  --shadow-hi: 0 2px 4px rgba(20, 22, 26, .06), 0 16px 40px rgba(20, 22, 26, .12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; line-height: 1.6; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: conic-gradient(from 210deg, var(--red), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--purple), var(--pink), var(--red));
}
.brand-accent { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { padding: 8px 12px; border-radius: 999px; transition: background .18s, color .18s; }
.nav-links a:hover { background: var(--line-2); color: var(--ink); }
.nav-plan { font-weight: 600; }
.badge {
  display: inline-block; min-width: 20px; padding: 0 6px; height: 20px; line-height: 20px;
  text-align: center; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; margin-left: 4px;
}
.badge:empty, .badge[data-zero="1"] { background: var(--line); color: var(--muted); }
.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 24px 76px; }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .18; }
.b1 { width: 320px; height: 320px; background: var(--red);    top: -80px;  left: -60px; }
.b2 { width: 280px; height: 280px; background: var(--cyan);   top: 40px;   right: -60px; }
.b3 { width: 240px; height: 240px; background: var(--yellow); bottom: -90px; left: 22%; }
.b4 { width: 260px; height: 260px; background: var(--purple); bottom: -80px; right: 18%; }
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero-title { font-size: clamp(38px, 7.2vw, 66px); font-weight: 800; margin: 22px 0 18px; letter-spacing: -.03em; }
.hero-title .hl {
  background: linear-gradient(96deg, var(--red), var(--orange) 30%, var(--yellow) 52%, var(--green) 70%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 640px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .14s, box-shadow .18s, background .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-hi); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger-ghost { background: #fff; color: var(--red); border-color: #fde2e2; }
.btn-danger-ghost:hover { border-color: var(--red); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- 区块 ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.section-desc { color: var(--ink-2); font-size: 15.5px; }
.pill {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.pill-blue   { background: #e8f1ff; color: #1d4ed8; }
.pill-red    { background: #fee7e7; color: #c02626; }
.pill-green  { background: #e3f8ea; color: #15803d; }
.pill-purple { background: #efe8ff; color: #6d28d9; }

/* ---------- 新手攻略 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.guide-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.guide-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--blue)); }
.guide-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.guide-card ul { display: flex; flex-direction: column; gap: 8px; }
.guide-card li { font-size: 14.5px; color: var(--ink-2); padding-left: 14px; position: relative; line-height: 1.6; }
.guide-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent, var(--blue)); opacity: .6; }
.guide-card b { color: var(--ink); }
.c-red    { --accent: var(--red); }
.c-orange { --accent: var(--orange); }
.c-purple { --accent: var(--purple); }
.c-green  { --accent: var(--green); }
.c-cyan   { --accent: var(--cyan); }
.c-pink   { --accent: var(--pink); }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.input {
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .16s, box-shadow .16s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 22, 26, .06); }
#eatSearch, #playSearch { min-width: 300px; flex: 1 1 300px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13.5px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .16s;
}
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 地点卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.pcard {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s; position: relative;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.pcard.picked { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow); }
.pcard-top { height: 5px; background: var(--accent); }
.pcard-body { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard-head > div:first-child { min-width: 0; }
.pcard-name { font-size: 18.5px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; }
.pcard-cat { font-size: 13px; color: var(--muted); margin-top: 3px; }
.price-tag {
  flex-shrink: 0; text-align: right; font-weight: 800; font-size: 19px;
  color: var(--accent); letter-spacing: -.02em; white-space: nowrap;
}
.price-tag small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.fact-list { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.fact { display: flex; gap: 8px; align-items: baseline; }
.fact-k { flex-shrink: 0; width: 60px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fact-v { color: var(--ink-2); }
.metro-line { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.anywhere-note {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent); border: 1px dashed color-mix(in srgb, var(--accent) 40%, #fff);
}
.metro-chip {
  display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, #fff);
}
.closed-chip {
  display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px;
  background: #fff4f4; color: #c02626; border: 1px solid #ffe0e0; font-weight: 600;
}
.closed-chip.ok { background: #f0fdf4; color: #15803d; border-color: #dcfce7; }
.pcard-intro { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.pcard-tip {
  font-size: 13px; color: var(--ink-2); background: var(--bg-soft);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 9px 12px;
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--line-2); color: var(--muted); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.link-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mlink {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); background: #fff; transition: all .16s; white-space: nowrap;
}
.mlink:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.pick-btn {
  font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; white-space: nowrap;
  transition: all .16s;
}
.pick-btn:hover { filter: brightness(1.06); }
.pick-btn.picked { background: #fff; color: var(--accent); }
.pick-btn.picked::before { content: "✓ "; }

/* ---------- 行程区 ---------- */
.plan-layout {
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  grid-template-areas: "list summary" "timeline summary";
  align-items: start;
}
.plan-list-panel { grid-area: list; }
.plan-summary-panel { grid-area: summary; position: sticky; top: 82px; }
.timeline-panel { grid-area: timeline; }

.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow);
}
.plan-list-panel, .plan-summary-panel, .timeline-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow); padding: 20px 22px;
}
.panel-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.panel-title .muted { font-weight: 500; font-size: 13px; }

.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.empty-emoji { font-size: 36px; margin-bottom: 8px; }
.empty p { font-size: 14px; line-height: 1.7; }

.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: #fff;
}
.plan-item .pi-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--accent); flex-shrink: 0; }
.plan-item .pi-main { flex: 1; min-width: 0; }
.plan-item .pi-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-item .pi-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.plan-item .pi-price { font-weight: 800; color: var(--accent); font-size: 15px; white-space: nowrap; }
.pi-ctrl { display: flex; gap: 4px; flex-shrink: 0; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; color: var(--ink-2); line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn.del:hover { border-color: var(--red); color: var(--red); }

.custom-add { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.custom-add summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.custom-add summary:hover { color: var(--ink); }
.custom-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.custom-form label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; gap: 5px; }
.custom-form .input { border-radius: 12px; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.settings { display: flex; flex-direction: column; gap: 10px; }
.settings label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; gap: 5px; }
.settings .input { border-radius: 12px; width: 100%; }

.totals { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.totals hr { border: none; border-top: 1px solid var(--line-2); margin: 4px 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-2); }
.total-row b { color: var(--ink); font-weight: 700; }
.total-hl b { color: var(--cyan); font-size: 16px; }
.total-big b { color: var(--red); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

.plan-actions { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 12px; }
.plan-actions .btn { width: 100%; }

/* ---------- 时间轴 ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 62px 22px 1fr; gap: 12px; }
.tl-time { font-size: 13px; font-weight: 700; color: var(--ink-2); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tl-dot { position: relative; display: flex; justify-content: center; }
.tl-dot::before {
  content: ""; position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, #fff);
}
.tl-dot::after { content: ""; position: absolute; top: 16px; bottom: -6px; width: 2px; background: var(--line); }
.tl-item:last-child .tl-dot::after { display: none; }
.tl-body { padding-bottom: 20px; }
.tl-name { font-weight: 700; font-size: 15px; }
.tl-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tl-transit {
  grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); padding: 0 0 16px 34px;
  display: flex; align-items: center; gap: 6px;
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg-soft); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 34px 24px; text-align: center; }
.footer-brand { font-weight: 800; font-size: 16px; margin-bottom: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .plan-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "list" "summary" "timeline";
  }
  .plan-summary-panel { position: static; }
}

/* --- 手机（≤720px）：汉堡菜单 + 紧凑布局 --- */
@media (max-width: 720px) {
  html { scroll-padding-top: 64px; }

  /* 导航：品牌 + 汉堡按钮，菜单下拉展开 */
  .nav-inner { height: 56px; padding: 0 14px; gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-dot { width: 20px; height: 20px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 42px; height: 42px; padding: 0 10px; flex-shrink: 0;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nt-bar { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .18s, opacity .18s; }
  .nav.open .nt-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nt-bar:nth-child(2) { opacity: 0; }
  .nav.open .nt-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hi); padding: 8px 14px 14px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 15.5px; border-radius: 12px; }
  .lang-btn { margin: 10px 4px 2px; align-self: flex-start; padding: 10px 22px; font-size: 14px; }

  /* 输入字号 ≥16px，避免 iOS Safari 聚焦时自动放大页面 */
  .input, select.input, .fb-input { font-size: 16px; }

  /* 首屏 */
  .hero { padding: 52px 18px 44px; }
  .hero-sub { font-size: 15.5px; }
  .hero-stats { gap: 22px; margin-top: 34px; }
  .hero-stats strong { font-size: 26px; }

  .section { padding: 48px 16px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 24px; }
  .card-grid, .guide-grid { grid-template-columns: 1fr; }
  #eatSearch, #playSearch { min-width: 100%; }

  /* 地点卡片：加入行程按钮整行，触控目标加大 */
  .pcard-body { padding: 16px 16px 14px; gap: 10px; }
  .pcard-name { font-size: 17px; }
  .price-tag { font-size: 17px; }
  .pcard-foot { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .pick-btn { width: 100%; padding: 12px 16px; font-size: 15px; }
  .mlink { padding: 8px 12px; }

  /* 行程与时间轴 */
  .plan-list-panel, .plan-summary-panel, .timeline-panel { padding: 16px 14px; }
  .plan-item { padding: 10px; gap: 10px; }
  .pi-ctrl { gap: 3px; }
  .icon-btn { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  .tl-item { grid-template-columns: 52px 18px 1fr; gap: 10px; }
  .tl-transit { padding: 0 0 14px 26px; }

  /* 反馈组件：适配刘海屏安全区 */
  .fb-bar {
    top: 62px; white-space: normal; text-align: center;
    max-width: calc(100vw - 24px); border-radius: 16px;
  }
  .fb-btn {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .fb-modal {
    padding: 18px 16px;
    max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  }
  .fb-modal-actions .btn { flex: 1; }
}

/* --- 小屏手机（≤480px）微调 --- */
@media (max-width: 480px) {
  .hero-stats { gap: 14px; }
  .hero-stats strong { font-size: 22px; }
  .hero-stats span { font-size: 12px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .row2 { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 46px 16px 1fr; gap: 8px; }
  .tl-time { font-size: 12px; }
  .fact-k { width: 52px; }
}

/* --- 触屏设备：悬停抬升改为仅按需 --- */
@media (hover: none) {
  .pcard:hover, .guide-card:hover { transform: none; }
}

/* --- 用户偏好减弱动效 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 语言切换 ---------- */
.lang-btn {
  margin-left: 10px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink);
  transition: all .16s; flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--ink); background: var(--line-2); }

/* ---------- 地铁线路官方色 & 首末班 ---------- */
.metro-line { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.branch-list { display: flex; flex-direction: column; gap: 3px; }
.branch-item { font-size: 13px; line-height: 1.55; }
.branch-item::before { content: "📍"; font-size: 11px; margin-right: 4px; opacity: .7; }
.metro-st { font-size: 13.5px; }
.line-time {
  font-size: 11.5px; color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 点选反馈 ---------- */
.fb-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-hi); font-size: 20px; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.fb-btn:hover { transform: scale(1.08); }
.fb-bar {
  display: none; position: fixed; top: 74px; left: 50%; transform: translateX(-50%);
  z-index: 120; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-hi); white-space: nowrap;
}
body.fb-on .pcard { cursor: pointer; }
body.fb-on .pcard:hover { outline: 2px dashed var(--pink); outline-offset: 3px; }
body.fb-on .pcard:hover .pick-btn { pointer-events: none; }
.fb-overlay {
  display: none; position: fixed; inset: 0; z-index: 130;
  background: rgba(20, 22, 26, .35); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.fb-modal {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-hi);
  padding: 24px 26px; width: min(520px, 100%); display: flex; flex-direction: column; gap: 12px;
}
.fb-modal-title { font-size: 18px; font-weight: 800; }
.fb-modal-ctx {
  font-size: 13.5px; color: var(--ink-2); background: var(--bg-soft);
  border-radius: var(--r-sm); padding: 10px 12px; line-height: 1.7;
}
.fb-modal-ctx summary { cursor: pointer; }
.fb-input {
  font-family: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  outline: none; resize: vertical;
}
.fb-input:focus { border-color: var(--ink); }
.fb-modal-actions { display: flex; gap: 10px; }

/* ---------- 打印 / 导出 PDF ---------- */
.print-only { display: none; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff; font-size: 11.5pt; line-height: 1.55; }
  body > *:not(.print-only) { display: none !important; }
  .print-only { display: block !important; }

  .ps-head { border-bottom: 2.5pt solid #14161a; padding-bottom: 8pt; margin-bottom: 4pt; }
  .ps-title { font-size: 19pt; font-weight: 800; letter-spacing: -.5pt; }
  .ps-sub { font-size: 9pt; color: #555; margin-top: 3pt; }
  .ps-meta { font-size: 9pt; color: #333; margin: 8pt 0 12pt; display: flex; gap: 18pt; flex-wrap: wrap; }
  .ps-meta span b { font-weight: 700; }

  .ps-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .ps-table th {
    text-align: left; background: #f3f4f6; font-size: 8.5pt; font-weight: 700;
    padding: 5pt 6pt; border-bottom: 1pt solid #ddd;
  }
  .ps-table td { padding: 6pt; border-bottom: .5pt solid #e6e6e6; vertical-align: top; }
  .ps-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ps-table .tt { font-weight: 700; }
  .ps-table .sm { font-size: 8pt; color: #666; }
  .ps-tr { font-size: 8pt; color: #888; }

  .ps-total {
    margin-top: 12pt; padding: 10pt 12pt; border: 1pt solid #14161a; border-radius: 6pt;
    display: flex; justify-content: space-between; gap: 20pt;
  }
  .ps-total div { font-size: 9.5pt; }
  .ps-total b { font-size: 13pt; display: block; }
  .ps-total .big { color: #c02626; }

  .ps-sec-title { font-size: 11pt; font-weight: 800; margin: 16pt 0 6pt; border-left: 3pt solid #ef4444; padding-left: 6pt; }
  .ps-tips { font-size: 8.5pt; color: #333; }
  .ps-tips li { margin-bottom: 3pt; padding-left: 10pt; position: relative; }
  .ps-tips li::before { content: "•"; position: absolute; left: 0; }
  .ps-foot { margin-top: 14pt; padding-top: 6pt; border-top: .5pt solid #ddd; font-size: 7.5pt; color: #888; }
  .ps-note { font-size: 8pt; color: #555; margin-top: 4pt; }
  .page-break { page-break-inside: avoid; }
}
