/* 湖北省汽车维修门店一张图系统 —— 样式表
   由 v7.1 原样式表迁移而来（含手机端底部抽屉整体滚动修复） */

/* ==========================================================================
   全局样式 —— 政企风格（深蓝主色 + 浅灰底 + 白卡片）
   ========================================================================== */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; height:100%; overflow:hidden; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color:#1f2d3d;
  background:#eef1f6;
  -webkit-font-smoothing: antialiased;
}
/* 顶部标题栏 */
.app-header {
  height:58px;
  background:linear-gradient(90deg,#0b3d91 0%,#14539a 55%,#1a64b8 100%);
  color:#fff;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px;
  box-shadow:0 2px 8px rgba(11,61,145,.28);
  position:relative; z-index:20;
}
.app-header .logo {
  width:30px;height:30px;border-radius:6px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.35);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;margin-right:12px;flex:none;
}
.app-header h1 { font-size:20px; font-weight:600; letter-spacing:2px; }
.app-header .sub { font-size:12px; opacity:.75; margin-left:12px; letter-spacing:1px; }
.app-header .right { font-size:12px; opacity:.85; display:flex; align-items:center; gap:14px; }
.app-header .right .dot { width:7px;height:7px;border-radius:50%;background:#38e07b;display:inline-block;margin-right:5px; }

/* 主体布局：左列表 + 右地图 */
.app-body { position:absolute; top:58px; left:0; right:0; bottom:0; display:flex; }

/* ---------- 左侧侧边栏 ---------- */
.sidebar {
  width:330px; flex:none;
  background:#fff;
  border-right:1px solid #d8dee9;
  display:flex; flex-direction:column;
  box-shadow:2px 0 8px rgba(15,34,67,.06);
  z-index:10;
}
.side-block { padding:14px 16px 12px; border-bottom:1px solid #eceff5; }
.side-title {
  font-size:14px;font-weight:600;color:#0b3d91;
  display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;
}
.side-title::before {
  content:"";width:3px;height:14px;background:#0b3d91;
  display:inline-block;margin-right:8px;border-radius:2px;
}
.side-title span.flex { flex:1; }
.side-title .count { font-size:12px;color:#7a8699;font-weight:400; }

/* 统计卡片 */
.stat-row { display:flex; gap:8px; }
.stat-card {
  flex:1; background:#f4f7fc; border:1px solid #e3eaf6; border-radius:6px;
  padding:8px 6px; text-align:center;
}
.stat-card b { display:block;font-size:18px;color:#14539a;line-height:1.2; }
.stat-card i { font-style:normal;font-size:11px;color:#7a8699; }

/* 搜索框 */
.search-box { position:relative; }
.search-box input {
  width:100%; height:34px; line-height:34px;
  border:1px solid #d5dce8; border-radius:4px;
  padding:0 30px 0 32px; font-size:13px; color:#1f2d3d;
  outline:none; transition:border-color .15s;
}
.search-box input:focus { border-color:#14539a; box-shadow:0 0 0 2px rgba(20,83,154,.1); }
.search-box .ico { position:absolute; left:10px; top:9px; color:#98a4b8; font-size:13px; }
.search-box .clr {
  position:absolute; right:8px; top:8px; width:18px;height:18px;line-height:17px;
  text-align:center; border-radius:50%; background:#c9d2e0; color:#fff;
  cursor:pointer; font-size:12px; display:none;
}
.search-box .clr:hover { background:#98a4b8; }

/* 门店列表 */
.store-list { flex:1; overflow-y:auto; padding:6px 8px 16px; background:#fafbfd; }
.store-list::-webkit-scrollbar { width:8px; }
.store-list::-webkit-scrollbar-thumb { background:#c8d0de; border-radius:4px; }
.store-list::-webkit-scrollbar-track { background:transparent; }
.store-item {
  padding:9px 10px; margin-bottom:4px;
  border:1px solid #eef1f6; border-radius:5px;
  background:#fff; cursor:pointer;
  transition:all .15s; position:relative;
}
.store-item:hover { border-color:#9dbdea; background:#f3f8ff; transform:translateX(2px); }
.store-item.active { border-color:#14539a; background:#eaf2ff; box-shadow:inset 3px 0 0 #14539a; }
.store-item .nm {
  font-size:13px; color:#1f2d3d; font-weight:600; line-height:1.4;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-right:6px;
}
.store-item .ds { font-size:11px; color:#8d97a8; margin-top:3px; display:flex; gap:6px; }
.store-item .ds em { font-style:normal; background:#eef2f8; padding:0 5px; border-radius:3px; color:#6b7789; }
.store-empty { text-align:center; color:#a2abba; font-size:13px; padding:30px 0; }

.side-foot { padding:10px 16px; border-top:1px solid #eceff5; font-size:11px; color:#98a4b8; line-height:1.7; }

/* ---------- 右侧地图区 ---------- */
/* 【重要】天地图内部 pane 自带 z-index 200~1000（瓦片200/覆盖物400/标点600/弹窗700/控件800/顶层1000）。
   若地图容器不形成独立"层叠上下文"，这些内部图层会逃逸到页面层，盖住工具条、提示条、右键菜单、
   模态框等浮层（Chrome/Edge 实测会盖住）。因此：
   1) .map-wrap 加 isolation:isolate —— 内部元素与页面其他部分完全隔离；
   2) #map 加 z-index:0 —— 天地图所有内部 pane 被关在地图容器这一层里，
      后面的兄弟浮层只要 z-index > 0 就一定显示在地图之上。 */
.map-wrap { flex:1; position:relative; background:#eaeef4; isolation:isolate; z-index:0; }
#map { position:absolute; inset:0; z-index:0; }

/* 地图右上角工具条（top 跟随提示条高度，避免被提示条压住） */
.map-toolbar {
  position:absolute; top:calc(var(--notice-h,0px) + 12px); right:12px; z-index:10;
  display:flex; flex-direction:column; gap:8px; align-items:flex-end;
}
.tool-group {
  background:rgba(255,255,255,.96); border:1px solid #d6dde8; border-radius:5px;
  box-shadow:0 2px 8px rgba(15,34,67,.12); overflow:hidden; display:flex;
}
.tool-group button {
  border:none; background:transparent; padding:6px 12px; font-size:12px;
  color:#42546b; cursor:pointer; font-family:inherit; border-right:1px solid #e6ebf2;
}
.tool-group button:last-child { border-right:none; }
.tool-group button:hover { background:#f0f5fc; color:#14539a; }
.tool-group button.on { background:#14539a; color:#fff; }

/* 免 Key 预览模式提示条 */
.notice-bar {
  position:absolute; top:0; left:0; right:0; z-index:20; display:none;
  align-items:center; gap:8px;
  background:#fff7e6; border-bottom:1px solid #ffd591;
  color:#a8801a; font-size:12px; padding:7px 14px; line-height:1.6;
}
.notice-bar b { color:#d46b08; }
.notice-bar code { background:#fff1d6; padding:1px 5px; border-radius:3px; color:#d46b08; }
.notice-bar .sp { margin-left:auto; flex:none; color:#d9a441; cursor:pointer; font-size:13px; }
/* 提示条高度由 JS 写入 --notice-h，浮层自动下移，无需再写固定偏移 */

/* 地图左上角：状态提示 + 图例 合并成一列纵向排列。
   原先用固定像素（top:146px）定位图例，在窄屏上会因状态栏换行而错位，
   改为 flex 列布局后自动堆叠，桌面端与手机端都不会重叠。 */
.map-left {
  position:absolute; top:calc(var(--notice-h,0px) + 12px); left:12px; z-index:10;
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  max-width:calc(100% - 24px);
}
/* 地图左上角状态提示 */
.map-status {
  background:rgba(255,255,255,.96); border:1px solid #d6dde8; border-radius:5px;
  box-shadow:0 2px 8px rgba(15,34,67,.12);
  padding:8px 12px; font-size:12px; color:#42546b; max-width:290px; line-height:1.7;
}
.map-status .lv { font-weight:600; color:#0b3d91; }
.map-status .tip { color:#a8801a; }
.map-status label { display:block; margin-top:5px; cursor:pointer; color:#42546b; user-select:none; }
.map-status label input { vertical-align:-1px; margin-right:4px; }

/* 图例（紧跟状态栏下方，窄屏自动顺延，不再用固定 top 值） */
.map-legend {
  background:rgba(255,255,255,.95); border:1px solid #d6dde8; border-radius:5px;
  box-shadow:0 2px 8px rgba(15,34,67,.12); padding:8px 10px; font-size:11px; color:#42546b;
}
/* 图例标题可点击折叠（手机端默认收起，点一下展开） */
.map-legend .lg-t {
  font-weight:600; color:#0b3d91; margin-bottom:5px; font-size:12px;
  cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.map-legend .lg-t span.ar { color:#98a4b8; font-size:10px; font-weight:400; }
.map-legend .lg-body { display:block; }
.map-legend.fold .lg-body { display:none; }
.map-legend .lg-i { display:flex; align-items:center; gap:5px; margin-bottom:3px; }
.map-legend .lg-i s { width:12px;height:12px;display:inline-block;border:1px solid #9aa7b8;text-decoration:none; }

/* ---------- 信息弹窗（天地图 InfoWindow / 内置引擎 mm-iwbox 内部） ---------- */
/* 弹窗宽度统一走 --iw-w 变量：内置引擎容器直接引用同一变量，两端永远一致；
   官方引擎有自身容器约束，同样兼容 */
:root { --iw-w: 290px; }
.iw { width:var(--iw-w); font-family:inherit; }
.iw-hd {
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 10px 9px 12px;
  background:linear-gradient(90deg,#0b3d91,#1a64b8); color:#fff;
}
.iw-title { font-size:14px; font-weight:600; letter-spacing:.5px; }
.iw-close {
  border:none; background:rgba(255,255,255,.18); color:#fff; cursor:pointer;
  width:20px;height:20px;line-height:18px;border-radius:3px;font-size:15px;font-family:inherit;
  flex:none; padding:0;
}
.iw-close:hover { background:rgba(255,255,255,.36); }
.iw-bd { padding:6px 12px 4px; background:#fff; }
/* 企业类别标签（按一类/二类/三类着色） */
.iw-cat {
  display:inline-block; margin:4px 0 5px; padding:3px 10px; border-radius:3px;
  color:#fff; font-size:11px; letter-spacing:.5px;
}
.iw-row { display:flex; padding:5px 0; border-bottom:1px dashed #eceff5; font-size:12px; line-height:1.6; }
.iw-row:last-child { border-bottom:none; }
.iw-row .k { width:64px; flex:none; color:#8d97a8; }
.iw-row .v { flex:1; color:#26334a; word-break:break-all; }
.iw-row .v a { color:#14539a; text-decoration:none; font-weight:600; }
.iw-ft { padding:8px 12px 10px; background:#fff; display:flex; gap:8px; }
.iw-ft button {
  flex:1; border:1px solid #14539a; background:#eaf2ff; color:#14539a;
  height:28px; border-radius:4px; cursor:pointer; font-size:12px; font-family:inherit;
}
.iw-ft button:hover { background:#14539a; color:#fff; }
/* “门店有误”纠错按钮 */
.iw-ft button.warn { border-color:#d9534f; background:#fdf0ef; color:#d9534f; }
.iw-ft button.warn:hover { background:#d9534f; color:#fff; }
.iw-ft button.done { border-color:#c8d0de; background:#f4f7fc; color:#9aa5b6; cursor:default; }
.iw-ft button.done:hover { background:#f4f7fc; color:#9aa5b6; }

/* KEY 未配置提示遮罩 */
.mask {
  position:absolute; inset:0; z-index:40; background:rgba(238,241,246,.97);
  display:none; align-items:center; justify-content:center;
}
.mask .box {
  max-width:520px; background:#fff; border:1px solid #d8dee9; border-top:4px solid #d9534f;
  border-radius:6px; padding:26px 30px; box-shadow:0 8px 28px rgba(15,34,67,.14);
}
.mask h3 { font-size:17px; color:#d9534f; margin-bottom:12px; }
.mask p { font-size:13px; color:#42546b; line-height:1.9; }
.mask code { background:#f4f7fc; padding:2px 6px; border-radius:3px; color:#14539a; font-size:12px; }

/* ---------- 维修企业类别分布（可点击筛选） ---------- */
.cat-row { display:flex; gap:6px; margin-top:8px; }
.cat-chip {
  flex:1; min-width:0; border:none; border-radius:4px; padding:6px 3px;
  text-align:center; color:#fff; cursor:pointer; font-family:inherit;
  opacity:.45; transition:opacity .15s;
}
.cat-chip:hover { opacity:.8; }
.cat-chip.on { opacity:1; box-shadow:inset 0 0 0 2px rgba(255,255,255,.9); }
.cat-chip b { display:block; font-size:15px; line-height:1.3; }
.cat-chip i {
  display:block; font-style:normal; font-size:10px; opacity:.95;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ---------- 市 / 区县 二级联动筛选 ---------- */
.filter-row { display:flex; gap:6px; margin-top:8px; }
.filter-sel {
  flex:1; min-width:0; height:30px; border:1px solid #d5dce8; border-radius:4px;
  padding:0 4px; font-size:12px; color:#26334a; background:#fff; outline:none;
  font-family:inherit; cursor:pointer;
}
.filter-sel:focus { border-color:#14539a; }
.btn-mini {
  flex:none; height:30px; padding:0 10px; border:1px solid #d5dce8; background:#fff;
  color:#5a6a80; border-radius:4px; cursor:pointer; font-size:12px; font-family:inherit;
}
.btn-mini:hover { border-color:#14539a; color:#14539a; background:#f3f8ff; }

/* 列表项类别标识与已反馈标记 */
.store-item .nm .cd { display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;vertical-align:1px; }
.store-item .rp { color:#d9534f; background:#fdf0ef; padding:0 5px; border-radius:3px; }

/* ---------- 模态框（纠错反馈 / 新增门店 / 反馈记录） ---------- */
.modal {
  position:fixed; inset:0; z-index:100; background:rgba(16,30,54,.45);
  display:none; align-items:center; justify-content:center;
}
.modal .panel {
  width:470px; max-width:94vw; max-height:88vh; display:flex; flex-direction:column;
  background:#fff; border-radius:6px; box-shadow:0 14px 44px rgba(15,34,67,.32);
}
.modal .ph {
  display:flex; align-items:center; justify-content:space-between; flex:none;
  padding:12px 16px; background:linear-gradient(90deg,#0b3d91,#1a64b8); color:#fff;
}
.modal .ph h4 { font-size:15px; font-weight:600; letter-spacing:.5px; }
.modal .ph .x {
  border:none; background:rgba(255,255,255,.18); color:#fff; width:22px; height:22px;
  border-radius:3px; cursor:pointer; font-family:inherit; font-size:13px; line-height:20px; padding:0;
}
.modal .ph .x:hover { background:rgba(255,255,255,.36); }
.modal .pb { padding:14px 16px 4px; overflow:auto; flex:1; }
.modal .pf { padding:10px 16px 14px; display:flex; gap:8px; flex:none; border-top:1px solid #eceff5; }
.btn-pri {
  flex:1; height:32px; border:none; background:#14539a; color:#fff; border-radius:4px;
  cursor:pointer; font-size:13px; font-family:inherit;
}
.btn-pri:hover { background:#0b3d91; }
.btn-sec {
  flex:1; height:32px; border:1px solid #d5dce8; background:#fff; color:#5a6a80;
  border-radius:4px; cursor:pointer; font-size:13px; font-family:inherit;
}
.btn-sec:hover { border-color:#14539a; color:#14539a; }

.fld { margin-bottom:11px; }
.fld > label { display:block; font-size:12px; color:#7a8699; margin-bottom:5px; }
.fld > label b { color:#d9534f; margin-left:2px; }
.fld input[type=text], .fld textarea, .fld select {
  width:100%; border:1px solid #d5dce8; border-radius:4px; padding:7px 9px;
  font-size:13px; color:#1f2d3d; font-family:inherit; outline:none; background:#fff;
}
.fld input:focus, .fld textarea:focus, .fld select:focus {
  border-color:#14539a; box-shadow:0 0 0 2px rgba(20,83,154,.1);
}
.fld textarea { resize:vertical; min-height:68px; line-height:1.6; }
.fld .ro {
  background:#f4f7fc; border:1px solid #e3eaf6; border-radius:4px;
  padding:7px 9px; font-size:13px; color:#33405a; line-height:1.6; word-break:break-all;
}
.chk-grid { display:flex; flex-wrap:wrap; gap:6px; }
.chk {
  display:inline-flex; align-items:center; gap:5px; font-size:12px; color:#42546b;
  border:1px solid #d5dce8; border-radius:14px; padding:4px 10px; cursor:pointer;
  user-select:none; background:#fff;
}
.chk input { margin:0; }
.chk.on { border-color:#14539a; background:#eaf2ff; color:#14539a; }
.hint { font-size:11px; color:#98a4b8; margin-top:5px; line-height:1.6; }
.fb-item {
  border:1px solid #e6eaf2; border-left:3px solid #d9534f; border-radius:4px;
  padding:9px 11px; margin-bottom:8px; background:#fffdf8;
}
.fb-item .t {
  font-size:12px; font-weight:600; color:#26334a; margin-bottom:4px;
  display:flex; justify-content:space-between; gap:8px;
}
.fb-item .m { font-size:11px; color:#7a8699; line-height:1.75; word-break:break-all; }
.fb-item .m s { text-decoration:none; color:#9aa5b6; }
.fb-no { color:#c0392b; font-size:11px; font-family:Consolas,monospace; }

/* ---------- 地图右键菜单 ---------- */
.ctx-menu {
  position:absolute; z-index:30; display:none; min-width:210px;
  background:#fff; border:1px solid #ccd6e4; border-radius:5px;
  box-shadow:0 6px 22px rgba(15,34,67,.22); padding:4px 0; font-size:12px;
}
.ctx-menu .ctx-hd {
  padding:7px 12px 6px; color:#0b3d91; font-weight:600; font-size:12px;
  border-bottom:1px solid #eef1f6; margin-bottom:4px; letter-spacing:.5px;
}
.ctx-menu .ctx-co { padding:0 12px 7px; color:#8d97a8; font-size:11px; line-height:1.7; }
.ctx-menu .ctx-co b { color:#42546b; font-weight:600; font-family:Consolas,monospace; }
.ctx-item {
  padding:7px 12px; color:#33405a; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.ctx-item:hover { background:#eaf2ff; color:#14539a; }
.ctx-item .sc { color:#a8b2c2; font-size:11px; }
.ctx-sep { height:1px; background:#eef1f6; margin:4px 0; }
.ctx-item.dis { color:#b3bccb; cursor:default; }
.ctx-item.dis:hover { background:transparent; color:#b3bccd; }

/* ---------- 手机端专用元素（桌面端隐藏） ---------- */
.mob-toggle { display:none; }   /* 顶部栏「门店列表」抽屉开关 */
.mob-toggle .mt-short { display:none; }   /* v11.3：短文案仅手机端显示 */
.mob-handle { display:none; }   /* 抽屉顶部把手，点击收起 */

/* Toast 轻提示 */
.toast {
  position:fixed; left:50%; top:76px; transform:translateX(-50%) translateY(-14px);
  z-index:200; background:rgba(24,48,88,.94); color:#fff; font-size:13px;
  padding:9px 20px; border-radius:4px; box-shadow:0 6px 20px rgba(15,34,67,.3);
  opacity:0; pointer-events:none; transition:opacity .22s, transform .22s;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ==========================================================================
   移动端 / 小屏适配
   —— 思路：地图铺满全屏，左侧面板改为「底部抽屉」，由顶部按钮开关；
      地图浮层（状态栏/工具条/图例）压缩字号并自动顺延，保证内容完整可见。
   ========================================================================== */
@media (max-width:900px){
  .sidebar { width:280px; }
  .app-header h1 { font-size:16px; }
  .app-header .sub { display:none; }
}

@media (max-width:768px){
  /* ---- 顶部栏压缩 ---- */
  .app-header { height:50px; padding:0 10px; }
  .app-header > div:first-child { min-width:0; overflow:hidden; }   /* 标题过长时省略，不挤掉按钮 */
  .app-header .logo { width:26px; height:26px; font-size:14px; margin-right:8px; }
  .app-header h1 { font-size:15px; letter-spacing:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .app-header .right .sys-ok, .app-header .right #clock { display:none; }

  /* ---- 抽屉开关按钮 ---- */
  .mob-toggle {
    display:inline-flex; align-items:center; gap:5px; flex:none;
    border:1px solid rgba(255,255,255,.45); background:rgba(255,255,255,.16);
    color:#fff; border-radius:4px; padding:5px 10px; font-size:12px;
    font-family:inherit; cursor:pointer;
  }
  .mob-toggle.on { background:rgba(255,255,255,.34); }

  /* ---- 主体：地图铺满，侧边栏变底部抽屉 ---- */
  .app-body { top:50px; }
  .sidebar {
    position:absolute; left:0; right:0; bottom:0; top:auto;
    width:auto; height:78%; min-height:280px;
    border-right:none; border-top:1px solid #d8dee9;
    border-radius:12px 12px 0 0;
    box-shadow:0 -6px 20px rgba(15,34,67,.18);
    transform:translateY(100%);
    transition:transform .26s ease;
    z-index:60;
    padding-bottom:env(safe-area-inset-bottom, 0px);   /* iPhone 底部安全区 */
    /* 【手机端滚动修复】此前抽屉是 flex 纵向容器，把手的 40px + 数据总览 161px +
       检索 124px + 列表标题 36px + 底部提示 77px 合计 438px，已超过抽屉可用高度，
       flex:1 的门店列表被压缩到只剩 26px（实测），手指落不进那条窄缝，
       看起来就是"整个抽屉滑不动、看不到门店数据"。
       改为块级流 + 抽屉自身整体滚动：所有内容在同一根滚动条里，
       手指落在抽屉任意位置上下滑都能滚动；列表不再单独滚动。 */
    display:block;
    overflow-y:auto; overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;   /* 滚到底/顶时不把滚动传给地图，避免误拖地图 */
  }
  .sidebar.open { transform:translateY(0); }
  .mob-handle {
    display:flex; align-items:center; gap:8px; flex:none;
    padding:11px 14px; background:#f4f7fc; border-bottom:1px solid #eceff5;
    font-size:13px; color:#0b3d91; font-weight:600; cursor:pointer;
    border-radius:12px 12px 0 0;
    /* 【手机端滚动修复】抽屉整体滚动后，把手 sticky 常驻顶部，
       无论滚到哪里都能一键收起 */
    position:sticky; top:0; z-index:3;
  }
  .mob-handle .bar { width:26px; height:4px; border-radius:2px; background:#c8d0de; flex:none; }
  .mob-handle .t { flex:1; }
  .mob-handle .x { font-size:12px; color:#7a8699; font-weight:400; }

  /* 列表项加大点按区域，滑动更顺 */
  /* 【手机端滚动修复】列表改为随抽屉整体滚动（原来它是 flex:1 的独立滚动区，
     被固定块挤到只剩 26px）。高度由内容决定，滚动交给 .sidebar */
  .store-list { padding:8px 10px 18px; flex:none; height:auto; overflow:visible; }
  .store-item { padding:12px; margin-bottom:6px; }
  .store-item .nm { font-size:14px; white-space:normal; }
  .store-item .ds { flex-wrap:wrap; font-size:12px; }
  .stat-card b { font-size:16px; }
  .side-block { padding:12px 14px 10px; }

  /* ---- 地图浮层压缩 ---- */
  .map-left { max-width:calc(100% - 24px); gap:6px; }
  .map-status { max-width:210px; font-size:11px; padding:7px 10px; line-height:1.6; }
  .map-status label { font-size:11px; }
  .map-legend { font-size:10px; padding:6px 8px; }
  .map-legend .lg-i s { width:10px; height:10px; }
  .tool-group button { padding:6px 9px; font-size:11px; }
  .notice-bar { font-size:11px; padding:7px 10px; line-height:1.5; }

  /* ---- 右键菜单：加大点按区域 ---- */
  .ctx-menu { min-width:190px; font-size:13px; }
  .ctx-item { padding:12px 14px; }
  .ctx-hd { font-size:13px; }

  /* ---- 信息弹窗 ---- */
  :root { --iw-w: 250px; }
  .iw { width:var(--iw-w); }
  .iw-ft { flex-wrap:wrap; }
  .iw-ft button { flex:1 1 45%; padding:8px 4px; font-size:12px; }

  /* ---- 模态框：接近满屏、内部可滚动 ---- */
  .modal .panel { width:94vw; max-height:88vh; }
  .modal .pb { padding:12px 14px 4px; -webkit-overflow-scrolling:touch; }
  .chk { padding:6px 12px; font-size:13px; }
  .fld input[type=text], .fld textarea, .fld select { font-size:16px; }  /* ≥16px 可避免 iOS 聚焦时自动放大页面 */
  .btn-pri, .btn-sec { height:38px; font-size:14px; }
  .toast { font-size:12px; padding:8px 14px; max-width:90vw; text-align:center; }
}

/* 横屏手机：顶部栏再压一点，抽屉开高一些 */
@media (max-width:900px) and (max-height:520px){
  .app-header { height:44px; }
  .app-body { top:44px; }
  .sidebar { height:88%; min-height:0; }
}

/* 超窄屏（≤360px）：标题再缩小，统计卡改紧凑 */
@media (max-width:360px){
  .app-header h1 { font-size:13px; letter-spacing:0; }
  .app-header .logo { display:none; }
  .stat-card i { font-size:10px; }
  .map-status { max-width:170px; }
}
/* ==========================================================================
   登录遮罩 —— 政企风格登录卡片
   ========================================================================== */
.login-mask{
  position:fixed; left:0; top:0; right:0; bottom:0; z-index:200000;
  background:linear-gradient(135deg,#08243f 0%,#0b3d91 55%,#1a64b8 100%);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.login-mask.hide{ display:none; }
.login-card{ width:100%; max-width:380px; background:#fff; border-radius:10px;
  box-shadow:0 18px 50px rgba(0,0,0,.35); overflow:hidden; }
.login-hd{ padding:26px 28px 16px; text-align:center; }
.login-hd .lg{ width:46px; height:46px; border-radius:8px; margin:0 auto 12px;
  background:linear-gradient(135deg,#0b3d91,#1a64b8); color:#fff;
  font-size:24px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.login-hd h2{ font-size:18px; color:#0b3d91; letter-spacing:.5px; line-height:1.35; }
.login-hd p{ font-size:12px; color:#8492a6; margin-top:6px; }
.login-bd{ padding:0 28px 6px; }
.fld{ margin-bottom:13px; }
.fld label{ display:block; font-size:12px; color:#5a6b80; margin-bottom:6px; }
.fld input{ width:100%; height:44px; line-height:44px; font-size:16px; /* 16px 防 iOS 聚焦缩放 */
  padding:0 12px; border:1px solid #d4dbe5; border-radius:6px; background:#fafbfd; color:#1f2d3d; }
.fld input:focus{ outline:none; border-color:#1a64b8; background:#fff;
  box-shadow:0 0 0 3px rgba(26,100,184,.12); }
.login-btn{ width:100%; height:44px; border:0; border-radius:6px; cursor:pointer;
  background:linear-gradient(90deg,#0b3d91,#1a64b8); color:#fff; font-size:15px; letter-spacing:2px; }
.login-btn:hover{ filter:brightness(1.08); }
.login-err{ min-height:18px; font-size:12px; text-align:center; margin:9px 0 0; }
.login-ft{ padding:13px 28px 20px; text-align:center; border-top:1px solid #eef1f6; margin-top:6px; }
.login-ft a{ color:#1a64b8; font-size:13px; text-decoration:none; cursor:pointer; }
.login-ft a:hover{ text-decoration:underline; }
.login-ft .tip{ font-size:11.5px; color:#8492a6; margin-top:8px; line-height:1.7; }
/* 顶部登录状态 */
.auth{ display:flex; align-items:center; font-size:13px; white-space:nowrap; }
.auth .no{ color:#ffd88a; }
.auth .yes{ color:#fff; }
.auth i{ font-style:normal; margin-right:4px; }
.auth b{ font-weight:400; }
.auth a{ color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.45);
  padding:3px 9px; border-radius:4px; font-size:12px; margin-left:8px; cursor:pointer; }
.auth a:hover{ background:rgba(255,255,255,.16); }
/* 受控字段掩码占位（列表 / 弹窗通用） */
.lock{ color:#a3afc0; cursor:pointer; border-bottom:1px dashed #c6cedb; }
.lock:hover{ color:#1a64b8; }
.iw .lock{ color:#98a4b6; }
@media (max-width:768px){
  .auth .no .txt{ display:none; }
}
/* ==========================================================================
   v9 新增样式
   --------------------------------------------------------------------------
   1) Canvas 标点层        —— 替代逐店 DOM Marker
   2) 虚拟滚动列表          —— 只渲染可视区内的行，行高必须固定
   3) 数据加载 / 骨架提示   —— 首屏加载 data/points.js 期间显示
   4) 数据总览可折叠        —— 手机端默认收起，把高度让给门店列表
   ========================================================================== */

/* ---------- 1. Canvas 标点层 ---------- */
.pt-canvas {
  position: absolute; left: 0; top: 0;
  pointer-events: none;      /* 不拦截地图的拖动 / 缩放 / 右键 */
  z-index: 3;                /* 高于瓦片，低于工具条 / 图例等浮层 */
}

/* ---------- 2. 虚拟滚动列表 ---------- */
/* 固定行高：桌面 60px / 手机 76px（与 js/config.js 的 LIST_ROW_H 保持一致） */
.store-list { --row-h: 60px; position: relative; }
.vl-sizer { width: 100%; pointer-events: none; }
.vl-body { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.store-item {
  height: var(--row-h);
  box-sizing: border-box;
  margin-bottom: 0;
  overflow: hidden;
}
.store-item .nm {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.store-item .nm .cd { flex: none; }
.store-item .ds {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-item .pv { flex: none; }
.store-item .pv.need-login { color: #98a4b8; cursor: pointer; border-bottom: 1px dotted #b9c3d1; }
.store-item .pv.pending { color: #b9c3d1; }

/* ---------- 3. 数据加载提示 ---------- */
.data-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 30;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #d6dde8; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(15, 34, 67, .16);
  padding: 15px 22px;
  font-size: 13px; color: #42546b;
}
.data-loading.hide { display: none; }
.dl-spin {
  width: 16px; height: 16px; flex: none;
  border: 2px solid #ccd8e8; border-top-color: #14539a; border-radius: 50%;
  animation: dlspin .8s linear infinite;
}
@keyframes dlspin { to { transform: rotate(360deg); } }

/* ---------- 4. 可折叠区块（数据总览） ---------- */
.side-title.clickable { cursor: pointer; user-select: none; }
.fold-ar { font-size: 10px; color: #98a4b8; margin-left: 6px; flex: none; }
.side-block.fold .fold-body { display: none; }
.fold-body { padding-top: 2px; }

/* ---------- 5. 弹窗内「待加载 / 需登录」占位 ---------- */
.iw .pv.pending { color: #b9c3d1; font-style: normal; }
.iw .pv.need-login { color: #98a4b8; cursor: pointer; border-bottom: 1px dotted #b9c3d1; }

/* ---------- 6. 手机端：行高放大 + 列表撑满抽屉 ---------- */
@media (max-width: 768px) {
  .store-list { --row-h: 76px; }
  .store-item .nm { font-size: 14px; }
  /* 手机端抽屉整体滚动，列表高度由内容（sizer）撑开，保证虚拟滚动可正常工作 */
  .store-list { flex: none; height: auto; overflow: visible; }
}

/* ==========================================================================
   v9.1 新增样式
   --------------------------------------------------------------------------
   图例里的门店标点改成与地图一致的水滴造型：
   这里用同一份水滴路径做 mask 上色，保证「图例看到什么、地图就是什么」。
   ========================================================================== */
.map-legend .lg-i s.lg-pin {
  width: 11px; height: 15px;
  border: none; border-radius: 0;
  background: var(--pin, #5b6b7c);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M13 .8C6.3.8.9 6.2.9 12.9c0 8.6 10.7 19 11.6 19.9.2.2.5.3.7.3.3 0 .5-.1.7-.3.9-.9 11.6-11.3 11.6-19.9C25.1 6.2 19.7.8 13 .8zM13 8.5a4.4 4.4 0 1 0 0 8.8 4.4 4.4 0 0 0 0-8.8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M13 .8C6.3.8.9 6.2.9 12.9c0 8.6 10.7 19 11.6 19.9.2.2.5.3.7.3.3 0 .5-.1.7-.3.9-.9 11.6-11.3 11.6-19.9C25.1 6.2 19.7.8 13 .8zM13 8.5a4.4 4.4 0 1 0 0 8.8 4.4 4.4 0 0 0 0-8.8z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
@media (max-width: 768px) {
  .map-legend .lg-i s.lg-pin { width: 10px; height: 13px; }
}

/* ==========================================================================
   v9.2 新增样式：分级下钻
   --------------------------------------------------------------------------
   1) 面包屑        —— 湖北省 › 武汉市 › 洪山区，点上级回退
   2) 区域标记层    —— 低层级显示地市 / 区县标记（区域名 + 门店数），点它进入
   3) 图例里的区域标记示意
   设计前提：2 万个门店点铺满屏幕必然糊，低层级改用几十个区域标记换掉。
   ========================================================================== */

/* ---------- 1. 面包屑 ---------- */
.map-crumb {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  max-width: 100%;
  background: rgba(255,255,255,.96); border: 1px solid #d6dde8; border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15,34,67,.12);
  padding: 4px 11px; font-size: 12px; color: #42546b;
}
.map-crumb .cb-i {
  cursor: pointer; padding: 1px 5px; border-radius: 8px; white-space: nowrap;
}
.map-crumb .cb-i:hover { background: #eaf2fc; color: #14539a; }
.map-crumb .cb-i.on { font-weight: 600; color: #0b3d91; cursor: default; }
.map-crumb .cb-i.on:hover { background: none; }
.map-crumb .cb-sp { color: #a8b6c8; font-size: 11px; }

/* ---------- 2. 区域标记层 ---------- */
.area-layer {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  pointer-events: none;      /* 空白处不拦截地图拖动 / 缩放，只有标记本身可点 */
  z-index: 5;                /* 高于 Canvas 标点层(3)，低于工具条 / 弹窗等浮层 */
}
.am {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 5px;
  padding: 2px 5px 2px 9px; border-radius: 13px;
  background: rgba(255,255,255,.95);
  border: 1px solid #b9c9dd;
  box-shadow: 0 1px 4px rgba(15,34,67,.18);
  font-size: 12px; color: #1b3a5e; white-space: nowrap;
  cursor: pointer; pointer-events: auto;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.am:hover {
  border-color: #14539a; background: #fff;
  box-shadow: 0 3px 12px rgba(20,83,154,.32); z-index: 2;
}
.am-n { font-weight: 600; }
.am-c {
  font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.6;
  color: #fff; background: #3f7bbf; border-radius: 9px;
  padding: 0 6px; min-width: 15px; text-align: center;
}
/* 地市标记：比区县标记稍大、颜色更深，一眼分清两级 */
.am-city { padding: 3px 5px 3px 11px; font-size: 13px; border-color: #8fa9c8; }
.am-city .am-c { background: #0b3d91; font-size: 12px; padding: 0 7px; }

/* ---------- 3. 图例里的区域标记示意 ---------- */
.map-legend .lg-i s.lg-area {
  width: 26px; height: 13px; border-radius: 7px;
  background: #fff; border: 1px solid #b9c9dd; position: relative;
}
.map-legend .lg-i s.lg-area::after {
  content: ''; position: absolute; right: 2px; top: 2px; bottom: 2px;
  width: 8px; border-radius: 5px; background: #14539a;
}

/* ---------- 4. 手机端：标记与面包屑收紧 ---------- */
@media (max-width: 768px) {
  .map-crumb { font-size: 11px; padding: 3px 9px; }
  .am { font-size: 11px; padding: 1px 4px 1px 7px; gap: 4px; }
  .am-city { font-size: 12px; padding: 2px 4px 2px 9px; }
  .am-c { font-size: 10px; padding: 0 5px; }
  .map-legend .lg-i s.lg-area { width: 22px; height: 11px; }
}

/* ==========================================================================
   v9.4 新增样式：自定义画圈选门店
   --------------------------------------------------------------------------
   1) 圈选画布        —— 平时 pointer-events:none 完全不挡地图；进入圈选模式
                         才接管指针事件（地图因此收不到拖拽，不会误平移）
   2) 圈选模式提示条  —— 顶部居中常驻，告诉用户当前在圈选、怎么取消
   3) 圈选结果面板    —— 模态框内的统计行 + 名单（复用门店行样式，行高重设）
   ========================================================================== */

/* ---------- 1. 圈选画布 ---------- */
.lasso-canvas {
  position: absolute; left: 0; top: 0;
  pointer-events: none;          /* 默认不挡地图 */
  display: none;
  cursor: crosshair;
}
.lasso-canvas.on { pointer-events: auto; }

/* ---------- 2. 圈选模式提示条 ---------- */
.lasso-tip {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%) translateY(-8px);
  max-width: 86%;
  background: rgba(20, 83, 154, .94); color: #fff;
  font-size: 12px; line-height: 1.5;
  padding: 7px 14px; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 34, 67, .3);
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lasso-tip.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lasso-tip b { color: #ffd98a; }

/* ---------- 3. 圈选结果面板 ---------- */
.lasso-sum {
  font-size: 13px; color: #26334a; line-height: 1.7;
  padding: 2px 2px 10px; border-bottom: 1px solid #eceff5;
}
.lasso-sum b { font-size: 16px; color: #0b3d91; }
.lasso-sum .dim { font-size: 12px; color: #98a4b8; }
.lasso-list {
  max-height: 46vh; overflow-y: auto; overscroll-behavior: contain;
  margin-top: 8px;
}
/* 名单行复用侧边栏的 .store-item，但行高按弹窗场景重设 */
.lasso-list .store-item {
  height: 56px; box-sizing: border-box;
  border-bottom: 1px solid #f2f5fa; cursor: pointer;
}
.lasso-list .store-item:hover { background: #f2f7fd; }
.lasso-list .store-item .nm { font-size: 13px; }
.lasso-list .store-item .ds .pv { color: #42546b; }

@media (max-width: 768px) {
  .lasso-tip { top: 10px; font-size: 11px; padding: 6px 12px; }
  .lasso-list { max-height: 40vh; }
  .lasso-list .store-item { height: 62px; }
}

/* ==========================================================================
   v9.7 新增：门店搜索下拉 / 统计图表面板 / 分享链接 / 到店导航
   ========================================================================== */

/* ---------- ① 搜索下拉（挂在 .search-box 内，absolute 浮层） ---------- */
.sc-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: #fff; border: 1px solid #d6dde8; border-radius: 5px;
  box-shadow: 0 8px 22px rgba(15, 34, 67, .16);
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
}
.sc-panel .sc-hd {
  padding: 7px 10px; font-size: 11px; color: #7a8699;
  background: #f7faff; border-bottom: 1px solid #eceff5;
}
.sc-panel .sc-hd b { color: #14539a; font-size: 12px; }
.sc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; cursor: pointer; border-bottom: 1px solid #f2f5fa;
}
.sc-item:hover, .sc-item.hi { background: #eaf2ff; }
.sc-item .sc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sc-item .sc-tx { flex: 1; min-width: 0; }
.sc-item .sc-nm {
  font-size: 13px; color: #1f2d3d;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-item .sc-ds { font-size: 11px; color: #8d97a8; margin-top: 2px; }
.sc-item .sc-go { font-size: 11px; color: #14539a; flex: none; opacity: 0; }
.sc-item:hover .sc-go, .sc-item.hi .sc-go { opacity: 1; }
.sc-panel .sc-ft {
  padding: 6px 10px; font-size: 11px; color: #98a4b8;
  background: #fafcff; border-top: 1px solid #f2f5fa;
}
.sc-panel .sc-empty { padding: 16px 10px; text-align: center; font-size: 12px; color: #a2abba; line-height: 1.8; }

/* ---------- ② 统计图表面板（地图右上浮层，位于工具条下方） ---------- */
.chart-panel {
  position: absolute; top: calc(var(--notice-h, 0px) + 106px); right: 12px; z-index: 12;
  width: 342px; max-height: calc(100% - var(--notice-h, 0px) - 130px);
  background: rgba(255, 255, 255, .98); border: 1px solid #d6dde8; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 34, 67, .16);
  display: flex; flex-direction: column; overflow: hidden;
}
.chart-panel .cp-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 12px; color: #fff; font-size: 13px; letter-spacing: .5px;
  background: linear-gradient(90deg, #0b3d91, #1a64b8);
}
.chart-panel .cp-close {
  width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 3px;
  background: rgba(255, 255, 255, .18); cursor: pointer; font-size: 14px;
}
.chart-panel .cp-close:hover { background: rgba(255, 255, 255, .36); }
.chart-panel .cp-tabs { display: flex; border-bottom: 1px solid #eceff5; }
.chart-panel .cp-tabs button {
  flex: 1; border: none; background: transparent; padding: 8px 0; font-size: 12px;
  color: #5a6a80; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent;
}
.chart-panel .cp-tabs button:hover { color: #14539a; background: #f7faff; }
.chart-panel .cp-tabs button.on { color: #0b3d91; font-weight: 600; border-bottom-color: #14539a; }
.chart-panel .cp-scope {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-size: 11px; color: #7a8699; background: #f7faff;
  border-bottom: 1px solid #eceff5;
}
.chart-panel .cp-scope label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.chart-panel .cp-scope b { color: #14539a; font-size: 12px; }
.chart-panel .cp-bd { padding: 6px 10px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.cp-row {
  display: flex; align-items: center; gap: 6px; padding: 4px 0;
  border-bottom: 1px dashed #f2f5fa;
}
.cp-row.clickable { cursor: pointer; border-radius: 3px; }
.cp-row.clickable:hover { background: #f2f7fd; }
.cp-row .cp-nm {
  width: 76px; flex: none; font-size: 12px; color: #42546b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-row .cp-bar { flex: 1; height: 9px; background: #f0f3f8; border-radius: 5px; overflow: hidden; }
.cp-row .cp-bar i { display: block; height: 100%; border-radius: 5px; }
.cp-row .cp-v { width: 74px; flex: none; text-align: right; font-size: 11px; color: #8d97a8; }
.cp-row .cp-v b { color: #26334a; font-size: 12px; font-weight: 600; margin-right: 4px; }
.cp-row .cp-v em { font-style: normal; }
.chart-panel .cp-ft {
  padding: 6px 10px; font-size: 11px; color: #98a4b8;
  background: #fafcff; border-top: 1px solid #f2f5fa;
}

/* ---------- ③ 分享链接面板 ---------- */
.sh-tip { font-size: 12px; color: #5a6a80; margin-bottom: 8px; }
.sh-state {
  font-size: 12px; color: #26334a; line-height: 1.9; background: #f7faff;
  border: 1px solid #e6ebf2; border-radius: 4px; padding: 8px 10px; margin-bottom: 10px;
}
.sh-url {
  width: 100%; height: 74px; resize: none; font-size: 11px; line-height: 1.6;
  font-family: Consolas, Menlo, monospace; color: #42546b;
  border: 1px solid #d5dce8; border-radius: 4px; padding: 7px 8px;
  background: #fbfdff; outline: none; word-break: break-all;
}
.sh-url:focus { border-color: #14539a; }
.sh-note { font-size: 11px; color: #98a4b8; margin-top: 8px; line-height: 1.7; }

/* ---------- ④ 到店导航方式选择 ---------- */
.nav-menu {
  position: absolute; z-index: 730; width: 280px; max-width: calc(100% - 20px);
  background: #fff; border: 1px solid #d6dde8; border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 34, 67, .2); overflow: hidden;
}
.nav-menu .nm-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; font-size: 12px; color: #fff; letter-spacing: .5px;
  background: linear-gradient(90deg, #0b3d91, #1a64b8);
}
.nav-menu .nm-co { font-size: 10px; opacity: .8; font-family: Consolas, monospace; }
.nav-menu .nm-item {
  padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f2f5fa;
}
.nav-menu .nm-item:hover { background: #eaf2ff; }
.nav-menu .nm-item b { display: block; font-size: 13px; color: #14539a; font-weight: 600; }
.nav-menu .nm-item em { font-style: normal; font-size: 11px; color: #8d97a8; }
.nav-menu .nm-ft { padding: 6px 12px; font-size: 10px; color: #a8b2c2; background: #fafcff; }

/* 弹窗底部按钮增至三个：字号与内边距收紧，保证一行放得下 */
.iw-ft button { font-size: 11px; padding: 0 4px; }
.iw-ft button.nav { border-color: #0b7a4b; background: #eefaf3; color: #0b7a4b; }
.iw-ft button.nav:hover { background: #0b7a4b; color: #fff; }

/* ---------- 手机端适配 ---------- */
@media (max-width: 768px) {
  .chart-panel {
    left: 8px; right: 8px; width: auto;
    top: calc(var(--notice-h, 0px) + 96px);
    max-height: calc(100% - var(--notice-h, 0px) - 116px);
  }
  .cp-row .cp-nm { width: 62px; }
  .cp-row .cp-v { width: 66px; }
  .sc-panel { max-height: 240px; }
  .nav-menu { left: 8px !important; right: 8px; width: auto; }
}

/* ==========================================================================
 *  v9.9 新增：热力图 / 图层控制 / 一键大屏
 *  界面风格严格沿用 v9.7 的政企蓝白，不引入任何新的配色体系
 * ========================================================================== */

/* ---------- ① 顶栏「大屏模式」按钮 ---------- */
.hd-btn {
  flex: none; font-family: inherit; font-size: 12px; letter-spacing: .5px;
  color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.45); border-radius: 4px;
  padding: 5px 11px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.hd-btn:hover { background: rgba(255,255,255,.3); }
.hd-btn.on { background: #fff; color: #0b3d91; border-color: #fff; font-weight: 600; }

/* ---------- ② 图层控制面板 ----------
   top / max-height 由 js/tools.js 的 syncPanelTop() 按工具条实际高度写入，
   这样工具条增减按钮、提示条出现、手机端换行都不会让面板压住按钮。 */
.layer-panel {
  position: absolute; top: calc(var(--notice-h, 0px) + 156px); right: 12px; z-index: 12;
  width: 276px;
  background: rgba(255, 255, 255, .98); border: 1px solid #d6dde8; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 34, 67, .16); overflow: hidden;
}
.layer-panel .lp-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 12px; color: #fff; font-size: 13px; letter-spacing: .5px;
  background: linear-gradient(90deg, #0b3d91, #1a64b8);
}
.layer-panel .lp-close {
  width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 3px;
  background: rgba(255, 255, 255, .18); cursor: pointer; font-size: 14px;
}
.layer-panel .lp-close:hover { background: rgba(255, 255, 255, .36); }
.layer-panel .lp-bd { padding: 4px 10px 6px; overflow-y: auto; }
.lp-row {
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start;
  padding: 8px 2px; border-bottom: 1px dashed #f0f3f8; cursor: pointer;
}
.lp-row:last-child { border-bottom: none; }
.lp-row:hover b { color: #14539a; }
.lp-row input {
  grid-row: 1 / span 2; margin: 3px 0 0; cursor: pointer;
  accent-color: #14539a; width: 13px; height: 13px;
}
.lp-row b { font-size: 12.5px; color: #26334a; font-weight: 600; line-height: 1.5; }
.lp-row em { font-style: normal; font-size: 11px; color: #98a4b8; line-height: 1.5; }
.layer-panel .lp-ft {
  padding: 7px 12px; font-size: 11px; color: #98a4b8; line-height: 1.6;
  background: #fafcff; border-top: 1px solid #f2f5fa;
}

/* ---------- ③ 大屏模式 ----------
   v10.0 按老板要求改：全屏时**左侧板块保留**（原来会整块隐藏，只剩地图）。
   现在只做两件事：推进浏览器全屏 + 收起装饰性提示条，其余布局原样。 */
body.screen-mode .sidebar { width: 360px; }        /* 投屏时字要大一点，侧栏略放宽 */
body.screen-mode .notice-bar { display: none !important; }
body.screen-mode .mob-toggle { display: none; }
body.screen-mode .map-wrap { box-shadow: none; }
body.screen-mode .map-status { padding: 6px 10px; font-size: 11px; }
body.screen-mode .map-status .tip,
body.screen-mode .map-status label { display: none; }

@media (max-width: 768px) {
  .layer-panel {
    left: 8px; right: 8px; width: auto;
    top: calc(var(--notice-h, 0px) + 148px);
  }
  .hd-btn { padding: 5px 9px; font-size: 12px; }
  /* v11.3 修复：手机端顶栏溢出 —— v11.2 的「◎ 专注模式」按钮加入后，
     右区 4 个控件（登录 + 专注 + 大屏 + 门店列表）在 500px 视口下右缘到 540px，
     390px 真机溢出约 150px，「大屏模式」「门店列表」被裁掉无法点按。
     处理：两个模式按钮只留图标，抽屉开关换短文案，整行收进视口。 */
  .hd-btn .hd-txt { display: none; }
  .mob-toggle .mt-full { display: none; }
  .mob-toggle .mt-short { display: inline; }
}


/* ==========================================================================
 *  v10.0 新增：单行工具条 / 下拉菜单 / 区域分析报告 / 商圈半径 / 驾驶舱轮播
 * ========================================================================== */

/* ---------- ① 工具条：竖排 4 组 → 单行紧凑条 ---------- */
.map-toolbar {
  position: absolute; top: calc(var(--notice-h, 0px) + 12px); right: 12px; z-index: 10;
}
.tb-bar {
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #d6dde8; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(15, 34, 67, .12); overflow: hidden;
}
.tb-btn {
  border: none; background: transparent; padding: 7px 11px;
  font-size: 12px; color: #42546b; cursor: pointer; font-family: inherit;
  border-right: 1px solid #e6ebf2; display: flex; align-items: center; gap: 4px;
  white-space: nowrap; transition: background .12s, color .12s;
}
.tb-btn:last-child { border-right: none; }
.tb-btn:hover { background: #f0f5fc; color: #14539a; }
.tb-btn.on { background: #14539a; color: #fff; }
.tb-ico { font-style: normal; font-size: 12px; opacity: .85; }
.tb-ar { font-style: normal; font-size: 9px; opacity: .6; }

/* ---------- ② 通用下拉菜单 ---------- */
.pop-menu {
  position: absolute; z-index: 14; width: 244px; padding: 5px;
  background: rgba(255, 255, 255, .99); border: 1px solid #d6dde8; border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 34, 67, .18);
}
.pm-item {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 8px; border-radius: 4px; cursor: pointer;
}
.pm-item:hover { background: #eaf2ff; }
.pm-ic { width: 12px; flex: none; text-align: center; font-size: 11px; color: #2e86c1; line-height: 17px; }
.pm-item.on .pm-ic { color: #0b7a4b; font-weight: 700; }
.pm-tx { min-width: 0; }
.pm-tx b { display: block; font-size: 12.5px; color: #26334a; font-weight: 600; line-height: 1.45; }
.pm-tx em { display: block; font-style: normal; font-size: 11px; color: #98a4b8; line-height: 1.5; margin-top: 1px; }
.pm-item.on .pm-tx b { color: #0b3d91; }
.pm-sep { height: 1px; background: #eef2f8; margin: 4px 6px; }

/* ---------- ③ 商圈 / 竞品半径分析（左下浮层） ---------- */
.radius-panel {
  position: absolute; left: 12px; bottom: 12px; z-index: 13;
  width: 296px; max-height: calc(100% - 132px);
  background: rgba(255, 255, 255, .98); border: 1px solid #d6dde8; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 34, 67, .18);
  display: flex; flex-direction: column; overflow: hidden;
}
.radius-panel.picking { border-color: #e67e22; box-shadow: 0 0 0 2px rgba(230, 126, 34, .25), 0 8px 24px rgba(15, 34, 67, .18); }
.ra-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 12px; color: #fff; font-size: 13px; letter-spacing: .5px;
  background: linear-gradient(90deg, #0b3d91, #1a64b8);
}
.ra-x { width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 3px;
  background: rgba(255, 255, 255, .18); cursor: pointer; font-size: 14px; }
.ra-x:hover { background: rgba(255, 255, 255, .36); }
.ra-bd { padding: 8px 10px 6px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.ra-empty { padding: 18px 14px 20px; text-align: center; font-size: 12px; color: #7a8699; line-height: 1.9; }
.ra-btn { margin-top: 10px; border: 1px solid #d5dce8; background: #fff; color: #14539a;
  border-radius: 4px; padding: 6px 14px; font-size: 12px; font-family: inherit; cursor: pointer; }
.ra-btn.primary { background: #14539a; border-color: #14539a; color: #fff; }
.ra-btn.primary:hover { background: #0b3d91; }
.ra-center {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: #f7faff; border: 1px solid #e6ebf2; border-radius: 4px;
  padding: 7px 8px; margin-bottom: 8px; font-size: 12px; color: #26334a;
}
.ra-center:hover { border-color: #14539a; }
.ra-center .ra-dot { width: 8px; height: 8px; border-radius: 50%; background: #e67e22; flex: none; }
.ra-center .ra-ct { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-center em { font-style: normal; font-size: 11px; color: #8d97a8; flex: none; }
.ra-seg { display: flex; gap: 4px; margin-bottom: 10px; }
.ra-seg button {
  flex: 1; border: 1px solid #d5dce8; background: #fff; color: #5a6a80;
  border-radius: 4px; padding: 5px 0; font-size: 12px; font-family: inherit; cursor: pointer;
}
.ra-seg button:hover { border-color: #14539a; color: #14539a; }
.ra-seg button.on { background: #14539a; border-color: #14539a; color: #fff; }
.ra-kpi { display: flex; gap: 6px; margin-bottom: 10px; }
.ra-kpi > div {
  flex: 1; background: #f4f7fc; border: 1px solid #e3eaf6; border-radius: 5px;
  padding: 7px 4px; text-align: center; min-width: 0;
}
.ra-kpi b { display: block; font-size: 16px; color: #0b3d91; line-height: 1.25; }
.ra-kpi i { font-style: normal; font-size: 10px; color: #8d97a8; }
.ra-sec { font-size: 11.5px; color: #7a8699; margin: 10px 0 5px; font-weight: 600; }
.ra-sec em { font-style: normal; font-weight: 400; color: #a2abba; }
.ra-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.ra-row .ra-nm { width: 34px; flex: none; font-size: 11.5px; color: #42546b; }
.ra-row .ra-bar { flex: 1; height: 8px; background: #f0f3f8; border-radius: 4px; overflow: hidden; }
.ra-row .ra-bar i { display: block; height: 100%; border-radius: 4px; width: 0; transition: width .3s; }
.ra-row .ra-v { width: 44px; flex: none; text-align: right; font-size: 11.5px; color: #26334a; font-weight: 600; }
.ra-list { border-top: 1px dashed #f0f3f8; }
.ra-item {
  display: flex; align-items: center; gap: 6px; padding: 6px 2px;
  border-bottom: 1px dashed #f4f7fb; cursor: pointer; font-size: 12px;
}
.ra-item:hover { background: #f2f7fd; }
.ra-item:hover .ra-in { color: #14539a; }
.ra-item .ra-in { flex: 1; color: #42546b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-item .ra-in s { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.ra-item .ra-id { flex: none; font-size: 11px; color: #8d97a8; }
.ra-none { font-size: 11.5px; color: #b0b9c8; padding: 8px 2px; }
.ra-ft { padding: 7px 12px; font-size: 10.5px; color: #a2abba; line-height: 1.6;
  background: #fafcff; border-top: 1px solid #f2f5fa; }

/* ---------- ④ 驾驶舱轮播 ---------- */
.carousel-hud { position: absolute; inset: 0; z-index: 28; pointer-events: none; }
.ch-card {
  position: absolute; right: 14px; bottom: 78px; width: 306px;
  background: rgba(255, 255, 255, .99); border: 1px solid #d6dde8; border-radius: 8px;
  box-shadow: 0 12px 34px rgba(15, 34, 67, .26); padding: 0 0 12px;
  pointer-events: auto; overflow: hidden;
}
.ch-tag {
  display: inline-block; font-size: 11px; color: #fff; letter-spacing: .5px;
  background: linear-gradient(90deg, #0b3d91, #1a64b8);
  padding: 4px 10px; border-radius: 0 0 6px 0;
}
.ch-name { font-size: 20px; font-weight: 700; color: #0b3d91; padding: 10px 14px 2px; letter-spacing: 1px; }
.ch-big { padding: 0 14px; font-size: 34px; font-weight: 700; color: #14539a; line-height: 1.1; }
.ch-big i { font-style: normal; font-size: 12px; font-weight: 400; color: #8d97a8; margin-left: 5px; }
.ch-sub { padding: 4px 14px 2px; font-size: 11.5px; color: #7a8699; line-height: 1.6; }
.ch-sec { padding: 9px 14px 4px; font-size: 11.5px; color: #5a6a80; font-weight: 600; }
.ch-cat { display: flex; align-items: center; gap: 6px; padding: 3px 14px; }
.ch-cat .ch-cn { width: 26px; flex: none; font-size: 11px; color: #42546b; }
.ch-cat .ch-cb { flex: 1; height: 8px; background: #f0f3f8; border-radius: 4px; overflow: hidden; }
.ch-cat .ch-cb i { display: block; height: 100%; border-radius: 4px; }
.ch-cat .ch-cv { width: 66px; flex: none; text-align: right; font-size: 11px; color: #26334a; font-weight: 600; }
.ch-cat .ch-cv em { font-style: normal; font-weight: 400; color: #a2abba; margin-left: 3px; }
.ch-rank { padding: 2px 14px 0; }
.ch-rw { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.ch-rw b { width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 3px;
  background: #eaf2ff; color: #14539a; font-size: 10px; flex: none; }
.ch-rw span { flex: 1; color: #42546b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-rw em { font-style: normal; font-weight: 600; color: #26334a; }

.ch-bar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(11, 33, 66, .88); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px; padding: 6px 14px; pointer-events: auto;
  box-shadow: 0 8px 24px rgba(8, 20, 40, .35);
}
.ch-btn {
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1);
  color: #fff; border-radius: 50%; width: 28px; height: 28px; line-height: 1;
  font-size: 11px; cursor: pointer; font-family: inherit; display: flex;
  align-items: center; justify-content: center; transition: background .15s;
}
.ch-btn:hover { background: rgba(255, 255, 255, .28); }
.ch-btn.paused { background: #38e07b; border-color: #38e07b; color: #06301b; }
.ch-btn.quit { width: auto; border-radius: 14px; padding: 0 12px; font-size: 12px; }
.ch-prog { width: 180px; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 2px; overflow: hidden; }
.ch-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4da3ff, #38e07b); }
.ch-idx { color: rgba(255, 255, 255, .8); font-size: 11px; font-family: Consolas, monospace; min-width: 46px; text-align: center; }

/* ---------- ⑤ 区域分析报告 ---------- */
.report-mask {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(8, 20, 40, .62);
}
.report-mask.show { display: flex; }
.rp-wrap {
  width: min(1000px, 100%); max-height: 100%;
  background: #fff; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .38);
}
.rp-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: #f7faff; border-bottom: 1px solid #e6ebf2;
}
.rp-tt b { font-size: 14px; color: #0b3d91; letter-spacing: .5px; }
.rp-tt span { font-size: 12px; color: #7a8699; margin-left: 10px; }
.rp-btns { display: flex; gap: 8px; }
.rp-btn {
  border: 1px solid #d5dce8; background: #fff; color: #42546b;
  border-radius: 4px; padding: 6px 13px; font-size: 12px; font-family: inherit; cursor: pointer;
}
.rp-btn:hover { border-color: #14539a; color: #14539a; }
.rp-btn.primary { background: #14539a; border-color: #14539a; color: #fff; }
.rp-btn.primary:hover { background: #0b3d91; }
.rp-body {
  flex: 1; overflow: auto; background: #eef2f7; padding: 14px;
  display: flex; justify-content: center;
}
.rp-body svg {
  width: 100%; max-width: 840px; height: auto; background: #fff;
  box-shadow: 0 6px 20px rgba(15, 34, 67, .14);
}
.rp-tip { padding: 8px 14px; font-size: 11px; color: #98a4b8; border-top: 1px solid #eef2f8; line-height: 1.6; }
body.report-open { overflow: hidden; }

@media print {
  body > *:not(.report-mask) { display: none !important; }
  .report-mask { position: static; display: block !important; background: #fff; padding: 0; }
  .rp-tools, .rp-tip { display: none !important; }
  .rp-wrap { width: auto; max-height: none; box-shadow: none; border-radius: 0; }
  .rp-body { padding: 0; background: #fff; overflow: visible; }
  .rp-body svg { max-width: none; width: 100%; box-shadow: none; }
  @page { size: A4 portrait; margin: 8mm; }
}

/* ---------- ⑥ 手机端适配 ---------- */
@media (max-width: 768px) {
  .map-toolbar { left: 8px; right: 8px; }
  .tb-bar { width: 100%; justify-content: space-between; }
  .tb-btn { padding: 7px 6px; font-size: 11.5px; flex: 1; justify-content: center; }
  .pop-menu { width: auto; left: 8px; right: 8px; }
  .radius-panel {
    left: 8px; right: 8px; width: auto; bottom: 8px;
    max-height: 52%;
  }
  .ch-card { right: 8px; left: 8px; width: auto; bottom: 70px; }
  .ch-prog { width: 90px; }
  .rp-wrap { border-radius: 0; }
  .report-mask { padding: 0; }
}

/* ==========================================================================
 *  v11.0 新增：智能问答（工具条按钮 + 对话浮层）
 *  风格沿用政企蓝白，浮层贴在工具条下方，不遮地图——问完能立刻看到地图变化
 * ========================================================================== */

/* ---------- ① 工具条上的问答按钮（整个工具条里唯一的强调色） ---------- */
.tb-btn.tb-ai {
  color: #0b3d91; font-weight: 600; background: #eef5ff;
}
.tb-btn.tb-ai .tb-ico { color: #e67e22; font-size: 11px; }
.tb-btn.tb-ai:hover { background: #dfeaff; color: #0b3d91; }
.tb-btn.tb-ai.on { background: #0b3d91; color: #fff; }
.tb-btn.tb-ai.on .tb-ico { color: #ffd166; }

/* ---------- ② 对话浮层 ---------- */
.ask-panel {
  position: absolute;
  top: calc(var(--notice-h, 0px) + 52px);
  right: 12px;
  z-index: 30;
  width: 396px;
  /* v11.1：原本 calc(100% - 72px) 在 900px 高的屏上会铺到 828px，几乎顶着底边；
     改成 540px 封顶。只设 max-height 不设 height —— 对话少时框自动收缩，多了才滚 */
  max-height: min(540px, calc(100% - 84px));
  display: flex;
  flex-direction: column;
  background: #f4f7fc;
  border: 1px solid #d6dde8;
  border-radius: 7px;
  box-shadow: 0 14px 38px rgba(15, 34, 67, .22);
  overflow: hidden;
}

.ak-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 12px;
  color: #fff;
  background: linear-gradient(90deg, #0b3d91, #1a64b8);
  flex: none;
}
.ak-t { flex: 1; font-size: 13px; letter-spacing: .5px; }
.ak-t i { font-style: normal; margin-right: 4px; color: #ffd166; }
.ak-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  white-space: nowrap;
}
.ak-x {
  width: 20px; height: 20px; line-height: 18px; text-align: center;
  border-radius: 3px; background: rgba(255, 255, 255, .18);
  cursor: pointer; font-size: 13px; flex: none;
}
.ak-x:hover { background: rgba(255, 255, 255, .38); }

.ak-bd {
  flex: 1; min-height: 108px; overflow-y: auto; overscroll-behavior: contain;
  padding: 9px 10px 2px;
}

/* 气泡 */
.ak-row { display: flex; margin-bottom: 8px; }
.ak-row.me { justify-content: flex-end; }
.ak-bub {
  padding: 9px 11px; font-size: 12.5px; line-height: 1.65;
  color: #26334a; word-break: break-word;
}
.ak-row.bot .ak-bub {
  width: 100%;
  background: #fff; border: 1px solid #e3eaf6;
  border-radius: 6px 6px 6px 2px;
  box-shadow: 0 1px 3px rgba(15, 34, 67, .05);
}
.ak-row.me .ak-bub {
  max-width: 84%;
  background: #14539a; color: #fff;
  border-radius: 6px 6px 2px 6px;
}

/* 回答内容 */
.ak-ti { font-size: 11.5px; color: #8d97a8; margin-bottom: 2px; }
.ak-big {
  font-size: 26px; font-weight: 700; color: #0b3d91;
  line-height: 1.18; letter-spacing: -.5px;
}
.ak-big i { font-style: normal; font-size: 11px; font-weight: 400; color: #8d97a8; margin-left: 4px; }
.ak-sub { font-size: 11px; color: #7a8699; margin-top: 1px; }
.ak-tx { margin-top: 6px; font-size: 12.5px; color: #3d4b60; }

/* 明细行（有值时带条形；无值时整行铺开） */
.ak-rows { margin-top: 9px; border-top: 1px dashed #eef2f8; padding-top: 6px; }
.ak-r {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0; font-size: 12px;
}
.ak-r.clickable { cursor: pointer; border-radius: 3px; }
.ak-r.clickable:hover { background: #f2f7fd; }
.ak-r.clickable:hover .ak-rn { color: #14539a; }
.ak-rn {
  flex: 0 0 auto; max-width: 46%; color: #42546b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ak-rb { flex: 1; min-width: 22px; height: 7px; background: #eef2f8; border-radius: 4px; overflow: hidden; }
.ak-rb i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4da3ff, #14539a); }
.ak-rv { flex: none; width: 46px; text-align: right; font-weight: 600; color: #26334a; }
.ak-rs {
  flex: none; max-width: 44%; font-size: 11px; color: #8d97a8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ak-r.plain { display: block; padding: 5px 0; border-bottom: 1px dashed #f4f7fb; }
.ak-r.plain:last-child { border-bottom: none; }
.ak-r.plain .ak-rn { display: block; max-width: 100%; font-weight: 600; color: #26334a; }
.ak-r.plain .ak-rs { display: block; max-width: 100%; margin-top: 1px; white-space: normal; }

/* 操作按钮 */
.ak-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ak-btn {
  border: 1px solid #d5dce8; background: #fff; color: #42546b;
  border-radius: 4px; padding: 5px 12px; font-size: 12px;
  font-family: inherit; cursor: pointer;
}
.ak-btn:hover { border-color: #14539a; color: #14539a; }
.ak-btn.primary { background: #14539a; border-color: #14539a; color: #fff; }
.ak-btn.primary:hover { background: #0b3d91; color: #fff; }

/* 快捷问法 */
.ak-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ak-chip {
  border: 1px solid #d5e3f7; background: #f2f8ff; color: #14539a;
  border-radius: 14px; padding: 4px 10px; font-size: 11.5px;
  font-family: inherit; cursor: pointer; line-height: 1.4;
}
.ak-chip:hover { background: #14539a; border-color: #14539a; color: #fff; }

/* 提示条（AI 降级等） */
.ak-note {
  margin-top: 7px; padding: 4px 7px;
  font-size: 11px; line-height: 1.55; color: #9a6700;
  background: #fef9e7; border-left: 2px solid #f0b429; border-radius: 0 3px 3px 0;
}

/* 加载点 */
.ak-load i {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #14539a; margin-right: 3px; animation: akDot 1s infinite;
}
.ak-load i:nth-child(2) { animation-delay: .15s; }
.ak-load i:nth-child(3) { animation-delay: .3s; }
@keyframes akDot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* 输入区 */
.ak-ft {
  display: flex; gap: 8px; padding: 8px 10px;
  background: #fff; border-top: 1px solid #e6ebf2; flex: none;
}
.ak-ft input {
  flex: 1; min-width: 0;
  border: 1px solid #d5dce8; border-radius: 4px;
  padding: 7px 9px; font-size: 12.5px; font-family: inherit;
  color: #26334a; outline: none; background: #fbfdff;
}
.ak-ft input:focus { border-color: #14539a; box-shadow: 0 0 0 2px rgba(20, 83, 154, .12); background: #fff; }
.ak-ft button {
  border: 1px solid #14539a; background: #14539a; color: #fff;
  border-radius: 4px; padding: 7px 14px; font-size: 12.5px;
  font-family: inherit; cursor: pointer; flex: none;
}
.ak-ft button:hover { background: #0b3d91; }

/* ---------- ③ 手机端：问答浮层铺满工具条以下 ---------- */
@media (max-width: 768px) {
  .ask-panel {
    left: 8px; right: 8px; width: auto;
    top: calc(var(--notice-h, 0px) + 48px);
    bottom: 8px; max-height: none;
  }
  .ak-big { font-size: 24px; }
  .ak-rn { max-width: 40%; }
}

/* ==========================================================================
 *  v11.2 新增：专注模式
 *  --------------------------------------------------------------------------
 *  只留「顶部导航 + 地图」。左侧板块、地图上所有常驻浮窗（工具条 / 状态 / 图例 /
 *  提示条 / 问答 / 图层 / 图表 / 半径 / 轮播）全部收掉。
 *  注意：地图自身的缩放控件、比例尺、右下角版权、右键菜单、点水滴的详情弹窗
 *  一律保留 —— 那些是"查看"能力，不是浮窗（老板明确要求右键功能要留）。
 * ========================================================================== */
body.focus-mode .sidebar,
body.focus-mode .map-toolbar,
body.focus-mode .map-left,
body.focus-mode .notice-bar,
body.focus-mode .mob-toggle,
body.focus-mode .pop-menu,
body.focus-mode .ask-panel,
body.focus-mode .layer-panel,
body.focus-mode .chart-panel,
body.focus-mode .radius-panel,
body.focus-mode .nav-menu,
body.focus-mode .carousel-hud {
  display: none !important;
}

/* 侧栏收走后地图就是整块画布：去掉投影与残留底色，避免边缘出现一条灰缝 */
body.focus-mode .map-wrap { box-shadow: none; }
body.focus-mode .app-body { background: #eaeef4; }

/* 顶栏按钮进入专注态后一直保持高亮，方便一眼找到"退出"入口 */
#btnFocus.on { background: #fff; color: #0b3d91; border-color: #fff; font-weight: 600; }

@media (max-width: 768px) {
  /* v11.3：两个模式按钮在手机端只剩图标，加大左右内边距保证点按区域 */
  #btnFocus, #btnScreen { padding: 5px 10px; font-size: 13px; }
}
