/* ============================================
   超市比价平台 - 视觉升级版 v2
   设计原则:克制留白 / 信息分层 / 价格为王
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 主色系:沉稳的生鲜绿(不再艳丽) */
  --green: #00a862;
  --green-dark: #008f54;
  --green-soft: #e8f7f0;
  /* 强调色 */
  --red: #ff4d4f;          /* 价格红 */
  --red-soft: #fff1f0;
  --orange: #ff8c42;
  --gold: #faad14;         /* 榜单金 */
  /* 中性色 */
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #595959;
  --text-3: #8c8c8c;
  --text-4: #bfbfbf;
  --border: #f0f0f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 14px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
}

/* ============================================
   顶部栏 (瘦身版:只留搜索,标题极简)
   ============================================ */
.topbar {
  background: var(--card);
  padding: 12px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-icon {
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.locate-btn {
  margin-left: auto;
  background: var(--green-soft);
  color: var(--green);
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.locate-btn:active { transform: scale(0.96); }

/* 搜索框 */
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-3);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: none;
  border-radius: 22px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
  transition: background 0.2s;
}
.search-input:focus { background: #fff; box-shadow: 0 0 0 1.5px var(--green) inset; }
.search-hint {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-4);
  pointer-events: none;
}

/* ============================================
   分类标签 (圆角药丸,选中态明显)
   ============================================ */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
  overflow-x: auto;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cat-tab.active {
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

/* 二级类目tab(更小更轻) */
.sub-tabs {
  padding-top: 4px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border);
}
.subcat-tab {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.subcat-tab.active {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}

/* ============================================
   今日榜单 (首屏亮点:降幅最大/最低价)
   ============================================ */
.hot-section {
  padding: 4px 16px 12px;
  background: var(--card);
}
.hot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px;
}
.hot-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.hot-sub {
  font-size: 11px;
  color: var(--text-3);
}
.hot-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.hot-strip::-webkit-scrollbar { display: none; }
.hot-card {
  flex-shrink: 0;
  width: 108px;
  background: linear-gradient(160deg, #fff9f0, #fff5eb);
  border: 1px solid #ffe7cc;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.hot-card:active { transform: scale(0.97); }
.hot-tag {
  font-size: 10px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 4px;
}
.hot-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.hot-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.hot-price .unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}
.hot-shop {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
}

/* ============================================
   区块标题 (商品列表上方)
   ============================================ */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 8px;
}
.list-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.list-count {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================
   商品卡片 (精简版:价格为王)
   ============================================ */
.product-list {
  padding: 0 12px 80px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow);
  position: relative;
}
.product-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-hover);
}
.product-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
/* 各类别配色(8个一级类目) */
.product-icon.cat-meat    { background: linear-gradient(135deg, #ff8a8a, #ff6b6b); }
.product-icon.cat-veg     { background: linear-gradient(135deg, #66d9a8, #4cc38c); }
.product-icon.cat-fruit   { background: linear-gradient(135deg, #ffd166, #ff9a3c); }
.product-icon.cat-grain   { background: linear-gradient(135deg, #c9a978, #b08d57); }
.product-icon.cat-sea     { background: linear-gradient(135deg, #6ec6ff, #3d9be9); }
.product-icon.cat-dairy   { background: linear-gradient(135deg, #d4a5f5, #b87be8); }
.product-icon.cat-snack   { background: linear-gradient(135deg, #ff9ecb, #f56bb0); }
.product-icon.cat-daily   { background: linear-gradient(135deg, #9aa7b8, #7183a0); }

.product-info {
  flex: 1;
  margin-left: 12px;
  min-width: 0;
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.product-meta {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-meta .dot {
  width: 2px; height: 2px;
  background: var(--text-4);
  border-radius: 50%;
}
.product-meta .dist {
  color: var(--green);
}

/* 价格区(突出显示) */
.product-price-block {
  text-align: right;
  flex-shrink: 0;
  margin-left: 8px;
}
.product-price-block .price {
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}
.product-price-block .price::before {
  content: "¥";
  font-size: 13px;
  font-weight: 600;
  margin-right: 1px;
}
.product-price-block .unit {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}

/* 加入按钮(弱化,不抢价格焦点) */
.basket-toggle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  border: none;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 10px;
  line-height: 1;
  transition: all 0.15s;
}
.basket-toggle.on {
  background: var(--green);
  color: #fff;
}
.basket-toggle:active { transform: scale(0.85); }

/* ============================================
   空状态
   ============================================ */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty .emoji { font-size: 44px; margin-bottom: 12px; }

/* ============================================
   详情页(底部弹层)
   ============================================ */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100;
  display: none;
  backdrop-filter: blur(2px);
}
.detail-overlay.show { display: block; }
.detail-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  z-index: 101;
  display: none;
  flex-direction: column;
  animation: slideUp 0.28s cubic-bezier(0.22,1,0.36,1);
}
.detail-panel.show { display: flex; }
@keyframes slideUp {
  from { transform: translate(-50%, 100%); }
  to   { transform: translate(-50%, 0); }
}
.detail-header {
  padding: 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.detail-header h2 {
  font-size: 17px;
  font-weight: 700;
}
.detail-header .sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.close-btn {
  width: 30px; height: 30px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-3);
  flex-shrink: 0;
}
.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

/* 比价行 */
.price-row {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.price-row.best {
  background: linear-gradient(135deg, var(--red-soft), #fff5f5);
  border: 1.5px solid var(--red);
}
.price-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.shop-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.best-tag {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}
.dist-tag {
  font-size: 11px;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 500;
}
.price-row-price {
  color: var(--red);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.price-row-price::before {
  content: "¥";
  font-size: 14px;
  font-weight: 600;
}
.price-row-price .unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
/* "省了X元"提示 */
.save-tip {
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 8px;
  display: inline-block;
  font-weight: 500;
}
.price-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
}
.stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }
.nav-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}
.nav-btn:active { background: var(--green-dark); }

/* ============================================
   悬浮购物篮
   ============================================ */
.basket-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  border-radius: 28px;
  background: var(--text);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.basket-fab:active { transform: scale(0.95); }
.basket-count {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 700;
}

/* ============================================
   购物篮内容
   ============================================ */
.basket-section { margin-bottom: 18px; }
.basket-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 4px;
}
.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 6px;
  box-shadow: var(--shadow);
}
.basket-item-name { font-weight: 600; font-size: 14px; }
.basket-item-info > div:last-child { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.rm-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
}
.basket-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.qty-input {
  width: 44px;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background: var(--bg);
  outline: none;
}
.qty-input:focus { border-color: var(--green); }
.qty-unit { font-size: 11px; color: var(--text-3); }

/* 推荐卡片 */
.reco-card {
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.reco-primary {
  background: linear-gradient(135deg, #fff8e7, #fff3d6);
  border: 1.5px solid var(--gold);
}
.reco-save {
  background: linear-gradient(135deg, var(--green-soft), #d9f5e6);
  border: 1.5px solid var(--green);
}
.reco-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.reco-shop {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.reco-stat {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.reco-stat b { font-size: 15px; color: var(--text); }
.reco-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.1);
}
.reco-list-title {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 600;
}
.reco-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
  color: var(--text-2);
}
.reco-list-item.miss-row .miss-to b { color: var(--green); }

/* ============================================
   管理端通用(保留原样式,微调)
   ============================================ */
.admin-login {
  padding: 40px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.admin-login h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--green-dark);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.form-input, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: var(--card);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus { border-color: var(--green); }
.btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:active { background: var(--green-dark); }
.btn-outline {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.admin-tabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.admin-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}

.admin-item {
  background: var(--card);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-item-info { flex: 1; }
.admin-item-title { font-weight: 600; font-size: 15px; }
.admin-item-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.admin-item-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
}

.section-title {
  padding: 14px 16px 6px;
  font-size: 13px;
  color: var(--text-3);
}

.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0,168,98,0.4);
  cursor: pointer;
  z-index: 50;
}
.fab:active { transform: scale(0.92); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--card);
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 121;
}
.modal h3 {
  margin-bottom: 16px;
  text-align: center;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.modal-actions .btn { flex: 1; }

/* ============================================
   新增商品的同名实时提示
   ============================================ */
.suggest-box {
  margin-top: 6px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 10px;
  overflow: hidden;
}
.suggest-title {
  font-size: 11px;
  color: #8c6d1f;
  padding: 8px 12px 4px;
}
.suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  cursor: pointer;
  border-top: 1px solid #fff3cd;
  background: #fff;
}
.suggest-item:active { background: #fff8e1; }
.suggest-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.suggest-meta {
  font-size: 11px;
  color: #8c8c8c;
}

/* ============================================
   店面端统计卡(可点筛选)
   ============================================ */
.stat-card {
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
}
.stat-card:active { transform: scale(0.95); }
.stat-card.selected { border-color: currentColor; }
.stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.stat-label {
  font-size: 11px;
  color: #595959;
  margin-top: 2px;
}

/* ============================================
   顾客端 v2 - 对标主流生鲜App版式
   底部Tab + 五页面
   ============================================ */
.page { display: none; padding-bottom: 66px; }
.page.show { display: block; }

/* ---- 底部导航 ---- */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 60;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.tab-item {
  flex: 1;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  color: var(--text-3);
  -webkit-tap-highlight-color: transparent;
}
.tab-item .ti-ico { font-size: 21px; line-height: 1; filter: grayscale(1) opacity(0.55); transition: all .15s; }
.tab-item .ti-txt { font-size: 10px; font-weight: 500; }
.tab-item.active { color: var(--green); }
.tab-item.active .ti-ico { filter: none; transform: scale(1.08); }
.tab-item.active .ti-txt { font-weight: 700; }
.ti-badge {
  position: absolute;
  top: 4px; right: 50%;
  margin-right: -22px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  font-weight: 700;
  border: 1.5px solid #fff;
}

/* ---- 首页顶栏(绿色渐变) ---- */
.home-header {
  background: linear-gradient(135deg, #00b378 0%, #00a862 60%, #009160 100%);
  padding: 14px 16px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.hh-row { display: flex; align-items: center; gap: 12px; }
.hh-loc {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; gap: 3px;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 90px;
  white-space: nowrap; overflow: hidden;
}
.hh-loc-ico { font-size: 13px; }
.hh-caret { font-size: 10px; opacity: .8; }
.hh-search {
  flex: 1;
  background: #fff;
  border-radius: 18px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
}
.hh-search-ph { white-space: nowrap; overflow: hidden; }

.home-scroll { padding-bottom: 8px; }

/* ---- 轮播banner ---- */
.banner-swipe {
  margin: 10px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 118px;
  cursor: pointer;
  background: #00b378;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s;
  display: flex;
  align-items: center;
  padding: 0 22px;
}
.banner-slide.active { opacity: 1; }
.banner-slide:nth-child(1) { background: linear-gradient(120deg,#00c784,#009160); }
.banner-slide:nth-child(2) { background: linear-gradient(120deg,#ff8a5c,#ff4d4f); }
.banner-slide:nth-child(3) { background: linear-gradient(120deg,#5b8def,#3d6ce0); }
.bs-txt { color: #fff; }
.bs-title { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.bs-sub { font-size: 13px; opacity: .92; margin-top: 5px; font-weight: 500; }
.bs-desc { font-size: 11px; opacity: .78; margin-top: 9px; background: rgba(255,255,255,.18); display: inline-block; padding: 3px 9px; border-radius: 10px; }
.banner-dot {
  position: absolute;
  bottom: 9px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.banner-dot i {
  width: 5px; height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.45);
  transition: all .3s;
}
.banner-dot i.on { width: 14px; background: #fff; }

/* ---- 分类圆形入口 ---- */
.cat-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 0;
  background: var(--card);
  margin: 10px 12px 0;
  border-radius: 14px;
  padding: 14px 4px 8px;
}
.ce-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; padding: 4px 0 8px;
}
.ce-item:active { transform: scale(0.93); }
.ce-icon {
  width: 48px; height: 48px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.ce-icon.cat-veg    { background: linear-gradient(135deg,#e8f9f0,#d2f2e0); }
.ce-icon.cat-fruit  { background: linear-gradient(135deg,#fff4dd,#ffe8c2); }
.ce-icon.cat-meat   { background: linear-gradient(135deg,#ffe9e9,#ffd6d6); }
.ce-icon.cat-sea    { background: linear-gradient(135deg,#e5f4ff,#d0ebff); }
.ce-icon.cat-grain  { background: linear-gradient(135deg,#f7f0e3,#efe4cf); }
.ce-icon.cat-dairy  { background: linear-gradient(135deg,#f5edfd,#e9dcfb); }
.ce-icon.cat-snack  { background: linear-gradient(135deg,#ffe9f3,#ffd3e7); }
.ce-icon.cat-daily  { background: linear-gradient(135deg,#eef1f5,#e0e6ed); }
.ce-name { font-size: 12px; color: var(--text-2); font-weight: 500; }

/* ---- 首页卡片容器 ---- */
.home-card {
  background: var(--card);
  margin: 10px 12px 0;
  border-radius: 14px;
  padding: 14px 12px 8px;
}
.hc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding: 0 4px;
}
.hc-title { font-size: 15px; font-weight: 700; }
.hc-more { font-size: 12px; color: var(--text-3); cursor: pointer; }
.hc-sub { font-size: 11px; color: var(--text-3); }
.load-end {
  text-align: center; font-size: 11px; color: var(--text-4);
  padding: 14px 0 8px;
}

/* ---- 双列瀑布流商品卡 ---- */
.waterfall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wf-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid #f2f3f5;
}
.wf-card:active { transform: scale(0.97); }
.wf-img {
  height: 108px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  position: relative;
}
.wf-img.cat-veg    { background: linear-gradient(135deg,#e8f9f0,#d2f2e0); }
.wf-img.cat-fruit  { background: linear-gradient(135deg,#fff4dd,#ffe8c2); }
.wf-img.cat-meat   { background: linear-gradient(135deg,#ffe9e9,#ffd6d6); }
.wf-img.cat-sea    { background: linear-gradient(135deg,#e5f4ff,#d0ebff); }
.wf-img.cat-grain  { background: linear-gradient(135deg,#f7f0e3,#efe4cf); }
.wf-img.cat-dairy  { background: linear-gradient(135deg,#f5edfd,#e9dcfb); }
.wf-img.cat-snack  { background: linear-gradient(135deg,#ffe9f3,#ffd3e7); }
.wf-img.cat-daily  { background: linear-gradient(135deg,#eef1f5,#e0e6ed); }
.wf-promo {
  position: absolute;
  top: 7px; left: 7px;
  background: linear-gradient(120deg,#ff7a45,#ff4d4f);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 9px;
}
.wf-name {
  font-size: 13px; font-weight: 600;
  padding: 8px 10px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-meta {
  font-size: 10.5px; color: var(--text-3);
  padding: 0 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px 10px;
}
.wf-price { color: var(--red); font-size: 18px; font-weight: 800; line-height: 1; }
.wf-price .rmb { font-size: 11px; font-weight: 600; margin-right: 1px; }
.wf-price .unit { font-size: 10px; font-weight: 400; color: var(--text-3); }
.wf-add {
  width: 25px; height: 25px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; line-height: 1;
}
.wf-add.on { background: var(--green-soft); color: var(--green); }
.wf-add:active { transform: scale(0.85); }

/* ---- 分类页 ---- */
.cat-top-search {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.cts-wrap {
  background: var(--bg);
  border-radius: 18px;
  height: 34px;
  display: flex; align-items: center;
  gap: 7px; padding: 0 14px;
  font-size: 13px;
}
.cts-wrap input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 13px;
}
.cat-layout {
  display: flex;
  min-height: calc(100vh - 120px);
}
.cat-side {
  width: 88px;
  flex-shrink: 0;
  background: #f2f3f5;
  overflow-y: auto;
}
.cs-item {
  padding: 15px 8px;
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  position: relative;
}
.cs-item.active {
  background: #fff;
  color: var(--green);
  font-weight: 700;
}
.cs-item.active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--green);
  border-radius: 0 2px 2px 0;
}
.cat-main {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  min-width: 0;
}
.cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px;
}
.cm-chip {
  padding: 5px 12px;
  background: var(--bg);
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}
.cm-chip.on {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}
.cm-list { padding: 0 12px 20px; }
.cl-card {
  display: flex; align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.cl-card:active { background: #fafafa; }
.cl-img {
  width: 62px; height: 62px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.cl-img.cat-veg    { background: linear-gradient(135deg,#e8f9f0,#d2f2e0); }
.cl-img.cat-fruit  { background: linear-gradient(135deg,#fff4dd,#ffe8c2); }
.cl-img.cat-meat   { background: linear-gradient(135deg,#ffe9e9,#ffd6d6); }
.cl-img.cat-sea    { background: linear-gradient(135deg,#e5f4ff,#d0ebff); }
.cl-img.cat-grain  { background: linear-gradient(135deg,#f7f0e3,#efe4cf); }
.cl-img.cat-dairy  { background: linear-gradient(135deg,#f5edfd,#e9dcfb); }
.cl-img.cat-snack  { background: linear-gradient(135deg,#ffe9f3,#ffd3e7); }
.cl-img.cat-daily  { background: linear-gradient(135deg,#eef1f5,#e0e6ed); }
.cl-info { flex: 1; margin-left: 11px; min-width: 0; }
.cl-name { font-size: 14px; font-weight: 600; }
.cl-meta {
  font-size: 11px; color: var(--text-3);
  display: flex; align-items: center; gap: 5px;
  margin-top: 4px; flex-wrap: wrap;
}
.cl-meta .dot { width: 2px; height: 2px; background: var(--text-4); border-radius: 50%; }
.cl-meta .dist { color: var(--green); }
.cl-promo {
  display: inline-block;
  margin-top: 5px;
  background: #fff3e0; color: #ff7a00;
  font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: 600;
}
.cl-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.cl-price { color: var(--red); font-size: 17px; font-weight: 800; line-height: 1; }
.cl-price .rmb { font-size: 11px; font-weight: 600; }
.cl-price .unit { font-size: 10px; font-weight: 400; color: var(--text-3); }

/* ---- 比价页(超市列表) ---- */
.page-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 16px 10px;
}
.ph-title { font-size: 18px; font-weight: 800; }
.ph-sub { font-size: 11px; color: var(--text-3); }
.shop-page-list { padding: 0 12px; }
.shop-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex; align-items: center;
  box-shadow: var(--shadow);
}
.shop-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.shop-info { flex: 1; margin-left: 12px; min-width: 0; }
.shop-page-list .shop-name { font-size: 15px; font-weight: 700; }
.shop-addr {
  font-size: 11.5px; color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-meta {
  font-size: 11px; color: var(--text-2);
  margin-top: 4px;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.shop-meta .dot { width: 2px; height: 2px; background: var(--text-4); border-radius: 50%; }
.nav-btn-sm {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 16px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
}
.nav-btn-sm:active { background: var(--green); color: #fff; }

/* ---- 购物车页 ---- */
.cart-head .ph-op { font-size: 12px; color: var(--text-3); cursor: pointer; }
.cart-list { padding: 0 12px; }
.cart-item {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex; align-items: center;
  box-shadow: var(--shadow);
}
.cart-item.off { opacity: .55; }
.ci-cb {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d9d9d9;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
  cursor: pointer;
  margin-right: 10px;
}
.ci-cb.on { background: var(--green); border-color: var(--green); }
.ci-img {
  width: 54px; height: 54px;
  border-radius: 10px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.ci-info { flex: 1; margin-left: 11px; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 600; }
.ci-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.ci-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.ci-sub { font-size: 13px; font-weight: 700; color: var(--red); }
.ci-rm { font-size: 10px; color: var(--text-4); cursor: pointer; }
.stepper {
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}
.stepper button {
  width: 24px; height: 22px;
  border: none; background: #fafafa;
  font-size: 13px; color: var(--text-2);
  cursor: pointer;
}
.stepper button:active { background: var(--green-soft); }
.stepper span {
  min-width: 26px; text-align: center;
  font-size: 12px; font-weight: 600;
}
.btn-go-shop {
  margin-top: 14px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 26px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cart-footer {
  position: fixed;
  bottom: 56px; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 9px 14px;
  z-index: 55;
  box-sizing: border-box;
}
.cf-check {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
}
.cf-cb {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid #d9d9d9;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--green);
  transition: opacity .15s;
}
.cf-total {
  flex: 1; text-align: right;
  font-size: 13px; color: var(--text-2);
  margin-right: 10px;
}
.cf-total span { color: var(--red); font-size: 19px; font-weight: 800; }
.cf-tip { display: block; font-size: 10px; color: var(--text-3); }
.cf-go {
  background: linear-gradient(120deg,#00b378,#00a862);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.cf-go:active { transform: scale(0.96); }

/* ---- 购物方案卡 ---- */
#cartPlanWrap { padding: 4px 12px 90px; }
.plan-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.plan-card.plan-hero {
  background: linear-gradient(120deg,#00b378,#009160);
  color: #fff;
}
.plan-card.plan-hero .plan-title { color: #fff; }
.plan-title { font-size: 14px; font-weight: 700; color: var(--text); }
.plan-best { font-size: 13px; margin-top: 6px; }
.plan-best b { font-size: 24px; font-weight: 800; }
.plan-note { font-size: 11px; opacity: .85; margin-top: 5px; }
.plan-card:not(.plan-hero) .plan-note { color: var(--text-3); opacity: 1; }
.plan-shop {
  display: flex; align-items: center; gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.plan-shop-name { font-size: 15px; font-weight: 700; }
.plan-sub { margin-left: auto; color: var(--red); font-weight: 800; font-size: 16px; }
.plan-card.plan-hero .plan-sub { display: none; }
.plan-items { margin-top: 9px; border-top: 1px dashed rgba(0,0,0,0.08); padding-top: 8px; }
.plan-item {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-2);
  padding: 4px 0;
}
.plan-item-p { color: var(--red); font-weight: 600; }
.plan-card.plan-one { border: 1.5px solid var(--gold); background: linear-gradient(135deg,#fffdf5,#fff8e7); }

/* ---- 我的 (七鲜版式) ---- */
.mine-top {
  background: linear-gradient(135deg,#00b378 0%,#00a862 60%,#009160 100%);
  padding: 26px 18px 22px;
  display: flex; align-items: center; gap: 13px;
}
.mt-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.mt-info { flex: 1; color: #fff; }
.mt-name { font-size: 16px; font-weight: 700; }
.mt-sub { font-size: 11px; opacity: .9; margin-top: 4px; }
.mt-ops { display: flex; gap: 12px; font-size: 17px; }

.mine-wrap { padding: 0 12px; }
.mine-stats {
  background: #fff;
  border-radius: 14px;
  display: flex;
  padding: 14px 0;
  margin-top: -16px;
  box-shadow: var(--shadow);
  position: relative;
}
.ms-item { flex: 1; text-align: center; }
.ms-num { font-size: 19px; font-weight: 800; color: var(--text); }
.ms-num i { font-style: normal; font-size: 10px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.ms-city { font-size: 15px; }
.ms-label { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }

.mine-block {
  background: #fff;
  border-radius: 14px;
  padding: 13px;
  margin-top: 10px;
  box-shadow: var(--shadow);
}
.mb-title { font-size: 14px; font-weight: 700; padding-bottom: 8px; }
.mb-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mg-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 0; cursor: pointer;
}
.mg-item:active { transform: scale(0.94); }
.mg-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mg-label { font-size: 10.5px; color: var(--text-2); }
.mine-about { text-align: center; padding: 26px 0 14px; }
.mine-about .ma-logo { font-size: 12px; font-weight: 800; color: var(--green); }
.mine-about .ma-desc { font-size: 10px; color: var(--text-4); margin-top: 5px; }

/* ---- 我的 (旧版兼容, 可弃) ---- */
.mine-header {
  background: linear-gradient(135deg,#00b378 0%,#00a862 60%,#009160 100%);
  padding: 30px 20px 26px;
  display: flex; align-items: center; gap: 14px;
}
.mh-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.mh-info { color: #fff; }
.mh-name { font-size: 17px; font-weight: 700; }
.mh-loc { font-size: 11.5px; opacity: .88; margin-top: 5px; cursor: pointer; }
.mine-card {
  background: var(--card);
  border-radius: 14px;
  margin: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mc-row {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 15px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  font-size: 14px;
}
.mc-row:last-child { border-bottom: none; }
.mc-row:active { background: #fafafa; }
.mc-ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.mc-txt { flex: 1; font-weight: 500; }
.mc-val { font-size: 11.5px; color: var(--text-3); }
.mc-arrow { color: var(--text-4); font-size: 16px; }
.mine-about { text-align: center; padding: 26px 0 10px; }
.ma-logo { font-size: 15px; font-weight: 800; color: var(--green); }
.ma-desc { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.ma-ver { font-size: 10px; color: var(--text-4); margin-top: 7px; }

/* ---- 详情弹窗增强 ---- */
.detail-panel .detail-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.df-info { flex: 1; font-size: 12px; color: var(--text-3); }
.df-add {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.df-add.on { background: var(--green-soft); color: var(--green); }
.dd-hero {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  display: flex; flex-direction: column; align-items: center;
}
.dd-img {
  width: 92px; height: 92px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.dd-img.cat-veg    { background: linear-gradient(135deg,#e8f9f0,#d2f2e0); }
.dd-img.cat-fruit  { background: linear-gradient(135deg,#fff4dd,#ffe8c2); }
.dd-img.cat-meat   { background: linear-gradient(135deg,#ffe9e9,#ffd6d6); }
.dd-img.cat-sea    { background: linear-gradient(135deg,#e5f4ff,#d0ebff); }
.dd-img.cat-grain  { background: linear-gradient(135deg,#f7f0e3,#efe4cf); }
.dd-img.cat-dairy  { background: linear-gradient(135deg,#f5edfd,#e9dcfb); }
.dd-img.cat-snack  { background: linear-gradient(135deg,#ffe9f3,#ffd3e7); }
.dd-img.cat-daily  { background: linear-gradient(135deg,#eef1f5,#e0e6ed); }
.dd-price-line {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 11px;
}
.dd-price { color: var(--red); font-size: 30px; font-weight: 800; line-height: 1; }
.dd-price i { font-style: normal; font-size: 15px; font-weight: 600; }
.dd-price em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--text-3); }
.dd-badge {
  background: linear-gradient(120deg,#ff7a45,#ff4d4f);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 9px;
}
.dd-max { font-size: 11px; color: var(--text-3); text-decoration: line-through; }
.dd-sub { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* ============================================
   首页七鲜版式(v12): 白顶栏/搜索条/实物banner/专区
   ============================================ */
.home-topbar {
  background: #fff;
  padding: 12px 16px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.ht-loc { font-size: 15px; font-weight: 700; color: var(--text); }
.ht-caret { font-size: 10px; color: var(--text-3); font-weight: 400; }
.ht-msg { font-size: 12px; color: var(--text-2); }
.home-searchbar {
  background: #fff;
  padding: 4px 16px 12px;
  display: flex; align-items: center; gap: 10px;
}
.hs-wrap {
  flex: 1;
  background: #f2f3f5;
  border-radius: 17px;
  height: 34px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 13px;
  font-size: 13px; color: var(--text-3);
}
.hs-btn { font-size: 14px; font-weight: 700; color: var(--green); }

.banner-main {
  position: relative;
  margin: 4px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  height: 118px;
  cursor: pointer;
}
.banner-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.banner-main-mask {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,75,49,0.75) 30%, rgba(0,75,49,0.06) 78%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 18px; align-items: flex-start;
}
.bm-title { color: #fff; font-size: 19px; font-weight: 800; }
.bm-sub { color: #eafff5; font-size: 11.5px; margin-top: 4px; }
.bm-chip {
  color: #fff; font-size: 10px;
  background: rgba(31,157,112,0.9);
  padding: 3px 9px; border-radius: 10px;
  margin-top: 8px;
}

.cat-entry-card {
  background: #fff;
  margin: 10px 12px 0;
  border-radius: 14px;
  padding: 8px 4px;
}
.cat-entry-grid { grid-template-columns: repeat(5, 1fr); }

.zone-row { display: flex; gap: 10px; margin: 10px 12px 0; }
.zone-card {
  flex: 1;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}
.zone-card:active { transform: scale(0.97); }
.zone-fresh { background: linear-gradient(160deg,#e8f7f0,#d9f5e6); }
.zone-promo { background: linear-gradient(160deg,#fff3e0,#ffe8c2); }
.z-name { font-size: 15px; font-weight: 800; }
.zone-fresh .z-name { color: #007a52; }
.zone-promo .z-name { color: #c2571a; }
.z-sub { font-size: 10px; margin-top: 1px; }
.zone-fresh .z-sub { color: #59997f; }
.zone-promo .z-sub { color: #c99a6c; }
.z-items { display: flex; gap: 8px; margin-top: 9px; }
.z-mini {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
}
.z-mini img {
  width: 100%; height: 46px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.z-price { font-size: 12px; font-weight: 800; color: var(--red); margin-top: 4px; }

.rec-big {
  text-align: center;
  font-size: 20px; font-weight: 800;
  margin: 20px 0 0;
}
.rec-big-sub {
  text-align: center;
  font-size: 9px; color: #d8d8d8;
  letter-spacing: 3px;
  margin-top: 2px;
}

/* 瀑布卡增强 */
.wf-name { display: flex; align-items: flex-start; gap: 4px; }
.wf-tag {
  flex-shrink: 0;
  font-size: 8px; color: var(--green); font-weight: 700;
  border: 0.8px solid var(--green);
  padding: 0 4px; border-radius: 4px;
  margin-top: 2px;
}
.wf-date { font-size: 9px; color: #b5b5b5; padding: 0 10px; margin-top: 2px; }
.wf-bottom { padding: 4px 10px 10px; }

/* ============================================
   分类页七鲜版式(v12): 圆形横滑/排序/日期/结算条
   ============================================ */
.round-strip {
  display: flex; gap: 13px;
  padding: 10px 14px;
  background: #fff;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.round-strip::-webkit-scrollbar { display: none; }
.rc-item {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
}
.rc-img {
  width: 44px; height: 44px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid transparent;
}
.rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-item span { font-size: 10px; color: var(--text-2); white-space: nowrap; }
.rc-item.on .rc-img { border-color: var(--green); }
.rc-item.on span { color: var(--green); font-weight: 700; }

.cm-sort {
  display: flex; gap: 16px;
  padding: 2px 2px 6px;
  font-size: 12px; color: var(--text-2);
}
.sort-item { cursor: pointer; }
.sort-item.on { color: var(--green); font-weight: 700; }

.cl-date { font-size: 9px; color: #b5b5b5; margin-top: 3px; }

.cat-bar {
  position: sticky;
  bottom: 56px;
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  z-index: 40;
  cursor: pointer;
}
.cb-info { display: flex; align-items: center; gap: 8px; }
.cb-ico { font-size: 18px; }
.cb-total { font-size: 16px; font-weight: 800; color: var(--red); line-height: 1.1; }
.cb-tip { font-size: 9px; color: var(--text-3); }
.cb-go {
  background: var(--green);
  color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 10px 20px;
  border-radius: 20px;
}

/* ============================================
   比价页v13: 结论卡 + 可展开店内比价
   ============================================ */
.cc-row { display: flex; gap: 10px; margin-bottom: 10px; }
.cc-card {
  flex: 1;
  border-radius: 12px;
  padding: 11px;
}
.cc-card.cc-green { background: linear-gradient(160deg,#e8f7f0,#d9f5e6); }
.cc-card.cc-orange { background: linear-gradient(160deg,#fff3e0,#ffe8c2); }
.cc-label { font-size: 10px; font-weight: 700; }
.cc-green .cc-label { color: #00a862; }
.cc-orange .cc-label { color: #c2571a; }
.cc-name { font-size: 13px; font-weight: 800; margin-top: 3px; white-space: nowrap; overflow: hidden; }
.cc-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.shop-card-wrap { margin-bottom: 10px; }
.shop-card-wrap .shop-card { margin-bottom: 0; cursor: pointer; }
.sc-arrow { font-size: 12px; color: var(--text-4); margin-left: 6px; flex-shrink: 0; }

.si-wrap { background: #fafbfc; border-radius: 10px; padding: 4px 10px 8px; margin-top: 10px; }
.si-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f2f2f2;
}
.si-row:last-of-type { border-bottom: none; }
.si-info { flex: 1; min-width: 0; }
.si-name { font-size: 12.5px; font-weight: 600; }
.si-lowest, .si-higher {
  font-size: 9px; font-weight: 600;
  padding: 1px 5px; border-radius: 6px;
  display: inline-block; margin-top: 2px;
}
.si-lowest { background: #e8f7f0; color: #00a862; }
.si-higher { background: #fff3e0; color: #ff7a00; }
.si-price { font-size: 14px; font-weight: 800; color: var(--red); flex-shrink: 0; }
.si-price .rmb { font-size: 9px; }
.si-price .unit { font-size: 9px; font-weight: 400; color: var(--text-3); }
.si-navrow { display: flex; justify-content: flex-end; padding-top: 6px; }

/* ============================================
   今日菜价速览 + 分享海报(v16)
   ============================================ */
.today-card { margin-top: 10px; }
.tc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.tc-updated { font-size: 10.5px; color: var(--green); font-weight: 600; }
.today-strip {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.today-strip::-webkit-scrollbar { display: none; }
.tc-card {
  flex-shrink: 0;
  width: 118px;
  background: #f8faf9;
  border: 1px solid #eef2f0;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.tc-card:active { transform: scale(0.97); }
.tc-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.tc-price { color: var(--red); font-size: 20px; font-weight: 800; margin-top: 4px; }
.tc-price .rmb { font-size: 11px; }
.tc-price .unit { font-size: 10px; font-weight: 400; color: var(--text-3); }
.tc-shop {
  font-size: 10px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
}
.tc-empty { font-size: 12px; color: var(--text-3); padding: 10px; }

.share-btn {
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(120deg,#ff9500,#ff6a00);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.share-btn:active { transform: scale(0.98); }

.poster-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}
.poster-box { text-align: center; max-width: 92%; }
.poster-box img {
  max-width: 100%;
  max-height: 62vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.poster-tip { color: #fff; font-size: 13px; margin-top: 12px; }
.poster-btns { display: flex; gap: 12px; margin-top: 12px; justify-content: center; }
.poster-btns button {
  background: #00a862;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.poster-btns button:last-child { background: rgba(255,255,255,0.2); }

/* ============================================
   图标精美化: Twemoji插画 + 光泽容器
   ============================================ */
/* 实物照片(商品/分类通用) */
.real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  background: #f7f8fa;
}
.real-img.round { border-radius: 50%; }
.pic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pic img {
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.14));
  animation: picIn .35s cubic-bezier(0.22,1,0.36,1);
}
@keyframes picIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* CDN失败时降级显示的文字emoji */
.pic .fb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pic img[data-ok] ~ .fb { display: none; }

/* 图片容器统一光泽(左上高光 + 底部微暗) */
.wf-img::before, .cl-img::before, .dd-img::before, .ce-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.65), rgba(255,255,255,0) 52%),
    linear-gradient(to top, rgba(0,0,0,0.045), rgba(0,0,0,0) 45%);
  pointer-events: none;
}
.wf-img, .cl-img, .dd-img, .ce-icon { position: relative; overflow: hidden; }
/* 实物图容器: 去掉彩色底, 图片铺满 */
.wf-img .real-img, .cl-img .real-img, .dd-img .real-img, .ce-icon .real-img {
  border-radius: 0;
}
.ce-icon .real-img.round { border-radius: 50%; }
.wf-img { padding: 0; }
.wf-img .real-img { height: 108px; }
.cl-img { padding: 0; overflow: hidden; }
.hot-ico { padding: 0; overflow: hidden; }
.dd-img .real-img { height: 92px; }
.ci-img .real-img { height: 54px; }

/* banner实物图 */
.banner-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,75,49,0.72) 30%, rgba(0,75,49,0.08) 75%);
}

/* 购物车小图配色底 */
.ci-img.cat-veg    { background: linear-gradient(135deg,#e8f9f0,#d2f2e0); }
.ci-img.cat-fruit  { background: linear-gradient(135deg,#fff4dd,#ffe8c2); }
.ci-img.cat-meat   { background: linear-gradient(135deg,#ffe9e9,#ffd6d6); }
.ci-img.cat-sea    { background: linear-gradient(135deg,#e5f4ff,#d0ebff); }
.ci-img.cat-grain  { background: linear-gradient(135deg,#f7f0e3,#efe4cf); }
.ci-img.cat-dairy  { background: linear-gradient(135deg,#f5edfd,#e9dcfb); }
.ci-img.cat-snack  { background: linear-gradient(135deg,#ffe9f3,#ffd3e7); }
.ci-img.cat-daily  { background: linear-gradient(135deg,#eef1f5,#e0e6ed); }

/* ---- banner装饰:贴纸 + 光斑 ---- */
.banner-slide { overflow: hidden; }
.bs-deco {
  position: absolute;
  right: 18px; bottom: -4px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.22));
  transform: rotate(6deg);
}
.bs-deco .pic img { animation: decoFloat 3.2s ease-in-out infinite; }
@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}
.bs-blob {
  position: absolute;
  right: -34px; top: -34px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.bs-blob.b2 {
  right: auto; left: -26px; top: auto; bottom: -38px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.09);
}
.bs-txt { position: relative; z-index: 1; }

/* ============================================
   历史价格走势 + 涨跌标记
   ============================================ */
.trend-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}
.trend-tag.down { background: #e8f7f0; color: #00a862; }
.trend-tag.up   { background: #fff1f0; color: #ff4d4f; }
.trend-tag.flat { background: #f5f5f5; color: #8c8c8c; }

.spark-box {
  margin-top: 12px;
  width: 100%;
  background: #fafbfc;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  padding: 10px 12px 8px;
}
.spark-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spark-svg { width: 100%; height: 56px; display: block; margin-top: 6px; }
.spark-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-4);
  margin-top: 3px;
}
.spark-empty {
  font-size: 11px;
  color: var(--text-3);
  display: block;
  text-align: center;
  padding: 6px 0;
}

/* ============================================
   店面端批量导入
   ============================================ */
.fab2 {
  bottom: 92px;
  background: #fff;
  color: #ff8c42;
  border: 1.5px solid #ffd9c2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  font-size: 20px;
}
.fab2:active { background: #fff7f2; }
textarea.form-input { resize: vertical; font-family: inherit; line-height: 1.7; }

/* ============================================
   总后台统计报表
   ============================================ */
.rank-head {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 6px 16px;
  font-size: 11px;
  color: var(--text-3);
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

/* 榜单卡加小图标位 */
.hot-card { display: flex; flex-direction: column; }
.hot-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff, #fff3e2);
  box-shadow: inset 0 0 0 1px #ffe7cc;
}


/* ============================================
   v18 大厂比例精调: 大字号/大留白/悬浮胶囊Tab
   ============================================ */

/* 悬浮胶囊底栏(七鲜同款) */
.tabbar {
  bottom: 10px;
  width: calc(100% - 24px);
  max-width: 456px;
  height: 62px;
  border: none;
  border-radius: 31px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}
.page { padding-bottom: 100px; }
.tab-item .ti-ico { font-size: 22px; }
.tab-item .ti-txt { font-size: 10.5px; }

/* 首页顶栏与搜索 */
.home-topbar { padding: 14px 16px 8px; }
.home-topbar .ht-loc, .home-topbar .ht-loc * { font-size: 16px; }
.home-searchbar { padding: 4px 16px 14px; }
.hs-wrap { height: 38px; border-radius: 19px; background: #fff; border: 1px solid #e8e8e8; }
.hs-wrap .hs-ph { font-size: 14px; }
.hs-btn { font-size: 15px; }

/* Banner 更高 */
.banner-main { height: 150px; margin: 6px 16px 0; border-radius: 16px; }
.banner-main-mask { height: 150px; padding: 0 22px; border-radius: 16px; }
.bm-title { font-size: 23px; }
.bm-sub { font-size: 13px; margin-top: 6px; }
.bm-chip { font-size: 11px; margin-top: 10px; }

/* 卡片统一大边距 */
.cat-entry-card, .home-card, .today-card { margin-left: 16px; margin-right: 16px; border-radius: 16px; }
.zone-row { margin: 12px 16px 0; }
.zone-card { padding: 14px; border-radius: 16px; }
.z-name { font-size: 16px; }
.z-mini img { height: 52px; border-radius: 10px; }
.z-price { font-size: 13px; }

/* 分类宫格 */
.cat-entry-card { padding: 10px 4px; }
.ce-item { padding: 8px 0 10px; }
.ce-icon { width: 54px; height: 54px; border-radius: 27px; overflow: hidden; }
.ce-icon .real-img { width: 100%; height: 100%; }
.ce-name { font-size: 12.5px; margin-top: 6px; }

/* 今日菜价 */
.tc-card { width: 132px; padding: 12px; border-radius: 14px; }
.tc-name { font-size: 14px; }
.tc-price { font-size: 22px; margin-top: 5px; }
.tc-shop { font-size: 10.5px; margin-top: 4px; }
.today-card .hc-title { font-size: 16px; }
.tc-updated { font-size: 11px; }

/* 为你推荐 */
.rec-big { font-size: 22px; margin-top: 24px; }
.rec-big-sub { font-size: 10px; margin-top: 3px; }
.waterfall { gap: 12px; }
.wf-card { border-radius: 14px; padding: 10px; }
.wf-img { height: 130px !important; border-radius: 12px; }
.wf-name { font-size: 14px; margin-top: 9px; }
.wf-tag { font-size: 9px; }
.wf-meta { font-size: 11px; margin-top: 4px; }
.wf-date { font-size: 10px; margin-top: 3px; }
.wf-price { font-size: 20px; }
.wf-bottom { padding: 6px 0 4px; }

/* 分类页 */
.cat-top-search { padding: 12px 16px; }
.cts-wrap { height: 38px; border-radius: 19px; }
.round-strip { padding: 12px 16px; gap: 15px; }
.rc-img { width: 50px; height: 50px; border-radius: 25px; }
.rc-item span { font-size: 11px; }
.cat-side { width: 92px; }
.cs-item { padding: 16px 8px; font-size: 13.5px; }
.cat-main { padding: 0 12px; }
.cm-chips { padding: 12px 2px 8px; }
.cm-chip { font-size: 12.5px; padding: 6px 13px; }
.cl-card { padding: 12px 0; }
.cl-img { width: 72px; height: 72px; border-radius: 12px; }
.cl-name { font-size: 15px; }
.cl-meta { font-size: 11.5px; margin-top: 5px; }
.cl-price { font-size: 18px; }
.cat-bar { padding: 11px 16px; }

/* 比价页 */
.page-head { padding: 18px 16px 12px; }
.ph-title { font-size: 19px; }
.shop-card-wrap { margin-bottom: 12px; }
.shop-card { padding: 16px; border-radius: 16px; }
.shop-logo { width: 52px; height: 52px; border-radius: 13px; font-size: 20px; }
.shop-info { margin-left: 13px; }
.si-row { padding: 9px 0; }
.si-name { font-size: 13px; }

/* 购物车 */
.cart-head { padding: 18px 16px 10px; }
.cart-item { padding: 14px; border-radius: 14px; }
.ci-img { width: 60px; height: 60px; }
.ci-name { font-size: 15px; }

/* 我的 */
.mine-top { padding: 30px 18px 24px; }

/* 详情弹层 */
.dd-img { width: 100px; height: 100px; border-radius: 20px; }
.dd-price { font-size: 32px; }

/* 阴影更柔和 */
:root { --shadow: 0 3px 14px rgba(0, 0, 0, 0.05); }


/* ============================================
   关注商品 + 走势(v19)
   ============================================ */
.df-fav {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fafafa;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
}
.df-fav.on { background: #fff1f0; border-color: #ffc2c7; }
.fl-list { display: flex; flex-direction: column; }
.fl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 2px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.fl-info { flex: 1; min-width: 0; }
.fl-name { font-size: 13.5px; font-weight: 600; }
.fl-sub { font-size: 11px; color: #8c8c8c; margin-top: 2px; }
.fl-down, .fl-up, .fl-flat {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 8px;
}
.fl-down { background: #e8f7f0; color: #00a862; }
.fl-up { background: #fff1f0; color: #ff4d4f; }
.fl-flat { background: #f5f5f5; color: #8c8c8c; }
.fl-rm { color: #c8c8c8; font-size: 12px; padding: 4px; }

/* 搜索历史 */
.search-hist { padding: 8px 2px; }
.sh-title { font-size: 11px; color: #bfbfbf; margin-bottom: 6px; display: flex; justify-content: space-between; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip {
  background: #f7f8fa;
  border-radius: 14px;
  padding: 5px 13px;
  font-size: 12.5px;
  color: #595959;
  cursor: pointer;
}

/* 详情走势(网页版) */
.spark-box {
  margin-top: 12px;
  width: 100%;
  background: #fafbfc;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  padding: 10px 12px 8px;
}
.spark-head {
  font-size: 12px; font-weight: 600; color: #595959;
  display: flex; justify-content: space-between; align-items: center;
}
.spark-svg { width: 100%; height: 56px; display: block; margin-top: 6px; }
.spark-axis {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #bfbfbf; margin-top: 3px;
}


/* ============================================
   v20: 分类宫格4等分均匀 + 大图标
   ============================================ */
.cat-entry-grid { grid-template-columns: repeat(4, 1fr); }
.ce-item { padding: 12px 0 12px; }
.ce-icon { width: 64px; height: 64px; border-radius: 32px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.ce-name { font-size: 13px; margin-top: 8px; font-weight: 500; }


/* ============================================
   v21: 专区卡改白底(协调不抢镜, 参考七鲜)
   ============================================ */
.zone-fresh, .zone-promo {
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #f5f6f8;
}
.zone-fresh .z-name { color: #00a862; }
.zone-fresh .z-sub { color: #9db8ad; }
.zone-promo .z-name { color: #ff7a00; }
.zone-promo .z-sub { color: #d9b28c; }
.z-mini { background: #f8faf9; }


/* ============================================
   v22: 分类页商品卡七鲜化
   ============================================ */
.cl-cards { display: flex; flex-direction: column; gap: 12px; }
.cl-cards .cl-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: none;
  box-shadow: var(--shadow);
}
.cl-cards .cl-img {
  width: 104px !important;
  height: 104px !important;
  border-radius: 12px;
  flex-shrink: 0;
}
.cl-cards .cl-info { flex: 1; min-width: 0; margin: 0; }
.cl-title-row { display: flex; align-items: flex-start; gap: 6px; }
.cl-badge {
  flex-shrink: 0;
  background: #00a862;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  margin-top: 1px;
}
.cl-title2 {
  font-size: 15.5px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cl-sell { font-size: 12.5px; color: #595959; margin-top: 6px; }
.cl-sell i { font-style: normal; color: #e0e0e0; margin: 0 4px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.cl-tag-gray {
  background: #f5f6f8;
  color: #8c8c8c;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 5px;
}
.cl-views { font-size: 11.5px; color: #ff7a00; font-weight: 600; }
.cl-pricerow {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 10px;
}
.cl-price-big { color: #ff4d4f; font-size: 24px; font-weight: 800; line-height: 1; }
.cl-price-big i { font-style: normal; font-size: 14px; font-weight: 700; }
.cl-price-big em { font-style: normal; font-size: 11px; font-weight: 400; color: #8c8c8c; }
.cl-add {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: #00a862;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cl-add.on { background: #e8f7f0; color: #00a862; }
.cl-add:active { transform: scale(0.88); }

/* 左导航加大 */
.cat-side { width: 96px; }
.cs-item { padding: 17px 6px; font-size: 14px; }

/* 左侧导航红条加粗 */
.cs-item.active::before { height: 20px; width: 4px; }


/* ============================================
   v23: banner 左文右图分栏(七鲜式)
   ============================================ */
.banner-split {
  display: flex;
  align-items: stretch;
  height: 156px;
  padding: 0;
}
.bs-left {
  width: 47%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #007a52 0%, #006945 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 6px 0 20px;
  border-radius: 16px 0 0 16px;
}
.bs-brand {
  color: #a8f0cf;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.bs-left .bm-title {
  font-size: 20px;
  line-height: 1.3;
}
.bs-left .bm-sub { font-size: 11.5px; margin-top: 6px; }
.bs-left .bm-chip { font-size: 10px; margin-top: 10px; background: rgba(255, 255, 255, 0.16); }
.bs-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 0 16px 16px 0;
}
.bs-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  display: block;
}
.bs-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #006945 0%, rgba(0, 105, 69, 0) 22%);
}

.bs-left { width: 50%; padding: 0 4px 0 22px; }
.bs-left .bm-title { font-size: 18px; }
.bs-left .bm-sub { font-size: 11px; }


/* ============================================
   v24: banner满铺图+左侧渐变淡出(底部无硬边)
   ============================================ */
.banner-main { height: 156px; }
.banner-main img {
  object-position: 78% 50%;
}
.banner-main-mask {
  height: 156px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(93deg,
    rgba(0, 82, 54, 0.88) 0%,
    rgba(0, 82, 54, 0.55) 38%,
    rgba(0, 82, 54, 0.12) 68%,
    rgba(0, 82, 54, 0) 88%);
}
.bs-brand { margin-bottom: 10px; }


/* ============================================
   v25: banner回退v17样式(u1底图), 遮罩调整
   ============================================ */
.banner-main { height: 150px; margin: 8px 16px 0; }
.banner-main img { object-position: center 40%; }
.banner-main-mask {
  height: 150px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(100deg,
    rgba(0, 105, 65, 0.88) 0%,
    rgba(0, 105, 65, 0.62) 40%,
    rgba(0, 105, 65, 0.22) 68%,
    rgba(0, 105, 65, 0) 90%);
}
.bs-brand { display: none; }


/* ============================================
   v26: banner文字严格左对齐
   ============================================ */
.banner-main-mask {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding-left: 22px;
}
.banner-main-mask .bm-title,
.banner-main-mask .bm-sub,
.banner-main-mask .bm-chip {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}
.banner-main-mask .bm-chip { margin-top: 10px; }


/* ============================================
   v27: 底图u3 + 文字左下方 + 底部渐变
   ============================================ */
.banner-main { height: 156px; }
.banner-main img { object-position: center 50%; }
.banner-main-mask {
  height: 156px;
  padding: 0 22px 14px;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  background: linear-gradient(180deg,
    rgba(0, 82, 54, 0.10) 0%,
    rgba(0, 82, 54, 0.35) 50%,
    rgba(0, 62, 41, 0.82) 100%);
}
.banner-main-mask .bm-title { font-size: 22px; }
.banner-main-mask .bm-sub { font-size: 12.5px; margin-top: 5px; }
.banner-main-mask .bm-chip { font-size: 10.5px; margin-top: 9px; background: rgba(255, 255, 255, 0.2); }


/* ============================================
   v28: 底图U2 + 文字上方偏左 + 白字
   ============================================ */
.banner-main { height: 156px; }
.banner-main img { object-position: center 45%; }
.banner-main-mask {
  height: 156px;
  padding: 16px 22px 14px;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(180deg,
    rgba(0, 70, 46, 0.72) 0%,
    rgba(0, 70, 46, 0.38) 55%,
    rgba(0, 70, 46, 0.10) 100%);
}
.banner-main-mask .bm-title { font-size: 22px; color: #fff; }
.banner-main-mask .bm-sub { font-size: 12.5px; margin-top: 5px; color: #eafff5; }
.banner-main-mask .bm-chip {
  font-size: 10.5px; margin-top: 9px;
  background: rgba(255, 255, 255, 0.22); color: #fff;
}


/* ============================================
   v29: 更新徽章融入背景, 不抢镜
   ============================================ */
.banner-main-mask .bm-chip {
  background: rgba(0, 105, 69, 0.55);
  color: #eafff5;
  margin: 9px 0 0;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px;
}


/* ============================================
   v30: 遮罩改中性深色, 去绿叠加
   ============================================ */
.banner-main-mask {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0.08) 100%);
}
.banner-main-mask .bm-chip {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}
