* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #1f2329; font-size: 14px; }
.hidden { display: none !important; }

/* ===== 登录页：品牌 split + 左侧 hero 图 ===== */
.login-mask { position: fixed; inset: 0; display: flex; z-index: 100; background: #fff; }

/* 左：品牌 hero */
.login-brand { flex: 1 1 46%; position: relative; overflow: hidden; color: #fff;
  background-color: #0b1f3a; background-size: cover; background-position: center; }
.login-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,10,30,.55) 0%, rgba(0,10,30,.25) 50%, rgba(0,10,30,.65) 100%); z-index: 1; }
.login-brand-top { position: absolute; top: 44px; left: 52px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; z-index: 4; }
.login-brand-top .login-brand-logo { height: 36px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.login-hero-foot { position: absolute; bottom: 56px; left: 52px; z-index: 4; }
.login-hero-foot .hero-title { font-size: 32px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; text-shadow: 0 4px 12px rgba(0,0,0,.35); }
.login-hero-foot .hero-sub { font-size: 15px; opacity: .85; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* hero 轮播（5 张图交叉淡入 + 图上文字 + AI 水印 + 指示条） */
.login-carousel { position: absolute; inset: 0; z-index: 0; }
.login-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.login-slide.active { opacity: 1; }
.login-slide-text { position: absolute; left: 52px; bottom: 96px; z-index: 3; }
.login-slide-text .hero-title { font-size: 30px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; text-shadow: 0 4px 14px rgba(0,0,0,.4); }
.login-slide-text .hero-sub { font-size: 14px; opacity: .92; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.login-note { position: absolute; right: 16px; bottom: 14px; z-index: 3; font-size: 12px; color: rgba(255,255,255,.6); text-shadow: 0 1px 4px rgba(0,0,0,.4); text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.login-dots { position: absolute; left: 52px; bottom: 52px; z-index: 3; display: flex; gap: 8px; }
.login-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s; }
.login-dots i.active { background: #fff; }

/* 右：登录窗口 */
.login-form-wrap { flex: 1 1 54%; background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px; position: relative; }
.login-form { width: 100%; max-width: 380px; }
.login-form .portal-tag { display: inline-block; font-size: 12px; color: #2589FF; background: #eef5ff; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; font-weight: 600; }
.login-form h2 { font-size: 28px; font-weight: 700; color: #111827; margin: 0 0 10px; }
.login-form .sub { font-size: 14px; color: #6b7280; margin: 0 0 30px; line-height: 1.7; }
.login-form .input-group { position: relative; margin-bottom: 18px; }
.login-form .input-group .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #9ca3af; }
.login-form .input-group input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 15px; outline: none; transition: .2s; background: #fff; color: #1f2937; }
.login-form .input-group input:focus { border-color: #2589FF; box-shadow: 0 0 0 3px rgba(37,137,255,.12); }
.login-form .agree-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4e5969; margin-bottom: 10px; cursor: pointer; }
.login-form .agree-row input { width: 16px; height: 16px; accent-color: #2589FF; cursor: pointer; }
.login-form .agree-row a { color: #2589FF; text-decoration: none; }
.login-form .agree-row a:hover { text-decoration: underline; }
.login-form .submit { width: 100%; height: 48px; border: none; border-radius: 10px; background: #2589FF; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: .2s; box-shadow: 0 10px 24px rgba(37,137,255,.28); margin-top: 6px; }
.login-form .submit:hover { background: #1a75e6; transform: translateY(-1px); }
.login-form .submit:disabled { background: #a0c6ff; cursor: not-allowed; transform: none; }
.login-form .form-err { color: #f5634a; font-size: 13px; margin: 12px 0 0; min-height: 18px; }
.login-form-wrap .form-foot { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 12px; color: #9ca3af; line-height: 1.8; }
.login-form-wrap .form-foot a.cp-link { color: inherit; text-decoration: none; }
.login-form-wrap .form-foot a.cp-link:hover { color: #2589FF; text-decoration: underline; }
.login-form-wrap .form-foot .ver-label { margin-left: 6px; }


/* 协议弹窗 */
.agree-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.agree-mask.show { display: flex; }
.agree-modal { background: #fff; border-radius: 14px; padding: 26px 30px 20px; width: 92%; max-width: 660px; max-height: 76vh; display: flex; flex-direction: column; box-shadow: 0 12px 48px rgba(0,0,0,.25); }
.agree-modal h3 { margin: 0 0 12px; font-size: 18px; color: #111827; }
.agree-body { flex: 1; overflow-y: auto; font-size: 13px; color: #374151; line-height: 1.9; padding-right: 10px; }
.agree-body h4 { font-size: 14px; margin: 16px 0 6px; color: #111827; }
.agree-body p { margin: 4px 0; }
.agree-close { margin-top: 16px; align-self: flex-end; padding: 8px 30px; border: none; border-radius: 8px; background: #2589FF; color: #fff; cursor: pointer; font-size: 14px; }
.agree-close:hover { background: #1a75e6; }

@media (max-width: 900px) {
  .login-mask { flex-direction: column; }
  .login-brand { flex: none; min-height: 300px; }
  .login-form-wrap { flex: 1; padding: 32px; }
  .login-brand-top { left: 28px; top: 28px; }
  .login-hero-foot { left: 28px; bottom: 32px; }
}

/* 框架 */
.topbar { height: 54px; background: #1f2329; color: #fff; border-bottom: 1px solid #1b1f26; display: flex;
  align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; color: #fff; }
.brand-logo { height: 34px; max-height: 34px; width: auto; max-width: 260px; }
.brand .portal-tag-inline { display: inline-block; font-size: 12px; color: #2589FF; background: #eef5ff; padding: 4px 12px; border-radius: 20px; font-weight: 600; margin: 0; }
.brand-sub { color: #9fb3ff; font-size: 14px; font-weight: 400; }
.top-right { display: flex; align-items: center; gap: 14px; }
.env-tag { background: rgba(255,255,255,.12); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.link-btn { background: none; border: none; color: #9fb3ff; cursor: pointer; font-size: 13px; }
.link-btn:hover { color: #fff; }

.layout { display: flex; height: calc(100vh - 54px); overflow: hidden; }
.sidebar { width: 200px; background: #fff; border-right: 1px solid #ebedf0; padding: 16px 0; overflow-y: auto; }
.nav-group { font-size: 12px; color: #a8abb2; padding: 14px 20px 6px; }
.nav-item { padding: 10px 20px; cursor: pointer; color: #4e5969; border-left: 3px solid transparent; display: flex; align-items: center; gap: 8px; }
.nav-ico { width: 16px; height: 16px; flex: none; opacity: .8; }
.nav-item:hover { background: #f7f8fa; }
.nav-item.active { background: #eef5ff; color: #2589FF; border-left-color: #2589FF; font-weight: 500; }
.nav-item.active .nav-ico { opacity: 1; }

.content { flex: 1; padding: 24px; overflow: auto; }
.loading { color: #8a8f99; padding: 40px; text-align: center; }

/* 卡片/区块 */
.card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.muted { color: #8a8f99; font-size: 12px; }
.row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: #4e5969; }
.field input, .field select { height: 36px; border: 1px solid #dcdfe6; border-radius: 7px; padding: 0 10px; font-size: 13px; outline: none; }
.field input:focus, .field select:focus { border-color: #2589FF; }
.inp { height: 36px; border: 1px solid #dcdfe6; border-radius: 7px; padding: 0 10px; font-size: 13px; outline: none; width: 100%; box-sizing: border-box; background: #fff; }
.inp:focus { border-color: #2589FF; }

.btn { height: 36px; padding: 0 18px; border: none; border-radius: 7px; background: #2589FF; color: #fff;
  font-size: 14px; cursor: pointer; }
.btn:hover { background: #1c73e0; }
.btn.secondary { background: #fff; color: #4e5969; border: 1px solid #dcdfe6; }
.btn.secondary:hover { color: #2589FF; border-color: #2589FF; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-sm { height: 36px; padding: 0 12px; border: 1px solid #dcdfe6; background: #fff; color: #4e5969;
  border-radius: 7px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-sm:hover { color: #2589FF; border-color: #2589FF; }
.btn-sm:disabled { opacity: .6; cursor: not-allowed; }

/* 商品排序：竖向双箭头紧凑控件（2026-11-05）
   为什么竖排：操作列原本已放下架/编辑/删除 3 个按钮、宽 263px，
   再并排加两个「↑ ↓」会折成两行（实测 distinctTops=2）。
   竖排后横向只占 26px，不挤操作列也不撑宽表格。 */
.sort-grp { display: inline-flex; flex-direction: column; vertical-align: middle;
  margin-right: 4px; border: 1px solid #dcdfe6; border-radius: 5px; overflow: hidden; }
.sort-grp button { width: 26px; height: 17px; padding: 0; border: 0; background: #fff;
  color: #4e5969; font-size: 11px; line-height: 1; cursor: pointer; transition: .15s; }
.sort-grp button + button { border-top: 1px solid #dcdfe6; }
.sort-grp button:hover { background: #eaf2ff; color: #2589FF; }

.field-row { display: flex; align-items: center; gap: 8px; }
.field-row input { flex: 1; }

/* 文件上传组件（证书/密钥） */
.file-upload { position: relative; flex: 1; }
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.file-upload .file-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px dashed #2589FF; background: #f5f9ff; color: #2589FF; border-radius: 7px; font-size: 13px; cursor: pointer; transition: .2s; }
.file-upload .file-btn:hover { background: #eaf4ff; }
.file-upload .file-status { margin-left: 8px; font-size: 12px; color: #4e5969; }
.file-upload .file-status.ok { color: #18a058; }
.file-upload .file-status.err { color: #f5634a; }
.file-hint { font-size: 12px; color: #8a8f99; margin-top: 4px; }

/* 独立按钮式上传（商品弹窗等，非 .file-upload 容器内的 file-btn 也生效；.file-upload .file-btn 优先级更高不受影响） */
.file-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  background: #2589FF; color: #fff; border: none; border-radius: 7px; font-size: 13px;
  cursor: pointer; transition: all .2s; user-select: none; white-space: nowrap; }
.file-btn:hover { background: #1a75e6; box-shadow: 0 4px 12px rgba(37,137,255,.35); transform: translateY(-1px); }
.file-btn:active { background: #1668c8; transform: translateY(0); box-shadow: none; }
.file-status { margin-left: 8px; font-size: 12px; color: #4e5969; }
.file-status.ok { color: #18a058; }
.file-status.err { color: #f5634a; }
.up-bar { display: inline-block; width: 90px; height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; margin-left: 8px; vertical-align: middle; }
.up-bar i { display: block; height: 100%; background: #2589FF; border-radius: 3px; transition: width .2s; }

/* 商品图片预览（发布/编辑弹窗）：缩略图 + 序号 + 悬停删除 + 拖拽排序 */
.img-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; min-height: 10px; }
.img-item { position: relative; width: 68px; height: 68px; cursor: grab; }
.img-item.dragging { opacity: .45; }
.img-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; background: #f7f8fa; pointer-events: none; }
.img-item .img-order { position: absolute; left: -5px; top: -5px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #2589FF; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.img-item .img-del { position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%; background: #f5634a; color: #fff; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); display: none; }
.img-item:hover .img-del { display: block; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.badge.ok { background: #e8f8ee; color: #18a058; }
.badge.warn { background: #fff3e0; color: #e08a00; }
.badge.err { background: #fdeceb; color: #f5634a; }
.badge.gray { background: #f0f1f3; color: #8a8f99; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { padding: 12px; border-bottom: 1px solid #ebedf0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f0f1f3; }
th { color: #8a8f99; font-weight: 500; background: #fafbfc; }
tr:hover td { background: #fafbff; }
.img-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
/* 订单：按订单号核销条 */
.order-verify-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.order-verify-bar input { flex: 1; min-width: 260px; height: 36px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 13px; }
/* 线索管理 */
.leads-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.leads-stat { flex: 1; min-width: 110px; background: #f7f9fc; border: 1px solid #ebedf0; border-radius: 10px; padding: 14px 16px; text-align: center; }
.leads-stat .ls-v { font-size: 22px; font-weight: 700; color: #1f2329; }
.leads-stat .ls-t { font-size: 12px; color: #8a8f99; margin-top: 4px; }
.leads-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.leads-filter input, .leads-filter select { height: 36px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 13px; background: #fff; }
.leads-filter input[type="date"] { width: 150px; }
.leads-table td.leads-intent { max-width: 220px; white-space: normal; line-height: 1.5; }
.pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: #8a8f99; }

/* 操作提示：右上角、顶栏下方的蓝色条形（从右滑入，多条向下堆叠） */
.toast-layer { position: fixed; top: 62px; right: 20px; z-index: 9999; display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { background: #fff; color: #1f2329; padding: 10px 16px 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1.5;
  border-left: 4px solid #2589FF; box-shadow: 0 6px 18px rgba(31,35,41,.14); max-width: 360px; opacity: 0; transform: translateX(24px);
  display: flex; align-items: center; gap: 9px; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-ico { width: 18px; height: 18px; border-radius: 50%; background: #2589FF; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-ico svg { display: block; }
.toast-txt { word-break: break-all; }
/* 类型条：左侧色条 + 图标底色随类型变化（默认蓝色信息；success 绿 / error 红 / info 灰） */
.toast-success { border-left-color: #19a15f; } .toast-success .toast-ico { background: #19a15f; }
.toast-error { border-left-color: #e54545; } .toast-error .toast-ico { background: #e54545; }
.toast-error .toast-txt { color: #c0392b; }
.toast-info { border-left-color: #6b7280; } .toast-info .toast-ico { background: #6b7280; }
.geo-hint { margin-left: 8px; font-size: 12px; line-height: 30px; }
.geo-hint.ok { color: #19a15f; }
.geo-hint.err { color: #e54545; }

.pager { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pager button { height: 30px; padding: 0 12px; border: 1px solid #dcdfe6; background: #fff; border-radius: 6px; cursor: pointer; }
.pager button:disabled { opacity: .5; }

/* ---------- 运营总览驾驶舱 ---------- */
.ov-page { padding: 0; }
.ov-top-tabs { display: flex; gap: 28px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #ebedf0; margin-bottom: 18px; }
.ov-top-tabs .tab { cursor: pointer; color: #4e5969; font-size: 14px; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.ov-top-tabs .tab:hover { color: #2589FF; }
.ov-top-tabs .tab.active { color: #2589FF; border-bottom-color: #2589FF; font-weight: 500; }

.ov-grid { display: grid; grid-template-columns: 340px 1fr 340px; gap: 16px; padding: 0 24px 18px; }
@media (max-width: 1280px) { .ov-grid { grid-template-columns: 1fr; } }

.ov-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); margin-bottom: 16px; }
.ov-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ov-card .title { font-size: 15px; font-weight: 600; color: #1f2329; }
.ov-card .sub { font-size: 12px; color: #8a8f99; }

.ov-kpi { display: flex; align-items: flex-end; gap: 10px; }
.ov-kpi .num { font-size: 32px; font-weight: 700; color: #1f2329; line-height: 1; }
.ov-kpi .unit { font-size: 13px; color: #8a8f99; margin-bottom: 4px; }
.ov-kpi .change { font-size: 12px; color: #8a8f99; margin-top: 8px; }
.ov-kpi .change.up { color: #18a058; }
.ov-kpi .change.down { color: #f5634a; }
.ov-kpi-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-left: auto; }
.ov-kpi-icon.blue { background: #eef5ff; color: #2589FF; }
.ov-kpi-icon.green { background: #e8f8ee; color: #18a058; }
.ov-kpi-icon.orange { background: #fff3e0; color: #e08a00; }
.ov-kpi-icon.red { background: #fdeceb; color: #f5634a; }

.ov-mini-row { display: flex; gap: 12px; margin-top: 12px; }
.ov-mini { flex: 1; background: #fafbfc; border-radius: 8px; padding: 12px; }
.ov-mini .label { font-size: 12px; color: #8a8f99; margin-bottom: 6px; }
.ov-mini .val { font-size: 18px; font-weight: 600; color: #1f2329; }

.ov-chart-h { height: 180px; }
.ov-chart-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: #c4c7ce; font-size: 12px; }

/* 中国地图容器 */
.ov-map-wrap { position: relative; height: 420px; }
.ov-map-wrap .map-legend { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.9); border-radius: 8px; padding: 10px 14px; font-size: 12px; }
.ov-map-wrap .map-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: #2589FF; display: inline-block; margin-right: 6px; }

/* 折线图 SVG */
.ov-line-svg { width: 100%; height: 100%; }
.ov-line-svg polyline { fill: none; stroke: #2589FF; stroke-width: 2; }
.ov-line-svg .axis { stroke: #ebedf0; stroke-width: 1; }
.ov-line-svg .axis-text { fill: #8a8f99; font-size: 10px; }
.ov-line-svg .area { fill: rgba(37,137,255,.12); }

/* 环形图 */
.ov-donut { display: flex; align-items: center; justify-content: center; height: 170px; position: relative; }
.ov-donut svg { transform: rotate(-90deg); }
.ov-donut .center { position: absolute; text-align: center; }
.ov-donut .center .big { font-size: 22px; font-weight: 700; color: #1f2329; }
.ov-donut .center .small { font-size: 12px; color: #8a8f99; }
.ov-donut-legend { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 12px; }
.ov-donut-legend span { display: flex; align-items: center; gap: 4px; }
.ov-donut-legend i { width: 8px; height: 8px; border-radius: 2px; }

/* 底部入口 */
.ov-bottom { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 0 24px 24px; }
@media (max-width: 1200px) { .ov-bottom { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ov-bottom { grid-template-columns: repeat(2, 1fr); } }
.ov-entry-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ov-entry-card .entry-title { font-size: 14px; font-weight: 600; color: #1f2329; margin-bottom: 12px; }
.ov-entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ov-entry { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 8px 4px; border-radius: 8px; }
.ov-entry:hover { background: #f7f8fa; }
.ov-entry .icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #f0f7ff; }
.ov-entry .txt { font-size: 12px; color: #4e5969; }

/* 门店编辑弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(20,24,31,.45); display: flex;
  align-items: center; justify-content: center; z-index: 300; padding: 40px 16px; overflow: auto; }
.modal { width: 720px; max-width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 16px 50px rgba(0,0,0,.22);
  display: flex; flex-direction: column; max-height: calc(100vh - 80px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid #ebedf0; font-size: 15px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 22px; line-height: 1; color: #8a8f99; cursor: pointer; }
.modal-close:hover { color: #f5634a; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid #ebedf0; }
.sec { border: 1px solid #ebedf0; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: #fafbfc; }
.sec-t { font-size: 13px; font-weight: 600; color: #2589FF; margin-bottom: 10px; }
.sec .field { margin-bottom: 10px; }

/* ===== 扫码核销弹窗 ===== */
.scan-modal { width: 420px; max-width: 92%; }
.scan-body { padding: 18px 20px; text-align: center; }
.scan-body #scanVideo { width: 100%; max-height: 56vh; background: #000; border-radius: 10px; object-fit: cover; }
.scan-btn { background: #2589ff; color: #fff; border-color: #2589ff; margin-left: 6px; }
.scan-btn:hover { background: #1f7ae0; }

/* ===== 新增商户弹窗 ===== */
.am-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 9999; }
.am-mask.show { display: flex; }
.am-modal { background: #fff; border-radius: 14px; width: 92%; max-width: 520px; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 12px 48px rgba(0,0,0,.22); overflow: hidden; }
.am-head { padding: 16px 22px; border-bottom: 1px solid #ebedf0; display: flex; align-items: center; justify-content: space-between; }
.am-head h3 { margin: 0; font-size: 16px; color: #111827; }
.am-close { background: none; border: none; font-size: 22px; line-height: 1; color: #8a8f99; cursor: pointer; padding: 0 4px; }
.am-close:hover { color: #f5634a; }
.am-body { padding: 18px 22px; overflow-y: auto; }
.am-body .am-hint { font-size: 12px; color: #8a8f99; margin: 0 0 14px; line-height: 1.7; }
.am-body .am-field { margin-bottom: 14px; }
.am-body .am-field label { display: block; font-size: 13px; color: #4e5969; margin-bottom: 6px; font-weight: 500; }
.am-body .am-field input, .am-body .am-field select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; background: #fff; color: #1f2937; transition: .15s; }
.am-body .am-field input:focus, .am-body .am-field select:focus { border-color: #2589FF; box-shadow: 0 0 0 3px rgba(37,137,255,.10); }
.am-body .am-field .am-tip { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.am-err { color: #f5634a; font-size: 13px; min-height: 18px; margin: 4px 0 0; }
.am-foot { padding: 14px 22px; border-top: 1px solid #ebedf0; display: flex; justify-content: flex-end; gap: 10px; background: #fafbfc; }
.am-btn { height: 36px; padding: 0 18px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 500; transition: .15s; }
.am-btn.cancel { background: #f1f3f5; color: #4e5969; }
.am-btn.cancel:hover { background: #e5e7eb; }
.am-btn.confirm { background: #2589FF; color: #fff; box-shadow: 0 6px 16px rgba(37,137,255,.25); }
.am-btn.confirm:hover { background: #1a75e6; }
.am-btn:disabled { background: #a0c6ff; cursor: not-allowed; box-shadow: none; }
.perm-leaf, .perm-group-head { display: flex; align-items: center; gap: 5px; padding: 2px 0; font-size: 13px; }
.perm-group-head { font-weight: 600; color: #333; cursor: pointer; }
.perm-leaf { color: #555; }
.perm-node .perm-node { padding-left: 16px; }
.perm-leaf input[type=checkbox], .perm-group-head input[type=checkbox] { width: 14px; height: 14px; min-width: 14px; margin: 0; flex: none; }

/* 必填校验标红 */
.invalid { border-color: #f5634a !important; box-shadow: 0 0 0 3px rgba(245,99,74,.14) !important; }
.file-btn.invalid { border-color: #f5634a !important; color: #f5634a; background: #fff5f4 !important; box-shadow: 0 0 0 3px rgba(245,99,74,.14) !important; }
#gm_stores.invalid { box-shadow: 0 0 0 2px rgba(245,99,74,.45); border-radius: 10px; }

/* ---- 支付进件弹窗：分区 + 两栏网格布局 ---- */
.ap-form { font-size: 13px; }
.ap-sec { border: 1px solid #ebedf0; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; background: #fafbfc; }
.ap-sec-t { font-size: 13px; font-weight: 600; color: #1f2329; margin: 0 0 12px; padding-left: 9px; border-left: 3px solid #2589FF; line-height: 1.3; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ap-span2 { grid-column: 1 / -1; }
.ap-sec > .ap-span2 { margin-top: 12px; }
.ap-sec label { display: block; font-size: 12px; color: #555; margin-bottom: 5px; font-weight: 500; }
.ap-sec select { width: 100%; height: 36px; border: 1px solid #d9d9d9; border-radius: 8px; padding: 0 10px; font-size: 13px; box-sizing: border-box; background: #fff; outline: none; }
.ap-sec select:focus { border-color: #2589FF; }
.ap-sec .row { margin-bottom: 0; }
.ap-sec .ap-up-hint { font-size: 11px; color: #8a8f99; margin-top: 4px; }
@media (max-width: 600px) { .ap-grid { grid-template-columns: 1fr; } }

/* ---- 商品弹窗：小程序端实时预览（还原 pages/goods/detail 真实页面样式，750rpx 按 330px 屏宽换算） ---- */
.gv-wrap { width: 352px; flex-shrink: 0; position: sticky; top: 0; }
.gv-cap { font-size: 12px; color: #8a8f99; margin-bottom: 10px; text-align: center; }
.gv-cap .gv-state { color: #f5634a; }
.gv-phone { width: 340px; margin: 0 auto; padding: 3px; background: linear-gradient(160deg, #f2f2f6 0%, #c6c6d0 28%, #e8e8ee 48%, #b3b3be 76%, #d9d9e1 100%); border-radius: 46px; box-shadow: 0 22px 46px rgba(0,0,0,.30), 0 1px 0 rgba(255,255,255,.6) inset, 0 -1px 0 rgba(0,0,0,.20) inset; }
.gv-screen { position: relative; width: 100%; height: 612px; background: #000; border-radius: 43px; overflow: hidden; }
.gv-punch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #33333a, #050505 62%); box-shadow: 0 0 0 2px rgba(255,255,255,.06), inset 0 0 2px #000; z-index: 20; }
.gv-page { position: absolute; left: 0; right: 0; top: 0; bottom: 48px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #f7f7f7; }
.gv-gallery { position: relative; width: 100%; height: 264px; background: #fff; display: flex; align-items: center; justify-content: center; }
.gv-gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-ph { color: #706c74; font-size: 13px; text-align: center; }
.gv-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; }
.gv-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); }
.gv-dot.on { background: #fb3552; width: 12px; }
.gv-price-box { background: #fff; padding: 10px 13px 7px; display: flex; align-items: baseline; justify-content: space-between; }
.gv-price-main { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.gv-price { color: #fb3552; font-size: 21px; font-weight: 700; }
.gv-price-old { color: #706c74; text-decoration: line-through; font-size: 11px; }
.gv-discount { font-size: 10px; color: #fb3552; border: 1px solid #f5634a; background: #ffeff0; border-radius: 3px; padding: 1px 4px; }
.gv-reserve-free { color: #fb3552; font-size: 14px; font-weight: 600; }
.gv-sold { color: #706c74; font-size: 10px; flex-shrink: 0; }
.gv-title { background: #fff; padding: 8px 13px; font-size: 15px; font-weight: 700; color: #000; line-height: 1.4; }
.gv-base-info { background: #fff; padding: 0 13px 10px; display: flex; gap: 7px; flex-wrap: wrap; }
.gv-badge { font-size: 10px; color: #fb3552; border: 1px solid #fb3552; border-radius: 3px; padding: 2px 6px; }
.gv-badge.gray { color: #706c74; border-color: #ddd; }
.gv-block { background: #fff; margin-top: 9px; padding: 11px 13px; }
.gv-block-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.gv-block-text { font-size: 12px; color: #333; line-height: 1.7; }
.gv-store-line { background: #fff; margin-top: 9px; padding: 12px 13px; display: flex; align-items: center; }
.gv-store-label { font-size: 12px; color: #999; width: 34px; flex-shrink: 0; }
.gv-store-count { font-size: 12px; color: #ff9500; font-weight: 600; flex-shrink: 0; }
.gv-store-dot { font-size: 12px; color: #d0d0d0; margin: 0 4px; flex-shrink: 0; }
.gv-store-name { font-size: 12px; color: #1f1f1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-store-arrow { font-size: 13px; color: #bbb; margin-left: 5px; flex-shrink: 0; }
.gv-footer { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: #fff; display: flex; align-items: center; padding: 0 9px; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.gv-footer-item { display: flex; flex-direction: column; align-items: center; width: 48px; color: #706c74; }
.gv-footer-ic { font-size: 15px; line-height: 1; }
.gv-footer-tx { font-size: 9px; margin-top: 2px; }
.gv-btn-buy { flex: 1; margin-left: 9px; height: 35px; line-height: 35px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; border-radius: 18px; background: linear-gradient(90deg, #f5634a, #fb3552); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-note { text-align: center; font-size: 11px; color: #b0b3ba; margin-top: 8px; }

/* 门店设施多选（选项来自运营配置，按一级标题分组；与商户端一致） */
.facility-chips { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #999; }
.facility-group { border: 1px solid #f0f0f0; border-radius: 8px; padding: 10px 12px; background: #fafbfc; }
.facility-cat { font-size: 13px; font-weight: 700; color: #1f2329; margin-bottom: 8px; }
.facility-opts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.facility-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #333; white-space: nowrap; cursor: pointer; }
.facility-opt input { width: 15px; height: 15px; accent-color: #2589FF; cursor: pointer; margin: 0; flex-shrink: 0; }

/* 认证备案弹窗分区块 */
.vsec { border:1px solid #eef0f3; border-radius:10px; padding:14px 16px; background:#fafbfc; }
.vsec-t { font-size:14px; font-weight:700; color:#1f2329; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.vsec-t::before { content:""; width:3px; height:14px; background:#2589FF; border-radius:2px; flex-shrink:0; }
.vsec-upload { border:1px dashed #c3d3e6; border-radius:8px; background:#fff; padding:10px 12px; margin-bottom:12px; }
.vup-t { font-size:13px; margin-bottom:6px; display:flex; align-items:baseline; flex-wrap:wrap; gap:4px; }
.vsec-hint { font-size:12px; color:#1a6fd6; background:#e8f3ff; border-radius:6px; padding:6px 10px; margin:10px 0 0; }

/* 认证备案分步向导 */
.vf-steps { display:flex; margin:0 0 14px; border:1px solid #eef0f3; border-radius:10px; overflow:hidden; background:#fff; }
.vf-step-item { flex:1; text-align:center; padding:10px 4px; font-size:13px; color:#999; border-right:1px solid #f0f0f0; cursor:pointer; user-select:none; }
.vf-step-item:last-child { border-right:none; }
.vf-step-item.active { background:#2589FF; color:#fff; font-weight:700; }
.vf-step-item.done { color:#2589FF; font-weight:600; }
.vf-page { display:none; }
.vf-page.active { display:block; }
.vf-nav { margin-top:16px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.vf-btn-lg { padding:10px 24px; font-size:15px; border-radius:8px; }
/* 证件预览窗口 */
.vup-preview { margin-bottom:8px; min-height:150px; }
.vup-ph { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border-radius:8px; color:#8aa0b8; background:#f4f7fa; border:1px dashed #c3d3e6; box-sizing:border-box; }
.vup-ph[data-type="biz"] { width:220px; height:150px; }
.vup-ph[data-type="idcard"] { width:150px; height:210px; }
.vup-ph span { font-size:13px; font-weight:700; }
.vup-ph em { font-size:11px; font-style:normal; opacity:.85; }
.vup-preview img { max-width:230px; max-height:160px; border-radius:8px; border:1px solid #eef0f3; display:block; }

/* 商品回收站 tab */
.gtabs { display: inline-flex; gap: 8px; margin: 0 0 14px; }
.gtabs .gtab { padding: 6px 16px; border: 1px solid #dfe2e8; background: #fff; color: #4e5969; border-radius: 8px; cursor: pointer; font-size: 14px; transition: .2s; }
.gtabs .gtab:hover { color: #2589FF; border-color: #2589FF; }
.gtabs .gtab.on { background: #2589FF; color: #fff; border-color: #2589FF; }
.gtabs .gtab.on:hover { background: #1a75e6; border-color: #1a75e6; color: #fff; }

/* 本机没有可用摄像头时，隐藏「扫码核销」入口（电脑绝大多数不带摄像头） */
body.no-camera .js-scan-entry { display: none !important; }

/* ===== 库存 / 限购：不限 vs 限制 二选一（2026-11-03） =====
   为什么要自定义：.field input 的通用样式（height/padding/width:100%）会把
   <input type=radio> 拉成方块，必须在这里显式复位，否则单选框显示成畸形方块。 */
.field .radio-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.field .radio-row label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; cursor: pointer; }
.field .radio-row input[type="radio"] { width: 16px; height: 16px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: none; border-radius: 50%; flex: none; box-shadow: none; }
.field .stock-box { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 14px; background: #f7f9fc; border-radius: 8px; }
.field .stock-box input { width: 140px; flex: none; }
.field .stock-box .unit-l { font-size: 13px; color: #4e5969; }
.field .stock-box .unit { font-size: 13px; color: #86909c; }
