* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; background: #f5f6fa; color: #1f2329; }
.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-size: cover; background-position: center; display: flex; flex-direction: column; }
.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 .login-sys-title { font-size: 26px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; background: linear-gradient(90deg, #2589FF 0%, #6C5CE7 60%, #9B59F6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.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 28px; 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: 14px; }
.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; }
}


/* 框架 */
.app { height: 100vh; overflow: hidden; }
.topbar { height: 56px; background: #1f2329; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .5px; }
.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); padding: 4px 10px; border-radius: 14px; font-size: 12px; }
.link-btn { background: none; border: none; color: #9fb3ff; cursor: pointer; font-size: 13px; }
.layout { display: flex; height: calc(100vh - 56px); overflow: hidden; }
.sidebar { width: 200px; background: #fff; border-right: 1px solid #eceef2; padding: 14px 0; overflow-y: auto; }
.nav-item { padding: 12px 22px; cursor: pointer; font-size: 14px; color: #4e5969; border-left: 3px solid transparent; display: flex; align-items: center; gap: 10px; }
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; display: block; }
.nav-item:hover { background: #f5f8ff; }
.nav-item.active { background: #eaf2ff; color: #2589FF; border-left-color: #2589FF; font-weight: 600; }
.nav-link { display: block; padding: 12px 22px; cursor: pointer; font-size: 14px; color: #4e5969; border-left: 3px solid transparent; text-decoration: none; }
.nav-link:hover { background: #f5f8ff; }
.nav-link::after { content: "\2197"; margin-left: 6px; color: #9aa4b2; font-size: 12px; }
.nav-group { font-size: 12px; color: #a8abb2; padding: 14px 20px 6px; }
.nav-note { font-size: 11px; color: #b0b6c0; padding: 2px 22px 12px; }
.content { flex: 1; padding: 22px 26px; overflow: auto; }
.loading { color: #8a8f99; padding: 30px; }

/* 卡片/表单 */
.card { background: #fff; border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card h3 { margin: 0 0 16px; font-size: 16px; }
.muted { color: #8a8f99; font-size: 13px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #4e5969; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid #dfe2e8; border-radius: 8px; font-size: 14px; }
.btn { padding: 10px 22px; background: #2589FF; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn:hover { background: #1f7be6; }
.btn-sm { padding: 6px 12px; background: #eaf2ff; color: #2589FF; border: 1px solid #cfe0ff; border-radius: 6px; font-size: 13px; cursor: pointer; }
.field-row { display: flex; align-items: center; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }
/* 通用横向布局（对齐运营端，商户端多处 class="row" 依赖它，缺了会竖排） */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
table.tbl th, table.tbl td { padding: 12px; }
.file-hint { font-size: 12px; color: #8a8f99; margin-top: 4px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f0f1f4; }
th { color: #8a8f99; font-weight: 600; }
.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; }

/* 徽标 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 12px; }
.badge.ok { background: #e6f7ed; color: #18a058; }
.badge.warn { background: #fff3e0; color: #e08800; }
.badge.gray { background: #f0f1f4; color: #8a8f99; }
.badge.err { background: #fdecec; color: #e54545; }
.badge.info { background: #e8f1ff; color: #2589FF; }
/* 归属门店勾选：弹性换行，整齐排列，内部不折行 */
.store-check-wrap { display: flex; flex-wrap: wrap; gap: 10rpx 22rpx; }
.store-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #333; white-space: nowrap; cursor: pointer; min-width: 0; }
.store-check input { width: 15px; height: 15px; accent-color: #2589FF; cursor: pointer; margin: 0; flex-shrink: 0; }
/* 必填校验标红 */
.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; }
.store-check-wrap.invalid { box-shadow: 0 0 0 2px rgba(245,99,74,.45); border-radius: 10px; }

/* toast */
.toast { position: fixed; right: 20px; top: 24px; transform: translateX(120%); background: rgba(31,35,41,.92); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 1; transition: transform .3s; z-index: 9999; max-width: 320px; word-break: break-all; }
.toast.show { transform: translateX(0); }

/* 门店上下文切换器 */
.ctx-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.7); }
.ctx-select { padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 12px; max-width: 180px; }
.ctx-select option { color: #1f2329; }

/* 工具条（页面标题卡片：标题 + 操作按钮，圆角矩形，学运营端） */
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: 12px; padding: 16px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.toolbar .left { display: flex; align-items: center; gap: 12px; }
.toolbar h3 { font-size: 16px; }
.toolbar .count { color: #8a8f99; font-size: 13px; }

/* 模态弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; justify-content: center; z-index: 200; overflow-y: auto; padding: 40px 16px; }
.modal { background: #fff; border-radius: 14px; width: 520px; max-width: 100%; padding: 22px 24px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.25); margin: auto; }
.modal h3 { margin: 0 0 4px; font-size: 17px; }
.modal .modal-sub { color: #8a8f99; font-size: 13px; margin: 0 0 16px; }
.modal .sec { margin: 0 0 14px; }
.modal .sec-title { font-size: 13px; font-weight: 600; color: #4e5969; margin: 0 0 10px; padding-left: 9px; border-left: 3px solid #2589FF; }
.modal .row2 { display: flex; gap: 12px; }
.modal .row2 .field { flex: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.btn-ghost { padding: 10px 20px; background: #fff; color: #4e5969; border: 1px solid #dfe2e8; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-danger { padding: 6px 12px; background: #fdecec; color: #e54545; border: 1px solid #f7c4c4; border-radius: 6px; font-size: 13px; cursor: pointer; }

/* 门店编辑分步向导（对齐运营端 vf-steps） */
.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; }

/* 订单弹窗内的小节标题（与运营端一致） */
.modal .sec-t { font-size: 13px; font-weight: 600; color: #2589FF; 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; }

/* ---------- 经营总览驾驶舱 ---------- */
.ov-page { padding: 0; }
.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; display: flex; flex-direction: column; }
.ov-map-wrap .head { flex: none; }
.ov-map-wrap svg { flex: 1 1 auto; min-height: 0; }
.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; }

/* ===== 图片上传（商品发布/编辑弹窗）===== */
.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; }
.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; }

/* ===== 发货设置 ===== */
.ship-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #f7f9fc; border: 1px solid #e8ecf2; border-radius: 10px; padding: 18px 20px; margin-top: 6px; }
.ship-toggle-info { flex: 1; }
.ship-toggle-title { font-size: 15px; font-weight: 600; color: #1d2129; }
.ship-switch { background: #2589FF !important; color: #fff !important; border-color: #2589FF !important; white-space: nowrap; }

/* ---- 商品弹窗：小程序端实时预览（还原 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; }

/* 商品回收站 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; }
