/* 行图 Route Atlas — 视觉系统 */
:root {
  --paper: #faf6ec;
  --paper-2: #f3ecdd;
  --card: #fffdf8;
  --ink: #1d1b16;
  --ink-2: #4b463b;
  --ink-3: #7c7566;
  --line: #e7dfcf;
  --line-strong: #d6c9b0;
  --accent: #e4572e;
  --accent-ink: #b93f1d;
  --teal: #2a6f68;
  --gold: #b98a1f;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(43, 34, 20, 0.04), 0 12px 32px -18px rgba(43, 34, 20, 0.28);
  --shadow-lg: 0 2px 4px rgba(43, 34, 20, 0.05), 0 26px 60px -30px rgba(43, 34, 20, 0.4);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 500px at 82% -8%, rgba(228, 87, 46, 0.09), transparent 62%),
    radial-gradient(900px 460px at 4% 4%, rgba(42, 111, 104, 0.08), transparent 60%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.page { max-width: 1220px; margin: 0 auto; padding: 0 28px 72px; }

a { color: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 4px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent); color: #fff8ef;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 21px; line-height: 1;
  box-shadow: 0 8px 18px -8px rgba(228, 87, 46, 0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-serif); font-size: 19px; letter-spacing: 0.04em; }
.brand-text em { font-style: normal; font-size: 9.5px; letter-spacing: 0.24em; color: var(--ink-3); margin-top: 4px; }

.topnav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; color: var(--ink-2); }
.topnav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: 0.2s; }
.topnav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.nav-meta { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px; font-size: 12.5px; letter-spacing: 0.14em;
  color: var(--accent-ink); text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(228, 87, 46, 0.14); }

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.hero h1 .hl { position: relative; color: var(--accent); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 4px; height: 9px;
  background: rgba(228, 87, 46, 0.16); z-index: -1; border-radius: 4px;
}
.lead { margin: 0; max-width: 33em; color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-chip {
  font-size: 12.5px; color: var(--ink-2); background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-chip b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-art::before {
  content: ""; position: absolute; inset: 12% 2% -8% 2%;
  background: radial-gradient(closest-side, rgba(228, 87, 46, 0.16), transparent 74%);
  z-index: -1;
}

/* ---------- 表单 ---------- */
.planner-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px;
  position: relative;
}
.planner-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 26%);
}

.form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.05fr 0.8fr 0.95fr;
  gap: 18px;
}
.field { min-width: 0; }
.field > label { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 8px; }
.input-box {
  display: flex; align-items: center; gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 13px;
  height: 48px;
  transition: 0.18s;
}
.input-box:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.12); }
.input-icon { width: 19px; height: 19px; color: var(--ink-3); flex: none; }
.input-box input {
  border: 0; background: none; outline: none; width: 100%; height: 100%;
  font: inherit; font-size: 15px; color: var(--ink); min-width: 0;
}
.input-box input::placeholder { color: #a89f8d; }
.input-box input[type="date"] { font-variant-numeric: tabular-nums; }
.hint { margin: 7px 2px 0; font-size: 11.5px; color: var(--ink-3); min-height: 17px; }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 4px;
}
.step-btn {
  width: 34px; height: 36px; border: 0; border-radius: 9px; background: transparent;
  font-size: 19px; color: var(--ink-2); cursor: pointer; line-height: 1;
  transition: 0.15s;
}
.step-btn:hover { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.stepper output { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.segmented { display: flex; height: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 4px; gap: 2px; }
.segmented button {
  flex: 1; border: 0; background: transparent; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--ink-2); transition: 0.18s;
}
.segmented button:hover { color: var(--accent); }
.segmented button.is-active { background: var(--ink); color: var(--paper); box-shadow: 0 4px 10px -4px rgba(29, 27, 22, 0.5); }

.form-block { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--line); }
.block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block-index { font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; }
.block-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.block-head p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.persona-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.persona {
  position: relative;
  text-align: left; border: 1px solid var(--line); background: var(--paper);
  border-radius: 15px; padding: 13px 13px 12px; cursor: pointer; font: inherit;
  transition: 0.18s; overflow: hidden;
}
.persona:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.persona .p-emoji { font-size: 20px; line-height: 1; display: block; margin-bottom: 8px; }
.persona .p-name { font-size: 14px; font-weight: 600; display: block; }
.persona .p-desc { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.persona.is-active { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.1); }
.persona.is-active .p-name { color: var(--accent-ink); }
.persona.is-active::after {
  content: "✓"; position: absolute; top: 9px; right: 11px; font-size: 11px;
  color: var(--accent); font-weight: 700;
}

.kw-box { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 14px; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.kw-chips:empty { display: none; }
.kw-chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12.5px; cursor: pointer;
  transition: 0.15s;
}
.kw-chip:hover { border-color: var(--accent); color: var(--accent); }
.kw-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kw-chip.is-active:hover { color: #fff; }
.kw-chip.is-custom { border-style: dashed; }
.kw-input-row { display: flex; gap: 8px; }
.kw-input-row input {
  flex: 1; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 0 12px; font: inherit; font-size: 13.5px; outline: none; min-width: 0;
}
.kw-input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.1); }
.ghost-btn {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 10px; padding: 0 15px;
  font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: 0.15s;
}
.ghost-btn:hover { border-color: var(--ink); color: var(--ink); }

.form-submit { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 0; border-radius: 14px; padding: 0 26px; height: 54px;
  background: var(--accent); color: #fffaf3; font: inherit; font-size: 15.5px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.02em;
  box-shadow: 0 14px 30px -14px rgba(228, 87, 46, 0.85);
  transition: 0.18s;
}
.submit-btn svg { width: 19px; height: 19px; transition: transform 0.18s; }
.submit-btn:hover { background: var(--accent-ink); transform: translateY(-1px); }
.submit-btn:hover svg { transform: translateX(3px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn[disabled] { opacity: 0.65; cursor: progress; }
.submit-note { margin: 0; font-size: 12px; color: var(--ink-3); }

/* ---------- 结果 ---------- */
.result { margin-top: 44px; scroll-margin-top: 88px; }
.result[hidden] { display: none; }

.plan-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #20211c 0%, #2c2a22 55%, #3a3025 100%);
  color: #f8f2e6; border-radius: 26px; padding: 34px 36px;
  box-shadow: var(--shadow-lg);
}
.plan-hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 87, 46, 0.5), transparent 70%);
  pointer-events: none;
}
.plan-hero-top { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.plan-eyebrow { font-size: 12px; letter-spacing: 0.16em; color: #e9b09a; margin: 0 0 12px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.plan-eyebrow .sep { width: 3px; height: 3px; border-radius: 50%; background: #8d7f6d; }
.plan-hero h2 {
  margin: 0 0 10px; font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: 0.01em;
}
.plan-sub { margin: 0; color: #c9c0af; font-size: 14px; max-width: 52em; line-height: 1.7; }
.plan-tagline { margin: 12px 0 0; font-size: 13px; color: #e6d9c4; }

.plan-stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.plan-stat { min-width: 92px; }
.plan-stat b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.plan-stat span { font-size: 11.5px; color: #a99e8b; letter-spacing: 0.05em; }

.plan-total {
  margin-top: 14px; font-size: 12.5px; color: #c9c0af; position: relative; z-index: 2;
}
.plan-total b { color: #f3e8d6; font-weight: 600; }

.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.act-btn {
  border: 1px solid rgba(248, 242, 230, 0.22); background: rgba(248, 242, 230, 0.06);
  color: #f2e9d9; border-radius: 10px; padding: 8px 13px; font: inherit; font-size: 12.5px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.16s;
}
.act-btn:hover { background: rgba(248, 242, 230, 0.16); border-color: rgba(248, 242, 230, 0.4); }
.act-btn.primary { background: var(--accent); border-color: var(--accent); color: #fffaf3; font-weight: 600; }
.act-btn.primary:hover { background: #ef6440; }

.plan-tabs {
  position: sticky; top: 71px; z-index: 30;
  display: flex; gap: 4px; padding: 9px; margin: 18px 0 22px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px;
  overflow-x: auto; scrollbar-width: none;
}
.plan-tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: 0.16s;
  display: flex; align-items: center; gap: 7px;
}
.tab:hover { background: rgba(255, 253, 248, 0.85); color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--paper); box-shadow: 0 6px 14px -8px rgba(29, 27, 22, 0.7); }
.tab small { font-size: 10.5px; opacity: 0.65; font-variant-numeric: tabular-nums; }

/* 总览 */
.overview-map { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.overview-map .map-holder { border-radius: 14px; overflow: hidden; }
.map-holder { background: #eef0e9; }
.map-canvas { position: relative; width: 100%; background: #eef0e9; overflow: hidden; }
.map-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-tiles { position: absolute; inset: 0; }
.map-tiles img {
  position: absolute; max-width: none; margin: 0; padding: 0; border: 0;
  user-select: none; -webkit-user-drag: none;
  filter: saturate(0.84) contrast(1.03) brightness(1.02);
}
.map-canvas.no-tiles {
  background:
    radial-gradient(circle at 1px 1px, #ded5c2 1px, transparent 0) 0 0 / 26px 26px,
    #f7f3ea;
}
.map-canvas.no-tiles .map-tiles { display: none; }
.map-canvas.no-tiles .map-attribution { display: none; }
.map-canvas.no-tiles::after {
  content: "底图未加载 · 示意模式";
  position: absolute; right: 14px; top: 108px;
  font-size: 10.5px; color: #7d7462; background: rgba(251, 248, 241, 0.92);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px;
}
.map-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 4px; flex-wrap: wrap; }
.map-caption p { margin: 0; font-size: 12px; color: var(--ink-3); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.legend-swatch { width: 9px; height: 9px; border-radius: 50%; }

.day-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.day-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px;
  box-shadow: var(--shadow); cursor: pointer; transition: 0.18s; text-align: left; font: inherit; color: inherit;
  position: relative; overflow: hidden;
}
.day-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.day-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--day-color, var(--accent)); }
.day-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.day-num { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); }
.day-card h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 600; font-family: var(--font-serif); }
.day-card .day-meta { display: flex; gap: 10px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; margin-bottom: 12px; }
.day-weather { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.day-stops { display: flex; flex-wrap: wrap; gap: 6px; }
.stop-pill { font-size: 11.5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--ink-2); }
.stop-pill b { color: var(--ink); font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.day-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.day-card-foot .more { color: var(--accent); font-weight: 600; }

/* 单日 */
.day-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.day-head h2 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.day-head .day-kicker { font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-3); margin: 0 0 6px; }
.day-facts { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.day-facts b { font-variant-numeric: tabular-nums; }
.day-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 20px; align-items: start; }
.timeline { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 8px; box-shadow: var(--shadow); }
.tl-item { display: grid; grid-template-columns: 54px 22px 1fr; gap: 8px; position: relative; }
.tl-time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 14px; text-align: right; }
.tl-time small { display: block; font-size: 10px; opacity: 0.7; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item:first-child .tl-rail::before { top: 20px; }
.tl-item:last-child .tl-rail::before { bottom: calc(100% - 26px); }
.tl-dot {
  position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%; margin-top: 19px;
  background: var(--card); border: 2px solid var(--line-strong);
}
.tl-item.kind-stop .tl-dot { width: 13px; height: 13px; margin-top: 17px; background: var(--day-color, var(--accent)); border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--day-color, var(--accent)) 22%, transparent); }
.tl-item.kind-meal .tl-dot { background: var(--gold); border-color: #fff; box-shadow: 0 0 0 3px rgba(185, 138, 31, 0.16); }
.tl-body { padding: 12px 0 16px; min-width: 0; }
.tl-item.kind-travel .tl-body { padding: 10px 0 12px; }
.tl-travel { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); background: var(--paper); border-radius: 999px; padding: 2px 10px; }
.tl-stop-card { border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fffdf8); border-radius: 13px; padding: 13px 14px; transition: 0.18s; }
.tl-stop-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tl-stop-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-stop-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.tl-stop-head .area { font-size: 11px; color: var(--ink-3); }
.tl-stop-head .price { margin-left: auto; font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-stop-card p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.tl-tip { margin-top: 8px; font-size: 11.5px; color: var(--teal); display: flex; gap: 5px; align-items: flex-start; line-height: 1.6; }
.tl-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.tl-tag { font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.tl-meal { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.tl-meal b { color: var(--ink); font-weight: 600; }
.tl-meal em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.tl-meal .money { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-note { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 11px 13px; font-size: 12px; color: var(--ink-2); line-height: 1.65; }
.tl-note b { color: var(--ink); }
.timeline-foot { border-top: 1px dashed var(--line); padding: 14px 0 14px; margin-left: 62px; font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }

.day-aside {
  position: sticky; top: 132px; display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - 148px); overflow-y: auto; scrollbar-width: none;
}
.day-aside::-webkit-scrollbar { display: none; }
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.map-card .map-holder { border-radius: 13px; overflow: hidden; }
.map-tip { font-size: 11.5px; color: var(--ink-3); padding: 10px 6px 4px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.day-note { background: linear-gradient(160deg, #f3efe3, #fffdf8); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; }
.day-note h4 { margin: 0 0 7px; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 600; }
.day-note p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* 清单 / 预算 */
.panel-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.panel .panel-sub { margin: 0 0 16px; font-size: 12px; color: var(--ink-3); }
.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.budget-row:last-of-type { border-bottom: 0; }
.budget-row .lbl { font-size: 13.5px; }
.budget-row .lbl em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.budget-row .amt { font-size: 14.5px; font-variant-numeric: tabular-nums; font-weight: 600; }
.budget-total { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0 4px; border-top: 1px solid var(--line-strong); margin-top: 6px; }
.budget-total span { font-size: 13px; color: var(--ink-2); }
.budget-total b { font-family: var(--font-serif); font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
.budget-total b small { font-size: 12px; font-family: var(--font-sans); color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.budget-group {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; padding-top: 6px; font-size: 12px; color: var(--ink-3);
}
.budget-group b { font-size: 15px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.travelers-ctl { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.travelers-ctl output { min-width: 42px; text-align: center; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tv-btn {
  width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  color: var(--ink-2); font-size: 15px; line-height: 1; cursor: pointer; transition: 0.15s;
}
.tv-btn:hover { border-color: var(--accent); color: var(--accent); }
.budget-note { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.7; }
.verdict { margin-top: 14px; border-radius: 12px; padding: 12px 13px; font-size: 12.5px; line-height: 1.65; }
.verdict.ok { background: rgba(42, 111, 104, 0.09); color: #1f5b55; border: 1px solid rgba(42, 111, 104, 0.2); }
.verdict.over { background: rgba(228, 87, 46, 0.09); color: #a43c1c; border: 1px solid rgba(228, 87, 46, 0.22); }

.pack-group + .pack-group { margin-top: 16px; }
.pack-group h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.pack-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pack-list li { font-size: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); }

.tip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tip-list li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.tip-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tip-tag { font-size: 10.5px; color: var(--accent-ink); background: rgba(228, 87, 46, 0.1); border-radius: 5px; padding: 2px 0; text-align: center; letter-spacing: 0.05em; }

.alt-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.alt-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--paper); }
.alt-card b { display: block; font-size: 13px; font-weight: 600; }
.alt-card span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.alt-card p { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }

.stay-card { display: flex; gap: 12px; align-items: flex-start; }
.stay-card .stay-icon { font-size: 22px; line-height: 1.2; }
.stay-card b { font-size: 14px; }
.stay-card p { margin: 3px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.65; }

/* 空状态 / 预设 */
.empty-state { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.section-head p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.preset {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  transition: 0.18s; box-shadow: var(--shadow);
}
.preset:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.preset .pre-top { display: flex; justify-content: space-between; align-items: center; }
.preset .pre-emoji { font-size: 22px; }
.preset .pre-days { font-size: 11px; color: var(--ink-3); }
.preset h3 { margin: 10px 0 2px; font-size: 15.5px; font-weight: 600; }
.preset p { margin: 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.preset .pre-kw { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.preset .pre-kw span { font-size: 10.5px; color: var(--accent-ink); background: rgba(228, 87, 46, 0.08); border-radius: 4px; padding: 1px 6px; }

/* 原理 / 城市 */
.how { margin-top: 56px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-card { background: rgba(255, 253, 248, 0.6); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.how-num { font-family: var(--font-serif); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.how-card h3 { margin: 10px 0 8px; font-size: 16px; font-weight: 600; }
.how-card p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

.cities { margin-top: 56px; }
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.city-card {
  border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px;
  cursor: pointer; font: inherit; text-align: left; transition: 0.16s; box-shadow: var(--shadow);
}
.city-card:hover { border-color: var(--accent); color: var(--accent-ink); }
.city-card b { font-size: 14.5px; display: block; }
.city-card span { font-size: 11px; color: var(--ink-3); display: block; margin-top: 3px; }
.city-card:hover span { color: var(--accent-ink); opacity: 0.8; }

.site-foot {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  color: var(--ink-3); font-size: 11.5px;
}
.site-foot b { color: var(--ink-2); font-size: 13px; letter-spacing: 0.04em; }
.site-foot p { margin: 6px 0 0; max-width: 52em; line-height: 1.7; }
.foot-meta { font-variant-numeric: tabular-nums; }

/* 加载 / toast */
.loading { padding: 46px 0; text-align: center; }
.loading-steps { display: inline-flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 18px; }
.loading-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); opacity: 0.35; transition: 0.3s; }
.loading-step.is-on { opacity: 1; color: var(--ink); }
.loading-step .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.loading-step.is-on .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(228, 87, 46, 0.14); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); margin: 0 auto; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 11px 18px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: 0.24s; z-index: 90;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 打印 */
.print-root { display: none; }
@media print {
  body { background: #fff; }
  .topbar, .hero, .planner-card, .empty-state, .how, .cities, .site-foot, .result, .toast { display: none !important; }
  .print-root { display: block; }
  @page { margin: 14mm; }
  .print-root .print-title { font-family: var(--font-serif); font-size: 26px; margin: 0 0 4px; }
  .print-root .print-sub { font-size: 12px; color: #666; margin: 0 0 18px; }
  .print-day {
    page-break-inside: avoid; margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 1px solid #e7dfcf;
    display: grid; grid-template-columns: 1fr 300px; grid-template-rows: auto auto auto; gap: 2px 16px;
  }
  .print-day h3 { grid-column: 1 / -1; font-family: var(--font-serif); font-size: 18px; margin: 0 0 2px; }
  .print-day .print-day-meta { grid-column: 1 / -1; font-size: 11px; color: #777; margin-bottom: 8px; }
  .print-day ol { grid-column: 1; grid-row: 3; margin: 0; padding-left: 18px; font-size: 11.5px; line-height: 1.8; }
  .print-day .print-km { font-size: 11px; color: #777; margin-top: 6px; }
  .print-map { grid-column: 2; grid-row: 3; }
  .print-map .map-canvas { width: 100%; border: 1px solid #e7dfcf; border-radius: 10px; }
}

/* 响应式 */
@media (max-width: 1080px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
  .day-grid { grid-template-columns: 1fr; }
  .day-aside { position: static; }
  .panel-grid { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(4, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .page { padding: 0 18px 56px; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; gap: 22px; }
  .hero-art { max-width: 440px; }
  .planner-card { padding: 22px 18px; border-radius: 20px; }
  .topnav a { display: none; }
  .nav-dot, .nav-meta { display: none; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .field-dest { grid-column: 1 / -1; }
  .plan-tabs { top: 62px; }
  .plan-hero { padding: 26px 22px; }
  .day-cards { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .alt-list { grid-template-columns: 1fr; }
  .plan-stats { gap: 18px; }
  .plan-stat b { font-size: 20px; }
  .timeline { padding: 16px 14px 4px; }
  .tl-item { grid-template-columns: 44px 18px 1fr; }
  .timeline-foot { margin-left: 50px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; line-height: 1.2; }
  .form-grid { grid-template-columns: 1fr; }
  .field-dest { grid-column: auto; }
  .page { padding: 0 14px 48px; }
  .planner-card { padding: 18px 14px; }
  .plan-hero { padding: 22px 16px; border-radius: 18px; }
  .plan-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .plan-stat b { font-size: 18px; }
  .plan-stat span { font-size: 10.5px; }
  .plan-actions { width: 100%; }
  .act-btn { flex: 1 1 auto; justify-content: center; }
  .timeline { padding: 14px 10px 2px; }
  .tl-item { grid-template-columns: 38px 16px 1fr; gap: 6px; }
  .tl-stop-card { padding: 11px 11px; }
  .timeline-foot { margin-left: 44px; }
  .panel { padding: 18px 15px; }
  .section-head h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* 手动复制兜底 */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(24, 21, 16, 0.5);
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px);
}
.modal {
  width: min(620px, 100%); background: var(--card); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.modal h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 19px; }
.modal p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); }
.modal textarea {
  width: 100%; height: 260px; resize: vertical; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper); color: var(--ink-2); outline: none;
}
.modal textarea:focus { border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.modal-actions .act-btn { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* 交互地图（Leaflet） */
.map-live { background: #eef0e9; }
.leaflet-host { position: absolute; inset: 0; }
.map-live .leaflet-container { background: #eef0e9; font-family: var(--font-sans); }
.map-live .leaflet-tile-pane { filter: saturate(0.88) contrast(1.02) brightness(1.01); }
.map-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 700;
  padding: 14px 18px 30px; pointer-events: none;
  background: linear-gradient(180deg, rgba(251,248,241,0.98) 0%, rgba(251,248,241,0.92) 55%, rgba(251,248,241,0) 100%);
}
.map-head b { display: block; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.map-head span { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.map-live .leaflet-top.leaflet-right { top: 84px; }
.map-live .leaflet-control-zoom { border: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.map-live .leaflet-control-zoom a {
  width: 32px; height: 32px; line-height: 32px; background: #fffdf8; color: var(--ink-2);
  border-color: var(--line); font-size: 16px;
}
.map-live .leaflet-control-zoom a:hover { background: #fff; color: var(--accent); }
.map-live .leaflet-control-attribution {
  background: rgba(251, 248, 241, 0.86); color: var(--ink-3); font-size: 10px; padding: 1px 6px;
}
.map-live .leaflet-control-attribution a { color: var(--ink-3); }
.map-live .leaflet-control-scale { margin-bottom: 8px; }
.map-live .leaflet-control-scale-line {
  background: rgba(251, 248, 241, 0.82); border-color: var(--ink-3); color: var(--ink-3);
  font-size: 10px; line-height: 1.3;
}
.map-reset {
  border: 1px solid var(--line); background: #fffdf8; color: var(--ink-2);
  font: inherit; font-size: 11px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  box-shadow: var(--shadow); margin-top: 8px;
}
.map-reset:hover { color: var(--accent); border-color: var(--accent); }

.poi-pin { background: none; border: 0; }
.poi-pin .pm {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; background: #fffdf8;
  border: 3px solid var(--c); display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(30, 25, 15, 0.25);
}
.poi-pin .pm b { font-size: 12.5px; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.poi-pin .pn {
  position: absolute; left: 0; top: 16px; transform: translateX(-50%); white-space: nowrap;
  max-width: 9.5em; overflow: hidden; text-overflow: ellipsis;
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 8px #fff;
}
.leg-pill {
  background: rgba(251, 248, 241, 0.94); border: 1px solid var(--line); border-radius: 10px;
  width: 62px; height: 20px; line-height: 18px; text-align: center;
  font-size: 10.5px; color: var(--ink-3); white-space: nowrap;
}
.map-tooltip {
  background: var(--ink); color: var(--paper); border: 0; border-radius: 8px;
  font-size: 11.5px; padding: 4px 8px; box-shadow: var(--shadow);
}
.map-tooltip::before { border-top-color: var(--ink); }
@media (max-width: 640px) {
  .map-live .poi-pin .pn { display: none; }
}
@media (max-width: 480px) {
  .map-head { padding: 12px 14px 26px; }
  .map-head b { font-size: 16px; }
  .map-live .leaflet-top.leaflet-right { top: 76px; }
}

/* 地图点击定位高亮 */
.tl-item.is-flash .tl-stop-card { animation: flash 1.6s ease; }
@keyframes flash {
  0%, 100% { box-shadow: none; }
  18% { box-shadow: 0 0 0 4px rgba(228, 87, 46, 0.18); border-color: var(--accent); }
}

/* 推荐线路 */
.transit-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 15px 16px 13px; box-shadow: var(--shadow);
}
.transit-head { display: flex; align-items: flex-start; gap: 9px; }
.transit-head .t-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: rgba(42, 111, 104, 0.1); display: grid; place-items: center; font-size: 15px;
}
.transit-head h4 { margin: 0; font-size: 14px; font-weight: 600; }
.transit-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.t-legs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t-leg { border-top: 1px dashed var(--line); padding-top: 9px; }
.t-leg:first-child { border-top: 0; padding-top: 0; }
.t-leg-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.t-leg-head b {
  width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-size: 9.5px; display: grid; place-items: center; flex: none; font-weight: 600;
}
.t-leg-head .t-min { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-route { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; line-height: 1.8; }
.t-walk { color: var(--ink-3); }
.line-chip {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 5px;
  padding: 1.5px 6px; background: var(--c); color: #fff; font-weight: 600; font-size: 10.5px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.t-transfer { background: rgba(228, 87, 46, 0.1); color: var(--accent-ink); border-radius: 4px; padding: 1px 5px; font-size: 10.5px; }
.t-stops { color: var(--ink-3); font-size: 10.5px; }
.t-taxi { color: var(--ink-2); }
.transit-note { margin: 10px 0 0; font-size: 10.5px; color: var(--ink-3); line-height: 1.6; }
.t-near { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; font-size: 10.5px; color: var(--ink-3); }
.t-near .t-sep { opacity: 0.5; }
.line-chip.sm { padding: 0.5px 5px; font-size: 10px; border-radius: 4px; }

/* 数据来源徽标 */
.src-badge {
  display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 5px;
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; vertical-align: 2px;
  color: var(--ink-3); background: var(--paper); border: 1px solid var(--line);
}
.src-badge.live { color: #1f5b55; background: rgba(42, 111, 104, 0.12); border-color: rgba(42, 111, 104, 0.25); }
.src-badge.mock { color: var(--accent-ink); background: rgba(228, 87, 46, 0.1); border-color: rgba(228, 87, 46, 0.22); }

/* 目的地选择器 */
.city-trigger { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.city-trigger:hover { border-color: var(--line-strong); }
.city-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.12); }
.city-value {
  flex: 1; min-width: 0; font-size: 15px; color: #a89f8d;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.city-value.has-value { color: var(--ink); }
.city-chevron { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

.cp-backdrop {
  position: fixed; inset: 0; z-index: 140; background: rgba(24, 21, 16, 0.46);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity 0.2s;
}
.cp-backdrop.is-open { opacity: 1; }
.cp-backdrop[hidden] { display: none; }
.cp-modal {
  width: min(1060px, 96vw); max-height: 88vh; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(8px) scale(0.99); transition: transform 0.2s;
}
.cp-backdrop.is-open .cp-modal { transform: none; }
.cp-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--line);
}
.cp-head h3 { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.cp-head p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.cp-close {
  width: 32px; height: 32px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 50%; font-size: 18px; color: var(--ink-2); cursor: pointer; line-height: 1;
}
.cp-close:hover { border-color: var(--accent); color: var(--accent); }
.cp-body { display: grid; grid-template-columns: 1.35fr 0.65fr; min-height: 0; flex: 1; }
.cp-map { background: #f7f3ea; border-right: 1px solid var(--line); display: grid; place-items: center; padding: 8px; min-height: 0; }
.cp-map svg { width: 100%; height: 100%; max-height: 62vh; }
.cp-province { fill: #efe7d6; stroke: #ded2ba; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.cp-pin { cursor: pointer; outline: none; }
.cp-pin .cp-dot { stroke: #fff; stroke-width: 1.8; transition: 0.15s; }
.cp-pin .cp-ring { opacity: 0; transition: 0.15s; }
.cp-pin:hover .cp-ring, .cp-pin:focus .cp-ring, .cp-pin.is-current .cp-ring { opacity: 0.22; }
.cp-pin.is-current .cp-dot { stroke: var(--ink); stroke-width: 2.2; }
.cp-pin.is-dim { opacity: 0.15; pointer-events: none; }
.cp-label {
  font-size: 12px; fill: var(--ink-2); font-weight: 600;
  paint-order: stroke; stroke: #f7f3ea; stroke-width: 3px; stroke-linejoin: round;
}
.cp-pin:hover .cp-label { fill: var(--ink); }
.cp-side { padding: 16px 18px; overflow: auto; min-height: 0; }
.cp-search {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 11px; padding: 0 11px; height: 42px;
}
.cp-search svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.cp-search input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 13px; min-width: 0; }
.cp-custom { padding: 10px 0 2px; }
.cp-custom-btn {
  width: 100%; border: 1px dashed var(--accent); background: rgba(228, 87, 46, 0.06);
  color: var(--accent-ink); border-radius: 9px; padding: 9px; font: inherit; font-size: 12.5px; cursor: pointer;
}
.cp-group { margin-top: 14px; }
.cp-group h4 {
  display: flex; align-items: center; gap: 6px; margin: 0 0 8px;
  font-size: 11.5px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.05em;
}
.cp-group h4 small { margin-left: auto; font-weight: 400; color: var(--ink-3); opacity: 0.7; }
.cp-region-dot { width: 7px; height: 7px; border-radius: 50%; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; padding: 5px 9px; font: inherit;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.cp-chip small { font-size: 10px; color: var(--ink-3); }
.cp-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.cp-chip.is-current { border-color: var(--accent); color: var(--accent-ink); background: rgba(228, 87, 46, 0.07); }
.cp-hit { cursor: pointer; }
.cp-chip[hidden], .cp-group[hidden], .cp-custom[hidden] { display: none; }
.cp-foot { border-top: 1px solid var(--line); padding: 10px 22px; font-size: 11px; color: var(--ink-3); }
body.cp-open { overflow: hidden; }

@media (max-width: 760px) {
  .cp-backdrop { padding: 0; }
  .cp-modal { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .cp-body { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
  .cp-map { border-right: 0; border-bottom: 1px solid var(--line); padding: 4px; }
  .cp-map svg { max-height: 40vh; }
  .cp-label { display: none; }
  .cp-head { padding: 14px 16px 10px; }
  .cp-head h3 { font-size: 19px; }
  .cp-side { padding: 12px 14px; }
}
