:root {
  --page: #edf2ee;
  --surface: #fefefd;
  --surface-soft: #f3f7f4;
  --ink: #172b25;
  --ink-2: #3f554e;
  --muted: #687b74;
  --line: rgba(23, 43, 37, .09);
  --blue: #087fe8;
  --blue-dark: #0569c4;
  --blue-soft: #e8f3fe;
  --mint: #16ad83;
  --mint-soft: #e4f6ef;
  --green: #68c52f;
  --green-dark: #4b9c1d;
  --green-soft: #eff9e7;
  --yellow: #f0c63e;
  --yellow-soft: #fff8dd;
  --red: #df5959;
  --red-soft: #fff0ef;
  --shadow-card: 0 1px 2px rgba(27, 54, 43, .05), 0 10px 24px -8px rgba(27, 54, 43, .13), 0 28px 56px -28px rgba(27, 54, 43, .18);
  --shadow-float: 0 2px 5px rgba(27, 54, 43, .05), 0 12px 30px -10px rgba(27, 54, 43, .16), 0 36px 72px -32px rgba(27, 54, 43, .2);
  --r-shell: 20px;
  --r-card: 14px;
  --r-control: 10px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "MiSans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button, a, input, textarea, select { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .55; }
input, textarea { color: var(--ink); }
svg { display: block; }
.icon { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.app-shell, .map-stage, .baidu-map { position: absolute; inset: 0; }
.app-shell { overflow: hidden; background: #e6ede7; }
.map-stage { z-index: 0; }
.baidu-map { z-index: 1; opacity: 0; transition: opacity .35s ease; }
.baidu-map.ready { opacity: 1; }
.surface {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-card);
}

/* 顶部品牌与检索 */
.topbar {
  position: absolute;
  z-index: 30;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 13px 8px 10px;
  border-radius: var(--r-card);
}
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--blue);
}
.brand-mark span { position: absolute; display: block; background: #fff; border-radius: 4px; transform: rotate(-36deg); }
.brand-mark span:nth-child(1) { width: 6px; height: 29px; left: 11px; top: 9px; }
.brand-mark span:nth-child(2) { width: 6px; height: 20px; left: 21px; top: 5px; }
.brand-mark span:nth-child(3) { width: 6px; height: 25px; left: 25px; top: 17px; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-size: 20px; line-height: 1.15; font-weight: 750; letter-spacing: .03em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.demo-badge {
  align-self: flex-start;
  margin-left: 3px;
  padding: 2px 5px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.search-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 42vw);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border-radius: var(--r-card);
}
.search-box > .icon { color: var(--ink-2); }
.search-box input { flex: 1; width: auto; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 15px; }
.search-box input::placeholder { color: #7a8c85; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-hint { flex: 0 0 auto; padding: 4px 8px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; white-space: nowrap; }
.search-results {
  position: absolute;
  z-index: 42;
  top: 84px;
  left: 50%;
  width: min(520px, 42vw);
  max-height: 380px;
  overflow-y: auto;
  transform: translateX(-50%);
  border-radius: var(--r-card);
  padding: 7px;
}
.search-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  text-align: left;
  background: transparent;
  border-radius: 10px;
}
.search-result:hover { background: var(--blue-soft); }
.search-result-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 10px; }
.search-result-text { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.search-result-text strong { font-size: 14px; }
.search-result-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-distance { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.empty-search { padding: 24px 14px; text-align: center; color: var(--muted); }

/* 左侧主面板 */
.primary-panel {
  position: absolute;
  z-index: 20;
  top: 94px;
  left: 20px;
  width: 382px;
  max-height: calc(100dvh - 200px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: var(--r-shell);
  scrollbar-width: thin;
  scrollbar-color: #c9d5cf transparent;
}
#panel-content { padding: 19px; }
.sheet-handle { display: none; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
.panel-title-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; }
.panel-title-icon.mint { color: var(--mint); background: var(--mint-soft); }
.panel-title-icon.green { color: var(--green-dark); background: var(--green-soft); }
.panel-title-icon .icon { width: 24px; height: 24px; }
.panel-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 750; }
.panel-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: #0c8665; background: var(--mint-soft); border-radius: var(--r-pill); font-size: 11px; white-space: nowrap; }
.live-pill::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.location-fields { position: relative; padding: 4px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r-card); }
.field-row { display: flex; align-items: center; gap: 11px; min-height: 49px; }
.field-row + .field-row { border-top: 1px solid var(--line); }
.field-dot { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid var(--blue); border-radius: 50%; }
.field-dot.destination { border: 0; background: var(--mint); border-radius: 3px; }
.field-label { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.field-value { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.destination-input { flex: 1; min-width: 0; height: 42px; padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 600; }
.locate-mini { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); background: transparent; font-size: 11px; }
.locate-mini .icon { width: 15px; height: 15px; }
.mode-tabs, .line-tabs, .brand-tabs { display: flex; gap: 5px; margin: 15px 0; padding: 4px; overflow-x: auto; background: var(--surface-soft); border-radius: 12px; scrollbar-width: none; }
.mode-tabs::-webkit-scrollbar, .line-tabs::-webkit-scrollbar, .brand-tabs::-webkit-scrollbar, .station-rail::-webkit-scrollbar { display: none; }
.mode-tab, .line-tab, .brand-tab {
  flex: 1 0 auto;
  min-width: 66px;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.mode-tab:hover, .line-tab:hover, .brand-tab:hover { color: var(--ink); }
.mode-tab.active, .line-tab.active, .brand-tab.active { color: var(--ink); background: var(--surface); box-shadow: 0 2px 7px rgba(29, 54, 44, .08); }
.mode-tab.active { color: var(--blue-dark); }
.line-tab.active { color: #0b8866; }
.brand-tab.active[data-brand="zhiyin"] { color: var(--green-dark); }
.brand-tab.active[data-brand="mango"] { color: #94700b; }
.section-label { display: flex; align-items: center; justify-content: space-between; margin: 16px 1px 9px; color: var(--muted); font-size: 12px; }
.section-label strong { color: var(--ink-2); font-size: 13px; font-weight: 650; }
.route-options { display: grid; gap: 8px; }
.route-loading, .route-empty { min-height: 158px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px; color: var(--ink-2); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r-card); }
.route-empty { flex-direction: column; }
.loading-ring { width: 22px; height: 22px; border: 2px solid var(--line-dark); border-top-color: var(--blue); border-radius: 50%; animation: route-spin .8s linear infinite; }
@keyframes route-spin { to { transform: rotate(360deg); } }
.route-card {
  position: relative;
  width: 100%;
  padding: 13px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color .18s ease, background .18s ease, transform .18s var(--ease);
}
.route-card:hover { transform: translateY(-1px); border-color: rgba(8, 127, 232, .35); }
.route-card.selected { background: var(--blue-soft); border-color: rgba(8, 127, 232, .55); }
.route-card:not(.selected) { padding-top: 11px; padding-bottom: 11px; }
.route-card:not(.selected) .route-description,
.route-card:not(.selected) .route-tags { display: none; }
.route-top { display: flex; align-items: center; gap: 8px; }
.route-name { flex: 1; font-size: 13px; font-weight: 650; }
.route-badge { padding: 2px 6px; color: var(--blue-dark); background: rgba(8, 127, 232, .1); border-radius: 5px; font-size: 10px; }
.route-card.selected .route-badge { color: #fff; background: var(--blue); }
.route-radio { width: 15px; height: 15px; border: 1.5px solid #9baca5; border-radius: 50%; }
.route-card.selected .route-radio { border: 4px solid var(--blue); background: #fff; }
.route-main { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; }
.route-time { color: var(--ink); font-size: 25px; line-height: 1; font-weight: 760; font-variant-numeric: tabular-nums; }
.route-time small { margin-left: 2px; font-size: 12px; font-weight: 500; }
.route-distance { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.route-wait { margin-left: auto; color: var(--muted); font-size: 11px; }
.route-description { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.route-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { padding: 3px 6px; color: var(--ink-2); background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.tag.slope { color: #8b6710; background: var(--yellow-soft); border-color: transparent; }
.tag.safe { color: #0a8060; background: var(--mint-soft); border-color: transparent; }
.route-footer { display: grid; grid-template-columns: 1fr 2.1fr; gap: 9px; margin-top: 13px; }
.primary-button, .secondary-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background .16s ease, transform .16s var(--ease), box-shadow .16s ease;
}
.primary-button { color: #fff; background: var(--blue); box-shadow: 0 8px 18px -8px rgba(8, 127, 232, .7); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:active, .secondary-button:active { transform: scale(.98); }
.primary-button.mint { background: var(--mint); box-shadow: 0 8px 18px -8px rgba(22, 173, 131, .65); }
.primary-button.green { background: var(--green); box-shadow: 0 8px 18px -8px rgba(104, 197, 47, .65); }
.primary-button.yellow { color: #493b0b; background: var(--yellow); box-shadow: 0 8px 18px -8px rgba(240, 198, 62, .75); }
.primary-button.full { width: 100%; }
.secondary-button { color: var(--ink-2); background: var(--surface-soft); border: 1px solid var(--line); box-shadow: none; }
.secondary-button:hover { background: #eaf0ec; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 3px; color: var(--blue); background: transparent; font-size: 12px; }
.notice-strip { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 9px 10px; color: var(--muted); background: var(--surface-soft); border-radius: 9px; font-size: 11px; line-height: 1.55; }
.notice-strip .icon { width: 16px; height: 16px; margin-top: 1px; color: #8b701d; }
.steps { margin-top: 13px; padding: 4px 12px; background: var(--surface-soft); border-radius: var(--r-card); }
.step-item { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: start; padding: 11px 0; }
.step-item + .step-item { border-top: 1px solid var(--line); }
.step-index { width: 22px; height: 22px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 10px; font-weight: 700; }
.step-copy strong { display: block; font-size: 12px; font-weight: 600; }
.step-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.step-distance { color: var(--muted); font-size: 11px; white-space: nowrap; }
.quick-section { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.quick-place { min-width: 0; padding: 9px 5px; color: var(--ink-2); background: var(--surface-soft); border-radius: 9px; font-size: 11px; }
.quick-place:hover { color: var(--blue); background: var(--blue-soft); }

/* 校巴 */
.bus-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); }
.bus-stat { padding: 12px; background: var(--surface-soft); }
.bus-stat small { display: block; color: var(--muted); font-size: 11px; }
.bus-stat strong { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; }
.arrival-card { margin-top: 12px; padding: 14px; background: var(--mint-soft); border-radius: var(--r-card); }
.arrival-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.arrival-station { color: #126e55; font-size: 12px; font-weight: 650; }
.arrival-status { color: #0b8664; font-size: 11px; }
.arrival-main { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; color: #075c45; }
.arrival-main strong { font-size: 31px; line-height: 1; font-weight: 780; font-variant-numeric: tabular-nums; }
.arrival-main span { font-size: 13px; }
.arrival-sub { margin-top: 7px; color: #3c7665; font-size: 11px; }
.station-rail { display: flex; gap: 0; margin: 16px -19px 0; padding: 4px 19px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-y; user-select: none; scroll-behavior: smooth; }
.station-rail.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.station-rail.is-dragging .station-item { pointer-events: none; }
.station-tools { display: inline-flex; align-items: center; gap: 5px; }
.station-tools > span { margin-right: 1px; color: var(--muted); font-size: 10px; }
.station-scroll-button { width: 25px; height: 25px; display: inline-grid; place-items: center; padding: 0; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transition: background .16s ease, color .16s ease, opacity .16s ease; }
.station-scroll-button:hover { color: var(--ink); background: var(--surface-soft); }
.station-scroll-button:active { background: var(--line); }
.station-scroll-button:disabled { opacity: .35; cursor: default; background: var(--surface); }
.station-scroll-button .icon { width: 13px; height: 13px; }
.station-item { position: relative; flex: 0 0 76px; padding: 0 3px; text-align: center; background: transparent; scroll-snap-align: start; }
.station-item::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #c9e7dc; }
.station-item:first-child::before { display: none; }
.station-dot { position: relative; z-index: 1; width: 18px; height: 18px; margin: 0 auto 7px; background: var(--surface); border: 3px solid #8fd3bd; border-radius: 50%; }
.station-item.passed .station-dot { background: var(--mint); border-color: var(--mint); }
.station-item.selected .station-dot { background: var(--surface); border: 4px solid var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.station-name { display: block; color: var(--ink-2); font-size: 10px; line-height: 1.35; }
.station-item.selected .station-name { color: var(--blue-dark); font-weight: 700; }
.vehicle-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.vehicle-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--mint); background: var(--mint-soft); border-radius: 10px; }
.vehicle-icon.off { color: var(--muted); background: #e7ede9; }
.vehicle-copy { flex: 1; }
.vehicle-copy strong { display: block; font-size: 12px; }
.vehicle-copy small { color: var(--muted); font-size: 11px; }
.vehicle-state { color: var(--mint); font-size: 11px; }
.vehicle-state.off { color: var(--muted); }
.schedule-list { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); }
.schedule-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-soft); font-size: 11px; }
.schedule-row + .schedule-row { border-top: 1px solid var(--line); }
.schedule-row strong { flex: 1; font-size: 12px; }
.schedule-row span { color: var(--muted); }

/* 共享电车 */
.bike-focus { position: relative; overflow: hidden; padding: 15px; background: var(--green-soft); border-radius: var(--r-card); transition: background .2s ease; }
.bike-focus.mango { background: var(--yellow-soft); }
.bike-focus-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bike-name { display: flex; align-items: center; gap: 9px; }
.bike-name .icon { width: 29px; height: 29px; color: var(--green-dark); }
.bike-focus.mango .bike-name .icon { color: #a27b08; }
.bike-name strong { display: block; font-size: 15px; }
.bike-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.bike-distance { color: var(--green-dark); font-size: 24px; line-height: 1.1; font-weight: 760; font-variant-numeric: tabular-nums; }
.bike-focus.mango .bike-distance { color: #94700b; }
.bike-distance small { font-size: 11px; font-weight: 500; }
.bike-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bike-spec { padding-top: 10px; border-top: 1px solid rgba(62, 96, 37, .12); }
.bike-spec small { display: block; color: var(--muted); font-size: 10px; }
.bike-spec strong { display: block; margin-top: 3px; font-size: 13px; }
.battery-track { width: 100%; height: 7px; margin-top: 12px; overflow: hidden; background: rgba(23, 43, 37, .1); border-radius: var(--r-pill); }
.battery-fill { height: 100%; background: var(--green); border-radius: inherit; transition: width .3s var(--ease); }
.bike-focus.mango .battery-fill { background: var(--yellow); }
.battery-caption { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: 10px; }
.bike-main-action { margin-top: 12px; }
.bike-bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.bike-nav-button { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 5px 1px; color: var(--muted); background: transparent; font-size: 10px; }
.bike-nav-button .icon { width: 20px; height: 20px; color: var(--ink-2); }
.bike-nav-button:hover { color: var(--blue); }
.parking-legend { display: flex; align-items: center; gap: 15px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-p { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 5px; font-size: 11px; font-weight: 800; }
.legend-p.no { position: relative; background: var(--red); }
.legend-p.no::after { content: ""; position: absolute; width: 22px; height: 2px; background: #fff; transform: rotate(-45deg); }

/* 地图控件 */
.module-switch {
  position: absolute;
  z-index: 24;
  bottom: 22px;
  left: 50%;
  display: flex;
  gap: 5px;
  padding: 6px;
  transform: translateX(-50%);
  border-radius: 17px;
}
.module-button { min-width: 126px; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 17px; color: var(--muted); background: transparent; border-radius: 12px; font-size: 13px; font-weight: 650; transition: color .18s ease, background .18s ease; }
.module-button .icon { width: 21px; height: 21px; }
.module-button.active { color: #fff; background: var(--blue); }
.module-button[data-module="bus"].active { background: var(--mint); }
.module-button[data-module="bike"].active { color: #25420f; background: var(--green); }
.map-tools, .zoom-tools {
  position: absolute;
  z-index: 22;
  right: 20px;
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: var(--r-card);
}
.map-tools { top: 106px; }
.zoom-tools { bottom: 133px; }
.icon-button { position: relative; width: 43px; height: 43px; display: grid; place-items: center; color: var(--ink-2); background: transparent; border-radius: 10px; }
.icon-button:hover, .icon-button.active { color: var(--blue); background: var(--blue-soft); }
.icon-button::after { content: attr(data-tooltip); position: absolute; right: 51px; padding: 5px 8px; color: #fff; background: #29433a; border-radius: 6px; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(4px); transition: opacity .15s ease, transform .15s ease; }
.icon-button:hover::after { opacity: 1; transform: translateX(0); }
.has-notice::before { content: ""; position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; background: var(--red); border: 2px solid var(--surface); border-radius: 50%; box-sizing: content-box; }
.tool-separator { height: 1px; margin: 3px 7px; background: var(--line); }
.locate-button { position: absolute; z-index: 22; right: 20px; bottom: 23px; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; }
.locate-ring { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 50%; transition: transform .2s var(--ease); }
.locate-ring span { width: 10px; height: 10px; background: var(--blue); border-radius: 50%; }
.locate-button:hover .locate-ring { transform: scale(1.12); }
.compass { position: absolute; z-index: 20; right: 89px; bottom: 27px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.compass span { position: absolute; top: 3px; color: var(--red); font-size: 8px; font-weight: 800; }
.compass svg { width: 24px; height: 24px; fill: currentColor; }
.layer-popover { position: absolute; z-index: 35; top: 106px; right: 78px; width: 238px; padding: 14px; border-radius: var(--r-card); }
.popover-title { display: flex; flex-direction: column; margin-bottom: 10px; }
.popover-title strong { font-size: 14px; }
.popover-title small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.layer-popover label { display: flex; align-items: center; gap: 9px; min-height: 37px; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.layer-popover input { width: 16px; height: 16px; accent-color: var(--blue); }

/* POI 与导航 */
.poi-card { position: absolute; z-index: 26; left: calc(50% + 145px); bottom: 98px; width: 490px; padding: 18px; transform: translateX(-50%); border-radius: var(--r-shell); animation: card-in .25s var(--ease); }
.poi-header { display: flex; align-items: flex-start; gap: 12px; }
.poi-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); background: var(--blue-soft); border-radius: 12px; }
.poi-heading { flex: 1; min-width: 0; }
.poi-heading h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.poi-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.poi-close { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); background: var(--surface-soft); border-radius: 8px; }
.poi-close .icon { width: 17px; height: 17px; }
.poi-metrics { display: flex; gap: 16px; margin-top: 12px; padding-left: 56px; color: var(--ink-2); font-size: 11px; }
.poi-metrics strong { color: var(--ink); font-weight: 650; }
.poi-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 15px; }
.poi-action { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px; color: var(--ink-2); background: var(--surface-soft); border-radius: 10px; font-size: 11px; }
.poi-action.primary { color: #fff; background: var(--blue); }
.poi-action:hover { color: var(--blue); background: var(--blue-soft); }
.poi-action.primary:hover { color: #fff; background: var(--blue-dark); }
.poi-action .icon { width: 20px; height: 20px; }
.nearby-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nearby-place { min-width: 0; padding: 8px; text-align: left; background: var(--surface-soft); border-radius: 8px; }
.nearby-place strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nearby-place small { color: var(--muted); font-size: 10px; }
.navigation-bar { position: absolute; z-index: 28; top: 94px; left: calc(50% + 150px); width: 540px; padding: 15px 17px; transform: translateX(-50%); border-radius: var(--r-shell); animation: nav-in .3s var(--ease); }
.nav-direction { display: flex; align-items: center; gap: 12px; }
.nav-arrow { width: 43px; height: 43px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 12px; }
.nav-arrow .icon { width: 26px; height: 26px; transform: rotate(90deg); }
.nav-copy { flex: 1; }
.nav-copy strong { display: block; font-size: 17px; }
.nav-copy small { color: var(--muted); font-size: 11px; }
.nav-end { padding: 7px 10px; color: var(--red); background: var(--red-soft); border-radius: 8px; font-size: 12px; }
.nav-stats { display: flex; gap: 22px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.nav-stat { display: flex; align-items: baseline; gap: 4px; color: var(--muted); font-size: 11px; }
.nav-stat strong { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.nav-progress { flex: 1; align-self: center; height: 5px; overflow: hidden; background: var(--surface-soft); border-radius: var(--r-pill); }
.nav-progress span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .4s ease; }

/* 弹层与反馈 */
.toast { position: absolute; z-index: 90; left: 50%; bottom: 105px; max-width: min(420px, calc(100vw - 32px)); padding: 11px 16px; color: #fff; background: #29433a; border-radius: 10px; box-shadow: var(--shadow-float); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: absolute; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(24, 42, 35, .28); animation: fade-in .18s ease; }
.modal { width: min(440px, 100%); max-height: min(680px, calc(100dvh - 40px)); overflow-y: auto; background: var(--surface); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r-shell); box-shadow: var(--shadow-float); animation: card-in .24s var(--ease); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.modal-body { padding: 17px 20px 20px; }
.modal-text { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.modal-list { margin: 10px 0 0; padding: 0; list-style: none; }
.modal-list li { padding: 10px 0; color: var(--ink-2); border-top: 1px solid var(--line); font-size: 12px; }
.modal-list li strong { display: block; margin-bottom: 2px; color: var(--ink); }
.form-field { display: grid; gap: 6px; margin-top: 12px; }
.form-field label { color: var(--ink-2); font-size: 12px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 11px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.form-field textarea { min-height: 104px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.message-item { display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.message-item:first-child { border-top: 0; }
.message-item .icon { color: var(--blue); }
.message-item strong { display: block; font-size: 13px; }
.message-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

/* 百度地图自定义覆盖物 */
.map-poi-dom { position: relative; transform: translate(-50%, -100%); }
.map-poi-dom.is-dot { transform: translate(-50%, -50%); }
.marker-dot { width: 11px; height: 11px; padding: 0; background: var(--blue); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(37,62,51,.22); transition: transform .15s var(--ease); }
.marker-dot:hover { transform: scale(1.18); }
.marker-pill { display: flex; align-items: center; gap: 5px; padding: 6px 9px; color: var(--ink); background: var(--surface); border: 1px solid rgba(23,43,37,.08); border-radius: 9px; box-shadow: 0 4px 12px rgba(37,62,51,.14); font-size: 11px; white-space: nowrap; }
.marker-pill .icon { width: 15px; height: 15px; color: var(--blue); }
.marker-pill::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: var(--surface); transform: translateX(-50%) rotate(45deg); }
.user-location-marker { position: relative; width: 34px; height: 34px; transform: translate(-50%, -50%); border: 2px solid rgba(8,127,232,.75); background: rgba(8,127,232,.16); border-radius: 50%; box-shadow: 0 0 0 7px rgba(8,127,232,.1); }
.user-location-marker::after { content: ""; position: absolute; inset: 8px; background: var(--blue); border: 3px solid #fff; border-radius: 50%; box-sizing: content-box; }
.bus-vehicle-marker { width: 37px; height: 37px; display: grid; place-items: center; color: #fff; background: var(--mint); border: 3px solid #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(11,112,82,.25); transform: translate(-50%, -50%); }
.bus-vehicle-marker .icon { width: 21px; height: 21px; }
.bus-vehicle-marker.off { color: var(--muted); background: #e7ede9; }
.bus-stop-marker { width: 15px; height: 15px; background: var(--surface); border: 3px solid var(--mint); border-radius: 50%; transform: translate(-50%, -50%); }
.bus-stop-marker.selected { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(8,127,232,.17); }
.bike-vehicle-marker { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -70%); }
.bike-battery { width: 37px; height: 12px; margin-bottom: 3px; padding: 2px; background: var(--surface); border-radius: 4px; box-shadow: 0 2px 5px rgba(23,43,37,.14); }
.bike-battery span { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.bike-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--green); border: 2px solid #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(63,112,25,.24); }
.bike-icon.mango { color: #594707; background: var(--yellow); }
.bike-icon .icon { width: 20px; height: 20px; }
.bike-cluster .bike-icon { border-radius: 50%; font-size: 13px; font-weight: 800; }
.parking-marker { position: relative; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--green); border: 2px solid #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(40,90,28,.2); font-size: 17px; font-weight: 800; transform: translate(-50%, -50%); }
.parking-marker.no { background: var(--red); }
.parking-marker.no::after { content: ""; position: absolute; width: 35px; height: 3px; background: #fff; transform: rotate(-45deg); }
.route-arrow-marker { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--blue); border: 2px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); }
.route-arrow-marker .icon { width: 13px; height: 13px; }

/* 校园地点气泡与覆盖物 */

@keyframes card-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes nav-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
  .search-box { position: relative; left: auto; flex: 1; width: auto; margin-left: 14px; transform: none; }
  .search-results { left: 250px; right: 20px; width: auto; transform: none; }
  .navigation-bar, .poi-card { left: calc(50% + 100px); }
}

@media (max-width: 1000px) {
  /* 过渡宽度（平板/窄窗口）：左侧面板会压住底部地点卡，打开详情时先收起面板 */
  .poi-open .primary-panel { display: none; }
  .poi-open .poi-card { left: 20px; right: 20px; width: auto; transform: none; }
  .navigating .primary-panel { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { top: 10px; left: 10px; right: 10px; align-items: center; }
  .brand { width: 48px; height: 48px; padding: 5px; border-radius: 13px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-copy, .demo-badge { display: none; }
  .search-box { height: 48px; margin-left: 8px; padding: 0 12px; border-radius: 13px; }
  .search-box input { font-size: 14px; }
  .search-hint { display: none; }
  .search-results { top: 64px; left: 10px; right: 10px; max-height: 45dvh; }
  .primary-panel { top: auto; left: 10px; right: 10px; bottom: 81px; width: auto; max-height: 45dvh; border-radius: 20px; }
  #panel-content { padding: 14px 16px 16px; }
  .sheet-handle { display: block; width: 35px; height: 4px; margin: 7px auto 0; background: #d8e0db; border-radius: var(--r-pill); }
  .panel-head { margin-bottom: 11px; }
  .panel-title-icon { width: 36px; height: 36px; border-radius: 10px; }
  .panel-title { font-size: 17px; }
  .panel-subtitle { font-size: 11px; }
  .location-fields { padding: 2px 10px; }
  .field-row { min-height: 42px; }
  .mode-tabs, .line-tabs, .brand-tabs { margin: 10px 0; }
  .mode-tab, .line-tab, .brand-tab { min-height: 33px; padding: 6px 9px; }
  .route-options { grid-template-columns: repeat(3, minmax(210px, 1fr)); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .route-card { scroll-snap-align: start; }
  .route-time { font-size: 23px; }
  .route-description { min-height: 36px; }
  .route-footer { margin-top: 9px; }
  .quick-section, .route-card:not(.selected) .route-tags { display: none; }
  .notice-strip { margin-top: 9px; }
  .module-switch { left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 5px; transform: none; border-radius: 16px; }
  .module-button { min-width: 0; min-height: 51px; flex-direction: column; gap: 3px; padding: 5px; border-radius: 11px; font-size: 10px; }
  .module-button .icon { width: 20px; height: 20px; }
  .map-tools { top: 72px; right: 10px; padding: 4px; }
  .zoom-tools { top: 278px; right: 10px; bottom: auto; padding: 4px; }
  .icon-button { width: 39px; height: 39px; }
  .icon-button::after { display: none; }
  .locate-button { right: 12px; bottom: calc(45dvh + 94px); width: 47px; height: 47px; }
  .compass { right: 67px; bottom: calc(45dvh + 96px); width: 41px; height: 41px; }
  .layer-popover { top: 72px; right: 62px; }
  .poi-card { left: 10px; right: 10px; bottom: 81px; width: auto; padding: 15px; transform: none; border-radius: 20px; animation: fade-in .2s ease; }
  .poi-open .primary-panel { display: none; }
  .poi-open .locate-button, .poi-open .compass { bottom: 285px; }
  .poi-heading h2 { font-size: 17px; }
  .poi-metrics { padding-left: 0; }
  .navigation-bar { top: 70px; left: 10px; right: 62px; width: auto; padding: 12px; transform: none; border-radius: 16px; animation: fade-in .2s ease; }
  .nav-copy strong { font-size: 14px; }
  .nav-arrow { width: 37px; height: 37px; }
  .nav-stats { gap: 12px; }
  .nav-stat strong { font-size: 15px; }
  .navigating .primary-panel { display: none; }
  .navigating .locate-button, .navigating .compass { bottom: 88px; }
  .toast { bottom: 87px; font-size: 12px; }
  .station-rail { margin-inline: -16px; padding-inline: 16px; }
  .bike-focus { padding: 12px; }
  .bike-specs { margin-top: 10px; }
  .bike-bottom-nav { margin-top: 10px; padding-top: 9px; }
  .modal-backdrop { align-items: end; padding: 10px; }
  .modal { max-height: 80dvh; border-radius: 20px; }
}

@media (max-height: 740px) and (min-width: 721px) {
  .primary-panel { max-height: calc(100dvh - 180px); }
  #panel-content { padding: 15px; }
  .panel-head { margin-bottom: 10px; }
  .mode-tabs, .line-tabs, .brand-tabs { margin: 10px 0; }
  .quick-section { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
