:root {
  --mall-price: #B45309;
  --mall-blue: #3B82F6;
  --mall-bg: #f4f5f7;
  --mall-card: #ffffff;
  --mall-text: #1a1a1a;
  --mall-text-sub: #666666;
  --mall-text-tip: #999999;
  --mall-border: #eeeeee;
  --mall-radius-sm: 8px;
  --mall-radius: 12px;
  --mall-radius-lg: 16px;
  --mall-shadow: 0 2px 10px rgba(0,0,0,0.05);
  --mall-shadow-lg: 0 6px 24px rgba(0,0,0,0.08);
  /* 商城全站橙色主题：覆盖 driving.css 的蓝色变量（仅商城页面引入本文件） */
  --primary: #B45309;
  --primary-light: #D97706;
  --primary-lighter: #F59E0B;
  --primary-deep: #B45309;
  --grad-btn: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  --grad-icon: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  --grad-icon-soft: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --grad-badge: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  --grad-hero: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

.mall-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 6px;
  background: transparent;
}

.mall-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.94);
  border-radius: 20px;
  padding: 0 12px;
  height: 38px;
  box-shadow: 0 4px 14px rgba(17,24,39,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.35);
}

.mall-search-input-wrap svg,
.mall-search-input-wrap i {
  width: 18px;
  height: 18px;
  color: var(--mall-text-tip);
  margin-right: 8px;
  flex-shrink: 0;
}

.mall-search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--mall-text);
  outline: none;
}

.mall-search-input-wrap input::placeholder { color: var(--placeholder, #6B7280); }

.mall-search-btn {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 19px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(180,83,9,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

.mall-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mall-text);
}
.mall-section-title .mall-section-tt {
  display: inline-flex;
  align-items: center;
}
.mall-section-title .mall-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  color: #B45309;
}
.mall-section-title .mall-section-icon svg {
  width: 20px;
  height: 20px;
}

.mall-section-title a {
  font-size: 13px;
  color: var(--mall-text-tip);
  font-weight: 400;
}

/* 横向分类标签栏（参考电商平台顶部分类导航） */
.mall-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 8px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mall-categories::-webkit-scrollbar { display: none; }

.mall-category {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 18px;
  background: #f2f3f5;
  color: var(--mall-text-sub);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
}

.mall-category.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 12px rgba(180,83,9,0.22);
}

.mall-category img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 24px;
}

.mall-card {
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17,24,39,0.07), 0 2px 8px rgba(17,24,39,0.04);
  border: 1px solid rgba(17,24,39,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}

.mall-card:active {
  transform: scale(0.98);
  box-shadow: var(--mall-shadow);
}

.mall-card-img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f7f8fa;
}

.mall-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-card-body { padding: 10px; }

.mall-card-title {
  font-size: 14px;
  color: var(--mall-text);
  line-height: 1.45;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

/* 商品卡片徽章行（标题与价格之间） */
.mall-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}
.mall-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2.5px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.2px;
}
.mall-card-badge svg { width: 10px; height: 10px; flex-shrink: 0; }
.mall-card-badge em { font-style: normal; }
.mall-card-badge.red    { background: #ef4444; }
.mall-card-badge.orange { background: #D97706; }
.mall-card-badge.blue   { background: #3B82F6; }
.mall-card-badge.purple { background: #8b5cf6; }
.mall-card-badge.pink   { background: #ec4899; }
.mall-card-badge.green  { background: #10b981; }

.mall-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }

.mall-card-tag {
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
}

.mall-card-tag.red { color: #fff; background: var(--grad-badge); }
.mall-card-tag.green { color: #fff; background: var(--grad-badge); }
.mall-card-tag.orange { color: #fff; background: linear-gradient(135deg,#F59E0B,#B45309); }

.mall-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mall-card-price {
  font-size: 18px;
  color: var(--mall-price);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.mall-card-price small { font-size: 12px; margin-right: 1px; }

.mall-card-origin {
  font-size: 11px;
  color: var(--mall-text-tip);
  text-decoration: line-through;
}

.mall-card-sales {
  margin-left: auto;
  font-size: 10px;
  color: #b5b5b5;
  font-weight: 400;
  white-space: nowrap;
}

.mall-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--mall-text-tip);
}

.mall-card-cart {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mall-card-cart svg { width: 14px; height: 14px; }

.mall-empty {
  grid-column: 1 / -1;
  column-span: all;
  break-inside: avoid;
  page-break-inside: avoid;
  text-align: center;
  padding: 60px 20px;
  color: var(--mall-text-tip);
}

.mall-empty-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 32px;
  border-radius: 20px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.mall-action-bar .fav-btn,
.mall-action-bar .bar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--mall-text-sub);
  position: relative;
  border-radius: 12px;
}
.mall-action-bar .fav-btn:active,
.mall-action-bar .bar-icon-btn:active {
  background: #f2f3f5;
}
.mall-action-bar .fav-btn svg,
.mall-action-bar .bar-icon-btn svg {
  width: 22px;
  height: 22px;
}
.mall-action-bar .fav-btn.active {
  color: #B45309;
}
.mall-action-bar .fav-btn.active svg {
  fill: #B45309;
}
.mall-action-bar .cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  box-sizing: border-box;
}
.mall-action-bar .bar-grow {
  flex: 1;
  min-width: 6px;
}
.mall-action-bar .btn-cart {
  height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  cursor: pointer;
  flex: 1;
  max-width: 150px;
  white-space: nowrap;
}
.mall-action-bar .btn-cart:active {
  background: rgba(24, 144, 255, 0.06);
}

.mall-empty-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f2f4f9, #e6eaf2);
  box-shadow: inset 0 2px 8px rgba(17,24,39,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9c0cc;
}

.mall-empty-icon svg { width: 36px; height: 36px; }

/* detail */
.mall-detail-page .dv-container {
  max-width: none;
  padding: 0;
}

.mall-detail-gallery {
  position: relative;
  padding: 0;
}

.mall-detail-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  background: #f7f8fa;
  overflow: hidden;
}

.mall-detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
  will-change: transform;
}

#detailSlideImg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

/* 悬浮返回按钮（覆盖在大图左上角） */
.mall-detail-back {
  position: absolute;
  top: calc(10px + var(--safe-top, 0px));
  left: 12px;
  z-index: 20;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 2px 8px rgba(17,24,39,0.14);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}

.mall-detail-back:active {
  background: rgba(255,255,255,0.65);
}

.mall-detail-back svg {
  width: 20px;
  height: 20px;
}

/* 商品图集（多图）：计数 / 左右箭头 / 缩略图 */
.mall-detail-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 12px;
}

.mall-detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mall-detail-nav.prev { left: 10px; }
.mall-detail-nav.next { right: 10px; }

.mall-detail-nav:active { background: rgba(0, 0, 0, .55); }

.mall-detail-price-block {
  background: var(--primary-bg);
  padding: 16px;
  border-bottom: 1px solid var(--mall-border);
}

.mall-detail-price {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 45%), linear-gradient(135deg, #f87171, #dc2626);
  margin: 0;
  padding: 24px 16px 12px;
}

/* 装饰：右上角半透明白色圆环 */
.mall-detail-price::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -46px;
  right: -30px;
  width: 128px;
  height: 128px;
  border: 18px solid rgba(255,255,255,0.10);
  border-radius: 50%;
}

/* 装饰：左下角波点纹理 */
.mall-detail-price::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 46px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 1.5px, transparent 1.6px);
  background-size: 11px 11px;
  border-radius: 0 14px 0 0;
}

/* 价格上方的徽章（图标 + 纯文字，白色；绝对定位在红条内部顶部预留区，不拉高容器） */
.mall-detail-badge {
  position: absolute;
  left: 16px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.mall-detail-badge svg { width: 14px; height: 14px; }
.mall-detail-badge em { font-style: normal; }

/* 促销营销宣传语（红条右上角，纯文字白字，不占文档流） */
.mall-detail-promo {
  position: absolute;
  right: 16px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* 销量（与价格同行，基线对齐，靠右） */
.mall-detail-sales {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.mall-detail-sales strong {
  font-weight: 700;
  color: #ffffff;
}

/* 价格前的 "xx价" 标签（与价格同行，纯文字白字，与价格底部齐平） */
.mall-detail-price-tag {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.mall-detail-price .sale {
  font-size: 30px;
  color: #fff;
  font-weight: 900;
}

.mall-detail-price .sale small { font-size: 15px; font-weight: 700; }

.mall-detail-price .sale .mall-detail-price-dec { font-size: 17px; font-weight: 700; }

.mall-detail-price .origin-sep {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1;
}

.mall-detail-price .origin {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-decoration: line-through;
}

.mall-detail-price .origin em {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  margin-right: 2px;
}

.mall-detail-title-block { padding: 16px; background: #fff; }

.mall-detail-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--mall-text);
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 0 16px;
}

.mall-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }

.mall-detail-section {
  margin-top: 12px;
  background: #fff;
  padding: 16px;
}

.mall-detail-use-rules {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
  color: var(--mall-text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.mall-detail-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--mall-text);
  margin-bottom: 12px;
}

/* 可点击摘要区块（点击弹出底部卡片） */
.mall-detail-section.sheet-trigger {
  cursor: pointer;
  user-select: none;
  background: #fff;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  padding: 14px;
}
.mall-detail-section.sheet-trigger h3 {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.mall-detail-section.sheet-trigger .col-arrow {
  margin-left: auto;
  color: var(--mall-text-tip);
  transition: transform .2s ease;
}
.mall-detail-section.sheet-trigger .col-summary {
  font-size: 13px;
  color: var(--mall-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 配送方式 + 产品参数 合并卡片 */
.mall-detail-meta {
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  padding: 0 12px;
  margin-top: 8px;
}
.mall-detail-meta .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  user-select: none;
}
.mall-detail-meta .meta-row + .meta-row {
  border-top: 1px solid #f0f0f0;
}
.mall-detail-meta .meta-ico {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mall-detail-meta .meta-ico.ship {
  background: rgba(180,83,9,0.1);
  color: #B45309;
}
.mall-detail-meta .meta-ico.params {
  background: rgba(217,119,6,0.1);
  color: #D97706;
}
.mall-detail-meta .meta-ico.promise {
  background: rgba(22,163,74,0.1);
  color: #16a34a;
}
.mall-detail-meta .meta-promises {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mall-detail-meta .meta-promise {
  padding: 1px 8px;
  border-radius: 7px;
  background: #f5f5f5;
  color: var(--mall-text-sub);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}
.mall-detail-meta .meta-v {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--mall-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mall-detail-meta .meta-arrow {
  flex: none;
  color: #c9c9c9;
}
.mall-detail-meta .meta-params {
  flex: 1;
  min-width: 0;
}
.mall-detail-meta .meta-params-row {
  display: flex;
  gap: 8px;
}
.mall-detail-meta .meta-params-row + .meta-params-row {
  margin-top: 2px;
}
.mall-detail-meta .meta-params-k,
.mall-detail-meta .meta-params-v {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mall-detail-meta .meta-params-k {
  font-size: 11px;
  color: var(--mall-text);
  font-weight: 600;
}
.mall-detail-meta .meta-params-v {
  font-size: 12px;
  color: var(--mall-text-sub);
}
.mall-detail-meta .meta-params-k.more {
  font-size: 10px;
  color: var(--mall-text-tip);
  font-weight: 400;
}

/* 底部弹出卡片 */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.sheet.open {
  visibility: visible;
  pointer-events: auto;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity .25s ease;
}
.sheet.open .sheet-mask {
  opacity: 1;
}
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform .3s ease;
  height: 66.67vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom, 0px);
}
.sheet.open .sheet-panel {
  transform: translateY(0);
}
.sheet-handle {
  flex: none;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #d8d8d8;
  margin: 8px auto 4px;
}
.sheet-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px 16px 12px;
  border-bottom: 1px solid #f2f2f2;
}
.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mall-text);
}
.sheet-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sheet-close:active {
  background: #ececec;
}
.sheet-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 16px;
}
body.sheet-lock {
  overflow: hidden;
}

.mall-detail-section p,
.mall-detail-section div {
  font-size: 14px;
  color: var(--mall-text-sub);
  line-height: 1.8;
  word-break: break-all;
}

.mall-detail-section ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.mall-detail-section li {
  font-size: 14px;
  color: var(--mall-text-sub);
  line-height: 1.8;
}

/* 配送方式弹层：类型横幅 + 明细卡片 */
.mall-detail-ship .ship-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a1a, #B45309);
  color: #fff;
}
.mall-detail-ship .ship-hero-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mall-detail-ship .ship-hero-text {
  flex: 1;
  min-width: 0;
}
.mall-detail-ship .ship-hero-k {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}
.mall-detail-ship .ship-hero-v {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}
.mall-detail-ship .ship-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mall-detail-ship .ship-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}
.mall-detail-ship .ship-list-ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(180,83,9,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.mall-detail-ship .ship-list-body {
  flex: 1;
  min-width: 0;
}
.mall-detail-ship .ship-list-k {
  display: block;
  font-size: 12px;
  color: var(--mall-text-tip);
  margin-bottom: 2px;
}
.mall-detail-ship .ship-list-v {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--mall-text);
  line-height: 1.4;
  word-break: break-all;
}
.mall-detail-ship .ship-list-arrow {
  flex: none;
  color: #c9c9c9;
}
.mall-detail-ship .ship-free {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-style: normal;
  background: #e8eaed;
  color: var(--mall-text-sub);
}
.mall-detail-ship .ship-free.on {
  background: rgba(22,163,74,0.12);
  color: #16a34a;
}

/* 产品参数弹层：两列网格卡片 */
.mall-detail-params .params-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mall-detail-params .params-cell {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.mall-detail-params .params-cell-k {
  display: block;
  font-size: 12px;
  color: var(--mall-text-tip);
  margin-bottom: 4px;
}
.mall-detail-params .params-cell-v {
  display: block;
  font-size: 14px;
  color: var(--mall-text);
  line-height: 1.4;
  word-break: break-all;
}

.mall-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  z-index: 100;
}

.mall-action-bar .price {
  flex: 1;
  font-size: 20px;
  color: var(--mall-price);
  font-weight: 800;
}

.mall-action-bar .price small { font-size: 13px; margin-right: 2px; }

.mall-action-bar .btn-buy {
  height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 150px;
  white-space: nowrap;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(180,83,9,0.25);
}

/* order */
.mall-order-page { padding-bottom: calc(80px + var(--safe-bottom)); }

.mall-address-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px;
  margin: 12px 16px;
  border-radius: var(--mall-radius);
  box-shadow: var(--mall-shadow);
}

.mall-address-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg,#FBBF24,#F59E0B);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mall-address-card .icon svg { width: 20px; height: 20px; }

.mall-address-card .info { flex: 1; }

.mall-address-card .info .name { font-size: 15px; font-weight: 700; color: var(--mall-text); margin-bottom: 4px; }

.mall-address-card .info .addr { font-size: 13px; color: var(--mall-text-sub); line-height: 1.5; }

.mall-order-product {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 16px;
  margin: 0 16px 12px;
  border-radius: var(--mall-radius);
  box-shadow: var(--mall-shadow);
}

.mall-order-product img {
  width: 90px;
  height: 90px;
  border-radius: var(--mall-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #f7f8fa;
}

.mall-order-product .info { flex: 1; min-width: 0; }

.mall-order-product .info .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mall-text);
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mall-order-product .info .price {
  font-size: 16px;
  color: var(--mall-price);
  font-weight: 800;
}

.mall-form-card {
  background: #fff;
  margin: 0 16px 12px;
  padding: 16px;
  border-radius: var(--mall-radius);
  box-shadow: var(--mall-shadow);
}

.mall-form-group { margin-bottom: 16px; }

.mall-form-group:last-child { margin-bottom: 0; }

.mall-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mall-text);
  margin-bottom: 8px;
}

.mall-form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  font-size: 14px;
  color: var(--mall-text);
  background: #fafafa;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.mall-form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180,83,9,0.08);
}

.mall-form-input::placeholder { color: var(--placeholder, #6B7280); }

.mall-form-row { display: flex; gap: 10px; }

.mall-form-row .mall-form-input { flex: 1; }

textarea.mall-form-input {
  height: auto;
  padding: 12px 14px;
  resize: none;
}

.mall-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  overflow: hidden;
}

.mall-stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: #f2f3f5;
  font-size: 18px;
  color: var(--mall-text-sub);
}

.mall-stepper input {
  width: 50px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--mall-text);
  outline: none;
}

.mall-submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + var(--safe-bottom));
  padding: 0 16px var(--safe-bottom);
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.mall-submit-bar .total {
  font-size: 15px;
  color: var(--mall-text);
}

.mall-submit-bar .total .price {
  font-size: 22px;
  color: var(--mall-price);
  font-weight: 800;
}

.mall-submit-bar .total .price small { font-size: 13px; }

.mall-submit-bar .btn-submit {
  height: 42px;
  padding: 0 32px;
  border: none;
  border-radius: 21px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(180,83,9,0.25);
}

/* pay */
.mall-pay-header {
  background: var(--grad-hero);
  padding: 48px 24px 60px;
  color: #fff;
  text-align: center;
}

.mall-pay-header .label { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }

.mall-pay-header .amount { font-size: 40px; font-weight: 900; }

.mall-pay-card {
  background: #fff;
  border-radius: var(--mall-radius-lg);
  margin: -30px 16px 16px;
  padding: 20px;
  box-shadow: var(--mall-shadow-lg);
}

.mall-pay-info p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--mall-text-sub);
  margin-bottom: 12px;
}

.mall-pay-info p span:last-child {
  color: var(--mall-text);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.mall-pay-methods { margin-top: 24px; }

.mall-pay-methods h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--mall-text);
  margin-bottom: 12px;
}

.mall-pay-method {
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1.5px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .2s;
}

.mall-pay-method.active {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.mall-pay-method .icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mall-pay-method .icon.wx { background: #07c160; color: #fff; }
.mall-pay-method .icon.ali { background: #1677ff; color: #fff; }
.mall-pay-method .icon.mock { background: #999; color: #fff; }

.mall-pay-method label {
  flex: 1;
  font-size: 15px;
  color: var(--mall-text);
  margin: 0;
}

.mall-pay-method input { margin-right: 10px; }

.mall-pay-submit {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: none;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(180,83,9,0.25);
}

/* sort */
.mall-sort {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mall-sort a {
  font-size: 12px;
  font-weight: 500;
  color: var(--mall-text-sub);
  background: #f2f3f5;
  padding: 4px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
}

.mall-sort a.active {
  background: var(--grad-btn);
  color: #fff;
  font-weight: 600;
}

.mall-sort a:active { opacity: .8; }

/* detail main */
.mall-detail-main {
  background: #fff;
  padding: 0 0 14px;
  margin-top: 0;
}

.mall-detail-main .mall-detail-title { margin-bottom: 10px; }

.mall-detail-assure {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 16px;
  margin-top: 12px;
  border-top: 1px dashed var(--mall-border);
}

.mall-detail-assure .item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--mall-text-sub);
}

.mall-detail-assure .item svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .mall-grid { gap: 8px; padding: 0 12px 24px; }
  .mall-card-body { padding: 8px; }
  .mall-card-title { font-size: 13px; height: 36px; }
  .mall-card-price { font-size: 16px; }
}

/* ========== 电脑端适配（≥768px） ========== */
@media screen and (min-width: 768px) {
  /* 商品网格改为 3 列 */
  .mall-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 底部固定操作栏居中限宽 */
  .mall-action-bar,
  .mall-submit-bar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 640px;
    max-width: calc(100vw - 24px);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
  }

  /* 支付页（无外层容器）限宽 */
  .mall-pay-header,
  .mall-pay-card {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 成功页限宽 */
  .success-page {
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(15, 23, 42, 0.10);
  }
}

/* ========== 商城首页轮播横幅（参考电商平台风格） ========== */
.mall-banner {
  position: relative;
  margin: 12px 16px 0;
}

.mall-banner-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 16px;
}

.mall-banner-list::-webkit-scrollbar { display: none; }

.mall-banner-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  position: relative;
  text-decoration: none;
  line-height: 0;
}

.mall-banner-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
}

.mall-banner-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 2;
}

.mall-banner-dots li {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  transition: all .3s;
}

.mall-banner-dots li.active {
  width: 18px;
  background: #fff;
}

/* ===================================================================
   商城首页视觉方案（默认：横幅主视觉）
   =================================================================== */

/* ---------- 方案C 视觉：活力促销橙 ---------- */

body.mall-s3 .mall-search-btn {
  background: #B45309;
  box-shadow: none;
  border-radius: 13px;
  height: 34px;
  padding: 0 18px;
  font-size: 14px;
}
body.mall-s3 .mall-category {
  background: transparent;
  color: #6b7280;
  border: none;
  border-radius: 0;
  padding: 9px 12px 6px;
  font-size: 15px;
  position: relative;
}
body.mall-s3 .mall-category.active {
  background: transparent;
  color: #B45309;
  font-weight: 700;
  box-shadow: none;
}
body.mall-s3 .mall-category.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(135deg, #D97706, #B45309);
}
body.mall-s3 .mall-card-price { color: #B45309; }
body.mall-s3 .mall-section-title { font-size: 17px; }


/* ========== 横幅主视觉：全宽横幅 + 悬浮搜索 + 单列大卡 ========== */
body.mall-s3 .mall-hero { position: relative; }
body.mall-s3 .mall-hero .mall-banner-list,
body.mall-s3 .mall-hero .mall-banner-item,
body.mall-s3 .mall-hero .mall-banner-img { border-radius: 0; }
body.mall-s3 .mall-hero .mall-banner-img { height: 232px; }
body.mall-s3 .mall-hero-search {
  position: static;
  background: #ffffff;
  padding: 6px 16px 4px;
}
body.mall-s3 .mall-hero-search .mall-search-bar {
  padding: 3px;
  gap: 0;
  background: #ffffff;
  border: 2px solid rgba(180,83,9,0.55);
  border-radius: 16px;
  overflow: hidden;
}
body.mall-s3 .mall-hero-search .mall-search-input-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  height: 34px;
}
/* 方案C 顶栏（分类 + 搜索）吸顶 */
body.mall-s3 .mall-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* 方案C 分类栏：通栏 tab 导航（置顶） */
body.mall-s3 .mall-categories {
  background: #ffffff;
  margin: 0;
  padding: 0 4px;
  border-radius: 0;
  box-shadow: none;
  gap: 2px;
}
/* 方案C 二级分类栏：与一级同体系的白色底 tab，选中为浅橙圆角底块以示层级 */
body.mall-s3 .mall-categories-sub {
  background: #ffffff;
  border-bottom: 1px solid var(--mall-border, #ededed);
  padding: 2px 8px 8px;
  gap: 4px;
}
body.mall-s3 .mall-categories-sub .mall-category {
  padding: 4px 12px;
  font-size: 13px;
  background: transparent;
  color: #6b7280;
  border: none;
  border-radius: 999px;
}
body.mall-s3 .mall-categories-sub .mall-category.active {
  background: rgba(180, 83, 9, .10);
  color: #B45309;
  font-weight: 600;
  box-shadow: none;
}
body.mall-s3 .mall-categories-sub .mall-category.active::after {
  display: none;
}
/* 方案C 商品列表：默认瀑布流（双列错落），搜索时单列横版列表 */
body.mall-s3 .mall-card-title { height: auto; margin-bottom: 6px; font-size: 13px; }
/* 瀑布流标题单行省略 */
body.mall-s3 .mall-grid.waterfall .mall-card-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.mall-s3 .mall-card-price { font-size: 17px; }
body.mall-s3 .mall-card-price small { font-size: 12px; }
body.mall-s3 .mall-card-price .mall-card-price-dec { font-size: 13px; font-weight: 700; }

/* 价格标签（补贴后/首单价/优惠后/新品价） */
.mall-card-price-tag {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mall-price);
  vertical-align: 1px;
}
body.mall-s3 .mall-section-title { padding-top: 18px; }

/* 搜索列表模式：单列横版大卡（左图右文） */
body.mall-s3 .mall-grid.list-mode {
  grid-template-columns: 1fr;
  gap: 12px;
}
body.mall-s3 .mall-grid.list-mode .mall-card {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
}
body.mall-s3 .mall-grid.list-mode .mall-card-img {
  width: 120px;
  padding-top: 120px;
  flex-shrink: 0;
  border-radius: 14px 0 0 14px;
}
body.mall-s3 .mall-grid.list-mode .mall-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
}

/* 瀑布流模式：双列错落（columns 流动，图片高度交替） */
body.mall-s3 .mall-grid.waterfall {
  display: block;
  column-count: 2;
  column-gap: 8px;
  padding: 0 0 12px;
}
body.mall-s3 .mall-grid.waterfall .mall-card {
  display: block;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}
body.mall-s3 .mall-grid.waterfall .mall-card-img {
  width: 100%;
  padding-top: 100%;
  border-radius: 0;
}
body.mall-s3 .mall-grid.waterfall .mall-card-body { padding: 10px; }
body.mall-s3 .mall-grid.waterfall .mall-card:nth-child(3n+2) .mall-card-img { padding-top: 130%; }
body.mall-s3 .mall-grid.waterfall .mall-card:nth-child(3n) .mall-card-img { padding-top: 112%; }

/* 电脑端限宽居中 */
@media screen and (min-width: 768px) {
  body.mall-s3 .mall-hero {
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
  }
  body.mall-s3 .mall-hero .mall-banner-list,
  body.mall-s3 .mall-hero .mall-banner-item,
  body.mall-s3 .mall-hero .mall-banner-img { border-radius: 0 0 16px 16px; }
}

/* ===== 商品评价 ===== */
.mall-detail-review { padding-top: 14px; }
.mall-detail-review .review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mall-detail-review .review-head h3 { margin-bottom: 0; }
.mall-detail-review .review-count {
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--mall-text-tip);
  margin-left: 4px;
}
.review-write-btn {
  flex: none;
  border: 1px solid var(--mall-border);
  background: #fff;
  color: var(--mall-text);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
}
.review-write-btn:active { background: #f5f5f5; }
.mall-detail-review .review-summary {
  display: flex;
  gap: 24px;
  padding: 4px 0 14px;
  border-bottom: 1px solid #f2f2f2;
}
.review-score { flex: none; text-align: center; padding-top: 2px; }
.review-score b {
  display: block;
  font-size: 36px;
  line-height: 1;
  color: #ff9a00;
  font-weight: 800;
}
.review-score .review-stars { justify-content: center; margin: 6px 0 2px; }
.review-rate { font-size: 11px; color: var(--mall-text-tip); }
.review-stars { display: flex; gap: 2px; }
.review-stars .star { fill: #e3e3e3; }
.review-stars .star.on { fill: #ffb400; }
.mall-detail-review .review-dist {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.mall-detail-review .review-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--mall-text-tip);
}
.review-dist-row span { flex: none; width: 22px; }
.review-dist-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #f0f0f0;
  overflow: hidden;
}
.review-dist-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #ffb400;
}
.review-dist-row em { flex: none; font-style: normal; width: 16px; text-align: right; }
.mall-detail-review .review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mall-detail-review .review-item {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}
.mall-detail-review .review-item:last-child { border-bottom: none; }
.review-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-main { flex: 1; min-width: 0; }
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mall-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-time { flex: none; font-size: 11px; color: var(--mall-text-tip); }
.review-main .review-stars { margin: 4px 0; }
.mall-detail-review .review-content {
  margin: 0;
  font-size: 13px;
  color: var(--mall-text-sub);
  line-height: 1.6;
  word-break: break-all;
}
.review-more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 9px 0;
  border: none;
  border-radius: 8px;
  background: #f7f8fa;
  color: var(--primary);
  font-size: 13px;
  text-align: center;
}
.review-more:active { background: #eef0f3; }
.mall-detail-review .review-empty,
.mall-detail-section .review-empty {
  padding: 26px 0 14px;
  text-align: center;
  font-size: 13px;
  color: var(--mall-text-tip);
}
.mall-empty-ill {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.mall-empty-ill svg {
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.06));
}
/* 写评价表单 */
.review-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mall-text);
  margin: 4px 0 8px;
}
.review-form-stars {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 6px 0 16px;
}
.review-form-stars .star-btn {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
}
.review-form-stars .star-btn svg { fill: #e3e3e3; transition: transform .15s ease, fill .15s ease; }
.review-form-stars .star-btn.on svg { fill: #ffb400; }
.review-form-stars .star-btn:active svg { transform: scale(1.12); }
.review-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  color: var(--mall-text);
  resize: none;
  outline: none;
}
.review-form textarea:focus { border-color: var(--primary); }
.mall-detail-review .review-form-count {
  text-align: right;
  font-size: 11px;
  color: var(--mall-text-tip);
  margin-top: 4px;
}
.review-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.review-submit:disabled { opacity: .5; }

/* 板块页头图标 */
.mall-detail-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mall-detail-review .review-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-head-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.mall-detail-review .review-head .detail-head-icon { background: linear-gradient(135deg, #ffb400, #ff8a00); }
.mall-detail-section .detail-head-icon { background: linear-gradient(135deg, #F59E0B, #D97706); }
.detail-head-icon svg { fill: currentColor; }

/* ===== 轻提示 Toast ===== */
.mall-toast {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  max-width: 72vw;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mall-toast.show { opacity: 1; }

/* ===== 购物车页 ===== */
.mall-cart-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #f0f1f3;
}
.mall-cart-topbar .cart-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mall-text);
  border-radius: 10px;
}
.mall-cart-topbar .cart-back:active { background: #f2f3f5; }
.mall-cart-topbar .cart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mall-text);
}
.mall-cart-topbar .cart-manage {
  border: none;
  background: none;
  color: var(--mall-text-sub);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}
.mall-cart-topbar .cart-manage.on { color: var(--primary); }
.mall-cart-list { padding: 10px 12px 92px; }
.mall-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04);
}
.mall-cart-item.off { opacity: .55; }
.mall-cart-item.checked { border: 1px solid rgba(180,83,9, 0.35); box-shadow: 0 0 0 1px rgba(180,83,9,0.12); }
.cart-check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd2d9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  cursor: pointer;
  box-sizing: border-box;
  transition: all .15s;
}
.cart-check svg { width: 12px; height: 12px; }
.cart-check.on {
  background: linear-gradient(135deg, #D97706, #B45309);
  border-color: #B45309;
  color: #fff;
}
.cart-check.disabled { opacity: .35; cursor: not-allowed; }
.cart-item-img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f6f8;
  display: block;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.cart-item-name {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mall-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.cart-item-tag {
  align-self: flex-start;
  margin-top: 5px;
  font-size: 10px;
  color: #8b95a5;
  background: #f3f4f6;
  border-radius: 4px;
  padding: 1px 5px;
}
.cart-item-bottom {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-item-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--mall-price);
}
.cart-item-price small { font-size: 11px; margin-right: 1px; }
.cart-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  overflow: hidden;
}
.cart-stepper .stepper-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: #f7f8fa;
  color: var(--mall-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cart-stepper .stepper-btn:active { background: #eef0f3; }
.cart-stepper .stepper-btn:disabled { opacity: .35; }
.cart-stepper .stepper-input {
  width: 30px;
  height: 26px;
  border: none;
  border-left: 1px solid #f0f1f3;
  border-right: 1px solid #f0f1f3;
  text-align: center;
  font-size: 13px;
  color: var(--mall-text);
  background: #fff;
  box-sizing: border-box;
}
.cart-item-del {
  flex: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #9aa3af;
  border-radius: 8px;
}
.mall-cart-item.managing .cart-item-del { display: flex; }
.mall-cart-item.managing .cart-stepper { display: none; }
.mall-cart-item.managing .cart-item-tag { display: none; }
.mall-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(56px + var(--safe-bottom));
  padding: 0 12px calc(0px + var(--safe-bottom));
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}
.mall-cart-bar .cart-check-all {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--mall-text-sub);
  cursor: pointer;
  user-select: none;
}
.mall-cart-bar .cart-check-all .cart-check { width: 18px; height: 18px; }
.mall-cart-bar .cart-check-all.on .cart-check { background: linear-gradient(135deg, #D97706, #B45309); border-color: #B45309; color: #fff; }
.mall-cart-bar .cart-bar-total { flex: 1; text-align: right; font-size: 12px; color: var(--mall-text-sub); }
.mall-cart-bar .cart-bar-total b { color: var(--mall-price); font-size: 18px; font-weight: 800; }
.mall-cart-bar .cart-bar-total em { font-style: normal; }
.mall-cart-bar .cart-checkout {
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.mall-cart-bar .cart-checkout:active { opacity: .9; }
.mall-cart-empty { padding: 90px 24px 0; text-align: center; }
.mall-cart-empty-ill { display: flex; justify-content: center; margin-bottom: 18px; }
.mall-cart-empty-ill svg { display: block; filter: drop-shadow(0 8px 16px rgba(0,0,0,.06)); }
.mall-cart-empty-title { font-size: 17px; font-weight: 700; color: var(--mall-text); }
.mall-cart-empty-sub { font-size: 13px; color: var(--mall-text-tip); margin: 8px 0 22px; }
.mall-cart-empty-btn {
  display: inline-block;
  padding: 9px 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.cart-toast {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  max-width: 72vw;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cart-toast.show { opacity: 1; }

@media screen and (min-width: 768px) {
  .mall-cart-bar { left: 50% !important; right: auto !important; transform: translateX(-50%); width: 640px; max-width: calc(100vw - 24px); border-radius: 18px 18px 0 0; }
}

/* ===== 首页购物车入口 ===== */
.mall-search-cart {
  flex: none;
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B45309;
  position: relative;
  border-radius: 10px;
}
.mall-search-cart:active { background: #f2f3f5; }
.mall-search-cart svg { width: 20px; height: 20px; }
.mall-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  box-sizing: border-box;
}

/* ===== 支付页商品清单 ===== */
.mall-pay-goods {
  margin: 4px 0 12px;
  border-top: 1px dashed #eef0f3;
  border-bottom: 1px dashed #eef0f3;
  padding: 4px 0;
}
.mall-pay-goods-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.mall-pay-goods-item + .mall-pay-goods-item { border-top: 1px dashed #f2f3f5; }
.mall-pay-goods-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: #f5f6f8; }
.mall-pay-goods-item .name { flex: 1; min-width: 0; font-size: 13px; color: var(--mall-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-pay-goods-item .x { font-size: 12px; color: var(--mall-text-sub); flex: none; }
.mall-pay-goods-item .price { font-size: 13px; font-weight: 700; color: var(--mall-price); flex: none; }

/* ===== 省市区三级联动选择器 ===== */
.ap-input { cursor: pointer; }
.ap-input[readonly] { background: #f9fafb; }
.ap-mask { display: none; position: fixed; inset: 0; background: rgba(17,24,39,.5); z-index: 300; }
.ap-mask.show { display: block; }
.ap-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; z-index: 301; transform: translateY(100%); transition: transform .3s cubic-bezier(.34,1.56,.64,1); padding: 14px 14px calc(16px + var(--safe-bottom)); display: flex; flex-direction: column; max-height: 62vh; }
.ap-sheet.show { transform: translateY(0); }
.ap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ap-back { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #6b7280; text-decoration: none; }
.ap-title { font-size: 16px; font-weight: 700; color: #111827; }
.ap-sp { width: 30px; }
.ap-search { margin-bottom: 8px; }
.ap-search input { width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; box-sizing: border-box; outline: none; background: #f9fafb; }
.ap-search input:focus { border-color: #D97706; }
.ap-list { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.ap-item { display: block; padding: 12px 10px; border-bottom: 1px solid #f3f4f6; font-size: 14px; color: #374151; text-decoration: none; border-radius: 8px; }
.ap-item:active { background: #FEF3C7; color: #B45309; }
.ap-empty { text-align: center; color: #9ca3af; font-size: 13px; padding: 30px 0; }
/* 定位按钮 */
.mall-locate { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 600; color: #D97706; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mall-locate svg { width: 14px; height: 14px; flex: none; }
.mall-locate:active { opacity: .75; }
.mall-locate.locating { color: #9ca3af; pointer-events: none; }

/* ========== 确认订单页放宽（桌面端） ========== */
.mall-order-page .dv-container {
  max-width: none;
}

@media screen and (min-width: 768px) {
  .mall-order-page,
  .mall-order-page .dv-navbar-inner {
    max-width: none;
  }
  .mall-order-page .mall-submit-bar {
    left: 0 !important;
    right: 0 !important;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
}

/* ========== 确认订单页手机端：内容贴近屏幕边缘 ========== */
/* 原容器 padding 16px + 卡片 margin 16px = 内容距边缘 32px，收紧为 8+8=16px */
.mall-order-page .dv-container {
  padding-left: 8px;
  padding-right: 8px;
}

.mall-order-page .mall-address-card,
.mall-order-page .mall-order-product,
.mall-order-page .mall-form-card {
  margin-left: 8px;
  margin-right: 8px;
}

/* ========== 商品详情页 店铺板块 ========== */
.mall-detail-shop {
  padding: 12px 16px;
}
.mall-detail-shop .shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f6f8fb, #eef2f7);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
}
.mall-detail-shop .shop-logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mall-detail-shop .shop-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mall-detail-shop .shop-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--mall-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mall-detail-shop .shop-desc {
  font-size: 12px;
  color: var(--mall-text-tip);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mall-detail-shop .shop-enter {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-radius: 16px;
}
.mall-detail-shop .shop-card:active {
  opacity: 0.85;
}

/* ========== 独立店铺页 ========== */
.mall-shop-head {
  padding: 16px 16px 18px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
}
.mall-shop-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
}
.mall-shop-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mall-shop-logo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}
.mall-shop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mall-shop-name {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mall-shop-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.mall-shop-actions {
  flex: none;
  display: flex;
  gap: 8px;
}
.mall-shop-act {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}
.mall-shop-act:active {
  opacity: 0.85;
}
.mall-shop-stats {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--mall-border);
  font-size: 12px;
  color: var(--mall-text-tip);
}
.mall-shop-stats b {
  font-size: 16px;
  color: var(--mall-text);
  font-weight: 700;
  margin-left: 2px;
}
.mall-shop-stats span {
  display: inline-flex;
  align-items: baseline;
}
.mall-shop-head + .mall-shop-stats + .mall-categories {
  background: #fff;
  border-bottom: 1px solid var(--mall-border);
}
