/* ============================================================
 * 旺铺查 · 管理后台样式表
 * 免构建，全靠这一份 CSS。改这里 = 全站改版，不需要碰 app.js。
 *
 * 版面骨架：.app-shell = 固定侧边栏 + 右侧主区（顶栏 + 可滚动内容区）
 * 设计约定：
 *   · 颜色一律走下面的 CSS 变量，别在组件里写死色值；
 *   · 表格中的长文本靠「不换行 + 超出省略号 + 横向滚动」，绝不让浏览器把
 *     中文挤成一列一个字（那正是「数据没对齐」的观感来源）；
 *   · 数字列右对齐 + tabular-nums，位数不同也能对齐。
 * ============================================================ */

:root {
  /* 品牌 */
  --brand: #4361EE;
  --brand-600: #3752D6;
  --brand-50: #EEF2FF;
  --accent: #7209B7;
  --violet: #7C3AED;

  /* 文字 / 线条 / 底色 */
  --ink: #101828;          /* 标题、重点数字 */
  --text: #1F2937;         /* 正文 */
  --text-2: #667085;       /* 次要文字、表头 */
  --text-3: #98A2B3;       /* 占位、说明 */
  --line: #E6E9F0;         /* 分隔线 / 边框 */
  --line-2: #F1F4F9;       /* 更浅的分隔线（表格行） */
  --bg: #F5F6FA;
  --card: #FFFFFF;

  /* 语义色（中文场景：涨/正常=红？—— 后台不适用，商铺评级沿用国际惯例） */
  --green: #0E9F6E;  --green-bg: #E8F7F1;
  --orange: #D97706; --orange-bg: #FEF4E6;
  --red: #DC2626;    --red-bg: #FDECEC;
  --violet-bg: #F4ECFE;

  /* 侧边栏 */
  --nav-1: #171C39;
  --nav-2: #10142A;
  --nav-text: #A7AED6;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-pop: 0 24px 64px rgba(15, 23, 42, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D0D5DD; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #B4BAC6; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 登录 ===== */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 600px at 12% -10%, rgba(67, 97, 238, .55), transparent 60%),
    radial-gradient(900px 600px at 100% 110%, rgba(114, 9, 183, .45), transparent 55%),
    linear-gradient(135deg, #1B2140 0%, #141833 100%);
}
.login-card {
  width: 396px; padding: 40px 36px 32px; background: #fff;
  border-radius: 18px; box-shadow: 0 32px 80px rgba(8, 12, 30, .45); text-align: center;
}
.login-logo {
  font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--ink);
}
.login-logo::after {
  content: ''; display: block; width: 40px; height: 4px; margin: 12px auto 0; border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.login-sub { color: var(--text-2); margin: 14px 0 28px; font-size: 13px; letter-spacing: 1px; }
.login-input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #FAFBFC;
  padding: 0 14px; font-size: 14px; margin-bottom: 12px; outline: none; transition: .16s; font-family: inherit; color: var(--text);
}
.login-input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(67, 97, 238, .12); }
.login-btn {
  width: 100%; height: 46px; border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--brand), var(--accent)); cursor: pointer; letter-spacing: 4px; transition: .18s;
}
.login-btn:hover { box-shadow: 0 10px 24px rgba(67, 97, 238, .35); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.login-tip { color: var(--text-3); font-size: 12px; margin-top: 18px; }

/* ===== 主框架 ===== */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 224px; flex: none; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--nav-1) 0%, var(--nav-2) 100%);
  padding: 16px 12px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; flex: none; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
  box-shadow: 0 6px 16px rgba(67, 97, 238, .4);
}
.brand-text { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: .5px; }
.brand-text small { display: block; font-size: 10.5px; font-weight: 400; color: #7E88B8; letter-spacing: 1.5px; margin-top: 3px; }

/* ⚠️ 侧边栏菜单 17 项，窄屏（约 900px 高）放不下。
 *    以前 .nav 是 flex:1 的纵向 flex，子项默认 flex-shrink:1 会被压扁 ——
 *    文字互相重叠、底部菜单糊成一团。所以：.nav 自己滚动 + .nav-item 不许收缩。 */
.nav {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 2px; padding-right: 4px;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 6px; }
.nav-item {
  flex: none;                       /* ⚠️ 关键：不加就会被 flex 压扁、菜单互相重叠 */
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border-radius: 10px; color: var(--nav-text); cursor: pointer; font-size: 13.5px;
  transition: background .15s, color .15s; user-select: none; white-space: nowrap;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active {
  background: linear-gradient(135deg, var(--brand), #6D3FE0); color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(67, 97, 238, .38);
}
.nav-ico { width: 18px; height: 18px; flex: none; display: flex; align-items: center; justify-content: center; }
.nav-ico svg { width: 18px; height: 18px; display: block; }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.side-foot { flex: none; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .09); }
.admin-mini { font-size: 12.5px; color: var(--nav-text); padding: 0 8px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-btn {
  width: 100%; height: 36px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  background: transparent; color: #D9DCF0; cursor: pointer; font-size: 13px; font-family: inherit; transition: .16s;
}
.logout-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; border-color: rgba(255, 255, 255, .28); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 60px; flex: none; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px;
}
.topbar-title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-admin {
  font-size: 12.5px; color: var(--text-2); background: #F7F8FC; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
/* 构建号：一眼确认「线上到底部署了没有」，所以放在顶栏最右侧常驻可见 */
#build-tag {
  font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
  background: #F7F8FC; border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}

.content { flex: 1; min-width: 0; overflow: auto; padding: 20px 24px 48px; }

/* ===== 卡片 ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-1); margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-title .tag { font-size: 12px; font-weight: 500; color: var(--text-3); }

/* ===== 统计卡片 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(164px, 1fr)); gap: 12px; margin-bottom: 16px; }
/* 仪表盘分组统计：每组固定 3 列 —— 用默认的 auto-fit 会把同一组的 3 张卡摊到大屏两端，
   看着像三个互不相干的指标；窄屏再回落成自适应。 */
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stat-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
/* 组内说明文字（口径提示），卡片内最后一块不留多余间距 */
.card-sub { color: var(--text-3); font-size: 12px; line-height: 1.7; }
.card .stat-grid:last-child { margin-bottom: 0; }
.stat {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-1); overflow: hidden;
}
.stat::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-label { color: var(--text-2); font-size: 12.5px; margin-top: 5px; }
.stat.alt::before { background: var(--violet); }
.stat.alt .stat-num { color: var(--violet); }
.stat.warn::before { background: var(--orange); }
.stat.warn .stat-num { color: var(--orange); }
/* 可点击下钻的看板卡（商铺看板：未出租 / 待校准 / 待审纠错） */
.stat-click { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.stat-click:hover { transform: translateY(-1px); box-shadow: var(--shadow-2, 0 6px 16px rgba(15, 23, 42, .1)); }
.stat-click:active { transform: translateY(0); }

/* ===== 表格 =====
 * 横向滚动容器：由 app.js 在每个 table.table 外套一层 .table-wrap 自动生成。
 * 不套的话，16 列会互相挤压，「北京市-北京市-房山区」被折成三行、行高参差 —— 观感就是「没对齐」。 */
.table-wrap { overflow-x: auto; border-radius: 10px; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
  padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-2);
  vertical-align: middle; white-space: nowrap;   /* 中文一律不折行，宁可横向滚 */
}
.table th {
  font-size: 12px; font-weight: 600; color: var(--text-2); background: #F8FAFC;
  border-bottom: 1px solid var(--line); letter-spacing: .3px;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #F7F9FF; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .op { display: flex; gap: 6px; }

/* 「不限范围(scope=all)」的管理员行 —— 这类账号等同于全域管理员，但其他人**看不见他**，
   必须一眼可辨（超管视角才看得到这行；范围管理员只能看到顶部的 warnbar 提示）。 */
.table tr.tr-allscope td { background: var(--red-bg); }
.table tr.tr-allscope:hover td { background: #FBDEDE; }
.table tr.tr-allscope td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.warnbar {
  margin-bottom: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--red-bg); color: var(--red); font-size: 13px; line-height: 1.6;
  border: 1px solid #F7D4D4;
}
.warnbar b { font-weight: 600; }
/* 长文本列：限宽 + 省略号（完整内容看 title 悬浮提示），避免一列把整张表撑爆 */
.t-name, .t-loc, .t-tel, .t-ell { overflow: hidden; text-overflow: ellipsis; }
.t-name { max-width: 200px; font-weight: 600; color: var(--ink); }
.t-loc { max-width: 180px; color: var(--text-2); }
.t-tel { max-width: 160px; color: var(--text-2); }
.t-ell { max-width: 240px; }
.empty { text-align: center; color: var(--text-3); padding: 44px 0; font-size: 13px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(135deg, var(--brand), #6D3FE0); color: #fff; transition: .16s;
}
.btn:hover { box-shadow: 0 8px 18px rgba(67, 97, 238, .28); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: #C3CDF3; color: var(--brand); background: #FBFCFE; box-shadow: var(--shadow-1); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.sm.ghost { color: var(--text-2); }
.btn.sm.ghost:hover { color: var(--brand); }
.btn.danger { background: #fff; color: var(--red); border-color: #F7D4D4; }
.btn.danger:hover { background: var(--red-bg); box-shadow: none; }
.btn.green { background: linear-gradient(135deg, #12B886, #0E9F6E); }
.btn.green:hover { box-shadow: 0 8px 18px rgba(14, 159, 110, .3); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ===== 标签 ===== */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.chip.A, .chip.approved, .chip.active { background: var(--green-bg); color: var(--green); }
.chip.B, .chip.info { background: var(--brand-50); color: var(--brand-600); }
.chip.C, .chip.pending { background: var(--orange-bg); color: var(--orange); }
.chip.D, .chip.banned { background: var(--red-bg); color: var(--red); }
.chip.rejected, .chip.none { background: #F2F4F7; color: var(--text-3); }
.chip.primary { background: var(--violet-bg); color: var(--violet); }
.chip.plain::before { display: none; }

/* ===== 表单 ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 12px; font-size: 13.5px; font-family: inherit; color: var(--text);
  outline: none; transition: .16s; background: #fff;
}
.field textarea { height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(67, 97, 238, .12); }
.field input:disabled, .field select:disabled { background: #F7F8FC; color: var(--text-3); cursor: not-allowed; }
/* 统一下拉箭头（原生箭头各浏览器差异大，且不受主题色控制） */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; min-width: 0; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.modal {
  width: 600px; max-width: 100%; max-height: 88vh; overflow-y: auto; background: #fff;
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow-pop); border: 1px solid var(--line);
}
.modal h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.modal.wide { width: 1040px; }

/* ===== 商圈地图编辑器（地图选点 + 半径画圈） ===== */
.dist-editor { display: flex; gap: 18px; align-items: flex-start; }
.dist-panel { width: 296px; flex: none; }
.dist-panel .field { margin-bottom: 12px; }
.inline-input { display: flex; gap: 8px; align-items: stretch; }
.inline-input input { flex: 1; min-width: 0; }
.inline-input .btn { flex: none; }
.inline-input .btn.ghost { padding: 0 14px; }
.radius-range { width: 100%; margin-top: 8px; accent-color: var(--brand); }
.radius-quick { display: flex; gap: 8px; margin-top: 6px; }
.radius-quick .btn { flex: 1; padding: 0; }
/* 分段切换（圆形半径 / 自己划区域） */
.seg { display: inline-flex; gap: 3px; padding: 3px; background: #F1F3F9; border-radius: 10px; }
.seg button {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px;
  color: var(--text-2); padding: 6px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--brand); }
.seg button.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(20, 16, 40, .12); }
/* 团队作业看板（2026-10-29）：「首单 / 末单 / 覆盖人数」信息条。
   时间用等宽数字 —— 上下两行的 08:05 / 18:40 对齐，扫一眼就能比出谁早谁晚。 */
/* ⚠️ 卡片类名刻意**不复用 `.stat`**：`.stat` 在本页已经是「管理员管辖范围分布」的语义，
   两者混用会让「本页有几张统计卡」这类判断把团队工作量也数进去（实测 5 张变 9 张）。 */
.staff-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.staff-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.staff-kpi-num { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.staff-kpi-label { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.staff-clock {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
  background: #F7F8FC; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin: 12px 0;
}
.staff-clock-item { display: flex; align-items: baseline; gap: 8px; }
.staff-clock-label { font-size: 12px; color: var(--text-2); }
.staff-clock-time { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.staff-clock-time.off { color: var(--text-3, #a8a8b8); font-weight: 600; font-size: 16px; }
/* 可点的数字（2026-10-29）：点开看具体商铺清单。
   视觉上必须「看起来能点」（虚下划线 + hover 变品牌色），否则用户永远不知道有这个功能；
   但又不能做成按钮 —— 一张表里几十个按钮会很吵。 */
.staff-drill { cursor: pointer; font-weight: 700; border-bottom: 1px dashed rgba(47, 84, 235, .55); }
.staff-drill:hover { color: var(--brand); border-bottom-color: var(--brand); }
.staff-kpi-drill { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.staff-kpi-drill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20, 16, 40, .08); }
.staff-hint { font-size: 12px; color: var(--text-2); margin: -2px 0 14px; }
.staff-hint::before { content: '›'; margin-right: 4px; color: var(--brand); font-weight: 700; }

/* 明细弹窗：商铺名可点开档案 */
.staff-link { color: var(--brand); cursor: pointer; border-bottom: 1px dashed rgba(47, 84, 235, .45); }
.staff-link:hover { border-bottom-style: solid; }
.staff-detail-hd { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.staff-detail-sum { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.staff-detail-sum b { color: var(--brand); font-size: 15px; }
.staff-detail-table td { font-size: 13px; vertical-align: top; }

.staff-note { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-top: 10px; }
.staff-note b { color: var(--ink); font-weight: 600; }
.staff-empty {
  background: #FFF9EC; border: 1px solid #F5E3BE; color: #8a6a1f;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 12px;
}
.staff-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.staff-pick input {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  font: inherit; font-size: 12.5px; color: var(--ink); background: #fff;
}
/* 商圈星级（列表列 / 编辑弹窗）。用设计令牌而非写死色值，跟随主题走 */
.stars { color: var(--orange); letter-spacing: 1.5px; white-space: nowrap; }
.dist-readout, .dist-stats { background: #F8FAFC; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.dist-readout > div, .dist-stats .ds-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 3px 0; }
.dist-readout > div > b, .dist-stats .ds-row > b { font-variant-numeric: tabular-nums; }
.dist-stats { margin-top: 12px; }
.dist-stats .ds-title { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.dist-map {
  flex: 1; min-width: 0; height: 460px; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: #EEF1F8;
}
.dist-map .leaflet-container { height: 100%; width: 100%; border-radius: 12px; background: #EEF1F8; font: inherit; }
.dist-center-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 1px 6px rgba(20, 16, 40, .4); }
.dist-handle-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-sizing: border-box; box-shadow: 0 1px 6px rgba(20, 16, 40, .4); cursor: grab; }
.dist-vertex-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--brand); border: 2.5px solid #fff; box-sizing: border-box; box-shadow: 0 1px 6px rgba(20, 16, 40, .45); cursor: grab; }
.dist-vertex-dot:active { cursor: grabbing; }
.dist-hint {
  position: absolute; left: 10px; top: 10px; z-index: 1100; pointer-events: none;
  background: rgba(255, 255, 255, .94); color: var(--text-2); font-size: 12px;
  padding: 6px 10px; border-radius: 8px; box-shadow: 0 2px 10px rgba(20, 16, 40, .1);
}

/* ===== 商铺「地图选点」弹窗 ===== */
.sm-map-wrap { position: relative; }
.sm-search { display: flex; gap: 8px; margin-bottom: 10px; }
.sm-search input { flex: 1; }
.sm-results { margin-top: 10px; max-height: 180px; overflow-y: auto; }
.sm-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; background: #fff; transition: .15s; }
.sm-item:hover { border-color: var(--brand); background: var(--brand-50); }
.sm-item .muted { font-size: 12px; }
.dist-tools { position: absolute; right: 10px; top: 10px; z-index: 1100; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
/* 底图署名 / 加载失败提示：贴在右下角，不挡操作 */
.dist-attrib {
  position: absolute; right: 6px; bottom: 4px; z-index: 1100; pointer-events: none;
  font-size: 11px; color: #6B7280; background: rgba(255, 255, 255, .8); padding: 1px 6px; border-radius: 6px;
}
.dist-tool {
  width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  cursor: pointer; font-size: 15px; color: var(--text-2); box-shadow: 0 2px 8px rgba(20, 16, 40, .08); pointer-events: auto;
}
.dist-tool:hover { color: var(--brand); border-color: var(--brand); }

/* ===== 图片 ===== */
.thumb { width: 84px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #F3F4F8; }
.thumb-lg { width: 100%; border-radius: 12px; margin-top: 10px; }
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-row { padding: 10px 12px; background: #F8FAFC; border-radius: 10px; border: 1px solid var(--line); }
.rec-h { font-size: 13px; color: var(--text); line-height: 1.6; }
.rec-pics { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rec-pics .thumb { width: 64px; height: 48px; }

/* ===== 工具 ===== */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: rgba(16, 24, 40, .94);
  color: #fff; padding: 11px 22px; border-radius: 10px; font-size: 13.5px; z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3); max-width: 80vw; text-align: center;
}
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap { gap: 12px; }
.muted { color: var(--text-3); font-size: 12px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.search-bar input {
  flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 12px; font-size: 13.5px; font-family: inherit; outline: none; transition: .16s;
}
.search-bar input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(67, 97, 238, .12); }
.pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 16px; color: var(--text-2); font-size: 12.5px;
}
/* 分页条（各列表页统一版式：左「每页条数 + 计数」，右「上一页 / 下一页」） */
.pager-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2);
}
.pager-bar .pb-left, .pager-bar .pb-right { display: flex; align-items: center; gap: 8px; }
.pager-bar .pb-left select {
  height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 26px 0 10px; font-family: inherit;
  font-size: 12.5px; color: var(--text); outline: none; cursor: pointer; background-color: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 12px;
}
.pager-bar .pb-left select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(67, 97, 238, .12); }

/* ===== 装修模块 ===== */
.deco-module { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.deco-module .dm-main { flex: 1; min-width: 0; }
.deco-module .dm-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.deco-module .dm-type { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { display: none; }
.switch .slider { position: absolute; inset: 0; background: #D0D5DD; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--brand), #6D3FE0); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ===== 等级分布条 ===== */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-label { width: 72px; font-size: 12.5px; color: var(--text-2); flex: none; }
.bar-track { flex: 1; height: 10px; background: #F1F3F9; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: .4s; }
.bar-val { width: 44px; text-align: right; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }

/* ===== 价格表 ===== */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.price-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: .16s; }
.price-card:hover { border-color: #C3CDF3; box-shadow: var(--shadow-2); }
.price-card .pc-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.price-card .pc-price { font-size: 26px; font-weight: 800; color: var(--brand); margin: 8px 0; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.price-card .pc-price small { font-size: 13px; color: var(--text-3); font-weight: 500; margin-left: 2px; }
.price-card .pc-desc { color: var(--text-2); font-size: 12px; min-height: 32px; line-height: 1.6; }
.toggle-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }

/* ===== 用户头像（用户管理 / 会员用户列表）===== */
.u-cell { display: flex; align-items: center; gap: 10px; }
.u-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); display: block; border: 1px solid var(--line); }
/* 微信未授权头像时的首字兜底：不拉外链、不出现碎图 */
.u-avatar-txt { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-50); }

/* ===== 窄屏收敛（侧边栏收成图标条）===== */
@media (max-width: 1000px) {
  .sidebar { width: 64px; padding: 16px 8px 12px; }
  .brand { justify-content: center; padding: 4px 0 16px; }
  .brand-text, .admin-mini, .nav-label { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .logout-btn { font-size: 0; height: 34px; }
  .logout-btn::after { content: '⏻'; font-size: 14px; }
  .content { padding: 16px 16px 40px; }
  .topbar { padding: 0 16px; }
}

/* ===== 铺位条件（商铺类型 / 可做餐饮 / 其他条件）=====
 * 找铺的人筛的不是「业态」而是「这间铺子接不接得了我的生意」，所以表单单开三块：
 *   .pick-grid/.pick-cell  商铺类型（多选文字块）
 *   .cond-grid/.cond-cell  其他条件（多选图标块，图标来自 /assets/icons/cond/*.png）
 * 选中态一律靠「底色 + 边框 + 文字色」表达，**不换图标**：
 * 同一张灰线稿在两种状态下都清晰，省掉一整套「选中版图标」的资源与维护。
 */
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-cell {
  font-family: inherit; font-size: 13px; line-height: 1.2;
  padding: 8px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  transition: background .14s, border-color .14s, color .14s;
}
.pick-cell:hover { border-color: #C3CDF3; color: var(--brand-600); }
.pick-cell.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-600); font-weight: 600; }

.cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.cond-cell {
  font-family: inherit; font-size: 12px; line-height: 1.2; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  transition: background .14s, border-color .14s, color .14s;
}
.cond-cell img { width: 26px; height: 26px; display: block; opacity: .8; }
.cond-cell:hover { border-color: #C3CDF3; }
.cond-cell.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-600); font-weight: 600; }
.cond-cell.on img { opacity: 1; }

/* 只读展示：商铺详情 / 纠错审核里把勾选项平铺成一排小胶囊 */
.cond-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cond-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #F4F6FB; color: var(--text-2);
  border-radius: 999px; padding: 3px 10px 3px 6px; font-size: 12px;
}
.cond-chip img { width: 16px; height: 16px; display: block; opacity: .85; }
.cond-chip.plain { padding: 3px 10px; }

/* ===== 走查顺序（2026-11-01） ===== */
/* 序号徽标：#1 是起点，扫一眼就知道走到第几家 */
.walk-no {
  display: inline-block; min-width: 34px; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px;
  color: var(--brand); background: var(--brand-50);
  border-radius: 6px; padding: 2px 6px;
}
/* 调整顺序弹层：长列表内部滚动，避免把整个弹窗顶出屏幕 */
.ro-list { max-height: 56vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.ro-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-bottom: 1px solid var(--line-2);
}
.ro-row:last-child { border-bottom: 0; }
.ro-row:hover { background: #FAFBFE; }
.ro-no { flex: 0 0 42px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.ro-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-ops { flex: 0 0 auto; display: flex; gap: 4px; }
.ro-ops .btn[disabled] { opacity: .35; }
/* 分拆提示条（2026-11-02）：开表单时把「新铺会插到 #N、其后顺移」说在明面上，
   否则用户只会觉得「保存完列表顺序怎么变了」。 */
.split-hint {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 8px;
  background: var(--brand-50); border: 1px solid var(--brand-100, rgba(37,99,235,.25));
  font-size: 13px; line-height: 1.65;
}
.split-hint b { color: var(--brand); }
