:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e6e8ec;
  --brand: #e4572e;
  --brand-2: #2e86de;
  --accent: #00b894;
  --warn: #f9ca24;
  --shadow: 0 2px 10px rgba(20, 25, 40, .08);
  --shadow-sm: 0 1px 2px rgba(20, 25, 40, .06);
  --shadow-md: 0 4px 14px rgba(20, 25, 40, .08);
  --radius: 12px;
  --radius-sm: 10px;
  --surface-2: #f0f1f4;
  --ring: rgba(228, 87, 46, .18);
  --sidebar-pad: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  display: flex; flex-direction: column;
}
/* Topbar */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: var(--panel);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 18px; letter-spacing: .5px; flex-shrink: 0; min-width: 0; }
.brand .b-txt { white-space: nowrap; }
.brand .sub { font-size: 11px; color: #fff; background: var(--brand); padding: 2px 6px; border-radius: 6px; margin-left: 0; vertical-align: middle; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.actions button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  height: 34px; display: inline-flex; align-items: center; gap: 5px;
  padding: 0 13px; border-radius: 9px; cursor: pointer; font-size: 13px; transition: .15s;
}
.actions button .ic { line-height: 1; font-size: 15px; }
.actions button .lbl { white-space: nowrap; }
.actions button:hover { border-color: var(--brand); color: var(--brand); }
.actions button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
/* 路线按钮右上角红色数字角标（0 个不显示）*/
#btnRoute { position: relative; }
.route-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #e03131; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff; pointer-events: none;
}
.route-badge[hidden] { display: none; }
/* 状态徽标（腾讯地图GCJ-02 / 坐标投影预览）按 Mo 要求隐藏，不占顶部栏宽度 */
.mode-badge { display: none; font-size: 12px; color: var(--muted); }
  .mode-badge.tencent { color: var(--accent); }
  .mode-badge.fallback { color: #b7791f; }
  /* 汉堡按钮：移动端抽屉开关，桌面隐藏 */
  .icon-btn {
    display: none; /* 桌面默认隐藏，仅 ≤760px 显示 */
    width: 38px; height: 34px; flex: 0 0 auto;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 9px; cursor: pointer; font-size: 18px; line-height: 1;
    align-items: center; justify-content: center; transition: .15s;
  }
  .icon-btn:active { background: #f0f1f4; }
  /* 抽屉遮罩 */
  .scrim {
    position: absolute; inset: 0; background: rgba(20, 25, 40, .38);
    z-index: 12; display: none;
  }

/* Layout */
.layout { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 300px; min-width: 300px; background: var(--panel);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0;
  box-shadow: 1px 0 0 var(--line), 6px 0 24px rgba(20, 25, 40, .05);
}
.filter-panel { padding: 12px var(--sidebar-pad); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.filter-panel.collapsed { overflow: visible; }
.filter-panel.collapsed .filter-body { display: none; }
.filter-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.filter-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.filter-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.filter-badge {
  display: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; align-items: center; justify-content: center;
}
.filter-toggle {
  border: 1px solid #ecd9cc; background: #fdf6f1; color: #d98a5f;
  font-size: 13px; line-height: 1; width: 28px; height: 28px; border-radius: 9px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .25s ease, box-shadow .15s;
}
.filter-toggle .ft-ic { display: block; }
.filter-panel:not(.collapsed) .filter-toggle { transform: rotate(90deg); color: #c5764a; border-color: #e0a583; background: #fbeee4; }
.filter-toggle:hover { border-color: #e0a583; color: #c5764a; background: #fbeee4; box-shadow: var(--shadow-sm); }
.filter-toggle:active { transform: scale(.92); }
.filter-chips { display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 14px;
  padding: 3px 6px 3px 10px; background: #eef0f3; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; color: var(--ink);
}
.fchip:hover { border-color: var(--brand); }
.fchip .x { color: var(--muted); font-weight: 700; font-size: 13px; }
.fchip:hover .x { color: var(--brand); }
.filter-body { margin-top: 8px; }
.field { margin-bottom: 6px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.field input[type=text], .field select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input[type=text]:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring);
}
.field input[type=text]::placeholder { color: #aab0b8; }
.filter-head-actions { display: flex; align-items: center; gap: 6px; }
.filter-reset-wrap { margin-top: 10px; display: flex; justify-content: flex-end; }
.filter-reset-ic {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, background .15s, transform .12s;
}
.filter-reset-ic:hover { border-color: var(--brand); color: var(--brand); background: #fff6f3; }
.filter-reset-ic:active { transform: scale(.92); }
.filter-reset-ic[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; user-select: none; background: #fff;
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* 分段 TAB 控件（范围 / 距离 / 状态 由下拉改为点击切换） */
.seg { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button {
  flex: 1 1 0; min-width: 0; border: none; background: transparent; padding: 7px 3px;
  font-size: 12px; color: var(--muted); border-radius: 7px; cursor: pointer;
  transition: background .15s, color .15s; white-space: normal; overflow: visible; line-height: 1.2;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,25,40,.14); font-weight: 600; }
.row2 { display: flex; gap: 8px; }
.row2 .field { flex: 1; }
.list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.list::-webkit-scrollbar { width: 7px; }
.list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.list::-webkit-scrollbar-track { background: transparent; }
/* 路线弹窗：居中模态 + 黑色半透明蒙版（Material 3 + Apple HIG：清晰焦点 / 44px 触控 / 统一圆角阴影） */
.route-modal-mask {
  position: fixed; inset: 0; z-index: 99985;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 18, 28, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility .22s;
}
.route-modal-mask.open { opacity: 1; visibility: visible; pointer-events: auto; }
.route-panel {
  position: relative;
  width: 344px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 16px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 18, 28, .32);
  transform: scale(.94) translateY(8px);
  transition: transform .24s cubic-bezier(.2, 0, 0, 1);
}
.route-modal-mask.open .route-panel { transform: none; }
/* 路线站点拖拽手柄（☰）：桌面拖动 / 移动端长按拖动排序 */
.rs-handle {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #b3b9c4; font-size: 15px; cursor: grab; touch-action: none;
  transition: background .15s, color .15s;
}
.rs-handle:hover { background: #f0f2f5; color: var(--muted); }
.rs-handle:active { cursor: grabbing; }
.route-stop.dragging { box-shadow: 0 10px 24px rgba(20,25,40,.22); opacity: .96; background: #fff; cursor: grabbing; }
.route-stops.sorting { cursor: grabbing; }
/* 路线弹窗的显隐由外层 .route-modal-mask.open 控制（见上） */
.route-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--ink); padding-right: 28px; }
.route-head .rp-title { display: inline-flex; align-items: center; gap: 6px; }
.route-head .rp-count { font-size: 13px; font-weight: 500; color: var(--muted); }
.route-head .rp-count b { color: var(--brand); font-weight: 700; margin: 0 2px; }
.link-btn { border: none; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; padding: 3px 8px; border-radius: 7px; transition: .15s; }
.link-btn:hover { color: #fff; background: var(--brand); }
.route-stops { overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 2px; }
.route-stops::-webkit-scrollbar { width: 6px; }
.route-stops::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .12); border-radius: 3px; }
.route-stop { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 15px; transition: box-shadow .15s, border-color .15s; }
.route-stop:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(228, 87, 46, .12); }
.rs-idx { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #f08a5d); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(228, 87, 46, .4); }
.rs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rs-del { flex: 0 0 auto; width: 22px; height: 22px; border: none; background: #f3f4f6; color: var(--muted); font-size: 15px; line-height: 1; border-radius: 6px; cursor: pointer; transition: .15s; }
.rs-del:hover { background: #ffe3dc; color: var(--brand); }
.route-empty { font-size: 14px; color: var(--muted); text-align: center; padding: 10px 8px; line-height: 1.5; }
.route-go { border: none; background: linear-gradient(135deg, var(--brand), #f0744e); color: #fff; font-size: 16px; font-weight: 600; height: 42px; border-radius: 11px; cursor: pointer; transition: .15s; box-shadow: 0 4px 14px rgba(228, 87, 46, .28); }
.route-go:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(228, 87, 46, .34); }
.route-go:active { transform: translateY(0) scale(.99); }
/* 弹窗底部操作行：左清空（白底偏小） / 右开始导航（橙底偏大） */
.route-actions { display: flex; gap: 10px; margin-top: 2px; }
.route-clear {
  flex: 0 0 auto; height: 46px; padding: 0 16px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 14px; border-radius: 12px; cursor: pointer; transition: .15s;
}
.route-clear:hover { border-color: #ffb4a3; color: var(--brand); background: #fff6f3; }
.route-clear:active { transform: scale(.98); }
.route-go { flex: 1 1 auto; height: 46px; font-size: 16px; }
/* 弹窗右上角关闭按钮 */
.rp-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: none; background: #f3f4f6; color: #8a909c; font-size: 20px; line-height: 1;
  border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.rp-close:hover { background: #ffe3da; color: var(--brand); }
.op-addroute { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 5px 10px; font-size: 14px; cursor: pointer; }
.op-addroute:hover { border-color: var(--brand); color: var(--brand); }
.op-addroute.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== 智能路线推荐面板（#路线升级：手动选点 → 自动优选最短链路） ===== */
.route-rec-mask {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(18, 22, 32, .42);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .18s ease;
  padding: 16px;
}
.route-rec-mask.open { opacity: 1; visibility: visible; pointer-events: auto; }
.route-rec {
  width: 460px; max-width: 100%; max-height: 86vh; overflow-x: hidden; overflow-y: auto;
  background: var(--panel); border-radius: 18px; box-shadow: 0 18px 50px rgba(20,25,40,.28);
  display: flex; flex-direction: column; transform: translateY(8px) scale(.98);
  transition: transform .18s ease; position: relative;
}
.route-rec-mask.open .route-rec { transform: none; }
.rr-close {
  position: absolute; top: 12px; right: 14px; width: 30px; height: 30px;
  border: none; background: var(--surface-2); color: var(--muted); border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer; z-index: 2;
}
.rr-close:hover { background: #ffe7df; color: var(--brand); }
.rr-head { font-size: 18px; font-weight: 800; color: var(--ink); padding: 18px 56px 2px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rr-head-title { flex: 0 0 auto; }
/* 新鲜度标签移到标题同行右侧，省一行空间 */
.rr-head .rr-fresh { margin: 0; font-size: 11px; flex: 0 1 auto; justify-content: flex-end; }
.rr-sub { font-size: 13px; color: var(--muted); padding: 0 20px 12px; line-height: 1.5; }
.rr-origin { padding: 0 18px 10px; border-bottom: 1px solid var(--line); }
.rr-origin-label { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.rr-areas-hint { font-size: 11px; color: var(--muted); margin-bottom: 5px; line-height: 1.35; }
.rr-areas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.rr-area {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 5px 10px; border-radius: 17px; font-size: 12.5px; cursor: pointer; transition: .15s;
}
.rr-area:hover { border-color: var(--brand); color: var(--brand); background: #fff6f3; }
.rr-area-name { font-weight: 500; }
.rr-area-cnt { font-size: 11px; font-weight: 700; color: var(--brand); background: #fff0ec; border-radius: 10px; padding: 1px 6px; margin-left: 2px; }
.rr-area.active .rr-area-cnt { color: #fff; background: rgba(255,255,255,.22); }
.rr-locate {
  flex: 1; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 0 12px; border-radius: 17px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: .15s; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.rr-locate:hover { border-color: var(--brand); background: #fff6f3; }
.rr-origin-actions { display: flex; gap: 7px; margin-top: 2px; align-items: stretch; }
.rr-pick { flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .15s; display: flex; align-items: center; justify-content: center; gap: 4px; }
.rr-pick:hover { border-color: var(--brand); color: var(--brand); background: #fff6f3; }
.rr-pick.active { background: var(--brand); color: #fff; border-color: var(--brand); }
/* 推荐旋钮 */
.rr-filters { padding: 4px 20px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.rr-frow { display: flex; align-items: center; gap: 10px; }
.rr-flabel { font-size: 12px; color: var(--muted); font-weight: 600; width: 32px; flex: 0 0 auto; }
.rr-seg { display: inline-flex; background: #f1efea; border-radius: 18px; padding: 3px; gap: 2px; flex: 1; }
.rr-seg button { flex: 1; border: none; background: transparent; color: var(--ink); font-size: 12.5px; font-weight: 500; padding: 6px 4px; border-radius: 15px; cursor: pointer; transition: .15s; white-space: nowrap; }
.rr-seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }
.rr-range { flex: 1; accent-color: var(--brand); height: 4px; }
.rr-rval { font-size: 12px; color: var(--ink); font-weight: 600; min-width: 38px; text-align: right; }
.rr-toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; margin: 0; }
.rr-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rr-toggle-track { width: 38px; height: 21px; border-radius: 11px; background: #d3d1c7; position: relative; transition: .18s; flex: 0 0 auto; }
.rr-toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: .18s; }
.rr-toggle input:checked + .rr-toggle-track { background: var(--brand); }
.rr-toggle input:checked + .rr-toggle-track::after { transform: translateX(17px); }
.rr-toggle-txt { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.rr-result {
  flex: 1 1 auto; min-height: 0;
  margin: 4px 12px 12px;                       /* 与上方控制区拉开，形成独立分区 */
  padding: 14px 14px 16px;
  background: var(--surface-2);                /* 浅灰底色：推荐路线结果区与上方可视分区 */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.rr-result::-webkit-scrollbar { width: 6px; }
.rr-result::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }
.rr-empty { font-size: 14px; color: var(--muted); text-align: center; padding: 24px 8px; line-height: 1.6; }
.rr-line { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.rr-line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rr-line-title { font-size: 16px; font-weight: 800; color: var(--brand); }
.rr-line-sub { font-size: 12px; color: var(--muted); }
.rr-line-stats { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.rr-line-stats span { background: var(--surface-2); padding: 3px 8px; border-radius: 7px; }
.rr-steps { display: flex; flex-direction: column; margin-bottom: 12px; }
.rr-step { display: flex; gap: 10px; padding: 9px 4px; cursor: pointer; border-radius: 8px; transition: .15s; }
.rr-step:hover { background: #fff6f3; }
.rr-step + .rr-step { border-top: 1px dashed var(--line); }
.rr-step-no {
  flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.rr-step-main { min-width: 0; }
.rr-step-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.rr-step-venue { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rr-flame { font-size: 11px; }
.rr-step-meta { font-size: 12px; color: var(--brand); margin-top: 2px; }
.rr-step-cnt { display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand); background: #fff0ec; border-radius: 9px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
.rr-step-ex { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rr-step-ex li { font-size: 12px; color: var(--muted); line-height: 1.4; padding-left: 10px; position: relative; }
.rr-step-ex li::before { content: "·"; position: absolute; left: 0; color: #c9b9b1; }
.rr-line-ops { display: flex; gap: 10px; }
.rr-view, .rr-go { flex: 1; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.rr-view { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.rr-view:hover { border-color: var(--brand); color: var(--brand); }
.rr-go { border: none; background: linear-gradient(135deg, var(--brand), #f0744e); color: #fff; box-shadow: 0 4px 12px rgba(228,87,46,.22); }
.rr-go:hover { filter: brightness(1.04); }
/* 数据新鲜度（低调提示，不抢眼） */
.rr-fresh { display: flex; align-items: center; gap: 6px; margin: 2px 20px 10px; font-size: 11px; line-height: 1.4; }
.rr-fresh-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; flex: 0 0 auto; }
.rr-fresh-txt { color: #8a8378; }
.rr-fresh-fresh-new .rr-fresh-dot { background: #6fae8e; }
.rr-fresh-fresh-new .rr-fresh-txt { color: #5f8f76; }
.rr-fresh-fresh .rr-fresh-dot { background: #7fb0ad; }
.rr-fresh-fresh .rr-fresh-txt { color: #5f8f8d; }
.rr-fresh-aging .rr-fresh-dot { background: #d9b65f; }
.rr-fresh-aging .rr-fresh-txt { color: #a8853f; }
.rr-fresh-stale .rr-fresh-dot { background: #cf7d63; }
.rr-fresh-stale .rr-fresh-txt { color: #b35f47; }
.rr-fresh-unknown .rr-fresh-dot { background: #9aa0a6; }
/* 已去过跳过提示 */
.rr-skip { font-size: 12px; color: #5f8f76; background: rgba(111,174,142,0.10); border-left: 3px solid #6fae8e; border-radius: 6px; padding: 8px 10px; }

/* ===== 推荐面板：起点/条件 可折叠块（默认收起，点标题展开，信息区随之放大） ===== */
.rr-block { border-bottom: 1px solid var(--line); }
.rr-block-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.rr-block-title { font-size: 13px; font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.rr-block-sum {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
.rr-chev { color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s ease; transform: rotate(90deg); }
.rr-block.collapsed .rr-chev { transform: rotate(0deg); }
.rr-block-body { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.rr-block.collapsed .rr-block-body { display: none; }
/* 起点按钮选中态：三类起点单选，同一时刻只高亮当前选中的那个（我的位置 / 预设地标 / 地图选点）。 */
.rr-locate.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.rr-area.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.rr-pick.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== 地图选点浮层（隐藏展览，仅可拖图钉；z-index 高于地图与推荐弹窗浮层，低于详情 99999） ===== */
.map-pick-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 99992;
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px 10px 16px; box-shadow: 0 12px 36px rgba(20,25,40,.28);
  max-width: min(92vw, 460px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.map-pick-bar.show { opacity: 1; visibility: visible; }
.mpb-txt { font-size: 13px; color: var(--ink); flex: 1; min-width: 0; }
.mpb-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.mpb-cancel { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.mpb-cancel:hover { border-color: var(--brand); color: var(--brand); }
.mpb-ok { border: none; background: linear-gradient(135deg, var(--brand), #f0744e); color: #fff; padding: 7px 18px; border-radius: 18px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(228,87,46,.22); }
.mpb-ok:hover { filter: brightness(1.04); }
@media (max-width: 760px) {
  .map-pick-bar { left: 12px; right: 12px; transform: none; max-width: none; }
}
/* ===== 路线清单页（从推荐「确定」进入：拖拽排序 + 单次导航） ===== */
.route-list-mask {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(18, 22, 32, .42);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .18s ease; padding: 16px;
}
.route-list-mask.open { opacity: 1; visibility: visible; pointer-events: auto; }
.route-list {
  width: 460px; max-width: 100%; max-height: 88vh; overflow: hidden;
  background: var(--panel); border-radius: 18px; box-shadow: 0 18px 50px rgba(20,25,40,.28);
  display: flex; flex-direction: column; transform: translateY(8px) scale(.98); transition: transform .18s ease; position: relative;
}
.route-list-mask.open .route-list { transform: none; }
/* 路线清单页头部：标题+操作同行，关闭按钮绝对定位右上角小圆 */
.rl-head { display: flex; align-items: center; gap: 10px; padding: 14px 52px 2px 18px; position: relative; }
.rl-title { font-size: 17px; font-weight: 800; color: var(--ink); flex: 1; }
/* 关闭按钮：绝对定位右上角，小圆，不占 flex 流 */
.rl-head .rl-close { position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; border: none; background: var(--surface-2); color: var(--muted); border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 1; transition: .15s; }
.rl-head .rl-close:hover { background: #ffe3da; color: var(--brand); }
/* 地图查看：标题同行右侧，自动推到最右（margin-left:auto 抵消关闭绝对定位） */
.rl-mapview { border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 16px; cursor: pointer; transition: .15s; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.rl-sub { font-size: 12px; color: var(--muted); padding: 4px 18px 8px; line-height: 1.4; }
.rl-list { padding: 10px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rl-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; transition: box-shadow .15s, border-color .15s; }
.rl-item:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(228,87,46,.12); }
.rl-item.dragging { box-shadow: 0 10px 24px rgba(20,25,40,.22); opacity: .96; cursor: grabbing; }
.rl-handle { flex: 0 0 auto; width: 24px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #b3b9c4; font-size: 15px; cursor: grab; touch-action: none; }
.rl-handle:active { cursor: grabbing; }
.rl-idx { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #f08a5d); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rl-main { flex: 1; min-width: 0; }
.rl-name-wrap { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rl-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.rl-venue { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rl-flame { font-size: 11px; }
.rl-cnt { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--brand); background: #fff0ec; border-radius: 9px; padding: 1px 7px; }
.rl-ex { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-ex li { font-size: 12px; color: var(--muted); line-height: 1.4; padding-left: 10px; position: relative; }
.rl-ex li::before { content: "·"; position: absolute; left: 0; color: #c9b9b1; }
.rl-meta { font-size: 11.5px; color: var(--brand); margin-top: 2px; }
.rl-nav { flex: 0 0 auto; border: none; background: linear-gradient(135deg, var(--brand), #f0744e); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.rl-nav:hover { filter: brightness(1.04); }
.rl-foot { display: flex; gap: 10px; padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.rl-back { flex: 1; height: 42px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; border-radius: 11px; cursor: pointer; transition: .15s; }
.rl-back:hover { border-color: #ffb4a3; color: var(--brand); background: #fff6f3; }
.rl-clear { flex: 1; height: 42px; border: 1px solid #f3c9c0; background: #fff; color: #c0584a; font-size: 14px; border-radius: 11px; cursor: pointer; transition: .15s; }
.rl-clear:hover { background: #fff0ec; border-color: #e08b7c; }

/* ===== 地图聚焦态返回条（只高亮推荐展时浮在地图上方） ===== */
.map-focus-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 1500; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 8px; box-shadow: 0 8px 24px rgba(20,25,40,.18);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; max-width: 92vw;
}
.map-focus-bar.show { opacity: 1; visibility: visible; }
.mfb-back { border: none; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .15s; }
.mfb-back:hover { filter: brightness(1.05); }
.mfb-txt { font-size: 12.5px; color: var(--ink); padding-right: 6px; }

@media (max-width: 760px) {
  .route-rec-mask { align-items: flex-end; padding: 0; }
  .route-rec { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .route-list-mask { align-items: flex-end; padding: 0; }
  .route-list { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .map-focus-bar { bottom: calc(16px + env(safe-area-inset-bottom)); left: 12px; right: 12px; transform: none; max-width: none; }
}
.iw-card .ops button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 9px;
  cursor: pointer; background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.card:hover { border-color: #f0b9a9; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring), var(--shadow-md); }
/* —— 卡片信息分层重构 —— */
/* 标题行：展名（最多 2 行省略）+ 距离钉右上，flex-start 让距离与首行对齐、不随展名行数漂移 */
.card .c-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card .c-title {
  margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.36;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.36em); /* 默认占满 2 行，短标题也留白；最多不超过 3 行 */
  flex: 1 1 auto; min-width: 0; word-break: break-word;
}
.card .c-title .flames { margin-left: 4px; }
.card .c-head-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.card .c-head-right .flames { margin-left: 0; margin-top: 1px; }
/* 元信息块：场馆 · 区域 / 主题 / 展期，三行统一图标引导 */
.card .c-meta { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.card .c-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.4; min-width: 0; }
.card .c-row .c-ic { flex: none; }
.card .c-row .c-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.card .c-venue { color: var(--ink); font-weight: 600; }
.card .c-venue .c-ic { color: var(--brand); }
.card .c-venue .c-sep { margin: 0 5px; color: #cfd3da; font-weight: 400; }
.card .c-venue .c-district { color: var(--muted); font-weight: 400; }
.card .c-theme { color: #7d7189; }
.card .c-theme .c-ic { color: #a99bbb; }
.card .c-date { color: var(--muted); }
.card .c-date .c-ic { color: #aab0ba; }
.card .tags { margin-top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: #eef0f2; color: #5b6470; letter-spacing: .2px; }
/* 种类：展览=暖陶土 / 活动=雾蓝（与状态、费用严格区分色相，避免一排绿） */
.tag.exh { background: #f7e9e3; color: #b3684d; }
.tag.act { background: #e8eef4; color: #5e7591; }
/* 状态：在展=鼠尾草绿 / 即将=浅金 / 已结束=中性灰 / 长期=薰衣草 / 待确认=藕灰 */
.tag.status-在展 { background: #e6efe9; color: #5b8a6f; }
.tag.status-即将 { background: #f6eddb; color: #9c7a36; }
.tag.status-已结束 { background: #eef0f2; color: #8a909b; }
.tag.status-长期 { background: #ecebf6; color: #766fae; }
.tag.status-待确认 { background: #f2eaf0; color: #977a90; }
/* 活动类别（快闪等）：长春花蓝，细描边 */
.tag.atype { background: #e9e8f5; color: #6c67ac; border: 1px solid #d6d3ee; }
/* 费用：免费=雾青（与在展的绿明确区分）/ 付费=雾玫瑰 / 待核实=沙色 */
.tag.fee-free { background: #e2eef0; color: #568089; }
.tag.fee-paid { background: #f4e7ea; color: #a45d6c; }
.tag.fee-unknown { background: #efece4; color: #9a8c74; }
/* 距离信息：钉标题行右上角，与首行对齐（flex-start），不随展名行数漂移 */
.dist-pill { flex: none; margin-top: 1px; font-size: 11px; font-weight: 700; color: #8a8276; background: #f3f1ec; padding: 2px 7px; border-radius: 999px; white-space: nowrap; letter-spacing: .2px; }
.dist-pill::before { content: "📍"; margin-right: 2px; font-size: 10px; -webkit-text-fill-color: initial; }
/* 地图起点标签（腾讯地图 Label 内容） */
.map-origin-label {
  background: #00b894; color: #fff; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); border: 1.5px solid #fff;
}
.hint { font-size: 13px; color: #9aa1ab; margin-top: 4px; line-height: 1.4; }
.card .ops { margin-top: 14px; display: flex; gap: 5px; flex-wrap: wrap; }
.card .ops button {
  flex: 1; font-size: 13px; padding: 4px 0; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--ink);
}
.card .ops button:hover { border-color: var(--brand); color: var(--brand); }
/* 空状态（含「已去过」无记录提示）：轻量、精致、双向居中 */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--muted);
  padding: 44px 18px; min-height: 220px;
  font-size: 14px; line-height: 1.7; font-weight: 500;
}

/* 列表双栏（可看 / 已打卡）切换 */
.list-head { padding: 8px 10px 6px; border-bottom: 1px solid var(--line); background: var(--panel); flex: 0 0 auto; }
.list-tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 12px; }
.list-tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 7px 0; border-radius: 8px; transition: background .15s, color .15s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.list-tab:active { transform: scale(.97); }
.list-tab .cnt {
  font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: rgba(0,0,0,.08); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.list-tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,25,40,.12); }
.list-tab.on .cnt { background: var(--brand); color: #fff; }
/* 卡片「已去」切换 */
.card .visit-toggle {
  font-size: 13px; font-weight: 600;
  padding: 4px 0; border-radius: 7px; cursor: pointer; transition: .15s;
  border: 1px solid var(--accent); background: rgba(0,184,148,.08); color: var(--accent);
}
.card .visit-toggle:hover { background: rgba(0,184,148,.16); }
.card .visit-toggle.done { border-color: var(--line); background: #f7f8fa; color: var(--muted); }
.card .visit-toggle:active { transform: scale(.99); }
/* 左侧紧凑行（空间索引）*/
.list-row {
  border-bottom: 1px solid var(--line); margin: 0 -8px; padding: 10px 8px;
  border-radius: 8px; cursor: pointer; transition: background .12s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #f4f6f9; }
.list-row.active { background: #fef5f1; }
.list-row-main { display: flex; align-items: flex-start; gap: 8px; }
.list-row-info { flex: 1; min-width: 0; }
.list-row-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 第二行：场馆 · 区域 + 🔥（主题单独在下方一行） */
.list-row-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.list-row-venue { font-size: 12px; color: var(--muted); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-venue .sep { margin: 0 5px; color: #cfd3da; }
.list-row-sub .flames { flex: none; }
/* 主题：独占场馆下一行，主题色文字 */
.list-row-theme { font-size: 12px; font-weight: 600; margin-top: 3px; color: #5b6470; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 左侧行：状态 + 主题 标签行 */
.list-row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag.kind-exhibition { background: #f7e9e3; color: #b3684d; }
.tag.kind-activity { background: #e8eef4; color: #5e7591; }
.tag.theme { background: #f1f3f6; color: #5b6470; display: inline-flex; align-items: center; gap: 4px; }
.tag.theme .th-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
/* 底部两个按键：定位 / 已去过 */
.list-row-ops { display: flex; gap: 8px; margin-top: 9px; }
.list-locate, .list-visit {
  flex: 1; height: 30px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, transform .12s; padding: 0;
}
.list-locate .lv-ic, .list-visit .lv-ic { display: block; }
.list-locate { border-color: var(--brand); color: var(--brand); }
.list-locate:hover { background: rgba(0,82,255,.07); }
.list-visit:hover { border-color: var(--accent); color: var(--accent); }
.list-visit.done { border-color: var(--accent); background: var(--accent); color: #fff; }
.list-visit.done .lv-ic { color: #fff; }
.list-visit.undo { border-color: var(--line); background: #f7f8fa; color: var(--muted); }
.list-locate:active, .list-visit:active { transform: scale(.97); }
/* 火焰热度徽标（卡片标题 / 弹窗 tags 内联）：金火=热度，flex 对齐 */
.flames { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; margin-left: 5px; }
.flame { width: 15px; height: 15px; display: block; }
/* 高热开关按钮 */
.btn-hot {
  width: 100%; margin-top: 2px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); height: 32px; border-radius: 9px; cursor: pointer;
  font-size: 16px; transition: .15s;
}
.btn-hot.on { background: #fff3e0; color: #e8590c; border-color: #ff922b; font-weight: 600; }
.btn-hot:hover { border-color: #ff922b; }

/* 确认弹窗（防误触） */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,25,40,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 14px; padding: 22px 20px 18px;
  width: 300px; max-width: 86vw; box-shadow: 0 20px 60px rgba(0,0,0,.22);
  transform: scale(.96); transition: transform .2s cubic-bezier(.2,0,0,1);
}
.modal-mask.show .modal { transform: scale(1); }
.modal .mtitle { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.modal .mmsg { font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; white-space: pre-line; }
.modal .mactions { display: flex; gap: 10px; }
.modal .mactions button {
  flex: 1; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 16px; color: var(--ink); transition: .15s;
}
.modal .mactions button.yes { background: var(--brand); color: #fff; border-color: var(--brand); }
.modal .mactions button:active { transform: scale(.98); }

/* Map */
.map-wrap { position: relative; flex: 1; min-width: 0; isolation: isolate; overflow: hidden; }

/* 地图图例：展览=红 / 活动=蓝 / 混合=红蓝对半 */
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 50; display: flex; gap: 13px; align-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; box-shadow: 0 2px 8px rgba(20,25,40,.12); font-size: 13px; color: #4b5563; backdrop-filter: blur(2px); }
.lg-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: 0 0 auto; }
.lg-exh { background: #e4572e; }
.lg-act { background: #2e86de; }
.lg-mix { background: linear-gradient(90deg, #2e86de 0 50%, #e4572e 50% 100%); }
@media (max-width: 760px) { .map-legend { left: auto; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px 9px; gap: 9px; font-size: 12px; } }
#map, #canvasMap { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
#canvasMap { background: #eef1f5; }
.banner {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: #fff7e6; color: #92591f; border: 1px solid #ffe1a8;
  padding: 8px 14px; border-radius: 10px; font-size: 12px; box-shadow: var(--shadow);
  z-index: 10; max-width: 90%;
}
.toast {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(31,36,48,.92); color: #fff; padding: 9px 16px; border-radius: 10px;
  font-size: 13px; z-index: 30; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* InfoWindow (tencent) content */
.iw { font-size: 13px; width: 240px; max-width: 240px; box-sizing: border-box; }
.iw .t { font-weight: 700; margin-bottom: 4px; word-break: break-word; }
.iw .m { color: #555; margin-bottom: 8px; line-height: 1.5; word-break: break-word; }
.iw .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.iw .ops button { flex: 1 1 auto; font-size: 15px; padding: 5px 8px; border-radius: 6px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
/* 场馆聚合弹窗（一个 marker 显示该馆全部展览/活动卡片） */
.iw-group {
  width: 268px; max-width: 90vw; box-sizing: border-box;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 25, 40, .18);
  display: flex; flex-direction: column; max-height: 340px;
}
/* 自绘浮层容器：body 级固定浮层（脱离腾讯地图 overlay pane），z-index 高于地图与路线弹窗之外所有层；按钮 100% 可点 */
.map-popup { position: fixed; width: 268px; max-width: 86vw; z-index: 99970; transition: opacity .2s ease; opacity: 1; }
.map-popup::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 10px solid #fff; filter: drop-shadow(0 4px 3px rgba(20, 25, 40, .12));
}
/* marker 靠顶、浮层翻到下方时：箭头朝上 */
.map-popup.below::after {
  bottom: auto; top: -9px; border-top: none;
  border-bottom: 10px solid #fff; filter: drop-shadow(0 -4px 3px rgba(20, 25, 40, .12));
}
/* 场馆名称头部：常驻（不随卡片滚动），右侧关闭按钮 */
.iw-ghead {
  position: sticky; top: 0; z-index: 3; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 12px; background: linear-gradient(135deg, #ffffff, #fbfbfd);
  border-bottom: 1px solid #eef0f4;
}
.iw-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: #2b2f38; min-width: 0; flex: 1 1 auto; }
.iw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.iw-count {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand); border-radius: 999px; padding: 1px 8px;
}
.iw-close {
  flex: 0 0 auto; position: relative; z-index: 1; width: 26px; height: 26px; border: none; border-radius: 8px;
  background: #f1f2f5; color: #8a909c; font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.iw-close:hover { background: #ffe3da; color: var(--brand); }
.iw-body { padding: 2px 12px 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.iw-card { padding: 11px 0; border-bottom: 1px solid #f2f3f6; }
.iw-card:last-child { border-bottom: none; }
/* 一栋楼多机构：建筑级卡片内按画廊分节 */
.iw-venue { padding-top: 4px; }
.iw-venue + .iw-venue { border-top: 1px dashed #e6e8ec; margin-top: 4px; }
.iw-venue-head { display: flex; align-items: center; gap: 6px; padding: 7px 0 3px; }
.iw-vname { font-size: 15px; font-weight: 700; color: #2b2f38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.iw-vcount { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #5b6573; background: #eef0f3; border-radius: 999px; padding: 1px 8px; }
.iw-card .t { font-weight: 700; font-size: 16px; color: #1f232b; margin-bottom: 2px; word-break: break-word; }
.iw-venue-line { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.iw-date { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.iw-card .tags { margin: 6px 0 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.iw-card .ops { display: flex; gap: 6px; }
.iw-card .ops button {
  flex: 1 1 auto; font-size: 15px; padding: 6px 8px; border-radius: 8px;
  border: 1px solid #e6e8ec; background: #fff; color: #454b56; cursor: pointer; transition: .15s;
}
.iw-card .ops button:hover { border-color: var(--brand); color: var(--brand); }
.iw-card .ops button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* canvas 降级模式的浮层卡片容器 */
.canvas-popup {
  position: absolute; z-index: 18; display: none; width: 268px; max-width: 86vw;
  filter: drop-shadow(0 10px 30px rgba(20, 25, 40, .18));
}

/* ===== 响应式：移动端抽屉式 ===== */
@media (min-width: 761px) {
  .icon-btn { display: none !important; }
  .scrim { display: none !important; }
}
@media (max-width: 760px) {
  .icon-btn { display: inline-flex; }
  /* 窄屏顶部：按钮组强制单行、压缩，避免被挤成两排撑高头部（padding 与 WEB 统一用基础值） */
  .topbar .brand { font-size: 15px; }
  .actions { flex: 1 1 auto; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
  .actions button { height: 32px; padding: 0 9px; font-size: 12px; gap: 4px; border-radius: 8px; }
  .actions button .ic { font-size: 14px; }
  .sidebar {
    position: absolute; top: 49px; left: 0; bottom: 0;
    width: 86%; max-width: 300px; min-width: 0; height: auto;
    z-index: 15; background: var(--panel); border-right: 1px solid var(--line);
    box-shadow: 2px 0 18px rgba(20, 25, 40, .20);
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .layout.drawer .sidebar { transform: translateX(0); }
  .layout.drawer .scrim { display: block; }
  /* 触控优化：输入框/下拉字号统一 13px，与桌面一致 */
  .seg button { padding: 9px 3px; }
  .card { padding: 12px; }
  .iw, .iw-group { max-width: 80vw; }
  .iw { width: auto; }
  /* 路线面板：手机端改为底部抽屉（与详情抽屉同范式），复用 detailScrim 遮罩、半屏可见地图 */
  .route-panel {
    width: auto; max-width: calc(100vw - 24px);
    max-height: calc(100vh - 64px);
    border-radius: 18px;
    transform: scale(.94) translateY(8px);
  }
  .route-modal-mask.open .route-panel { transform: none; }
}
/* 极窄屏（≤420px，如 iPhone SE / 小屏 Android）：顶部按钮转图标化，保证单行不溢出 */
@media (max-width: 420px) {
  .brand .sub { display: none; }
  .actions button .lbl { display: none; }
  .actions button { padding: 0 9px; }
  .mode-badge { display: none; }
}

/* ===================== 用户系统（Phase 1 · 提质 + 响应式）===================== */
/* 顶栏登录按钮（登录后高亮）*/
.actions button#btnAuth.logged { border-color: var(--brand-2); color: var(--brand-2); background: #eef5ff; }
.actions button#btnAuth.logged:hover { background: #e3eefe; }

/* 用户下拉菜单（圆角卡片化）*/
.user-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 12px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 25, 40, .16); min-width: 150px; overflow: hidden;
  flex-direction: column; padding: 6px;
}
.user-menu.show { display: flex; }
.user-menu button {
  border: none; background: #fff; color: var(--ink); text-align: left;
  padding: 11px 12px; font-size: 14px; border-radius: 8px; cursor: pointer; width: 100%; transition: .15s;
}
.user-menu button:hover { background: #f4f6f9; }

/* 登录 / 注册遮罩 */
.auth-mask {
  position: fixed; inset: 0; background: rgba(20, 25, 40, .42);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  z-index: 99980; display: none; align-items: center; justify-content: center; padding: 16px;
}
.auth-mask.show { display: flex; }

/* 品牌头部 */
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.auth-logo {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center; font-size: 23px;
  box-shadow: 0 5px 14px rgba(228, 87, 46, .28);
}
.auth-brand-txt { display: flex; flex-direction: column; line-height: 1.32; }
.auth-brand-txt b { font-size: 16px; color: var(--ink); letter-spacing: .3px; }
.auth-brand-txt span { font-size: 12px; color: var(--muted); }

.auth-modal {
  width: 360px; max-width: 100%; background: #fff; border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: 0 18px 52px rgba(20, 25, 40, .26); position: relative;
  animation: authPop .22s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes authPop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: none; background: transparent;
  border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.auth-close:hover { background: #f1f3f6; color: var(--ink); }
.auth-title { font-size: 21px; font-weight: 700; color: var(--ink); margin: 2px 0 4px; }
.auth-sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.auth-modal .field { margin-bottom: 12px; }
.auth-modal .field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.auth-modal .field input {
  width: 100%; height: 46px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 15px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.auth-modal .field input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(46, 134, 222, .16); }
.auth-err { color: #e03131; font-size: 13px; min-height: 18px; margin: 2px 0 8px; }
.auth-err.shake { animation: authShake .32s ease; }
@keyframes authShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.auth-submit {
  width: 100%; height: 48px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--brand-2); color: #fff; font-size: 15px; font-weight: 600; transition: .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: .75; cursor: default; transform: none; }
.auth-submit .spin {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; animation: authSpin .7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-switch {
  width: 100%; margin-top: 10px; border: none; background: transparent; color: var(--brand-2);
  font-size: 13px; cursor: pointer; padding: 9px; border-radius: 9px; transition: .15s;
}
.auth-switch:hover { background: #f2f7ff; }
.auth-links { text-align: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover { color: var(--brand-2); text-decoration: underline; }

/* 我的打卡面板（右侧浮层 / 移动端全宽）*/
.my-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 320px; max-width: 86vw; z-index: 18;
  background: var(--panel); border-left: 1px solid var(--line); box-shadow: -6px 0 20px rgba(20, 25, 40, .08);
  transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column;
}
.my-panel.open { transform: translateX(0); }
.my-head {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 16px;
  border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600;
}
.my-stats { padding: 9px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.my-stats b { color: var(--brand-2); font-size: 15px; }
.my-list { flex: 1; overflow-y: auto; padding: 10px; }
.my-empty { padding: 28px 18px; color: var(--muted); font-size: 14px; text-align: center; }
.my-item {
  display: flex; align-items: center; gap: 8px; padding: 11px; border: 1px solid var(--line);
  border-radius: 11px; margin-bottom: 8px; flex-wrap: wrap;
}
.my-i-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-i-meta { font-size: 12px; color: var(--muted); width: 100%; }
.my-i-remove {
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 9px;
  font-size: 12px; padding: 6px 10px; cursor: pointer; transition: .15s;
}
.my-i-remove:hover { border-color: var(--brand); color: var(--brand); }

/* 登录 / 我的打卡 · 响应式 */
@media (max-width: 760px) {
  .auth-mask { align-items: flex-end; padding: 0; }
  .auth-modal {
    width: 100%; max-width: 100%; border-radius: 22px 22px 0 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    animation: authSheet .3s cubic-bezier(.2, 0, 0, 1);
  }
  @keyframes authSheet { from { transform: translateY(100%); } to { transform: none; } }
  .auth-logo { width: 40px; height: 40px; font-size: 20px; }
  .auth-close { top: 14px; right: 14px; width: 36px; height: 36px; }
  .my-panel { width: 100%; max-width: 100%; }
}
@media (max-width: 420px) {
  .auth-modal { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .auth-title { font-size: 19px; }
  .auth-modal .field input { height: 46px; font-size: 15px; }
  .auth-submit { height: 48px; }
  .user-menu { right: 8px; min-width: 140px; }
}

/* ---------- 导航三选一弹层 ---------- */
.nav-mask {
  position: fixed; inset: 0; background: rgba(20, 25, 40, .42);
  display: none; align-items: center; justify-content: center;
  z-index: 99996; padding: 16px;
}
.nav-mask.open { display: flex; animation: navFade .18s ease; }
@keyframes navFade { from { opacity: 0; } to { opacity: 1; } }
.nav-modal {
  width: 320px; max-width: 100%; background: var(--panel); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(20, 25, 40, .28); padding: 18px; animation: navPop .2s ease;
}
@keyframes navPop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-title { font-size: 17px; font-weight: 700; color: var(--ink); text-align: center; }
.nav-sub { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 12px; line-height: 1.4; word-break: break-all; }
.nav-opts { display: flex; flex-direction: column; gap: 10px; }
.nav-opt {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer;
  transition: .15s; text-align: left;
}
.nav-opt:hover { border-color: var(--brand); box-shadow: 0 3px 12px rgba(228, 87, 46, .14); transform: translateY(-1px); }
.nav-opt .n-ic { font-size: 22px; line-height: 1; display: inline-flex; align-items: center; }
.nav-logo { width: 26px; height: 26px; display: block; flex: 0 0 auto; }
.nav-opt .n-tx { display: flex; flex-direction: column; }
.nav-opt .n-tx b { font-size: 15px; color: var(--ink); font-weight: 600; }
.nav-opt .n-tx small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.nav-opt.nav-tencent { border-left: 4px solid #1aad19; }
.nav-opt.nav-amap { border-left: 4px solid #E60012; }
.nav-opt.nav-baidu { border-left: 4px solid #2932e1; }
.nav-cancel {
  width: 100%; margin-top: 12px; border: none; background: #f3f4f6; color: var(--muted);
  font-size: 15px; height: 40px; border-radius: 11px; cursor: pointer; transition: .15s;
}
.nav-cancel:hover { background: #e9ebee; color: var(--ink); }
@media (max-width: 420px) {
  .nav-modal { width: 100%; }
}


/* ===== 详情底部抽屉（移动端：替代地图内卡片浮层，保证关闭/路线/导航/打卡按钮可见可点）===== */
.detail-scrim { position: fixed; inset: 0; background: rgba(18,22,33,.4); z-index: 54; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.detail-scrim.show { opacity: 1; visibility: visible; }
.detail-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,0,0,1); max-height: 82vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.detail-sheet.open { transform: translateY(0); }
.ds-handle { width: 40px; height: 4px; border-radius: 999px; background: #d8dce3; margin: 9px auto 2px; flex: 0 0 auto; cursor: pointer; }
.ds-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 14px 18px; }
.detail-sheet button { touch-action: manipulation; }
.detail-sheet .iw-group { width: 100%; max-width: 100%; box-shadow: none; max-height: none; border-radius: 0; }
.detail-sheet .iw-body { overflow: visible; padding: 0 12px 4px; }
/* 极简定位重做（Minimalist Design System）：展馆栏上下 8px 均衡留白，中间横线(#e6e8ec)成为清晰分隔而非压字；展馆名比展名大 2px；展名距中间横线用统一 8px 令牌，与展馆栏对称 */
.detail-sheet .iw-ghead { border-radius: 0; padding: 8px 12px; border-bottom: 1px solid #e6e8ec; }
.detail-sheet .iw-ghead .iw-title { font-size: 18px; }
.detail-sheet .iw-card { padding-top: 8px; padding-bottom: 8px; }
@media (min-width: 761px) { .detail-scrim { display: none !important; } .detail-sheet { display: none !important; } }

/* #6 双轨脚手架：仅在预览轨（Mo 自用 8099）显示的轨道角标，稳定轨不创建该元素 */
.track-tag { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .3px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; background: #f7f7f8; white-space: nowrap; }


/* ===== 免责声明 / 授权门（#4） ===== */
.disclaimer-mask{position:fixed;inset:0;z-index:99995;background:rgba(15,18,28,.55);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;}
.disclaimer-mask.open{opacity:1;visibility:visible;}
.disclaimer-modal{position:relative;width:340px;max-width:92vw;background:#fff;border-radius:18px;padding:22px 20px 20px;box-shadow:0 24px 64px rgba(15,18,28,.35);transform:scale(.94);transition:transform .2s cubic-bezier(.2,0,0,1);}
.disclaimer-mask.open .disclaimer-modal{transform:none;}
.disc-title{font-size:18px;font-weight:700;color:#1f232b;margin-bottom:10px;}
.disc-body{font-size:14px;line-height:1.7;color:#454b56;margin-bottom:16px;}
.disc-body p{margin:0 0 10px;}
.disc-body p:last-child{margin-bottom:0;}
.disc-lead{font-size:14.5px;color:#2f343d;font-weight:500;}
.disc-lead-note{font-size:13px;color:#8a8276;}
.disc-ok{width:100%;height:46px;border:none;border-radius:12px;background:#e8743b;color:#fff;font-size:15px;font-weight:600;cursor:pointer;}
.disc-ok:disabled{background:#e2ddd5;color:#aaa;cursor:not-allowed;}

/* ===== 注销账户（间接式） ===== */
.delete-mask{position:fixed;inset:0;z-index:99995;background:rgba(15,18,28,.55);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;}
.delete-mask.open{opacity:1;visibility:visible;}
.delete-modal{position:relative;width:360px;max-width:92vw;background:#fff;border-radius:18px;padding:22px 20px 20px;box-shadow:0 24px 64px rgba(15,18,28,.35);transform:scale(.94);transition:transform .2s cubic-bezier(.2,0,0,1);}
.delete-mask.open .delete-modal{transform:none;}
.del-close{position:absolute;top:12px;right:12px;width:30px;height:30px;border:none;border-radius:50%;background:#f1eee9;color:#6b7280;font-size:18px;cursor:pointer;line-height:1;}
.del-title{font-size:18px;font-weight:700;color:#1f232b;margin-bottom:10px;}
.del-warn{font-size:13px;line-height:1.6;color:#c0392b;background:#fdf0ee;border:1px solid #f6d6d0;border-radius:10px;padding:10px 12px;margin-bottom:14px;}
.del-field{display:block;font-size:13px;color:#6b7280;margin-bottom:12px;}
.del-field input,.del-field textarea{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #e3ddd2;border-radius:10px;font-size:14px;font-family:inherit;box-sizing:border-box;resize:vertical;}
.del-err{color:#c0392b;font-size:13px;min-height:18px;margin-bottom:8px;}
.del-actions{display:flex;gap:10px;}
.del-cancel{flex:1;height:46px;border:1px solid #e3ddd2;background:#fff;color:#454b56;border-radius:12px;font-size:15px;cursor:pointer;}
.del-confirm{flex:1;height:46px;border:none;background:#c0392b;color:#fff;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;}

/* ===== 我的面板底部：隐私/注销入口 ===== */
.my-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #eee;}
.my-link{background:none;border:none;color:#6b7280;font-size:13px;cursor:pointer;text-decoration:none;padding:4px 0;}
.my-link:hover{color:#3a3f4a;}
.my-link.danger{color:#c0392b;}
.my-link.danger:hover{color:#a93226;}

/* ===== 展览详情页（全屏弹层）===== */
.exh-detail-scrim{position:fixed;inset:0;z-index:99998;background:rgba(15,18,28,.5);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;}
.exh-detail-scrim.show{opacity:1;visibility:visible;}
.exh-detail{position:fixed;inset:0;z-index:99999;background:var(--bg);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;transform:translateY(100%);transition:transform .3s cubic-bezier(.2,0,0,1);}
.exh-detail.open{transform:translateY(0);}
.exh-detail-body{padding:0 0 32px;}

/* 主题色块占位头图 */
.exh-cover{position:relative;width:100%;height:200px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.exh-cover-inner{text-align:center;padding:0 20px;}
.exh-cover-theme{display:inline-block;font-size:22px;font-weight:700;letter-spacing:1px;padding:6px 18px;border-radius:999px;background:rgba(255,255,255,.18);backdrop-filter:blur(4px);}

/* 标题区 */
.exh-detail-header{position:relative;padding:14px 52px 8px 16px;background:var(--panel);border-bottom:1px solid var(--line);}
.exh-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:none;border-radius:50%;background:rgba(0,0,0,.06);color:var(--ink);font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:.15s;}
.exh-close:hover{background:rgba(0,0,0,.12);}
.exh-title{font-size:20px;font-weight:700;color:var(--ink);margin:0 0 6px;line-height:1.4;}
.exh-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--muted);}
.exh-status{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:500;background:#f0f1f4;color:var(--muted);}
.exh-status.status-在展{background:#e6f4ea;color:#1a7f37;}
.exh-status.status-即将{background:#fff3cd;color:#8a6d00;}
.exh-status.status-已结束{background:#fde8e8;color:#c0392b;}
.exh-venue-row{color:var(--ink);font-weight:500;}

/* 元信息 */
.exh-meta{padding:12px 16px;background:var(--panel);border-bottom:1px solid var(--line);}
.exh-meta-row{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:var(--ink);line-height:1.6;padding:3px 0;}
.exh-meta-row .exh-ic{flex-shrink:0;width:18px;text-align:center;font-size:13px;}

/* 描述 */
.exh-desc{margin-top:10px;padding:14px 16px;background:var(--panel);border-bottom:1px solid var(--line);}
.exh-desc-label{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:8px;}
.exh-desc-body{font-size:15px;line-height:1.75;color:var(--ink);}

/* 底部返回栏（固定在详情页底部）*/
.exh-backbar{position:sticky;bottom:0;padding:12px 16px;background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -4px 14px rgba(20,25,40,.05);}
.exh-back{width:100%;height:46px;border:none;border-radius:12px;background:var(--brand);color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:.15s;}
.exh-back:hover{filter:brightness(1.05);}
.exh-back:active{transform:scale(.99);}

/* 操作按钮 */
.exh-ops{display:flex;gap:10px;padding:14px 16px;flex-wrap:wrap;}
.exh-ops button{flex:1;min-width:90px;height:46px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font-size:15px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:.15s;}
.exh-ops button:hover{border-color:var(--brand);color:var(--brand);}
.exh-ops button.on{background:var(--brand);color:#fff;border-color:var(--brand);}
.exh-op-ic{font-size:16px;}

/* 桌面端：限制宽度居中显示 */
@media (min-width: 761px) {
  .exh-detail{left:50%;transform:translateX(-50%) translateY(100%);width:100%;max-width:520px;margin:0 auto;box-shadow:-8px 0 30px rgba(0,0,0,.18);}
  .exh-detail.open{transform:translateX(-50%) translateY(0);}
}
