/* ===== 经销商订货端（移动优先）=====
   仅作用于 .is-mall（客户角色）页面；桌面宽度下内容居中 640px。
   基础变量、.tag/.btn/.modal 等沿用 css/style.css。 */

/* ---------- 客户角色：隐藏员工侧栏，内容居中 ---------- */
body.is-mall { background: var(--page); }
.is-mall .sidebar,
.is-mall .sidebar-bg,
.is-mall .brand,
.is-mall #nav { display: none !important; }
.is-mall .main { margin-left: 0; width: 100%; }
.is-mall .topbar {
  width: 100%; max-width: 640px; margin: 0 auto;
  justify-content: center; padding: 0 16px;
}
.is-mall .content {
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: 12px 12px 84px;
  -webkit-overflow-scrolling: touch;
}
/* 底部 tabbar：桌面也显示，与内容同宽居中 */
.is-mall .tabbar {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 640px; margin: 0 auto; height: 58px;
  background: var(--surface); border-top: 1px solid var(--border);
  z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.is-mall .tb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); cursor: pointer; min-height: 44px; text-decoration: none;
}
.is-mall .tb-item .tb-ic { font-size: 20px; line-height: 1; }
.is-mall .tb-item .tb-label { font-size: 11px; }
.is-mall .tb-item.active { color: var(--brand); font-weight: 600; }

/* toast 放在顶部，避免被底部购物车/操作条遮挡 */
.is-mall .toast {
  top: 14px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
  max-width: calc(100% - 32px); text-align: center; z-index: 300;
}

/* ---------- 通用 ---------- */
.m-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 1px 2px rgba(11, 11, 11, .04);
  padding: 12px; margin-bottom: 10px;
}
.m-card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: -2px 0 8px; font-size: 14px;
}
.m-card-h b { font-size: 14px; }
.m-row { display: flex; align-items: center; gap: 8px; }
.m-between { justify-content: space-between; }
.m-label { font-size: 13px; color: var(--ink-2); }
.muted { color: var(--muted); }
.m-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.m-note.warn { color: #a32626; }
.m-warn-text, .warn-text { color: #a32626; }
.m-center { text-align: center; padding: 10px; }
.m-hide { display: none !important; }
.m-arrow { color: var(--muted); font-size: 20px; line-height: 1; }
.m-empty {
  padding: 44px 16px; text-align: center; color: var(--muted);
  font-size: 13.5px; line-height: 1.8;
}
.m-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--brand); cursor: pointer; font-size: 13px; padding: 0 4px;
}

/* 按钮：触控区 ≥44px */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-size: 14px; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.m-btn:active { background: var(--surface-2); }
.m-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.m-btn.primary:active { background: var(--brand-deep); }
.m-btn.ghost { border: 1px dashed var(--brand); color: var(--brand); background: transparent; }
.m-btn.danger { color: var(--crit); border-color: rgba(208, 59, 59, .35); }
.m-btn.block { display: flex; width: 100%; }
.m-btn[disabled] { opacity: .45; pointer-events: none; }
.m-foot-btns { display: flex; gap: 10px; margin-top: 16px; }
.m-foot-btns .m-btn { flex: 1; }

/* 搜索 / chips / 分段 */
.m-searchbar { margin-bottom: 10px; }
.m-search {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 22px;
  background: #fff; font-size: 15px; outline: none; font-family: inherit;
}
.m-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(163, 47, 27, .14); }
.m-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.m-chip {
  min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid var(--border); background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.m-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.m-chip[disabled] { opacity: .5; }
.m-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
  scrollbar-width: none;
}
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid var(--border); background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
}
.m-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 首页 ---------- */
.m-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(90,52,30,.06);
  color: var(--ink); border-radius: 14px; padding: 15px 16px; margin-bottom: 10px;
}
.m-hero-row { display: flex; align-items: center; gap: 12px; }
.m-hero-main { flex: 1; min-width: 0; }
.m-hero-name { font-size: 19px; font-weight: 700; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-hero-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.m-avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--brand); color: #FBEFD8; border: 1px solid var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; font-family: var(--font-serif);
}
.m-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.m-hero-meta span {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  background: var(--surface-2); color: var(--brand-deep);
}
.m-hero-sp { margin-top: 10px; font-size: 12px; color: var(--muted); }
.m-call { color: var(--brand); text-decoration: underline; margin-left: 4px; }
.m-ann-bar {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 9px 10px; border-radius: 9px;
  background: var(--page); border: 1px solid var(--hairline); cursor: pointer; min-height: 44px;
}
.m-ann-ic { flex: none; font-size: 14px; }
.m-ann-txt {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-ann-arrow { flex: none; font-size: 16px; color: var(--muted); }
.m-lockbar {
  display: flex; align-items: center; gap: 8px;
  background: #fbe5e5; color: #a32626; font-size: 13px; font-weight: 600;
  border-radius: 10px; padding: 11px 12px; margin-bottom: 10px;
}
.m-grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.m-cell {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; min-height: 78px; padding: 12px 4px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; box-shadow: 0 1px 2px rgba(11, 11, 11, .03);
}
.m-cell:active { background: var(--surface-2); }
.m-cell-ic { font-size: 19px; line-height: 1.1; }
.m-cell-num { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.m-cell-num.money { font-size: 12.5px; color: var(--brand); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.m-cell-label { font-size: 11.5px; color: var(--muted); }
.m-badge {
  position: absolute; top: 6px; right: 7px;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--crit); color: #fff; font-size: 11px; font-style: normal;
  line-height: 17px; text-align: center; font-weight: 600;
}
.m-credit { padding: 14px; }
.m-credit-num { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.m-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #C49A4F, #A32F1B); }
.m-progress.warn i { background: linear-gradient(90deg, #d03b3b, #ec835a); }
.m-credit-sub { font-size: 12px; color: var(--ink-2); }
.m-credit-sub b { color: var(--ink); font-size: 13px; }
.m-credit-debt {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--hairline);
  font-size: 13px;
}
.m-credit-debt b { font-variant-numeric: tabular-nums; }
.m-quick {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 4px; margin-bottom: 10px;
}
.m-quick-i {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; border-radius: 10px; cursor: pointer; text-decoration: none;
  color: var(--ink); font-size: 11.5px;
}
.m-quick-i:active { background: var(--surface-2); }
.m-quick-i span { font-size: 21px; line-height: 1.1; }
.m-quick-i em { font-style: normal; white-space: nowrap; }
.m-sp { margin: -2px 4px 12px; }

/* 公告列表 */
.m-ann { padding: 9px 0; border-bottom: 1px dashed var(--hairline); }
.m-ann:last-child { border-bottom: none; }
.m-ann-h { display: flex; align-items: center; gap: 8px; }
.m-ann-h b { font-size: 13.5px; flex: 1; min-width: 0; }
.m-ann-c { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.m-ann-t { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.m-ann-more { display: none; }
.m-ann-more.on { display: block; }

/* ---------- 商品 ---------- */
.m-prod-page { padding-bottom: 62px; }
.m-prod { display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; position: relative; }
.m-prod-main { flex: 1; min-width: 0; }
.m-prod-name {
  font-size: 14.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-prod-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.m-prod-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 5px; }
.m-thumb {
  position: relative; width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 10px; background: var(--surface-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.m-thumb-ph { font-size: 26px; opacity: .5; }
.m-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-price {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-size: 18px; font-weight: 700; color: #c2410c;
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
.m-price i { font-style: normal; font-size: 12px; font-weight: 600; margin-right: 1px; }
.m-price-old {
  font-size: 11.5px; color: var(--muted); text-decoration: line-through;
  font-weight: 400; margin-left: 6px;
}
.m-unit { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.m-stock { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.m-stock.low { color: var(--crit); font-weight: 600; }
.m-add {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: none; background: var(--brand); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.m-add:active { background: var(--brand-deep); }

/* 加购弹层 */
.m-add-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.m-add-info { flex: 1; min-width: 0; }
.m-add-qty { margin-top: 14px; }
.m-subtotal {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hairline);
  font-size: 13px; color: var(--ink-2);
}
.m-subtotal .m-price { font-size: 20px; }
.m-tier {
  border: 1px dashed var(--border); border-radius: 10px;
  padding: 8px 10px; margin: 10px 0 2px; font-size: 12px;
}
.m-tier-t { font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.m-tier-row { display: flex; justify-content: space-between; padding: 2px 0; color: var(--ink-2); }
.m-switch {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 13.5px; cursor: pointer;
}
.m-switch input { width: 20px; height: 20px; accent-color: var(--brand); }
.m-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: #fff;
}
.m-qty button {
  width: 44px; height: 44px; border: none; background: var(--surface-2);
  font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
}
.m-qty button:active { background: #e6e6e0; }
.m-qty input {
  width: 56px; height: 44px; border: none; text-align: center;
  font-size: 16px; font-weight: 600; font-family: inherit; outline: none;
  -moz-appearance: textfield;
}
.m-qty input::-webkit-outer-spin-button,
.m-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.m-qty span { min-width: 48px; text-align: center; font-size: 15px; font-weight: 600; }

/* 购物车条 / 悬浮按钮 */
.m-cart {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto; height: 58px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(11, 11, 11, .06); z-index: 46;
}
.m-fab {
  position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--surface-2); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
}
.m-fab .m-badge { top: -3px; right: -4px; }
.m-fab-ic { font-size: 20px; line-height: 1; }
.m-cart-sum { flex: 1; min-width: 0; line-height: 1.25; }
.m-cart-sum b { display: block; font-size: 18px; color: #c2410c; font-variant-numeric: tabular-nums; }
.m-cart-sum span { font-size: 11.5px; color: var(--muted); }
.m-cart .m-btn { min-width: 104px; }

/* ---------- 结算 ---------- */
.m-co-page { padding-bottom: 66px; }
.m-steps { display: flex; align-items: center; margin: 2px 0 12px; }
.m-steps-i {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--muted); position: relative;
}
.m-steps-i b {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2);
  color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.m-steps-i.on { color: var(--brand); font-weight: 600; }
.m-steps-i.on b { background: var(--brand); color: #fff; }
.m-steps-i:not(:last-child):after {
  content: ''; position: absolute; top: 12px; left: 62%; right: -38%;
  height: 2px; background: var(--hairline);
}
.m-steps-i.on:not(:last-child):after { background: rgba(42, 120, 214, .35); }
.m-addr { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.m-addr-main { flex: 1; min-width: 0; }
.m-addr-h { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m-addr-line { font-size: 13.5px; color: var(--ink); line-height: 1.7; }
.m-addr-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--hairline); }
.m-addr-item:last-child { border-bottom: none; }
.m-addr-acts { display: flex; flex-direction: column; gap: 4px; flex: none; }
.m-addr-acts button {
  min-width: 64px; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  color: var(--ink-2); font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.m-addr-acts button.danger { color: var(--crit); border-color: rgba(208, 59, 59, .3); }
.m-addr-pick { padding: 12px 0; border-bottom: 1px dashed var(--hairline); cursor: pointer; }
.m-addr-pick:last-of-type { border-bottom: none; }
.m-addr-pick.on { background: #f2f7fe; margin: 0 -10px; padding: 12px 10px; border-radius: 8px; }
.m-file { display: none; }
.m-upload {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; border: 1px dashed var(--brand); border-radius: 10px;
  color: var(--brand); font-size: 14px; cursor: pointer; background: #fff;
}
.m-voucher {
  max-width: 150px; max-height: 150px; border-radius: 8px;
  border: 1px solid var(--border); margin-top: 8px; cursor: zoom-in;
}
.m-bar {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto; height: 58px;
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(11, 11, 11, .06); z-index: 47;
}
.m-bar-sum { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.2; }
.m-bar-sum b { display: block; font-size: 18px; color: #c2410c; font-variant-numeric: tabular-nums; }
.m-bar .m-btn { min-width: 116px; }

/* ---------- 订单 ---------- */
.m-order { cursor: pointer; }
.m-order-no { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.m-order-prod {
  font-size: 13.5px; color: var(--ink); margin: 7px 0 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-order-foot { font-size: 11.5px; }
.m-order-amt { font-size: 15px; color: #c2410c; font-variant-numeric: tabular-nums; }
.m-acts {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline);
}
.m-acts .m-btn { min-height: 44px; font-size: 13px; padding: 0 14px; }
.m-acts-line { border-top: none; justify-content: center; margin-top: 4px; }
.m-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--hairline);
}
.m-item:last-child { border-bottom: none; }
.m-item-main { flex: 1; min-width: 0; }
.m-item-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.m-item-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.m-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.m-item-amt { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-del {
  flex: none; width: 44px; height: 44px; border: none; background: transparent;
  color: var(--muted); font-size: 16px; cursor: pointer;
}
.m-total { border-top: 1px solid var(--hairline); margin-top: 8px; padding-top: 8px; }
.m-kv {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 5px 0; font-size: 13px; color: var(--ink-2);
}
.m-kv b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.m-kv-strong { font-size: 14px; }
.m-kv-strong b { font-size: 17px; color: #c2410c; }
.m-kv-item { align-items: flex-start; border-bottom: 1px dashed var(--hairline); padding: 8px 0; }
.m-kv-item:last-child { border-bottom: none; }
.m-kv-item > span { flex: 1; min-width: 0; }
.m-kv-item em { display: block; font-style: normal; font-size: 11.5px; margin-top: 2px; }
.m-sub-h { font-size: 13px; font-weight: 600; margin: 12px 0 4px; color: var(--ink); }
.m-backbar { display: flex; align-items: center; gap: 10px; margin: -2px 0 10px; }
.m-back {
  min-height: 44px; padding: 0 12px 0 4px; border: none; background: transparent;
  color: var(--brand); font-size: 15px; font-family: inherit; cursor: pointer;
}
.m-backbar > span { font-size: 15px; font-weight: 600; }
.m-ship { padding: 8px 0; border-bottom: 1px dashed var(--hairline); }
.m-ship:last-child { border-bottom: none; }

/* 状态时间轴 */
.m-timeline { padding: 2px 0 0 2px; }
.m-step { position: relative; padding: 0 0 14px 24px; }
.m-step:last-child { padding-bottom: 0; }
.m-step:before {
  content: ''; position: absolute; left: 6px; top: 15px; bottom: 0;
  width: 2px; background: var(--hairline);
}
.m-step:last-child:before { display: none; }
.m-step:after {
  content: ''; position: absolute; left: 1px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); box-sizing: border-box;
}
.m-step.on:after { background: var(--brand); }
.m-step-x { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.m-step-x .muted { font-weight: 400; font-size: 12.5px; }
.m-step-t { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.m-step.on .m-step-x { color: var(--brand); }

/* ---------- 对账 / 返利 ---------- */
.m-stmt { cursor: pointer; }
.m-rebate { text-align: center; padding: 18px 14px; }
.m-rebate-t { font-size: 13px; color: var(--muted); }
.m-rebate-big {
  font-size: 32px; font-weight: 700; color: #c2410c; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums; margin: 4px 0 8px;
}
.m-rebate-sub { font-size: 12px; color: var(--ink-2); justify-content: center; gap: 24px; }

/* ---------- 我的 ---------- */
.m-addr-acts button:active { background: var(--surface-2); }
.m-links { padding: 0 12px; }
.m-link-row {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  border-bottom: 1px solid var(--hairline); cursor: pointer; font-size: 14px;
}
.m-link-row:last-child { border-bottom: none; }
.m-link-ic { width: 22px; text-align: center; font-size: 15px; }
.m-link-row .arr { margin-left: auto; color: var(--muted); font-size: 19px; }
.m-pill {
  min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px;
  background: var(--crit); color: #fff; font-size: 11px; font-style: normal;
  line-height: 18px; text-align: center; font-weight: 600;
}
.m-foot-note { text-align: center; color: var(--muted); font-size: 11.5px; padding: 18px 0 4px; }

/* ---------- 弹窗内表单 ---------- */
.m-form .m-field { margin-bottom: 12px; }
.m-field label {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px;
}
.m-field input,
.m-field select,
.m-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; outline: none;
  color: var(--ink);
}
.m-field input:focus,
.m-field select:focus,
.m-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(163, 47, 27, .14); }
.m-field .m-qty { width: auto; }

/* 消息中心 */
.m-msg-list { margin: 0 -4px; }
.m-msg { padding: 12px 8px; border-bottom: 1px solid var(--hairline); cursor: pointer; border-radius: 8px; }
.m-msg:last-child { border-bottom: none; }
.m-msg.unread { background: #f4f8ff; }
.m-msg-h { display: flex; align-items: center; gap: 8px; }
.m-msg-h b { font-size: 13.5px; flex: 1; min-width: 0; }
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crit); flex: none; }
.m-msg-c { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.m-msg-t { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* 图片 */
.m-img-wrap { text-align: center; }
.m-img-full { max-width: 100%; max-height: 66vh; border-radius: 8px; }
.m-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.m-photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
.m-photo { position: relative; display: inline-flex; }
.m-photo-del {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(11, 11, 11, .7); color: #fff;
  font-size: 12px; font-style: normal; line-height: 24px; text-align: center;
  cursor: pointer;
}
.m-photo-del:after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }

/* ---------- 桌面（>768px）细微调整 ---------- */
@media (min-width: 769px) {
  .is-mall .content { padding: 18px 18px 96px; }
  .is-mall .tabbar { max-width: 640px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .is-mall .topbar { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .m-cart, .m-bar { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ---------- 品牌横幅（手机订货首页） ---------- */
.m-brand-banner {
  position: relative;
  margin: 10px 0 12px;
  min-height: 104px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 8% 0%, #B8452A 0%, rgba(184,69,42,0) 60%),
    linear-gradient(135deg, #8A2311 0%, #A32F1B 52%, #6E1C0D 100%);
  box-shadow: 0 6px 18px rgba(122,39,20,.18);
  color: #F7E7CE;
}
.m-brand-banner .mbb-inner { position: relative; z-index: 1; padding: 16px 18px; }
.m-brand-banner .mbb-kicker { font-size: 10.5px; letter-spacing: 1px; opacity: .85; }
.m-brand-banner .mbb-title {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 21px; font-weight: 700; letter-spacing: 2px; margin: 6px 0 4px;
}
.m-brand-banner .mbb-sub { font-size: 11.5px; letter-spacing: 1px; color: #E7CBA6; }
.m-brand-banner .mbb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.m-brand-banner.has-img .mbb-inner { display: none; }

/* ===== v6 黑白金 + 更大留白（经销商端） ===== */
body.is-mall {
  --ink: #241611;
  --ink-2: #5B463A;
  --muted: #8C7A6B;
  --gold: #C49A4F;
  --gold-deep: #8A2311;
  --line: #EADCCB;
  --paper: #FAF5EC;
  --surface: #FFFFFF;
  --surface-2: #F4F1E8;
  --page: #FAF5EC;
  --brand: #A32F1B;
  --brand-deep: #8A2311;
  background: var(--page);
}
body.is-mall .m-ic { width: 20px; height: 20px; display: block; }
body.is-mall .m-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 10px; }
body.is-mall .m-sec-h b { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
body.is-mall .m-sec-h span { font-size: 12px; color: var(--muted); }

/* 身份卡 */
body.is-mall .m-idcard {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(22, 19, 15, .04);
}
body.is-mall .m-idcard.big { padding: 22px 18px 18px; }
body.is-mall .m-id-main { flex: 1; min-width: 0; }
body.is-mall .m-id-kicker {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
}
body.is-mall .m-id-name {
  font-family: var(--font-serif); font-size: 19px; font-weight: 600; line-height: 1.4;
  color: var(--ink); margin: 7px 0 10px; letter-spacing: .01em;
}
body.is-mall .m-id-meta { display: flex; flex-wrap: wrap; gap: 6px; }
body.is-mall .m-id-sp { margin-top: 10px; font-size: 12px; color: var(--muted); }
body.is-mall .m-id-sp a { color: var(--ink); }
body.is-mall .m-id-seal {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(150deg, #211E18 0%, #3A342A 100%);
  color: #EFDDBA; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 20px;
}
body.is-mall .m-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
body.is-mall .m-tag.gold { background: #F6EFDF; color: var(--gold-deep); border-color: #E4D6B6; }
body.is-mall .m-tag.danger { background: #FBEDE8; color: #9C3B2E; border-color: #F0D6CC; }

/* 待办主格 */
body.is-mall .mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.is-mall .mk-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(22, 19, 15, .03);
  transition: transform .16s ease, box-shadow .16s ease;
}
body.is-mall .mk-tile:active { transform: scale(.985); }
body.is-mall .mk-tile.has { border-color: #E0CDA8; box-shadow: 0 2px 10px rgba(176, 141, 87, .12); }
body.is-mall .mk-ic { color: var(--gold-deep); }
body.is-mall .mk-tile.has .mk-ic { color: var(--gold); }
body.is-mall .mk-num { font-size: 26px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
body.is-mall .mk-label { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* 次格 */
body.is-mall .mk-mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 14px; }
body.is-mall .mk-mini {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
body.is-mall .mk-mini-ic { color: var(--muted); }
body.is-mall .mk-mini-num { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.is-mall .mk-mini-label { font-size: 10.5px; color: var(--muted); }

/* 授信卡 */
body.is-mall .m-credit { padding: 16px 18px; border-radius: 16px; }
body.is-mall .m-credit-top { display: flex; align-items: baseline; justify-content: space-between; }
body.is-mall .m-credit-num { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.is-mall .m-credit-foot { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
body.is-mall .m-credit-foot b { color: var(--ink); font-weight: 600; }
body.is-mall .gold-text { color: var(--gold-deep) !important; }
body.is-mall .m-progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
body.is-mall .m-progress i { display: block; height: 100%; background: linear-gradient(90deg, #D9C39A, #B08D57); }
body.is-mall .m-progress.warn i { background: linear-gradient(90deg, #D9A38E, #9C3B2E); }

/* 快捷操作 */
body.is-mall .m-acts { display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 4px; border-radius: 16px; }
body.is-mall .m-act {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 2px; text-decoration: none; color: var(--ink);
}
body.is-mall .m-act-ic {
  width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
body.is-mall .m-act em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* 卡片与区块留白 */
body.is-mall .m-card { border-radius: 16px; border: 1px solid var(--line); background: #fff; }
body.is-mall .m-card-h { padding: 14px 16px; border-bottom: 1px solid var(--line); }
body.is-mall .m-card-h b { font-size: 14px; font-weight: 600; }
body.is-mall .m-ann-item { padding: 14px 16px; }
body.is-mall .m-link-row { padding: 15px 16px; }
body.is-mall .m-link-ic { color: var(--gold-deep); display: flex; }
body.is-mall .m-link-row .arr { display: flex; color: var(--muted); }
body.is-mall .m-btn.primary { background: #1C1A16; border-color: #1C1A16; }
body.is-mall .m-btn.primary:active { background: #111009; }
body.is-mall .m-search:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .16); }
body.is-mall .m-chip.on, body.is-mall .m-tab.on { background: #1C1A16; border-color: #1C1A16; }
body.is-mall .m-link { color: var(--gold-deep); }
body.is-mall .m-ann-bar { background: var(--surface-2); border: 1px solid var(--line); }
body.is-mall .m-ann-ic { color: var(--gold-deep); display: flex; }
body.is-mall .m-ann-arrow { display: flex; color: var(--muted); }

/* v6 收口：底栏/横幅/空态 */
body.is-mall .tabbar .tb-item.active { color: #1C1A16 !important; }
body.is-mall .tabbar .tb-item.active .tb-ic { color: #B08D57; }
body.is-mall .tabbar .tb-item { color: #8B8375; }
body.is-mall .m-brand-banner {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(196,154,79,.30), transparent 62%),
    linear-gradient(135deg, #6E1C0D 0%, #A32F1B 55%, #8A2311 100%);
  border: 1px solid #2E2A22;
}
body.is-mall .m-brand-banner .mbb-title { color: #F6EDDC; }
body.is-mall .m-brand-banner .mbb-sub { color: rgba(246,237,220,.72); }
body.is-mall .m-brand-banner .mbb-kicker { color: #C8A96F; }
body.is-mall .m-empty { padding: 30px 16px; color: var(--muted); }
