:root {
  --primary: #0068FF;
  --primary-dark: #0052cc;
  --bg: #f3f5f8;
  --card: #fff;
  --text: #1f2329;
  --muted: #6b7280;
  --line: #e5e7eb;
  --danger: #e5484d;
  --ok: #52c41a;
  --sidebar-w: 64px;
  --header-h: 52px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); overflow: hidden; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
.hidden { display: none !important; }

#app { display: flex; flex-direction: column; height: 100%; position: relative; }

/* ===== 顶部栏 ===== */
header {
  height: var(--header-h); background: linear-gradient(135deg, #0068FF, #00b3ff); color: #fff;
  display: flex; align-items: center; gap: 8px; padding: 0 10px; flex-shrink: 0; z-index: 10;
}
.h-left { display: flex; gap: 6px; }
.h-left button {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); color: #fff;
  padding: 5px 10px; border-radius: 14px; font-size: 13px;
}
.h-left button:active { background: rgba(255,255,255,.35); }

#persistent {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
  background: rgba(255,255,255,.14); border-radius: 8px; padding: 4px 8px; overflow: hidden;
}
#persistent.collapsed { flex: 0 0 auto; }
.weather { display: flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.w-icon { font-size: 15px; }
.flow { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; }
.flow-stop { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.flow-arrow { opacity: .8; }
#flow-done {
  background: #fff; color: var(--primary); border-radius: 12px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.h-right { display: flex; }
.mode { display: flex; gap: 5px; }
.mode button {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); color: #fff;
  padding: 4px 10px; border-radius: 14px; font-size: 12px;
}
.mode button.active { background: #fff; color: var(--primary); font-weight: 600; }

/* ===== 主体 ===== */
#main { flex: 1; display: flex; min-height: 0; }

#sidebar {
  width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding-top: 12px; gap: 6px; flex-shrink: 0;
}
#sidebar button {
  width: 52px; height: 52px; border-radius: 12px; font-size: 20px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
#sidebar button span { font-size: 10px; }
#sidebar button.active { background: #e8f1ff; color: var(--primary); }

#views { flex: 1; position: relative; min-width: 0; }
.view { position: absolute; inset: 0; display: none; flex-direction: column; }
.view.active { display: flex; }

/* ===== 聊天 ===== */
#chat-list { flex: 1; overflow-y: auto; padding: 14px 12px 4px; }
.msg { max-width: 86%; margin-bottom: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.user { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.msg.bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg.typing { color: var(--muted); font-style: italic; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 4px 0 12px; font-size: 13px; }
.plan-card h3 { font-size: 14px; color: var(--primary); margin-bottom: 6px; }
.plan-card .day { margin-bottom: 8px; }
.plan-card .day b { color: var(--text); }
.plan-card .slot { color: var(--muted); display: block; padding-left: 8px; }
.plan-card .cost { border-top: 1px dashed var(--line); padding-top: 6px; color: var(--primary); font-weight: 600; }
#chat-input-bar { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }
#chat-input { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; font-size: 14px; outline: none; }
#chat-input:focus { border-color: var(--primary); }
#chat-send { background: var(--primary); color: #fff; border-radius: 20px; padding: 0 18px; font-size: 14px; }
#chat-send:disabled { background: #b4cfff; }

/* ===== 地图 ===== */
.map-toolbar { display: flex; gap: 6px; padding: 8px; background: #fff; border-bottom: 1px solid var(--line); }
#map-search { flex: 1; border: 1px solid var(--line); border-radius: 18px; padding: 7px 12px; font-size: 13px; outline: none; }
.map-toolbar button { border: 1px solid var(--line); border-radius: 16px; padding: 0 12px; font-size: 12px; color: var(--muted); background: #fff; }
.map-toolbar button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
#map-container { flex: 1; min-height: 0; }
#map-poi-list { position: absolute; top: 96px; left: 10px; right: 10px; max-height: 45%; overflow-y: auto; background: #fff; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 5; }
.poi-item { padding: 10px 12px; border-bottom: 1px solid #f0f1f3; font-size: 13px; cursor: pointer; }
.poi-item:last-child { border-bottom: none; }
.poi-item b { display: block; }
.poi-item span { color: var(--muted); font-size: 12px; }
.poi-item:active { background: #f3f6ff; }

/* ===== 打车 ===== */
#view-taxi { overflow-y: auto; background: var(--bg); }
.taxi-panel { background: #fff; margin: 10px; border-radius: 14px; padding: 14px; }
.taxi-io { margin-bottom: 12px; }
.taxi-io label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.taxi-io input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; outline: none; }
.taxi-io input:focus { border-color: var(--primary); }
.taxi-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.taxi-pick button { border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; font-size: 12px; color: var(--muted); background: #fafbfc; }
.taxi-pick button.sel { border-color: var(--primary); color: var(--primary); background: #e8f1ff; }
#taxi-estimate-btn { width: 100%; background: var(--primary); color: #fff; border-radius: 22px; padding: 11px; font-size: 15px; font-weight: 600; }
#taxi-estimate-btn:disabled { background: #b4cfff; }
#taxi-estimate { margin-top: 12px; }
.est-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.est-row.sel { border-color: var(--primary); background: #f0f6ff; }
.est-row .lv { font-size: 14px; font-weight: 600; }
.est-row .desc { font-size: 12px; color: var(--muted); }
.est-row .price { font-size: 17px; font-weight: 700; color: var(--primary); }
.est-call { width: 100%; background: var(--primary); color: #fff; border-radius: 22px; padding: 11px; font-size: 15px; font-weight: 600; margin-top: 4px; }
#taxi-order { margin: 0 10px 10px; }
#taxi-map { height: 220px; border-radius: 14px; overflow: hidden; background: #e8eaee; }
#taxi-card { background: #fff; border-radius: 14px; padding: 14px; margin-top: 10px; }
.tc-status { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.tc-status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tc-vehicle { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f7f9fc; border-radius: 10px; }
.tc-avatar { width: 44px; height: 44px; border-radius: 50%; background: #ffe9c8; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.tc-plate { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.tc-model { font-size: 12px; color: var(--muted); }
.tc-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.tc-meta b { color: var(--text); font-size: 13px; }
.tc-cancel { width: 100%; border: 1px solid var(--danger); color: var(--danger); border-radius: 20px; padding: 9px; margin-top: 12px; font-size: 14px; }

/* ===== 计划 ===== */
#view-plan { overflow-y: auto; }
#plan-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 14px; line-height: 2; }
#plan-progress { padding: 22px 8px 6px; overflow-x: auto; }
.plan-track { display: flex; align-items: center; min-width: max-content; padding: 0 30px; }
.plan-node { display: flex; flex-direction: column; align-items: center; width: 76px; flex-shrink: 0; }
.plan-dot { width: 14px; height: 14px; border-radius: 50%; background: #c9d3e0; z-index: 2; }
.plan-node.done .plan-dot { background: #b7bcc4; }
.plan-node.todo .plan-dot { background: var(--primary); opacity: .45; }
.plan-node.now .plan-dot { background: #fff; border: 4px solid var(--primary); width: 20px; height: 20px; box-shadow: 0 0 0 4px rgba(0,104,255,.15); }
.plan-name { font-size: 11px; margin-top: 6px; text-align: center; line-height: 1.3; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.plan-node.now .plan-name { color: var(--primary); font-weight: 700; }
.plan-day { font-size: 10px; color: #a3aab4; margin-top: 2px; }
.plan-seg { height: 4px; flex: 1; min-width: 34px; border-radius: 2px; background: var(--primary); opacity: .45; align-self: flex-start; margin-top: 5px; }
.plan-seg.done { background: #b7bcc4; opacity: 1; }
#plan-detail { padding: 8px 12px 20px; }

/* ===== 抽屉（副界面，豆包式覆盖层） ===== */
#drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
#drawer-mask.show { opacity: 1; pointer-events: auto; }
#drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 80%; max-width: 340px; background: #fff;
  z-index: 31; transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
#drawer.open { transform: translateX(0); }
.d-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; background: #fff; border-bottom: 1px solid #f0f1f3; }
.d-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.d-user { flex: 1; min-width: 0; }
#d-userid { font-size: 16px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-sub { font-size: 11px; color: #9aa2ad; margin-top: 2px; }
#d-search-btn { color: #555; font-size: 18px; padding: 8px; }
#d-search-bar { padding: 8px 12px; background: #fff; border-bottom: 1px solid #f0f1f3; }
#d-search-bar input { width: 100%; border: none; border-radius: 18px; padding: 8px 14px; font-size: 13px; outline: none; background: #f5f6f8; }
.d-title { padding: 12px 16px 6px; font-size: 12px; color: #9aa2ad; }
#d-list { flex: 1; overflow-y: auto; padding: 0 8px; }
.d-item { display: flex; align-items: center; padding: 12px 10px; border-radius: 12px; cursor: pointer; }
.d-item:active { background: #f0f4fa; }
.d-item.current { background: #eef4ff; }
.d-item .d-ico { width: 40px; height: 40px; border-radius: 12px; background: #f2f4f7; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-right: 11px; flex-shrink: 0; }
.d-item .info { flex: 1; min-width: 0; }
.d-item .name { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-item.current .name { color: var(--primary); font-weight: 600; }
.d-item .meta { font-size: 11px; color: #9aa2ad; margin-top: 3px; }
.d-item .meta .tag { color: #c2830a; }
.d-item .meta .tag.done { color: var(--ok); }
.d-item .ops { display: flex; gap: 2px; opacity: .7; }
.d-item .ops button { padding: 7px; font-size: 14px; color: #9aa2ad; }
.d-empty { text-align: center; color: #9aa2ad; font-size: 13px; padding: 40px 10px; }
.d-foot { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #f0f1f3; background: #fff; }
#back-main-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; background: #fff; border: 1px solid #e8eaee;
  border-radius: 24px; padding: 10px 16px; font-size: 14px; color: var(--text); font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); width: 100%;
}
#back-main-btn:active { background: #f5f7fa; }
#back-main-btn .bm-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ===== 弹窗 ===== */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 45; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 14px; padding: 22px 18px 16px; width: 80%; max-width: 320px; }
#modal-text { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.modal-btns { display: flex; gap: 10px; }
.modal-btns button { flex: 1; border-radius: 20px; padding: 9px; font-size: 14px; }
#modal-cancel { border: 1px solid var(--line); color: var(--muted); }
#modal-ok { background: var(--primary); color: #fff; font-weight: 600; }

footer { text-align: center; font-size: 10px; color: #9aa2ad; padding: 4px; background: #fff; border-top: 1px solid var(--line); flex-shrink: 0; }

@media (max-width: 480px) {
  #persistent.collapsed .weather span.w-icon + span { display: none; }
  .flow-stop { max-width: 60px; }
}
/* ---------- 登录：提示条 + 弹窗 ---------- */
#auth-tip { display: flex; align-items: center; gap: 8px; background: #eef6ff; border-bottom: 1px solid #d4e6ff; padding: 7px 12px; font-size: 12px; color: #2b6cb0; flex-shrink: 0; }
#auth-tip .at-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#auth-tip-login { background: var(--primary); color: #fff; border: none; border-radius: 14px; padding: 4px 14px; font-size: 12px; font-weight: 600; }
#auth-tip-close { background: none; border: none; color: #8aa4c4; font-size: 13px; padding: 2px 6px; }

#auth-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: center; justify-content: center; }
.auth-box { background: #fff; border-radius: 16px; padding: 24px 20px 18px; width: 82%; max-width: 330px; display: flex; flex-direction: column; }
.auth-title { font-size: 18px; font-weight: 700; color: #1f2329; text-align: center; }
.auth-sub { font-size: 12px; color: var(--muted); text-align: center; margin: 6px 0 18px; }
#auth-phone, #auth-code { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 15px; width: 100%; box-sizing: border-box; background: #fafbfc; }
#auth-phone:focus, #auth-code:focus { border-color: var(--primary); outline: none; background: #fff; }
.auth-code-row { display: flex; gap: 8px; margin-top: 12px; }
.auth-code-row input { flex: 1; }
#auth-send { border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 10px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
#auth-send:disabled { border-color: var(--line); color: var(--muted); }
#auth-demo-tip { margin-top: 10px; font-size: 11px; color: #b8860b; background: #fffae6; border: 1px dashed #f0d98c; border-radius: 8px; padding: 6px 10px; text-align: center; }
#auth-submit { margin-top: 16px; background: var(--primary); color: #fff; border: none; border-radius: 22px; padding: 11px; font-size: 15px; font-weight: 600; }
#auth-submit:disabled { opacity: .5; }
.auth-foot { margin-top: 12px; text-align: center; font-size: 12px; }
#auth-skip { color: var(--muted); cursor: pointer; }
.d-login-banner { margin: 0 16px 8px; padding: 8px 10px; font-size: 11px; color: #2b6cb0; background: #eef6ff; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.d-login-banner button { margin-left: auto; background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 3px 10px; font-size: 11px; }
/* ---------- 登录弹窗：多视图 ---------- */
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.auth-tabs button { flex: 1; background: none; border: none; padding: 8px 0 10px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tabs button.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
#auth-panel-pwd input[type=password], #auth-panel-register input[type=password], #auth-panel-reset input[type=password] { margin-top: 12px; }
#pwd-submit, #reg-submit, #reset-submit, #auth-submit { margin-top: 16px; background: var(--primary); color: #fff; border: none; border-radius: 22px; padding: 12px; font-size: 15px; font-weight: 600; width: 100%; box-sizing: border-box; display: block; }
#pwd-submit:disabled, #reg-submit:disabled, #reset-submit:disabled, #auth-submit:disabled { opacity: .5; }
.auth-link-row { margin-top: 10px; text-align: center; font-size: 12px; }
#goto-reset, #auth-goto-reg, #auth-goto-login { color: var(--primary); cursor: pointer; }
.auth-foot { margin-top: 12px; text-align: center; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- 地图：定位蓝点 / 景点序号点 / toast ---------- */
.loc-dot { position: relative; width: 22px; height: 22px; }
.loc-core { position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #1677ff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.loc-pulse { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(22,119,255,.25); animation: locpulse 1.8s infinite ease-out; }
.loc-dot.coarse .loc-core { background: #8aa4c4; }
.loc-dot.coarse .loc-pulse { background: rgba(138,164,196,.25); animation: none; }
@keyframes locpulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.seq-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #1677ff; color: #1677ff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.seq-dot.done { background: #e8f0fe; border-color: #b7cbe8; color: #8aa4c4; }
.seq-dot.cur { background: #1677ff; color: #fff; transform: scale(1.18); border-color: #fff; }
#app-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(8px); background: rgba(31,35,41,.92); color: #fff; font-size: 13px; padding: 8px 18px; border-radius: 18px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 打卡后：交通方式选择卡 ---------- */
.transit-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 4px 0 12px; font-size: 13px; }
.transit-card h3 { font-size: 14px; color: var(--primary); margin-bottom: 2px; }
.tr-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.topt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.topt:active { background: #f0f6ff; border-color: var(--primary); }
.topt .badge { position: absolute; top: -7px; right: 10px; background: #ff6a3d; color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 7px; box-shadow: 0 2px 5px rgba(255,106,61,.4); }
.topt .tico { font-size: 22px; }
.topt .tinfo { flex: 1; min-width: 0; }
.topt .tinfo b { display: block; font-size: 14px; }
.topt .tinfo span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topt .arrow { color: #c3c7cf; font-size: 18px; }
/* ---------- 地图：单段路线浮动面板 ---------- */
#route-panel { position: absolute; left: 10px; right: 10px; bottom: 12px; background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.18); padding: 10px 12px; z-index: 6; }
.rp-title { font-size: 14px; font-weight: 700; color: var(--text); }
.rp-sub { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.rp-btns { display: flex; gap: 8px; }
#rp-nav { flex: 1; background: var(--primary); color: #fff; border-radius: 20px; padding: 9px; font-size: 14px; font-weight: 600; }
#rp-back { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 20px; padding: 9px 12px; font-size: 13px; }
/* 单段起终点标记 */
.seq-dot.from { background: #07c160; border-color: #fff; color: #fff; }
.seq-dot.to { background: #ff6a3d; border-color: #fff; color: #fff; }

/* ---------- 景点视图 ---------- */
.sights-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
#sights-title { font-size: 14px; font-weight: 700; }
#sights-add { background: var(--primary); color: #fff; border-radius: 16px; padding: 6px 12px; font-size: 12px; }
#sights-grid { flex: 1; overflow-y: auto; padding: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.sight-cell { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 10px 10px; text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none; }
.sight-cell.cur { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,104,255,.15); }
.sight-cell.done { background: #f6f8fa; }
.sight-cell.done .sc-name { color: var(--muted); }
.sc-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; color: var(--primary); background: #e8f1ff; border-radius: 8px; padding: 1px 7px; }
.sight-cell.done .sc-badge { color: #07c160; background: #e6f9ee; }
.sc-name { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.sc-meta { font-size: 11px; color: var(--muted); }
#sights-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 60px 20px; }
/* ---------- 历史项上下文菜单 ---------- */
#d-ctx-menu { position: fixed; z-index: 70; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.2); padding: 4px; min-width: 140px; display: none; }
#d-ctx-menu.show { display: block; }
#d-ctx-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; font-size: 13px; border-radius: 8px; }
#d-ctx-menu button:active { background: #f0f6ff; }
#d-ctx-menu button.danger { color: var(--danger); }
/* ---------- POI 信息窗 ---------- */
.poi-iw { max-width: 220px; font-size: 13px; }
.poi-iw-name { font-weight: 700; margin-bottom: 2px; }
.poi-iw-addr { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.poi-iw-nav { background: var(--primary); color: #fff; border: none; border-radius: 14px; padding: 6px 14px; font-size: 12px; }
/* 路线面板 a 标签按钮化 */
#rp-nav { flex: 1; background: var(--primary); color: #fff; border-radius: 20px; padding: 9px; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; display: block; }
#rp-cancel-nav { flex: 1; background: #fff; border: 1px solid var(--danger); color: var(--danger); border-radius: 20px; padding: 9px; font-size: 14px; font-weight: 600; }
/* ---------- 资源选项卡补充 ---------- */
.brief-row { padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.brief-row:last-child { border-bottom: none; }
.brief-row b { display: block; font-size: 13px; }
.brief-row span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
/* ---------- 需求信息收集卡 ---------- */
.req-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.req-row label { width: 72px; flex-shrink: 0; font-size: 13px; color: var(--text); }
.req-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; }
.req-row input:focus { border-color: var(--primary); }
.req-confirm { width: 100%; background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 10px; font-size: 14px; font-weight: 600; margin-top: 4px; }
#map-search-btn { background: var(--primary); color: #fff; border: none; border-radius: 16px; padding: 0 14px; font-size: 12px; flex-shrink: 0; }
/* ---------- 消息中心：右上角偏下按钮 ---------- */
#msg-center-btn { position: fixed; top: 54px; right: 10px; z-index: 43; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 5px 12px; font-size: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
#msg-center-btn:active { background: #f0f6ff; }
#msg-center-btn i#msg-badge { position: absolute; top: -6px; right: -4px; background: #ff3b30; color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; padding: 0 4px; font-style: normal; border: 2px solid #fff; display: none; }
/* ---------- 主界面通知层（交通选择） ---------- */
#notice-layer { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 44; display: flex; align-items: center; justify-content: center; padding: 20px; }
#notice-card { background: #fff; border-radius: 16px; width: 100%; max-width: 360px; padding: 16px 14px 12px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.nt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
#nt-title { font-size: 16px; font-weight: 700; color: var(--primary); }
#nt-countdown { font-size: 11px; color: var(--muted); }
#nt-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
#nt-options .topt { margin-bottom: 8px; }
#nt-ignore { width: 100%; background: none; border: 1px dashed var(--line); color: var(--muted); border-radius: 10px; padding: 9px; font-size: 13px; margin-top: 2px; }
/* ---------- 消息中心面板 ---------- */
#msg-panel { position: fixed; top: 88px; right: 10px; left: 10px; max-width: 400px; margin: 0 auto 0 auto; background: #fff; border-radius: 14px; z-index: 44; box-shadow: 0 8px 32px rgba(0,0,0,.22); max-height: 60vh; display: flex; flex-direction: column; }
.mp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; flex-shrink: 0; }
#msg-panel-close { background: none; border: none; font-size: 15px; color: var(--muted); }
#msg-list { overflow-y: auto; padding: 8px; }
.mp-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.mp-item.handled { background: #f7f8fa; }
.mp-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mp-done { font-size: 10px; color: var(--muted); background: #eef0f3; border-radius: 6px; padding: 1px 6px; }
.mp-new { font-size: 10px; color: #ff6a3d; background: #fff0ea; border-radius: 6px; padding: 1px 6px; }
.mp-meta { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.mp-opts .topt { margin-bottom: 7px; }
.mp-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0; }
/* ---------- 公交站台标记与线性路线图 ---------- */
.bus-stop-dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #0068FF; display: flex; align-items: center; justify-content: center; font-size: 11px; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
#bus-timeline { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 46; display: flex; align-items: flex-end; justify-content: center; }
.bt-card { background: #fff; border-radius: 16px 16px 0 0; width: 100%; max-width: 480px; max-height: 72vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.bt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; flex-shrink: 0; }
#bt-close { background: none; border: none; font-size: 16px; color: var(--muted); }
.bt-list { overflow-y: auto; padding: 14px 16px 20px; }
.bt-row { position: relative; display: flex; gap: 12px; padding: 0 0 18px 0; }
.bt-row:last-child { padding-bottom: 4px; }
.bt-row::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: -2px; width: 2px; background: var(--line); }
.bt-row:last-child::before { display: none; }
.bt-dot { width: 22px; height: 22px; border-radius: 50%; background: #eef0f3; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; z-index: 1; }
.bt-row.bus .bt-dot { background: #e8f1ff; }
.bt-row.start .bt-dot, .bt-row.end .bt-dot { background: #e6f9ee; }
.bt-body { flex: 1; min-width: 0; }
.bt-body b { display: block; font-size: 14px; margin-bottom: 2px; }
.bt-body span { display: block; font-size: 12px; color: var(--muted); }
.bt-body em { display: block; font-style: normal; font-size: 12px; color: var(--primary); margin-top: 2px; }
#rp-bus-detail { flex: 1; background: var(--primary); color: #fff; border-radius: 20px; padding: 9px; font-size: 14px; font-weight: 600; }
#rp-bus-close { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 20px; padding: 9px 12px; font-size: 13px; }
#rp-bus-full { background: #fff; border: 1px solid var(--primary); color: var(--primary); border-radius: 20px; padding: 9px 10px; font-size: 13px; flex-shrink: 0; }
/* ---------- 演示付款页（沙箱） ---------- */
#pay-layer { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 48; display: flex; align-items: center; justify-content: center; padding: 20px; }
#pay-card { background: #fff; border-radius: 16px; width: 100%; max-width: 340px; padding: 18px 16px; max-height: 86vh; overflow-y: auto; }
.pay-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.pay-sandbox { font-size: 10px; color: #ff6a3d; background: #fff0ea; border-radius: 8px; padding: 2px 8px; font-weight: 400; }
.pay-amount { text-align: center; font-size: 34px; font-weight: 800; color: var(--text); margin: 6px 0 12px; }
.bill-rows { background: #f7f8fa; border-radius: 10px; padding: 4px 12px; margin-bottom: 12px; }
.bill-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bill-row:last-child { border-bottom: none; }
.bill-row.total { font-size: 14px; color: var(--text); font-weight: 700; }
.pay-sec { font-size: 13px; font-weight: 700; margin: 4px 0 8px; }
.pay-method { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.pay-method.sel { border-color: var(--primary); background: #f0f6ff; }
.pm-ico { font-size: 20px; }
.pm-info { flex: 1; }
.pm-info b { display: block; font-size: 14px; }
.pm-info span { display: block; font-size: 11px; color: var(--muted); }
.pm-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfd4dc; flex-shrink: 0; }
.pay-method.sel .pm-radio { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, #fff 50%); }
.pay-confirm { width: 100%; background: #07c160; color: #fff; border: none; border-radius: 22px; padding: 12px; font-size: 16px; font-weight: 700; margin-top: 6px; }
.pay-close { width: 100%; background: none; border: none; color: var(--muted); font-size: 13px; padding: 10px; }
.pay-processing { text-align: center; padding: 36px 0; font-size: 14px; }
.pay-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.pay-spinner { width: 42px; height: 42px; border: 4px solid #e5e7eb; border-top-color: #07c160; border-radius: 50%; margin: 0 auto 14px; animation: pay-spin 0.9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-success { text-align: center; }
.ps-check { width: 56px; height: 56px; line-height: 56px; border-radius: 50%; background: #07c160; color: #fff; font-size: 30px; font-weight: 800; margin: 4px auto 8px; }
.ps-title { font-size: 16px; font-weight: 700; }
.ps-receipt { text-align: left; background: #f7f8fa; border-radius: 10px; padding: 4px 12px; margin: 10px 0; }
.ps-note { font-size: 10px; color: var(--muted); margin: 6px 0 10px; }
.tc-pay-btn { width: 100%; background: #07c160; color: #fff; border: none; border-radius: 10px; padding: 11px; font-size: 15px; font-weight: 700; margin-top: 4px; }
/* ---------- 模拟跳转授权页（沙箱） ---------- */
.auth-page { text-align: center; padding: 6px 0 2px; }
.auth-icon { width: 56px; height: 56px; line-height: 56px; border-radius: 14px; background: #f0f2f5; font-size: 30px; margin: 6px auto 8px; }
.auth-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.auth-body { background: #f7f8fa; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.auth-app { font-size: 15px; font-weight: 700; }
.auth-desc { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.auth-amount { font-size: 26px; font-weight: 800; margin: 6px 0; }
.auth-note { font-size: 11px; color: var(--muted); }
.auth-btns { display: flex; flex-direction: column; gap: 8px; }
.auth-cancel { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 22px; padding: 11px; font-size: 14px; }
.auth-ok { background: #07c160; color: #fff; border: none; border-radius: 22px; padding: 12px; font-size: 15px; font-weight: 700; }
.est-warn { background: #fff7e6; border: 1px solid #ffd591; color: #ad6800; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.6; margin-bottom: 10px; }
/* 步行段特殊标注（地图浮动标签） */
.walk-tag { background: #07c160; color: #fff; font-size: 11px; font-weight: 600; border-radius: 10px; padding: 3px 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(7,193,96,.35); border: 1.5px solid #fff; }
