/* 颍淮农鲜 · 管理后台样式 */
:root {
  --green: #43A047;
  --green-deep: #2E7D32;   /* 深绿：白底绿色文字专用，保对比度，不随主色平移 */
  --green-2: #66BB6A;
  --green-3: #7CB342;
  --gold: #FFB300;
  --red: #E53935;
  --text: #1F2421;
  --sub: #7A837D;
  --line: #E8EDE7;
  --bg: #F4F7F3;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2E7D32, #66BB6A 55%, #7CB342);
}
.login-box {
  width: 400px; background: #fff; border-radius: 18px; padding: 40px 38px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand img { width: 86px; height: 86px; border-radius: 20px; }
/* 主标题变成 9 个字的门店名，字号从 24 收到 22（400px 箱体内宽 324px，9 字仍宽松），
   副标题「管理后台」是标签性质，加一点字距让它不显得挤在店名下面 */
.login-brand h1 { font-size: 22px; letter-spacing: .5px; margin: 14px 0 6px; }
.login-brand p { color: var(--sub); font-size: 13px; letter-spacing: 2px; margin: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #56605A; margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px; border: 1px solid #DDE3DC; border-radius: 10px;
  padding: 0 14px; outline: none; transition: .15s;
}
.field input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(67,160,71,.12); }
.login-btn {
  width: 100%; height: 46px; border: none; border-radius: 23px; margin-top: 10px;
  background: linear-gradient(90deg, #66BB6A, #43A047); color: #fff; font-size: 16px;
  font-weight: 600; cursor: pointer;
}
.login-btn:hover { filter: brightness(1.06); }
.login-tip { text-align: center; color: #A0A8A2; font-size: 12px; margin-top: 18px; }
.err { color: var(--red); font-size: 13px; min-height: 20px; margin-top: 8px; text-align: center; }

/* 登录页验证码：输入框 + 服务端下发的 SVG 图（点图换一张） */
.cap-row { display: flex; align-items: center; gap: 10px; }
.cap-row input { flex: 1; min-width: 0; }
.cap-img {
  width: 120px; height: 42px; flex-shrink: 0; overflow: hidden; cursor: pointer;
  border: 1px solid #DDE3DC; border-radius: 10px; background: #F1F6EF;
  display: flex; align-items: center; justify-content: center;
}
.cap-img svg { display: block; width: 120px; height: 42px; }
.cap-ph { font-size: 12px; color: #9AA39C; }
.cap-tip { font-size: 11.5px; color: #A0A8A2; margin-top: 6px; }

/* ---------- 登录页：口令 / 扫码 两个页签 ---------- */
.login-tabs { display: flex; gap: 8px; background: #F2F5F2; border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.login-tab {
  flex: 1; height: 36px; border: none; border-radius: 9px; background: transparent;
  color: #6B756E; font-size: 13.5px; cursor: pointer; transition: .15s;
}
.login-tab.active { background: #fff; color: var(--green); font-weight: 600; box-shadow: 0 1px 4px rgba(31,36,33,.08); }
.login-btn.ghost { background: #F3F5F3; color: #5D665F; margin-top: 14px; }

/* 扫码面板：二维码居中，尺寸固定，避免生成前后跳动 */
.qr-box {
  width: 220px; height: 220px; margin: 6px auto 0; border: 1px solid #E8EDE8; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden;
}
.qr-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-loading { color: #A0A8A2; font-size: 13px; text-align: center; padding: 0 16px; line-height: 1.7; }
.qr-hint { text-align: center; color: #7A837D; font-size: 12.5px; margin-top: 14px; line-height: 1.7; }

/* ---------- 后台「绑定微信」弹窗 ---------- */
.wx-qr-box {
  width: 200px; height: 200px; margin: 14px auto 0; border: 1px solid #E8EDE8; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden;
}
.wx-qr { width: 100%; height: 100%; object-fit: contain; display: block; }
.wx-qr-loading { color: #A0A8A2; font-size: 12.5px; text-align: center; padding: 0 14px; line-height: 1.7; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex-shrink: 0; background: linear-gradient(180deg, #2E7D32, #43A047);
  color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0;
}
.sidebar .brand { padding: 22px 20px 18px; display: flex; align-items: center; }
.sidebar .brand img { width: 40px; height: 40px; border-radius: 10px; margin-right: 12px; }
.sidebar .brand .bn { font-size: 16px; font-weight: 700; }
.sidebar .brand .bs { font-size: 11px; opacity: .75; }
.nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; padding: 11px 14px; border-radius: 10px;
  color: rgba(255,255,255,.86); font-size: 14px; margin-bottom: 4px; cursor: pointer;
}
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a.on { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.nav a .ic { width: 18px; margin-right: 10px; text-align: center; opacity: .9; }
/* 侧栏条目上的待办角标（退款审核待处理数） */
.nav a { position: relative; }
.nav-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px;
  border-radius: 9px; background: #E53935; color: #fff;
  font-size: 11px; font-weight: 600; text-align: center; font-style: normal;
}
/* ---------- 侧边栏分栏：可收起 / 展开（2026-10-19） ----------
   分栏标题从纯文字改成按钮：整行可点，右侧箭头指示状态。
   收起时只隐藏该分栏下的菜单项，标题仍在 —— 否则店主找不到「怎么再展开」。 */
.nav .sec {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 11px; letter-spacing: .5px;
  color: rgba(255,255,255,.55); padding: 14px 14px 6px;
  transition: color .15s;
}
.nav .sec:hover { color: rgba(255,255,255,.85); }
.nav .sec:focus-visible { outline: 1px dashed rgba(255,255,255,.5); outline-offset: -3px; }
.nav .sec-arrow {
  font-size: 10px; line-height: 1; opacity: .8;
  transition: transform .18s ease;
}
.nav-group.collapsed .sec-arrow { transform: rotate(-90deg); }
.nav-group.collapsed > a { display: none; }
/* 收起状态下，分栏标题下面不再留空白，看起来更像一块「折叠条」 */
.nav-group.collapsed .sec { padding-bottom: 10px; }

.main { flex: 1; margin-left: 216px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 17px; margin: 0; }
/* 顶栏不再重复显示页面标题（店主 2026-10-29）：内容区每个卡片自己已有标题，顶栏再来一个是重复。
   元素与文字保留 —— JS 仍在写它、回归也读它，这里只做视觉隐藏；.who 用 margin-left:auto 继续保持右对齐。 */
.topbar #pageTitle { display: none; }
.topbar .who { display: flex; align-items: center; color: var(--sub); font-size: 13px; margin-left: auto; }
.topbar .who .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); margin-right: 8px; }
.link-btn { color: var(--green); cursor: pointer; margin-left: 14px; }

/* ---------- 顶栏「站内消息」未读红点 ---------- */
.link-btn .badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  margin-left: 5px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 600;
  text-align: center; vertical-align: 1px;
}

/* ---------- 站内消息列表 ---------- */
.msg-item {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 10px; background: #fff; cursor: pointer; transition: .15s;
}
.msg-item:hover { border-color: var(--green-2); background: #F6FBF5; }
.msg-txt { font-size: 13.5px; color: var(--text); }
.msg-meta { margin-top: 5px; font-size: 12px; color: var(--sub); }
/* 消息类型标签：库存预警要去补货，订单动态要去处理订单，一眼分开 */
.msg-tag {
  display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; vertical-align: 1px; color: #fff;
}
.msg-tag.stock { background: #E08A00; }
.msg-tag.order { background: var(--green); }
/* 未读：左侧绿条 + 轻微底色，扫一眼就知道哪些还没处理 */
.msg-item.unread { border-left: 3px solid var(--red); background: #FFF8F8; }
.msg-item.unread:hover { background: #FFF3F3; }
.msg-item.unread .msg-txt { font-weight: 600; }
/* 已解除（库存已补回 / 商品已下架删除）：整体压灰，不再催办 */
.msg-item.done { opacity: .55; cursor: default; }
.msg-item.done:hover { border-color: var(--line); background: #fff; }
.content { padding: 22px 26px 40px; }

/* ---------- 卡片 / 统计 ---------- */
.card {
  background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(67, 160, 71,.05);
}
.card h3 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; }
.card h3 .sub { font-size: 12px; color: var(--sub); font-weight: 400; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat {
  background: #fff; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(67, 160, 71,.05); position: relative; overflow: hidden;
}
.stat .lb { font-size: 13px; color: var(--sub); }
.stat .vl { font-size: 26px; font-weight: 700; margin: 6px 0 4px; }
.stat .chg { font-size: 12px; display: flex; gap: 12px; }
.up { color: #E53935; }
.down { color: var(--green-deep); }
.flat { color: var(--sub); }
.stat::after {
  content: ''; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px;
  border-radius: 50%; background: rgba(67, 160, 71,.06);
}

.panel-row { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .panel-row { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2,1fr); } }

/* ---------- 特惠通知（订阅消息） ---------- */
.notice-state {
  border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; font-size: 13px;
  background: #F4F6F4; color: var(--sub); border: 1px solid #E7ECE6;
}
.notice-state.ok { background: rgba(67, 160, 71,.08); color: var(--green); border-color: rgba(67, 160, 71,.22); }
.notice-state.warn { background: rgba(255,179,0,.12); color: #8A5A00; border-color: rgba(255,179,0,.32); }

/* ---------- 表格 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  height: 34px; border: 1px solid #DDE3DC; border-radius: 8px; padding: 0 10px; outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--green-2); }
.btn {
  height: 34px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--green);
  background: var(--green); color: #fff; cursor: pointer; display: inline-flex; align-items: center;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: #fff; color: var(--green); }
.btn.gray { background: #fff; color: var(--sub); border-color: #DDE3DC; }
.btn.danger { background: #fff; color: var(--red); border-color: #F3C9C6; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }

/* 合规信息页的三类协议页签：选中态由 syncAgreementTabs() 切换 gray / active，这里只负责布局与过渡 */
.ag-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ag-tabs .btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ag-tabs .ag-tab.active { box-shadow: 0 2px 6px rgba(31,36,33,.12); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid #F0F3EF; }
th { color: var(--sub); font-weight: 600; background: #FAFCF9; }
tbody tr:hover { background: #FAFCF9; }
td.nowrap { white-space: nowrap; }

/* 刚保存的商品行短暂高亮：数据刷新是「静默」的，得给店主一个看得见的落点 */
tbody tr.row-flash > td { background: #FFF6DA; transition: background .8s ease-out; }
.t-right { text-align: right; }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px;
  background: rgba(67, 160, 71,.1); color: var(--green);
}
.pill.red { background: rgba(229,57,53,.1); color: var(--red); }
.pill.gold { background: rgba(255,179,0,.16); color: #B26A00; }
.pill.gray { background: #F0F3EF; color: var(--sub); }
.pill.blue { background: rgba(25,118,210,.12); color: #1565C0; }
.thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #F1F6EF; }

/* ---------- 表单（弹窗内使用） ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item label { display: block; font-size: 12px; color: #56605A; margin-bottom: 5px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; height: 38px; border: 1px solid #DDE3DC; border-radius: 8px; padding: 0 12px; outline: none;
}
.form-item textarea { height: 70px; padding: 8px 12px; resize: vertical; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(67,160,71,.12);
}

.uploader {
  display: flex; align-items: center; gap: 14px;
}
.uploader .prev {
  width: 96px; height: 96px; border-radius: 12px; object-fit: cover;
  background: #F1F6EF; border: 1px dashed #C8D4C6;
}
.uploader .hint { font-size: 12px; color: var(--sub); }
/* 主图位：图片（列表卡封面）与主视频（详情首屏）各占一格，都带小标题，避免店主分不清两者用途 */
.uploader .previews { display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; }
.uploader .pv-cell { text-align: center; }
.uploader .prev-video {
  width: 128px; height: 72px; border-radius: 10px; object-fit: cover;
  background: #000; border: 1px dashed #C8D4C6; display: block;
}
.uploader .prev-label { display: block; font-size: 11px; color: var(--sub); margin-top: 4px; }
/* 文件选择：原生 input[type=file] 的「未选择文件」由浏览器绘制，改不了文案，
   所以把原生控件藏起来（仍可被 .click() 触发），按钮与状态文字自绘 */
.file-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.file-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  opacity: 0; overflow: hidden; border: 0;
}
.file-btn {
  font: inherit; font-size: 13px; padding: 4px 16px; border-radius: 4px; cursor: pointer;
  background: #EFEFEF; color: #222; border: 1px solid #B6BCB7;
}
.file-btn:hover { background: #E6E9E6; }
.file-btn:active { background: #DDE2DD; }
.file-name {
  font-size: 13px; color: var(--sub); max-width: 280px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 客服与门店：门店坐标（纬度 / 经度）两个输入并排，放在「门店地址」右侧那半格 */
.geo-row { display: flex; gap: 10px; }
.geo-row input { flex: 1; min-width: 0; }
/* 提示里的网址要一眼看出能点（全局 a 是继承色 + 无下划线，直接用会像普通文字） */
.hint a { color: #2E7D32; text-decoration: underline; text-underline-offset: 2px; }
.hint a:hover { color: #1B5E20; }

/* ---------- 商品详情（图文块）编辑 ---------- */
.dt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.dt-item { border: 1px solid #E3E9E4; border-radius: 10px; padding: 10px; background: #FAFBFA; }
.dt-text {
  width: 100%; box-sizing: border-box; border: 1px solid #DCE3DD; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; line-height: 1.6; resize: vertical; font-family: inherit;
}
.dt-text:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(67,160,71,.12); }
.dt-img { width: 100%; max-width: 300px; border-radius: 8px; display: block; background: #F1F6EF; }
/* 详情里的介绍视频：预览区跟着块宽度走，16:9 占位避免加载前塌成一条 */
.dt-video { width: 100%; max-width: 320px; border-radius: 8px; display: block; background: #000; aspect-ratio: 16 / 9; }

/* ---------- 轮播设置：已配置的轮播列表（左预览 / 中信息 / 右操作） ---------- */
.bn-item { display: flex; align-items: center; gap: 14px; border: 1px solid #E3E9E4; border-radius: 10px; padding: 10px 12px; background: #FAFBFA; margin-bottom: 10px; }
.bn-thumb { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; display: block; background: #000; flex-shrink: 0; }
.bn-meta { flex: 1; min-width: 0; }
.bn-type { font-size: 13px; color: var(--text); font-weight: 500; }
.bn-url { font-size: 12px; color: var(--sub); margin-top: 4px; word-break: break-all; }
.bn-ops { display: flex; gap: 6px; flex-shrink: 0; }
.bn-ops .btn[disabled] { opacity: .4; cursor: not-allowed; }
/* 「系统默认图」标记：让店主一眼看出这条是系统预置的、可以撤销 */
.bn-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 20px;
  background: #EAF3EC; color: var(--brand, #3F7A55); font-size: 11px; font-weight: 400; vertical-align: 1px; }

/* 跳转入口一列：下拉 + 外链地址输入 */
.bn-linkbox { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.bn-link { height: 32px; padding: 0 8px; border: 1px solid #DDE3DC; border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--text); cursor: pointer; }
.bn-link:disabled { background: #F2F4F2; color: #9AA39C; cursor: not-allowed; }
.bn-linkurl { height: 32px; padding: 0 10px; border: 1px solid #DDE3DC; border-radius: 8px;
  font-size: 12px; color: var(--text); outline: none; }
.bn-linkurl:focus { border-color: var(--brand, #3F7A55); }
.bn-tip { font-size: 11px; color: var(--sub); }
.dt-ops { display: flex; gap: 8px; margin-top: 8px; }
.dt-empty { font-size: 12px; color: var(--sub); padding: 6px 0; }
.dt-actions { display: flex; gap: 8px; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(27,94,32,.95); color: #fff; padding: 10px 22px; border-radius: 22px;
  z-index: 200; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.empty-tip { text-align: center; color: #A0A8A2; padding: 40px 0; font-size: 13px; }
/* 登录记录：成功/失败标记 */
.lg-ok { color: var(--green-deep); font-weight: 600; }
.lg-bad { color: var(--red); font-weight: 600; }

/* ---------- 图表 ---------- */
.chart-wrap { width: 100%; overflow-x: auto; }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--sub); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 6px; }
.bar-mini { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.bar-mini .b { width: 22px; background: rgba(67, 160, 71,.3); border-radius: 4px 4px 0 0; }
.bar-mini .b.cur { background: linear-gradient(180deg,#66BB6A,#43A047); }

/* ---------- 弹窗 ----------
   结构固定三段式：头部 / 可滚动主体 / 常驻页脚。
   必须用 flex 纵向布局 + 主体 overflow:auto，否则表单一长，
   底部的「关闭 / 保存」会被 max-height 裁掉且无法滚动到（曾出过这个故障）。
   ⚠️ .modal 只允许定义这一处，不要再补第二段覆盖 —— 会静默改掉滚动行为。 */
.mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300;
  background: rgba(20,30,22,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;                       /* 窄窗口下弹窗不贴边 */
}
.mask[hidden] { display: none; }
.modal {
  display: flex; flex-direction: column;
  width: 600px; max-width: 92vw; max-height: 88vh;
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22); overflow: hidden;
}
.modal.sm { width: 420px; }
.modal-hd {
  flex: none; padding: 18px 22px; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.modal-bd { flex: 1 1 auto; overflow: auto; padding: 20px 22px; }
.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-size: 13px; color: #56605A; margin-bottom: 6px; }
.fld input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; outline: none;
}
.fld input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(67,160,71,.12); }
.modal .tip { font-size: 12px; color: var(--sub); padding-bottom: 6px; }
.modal .tip.err { color: var(--red); }
.modal .tip.ok { color: var(--green); }
.modal-ft {
  flex: none; padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
}
/* 标题栏右侧带操作按钮的形态（商品 / 套餐编辑这类长表单）：
   标题左、按钮右，正文改为整块滚动 —— 按钮始终可见，不会压住表单内容 */
.modal-hd.hd-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px 14px 22px;
}
.modal-hd .hd-title {
  font-size: 16px; font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-hd .hd-btns { display: flex; align-items: center; gap: 8px; flex: none; }
.modal-hd .hd-btns .btn { height: 32px; line-height: 32px; padding: 0 16px; font-size: 13px; }

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; flex-wrap: wrap; gap: 10px;
}
.pager .pg-info { font-size: 13px; color: var(--sub); }
.pager .pg-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn {
  min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  cursor: pointer; font-size: 13px;
}
.pg-btn:hover:not([disabled]) { border-color: var(--green-2); color: var(--green); }
.pg-btn.cur { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pg-btn[disabled] { color: #C3C9C3; cursor: not-allowed; }
.pager .pg-dot { color: var(--sub); padding: 0 2px; }

/* 左侧菜单拖拽排序 */
.nav a[draggable] { cursor: grab; }
.nav a.dragging { opacity: .45; }

/* ---------- 送货上门（客服与门店页）：按区分组的街道 / 乡镇多选 ---------- */
.mc-wrap { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 12px; background: #FBFDFA; }
.mc-dist { border-top: 1px dashed #E4EAE3; padding: 10px 0 4px; }
.mc-dist:first-child { border-top: 0; }
.mc-dist-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mc-dist-hd strong { font-size: 13px; color: var(--text); }
.mc-dist-hd span { display: flex; gap: 6px; }
.mc-streets { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 4px 12px; }
/* 覆盖 .form-item label / .form-item input 的通用表单样式：这里的勾选项要横排、要小 */
.mc-streets .mc-item {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: 13px; color: #3A423D; cursor: pointer; padding: 3px 0;
}
.mc-streets .mc-item input[type="checkbox"] {
  width: auto; height: auto; min-width: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; flex-shrink: 0; box-shadow: none;
}
.mc-foot { margin-top: 10px; }
.mc-warn { color: var(--red); }
