/* ===============================
    中越外贸商城 - 京东式排版样式
    主色：京东红 #E1251B
    =============================== */

.mall-root { --m-red: #E1251B; --m-red-dark: #C81B13; --m-orange: #F57C00; --m-price: #E1251B; --m-line: #E8E8E8; }

/* === 商城顶栏（独立于主站 header 的商城搜索条） === */
.mall-topbar {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.mall-topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.mall-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--m-red);
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
}
.mall-logo .m-logo-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--m-red), var(--m-orange));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.mall-search {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  border: 2px solid var(--m-red);
  border-radius: 4px;
  overflow: hidden;
}
.mall-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-size: .92rem;
  font-family: var(--font);
}
.mall-search button {
  background: var(--m-red);
  color: #fff;
  border: none;
  padding: 9px 22px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.mall-search button:hover { background: var(--m-red-dark); }
.mall-topbar-nav { display: flex; gap: 18px; align-items: center; font-size: .88rem; white-space: nowrap; }
.mall-topbar-nav a { color: var(--c-text-secondary); }
.mall-topbar-nav a:hover { color: var(--m-red); }

/* === 分类横向导航条 === */
.mall-catnav {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: calc(var(--header-h) + 58px);
  z-index: 899;
}
.mall-catnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mall-catnav-inner::-webkit-scrollbar { height: 3px; }
.mall-catnav-inner::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.mall-cat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--c-text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s;
}
.mall-cat-item:hover { color: var(--m-red); }
.mall-cat-item.active { color: var(--m-red); border-bottom-color: var(--m-red); font-weight: 600; }
.mall-cat-item .c-icon { font-size: 1.05rem; }

/* === 首页：轮播 + 侧栏 === */
.mall-hero {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
}
.mall-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  background: linear-gradient(135deg, #0D47A1, #E1251B);
  box-shadow: var(--shadow-sm);
}
.mall-banner-slides { position: absolute; inset: 0; }
.mall-banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity .6s ease;
  padding: 24px;
}
.mall-banner-slide.active { opacity: 1; }
.mall-banner-slide h2 { font-size: 1.9rem; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.mall-banner-slide p { font-size: .95rem; opacity: .92; max-width: 520px; }
.mall-banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.mall-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer;
  transition: all .2s;
}
.mall-banner-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.mall-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.25);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.mall-banner-arrow:hover { background: rgba(0,0,0,.5); }
.mall-banner-prev { left: 12px; }
.mall-banner-next { right: 12px; }

.mall-hero-side { display: flex; flex-direction: column; gap: 12px; }
.mall-user-card, .mall-side-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.mall-user-card .m-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--m-red), var(--m-orange));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 600;
}
.mall-user-card .m-user-name { font-weight: 600; font-size: .95rem; margin-top: 8px; }
.mall-side-card h4 { font-size: .9rem; margin-bottom: 10px; color: var(--c-text); }
.mall-side-card ul li { font-size: .85rem; padding: 5px 0; color: var(--c-text-secondary); }
.mall-side-card ul li a { color: var(--c-text-secondary); }
.mall-side-card ul li a:hover { color: var(--m-red); }

/* === 区块标题 === */
.mall-section { max-width: var(--max-w); margin: 32px auto 0; padding: 0 20px; }
.mall-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mall-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mall-section-title .m-title-bar {
  width: 4px; height: 20px;
  background: var(--m-red);
  border-radius: 2px;
}

/* === 商品网格（京东式） === */
.m-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.m-product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.m-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border: 1px solid rgba(225,37,27,.35);
}
.m-product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}
.m-product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}
.m-product-img .m-img-emoji { position: relative; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.m-product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.m-product-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.m-product-sub {
  font-size: .76rem;
  color: var(--c-text-light);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-product-tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.m-product-tag {
  font-size: .68rem;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(225,37,27,.08);
  color: var(--m-red);
  border: 1px solid rgba(225,37,27,.2);
}
.m-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}
.m-product-price {
  color: var(--m-red);
  font-size: 1.15rem;
  font-weight: 700;
}
.m-product-price small { font-size: .7rem; font-weight: 400; }
.m-product-original {
  font-size: .78rem;
  color: var(--c-text-light);
  text-decoration: line-through;
}
.m-product-store {
  font-size: .74rem;
  color: var(--c-text-light);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-product-meta {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--c-text-light);
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-border);
}

/* === 闪购区 === */
.mall-flash {
  background: linear-gradient(135deg, #FFF4F2, #FFE8E5);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.mall-flash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mall-flash-title { font-size: 1.1rem; font-weight: 700; color: var(--m-red); display: flex; align-items: center; gap: 8px; }
.mall-flash-countdown { font-size: .82rem; color: var(--c-text-secondary); }
.mall-flash-countdown b { color: var(--m-red); background: #fff; padding: 1px 7px; border-radius: 4px; margin: 0 2px; font-family: Consolas, monospace; }

/* === 列表页布局 === */
.mall-list-layout {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
.mall-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  position: sticky;
  top: calc(var(--header-h) + 120px);
}
.mall-sidebar-title { font-size: .9rem; font-weight: 700; padding: 8px 10px 10px; }
.mall-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--c-text-secondary);
  transition: all .15s;
}
.mall-sidebar a:hover { background: var(--c-bg-alt); color: var(--m-red); }
.mall-sidebar a.active { background: var(--m-red); color: #fff; font-weight: 600; }

.mall-list-main { min-width: 0; }
.mall-sortbar {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mall-sort-btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: .85rem;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  color: var(--c-text-secondary);
  font-family: var(--font);
}
.mall-sort-btn:hover { color: var(--m-red); }
.mall-sort-btn.active { color: #fff; background: var(--m-red); border-color: var(--m-red); }
.mall-sort-count { margin-left: auto; font-size: .82rem; color: var(--c-text-light); }

.mall-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* === 详情页 === */
.mall-detail-layout {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 32px;
  align-items: start;
}
.mall-gallery {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 120px);
}
.mall-gallery-main {
  height: 420px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  background: linear-gradient(160deg, #F7F8FA, #EEF0F5);
  overflow: hidden;
  position: relative;
}
.mall-gallery-main .m-img-emoji { filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
.mall-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.mall-gallery-thumb {
  width: 64px; height: 64px;
  border-radius: 8px;
  border: 2px solid var(--c-border);
  background: var(--c-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: border-color .2s;
}
.mall-gallery-thumb.active { border-color: var(--m-red); }

.mall-detail-info { min-width: 0; }
.mall-detail-title { font-size: 1.45rem; font-weight: 700; color: var(--c-text); line-height: 1.4; }
.mall-detail-sub { font-size: .88rem; color: var(--m-red); margin-top: 8px; }
.mall-detail-pricebox {
  background: linear-gradient(135deg, #FFF4F2, #FFF9F8);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 18px 0;
}
.mall-detail-price { font-size: 2rem; font-weight: 700; color: var(--m-red); }
.mall-detail-price small { font-size: .9rem; font-weight: 400; }
.mall-detail-original { font-size: .9rem; color: var(--c-text-light); text-decoration: line-through; margin-left: 12px; }
.mall-detail-meta-row { display: flex; gap: 32px; margin-top: 10px; flex-wrap: wrap; }
.mall-detail-meta-row span { font-size: .8rem; color: var(--c-text-light); }
.mall-detail-meta-row b { color: var(--c-text); font-weight: 600; }
.mall-detail-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.mall-detail-spec {
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .82rem;
  color: var(--c-text-secondary);
  cursor: pointer;
}
.mall-detail-spec.active { border-color: var(--m-red); color: var(--m-red); background: rgba(225,37,27,.05); }
.mall-detail-qty { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.mall-detail-qty .m-qty-label { font-size: .88rem; color: var(--c-text); }
.mall-qty-control { display: flex; align-items: center; border: 1px solid var(--c-border); border-radius: 6px; overflow: hidden; }
.mall-qty-control button {
  width: 34px; height: 34px;
  border: none; background: var(--c-bg-alt);
  cursor: pointer; font-size: 1rem; color: var(--c-text);
}
.mall-qty-control input {
  width: 52px; height: 34px;
  border: none; text-align: center; outline: none;
  font-size: .9rem; font-family: var(--font);
}
.mall-detail-actions { display: flex; gap: 14px; margin-top: 24px; }
.mall-detail-actions .btn { flex: 1; justify-content: center; }
.m-btn-cart { background: var(--m-orange); color: #fff; }
.m-btn-cart:hover { background: #E66A00; color: #fff; }
.m-btn-buy { background: var(--m-red); color: #fff; }
.m-btn-buy:hover { background: var(--m-red-dark); color: #fff; }

.mall-detail-store {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mall-store-logo {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--m-red), var(--m-orange));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.mall-store-info { flex: 1; min-width: 0; }
.mall-store-name { font-size: 1rem; font-weight: 700; }
.mall-store-intro { font-size: .82rem; color: var(--c-text-light); margin-top: 4px; }
.mall-store-rating { font-size: .82rem; color: var(--m-orange); }
.mall-store-contact { display: flex; gap: 10px; }

.mall-detail-desc {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 20px;
}
.mall-desc-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.mall-desc-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.mall-desc-body { font-size: .92rem; line-height: 1.8; color: var(--c-text-secondary); }
.mall-desc-attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.mall-desc-attr { background: var(--c-bg-alt); border-radius: 8px; padding: 10px 14px; }
.mall-desc-attr-label { font-size: .74rem; color: var(--c-text-light); }
.mall-desc-attr-value { font-size: .88rem; color: var(--c-text); font-weight: 500; margin-top: 2px; }

/* === 购物车页 === */
.mall-cart-layout { max-width: var(--max-w); margin: 20px auto 0; padding: 0 20px; }
.mall-cart-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.mall-cart-head {
  display: grid;
  grid-template-columns: 2fr 90px 120px 100px 120px;
  padding: 12px 18px;
  background: var(--c-bg-alt);
  font-size: .82rem;
  color: var(--c-text-light);
  font-weight: 600;
}
.mall-cart-item {
  display: grid;
  grid-template-columns: 2fr 90px 120px 100px 120px;
  padding: 16px 18px;
  align-items: center;
  border-top: 1px solid var(--c-border);
}
.mall-cart-prod { display: flex; align-items: center; gap: 12px; }
.mall-cart-img {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--c-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.mall-cart-prod-name { font-size: .88rem; color: var(--c-text); font-weight: 500; }
.mall-cart-prod-store { font-size: .74rem; color: var(--c-text-light); margin-top: 3px; }
.mall-cart-price { color: var(--m-red); font-weight: 600; }
.mall-cart-subtotal { color: var(--m-red); font-weight: 700; }
.mall-cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  position: sticky;
  bottom: 0;
}
.mall-cart-total { font-size: .9rem; color: var(--c-text); }
.mall-cart-total b { color: var(--m-red); font-size: 1.3rem; }

/* === 结算页 === */
.mall-checkout-layout { max-width: 1000px; margin: 20px auto 0; padding: 0 20px; }
.mall-checkout-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 24px; margin-bottom: 16px; }
.mall-checkout-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.mall-checkout-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; align-items: center; }
.mall-checkout-row .ck-label { font-size: .86rem; color: var(--c-text); font-weight: 500; }
.mall-checkout-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mall-pay-option {
  border: 2px solid var(--c-border);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s;
}
.mall-pay-option.active { border-color: var(--m-red); background: rgba(225,37,27,.04); }
.mall-pay-icon { font-size: 1.4rem; }
.mall-pay-name { font-size: .88rem; font-weight: 500; }
.mall-pay-desc { font-size: .74rem; color: var(--c-text-light); }
.mall-checkout-summary { display: flex; justify-content: flex-end; gap: 32px; align-items: baseline; }
.mall-checkout-summary span { font-size: .88rem; color: var(--c-text); }
.mall-checkout-summary b { color: var(--m-red); font-size: 1.5rem; }

/* === 订单列表 === */
.mall-order-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 16px; }
.mall-order-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--c-bg-alt); }
.mall-order-no { font-size: .88rem; font-weight: 600; }
.mall-order-status { font-size: .78rem; padding: 2px 10px; border-radius: 10px; font-weight: 600; }
.m-order-status-pending { background: rgba(245,124,0,.12); color: #E65100; }
.m-order-status-paid { background: rgba(21,101,192,.1); color: #1565C0; }
.m-order-status-shipped { background: rgba(212,160,23,.14); color: #B8870E; }
.m-order-status-completed { background: rgba(46,125,50,.1); color: #2E7D32; }
.m-order-status-cancelled { background: var(--c-bg-alt); color: var(--c-text-light); }
.mall-order-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--c-border); }
.mall-order-img { width: 60px; height: 60px; border-radius: 8px; background: var(--c-bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.mall-order-body { flex: 1; min-width: 0; }
.mall-order-name { font-size: .88rem; color: var(--c-text); }
.mall-order-store { font-size: .74rem; color: var(--c-text-light); }
.mall-order-total { text-align: right; }
.mall-order-total b { color: var(--m-red); font-size: 1.05rem; }
.mall-order-total small { display: block; font-size: .74rem; color: var(--c-text-light); }

/* === 开店申请页 === */
.mall-apply-layout { max-width: 760px; margin: 20px auto 0; padding: 0 20px; }
.mall-apply-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px 32px; }
.mall-apply-step { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: .9rem; }
.mall-apply-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--m-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}

/* === 空状态 === */
.mall-empty {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 60px 20px; text-align: center; color: var(--c-text-light);
}
.mall-empty-icon { font-size: 3.5rem; margin-bottom: 12px; }

/* === 提示条 === */
.mall-notice {
  background: linear-gradient(135deg, #FFF6F5, #FFEDEA);
  border: 1px solid rgba(225,37,27,.2);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  font-size: .85rem;
  color: var(--m-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === 响应式 === */
@media (max-width: 1200px) {
  .m-product-grid { grid-template-columns: repeat(4, 1fr); }
  .mall-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mall-hero { grid-template-columns: 1fr; }
  .mall-hero-side { flex-direction: row; flex-wrap: wrap; }
  .mall-hero-side .mall-user-card, .mall-hero-side .mall-side-card { flex: 1; min-width: 220px; }
  .mall-list-layout { grid-template-columns: 1fr; }
  .mall-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .mall-sidebar-title { width: 100%; }
  .mall-sidebar a { padding: 6px 10px; }
  .mall-detail-layout { grid-template-columns: 1fr; }
  .mall-gallery { position: static; }
  .mall-gallery-main { height: 320px; font-size: 5rem; }
  .mall-cart-head, .mall-cart-item { grid-template-columns: 1fr auto; }
  .mall-cart-head > *:not(:first-child) { display: none; }
  .mall-cart-item { display: flex; flex-wrap: wrap; gap: 10px; }
  .mall-cart-prod { flex: 1; }
}
@media (max-width: 768px) {
  .mall-topbar-inner { flex-wrap: wrap; gap: 12px; }
  .mall-topbar-nav { width: 100%; justify-content: space-between; }
  .mall-topbar-search { order: 3; width: 100%; }
  .m-product-grid { grid-template-columns: repeat(2, 1fr); }
  .mall-list-grid { grid-template-columns: 1fr; }
  .mall-banner { height: 220px; }
  .mall-banner-slide h2 { font-size: 1.3rem; }
  .mall-banner-slide p { font-size: .82rem; }
  .mall-detail-title { font-size: 1.15rem; }
  .mall-detail-price { font-size: 1.5rem; }
  .mall-desc-attrs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .m-product-grid { grid-template-columns: repeat(2, 1fr); }
  .mall-topbar-nav a { font-size: .8rem; }
}

/* === 商品图片 / 支付页补充样式 === */
.m-product-img img,
.mall-gallery-main img,
.mall-gallery-thumb img,
.mall-cart-img img,
.mall-order-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mall-gallery-thumb img { border-radius: 6px; }
.mall-pay-panel { max-width: 860px; margin: 24px auto; }
.mall-pay-qr {
  width: 220px; height: 220px; object-fit: contain;
  background: #fff; border: 1px solid var(--c-border); border-radius: 8px;
  display: block; margin: 12px auto;
}
.mall-pay-account {
  background: var(--c-bg-alt); border-radius: 8px; padding: 16px;
  white-space: pre-wrap; font-size: .92rem; line-height: 1.8; word-break: break-all;
}
.mall-pay-steps { font-size: .9rem; color: var(--c-text-secondary); line-height: 1.9; }
.mall-list-filter-note { font-size: .82rem; color: var(--c-text-light); margin: 10px 0 0; }
.m-cart-badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 5px; border-radius: 9px; background: #E1251B; color: #fff;
  font-size: .72rem; text-align: center; margin-left: 2px;
}
