/* ============================================================
   怀光殡葬集采网 · 平台版设计系统（淘宝式多商家集市）
   色系：藏蓝 #1F2B45（品牌）· 暖金 #B08D3C（辅助）· 绛红 #8C1D2C（价格）
   纸白 #F7F5F1 底 + 卡片白，庄重、干净、像市场一样密
   零依赖、无构建步骤；适老基础：正文 ≥14px，对比度达标
   ============================================================ */

:root {
  --navy: #1F2B45;
  --navy-d: #162136;
  --navy-l: #EAECEF;
  --gold: #B08D3C;
  --gold-d: #8F7028;
  --gold-l: #F3EAD5;
  --red: #8C1D2C;
  --red-d: #711622;
  --ink: #2A2F38;
  --mut: #6E7680;
  --hint: #98A0A8;
  --line: #E4E0D6;
  --line-2: #EEEAE0;
  --bg: #F7F5F1;
  --card: #FFFFFF;
  --ok: #2E7D4F;
  --ok-l: #E4F2E9;
  --warn: #A66A12;
  --warn-l: #FBF0DC;
  --err: #B03A2E;
  --err-l: #FAE7E4;
  --shadow: 0 1px 3px rgba(31, 43, 69, .08), 0 6px 18px rgba(31, 43, 69, .06);
  --shadow-lg: 0 8px 30px rgba(31, 43, 69, .16);
  --r: 10px;
  --r-sm: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Source Han Sans CN", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-d); }
button { font-family: inherit; cursor: pointer; }
b, strong { font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- 键盘可访问性 ----------
   站里很多「卡片」是 div[data-*]（金刚区、商品卡、店铺卡…），
   由 app.js 补 role=button + tabindex=0 与 Enter/空格 事件。
   这里只保证键盘用户看得见焦点在哪 —— 鼠标点击不触发（:focus-visible）。 */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
[role="button"][tabindex] { cursor: pointer; }
.hot-word[tabindex]:focus-visible { outline-offset: 1px; }

/* 移动端「我的 → 商家服务」入口：桌面上页头已有按钮，这里不重复显示 */
.buyer-tools { display: none; }
.bt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.bt-row .btn { flex: 1 1 auto; }


/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 9px 18px; font-size: 14px; line-height: 1.4; white-space: nowrap;
  transition: all .15s ease; user-select: none;
}
.btn-sm { padding: 5px 12px; font-size: 13px; }
/* 行内小按钮（app.js 里用户管理「名下门店 · 查看」在用）：以前没有定义，落到 .btn 默认 41px 高，
   会把表内一行门店撑成一大块；这里补一套与 .btn-sm 协调的小尺寸。 */
.btn-xs { padding: 2px 8px; font-size: 12px; line-height: 1.5; border-radius: 4px; }
.btn-lg { padding: 12px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-d); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-d); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-danger { background: #fff; border-color: #E4B6B0; color: var(--err); }
.btn-danger:hover { background: var(--err); border-color: var(--err); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- 徽标 ---------- */
.badge { display: inline-flex; align-items: center; border-radius: 3px; padding: 1px 6px; font-size: 11px; line-height: 18px; white-space: nowrap; }
.b-self  { background: var(--red); color: #fff; }
.b-gold  { background: var(--gold); color: #fff; }
.b-fine  { background: var(--gold-l); color: var(--gold-d); border: 1px solid #E2D3A8; }
.b-navy  { background: var(--navy); color: #fff; }
.b-off   { background: #F0EEE9; color: var(--mut); }
.b-new   { background: var(--ok-l); color: var(--ok); }
.b-line  { border: 1px solid var(--line); color: var(--mut); background: #fff; }

/* ---------- 表单 ---------- */
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; padding: 9px 12px; font-size: 14px; color: var(--ink);
  font-family: inherit; transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); }
.textarea { min-height: 84px; resize: vertical; }
.select { appearance: auto; }
/* 密码框「显示/隐藏」按钮（2026-11-03）：叠在输入框右侧，不占布局宽度。
   要点：① 输入框右侧留位按按钮实际宽度给（含 hover/focus 背景），长密码不会滚到按钮底下；
        ② 按钮自身 ≥44×32 点击区（手机端再放大），不再是一小段 13px 文字；
        ③ 隐藏 Edge 自带的密码眼睛，避免两个按钮叠在一起。 */
.pwd-field { position: relative; }
.pwd-field .input { padding-right: 58px; }
.pwd-field .input:focus { box-shadow: 0 0 0 3px rgba(31, 43, 69, .1); }
.pwd-field .input::-ms-reveal,
.pwd-field .input::-ms-clear { display: none; }
.pwd-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 32px; padding: 0 8px;
  border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--mut); font-size: 13px; font-family: inherit; line-height: 1;
  white-space: nowrap; user-select: none; cursor: pointer; z-index: 1;
  -webkit-appearance: none; appearance: none;
}
.pwd-eye:hover, .pwd-eye:focus-visible { color: var(--navy); background: var(--navy-l); }
.checkbox { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; flex: none; }
.f-row { margin-bottom: 16px; }
.f-label { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }
.f-label .req { color: var(--err); margin-left: 2px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f-tip { font-size: 12px; color: var(--hint); margin-top: 4px; }
.form-err { background: var(--err-l); color: var(--err); border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }

/* 数字步进器 */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.stepper button { width: 30px; height: 32px; border: none; background: #FAF9F6; font-size: 16px; color: var(--ink); }
.stepper button:hover { background: var(--navy-l); }
.stepper input { width: 52px; height: 32px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 14px; }
.stepper input:focus { outline: none; }
.stepper.sm button { width: 24px; height: 26px; font-size: 14px; }
.stepper.sm input { width: 40px; height: 26px; font-size: 13px; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: var(--navy-d); color: #C8CDD6; font-size: 12px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 12px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar-left { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar-left b { color: #fff; font-weight: 500; letter-spacing: .5px; }
.tb-dim { color: #8B93A3; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
/* 顶栏链接点击区扩大（2026-10-12 可访问性）：字高只有 20px，鼠标/手指难点中。
   用 vertical padding 把点击高度撑到 ≥28px，间距不变、视觉几乎无变化（负 margin 抵消多出的高度）。 */
.topbar-right a { padding: 4px 2px; margin: -4px 0; }
.topbar-right a:hover { color: var(--gold); }
.tb-strong { color: var(--gold); font-weight: 600; }

/* ---------- 市场头部 ---------- */
.mkt-header { background: #fff; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 90; box-shadow: 0 1px 0 rgba(31,43,69,.04); }
.hd-row { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
  font-family: "Source Han Serif CN", "Noto Serif CJK SC", serif; box-shadow: inset 0 0 0 2px rgba(176,141,60,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 21px; font-weight: 700; color: var(--navy); font-family: "Source Han Serif CN", "Noto Serif CJK SC", serif; letter-spacing: 1px; }
.brand-sub { font-size: 11px; color: var(--hint); letter-spacing: 2px; }

.hd-search { flex: 1; max-width: 560px; }
.search-box { display: flex; border: 2px solid var(--navy); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(31,43,69,.12); }
.search-box input { flex: 1; border: none; padding: 10px 14px; font-size: 14px; min-width: 0; }
.search-box input:focus { outline: none; }
.search-btn { border: none; background: var(--navy); color: #fff; padding: 0 26px; font-size: 15px; letter-spacing: 4px; }
.search-btn:hover { background: var(--navy-d); }
.search-hot { display: flex; gap: 14px; margin-top: 5px; font-size: 12px; color: var(--hint); overflow: hidden; }
.hot-word { cursor: pointer; }
.hot-word:hover { color: var(--gold-d); }

.hd-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.hd-act { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--ink); position: relative; min-width: 44px; }
.hd-act svg { width: 21px; height: 21px; }
.hd-act:hover { color: var(--navy); }
.hd-badge { position: absolute; top: -6px; right: 2px; background: var(--red); color: #fff; font-style: normal; font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 9px; }
/* 商家入口：入驻=主按钮，商家中心=描边按钮（原来被 display:none 藏掉，已放出） */
.hd-join { display: inline-flex; padding: 7px 14px; font-size: 13px; }
.hd-seller { display: inline-flex; padding: 7px 14px; font-size: 13px; border-color: var(--navy); color: var(--navy); background: #fff; }
.hd-seller:hover { background: var(--navy); color: #fff; }

/* 分类导航条 */
.cat-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 0; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-link { padding: 9px 15px; font-size: 14px; color: var(--ink); border-radius: 6px 6px 0 0; white-space: nowrap; position: relative; }
.cat-link:hover { color: var(--gold-d); background: var(--gold-l); }
.cat-link.on { color: #fff; background: var(--navy); font-weight: 600; }
.cat-link.em { color: var(--red); font-weight: 600; }
.cat-link.em:hover { background: var(--err-l); color: var(--red); }

/* ---------- 区块 ---------- */
main { min-height: 60vh; padding: 18px 16px 60px; outline: none; }
.sec { margin-bottom: 34px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.sec-title { font-size: 20px; font-weight: 700; color: var(--navy); position: relative; padding-left: 12px; font-family: "Source Han Serif CN", "Noto Serif CJK SC", serif; }
.sec-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--gold); }
.sec-sub { color: var(--hint); font-size: 13px; }
.sec-more { font-size: 13px; color: var(--mut); }
.sec-more:hover { color: var(--gold-d); }

/* ---------- 首页 Hero：金刚区 + 专区卡 ---------- */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-bottom: 30px; align-items: start; }
.hero-cats { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 14px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px 4px; align-content: start; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 2px; border-radius: var(--r-sm); cursor: pointer; }
.cat-tile:hover { background: var(--gold-l); }
.cat-ico {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff; font-family: "Source Han Serif CN", serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.cat-tile-name { font-size: 13px; color: var(--ink); }
.hero-side { display: grid; grid-auto-rows: 1fr; gap: 12px; }   /* 卡片数可变（内容管理可隐藏），行随内容均分 */
.promo-card { border-radius: var(--r); padding: 20px 22px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative; overflow: hidden; cursor: pointer; }
.promo-navy { background: linear-gradient(135deg, #1F2B45 0%, #3A4A6B 100%); }
.promo-warm { background: linear-gradient(135deg, #8C1D2C 0%, #B0483C 100%); }
.promo-gold { background: linear-gradient(135deg, #8F7028 0%, #B08D3C 100%); }
.promo-t { font-size: 19px; font-weight: 700; font-family: "Source Han Serif CN", serif; letter-spacing: 1px; }
.promo-d { font-size: 12px; opacity: .82; }
.promo-go { font-size: 12px; margin-top: 2px; color: var(--gold-l); }
.promo-card::after { content: ""; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.07); }

/* 服务保障条 */
.guar { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 30px; overflow: hidden; }
.guar-item { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-right: 1px solid var(--line-2); }
.guar-item:last-child { border-right: none; }
.guar-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-l); color: var(--gold-d); display: flex; align-items: center; justify-content: center; flex: none; }
.guar-ico svg { width: 20px; height: 20px; }
.guar-t { font-weight: 600; color: var(--navy); font-size: 14px; line-height: 1.4; }
.guar-d { font-size: 12px; color: var(--hint); line-height: 1.4; }

/* ---------- 商品卡 ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.p-card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; cursor: pointer; position: relative; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.p-img { aspect-ratio: 4 / 5; background: var(--bg); position: relative; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease; }
/* 画册型封面（2026-10-13）：悬停换成图集第二张 + 底部压一条「查看详情」。
   第二张由列表页静默预取详情后补上；只有一张图时只放大，不空转。 */
.p-img .p-alt { position: absolute; inset: 0; opacity: 0; }
.p-card:hover .p-img .p-alt { opacity: 1; }
.p-card:hover .p-img .p-main { transform: scale(1.045); }
.p-hover { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 11px; background: linear-gradient(to top, rgba(22,15,10,.74), rgba(22,15,10,0)); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.p-card:hover .p-hover { opacity: 1; }
.p-hover-cta { color: #fff; font-size: 13px; letter-spacing: .02em; border-bottom: 1px solid rgba(255,255,255,.65); padding-bottom: 2px; }
/* 触屏没有 hover：别让「查看详情」层和换图永远卡住看不见/看不见 */
@media (hover: none) {
  .p-hover { display: none; }
  .p-card:hover .p-img .p-alt { opacity: 0; }
}
.p-tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.p-name { font-size: 14px; color: var(--ink); line-height: 1.45; height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card:hover .p-name { color: var(--gold-d); }
.p-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-now { color: var(--red); font-size: 18px; font-weight: 700; }
.price-now .rmb { font-size: 12px; font-weight: 600; margin-right: 1px; }
.price-ref { color: var(--hint); font-size: 12px; text-decoration: line-through; }
/* 「多买最低 ¥X」：最低价要买够数量才有，明示出来不让起售价被误读 */
.price-tip { font-size: 12px; color: var(--gold-d); background: var(--gold-l); border-radius: 4px; padding: 1px 6px; }
/* 结算页费用明细（商品合计 / 运费 / 应付合计） */
.fee-box { background: #FCFBF8; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 10px; }
/* 结算页商品清单（对齐小程序确认订单页）：按店铺分组 + 拆单提示 */
.co-goods { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #FCFBF8; padding: 10px 12px; margin-bottom: 14px; }
.co-shop + .co-shop { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.co-shop-hd { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.co-shop-hd b { font-size: 13px; color: var(--navy); }
.co-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.co-item img { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 6px; background: var(--bg); }
.co-item-main { flex: 1; min-width: 0; }
.co-item-main .n { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-item-qty { font-size: 13px; color: var(--mut); flex: none; }
@media (max-width: 520px) { .co-item img { width: 38px; height: 38px; } }
.fee-row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; font-size: 13px; color: var(--mut); }
.fee-row b { color: var(--ink); font-weight: 600; }
.fee-row.fee-sum { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 8px; }
.fee-row.fee-sum b { color: var(--red); font-size: 17px; }
.p-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--hint); }
.p-shop { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--mut); margin-top: auto; padding-top: 4px; border-top: 1px dashed var(--line-2); }
.p-shop .shop-dot { width: 16px; height: 16px; border-radius: 4px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }

/* ---------- 店铺卡 ---------- */
.shop-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shop-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; transition: transform .15s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shop-logo { width: 54px; height: 54px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; font-family: "Source Han Serif CN", serif; flex: none; }
.shop-sc { flex: 1; min-width: 0; }
.shop-sc-name { font-weight: 600; color: var(--navy); font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shop-sc-meta { font-size: 12px; color: var(--hint); margin: 3px 0 6px; }
.shop-sc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.shop-sc-go { flex: none; align-self: center; }

/* ---------- 面包屑 / 工具条 ---------- */
.crumb { font-size: 13px; color: var(--hint); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--mut); }
.crumb a:hover { color: var(--gold-d); }
.crumb .cur { color: var(--ink); }

/* ---------- 列表页 ---------- */
.list-layout { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: start; }
.filter-side { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 0; position: sticky; top: 132px; }
.f-group { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.f-group:last-child { border-bottom: none; }
.f-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.f-opt { display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 5px; font-size: 13px; color: var(--mut); cursor: pointer; }
.f-opt:hover { background: var(--gold-l); color: var(--gold-d); }
.f-opt.on { background: var(--navy); color: #fff; font-weight: 500; }
.toolbar { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sort-tabs { display: flex; align-items: center; gap: 2px; }
.sort-item { padding: 6px 14px; font-size: 13px; color: var(--mut); border-radius: var(--r-sm); cursor: pointer; border: none; background: none; }
.sort-item:hover { color: var(--navy); }
.sort-item.on { background: var(--navy-l); color: var(--navy); font-weight: 600; }
.tool-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mut); white-space: nowrap; }
.tool-right .select { width: auto; padding: 5px 8px; font-size: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--mut); cursor: pointer; }
.chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }

/* 列表分页：一页 24 条，页码写回 URL（刷新/分享/回退都落在同一页） */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pager .btn { text-decoration: none; }
.pager-now { font-size: 13px; color: var(--mut); margin: 0 4px; }
.pager-now b { color: var(--navy); font-size: 15px; }

/* 收货地址簿 */
.addr-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px; }
.addr-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.addr-hd .who { font-weight: 600; color: var(--navy); }
.addr-hd .tel { font-size: 13px; color: var(--mut); }
.addr-bd { font-size: 13px; color: var(--ink); line-height: 1.7; }
.addr-ft { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.addr-ft .spacer { margin-left: auto; }
.addr-badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #fff; }

/* 结算页：淘宝式地址卡片选择（2026-11-01） */
.addr-pick { display: flex; flex-direction: column; gap: 8px; }
.addr-opt { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: #fff; }
.addr-opt:hover { border-color: var(--navy); }
.addr-opt.on { border-color: var(--navy); background: var(--navy-l); }
.addr-opt input { margin-top: 3px; flex: none; accent-color: var(--navy); }
.addr-opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.addr-opt-main b { font-size: 14px; color: var(--ink); }
.addr-opt-main .note { font-size: 12px; color: var(--mut); word-break: break-all; }
@media (max-width: 768px) {
  .addr-opt { padding: 12px; min-height: 44px; }
  .addr-opt-main b { font-size: 14px; }
}

/* 发货时效：「现货急单」标识（殡葬多是急单，买家最先问能不能今天发） */
.b-fast { background: var(--warn-l); color: var(--warn); border: 1px solid rgba(166, 106, 18, .25); }

/* 按身高选码工具 */
.size-tool { background: var(--gold-l); border: 1px solid #E7DCC2; border-radius: var(--r-sm); padding: 10px 12px; margin: 0 0 16px; }
.size-tool .st-hd { font-size: 13px; font-weight: 600; color: var(--gold-d); margin-bottom: 8px; }
.size-tool .st-hd .note { font-weight: 400; margin-left: 6px; }
.size-tool .st-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.size-tool .input { width: 132px; }
.size-tool .st-out { font-size: 13px; color: var(--ink); }
.size-tool .st-out b { color: var(--red); font-size: 15px; }

/* 商品评价 */
.rev-sum { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rev-avg { font-size: 26px; font-weight: 700; color: var(--red); line-height: 1; }
.rev-stars { color: var(--gold); letter-spacing: 2px; }
.rev-item { border-top: 1px dashed var(--line); padding: 10px 0; }
.rev-item:first-of-type { border-top: none; }
.rev-item .rev-hd { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); }
.rev-item .rev-hd .spacer { margin-left: auto; }
.rev-item .rev-bd { margin-top: 6px; font-size: 14px; color: var(--ink); line-height: 1.75; }
.rev-form-item { margin-bottom: 12px; }
.rev-form-item .rf-name { font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.rev-form-item .rf-spec { font-size: 12px; color: var(--mut); margin-left: 8px; }
.rev-pick { display: flex; gap: 4px; font-size: 24px; line-height: 1; color: var(--hint); }
.rev-pick span { cursor: pointer; }
.rev-pick span.on { color: var(--gold); }

/* 首页「买家评价」展示位（有真实评价才出现，一条都没有就不渲染） */
.rev-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hr-card { display: block; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.hr-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, var(--shadow)); }
.hr-card .hr-hd { display: flex; align-items: center; gap: 8px; }
.hr-card .hr-hd .note { margin-left: auto; font-size: 12px; color: var(--hint); }
.hr-card .hr-txt { margin-top: 8px; font-size: 14px; color: var(--ink); line-height: 1.75; }
.hr-card .hr-ft { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--mut);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 关注店铺（店铺页按钮 + 「我的 → 我的关注」） */
.btn-follow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; }
.btn-follow:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.btn-follow.on { background: rgba(255,255,255,.9); border-color: #fff; color: var(--navy); }
.follow-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 10px; }
.follow-card .fc-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.follow-card .fc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.follow-card .fc-txt b { color: var(--navy); font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.follow-card .fc-txt .note { font-size: 12px; color: var(--mut); }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 420px 1fr; gap: 28px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
/* 详情页封面横幅（2026-10-13，网页专属）：小程序是窄屏轮播，网页用通栏大封面压标题，
   同一批货看起来是「另外一个端」。 */
.d-cover { position: relative; border-radius: var(--r); overflow: hidden; margin-bottom: 18px; background: var(--bg); box-shadow: var(--shadow); }
.d-cover img { display: block; width: 100%; height: 280px; object-fit: cover; object-position: center 20%; }
.d-cover-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,17,12,.74) 0%, rgba(24,17,12,.28) 58%, rgba(24,17,12,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 28px; }
.d-cover-name { color: #fff; font-size: 28px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
.d-cover-sub { color: rgba(255,255,255,.86); font-size: 13px; letter-spacing: .03em; }
.gallery { position: sticky; top: 132px; }
.g-main { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); }
.g-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: opacity .18s ease; }
/* 切换主图时预加载完成再淡入：不会再出现「旧图淡到一半硬切」 */
.g-fade { animation: gFadeIn .22s ease; }
@keyframes gFadeIn { from { opacity: .15; } to { opacity: 1; } }
/* 轮播计数：右下角 1/N，切换时跟着变 */
.g-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(31, 43, 69, .62); color: #fff;
  font-size: 12px; line-height: 1.6; pointer-events: none;
}
.d-cover img { cursor: zoom-in; }
/* 图集预览：左右翻页 + 计数（与小程序 previewImage 对齐） */
.gal-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gal-preview-stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.gal-preview-stage img { display: block; max-width: 100%; max-height: 70vh; border-radius: 8px; background: var(--bg); }
.gal-preview-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(31, 43, 69, .62); color: #fff; font-family: inherit;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.gal-preview-nav.prev { left: 8px; }
.gal-preview-nav.next { right: 8px; }
.gal-preview-nav:hover, .gal-preview-nav:focus-visible { background: var(--navy); }
.gal-preview-count { font-size: 13px; color: var(--mut); }
@media (max-width: 520px) {
  .gal-preview-nav { width: 34px; height: 34px; font-size: 20px; }
}
.g-note { margin-top: 8px; font-size: 12px; color: var(--hint); display: flex; gap: 10px; }
/* 详情页轮播缩略图（2026-11-03）：未加样式时 10 张 420×420 原图竖排，
   整条高达 4064px，把价格/购买按钮顶出屏幕。固定 72×72 横向排，
   多于 5 张横向滑动；border 占位 2px，选中只换颜色不跳动。 */
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #D8D3C7 transparent; }
.g-thumbs img { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 6px;
  border: 2px solid transparent; cursor: pointer; background-color: #f2f0eb;
  opacity: .78; transition: opacity .15s, border-color .15s, box-shadow .15s; }
.g-thumbs img.on { border-color: var(--navy); opacity: 1; box-shadow: 0 0 0 2px rgba(31, 43, 69, .16); }
.g-thumbs img:hover { opacity: 1; }
.g-thumbs::-webkit-scrollbar { height: 6px; }
.g-thumbs::-webkit-scrollbar-track { background: transparent; }
.g-thumbs::-webkit-scrollbar-thumb { background: #D8D3C7; border-radius: 999px; }
.g-thumbs::-webkit-scrollbar-thumb:hover { background: var(--hint); }
.d-info { min-width: 0; }
.d-name { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.d-sub { color: var(--mut); font-size: 13px; margin-top: 4px; }
.d-badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.price-block { background: linear-gradient(135deg, #FCFAF5, #F5EFE2); border: 1px solid var(--gold-l); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.price-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-main .p-label { font-size: 13px; color: var(--gold-d); }
.price-big { color: var(--red); font-weight: 700; font-size: 26px; }
.price-big .rmb { font-size: 14px; margin-right: 1px; }
.price-unit { font-size: 13px; color: var(--mut); }
/* 详情价格区第二行「运费 ¥10」（对齐小程序 clothing-detail.vue 的 shipping-row） */
.ship-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.ship-row .p-label { font-size: 13px; color: var(--gold-d); }
.ship-val { font-size: 15px; color: var(--ink); font-weight: 600; }
/* 游客编号标签（订单卡 / 商家表格 / 详情弹层通用） */
.guest-tag { display: inline-block; font-size: 11px; font-family: Consolas, Menlo, monospace; color: var(--navy);
  background: #EEF1F7; border: 1px solid #D5DCE9; border-radius: 3px; padding: 1px 6px; letter-spacing: .3px; }
.guest-no { font-family: Consolas, Menlo, monospace; letter-spacing: .5px; }
.price-refs { font-size: 12px; color: var(--hint); margin-left: 4px; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.tier-table th { text-align: left; color: var(--hint); font-weight: 500; padding: 3px 10px 3px 0; }
.tier-table td { padding: 3px 10px 3px 0; color: var(--ink); }
.tier-table .tp { color: var(--red); font-weight: 600; }
.tier-table tr.hit td { color: var(--gold-d); }
.d-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--mut); margin-bottom: 14px; }
.d-meta b { color: var(--ink); font-weight: 500; }
.dim-group { margin-bottom: 12px; }
.dim-label { font-size: 13px; color: var(--mut); margin-bottom: 6px; }
.dim-label b { color: var(--ink); }
.dim-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.dim-opt { border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.dim-opt:hover { border-color: var(--navy); }
.dim-opt.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.dim-opt.dis { opacity: .4; cursor: not-allowed; }
/* 尺码按钮上的该档单价（同款不同码不同价，选之前就该看见） */
.dim-opt { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.25; }
.dim-price { font-style: normal; font-size: 11px; color: var(--gold-d); }
.dim-opt.on .dim-price { color: var(--gold-l); }
/* 列表卡片价格后的「起」 */
.price-from { font-size: 12px; color: var(--mut); margin-left: 1px; }
/* 详情价格区间的补充说明 */
.price-range { font-size: 12px; color: var(--mut); margin-left: 6px; }
/* 商品表单里的「各尺码单价」 */
.f-size-prices { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.fsp-item { display: flex; align-items: center; gap: 6px; }
.fsp-item label { font-size: 13px; color: var(--mut); white-space: nowrap; }
.fsp-in { width: 110px; }
.d-qty { display: flex; align-items: center; gap: 14px; margin: 16px 0 6px; flex-wrap: wrap; }
.d-qty .moq-tip { font-size: 12px; color: var(--hint); }
/* 当前规格库存小字（app.js 在数量/价格区插入）：默认浅灰；.low 少量库存转暖金；
   .out 售罄转红加粗。单行不换行，超宽省略，避免把数量步进器挤出屏幕。 */
.d-stock {
  display: inline-block; max-width: 100%; min-width: 0;
  font-size: 12px; line-height: 1.5; color: var(--hint);
  vertical-align: baseline; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
/* 数字单独包一层（.d-stock-num 或 <b>）时等宽加粗，切换规格时不跳动 */
.d-stock-num, .d-stock b { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.d-stock.low { color: var(--gold-d); }
.d-stock.low .d-stock-num, .d-stock.low b { color: var(--err); }
.d-stock.out { color: var(--err); font-weight: 700; }
.d-stock.out .d-stock-num, .d-stock.out b { color: inherit; }
/* 数量步进器到上限/下限时的禁用态：只补详情数量行，购物车另有 .cart-item 规则，不动 */
.d-qty .stepper button:disabled { color: var(--hint); background: #F4F2ED; cursor: not-allowed; }
.d-total { font-size: 14px; color: var(--mut); margin-bottom: 16px; }
.d-total b { color: var(--red); font-size: 20px; }
.d-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* 售罄/不可售 CTA（app.js 可能加 .is-soldout，或只设 disabled）：
   只作用于详情操作栏，不改全局 .btn；灰底、去阴影、不可点光标。 */
.d-actions .btn.is-soldout,
.d-actions .btn:disabled,
.d-actions .btn[disabled] {
  opacity: 1; cursor: not-allowed; box-shadow: none;
  background: #EDEBE5; border-color: #E3E0D8; color: var(--mut);
}
.d-actions .btn:disabled { pointer-events: auto; }   /* 让禁用按钮仍显示 not-allowed 光标（原生 disabled 不会触发点击） */
.d-actions .btn.is-soldout:hover,
.d-actions .btn:disabled:hover,
.d-actions .btn[disabled]:hover {
  background: #EDEBE5; border-color: #E3E0D8; color: var(--mut);
}
/* 手机端：商品详情操作栏吸底（滚动到详情长图/评价时仍能下单/咨询） */
@media (max-width: 768px) {
  .d-actions {
    position: sticky; bottom: 0; z-index: 8;
    margin-top: 12px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line-2);
    box-shadow: 0 -6px 18px rgba(31, 43, 69, .08);
  }
}
/* 窄屏（≤520px）：库存小字与数量行同排时让小字收缩省略，不挤压步进器；按钮不横向溢出 */
@media (max-width: 520px) {
  .d-qty { gap: 8px 10px; margin: 12px 0 4px; }
  .d-qty > .d-stock { flex: 0 1 auto; min-width: 0; }
  .d-stock { font-size: 11px; }
  .d-actions { gap: 8px; }
  .d-actions .btn { min-width: 0; max-width: 100%; }
  .d-actions .btn-lg { flex: 1 1 calc(50% - 4px); padding-left: 14px; padding-right: 14px; }
}
.d-shop-card { border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; margin-top: 18px; display: flex; align-items: center; gap: 12px; background: #FCFCFA; }
.d-shop-sc { flex: 1; min-width: 0; }
.d-shop-name { font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-shop-meta { font-size: 12px; color: var(--hint); margin-top: 2px; }

/* 详情信息展开区 */
.d-panels { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; }
.d-panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.d-panel-hd { padding: 13px 20px; font-size: 15px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.d-panel-hd::after { content: "−"; margin-left: auto; color: var(--hint); }
.d-panel.closed .d-panel-hd::after { content: "+"; }
.d-panel.closed .d-panel-bd { display: none; }
.d-panel-bd { padding: 16px 20px; font-size: 14px; color: var(--ink); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th { width: 130px; text-align: left; color: var(--hint); font-weight: 400; padding: 7px 12px 7px 0; vertical-align: top; border-bottom: 1px dashed var(--line-2); }
.spec-table td { padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.info-item { background: #FCFBF8; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 14px; }
.info-item .k { font-size: 12px; color: var(--hint); margin-bottom: 3px; }
.info-item .v { font-size: 13px; color: var(--ink); line-height: 1.55; }
.d-desc { white-space: pre-wrap; }
/* 详情图（商品详情页下方长图，2026-11-03）：原先没有样式，各图按原宽贴左、宽度不一。
   统一整宽纵向排列、图间 10px；min-height 保证加载失败时也有占位高度、不塌。 */
.mall-detail-images { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mall-detail-images img { width: 100%; height: auto; display: block; border-radius: 8px;
  background-color: #f5f3ee; min-height: 120px; }
/* 独立详情面板（#panelDetail）里它是第一个元素时，不要和 .d-panel-bd 的上内边距叠加 */
.mall-detail-images:first-child { margin-top: 0; }

/* 相关推荐 */
.rel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* ---------- 店铺页 ---------- */
.shop-hero { border-radius: var(--r); overflow: hidden; color: #fff; margin-bottom: 18px; box-shadow: var(--shadow); }
.shop-hero-in { padding: 30px 28px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; position: relative; }
.shop-hero .shop-logo { width: 72px; height: 72px; font-size: 34px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.shop-hero-main { flex: 1; min-width: 240px; }
.shop-hero-name { font-size: 24px; font-weight: 700; font-family: "Source Han Serif CN", serif; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-hero-meta { font-size: 13px; opacity: .85; margin-top: 4px; display: flex; gap: 16px; flex-wrap: wrap; }
.shop-hero-desc { font-size: 13px; opacity: .75; margin-top: 8px; max-width: 640px; }
.shop-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-stats { display: flex; gap: 0; background: rgba(255,255,255,.08); border-radius: var(--r); padding: 10px 6px; margin-top: 14px; }
.shop-stat { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.shop-stat:last-child { border-right: none; }
.shop-stat .n { font-size: 18px; font-weight: 700; color: var(--gold-l); }
.shop-stat .l { font-size: 11px; opacity: .75; }
.shop-body { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: start; }

/* ---------- 进货单 ---------- */
.cart-groups { display: flex; flex-direction: column; gap: 14px; margin-bottom: 90px; }
.cart-shop { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.cart-shop-hd { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.cart-shop-hd a { color: var(--navy); font-weight: 600; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.cart-item:last-child { border-bottom: none; }
.ci-img { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); flex: none; cursor: pointer; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; min-width: 0; cursor: pointer; }
.ci-name { font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ci-spec { font-size: 12px; color: var(--hint); margin: 3px 0; }
.ci-moq { font-size: 12px; color: var(--gold-d); }
.ci-unit-price { width: 110px; text-align: right; flex: none; }
.ci-unit-price .price-now { font-size: 15px; }
.ci-unit-price .tier-hit { font-size: 11px; color: var(--gold-d); display: block; }
.ci-qty { flex: none; }
.ci-sub { width: 110px; text-align: right; flex: none; color: var(--red); font-weight: 700; font-size: 15px; }
.ci-act { flex: none; }
.link-danger { background: none; border: none; color: var(--hint); font-size: 12px; padding: 6px; }
.link-danger:hover { color: var(--err); }
.settle-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(31,43,69,.08); z-index: 80; }
.settle-in { display: flex; align-items: center; gap: 18px; padding: 12px 16px; }
.settle-count { font-size: 13px; color: var(--mut); display: flex; align-items: center; gap: 8px; }
.settle-total { margin-left: auto; text-align: right; }
.settle-total .lab { font-size: 12px; color: var(--hint); }
.settle-total .num { color: var(--red); font-size: 22px; font-weight: 700; }
.settle-total .num .rmb { font-size: 13px; }
.settle-acts { display: flex; gap: 10px; }

/* ---------- 空态 / 提示 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--hint); }
.empty .e-ico { font-size: 42px; margin-bottom: 10px; font-family: "Source Han Serif CN", serif; color: var(--line); }
.empty .e-act { margin-top: 16px; }
.demo-note { background: var(--warn-l); color: var(--warn); border-radius: var(--r-sm); padding: 8px 14px; font-size: 12px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.note { color: var(--hint); font-size: 12px; }

/* ---------- 站内公告条（内容管理发布，全站顶部） ---------- */
.ann-bar { background: linear-gradient(90deg, var(--gold-l), #FBF6EA); border-bottom: 1px solid var(--line); font-size: 13px; }
.ann-bar.ann-warn { background: linear-gradient(90deg, #F7E3E6, #FBEDEF); }
.ann-in { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ann-ico { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.ann-warn .ann-ico { background: var(--red); }
.ann-title { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-title:hover { color: var(--gold-d); }
.ann-more { margin-left: auto; flex: none; }
.ann-more a { color: var(--mut); font-size: 12px; }
.ann-more a:hover { color: var(--gold-d); }

/* ---------- 公告页（#/notice） ---------- */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: var(--r-sm); padding: 12px 16px; background: #FDFCFA; }
.notice-item.nt-warn { border-left-color: var(--red); background: #FDF9F9; }
.nt-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.nt-title { font-weight: 600; color: var(--navy); font-size: 15px; }
.nt-ts { color: var(--hint); font-size: 12px; margin-left: auto; flex: none; }
.nt-body { color: var(--mut); font-size: 14px; line-height: 1.8; }

/* ---------- 消息中心（#/notify）与通知设置（后台） ---------- */
.nt-list { display: flex; flex-direction: column; }
.nt-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px dashed var(--line-2); cursor: pointer; border-radius: var(--r-sm); }
.nt-item:hover { background: #FCFBF8; }
.nt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 7px; }
.nt-item.nt-new .nt-dot { background: var(--red); }
.nt-main { flex: 1; min-width: 0; }
.nt-t { font-weight: 600; color: var(--navy); font-size: 14px; }
.nt-item.nt-new .nt-t { color: var(--red-d); }
.nt-d { color: var(--mut); font-size: 13px; margin-top: 3px; line-height: 1.7; }
.nt-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nt-set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.nt-set-row:last-child { border-bottom: none; }
.nt-set-main { background: #FCFBF8; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 6px; }
.nt-set-t { font-weight: 600; color: var(--navy); font-size: 14px; }
.nt-dim { opacity: .55; }
/* 接收人弹层里的「接收哪几类消息」勾选区 */
.nt-evs { display: flex; flex-wrap: wrap; gap: 4px 0; padding-top: 4px; }
.nt-evs .agree-check { font-size: 13px; }

/* ---------- 浏览历史（我的 → 浏览历史，对齐小程序端） ---------- */
.hist-list { display: flex; flex-direction: column; }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed var(--line-2); color: inherit; }
.hist-row:hover { background: #FCFBF8; }
.hist-row.dim { opacity: .55; cursor: default; }
.hist-img, .hist-ph { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--navy-l); }
.hist-main { flex: 1; min-width: 0; }
.hist-n { font-size: 14px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-price { flex: none; color: var(--red); font-weight: 700; font-size: 15px; }

/* ---------- 入驻页 ---------- */
.join-hero { background: linear-gradient(135deg, #1F2B45, #3A4A6B); border-radius: var(--r); color: #fff; padding: 34px 34px 30px; margin-bottom: 22px; position: relative; overflow: hidden; }
.join-hero h1 { font-size: 26px; font-family: "Source Han Serif CN", serif; letter-spacing: 2px; }
.join-hero p { opacity: .8; margin-top: 8px; max-width: 720px; }
.join-hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(176,141,60,.18); }
.join-steps { display: flex; gap: 0; margin-bottom: 26px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.jstep { flex: 1; padding: 16px 10px 14px 26px; position: relative; background: #fff; }
.jstep::before { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 28px; background: #fff; transform: skewX(-18deg); border-right: 1px solid var(--line-2); z-index: 1; }
.jstep .n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-l); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.jstep .t { font-weight: 600; color: var(--ink); font-size: 14px; }
.jstep .d { font-size: 12px; color: var(--hint); margin-top: 2px; padding-right: 18px; }
.jstep.on { background: var(--navy); }
.jstep.on::before { background: var(--navy); }
.jstep.on .t { color: #fff; }
.jstep.on .d { color: rgba(255,255,255,.65); }
.jstep.on .n { background: var(--gold); color: #fff; }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
/* 「年度合作方案」小标题（2026-10-12：套餐卡移到表单之后，加个标题说明这块是什么） */
.join-plans-sec { margin-top: 30px; }
.jp-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.2; }
.plan-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; position: relative; border: 2px solid transparent; }
.plan-card.hot { border-color: var(--gold); }
.plan-tag { position: absolute; top: -10px; right: 16px; }
.plan-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.plan-price { margin: 8px 0 4px; color: var(--red); font-size: 22px; font-weight: 700; }
.plan-price .quote { color: var(--gold-d); }
.plan-price .per { font-size: 14px; font-weight: 600; color: var(--mut); }
.plan-desc { font-size: 12px; color: var(--hint); margin-bottom: 12px; }
.plan-feats { list-style: none; margin-bottom: 16px; }
.plan-feats li { font-size: 13px; color: var(--mut); padding: 4px 0 4px 20px; position: relative; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-d); font-weight: 700; }
.join-form-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 28px; }
.jf-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.jf-title .step-no { background: var(--navy); color: #fff; font-size: 12px; border-radius: 4px; padding: 2px 8px; font-weight: 500; }
.join-status-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 40px 30px; text-align: center; }
.join-status-card .big-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--warn-l); color: var(--warn); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.join-status-card .big-ico.ok { background: var(--ok-l); color: var(--ok); }
.join-status-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.join-status-card p { color: var(--mut); font-size: 14px; max-width: 460px; margin: 0 auto 18px; }

/* ---------- 商家中心 ---------- */
.seller-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.seller-side { background: var(--navy); border-radius: var(--r); padding: 14px 10px; position: sticky; top: 132px; }
.s-shop { display: flex; gap: 10px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.s-shop .shop-logo { width: 40px; height: 40px; font-size: 19px; border-radius: 9px; }
.s-shop-name { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; word-break: break-all; }
.s-shop-st { font-size: 11px; color: var(--gold-l); }
.s-menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 7px; color: #B9C0CE; font-size: 14px; cursor: pointer; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left; }
.s-menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.s-menu-item.on { background: var(--gold); color: #fff; font-weight: 600; }
.seller-main { min-width: 0; }
.seller-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.seller-top h2 { font-size: 19px; color: var(--navy); }
.seller-top .spacer { flex: 1; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.stat-card .l { font-size: 13px; color: var(--hint); }
.stat-card .n { font-size: 26px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.stat-card .n.alert { color: var(--red); }
.stat-card .s { font-size: 12px; color: var(--hint); margin-top: 2px; }
.panel-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.panel-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 14px; }

/* 表格 */
/* 宽表一律在容器内横向滚动：手机上是唯一的可用路径，桌面上表格被操作按钮撑宽时也不破版。
   滚动条做细一点，和店铺筛选列表保持一致。 */
.t-wrap {
  overflow-x: auto; max-width: 100%;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: #D8D3C7 transparent;
}
.t-wrap::-webkit-scrollbar { height: 8px; }
.t-wrap::-webkit-scrollbar-track { background: transparent; }
.t-wrap::-webkit-scrollbar-thumb { background: #D8D3C7; border-radius: 999px; }
.t-wrap::-webkit-scrollbar-thumb:hover { background: var(--hint); }
.t-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-table th { text-align: left; padding: 10px 12px; color: var(--hint); font-weight: 500; background: #FAF9F6; white-space: nowrap; }
.t-table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t-table tr:hover td { background: #FCFBF8; }
.td-goods { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.td-goods img { width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line-2); flex: none; }
.td-goods .n { color: var(--ink); line-height: 1.45; }
.td-goods .s { color: var(--hint); font-size: 12px; }
.td-num { font-weight: 600; color: var(--red); white-space: nowrap; }
/* 操作列不换行：用户管理的「停用/删除」、品类排序的「↑/↓」在窄列里会竖着堆成两行，
   行高忽高忽低；表格本来就放在 .t-wrap 里，列被撑宽时横向滚动即可。 */
.t-acts { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }

/* 状态标签 */
.status-tag { display: inline-flex; align-items: center; border-radius: 4px; padding: 2px 9px; font-size: 12px; white-space: nowrap; }
.st-wait { background: var(--warn-l); color: var(--warn); }
.st-ship { background: #E7EEF7; color: #2C5A8C; }
.st-done { background: var(--ok-l); color: var(--ok); }
.st-off  { background: #F0EEE9; color: var(--hint); }
.st-err  { background: var(--err-l); color: var(--err); }

/* ---------- 买家中心 ---------- */
.buyer-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; width: fit-content; }
.buyer-tab { border: none; background: none; padding: 8px 20px; border-radius: 7px; font-size: 14px; color: var(--mut); cursor: pointer; }
.buyer-tab.on { background: var(--navy); color: #fff; font-weight: 600; }
.order-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.order-hd { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--hint); flex-wrap: wrap; }
.order-hd .oid { color: var(--ink); font-weight: 600; }
.order-hd .spacer { flex: 1; }
.order-items { padding: 6px 18px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.order-item:last-child { border-bottom: none; }
.order-item img { width: 52px; height: 52px; border-radius: 6px; border: 1px solid var(--line-2); }
.oi-n { flex: 1; min-width: 0; font-size: 13px; }
.oi-n .s { color: var(--hint); font-size: 12px; }
.order-ft { display: flex; align-items: center; gap: 14px; padding: 11px 18px; background: #FCFBF8; font-size: 13px; color: var(--mut); flex-wrap: wrap; }
.order-ft .sum { color: var(--red); font-weight: 700; font-size: 16px; }
.order-ft .spacer { flex: 1; }

/* ---------- 订单物流时间线 ---------- */
.tl { display: flex; flex-direction: column; }
.tl-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.tl-row:last-child { border-bottom: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); margin-top: 5px; flex: none; }
.tl-dot.on { background: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,60,.16); }
.tl-k { font-weight: 600; color: var(--navy); font-size: 13px; }
.tl-t { font-size: 12px; color: var(--hint); }
.tl-d { font-size: 12px; color: var(--mut); }

/* ---------- 平台介绍页 ---------- */
.about-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.about-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 16px; }
.about-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--gold); }
.about-card p { color: var(--mut); font-size: 14px; margin-bottom: 8px; }
.wt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.wt-item { background: #FCFBF8; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px 16px; }
.wt-item .t { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.wt-item .d { font-size: 13px; color: var(--mut); }
.lic-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--line-2); font-size: 14px; flex-wrap: wrap; }
.lic-row:last-child { border-bottom: none; }
.lic-row .code { color: var(--hint); font-size: 13px; }
.license-img { max-width: 100%; margin: 0 4px 12px; }
.license-img a { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 100%; color: var(--gold-d); }
.license-img img { display: block; width: auto; max-width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.license-img-hint { font-size: 12px; color: var(--hint); }
.ad-slot-row { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px dashed var(--line-2); flex-wrap: wrap; }
.ad-slot-row:last-child { border-bottom: none; }
.ad-slot-row .w { flex: 1; min-width: 200px; }
.ad-slot-row .w .t { font-weight: 600; color: var(--ink); }
.ad-slot-row .w .d { font-size: 12px; color: var(--hint); }

/* ---------- 登录弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(22, 33, 54, .5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 420px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.wide { max-width: 560px; }
@keyframes pop { from { transform: scale(.96); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.modal-hd { display: flex; align-items: center; padding: 16px 20px 10px; }
.modal-hd h3 { font-size: 17px; color: var(--navy); }
.modal-x { margin-left: auto; border: none; background: none; font-size: 22px; color: var(--hint); line-height: 1; padding: 4px; }
.modal-x:hover { color: var(--err); }
.modal-bd { padding: 8px 20px 18px; overflow-y: auto; }
.modal-ft { padding: 12px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line-2); }
.demo-hint { background: var(--gold-l); color: var(--gold-d); border-radius: var(--r-sm); font-size: 12px; padding: 8px 12px; margin-bottom: 14px; line-height: 1.6; }

/* ---------- 协议 ---------- */
.agree-link { color: var(--gold-d); text-decoration: underline; cursor: pointer; text-underline-offset: 2px; }
.agree-link:hover { color: var(--navy); }
.agree-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 13px; color: var(--mut); line-height: 1.6; }
.agree-lock { background: var(--err-l); color: var(--err); border-radius: var(--r-sm); padding: 7px 12px; font-size: 13px; margin-bottom: 10px; }
.agree-doc { max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.agree-doc h4 { margin: 16px 0 6px; color: var(--navy); font-size: 14px; }
.agree-doc h4:first-child { margin-top: 0; }
.agree-doc p { font-size: 13px; color: var(--mut); white-space: pre-wrap; margin-bottom: 8px; line-height: 1.85; }
.agree-doc p.em { color: var(--ink); font-weight: 600; background: var(--gold-l); padding: 9px 12px; border-radius: var(--r-sm); }
.agree-layer { z-index: 260; }

/* ---------- 开店组货（配货建议单） ---------- */
.plan-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: #FCFBF8; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 16px; }
.ps-item { display: flex; flex-direction: column; gap: 2px; }
.ps-item .l { font-size: 12px; color: var(--hint); }
.ps-item b { font-size: 17px; color: var(--navy); }
.ps-item b.sum { color: var(--red); font-size: 20px; }
.ps-item .note { font-size: 12px; }
.plan-bars { margin-bottom: 18px; }
.pb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 13px; }
.pb-name { width: 96px; text-align: right; color: var(--mut); flex: none; }
.pb-bar { flex: 1; height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.pb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-d)); border-radius: 6px; }
.pb-val { width: 132px; color: var(--hint); font-size: 12px; flex: none; }
.plan-block { border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.pb-hd { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: #FAF8F3; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.pb-title { font-weight: 600; color: var(--navy); font-size: 15px; }
.pb-hd .spacer { flex: 1; }
.plan-block .t-table th, .plan-block .t-table td { padding: 9px 12px; }

@media (max-width: 768px) {
  .plan-sum { grid-template-columns: repeat(2, 1fr); }
  .pb-name { width: 72px; }
  .pb-val { width: auto; }
}

/* ---------- Toast ---------- */
#toastRoot { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(31, 43, 69, .92); color: #fff; padding: 10px 22px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); animation: tin .2s ease; max-width: 86vw; }
.toast.err { background: rgba(140, 29, 44, .95); }
.toast.ok { background: rgba(46, 125, 79, .95); }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-d); color: #98A0B0; margin-top: 30px; font-size: 13px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 38px 16px 26px; }
.ft-col h4 { color: #E8E4D8; font-size: 15px; margin-bottom: 12px; font-weight: 600; }
.ft-col a { display: block; padding: 3px 0; color: #98A0B0; }
/* 手机上页脚链接加高到可触控尺寸（2026-10-12）：原来 3px 内边距 → 链接高 27px，
   手指容易点错行（页脚链接密集）。手机端撑到 ≥32px，桌面维持紧凑。 */
@media (max-width: 768px) { .ft-col a { padding: 7px 0; } }
.ft-col a:hover { color: var(--gold); }
.ft-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ft-brand .brand-mark { width: 38px; height: 38px; font-size: 21px; }
.ft-brand .n { color: #fff; font-size: 17px; font-weight: 700; font-family: "Source Han Serif CN", serif; letter-spacing: 1px; }
.ft-desc { line-height: 1.8; }
.ft-note { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 16px 20px; text-align: center; font-size: 12px; color: #737C8C; line-height: 1.9; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .p-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 340px 1fr; gap: 20px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .plan-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hd-row { flex-wrap: wrap; gap: 12px; }
  .brand { order: 1; }
  .hd-actions { order: 2; margin-left: auto; }
  .hd-search { order: 3; max-width: none; flex-basis: 100%; }
  .hd-act span { display: none; }
  .hd-join, .hd-seller { display: none; }
  /* 顶栏 5 个链接在手机上挤成一行、点击目标偏小；去掉「平台管理」——
     它对普通用户没意义，后台本来也不该在移动端露脸。其余保留。 */
  .topbar-right { gap: 12px; }
  .topbar-right a[href="#/admin"] { display: none; }
  .topbar-right a { white-space: nowrap; }
  .buyer-tools { display: block; }   /* 页头入口在移动端隐藏，改从「我的」进 */
  .brand-sub { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 21px; }
  .brand-name { font-size: 17px; }
  .p-grid, .p-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .shop-row { grid-template-columns: 1fr; }
  .guar { grid-template-columns: repeat(2, 1fr); }
  .guar-item { border-bottom: 1px solid var(--line-2); }
  .guar-item:nth-child(2n) { border-right: none; }
  .list-layout { grid-template-columns: 1fr; }
  .filter-side { position: static; display: flex; overflow-x: auto; gap: 0; padding: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  /* 手机端筛选条：滚动条在手机上只会露出一个灰色小块（看着像坏图），直接藏掉；
     每组固定宽度不参与收缩，选项文字不换行，避免「现货急单（当天可发）」被压成两行。 */
  .filter-side::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .f-group { border-bottom: none; border-right: 1px solid var(--line-2); flex: 0 0 auto; padding: 8px 12px; }
  .f-group:last-child { border-right: none; }
  .f-opt { white-space: nowrap; flex: 0 0 auto; }
  .detail-layout { grid-template-columns: 1fr; padding: 14px; }
  .gallery { position: static; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .seller-layout { grid-template-columns: 1fr; }
  .seller-side { position: static; display: flex; overflow-x: auto; padding: 8px; }
  .s-shop { border-bottom: none; margin-bottom: 0; padding: 4px 8px; flex: none; }
  .s-menu-item { white-space: nowrap; width: auto; flex: none; }
  .cart-item { flex-wrap: wrap; }
  .ci-unit-price { width: auto; text-align: left; }
  .ci-sub { width: auto; margin-left: auto; }
  .settle-in { flex-wrap: wrap; gap: 10px; }
  .settle-total { margin-left: 0; width: 100%; display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
  .settle-acts { width: 100%; }
  .settle-acts .btn { flex: 1; }
  .join-steps { flex-wrap: wrap; }
  .jstep { flex: 1 1 45%; }
  .jstep::before { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .info-list { grid-template-columns: 1fr; }
  .wt-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .license-img img { max-height: 260px; }
  .rev-home-grid { grid-template-columns: 1fr; }
  .follow-card { flex-wrap: wrap; }
  .follow-card .fc-main { flex-basis: 100%; }
}
@media (max-width: 520px) {
  .hero-cats { grid-template-columns: repeat(4, 1fr); }
  .hero-side { grid-template-columns: 1fr; }
  .cat-tile-name { font-size: 12px; }
  .ft-grid { grid-template-columns: 1fr; }
  .buyer-tabs { width: auto; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .buyer-tab { white-space: nowrap; }
  /* 公告标题与时间在窄屏上下排，避免标题被时间挤成两行 */
  .nt-hd { display: block; }
  .nt-ts { display: block; margin: 4px 0 0; }
}

/* ══════════════ 图片兜底（app.js 事件委托打上 .img-fallback） ══════════════
   商家填的图挂了 → 不留「破图」小图标，换成中性的灰底占位。
   用 background 画，不引入额外请求；尺寸交给原本的 img 盒子（各页已有固定比例）。 */
.img-fallback {
  background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 8px, #e6eaf0 8px, #e6eaf0 16px);
  position: relative;
  object-fit: cover;
}
.img-fallback::after {
  content: "图片暂不可用";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #96a0ae; letter-spacing: .5px;
}


/* ══════════════════════════════════════════════════════════════════
   手机端体验（2026-10-10 优化轮 · 用 390×844 与 320×568 真机尺寸实测后逐项修）
   实测发现的问题与对应修法都写在每条注释里，别凭感觉改回去。
   ══════════════════════════════════════════════════════════════════ */

/* ① iOS 聚焦输入框会「自动放大整页」——只要 input 字号 < 16px 就触发。
      实测全部输入框是 14px（.input/.select/.textarea、搜索框、入驻表单、数量框），
      手机上点一下搜索框整页被放大，还得手动缩放回来，是最常见的手机端投诉。
      修法：手机上把输入类控件字号提到 16px（桌面端保持 14px 不变，不影响观感）。 */
@media (max-width: 768px) {
  .input, .select, .textarea,
  .search-box input,
  .stepper input, .stepper.sm input { font-size: 16px; }
  /* 复选框也是触控目标：16px 太小，撑到 20px（视觉仍轻） */
  .checkbox { width: 20px; height: 20px; }
}

/* ② 触控目标 < 32px 的一律撑到位（实测清单，别漏）：
      .sort-item 29px / .dim-opt 30px / .modal-x 24×30 / 数量步进 30×32 /
      购物车小步进 24×26 / .btn-sm（各处表格里的操作按钮）. */
@media (max-width: 768px) {
  .sort-item { min-height: 40px; padding: 10px 16px; }
  .dim-opt { min-height: 44px; padding: 8px 14px; }   /* 选尺码/颜色最常点，给足 44px */
  .modal-x { width: 44px; height: 44px; font-size: 26px; margin-right: -8px; }
  .stepper button { width: 40px; height: 40px; }
  .stepper input { height: 40px; width: 56px; }
  .stepper.sm button { width: 36px; height: 36px; }
  .stepper.sm input { width: 44px; height: 36px; }
  .btn-sm { min-height: 36px; padding: 8px 12px; }
  .link-danger { min-height: 36px; display: inline-flex; align-items: center; }
  .p-tags .badge, .badge { padding: 3px 7px; }   /* 商品卡角标太小看不清 */
}

/* ③ 手机屏幕本来就只有 6~7 百像素高，头部却吃掉 240px（实测 390×844 时
      topbar 60 + 头部 181 ≈ 28% 屏幕）—— 进站第一眼几乎看不到商品。
      修法：手机上前两屏尽量压扁头部：
        · 顶部工具条（热线/微信/服务时间）与「推广服务/资质公示」收进一行、可横向滑，
          高度从 60px 压到 ~34px；
        · 品牌字标缩一档、搜索框与「热门搜索」的上下间距收紧。 */
@media (max-width: 768px) {
  .topbar { font-size: 11px; }
  .topbar-in { min-height: 0; padding: 6px 0; gap: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .topbar-in::-webkit-scrollbar { display: none; }
  .topbar-left, .topbar-right { flex-wrap: nowrap; gap: 12px; }
  .topbar-left { flex: none; }
  .topbar-right { flex: none; }
  .hd-row { padding-top: 10px; padding-bottom: 8px; gap: 10px; }
  .search-hot { margin-top: 3px; }
  .cat-link { padding: 10px 13px; }   /* 导航项本身够高（41px），只收左右留白 */
}

/* ④ 结算弹层在手机上高 743px / 视口 844px，已经很贴边；
     若手机浏览器地址栏占位（真实可视高度常只有 ~700px），提交按钮会被顶出屏幕。
     修法：弹层最大高度用 dvh（动态视口）并留出安全边距，body 内部滚动，footer 永远可见。 */
.modal { max-height: 88vh; max-height: 88dvh; }
.modal-bd { overscroll-behavior: contain; }   /* 弹层内滚动到底不要带动页面 */

/* ⑤ 刘海屏/全面屏底部安全区：购物车结算条、弹层底部按钮别压在 Home 指示条上。 */
.modal-ft { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }

/* ⑥ 触屏没有 hover：桌面端靠 :hover 才显形的样式在手机上会「点一下卡住」
     （例如分类项 hover 的灰底在手点之后一直留着）。触屏设备上一律取消这些 hover 态。
     ⚠️ 只列**真实存在**的 hover 规则（加之前先 grep 过），别凭空写不存在的类名。 */
@media (hover: none) {
  .cat-link:hover { background: none; color: inherit; }
  .cat-link.em:hover { background: none; }
  .sort-item:hover { color: var(--mut); }
  .dim-opt:hover { border-color: var(--line); }
  .modal-x:hover { color: var(--hint); }
}

/* ⑦ 手机上表格普遍偏挤：文字换行导致行高忽高忽低。
     给表格统一允许换行 + 关键列不换行，并把小字提一档（11~12px 在手机上费力）。 */
@media (max-width: 768px) {
  .t-table { font-size: 13px; }
  .t-table th, .t-table td { padding: 9px 8px; }
  .note { font-size: 12px; }
  .t-table .note { font-size: 12px; }
}

/* ⑧ 点按高亮与长按菜单：默认的蓝色高亮块在深色按钮上很脏；
     图片长按弹出「存储图片」对有实拍图的商城没意义（还会误触）。 */
* { -webkit-tap-highlight-color: rgba(31,43,69,.08); }
.p-img img, .g-main img, .g-thumbs img, .hist-img, .ci-img img, .td-goods img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}

/* ══════════════════════════════════════════════════════════════════
   手机端第二轮（2026-10-10 · 子代理审计 + 360×740 实测后补）
   ⚠️ 下面每一条都对应实测到的具体数字，不是"看着不顺眼"。
   ══════════════════════════════════════════════════════════════════ */

/* ⑨ 🔴 店铺页商品卡被压成 54px（实测 360px 宽时 grid 列 = 190px + 122px，
      .p-grid 在手机上还是两列 → 每张卡 54px，商品名只露 2 个字、价格被裁掉）。
      根因：.list-layout / .detail-layout / .seller-layout 都在 ≤768px 里改成了单列，
      **.shop-body 漏了**（它同样是「侧栏 190px + 内容」的两列网格）。
      这是移动端最严重的一处 —— 店铺页等于不可用。 */
@media (max-width: 768px) {
  .shop-body { grid-template-columns: 1fr; }
}

/* ⑩ 🔴 购物车最后一条被结算条永久盖住（实测：结算条 166px 高，
      清除间距只有固定 90px → 最后一条的「删除」按钮被挡 151px，怎么滚都露不出来）。
      修法：手机上把清除间距提到 190px（166 + 余量），并加上底部安全区。 */
@media (max-width: 768px) {
  .cart-groups { margin-bottom: calc(190px + env(safe-area-inset-bottom, 0px)); }
}

/* ⑪ 顶部三个图标入口（消息/购物车/我的）手机上只剩 21px 图标，
      文字被 .hd-act span{display:none} 藏了 → 点击目标只有 21px 高。
      购物车是手机端最常点的入口，必须撑到 44px。 */
@media (max-width: 768px) {
  .hd-act { min-height: 44px; padding: 11px 0; }
  .hd-act svg { width: 22px; height: 22px; }
}

/* ⑫ 列表页筛选选项 .f-opt 只有 31px 高（上一轮漏了它），
      而它是分类/发货地/价格区间/商家类型的唯一入口。 */
@media (max-width: 768px) {
  .f-opt { min-height: 40px; display: inline-flex; align-items: center; padding: 9px 10px; margin: 0; }
}

/* ⑬ 开店组货的 .chip（城市消费力 / 竞品结构 / 入驻主营品类）只有 29px 高，
      而它是这几步的**唯一输入**，且结果直接影响配货建议单。 */
@media (max-width: 768px) {
  .chip { min-height: 40px; padding: 8px 14px; }
}

/* ⑭ 头部「热门搜索」词是 20px 高的裸 span（搜索主入口之一），
      小到不好点；撑到 40px 并给一点左右余量。 */
@media (max-width: 768px) {
  .hot-word { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; }
  .search-hot { gap: 16px; }
}

/* ⑮ scrollIntoView 的目标会被吸顶头部挡住（头部手机上约 127~180px 高）：
      「开店组货」生成建议单后跳到结果区、入驻页跳到表单，标题都藏在头部底下。
      用 scroll-margin-top 给锚点留出头部的高度。 */
#planResult, #joinFormCard, #joinLookup { scroll-margin-top: 150px; }

/* ⑯ 结算条也要吃底部安全区（上一轮只给了弹层和页脚，
      但全面屏手机上真正贴着 Home 指示条的是这条固定结算条）。 */
.settle-bar { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ⑰ 协议正文的内层滚动区仍用 56vh：iOS 上 vh 取的是"地址栏收起后"的大视口，
      会比可见区域高 → 内层滚动条行为不对。补 dvh（保留 vh 兜底）。 */
.agree-doc { max-height: 56dvh; }

/* ⑱ 触屏点按要有反馈：全站只有 :hover（手机上不触发），
      金刚区大卡片点下去毫无反应就跳页了。给可点元素加 :active 反馈。
      ⚠️ 只加视觉反馈（透明度/缩放），不改变布局。 */
@media (hover: none) {
  .cat-tile:active, .promo-card:active, .p-card:active, .shop-card:active,
  .rel-card:active, .hist-row:active, .follow-card:active { opacity: .82; }
  .btn:active, .buyer-tab:active, .cat-link:active, .sort-item:active,
  .f-opt:active, .chip:active, .dim-opt:active, .modal-x:active { opacity: .78; }
}

/* ⑲ 顶部联系条（服务热线/客服微信）在手机上反而被缩小到 11px ——
      而"打电话"恰恰是手机端最该好点的操作。别缩小，保持 12px 并让链接可点。 */
@media (max-width: 768px) {
  .topbar { font-size: 12px; }
  .topbar-right a { min-height: 32px; display: inline-flex; align-items: center; }
}

/* ⑳ 剩余 <40px 的触控目标补齐（分页、表格操作、购物车删除、购物车步进）。 */
@media (max-width: 768px) {
  .btn-sm { min-height: 40px; padding: 9px 13px; }
  .link-danger { min-height: 40px; display: inline-flex; align-items: center; }
  .stepper.sm button { width: 40px; height: 40px; }
  .stepper.sm input { height: 40px; }
}

/* ㉑ 购物车勾选框紧贴可跳转的商品图（近失 → 误跳商品页）。
      给勾选框留出足够的命中区域，避免手指擦到图就跳走。 */
@media (max-width: 768px) {
  .cart-item .checkbox { padding: 10px; box-sizing: content-box; margin: -10px; }
  .cart-shop-hd .checkbox { padding: 10px; box-sizing: content-box; margin: -10px; }
}

/* ㉒ 弹层打开时锁住背景页滚动（app.js 的 modal() 加 .modal-open，closeModal() 摘掉）。
      只锁 body 的溢出，不影响弹层内部的滚动区。 */
body.modal-open { overflow: hidden; }

/* ══════════════ 通用图片选择器（app.js imagePickerHtml / bindImagePicker）══════════════
   2026-10-10：业主说「图标之类的我不能改图片，很多东西都是写死的」——
   商品图、品类图标、店铺店标原来都只能选写死的素材，现在统一走这套选择器：
   素材库 / 本地上传 / 外链三条路。 */
.img-pick { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: #FBFCFE; }
/* 入驻证照上传（2026-10-24）：只收真实上传，不给素材库/外链，预览用大图看得清字 */
.lic-up { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px; background: #FBFCFE; }
.lic-up-prev { display: none; margin-bottom: 10px; }
.lic-up-prev.on { display: block; }
.lic-up-prev img {
  display: block; max-width: 100%; max-height: 200px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.lic-up-note { font-size: 12px; color: var(--hint); line-height: 1.6; }
.lic-up-prev .lic-up-note { margin-top: 6px; }
.qual-imgs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.qual-imgs a { display: block; }
.qual-imgs img {
  max-width: 260px; max-height: 200px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.img-pick-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.img-pick-preview img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; flex: none;
}
.img-pick-hint { font-size: 12px; color: var(--hint); }
.img-pick-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.img-pick-pane[hidden] { display: none; }
.img-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px; max-height: 240px; overflow-y: auto; padding: 2px;
}
.img-pick-grid img {
  aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; background: #fff;
}
.img-pick-grid img:hover { border-color: var(--line-2); }
.img-pick-grid img.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(31,43,69,.12); }

/* 店标图 / 品类图标图：容器是方的，图铺满并圆角裁切 */
.shop-logo-img { padding: 0; overflow: hidden; }
.shop-logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-dot-img { padding: 0; overflow: hidden; }
.shop-dot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-ico-img { padding: 0; overflow: hidden; }
.cat-ico-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 底色色板（店铺资料） */
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; flex: none;
  border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); padding: 0;
}
.color-dot:hover { border-color: var(--line-2); }
.color-dot.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(31,43,69,.15); }

/* 手机端：选择器占满宽度，素材格再小一点（一屏能多看到几张） */
@media (max-width: 768px) {
  .img-pick { padding: 10px; }
  .img-pick-preview img { width: 68px; height: 68px; }
  .img-pick-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); max-height: 200px; }
  .img-pick-tabs .chip { min-height: 40px; }
  .color-dot { width: 40px; height: 40px; }
}

/* ══════════════ 商品轮播图 / 详情图（多图上传，2026-11-03）══════════════
   商品表单里 .gal-* 只负责「已选图片」的缩略图网格 + 添加行；
   单图选择器 .img-pick 保持原样，两者互不影响。色值/圆角沿用变量。 */
.gal-block { margin-top: 6px; }
.gal-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gal-item {
  position: relative; flex: none;
  width: 92px; height: 92px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; overflow: visible;
}
/* 圆角改由内层图片裁切：.gal-x 的 ::after 热区要溢出格子（40×40），
   若父级 overflow:hidden 会在右下被裁掉约 6px。外圆角 8px - 边框 1px = 内圆角 7px。 */
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 7px; cursor: zoom-in; }
/* 上传方块：小程序口径，固定在缩略图末尾（满了就不渲染） */
.gal-add {
  flex: none; width: 92px; height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--line-2); border-radius: 8px; background: #FCFBF8;
  color: var(--hint); font-family: inherit; font-size: 13px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.gal-add:hover, .gal-add:focus-visible { border-color: var(--navy); color: var(--navy); }
.gal-add-plus { font-size: 20px; line-height: 1; }
.gal-add-txt { font-size: 12px; line-height: 1.2; }

/* 删除：视觉 22×22，::after 把可点区域撑到约 40×40，手指也点得中；
   放右下角，避免压住缩略图里的人脸/主体。 */
.gal-x {
  position: absolute; bottom: 3px; right: 3px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(31, 43, 69, .62); color: #fff;
  font-family: inherit; font-size: 14px; line-height: 1;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background .15s;
}
.gal-x::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.gal-x:hover, .gal-x:focus-visible { background: var(--err); color: #fff; }

.gal-actions {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-top: 8px;
}
.gal-actions .input { flex: 0 1 auto; max-width: 240px; min-width: 0; }
/* 网址输入框吃掉剩余宽度，「添加」按钮不参与收缩、始终与输入框同一行 */
.gal-actions .btn { flex: none; }

/* 空态：虚线框 + 浅底 note，和 .img-pick 的浅色容器同一路数 */
.gal-empty {
  display: block; margin-top: 6px; padding: 14px 12px;
  border: 1px dashed var(--line); border-radius: 8px;
  background: #FCFBF8; color: var(--hint);
  font-size: 12px; line-height: 1.6; text-align: center;
}
.gal-count { font-size: 12px; color: var(--mut); white-space: nowrap; }
/* 「清空」是破坏性操作：用危险色（app.js 会给按钮加 .gal-clear） */
.gal-clear { color: var(--err) !important; }

/* 手机端：缩略图缩到 76×76；网址输入与「添加」保持同一行（输入框可收缩） */
@media (max-width: 520px) {
  .gal-item { width: 76px; height: 76px; }
  .gal-add { width: 76px; height: 76px; }
  .gal-actions .input { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
  .gal-actions .btn { flex: none; }
}

/* 触屏没有真 hover：点过删除按钮后别让红底一直留着 */
@media (hover: none) {
  .gal-x:hover:not(:focus-visible) { background: rgba(31, 43, 69, .62); }
}

/* ══════════════ 商品表单「图片素材」分区（2026-11-03）══════════════
   app.js 把「封面图 / 轮播图 / 详情图」整体包进 .img-section：
   标题行 .img-section-hd + 内容 .img-section-body。
   做成浅色分区卡片，与一排排普通 .f-row 拉开层次，像小程序管理端的分块；
   色值/圆角沿用 --line-2 / --navy / --hint / --r，不引入新风格。 */
.img-section {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 14px 16px;
  background: #FDFCFA;
  margin: 4px 0 18px;
}
.img-section-hd {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.img-section-hd b { font-size: 15px; color: var(--navy); letter-spacing: .3px; }
.img-section-hd .note { font-weight: 400; line-height: 1.5; }

/* 段间距统一交给 gap，内部各段不再自带下边距，避免 14px + 16px 的双倍留白 */
.img-section-body { display: flex; flex-direction: column; gap: 14px; }
.img-section-body > .f-row { margin: 0; }
.img-section .gal-block { margin: 0; }
.img-section .gal-actions { margin-top: 8px; }

/* 封面图选择器在分区里不铺满整行：桌面最宽 560px */
.img-section .img-pick { max-width: 560px; }

/* 「一键清空」若单独成行（app.js 可能加 .img-section-actions），右对齐、不占满宽；
   若直接挂在 body 末尾，则自身靠右。 */
.img-section-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; margin-top: 2px;
}
.img-section-body > .gal-clear { align-self: flex-end; }

/* 手机端 ≤520px：内边距收一点，标题/说明上下排，选择器占满宽，按钮不溢出 */
@media (max-width: 520px) {
  .img-section { padding: 12px; margin-bottom: 14px; }
  .img-section-hd { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
  .img-section .img-pick { max-width: none; width: 100%; }
  .img-section .gal-actions .btn { max-width: 100%; }
  .img-section-actions { flex-wrap: wrap; justify-content: flex-start; }
  .img-section-actions .btn { max-width: 100%; }
}

/* ══ 商家中心补齐（2026-10-30）：商品搜索/批量、订单筛选、评价回复 ══ */
.seller-top .g-search { max-width: 220px; margin-right: 8px; }
.seller-top .g-status { max-width: 130px; margin-right: 8px; }
.g-batch {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.g-batch label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); }
.g-batch .note { margin-left: auto; }
.o-filter {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.o-filter .chip { min-height: 34px; }
.o-filter .o-search { max-width: 280px; margin-left: auto; }
.rev-reply {
  margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--gold, #B08D3C);
  background: rgba(176,141,60,.08); border-radius: 0 6px 6px 0;
  font-size: 12px; color: var(--mut); line-height: 1.7;
}
@media (max-width: 768px) {
  .seller-top .g-search, .seller-top .g-status { max-width: none; width: 100%; margin: 6px 0; }
  .o-filter .o-search { max-width: none; width: 100%; margin-left: 0; }
  .g-batch .note { margin-left: 0; }

  /* 后台/商家宽表：手机上要能横向滚动，而不是把每列压成竖排单字 */
  .t-wrap .t-table { min-width: 760px; }
  .t-wrap .t-table td { white-space: nowrap; }

  /* 商品详情（手机）：封面图与图集重复占两屏，价格/购买按钮被顶到 1500px 之后。
     隐藏顶部通栏封面，把标题+价格提到图集前面，主图限制高度。 */
  .d-cover { display: none; }
  .detail-layout > .d-info { order: -1; }
  .g-main img { max-height: 46vh; object-fit: contain; }
  .detail-layout { padding: 14px; }
  /* 缩略图条保持 72px，横向滑动；触屏不显示滚动条，避免多出一条灰线 */
  .g-thumbs { scrollbar-width: none; }
  .g-thumbs::-webkit-scrollbar { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   2026-10-31 新增：店铺筛选 / 结算运费方式 / 搜索「相关店铺」
   仅新增，不改动上方任何既有规则；颜色、圆角、触控尺寸沿用站点规范。
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- ① 店铺筛选（淘宝式侧栏店铺列表） ---------- */
/* 搜索框容器：边框/圆角/聚焦反馈与 .search-box 同源，尺寸更紧凑 */
.shop-filter {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 0 9px; margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.shop-filter:focus-within { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(31, 43, 69, .1); }
/* 放大镜图标位：内联 svg 或 .sf-ico（字符 / 图标字体）都可用 */
.shop-filter > svg,
.shop-filter .sf-ico {
  flex: none; width: 14px; height: 14px; color: var(--hint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
}
/* 输入框嵌在容器里，视觉等同 .input（边框由容器给），但更紧凑 */
.shop-filter input {
  flex: 1; min-width: 0; width: 100%;
  border: none; outline: none; background: transparent; box-shadow: none;
  padding: 6px 0; font-family: inherit; font-size: 13px; line-height: 1.5;
  color: var(--ink); -webkit-appearance: none; appearance: none;
}
.shop-filter input:focus { outline: none; border: none; box-shadow: none; }
.shop-filter input::placeholder { color: var(--hint); }

/* 列表：限高 + 内部滚动，店铺再多也不会把侧栏拉长 */
.shop-list {
  max-height: 236px; overflow-y: auto;
  margin: 0 -6px; padding: 2px 6px;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #D8D3C7 transparent;
}
.shop-list::-webkit-scrollbar { width: 6px; }
.shop-list::-webkit-scrollbar-track { background: transparent; }
.shop-list::-webkit-scrollbar-thumb { background: #D8D3C7; border-radius: 999px; }
.shop-list::-webkit-scrollbar-thumb:hover { background: var(--hint); }

/* 行内两栏：店名（可换行）+ 右侧商品数 */
.shop-list .f-opt {
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 6px 8px; min-height: 32px;
  line-height: 1.45; word-break: break-word;
}
.shop-count { flex: none; font-size: 12px; color: var(--hint); font-variant-numeric: tabular-nums; }
.shop-list .shop-count { margin-left: auto; }
.shop-list .f-opt.on .shop-count { color: rgba(255, 255, 255, .72); }

/* 搜索无结果 */
.shop-empty { padding: 14px 8px; font-size: 12px; color: var(--hint); text-align: center; line-height: 1.7; }

/* ---------- ② 运费方式选择（结算弹层） ---------- */
.ship-opts { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.ship-opt {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: #fff; cursor: pointer; min-height: 44px;
  transition: border-color .15s, background .15s;
}
.ship-opt:hover { border-color: #C6CDD9; background: #FCFBF8; }
.ship-opt:focus-within { border-color: var(--navy); }
.ship-opt input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.ship-opt b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
/* 说明文字独占一行，并缩进到档位名下方（radio 16px + gap 8px） */
.ship-opt .note { flex: 0 0 100%; padding-left: 24px; font-size: 12px; color: var(--hint); line-height: 1.55; }

/* 选中：深蓝描边 + 浅蓝底 */
.ship-opt.on { border-color: var(--navy); background: var(--navy-l); box-shadow: inset 0 0 0 1px var(--navy); }
.ship-opt.on b { color: var(--navy); }
.ship-opt.on .note { color: var(--mut); }

/* ---------- ③ 搜索结果「相关店铺」条 ---------- */
.shop-hits { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.shop-hit {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--navy);
  line-height: 1.5; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.shop-hit:hover { background: var(--navy-l); border-color: #CBD2DE; color: var(--navy); }
.shop-hit b, .shop-hit strong { font-weight: 600; }
.shop-hit:active { opacity: .85; }

/* ---------- 移动端（≤768px） ---------- */
@media (max-width: 768px) {
  /* 手机侧栏变成横向筛选条：店铺组固定宽度，列表仍内部纵向滚动 */
  .shop-filter { width: 220px; margin-bottom: 6px; }
  .shop-list { width: 220px; max-height: 210px; margin: 0; }
  .shop-list .f-opt { min-height: 40px; padding: 9px 10px; white-space: normal; }
  .shop-empty { padding: 12px 4px; }

  /* 运费方式：字号不缩小，触控行 ≥44px（这里给到 48px） */
  .ship-opt { min-height: 48px; padding: 12px; }
  .ship-opt b { font-size: 14px; }
  .ship-opt .note { font-size: 12px; }

  /* 相关店铺条：保留换行，但每张卡撑到 40px 好点 */
  .shop-hit { min-height: 40px; padding: 9px 12px; }
}

/* ══════════ 手机端体验优化（2026-11-01）══════════ */
@media (max-width: 768px) {
  /* 顶部服务条：只留热线与微信（右侧导航在页头/页脚都有，避免被裁一半） */
  .topbar .tb-dim, .topbar-right { display: none; }

  /* 购物车：图片+信息一行，价格/数量/小计/删除分两行，避免商品名被挤成竖排 */
  .cart-item {
    display: grid;
    grid-template-columns: 20px 76px minmax(0, 1fr) auto;
    grid-template-areas:
      "chk img info info"
      "chk img price sub"
      "chk img qty act";
    column-gap: 10px;
    row-gap: 6px;
    align-items: center;
    padding: 12px 14px;
  }
  .cart-item > .checkbox { grid-area: chk; align-self: start; margin-top: 4px; }
  .cart-item .ci-img { grid-area: img; }
  .cart-item .ci-info { grid-area: info; }
  .cart-item .ci-name { -webkit-line-clamp: 2; }
  .cart-item .ci-unit-price { grid-area: price; width: auto; text-align: left; }
  .cart-item .ci-qty { grid-area: qty; }
  .cart-item .ci-sub { grid-area: sub; width: auto; text-align: right; }
  .cart-item .ci-act { grid-area: act; text-align: right; }

  /* 筛选卡片：店铺搜索+列表别把整张卡撑太高；手机上店铺组排第一，先看到店铺 */
  .f-shops { width: 240px; order: -1; }
  .f-shops .shop-list { max-height: 96px; }
  .filter-side { align-items: flex-start; }
}

/* ══════════════ 后台与表单可用性修补（2026-11-03）══════════════
   只修明确问题：密码按钮触控尺寸、后台筛选栏窄屏挤压、表内小按钮；
   色值/圆角/间距沿用上面的变量，不引入新视觉风格。 */

/* 手机端：密码按钮按手指尺寸放大，输入框右侧留位同步加宽；
   .btn-xs 是行内「查看」，给到 32px 高，避免小到点不中。 */
@media (max-width: 768px) {
  .pwd-field .input { padding-right: 64px; }
  .pwd-eye { min-width: 52px; min-height: 38px; padding: 0 10px; font-size: 14px; }
  .btn-xs { min-height: 32px; padding: 4px 10px; }
  /* 品类排序的 ↑/↓ 只有箭头，默认宽度 34px，手指容易点错；撑到 40×40。 */
  #catTable td:first-child .t-acts .btn-sm { min-width: 40px; padding-left: 0; padding-right: 0; }
}

/* 后台筛选工具栏（用户管理 / 全站商品 / 订单管理）：
   ≤520px 时搜索框独占一行，下拉仍可并排，右侧计数靠右；
   否则 375px 下「下拉 + 搜索框 + 显示 X / Y 个」会互相挤压、搜索框只剩一小截。 */
@media (max-width: 520px) {
  .panel-card > .toolbar { padding: 10px 12px; }
  .panel-card > .toolbar > .input { flex: 1 1 100%; width: 100%; max-width: none !important; }
  .panel-card > .toolbar > .select { flex: 1 1 120px; min-width: 0; }
  .panel-card > .toolbar > .tool-right { margin-left: auto; flex: 0 0 auto; }
}

/* 触屏没有真 hover：点过密码按钮后别让灰底一直留着（与上方 ⑥ 的处理一致）。 */
@media (hover: none) {
  .pwd-eye:hover:not(:focus-visible) { background: transparent; color: var(--mut); }
}

/* ══════════════════════════════════════════════════════════════════
   2026-11-03 新增：移动端商品筛选胶囊 / 品类件数 / 购物车失效行 /
   买家订单筛选与复制单号 / 骨架占位
   —— 只新增选择器，不改动上方既有规则；色值、圆角、触控尺寸沿用变量。
   ══════════════════════════════════════════════════════════════════ */

/* ---------- ① 移动端商品筛选胶囊（≤768px 才显示，桌面隐藏） ---------- */
/* 桌面端不渲染胶囊；.filter-sheet 用 hidden 属性控制开合（app.js 的既有习惯），
   这里只补一条兜底，避免某些浏览器把 [hidden] 覆盖成可见。 */
.filter-chips { display: none; }
.filter-sheet[hidden] { display: none !important; }
@media (min-width: 769px) {
  .filter-chips, .filter-sheet { display: none !important; }
}

/* 品类件数：品类名后的浅灰小字，不参与布局（内联、不换行） */
.filter-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--hint);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.f-opt:hover .filter-count { color: var(--gold-d); }
.f-opt.on .filter-count,
.chip.on .filter-count,
.filter-chip.on .filter-count,
.filter-sheet-opt.on .filter-count { color: rgba(255, 255, 255, .72); }

@media (max-width: 768px) {
  .filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    margin: 0 0 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; width: 0; height: 0; }

  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--mut);
    padding: 6px 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background .15s, border-color .15s, color .15s;
  }
  .filter-chip:hover { border-color: var(--navy); color: var(--navy); }
  .filter-chip.on {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
  }
  .filter-chip.on:hover { color: #fff; }
  /* 可展开的胶囊（带 aria-expanded）：展开态用浅蓝底 + 藏蓝描边；
     焦点环画在内侧，避免被横向滚动容器裁掉。 */
  .filter-chip[aria-expanded="true"]:not(.on) {
    background: var(--navy-l);
    border-color: var(--navy);
    color: var(--navy);
  }
  .filter-chip[aria-expanded]:focus-visible,
  .filter-chip:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: -2px;
  }

  /* 白色展开面板：绝对定位、贴胶囊下方；宽度 = 视口 - 24px，左右各留 12px，居中摆放。
     ⚠️ 2026-11-04：这里原来写 left:50% + translateX(-50%)，而 JS 又内联了 left:0;right:0，
     两者叠加把面板整体左移了半个宽度（手机上 left=-161px，前半截选项全在屏外）。
     改成靠左右 0 + auto 外边距居中，并去掉 transform。 */
  .filter-sheet {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 95;
    width: calc(100vw - 24px);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    max-height: 60vh;
    max-height: 60dvh;
    margin-top: 6px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #D8D3C7 transparent;
  }
  .filter-sheet::-webkit-scrollbar { width: 6px; }
  .filter-sheet::-webkit-scrollbar-track { background: transparent; }
  .filter-sheet::-webkit-scrollbar-thumb { background: #D8D3C7; border-radius: 999px; }
  /* 2026-11-04：手机端 .f-opt 被全局改成 inline-flex（给顶部胶囊条用），
     进了筛选面板还是横排，一屏只看得到最后两项。面板里强制回纵向整行。 */
  .filter-sheet .f-opt {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }

  .filter-sheet-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .filter-sheet-opt + .filter-sheet-opt { margin-top: 2px; }
  .filter-sheet-opt:hover { background: var(--navy-l); color: var(--navy); }
  .filter-sheet-opt.on {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
  }
  .filter-sheet-opt.on:hover { color: #fff; }
}

/* ---------- ①.5 购物车「目录加载中 / 商品信息暂不可用」占位 ---------- */
/* 目录还没读回来时，购物行里的商品对象可能为 null。这属于「还没加载到」，
   不是失效：浅灰底 + 小字，正文色，不做灰化，也不参与失效/删除逻辑。 */
.cart-loading-note,
.cart-pending-note,
.cart-catalog-note {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: #F2F0EB;
  color: var(--mut);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* 整块占位（目录加载中，直接挂在购物车列表里） */
.cart-loading-note.is-block,
.cart-loading-note.is-full,
.cart-pending-note.is-block {
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 8px;
}
/* 加载中的行保持原样：不能因为暂时读不到商品就显示成「失效」 */
.cart-item.is-loading,
.cart-item.loading,
.cart-item.is-pending,
.cart-row.is-loading,
.cart-row.loading,
.cart-row.is-pending {
  opacity: 1;
  background: #fff;
}
.cart-item.is-loading .ci-img img,
.cart-item.loading .ci-img img,
.cart-item.is-pending .ci-img img { filter: none; opacity: 1; }
.cart-item.is-loading .ci-name,
.cart-item.loading .ci-name,
.cart-item.is-pending .ci-name { color: var(--ink); }

/* ---------- ② 购物车失效行 ---------- */
/* app.js 可能用 .cart-item.invalid 或 .is-invalid（也可能复用 .cart-row），这里都兼容 */
.cart-item.is-invalid,
.cart-item.invalid,
.cart-row.is-invalid,
.cart-row.invalid {
  opacity: .62;
  background: #FBFAF7;
  /* 失效行的提示/长商品名不得把整行撑出横向滚动 */
  overflow: hidden;
}
.cart-item.is-invalid .ci-img img,
.cart-item.invalid .ci-img img,
.cart-row.is-invalid .ci-img img,
.cart-row.invalid .ci-img img {
  filter: grayscale(1);
  opacity: .9;
}
.cart-item.is-invalid .ci-name,
.cart-item.invalid .ci-name,
.cart-row.is-invalid .ci-name,
.cart-row.invalid .ci-name { color: var(--mut); }
.cart-item.is-invalid .ci-img,
.cart-item.invalid .ci-img,
.cart-row.is-invalid .ci-img,
.cart-row.invalid .ci-img { cursor: default; }
/* 失效行的数量若被渲染成纯文本（而非禁用步进器），同样压成灰色 */
.cart-item.is-invalid .ci-qty,
.cart-item.invalid .ci-qty,
.cart-row.is-invalid .ci-qty,
.cart-row.invalid .ci-qty { color: var(--hint); }

/* 失效原因：红色小字，跟在商品信息下方 */
.cart-invalid-tip {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--err);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* 灰色变体（如「库存不足，仅剩 x 件」这类非下架原因） */
.cart-invalid-tip.is-mut,
.cart-invalid-tip.mut { color: var(--mut); }

/* 勾选框 / 步进器 disabled：灰底 + 禁用光标，避免「看起来还能点」 */
.cart-item.is-invalid .checkbox:disabled,
.cart-item.invalid .checkbox:disabled,
.cart-row.is-invalid .checkbox:disabled,
.cart-row.invalid .checkbox:disabled { cursor: not-allowed; opacity: .55; accent-color: var(--hint); }
.cart-item.is-invalid .stepper,
.cart-item.invalid .stepper,
.cart-row.is-invalid .stepper,
.cart-row.invalid .stepper { border-color: var(--line-2); background: #F7F5F1; }
.cart-item.is-invalid .stepper button:disabled,
.cart-item.invalid .stepper button:disabled,
.cart-row.is-invalid .stepper button:disabled,
.cart-row.invalid .stepper button:disabled {
  background: #F0EEE9;
  color: var(--hint);
  cursor: not-allowed;
}
.cart-item.is-invalid .stepper input:disabled,
.cart-item.invalid .stepper input:disabled,
.cart-row.is-invalid .stepper input:disabled,
.cart-row.invalid .stepper input:disabled {
  background: #F7F5F1;
  color: var(--hint);
  -webkit-text-fill-color: var(--hint);
  cursor: not-allowed;
}

/* 「清除失效」：危险色文字链接，放在结算条附近但不抢「去结算」主操作 */
.cart-clear-invalid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 0;
  background: none;
  padding: 6px 4px;
  color: var(--err);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.cart-clear-invalid:hover { color: var(--red-d); }
.cart-clear-invalid:disabled {
  color: var(--hint);
  text-decoration: none;
  cursor: not-allowed;
}
.settle-in .cart-clear-invalid { min-height: 32px; }
.settle-acts .cart-clear-invalid { align-self: center; }
/* 全部失效（购物车空态）时，「清除失效」跟在提示/按钮下面 */
.empty .cart-clear-invalid { margin-top: 12px; }

/* 「删除选中」（app.js 用 #delSel；也兼容 .cart-del-sel）：
   和「清除失效」并排时各自 nowrap、不收缩；窄屏交给 .settle-in 的 flex-wrap 换行。 */
#delSel,
.cart-del-sel {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
}
#delSel:hover,
.cart-del-sel:hover { color: var(--red-d); }
.settle-in > #delSel,
.settle-in > .cart-del-sel {
  flex: 0 0 auto;
  align-self: center;
}

/* ---------- ③ 买家订单筛选 / 复制订单号 ---------- */
/* .o-filter / .chip 沿用既有样式，只补移动端间距与「纯胶囊筛选条」的横滑 */

/* 买家订单 Tab（全部 / 待付款 / 待收货 / 已完成 / 已取消 …）：
   胶囊本身与件数徽标都不换行、不被压缩；条内空间不够时整条横滑，不挤压文字。 */
.o-filter .chip,
.o-filter .filter-count,
.order-tab,
.order-tabs .filter-count {
  flex: 0 0 auto;
  white-space: nowrap;
}
/* 当前 Tab 上的件数跟着反白，避免藏蓝底上的灰字看不清 */
.order-tab.on .filter-count,
.order-tab.is-on .filter-count,
.order-tab.active .filter-count { color: rgba(255, 255, 255, .72); }

/* 若 app.js 用的是 .order-tabs / .order-tab 而不是 .o-filter / .chip，
   这里给出与 .chip 完全一致的视觉，避免两套筛选条长得不一样 */
.order-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.order-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 34px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  color: var(--mut);
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.order-tab.on,
.order-tab.is-on,
.order-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.order-tab:hover:not(.on):not(.is-on):not(.active) { color: var(--navy); border-color: var(--navy-l); }

.order-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  border: 0;
  background: none;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--mut);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  transition: color .15s, background .15s;
}
.order-copy:hover { color: var(--navy); background: var(--navy-l); }
.order-copy.copied,
.order-copy.is-copied,
.order-copy.on { color: var(--ok); }
/* 订单头已有 flex-wrap；这里只保证超长单号自己换行、复制按钮不被拉宽 */
.order-hd .oid,
.order-hd .order-no { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.order-hd .order-copy { flex: none; max-width: 100%; }

/* ---------- ④ 骨架占位卡片（可选，app.js 不用也不影响任何现有页面） ---------- */
.sk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sk-card {
  min-height: 260px;
  border-radius: var(--r);
  background: #EFEDE8;
  box-shadow: var(--shadow);
  animation: skeletonPulse 1.4s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (max-width: 1024px) {
  .sk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sk-card { min-height: 190px; }
}

/* ---------- ⑤ 移动端收口（≤768px / ≤520px） ---------- */
@media (max-width: 768px) {
  /* 订单筛选：纯胶囊条一行横滑；带搜索框的（商家订单）仍换行，搜索框占满一行 */
  .o-filter { gap: 8px; padding: 10px 12px; }
  .o-filter .chip { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; white-space: nowrap; }
  .o-filter:not(:has(.o-search)) {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .o-filter:not(:has(.o-search))::-webkit-scrollbar { display: none; width: 0; height: 0; }

  /* :has() 不支持 / 将来买家筛选加了搜索框时的兜底：
     买家订单 Tab 条始终一行横滑，6–7 个 Tab 不会换行挤压 */
  #buyerOrderFilter {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  #buyerOrderFilter::-webkit-scrollbar { display: none; width: 0; height: 0; }

  /* .order-tabs 变体同样一行横滑，不换行挤压 */
  .order-tabs {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .order-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .order-tabs .order-tab,
  .order-tabs .chip { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; }

  /* 复制单号撑到手指可点，但不放大字号（仍是次要操作） */
  .order-copy { min-height: 32px; padding: 6px 8px; }

  /* 失效行在移动端是网格布局：提示若为直接子元素，独占一整行 */
  .cart-item > .cart-invalid-tip { grid-column: 1 / -1; margin-top: 0; }
  /* 「目录加载中 / 商品信息暂不可用」同理，但保持浅灰底而不是红色失效样式 */
  .cart-item > .cart-loading-note,
  .cart-item > .cart-pending-note,
  .cart-item > .cart-catalog-note { grid-column: 1 / -1; margin-top: 0; }

  /* 结算条多出「清除失效」时不挤压合计与主按钮 */
  .settle-in { row-gap: 8px; }
  .settle-in > .cart-clear-invalid { min-height: 40px; margin-left: auto; }
  .settle-acts .cart-clear-invalid { flex: 0 0 auto; }
  /* 「删除选中」与「清除失效」并排：都按手指尺寸，不被压扁 */
  .settle-in > #delSel,
  .settle-in > .cart-del-sel { min-height: 40px; margin-left: 0; }
}
@media (max-width: 520px) {
  .filter-chip { padding: 6px 11px; }
  .filter-sheet { width: calc(100vw - 20px); max-height: 56vh; max-height: 56dvh; }
  .settle-in { padding: 10px 12px; }
  /* 结算条：原有按钮 + 新增「清除失效」可换行，文字按钮独占一行且居中 */
  .settle-acts { flex-wrap: wrap; }
  .settle-acts .cart-clear-invalid {
    flex: 1 0 100%;
    justify-content: center;
    margin-left: 0;
  }
  .settle-in > .cart-clear-invalid { min-height: 36px; }
  /* 320px：两个文字按钮并排会超出，允许换行并靠左，不顶到屏幕外 */
  .settle-in > #delSel,
  .settle-in > .cart-del-sel { min-height: 36px; }
  .settle-in > .cart-clear-invalid { margin-left: 0; }
  /* 320px 窄屏：失效行整体收紧（步进器本就禁用，压缩不影响操作），不产生横滑 */
  .cart-item.is-invalid,
  .cart-item.invalid { padding: 10px 12px; column-gap: 8px; }
  .cart-item.is-invalid .stepper.sm button,
  .cart-item.invalid .stepper.sm button { width: 32px; height: 32px; }
  .cart-item.is-invalid .stepper.sm input,
  .cart-item.invalid .stepper.sm input { width: 34px; height: 32px; font-size: 13px; }
  /* 订单头（单号 + 复制）在 320–520px 上换行而不是横向溢出 */
  .order-hd { gap: 6px 10px; padding: 10px 12px; }
  .order-copy { min-height: 36px; padding: 6px 10px; }
  .order-hd .order-copy { flex: none; max-width: 100%; }
}

/* 无障碍：系统开启「减少动态效果」时，关掉纯装饰的位移/缩放/弹出动画。 */
@media (prefers-reduced-motion: reduce) {
  .modal, .toast { animation: none; }
  .p-card, .shop-card, .hr-card, .p-img img, .btn { transition: none; }
  .p-card:hover, .shop-card:hover, .hr-card:hover,
  .p-card:hover .p-img .p-main { transform: none; }
  .sk-card { animation: none; }
  .filter-chip, .order-copy { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════
   移动端排版收口（2026-11-04 · 375×812 真浏览器实测后逐项修）
   ⚠️ 只改排版，不动 HTML 结构 / JS；全部包在 media query 里，桌面端零影响。
   每一条都对应一个实测数字，别凭感觉改回去。
   ══════════════════════════════════════════════════════════════════ */

/* ① 店铺页侧栏（2026-11-04）
   实测：≤768px 时 .filter-side 沿用列表页的「横向滑动条」（display:flex + overflow-x:auto），
   店内分类被撑成 789px、店铺信息块排到 left=809px（完全在 375px 屏外），
   必须横滑才看得到 —— 等于店铺页侧栏不可用。
   修法：只对店铺页的 .filter-side 关掉横滑，分组纵向排列，分类项按胶囊换行。
   列表页（#/list）的横滑筛选条保持不变。 */
@media (max-width: 768px) {
  .shop-body .filter-side {
    display: block; overflow: visible;
    padding: 4px 12px 6px; border-radius: var(--r);
  }
  .shop-body .filter-side .f-group {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 10px 0; border-right: none; border-bottom: 1px solid var(--line-2);
  }
  .shop-body .filter-side .f-group:last-child { border-bottom: none; }
  .shop-body .filter-side .f-title { width: 100%; margin: 0 0 2px; }
  .shop-body .filter-side .f-group > div:not(.f-title) { flex: 1 1 100%; min-width: 0; }
  .shop-body .filter-side .f-opt {
    display: inline-flex; align-items: center;
    margin: 0; padding: 5px 12px; min-height: 32px;
    max-width: 100%; white-space: normal; line-height: 1.35;
    border: 1px solid var(--line-2); border-radius: 999px;
    background: #FAF8F3; font-size: 13px;
  }
  .shop-body .filter-side .f-opt.on {
    background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500;
  }
}

/* ② 店铺页统计条（2026-11-04）
   实测：hideUnverified 默认 true，4 项里隐藏 3 项后只剩「在架商品」1 项，
   却仍占 287×68 的整条灰底，中间一个数字悬着，像没加载完。
   修法：只剩 1 项时收成一行小卡片（数字 + 标签同一行，宽度贴合内容）。
   :has() 不支持的老浏览器自动保持原样，不丢信息。 */
@media (max-width: 768px) {
  .shop-stats { padding: 8px 6px; }
  .shop-stats:has(> .shop-stat:only-child) {
    display: inline-flex; width: auto; max-width: 100%;
    padding: 6px 12px; margin-top: 12px;
    background: rgba(255, 255, 255, .10);
  }
  .shop-stats:has(> .shop-stat:only-child) > .shop-stat {
    display: flex; align-items: baseline; gap: 6px;
    flex: none; padding: 0; text-align: left; border-right: none;
  }
  .shop-stats:has(> .shop-stat:only-child) > .shop-stat .n { font-size: 17px; line-height: 1.3; }
  .shop-stats:has(> .shop-stat:only-child) > .shop-stat .l { font-size: 12px; opacity: .85; }
}

/* ③ 首页 hero（2026-11-04）
   实测 375px：金刚区只有 3 个品类（高 123px），右栏 3 张推广卡竖排 399px，
   hero 合计 537px —— 首屏 812px 里一张商品都看不到，且金刚区按 4 列排只占 3 格、右边空一格，
   看起来像「渲染到一半」。修法：
     · 金刚区改用 auto-fit（有几个铺几个，不再留空格）；
     · ≤520px 推广卡改成「横滑卡组」：一屏一张 + 露出下一张边缘，高度从 399px 降到 ~110px。 */
@media (max-width: 520px) {
  .hero { gap: 12px; margin-bottom: 22px; }
  .hero-cats { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); padding: 12px 10px 6px; }
  .cat-tile { gap: 6px; padding: 8px 2px; }
  .cat-ico { width: 44px; height: 44px; font-size: 20px; border-radius: 11px; }
  .hero-side {
    display: flex; flex-wrap: nowrap; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-side::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .hero-side > .promo-card {
    flex: 0 0 84%; scroll-snap-align: start;
    min-height: 96px; padding: 14px 16px; gap: 4px;
  }
  .promo-t { font-size: 17px; }
}

/* ④ 商品详情吸底操作条（2026-11-04）
   实测 375px：3 个 .btn-lg 被「50% 宽」规则排成两行，吸底条高 126px，
   首屏把「数量 / 合计」压在条下面（要滚 170px 才能点到步进器）。
   修法：按钮按内容宽度排（3 个能并成一行），单行高度 40px、条内边距 8px，
   三按钮商品条的整条高度降到 56px；四按钮仍换行，但每行也压到 40px。 */
@media (max-width: 520px) {
  .d-actions {
    gap: 6px;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .d-actions .btn-lg {
    flex: 1 1 auto; min-width: 0;
    padding: 9px 6px; font-size: 14px;
  }
}

/* ⑤ 移动端吸顶头（2026-11-04）
   实测 375px：品牌 124px + 4 个图标 218px + 间距 > 343px 容器宽 → 图标被挤到第二行，
   头部 249px 占 812px 的 31%，首屏只剩头部。修法：
     · 品牌字标/图标各收一档、图标间距收到 2px → 品牌与图标并回同一行（44px 高）；
     · 「热门搜索」副行用 CSS 滚动驱动动画在滚动 90px 内收起（纯 CSS，无 JS）。
       外层 @supports 兜底：不支持 animation-timeline 的浏览器完全不加载这段，
       保持静态样式，不会出现「时间轴失效 → 默认 0s 时长立刻收起」的翻车。 */
@media (max-width: 768px) {
  .hd-row { gap: 8px; padding-top: 8px; padding-bottom: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; font-size: 19px; border-radius: 9px; }
  .brand-name { font-size: 16px; letter-spacing: .5px; }
  .hd-actions { gap: 2px; }
  .hd-act { min-width: 40px; padding: 8px 0; }
}
@keyframes hgMobHotFold {
  from { max-height: 44px; opacity: 1; margin-top: 3px; }
  to   { max-height: 0;    opacity: 0; margin-top: 0; }
}
@media (max-width: 768px) {
  @supports (animation-timeline: scroll()) {
    .search-hot {
      overflow: hidden;
      animation: hgMobHotFold linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90px;
    }
  }
}

/* ⑥ 「我的」页 Tab 条（2026-11-04）
   实测 375px：Tab 总宽 722px / 可视 343px，第 4 项起被裁。
   JS 已把当前 Tab 滚进视野（scrollIntoView inline:center），这里只补观感：
   隐藏横向滚动条（露半截灰条很突兀）、平滑滚动、两端留出一点滚动内边距。 */
@media (max-width: 520px) {
  .buyer-tabs {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .buyer-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .buyer-tab { scroll-snap-align: center; }
}

/* ⑤ 的降级：系统开了「减少动态效果」就不要滚动收起了 */
@media (prefers-reduced-motion: reduce) {
  .search-hot { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════
   移动端布局修复（2026-11-05 · 375×812 真浏览器逐页实测）
   对应审计的 6 条 P1：后台侧栏、宽表首列、详情吸底条、上架表单、
   「我的」Tab、列表筛选条。全部包在媒体查询里，桌面端零影响。
   下面的数值都来自实测（改前 → 改后见 _work/mobile_css_before/after.json）。
   ══════════════════════════════════════════════════════════════════ */

/* 吸顶头部在滚动 90px 后的实际高度：
   375px 实测 152px（.search-hot 由 scroll() 时间轴收起）。
   不支持滚动驱动动画的浏览器收起不会发生，头部保持 195px ——
   粘性条必须换一个 top，否则会被 90 z-index 的头部盖住。 */
@media (max-width: 768px) {
  :root { --mob-hd-h: 152px; }
}
@supports not (animation-timeline: scroll()) {
  @media (max-width: 768px) {
    :root { --mob-hd-h: 195px; }
  }
}
/* 系统开了「减少动态效果」时上面的 .search-hot 收起动画被关掉，
   头部不会从 195px 缩到 152px —— 粘性条也必须改用 195px，否则被头部盖住 43px。 */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  :root { --mob-hd-h: 195px; }
}

/* ── ① 商家中心 / 管理端侧栏 ─────────────────────────────────────
   改前：.seller-side 343×69、overflow-x:auto，商家 8 项 scrollWidth 797、
   管理端 16 项 1532；当前页「商家管理」left=402、退出 left=1460 全在屏外。
   改法：父级从 grid 改 block（grid 的单行网格区只有 69px，sticky 没有
   位移空间）；侧栏 sticky 在头部下方；当前项用 flex order 提到最前；
   退出按钮 sticky 钉在右侧；底部细滚动条 + 店名后的「左右滑动」文字提示。 */
@media (max-width: 768px) {
  .seller-layout { display: block; }
  .seller-side {
    position: sticky;
    top: var(--mob-hd-h);
    z-index: 80;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 8px 10px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255, 255, 255, .14);
  }
  .seller-side::-webkit-scrollbar { height: 4px; }
  .seller-side::-webkit-scrollbar-track { background: rgba(255, 255, 255, .14); border-radius: 999px; }
  .seller-side::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }

  /* 店铺名固定条首；当前页菜单紧随其后，任何页面进来都能看到自己的高亮。
     店铺信息块限宽 + 省略：管理端的「平台管理员 · 全部权限（超管）」很长，
     不限宽会把当前项顶到右侧退出按钮底下（实测 left=302，被 271 起的退出盖住）。 */
  .s-shop { order: -3; max-width: 160px; flex: 0 0 auto; }
  .s-shop > div:last-child { min-width: 0; }
  .s-shop-name,
  .s-shop-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .s-menu-item.on {
    order: -2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  }
  /* 退出放在菜单末尾随横条一起滑动。
     ⚠️ 2026-11-05 实测：之前 `position:sticky; right:0` 会压住右侧的下一个菜单项，
        点「商品管理」的中心点命中的是退出按钮，直接把人登出了。
         正确性优先，取消固定，滑动到末尾即可看到。 */
  #sLogout,
  #aLogout {
    position: static;
    order: 1;
    flex: 0 0 auto;
    margin: 0 0 0 8px !important;
    padding: 9px 12px;
    min-height: 40px;
    background: var(--gold-d);
    color: #fff;
    font-weight: 600;
  }
  #sLogout:hover,
  #aLogout:hover { background: var(--gold); color: #fff; }
  #aBack { margin-top: 0 !important; }
  /* 「还能滑」的文字提示（滚动条之外的兜底提示） */
  .s-shop-st::after { content: " · 左右滑动 ›"; color: rgba(255, 255, 255, .55); font-weight: 400; }
}

/* ── ② 商家 / 管理端宽表 ─────────────────────────────────────────
   改前：#/seller/orders 的 .t-wrap 可视 303、内容 1139；首列在 scrollLeft=836
   时 left=-800；「发货」left=993（第 3 屏）。
   改法：≤768px 表格顶部加一条 sticky 在左侧的滑动提示（横滑时不动）；
   ≤600px 首列 sticky 冻结，滚动时订单号/客户始终可见，并带右侧分隔投影。 */
@media (max-width: 768px) {
  .t-wrap::before {
    content: "← 左右滑动查看更多 →";
    display: block;
    position: sticky;
    left: 0;
    width: max-content;
    padding: 3px 2px 5px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--hint);
    background: #fff;
    z-index: 3;
    pointer-events: none;
  }
  /* 空表没有「更多」可滑，不显示提示：
     · 完全没有数据行（商家的商品列表）；
     · 只有一行 colspan 空状态（订单 / 咨询 / 评价）。
     :not([hidden]) 是给「用户管理」这种真实行 + 隐藏空状态行并存的表用的。 */
  .t-wrap:not(:has(tbody tr))::before,
  .t-wrap:has(tbody tr:not([hidden]) > td[colspan])::before { display: none; }
}
@media (max-width: 600px) {
  .t-wrap .t-table th:first-child,
  .t-wrap .t-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 8px 0 8px -8px rgba(31, 43, 69, .28);
  }
  .t-wrap .t-table th:first-child { background: #FAF9F6; z-index: 3; }
  .t-wrap .t-table tr:hover td:first-child { background: #FCFBF8; }
}

/* ── ③ 商品详情吸底操作栏 ────────────────────────────────────────
   改前：.d-actions 是 position:sticky，父级 .d-info 只有 886px，
   页面 5807px：y=0 时 top=755，y=2000 时 top=-1139（完全消失）。
   改法：≤768px 改成 fixed 视口底部；按钮压成单行（4 个按钮时
   字号/内边距各收一档）；页脚补出条高 + 安全区，最后一段不被盖住。 */
@media (max-width: 768px) {
  .d-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -6px 18px rgba(31, 43, 69, .12);
    flex-wrap: nowrap;
    gap: 6px;
  }
  .d-actions .btn-lg {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 6px;
    font-size: 14px;
  }
  /* 页脚最后一行（版权/备案号）滚到页尾时不被固定条压住 */
  body:has(.d-actions) .site-footer {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── ④ 商家上架商品表单 ──────────────────────────────────────────
   改前：#fSaveOff left=-67/right=187（左侧被裁 67px，页面不能横滑）；
   「现货/定制」label 33×46，两个字竖排。
   改法：保存按钮那行允许换行、每个按钮独占一行；
   单选组允许换行、label ≥64px 宽 44px 高、说明文字整行下移。 */
@media (max-width: 768px) {
  /* JS 内联了 display:flex;gap:10px;justify-content:flex-end，只能靠属性选择器命中 */
  .panel-card > div[style*="gap:10px"][style*="justify-content:flex-end"] { flex-wrap: wrap; }
  #fSaveOn,
  #fSaveOff { flex: 1 1 100%; }

  #fKind,
  #fGender { flex-wrap: wrap; row-gap: 8px; }
  #fKind > label,
  #fGender > label {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 44px;
    white-space: nowrap;
  }
  #fKind > .note { flex: 1 1 100%; }
}
/* 320px：按钮文案「保存到仓库（不下架市场）」比容器还宽（254 > 248），
   flex 压不到 min-content 以下会向左溢出 6px。字号/内边距各收一档即可单行放下。 */
@media (max-width: 360px) {
  #fSaveOn,
  #fSaveOff { padding-left: 10px; padding-right: 10px; font-size: 14px; }
}

/* ── ⑤「我的」7 个 Tab ─────────────────────────────────────────
   改前：.buyer-tabs 可视 343、内容 722，只露 3 个；原来把滚动条
   display:none 了，看不出后面还有 4 项。
   改法：显示 4px 细滚动条 + 右缘内阴影渐隐；scroll-snap 对齐；
   当前项加投影，选中态更明显。 */
@media (max-width: 768px) {
  .buyer-tabs {
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 6px;
    scrollbar-width: thin;
    scrollbar-color: #D8D3C7 transparent;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    box-shadow: var(--shadow), inset -16px 0 14px -14px rgba(31, 43, 69, .35);
  }
  .buyer-tabs::-webkit-scrollbar { height: 4px; display: block; }
  .buyer-tabs::-webkit-scrollbar-track { background: #F1EFE9; border-radius: 999px; }
  .buyer-tabs::-webkit-scrollbar-thumb { background: #D8D3C7; border-radius: 999px; }
  .buyer-tab { scroll-snap-align: center; }
  .buyer-tab.on { box-shadow: 0 2px 8px rgba(31, 43, 69, .28); }
}

/* ── ⑥ 列表页筛选 / 排序条 ───────────────────────────────────────
   改前：滚到列表中段（y=2046）时 .filter-mobile top=-1846，改筛选得滚回顶部。
   改法：≤768px 吸顶在头部下方（--mob-hd-h），自带不透明底色与下缘投影；
   JS 在该元素上内联了 position:relative，必须 !important 才能覆盖。 */
@media (max-width: 768px) {
  .filter-mobile {
    position: sticky !important;
    top: var(--mob-hd-h);
    /* 95：高于吸顶头部（90），保证筛选面板打开时遮罩仍能盖住头部；
       条本身 top 正好等于头部底边，不会盖住 header。 */
    z-index: 95;
    background: var(--bg);
    padding-top: 4px;
    box-shadow: 0 10px 12px -12px rgba(31, 43, 69, .35);
  }
}
