/* ===== Design System Tokens ===== */
:root {
  --color-bg: #f7f3f0;
  --color-card: #ffffff;
  --color-text-primary: #2b2624;
  --color-text-secondary: #736863;
  --color-text-tertiary: #a79a94;
  --color-price-red: #F5333F;
  --color-tag-red: #F5333F;
  --color-star-yellow: #ffc93d;
  --color-header-bg: rgba(255, 255, 255, 0.96);
  --color-border: rgba(236, 109, 96, 0.12);
  --color-badge-orange: #ff8a3d;
  --color-badge-coral: #ff7e6e;
  --color-success: #52c41a;
  --color-warning: #fa8c16;
  --color-info: #1890ff;

  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --radius-card: 5px;
  --radius-tag: 4px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --transition-base: all 0.22s ease;
  --gradient-primary: linear-gradient(135deg, #ff6b60, #F5333F);
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===== iOS 风格滚动条：2px 极细，默认隐藏、滚动渐显、停止渐隐 ===== */
::-webkit-scrollbar { width: 2px; height: 2px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.32);
  border-radius: 999px;
  opacity: 0;
  transition: opacity .25s ease;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.45); }
html.sb-active::-webkit-scrollbar-thumb, body.sb-active::-webkit-scrollbar-thumb { opacity: 1; }
.sb-active::-webkit-scrollbar-thumb { opacity: 1; }
html, body {
  font-family: var(--font-family);
  background: #f5f1ee;
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Mobile Shell ===== */
.mobile-shell {
  max-width: 414px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f7f3f0;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* ===== Status Bar ===== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 100;
}
.status-bar .left { display: flex; align-items: center; gap: 6px; }
.status-bar .time { font-size: 14px; font-weight: 700; }
.status-bar .id-info { font-size: 10px; color: var(--color-text-tertiary); font-weight: 400; }
.status-bar .status-icons { display: flex; align-items: center; gap: 5px; }
.status-bar .status-icons svg { width: 16px; height: 16px; }

/* ===== User Info Header ===== */
.user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 12px;
  background: var(--color-header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}
.user-header .user-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-header .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F5333F;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}
.user-header .user-info .user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.user-header .user-info .user-credit {
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
}
.user-header .user-info .user-credit .credit-value {
  color: var(--color-price-red);
  font-weight: 700;
  font-size: 14px;
}
.user-header .user-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-header .user-right .header-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff7f5, #f8eeea);
  border: 1px solid rgba(245, 51, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
}
.user-header .user-right .header-icon-btn:active { background: #f2e4de; }
.user-header .user-right .header-icon-btn svg { width: 18px; height: 18px; color: #826d65; }

/* ===== 1+2 Recommendation Module ===== */
.rec-module {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 8px;
  padding: 0;
  margin-top: 8px;
}
/* --- Left: Activity / Ranking Card --- */
.rec-module .rec-left {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(160deg, #fff3e8 0%, #ffe1c4 42%, #ffc992 100%);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-card);
  min-height: 220px;
}
.rec-module .rec-left:active { transform: scale(0.98); }
.rec-module .rec-left-bg {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rec-module .rec-left-bg svg { width: 80%; max-width: 110px; opacity: 0.92; }
.rec-module .rec-left-overlay {
  padding: 0 12px 10px;
}
.rec-module .rec-left-title {
  font-size: 17px;
  font-weight: 700;
  color: #6f372f;
  line-height: 1.3;
}
.rec-module .rec-left-subtitle {
  font-size: 11px;
  color: #93675c;
  margin-top: 2px;
  font-weight: 500;
}
.rec-module .rec-left-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
}
.rec-module .rec-left-dots {
  display: flex;
  gap: 4px;
}
.rec-module .rec-left-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(183, 131, 112, 0.35);
  transition: all 0.3s ease;
}
.rec-module .rec-left-dots span.active {
  width: 14px;
  border-radius: 3px;
  background: #e4393c;
}
.rec-module .rec-left-more {
  font-size: 10px;
  color: #8d6e63;
  font-weight: 600;
}
.rec-module .rec-left-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff6b60, #F5333F);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(228, 57, 60, 0.3);
}

/* --- Right: Stacked Sections --- */
.rec-module .rec-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rec-module .rec-block {
  flex: 1;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 128, 90, 0.08);
}
.rec-module .rec-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.rec-module .rec-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.rec-module .rec-block-more {
  font-size: 10px;
  color: var(--color-text-tertiary);
  cursor: pointer;
}
.rec-module .rec-block-more:active { opacity: 0.6; }
.rec-module .rec-block-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.rec-module .rec-item {
  background: linear-gradient(145deg, #fff9f6, #fff0ea);
  border-radius: 6px;
  padding: 8px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}
.rec-module .rec-item:active { transform: scale(0.96); }
.rec-module .rec-item-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
  overflow: hidden;
}
.rec-module .rec-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.rec-module .rec-item-name {
  font-size: 10px;
  color: var(--color-text-primary);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.rec-module .rec-item-price {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
}
.rec-module .rec-item-price .rp-star { width: 10px; height: 10px; }
.rec-module .rec-item-price .rp-credit { font-size: 11px; font-weight: 700; color: var(--color-price-red); }
.rec-module .rec-item-price .rp-plus { font-size: 9px; color: #cc7e76; }
.rec-module .rec-item-price .rp-cash { font-size: 11px; font-weight: 700; color: var(--color-price-red); }
.rec-module .rec-item-badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 0 0 6px 0;
  background: linear-gradient(135deg, #ff9e4f, #ff6b5d);
}

/* --- Left Card Carousel Slides --- */
.rec-module .rec-left-carousel { position: absolute; inset: 0; overflow: hidden; }
.rec-module .rec-left-track { display: flex; width: 300%; height: 100%; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.rec-module .rec-left-slide { width: calc(100% / 3); height: 100%; display: flex; flex-direction: column; position: relative; }
.rec-module .rec-left-slide .slide-bg { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.rec-module .rec-left-slide .slide-bg svg { width: 60%; max-width: 80px; opacity: 0.88; }
.rec-module .rec-left-slide.s1 { background: linear-gradient(160deg, #fff4e8 0%, #ffe1c2 50%, #ffc58d 100%); }
.rec-module .rec-left-slide.s2 { background: linear-gradient(160deg, #fff0ec 0%, #ffd6cd 50%, #ffb9a8 100%); }
.rec-module .rec-left-slide.s3 { background: linear-gradient(160deg, #fff8ef 0%, #ffe8d4 50%, #ffd4ac 100%); }
.rec-module .rec-left-slide .slide-info { padding: 0 12px 8px; }
.rec-module .rec-left-slide .slide-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.rec-module .rec-left-slide.s1 .slide-title { color: #4e342e; }
.rec-module .rec-left-slide.s2 .slide-title { color: #8b3b36; }
.rec-module .rec-left-slide.s3 .slide-title { color: #915435; }
.rec-module .rec-left-slide .slide-sub { font-size: 11px; margin-top: 2px; font-weight: 500; }
.rec-module .rec-left-slide.s1 .slide-sub { color: #6d4c41; }
.rec-module .rec-left-slide.s2 .slide-sub { color: #b46760; }
.rec-module .rec-left-slide.s3 .slide-sub { color: #ad7555; }

/* --- Modal Footer (2-button) --- */
.modal-footer-btns { display: flex; gap: 10px; }
.modal-footer-btns .buy-btn { flex: 1; }
.modal-footer-btns .cs-btn { flex: 0 0 auto; width: 92px; padding: 12px; background: linear-gradient(180deg, #fff9f7, #fff1ea); color: var(--color-price-red); border: 1.5px solid rgba(245, 51, 63, 0.28); border-radius: 24px; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition-base); display: flex; align-items: center; justify-content: center; gap: 4px; }
.modal-footer-btns .cs-btn svg { width: 16px; height: 16px; }
.modal-footer-btns .cs-btn:active { background: #ffece6; }
.modal-footer-btns .cart-btn { flex: 1; padding: 12px; background: linear-gradient(180deg, #fff8f4, #fff0ea); color: var(--color-price-red); border: 1.5px solid rgba(245, 51, 63, 0.22); border-radius: 24px; font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition-base); }
.modal-footer-btns .cart-btn:active { background: #ffe9e1; }

/* --- Customer Service Chat Page --- */
.cs-overlay { position: fixed; inset: 0; left: 50%; transform: translateX(50%); width: 100%; max-width: 414px; margin-left: -207px; background: #f0f0f0; z-index: 300; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
@media (max-width: 414px) { .cs-overlay { left: 0; margin-left: 0; transform: translateX(100%); } }
.cs-overlay.active { opacity: 1; visibility: visible; transform: translateX(0); }
.cs-header { background: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); z-index: 2; flex-shrink: 0; }
.cs-header .cs-back { width: 32px; height: 32px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; flex-shrink: 0; }
.cs-header .cs-back svg { width: 18px; height: 18px; color: #333; }
.cs-header .cs-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ff9a56, #ff6b00); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.cs-header .cs-info { flex: 1; min-width: 0; }
.cs-header .cs-name { font-size: 15px; font-weight: 700; color: #333; }
.cs-header .cs-status { font-size: 11px; color: #4caf50; display: flex; align-items: center; gap: 3px; }
.cs-header .cs-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4caf50; }
.cs-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.cs-msg { display: flex; gap: 8px; max-width: 85%; animation: csFadeIn 0.3s ease; }
.cs-msg.bot { align-self: flex-start; }
.cs-msg.user { align-self: flex-end; flex-direction: row-reverse; }
@keyframes csFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cs-msg-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: #fff; font-weight: 700; }
.cs-msg.bot .cs-msg-avatar { background: linear-gradient(135deg, #ff9a56, #ff6b00); }
.cs-msg.user .cs-msg-avatar { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.cs-msg-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.cs-msg.bot .cs-msg-bubble { background: #fff; color: #333; border-top-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.cs-msg.user .cs-msg-bubble { background: linear-gradient(135deg, #42a5f5, #1e88e5); color: #fff; border-top-right-radius: 4px; }
.cs-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cs-quick-replies .qr-btn { padding: 7px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition-base); border: 1px solid #ff6b00; color: #ff6b00; background: #fff8f0; white-space: nowrap; }
.cs-quick-replies .qr-btn:active { background: #ff6b00; color: #fff; transform: scale(0.96); }
.cs-time-divider { text-align: center; font-size: 11px; color: #bbb; padding: 4px 0; }
.cs-bottom-bar { background: #fff; border-top: 1px solid #eee; flex-shrink: 0; }
.cs-quick-entries { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #f5f5f5; padding: 0; }
.cs-quick-entries::-webkit-scrollbar { display: none; }
.cs-quick-entries .qe-btn { flex-shrink: 0; padding: 9px 14px; font-size: 12px; font-weight: 500; color: #666; cursor: pointer; border: none; background: transparent; transition: var(--transition-base); display: flex; align-items: center; gap: 4px; border-right: 1px solid #f0f0f0; }
.cs-quick-entries .qe-btn:last-child { border-right: none; }
.cs-quick-entries .qe-btn svg { width: 14px; height: 14px; opacity: 0.7; }
.cs-quick-entries .qe-btn:active { background: #f5f5f5; }
.cs-input-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.cs-input-row input { flex: 1; padding: 9px 14px; border-radius: 20px; border: 1px solid #e0e0e0; font-size: 14px; outline: none; background: #f8f8f8; transition: var(--transition-base); }
.cs-input-row input:focus { border-color: #ff6b00; background: #fff; }
.cs-input-row .cs-send { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ff6b6b, #e4393c); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; flex-shrink: 0; transition: var(--transition-base); }
.cs-input-row .cs-send svg { width: 18px; height: 18px; color: #fff; }
.cs-input-row .cs-send:active { transform: scale(0.92); }

/* ===== My Orders Module ===== */
.orders-module {
  margin: 10px 8px 0;
  background: linear-gradient(160deg, #fff5eb 0%, #ffe8d6 40%, #ffdcc8 100%);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(212, 114, 62, 0.12);
  overflow: hidden;
  position: relative;
}
.orders-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.orders-module-title {
  font-size: 16px;
  font-weight: 700;
  color: #6f372f;
}
.orders-module-link {
  font-size: 13px;
  color: #d4722a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.orders-module-link svg {
  width: 14px;
  height: 14px;
}
.orders-status-row {
  display: flex;
  justify-content: space-around;
  padding: 0 12px 14px;
  position: relative;
  z-index: 1;
}
.orders-status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
  transition: var(--transition-base);
}
.orders-status-item:active {
  transform: scale(0.95);
}
.orders-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 114, 62, 0.15);
}
.orders-status-icon svg {
  width: 22px;
  height: 22px;
  color: #d4722a;
}
.orders-status-label {
  font-size: 12px;
  color: #6f372f;
  font-weight: 500;
}
.orders-recent-section {
  background: rgba(255, 255, 255, 0.65);
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(212, 114, 62, 0.08);
}
.orders-recent-title {
  font-size: 13px;
  color: #736863;
  font-weight: 600;
  margin-bottom: 10px;
}
.orders-recent-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.orders-recent-list::-webkit-scrollbar { display: none; }
.orders-recent-item {
  flex-shrink: 0;
  width: 88px;
  cursor: pointer;
  transition: var(--transition-base);
}
.orders-recent-item:active { transform: scale(0.96); }
.orders-recent-thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: #f5efeb;
  overflow: hidden;
  margin-bottom: 6px;
}
.orders-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.orders-recent-name {
  font-size: 12px;
  color: #2b2624;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.orders-recent-status {
  font-size: 11px;
  color: #52c41a;
  font-weight: 500;
  margin-top: 2px;
}
.orders-recent-status.shipping {
  color: #fa8c16;
}

/* ===== Catalog Section (Tabs + Grid unified) ===== */
.catalog-section {
  margin: 10px 0 0;
  background: #fff;
  border-radius: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.category-tabs {
  display: flex;
  align-items: center;
  padding: 5px 6px;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative; /* 滑块(tab-slider)的定位基准，防止飘到页面其他位置 */
  z-index: 5; /* 建立层叠上下文：Tab 栏整体高于商品卡图片，防止 Tab 文字与商品图层级错乱 */
}
.category-tabs.sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(414px, 100%);
  z-index: 89;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 0;
  margin: 0;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs .tab-item {
  padding: 9px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #736863;   /* 未选中中灰 + 加粗 */
  cursor: pointer;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 25%;
  text-align: center;
  box-sizing: border-box;
  transition: color 0.25s ease;
}
/* 方案1 滑块跟随：高亮胶囊作为独立滑块在 Tab 间平滑滑动（限制在 tabs 容器内，不越界） */
.category-tabs .tab-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4ee, #ffe8e0);
  z-index: 0;
  opacity: 0;
  transition: left 0.28s cubic-bezier(.22,1,.36,1), width 0.28s cubic-bezier(.22,1,.36,1), opacity 0.28s ease;
}
.category-tabs .tab-slider.ready { opacity: 1; }
/* 选中光圈：选中 Tab 时红色柔光扩散一圈；光圈自身不越界（overflow 由 tabs 容器横向滚动裁剪） */
.category-tabs .tab-item.active { color: var(--color-price-red); font-weight: 700; font-size: 17px; }
.category-tabs .tab-item.active::after {
  content: ''; display: block;
  position: absolute; inset: -2px;
  border-radius: 999px;
  pointer-events: none;
  animation: tabGlow .6s ease-out both;
}
@keyframes tabGlow {
  0% { box-shadow: 0 0 0 0 rgba(239,68,85,0.35); }
  100% { box-shadow: 0 0 0 8px rgba(239,68,85,0); }
}
.category-tabs .tab-item.has-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-tabs .tab-item .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}
.category-tabs .tab-item.badge-hot .tab-badge {
  background: linear-gradient(135deg, #ff7a63, #F5333F);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.category-tabs .tab-item.badge-threshold .tab-badge {
  background: linear-gradient(135deg, #fff4db, #ffe4a8);
  color: #a26900;
  box-shadow: inset 0 0 0 1px rgba(255, 187, 52, 0.18);
}
.category-tabs .tab-item.badge-exclusive .tab-badge {
  background: linear-gradient(135deg, #ffeef5, #ffd7e7);
  color: #b23567;
  box-shadow: inset 0 0 0 1px rgba(219, 82, 135, 0.14);
}
.category-tabs .tab-item.active .tab-badge { opacity: 0.96; }
.category-tabs .tab-item:active { opacity: 0.7; }

/* ===== Banner Carousel ===== */
.banner-section { padding: 10px 0 0; position: relative; }
.carousel { position: relative; border-radius: 0; overflow: hidden; box-shadow: 0 18px 36px rgba(197, 97, 68, 0.14); }
.carousel-track { display: flex; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.carousel-track.dragging { transition: none; }
.carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.carousel-slide img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.carousel-slide .banner-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px;
  background: linear-gradient(transparent 12%, rgba(74, 29, 19, 0.72));
  display: flex; justify-content: space-between; align-items: flex-end;
}
.carousel-slide .banner-overlay .banner-text { flex: 1; }
.carousel-slide .banner-overlay .banner-title { font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); letter-spacing: 1px; margin-bottom: 2px; }
.carousel-slide .banner-overlay .banner-subtitle { font-size: 12px; color: rgba(255,255,255,0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
/* banner 按钮：白底红字胶囊（按设计稿统一） */
.carousel-slide .banner-overlay .banner-btn { flex-shrink: 0; padding: 8px 20px; color: #F5333F; border: none; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition-base); }
.carousel-slide .banner-overlay .banner-btn:active { transform: scale(0.95); }
.banner-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 4px; }
.banner-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: #decfc9; transition: all 0.3s ease; cursor: pointer; }
.banner-dots .dot.active { width: 18px; background: var(--color-price-red); }

/* ===== Daily Check-in + Tasks ===== */
.checkin-section {
  margin: 8px 8px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,251,249,0.98));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 12px 12px;
  display: flex;
  gap: 10px;
}
.checkin-left { flex: 1; min-width: 0; }
.checkin-right {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: linear-gradient(135deg, #fff8f4, #ffefe5);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 155, 105, 0.22);
  flex-shrink: 0;
}
.checkin-right:active { transform: scale(0.96); }
.checkin-right .task-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffb14d, #ff7456);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkin-right .task-icon svg { width: 16px; height: 16px; color: #fff; }
.checkin-right .task-label { font-size: 11px; font-weight: 700; color: #ff6b00; white-space: nowrap; }
.checkin-right .task-hint { font-size: 9px; color: #cc5500; opacity: 0.8; white-space: nowrap; }

.checkin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.checkin-header .checkin-title { display: flex; align-items: center; gap: 6px; }
.checkin-header .checkin-title .checkin-icon { width: 18px; height: 18px; color: var(--color-price-red); }
.checkin-header .checkin-title h3 { font-size: 14px; font-weight: 700; color: var(--color-text-primary); }
.checkin-header .checkin-rule { font-size: 11px; color: #ba8c7d; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.checkin-header .checkin-rule svg { width: 12px; height: 12px; }
.checkin-days { display: flex; justify-content: space-between; gap: 2px; }
.checkin-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.checkin-day .day-label { font-size: 10px; color: var(--color-text-tertiary); font-weight: 500; }
.checkin-day .day-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; transition: all 0.3s ease; }
.checkin-day .day-circle .credit-num { font-size: 10px; font-weight: 700; color: var(--color-text-tertiary); }
.checkin-day .day-circle .check-icon { display: none; }
.checkin-day.missed .day-circle { background: #f8f2ef; border: 1.5px dashed #e0c8bf; }
.checkin-day.missed .day-circle .credit-num { color: #ccc; }
.checkin-day.checked .day-circle { background: linear-gradient(135deg, #ff705f, #F5333F); border: none; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
.checkin-day.checked .day-circle .credit-num { display: none; }
.checkin-day.checked .day-circle .check-icon { display: block; width: 14px; height: 14px; color: #fff; }
.checkin-day.checked .day-label { color: var(--color-price-red); font-weight: 600; }
.checkin-day.today .day-circle { background: #fff; border: 2px solid var(--color-price-red); cursor: pointer; }
.checkin-day.today .day-circle .credit-num { color: var(--color-price-red); font-weight: 700; }
.checkin-day.today .day-label { color: var(--color-price-red); font-weight: 700; }
.checkin-day.today.checked .day-circle { animation: none; border: none; }
.checkin-day.future .day-circle { background: #fbf7f5; border: 1.5px solid #f0e2db; }
.checkin-day.future .day-circle .credit-num { color: #bbb; }
.checkin-day.future .day-label { color: #ccc; }
.checkin-footer { margin-top: 8px; display: flex; justify-content: center; }
.checkin-footer .checkin-btn { padding: 7px 36px; background: linear-gradient(135deg, #ff715f, #F5333F); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1); }
.checkin-footer .checkin-btn:active { transform: scale(0.96); }
.checkin-footer .checkin-btn.disabled { background: #e0e0e0; color: #999; box-shadow: none; cursor: default; }
.checkin-footer .checkin-btn.disabled:active { transform: none; }

/* ===== Daily Tasks Modal ===== */
.tasks-panel { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.tasks-panel.active { opacity: 1; visibility: visible; }
.tasks-panel .tasks-content { width: 100%; max-width: 414px; margin: 0 auto; background: var(--color-card); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform 0.3s ease; max-height: 70vh; overflow-y: auto; box-shadow: 0 -20px 40px rgba(70, 34, 24, 0.12); }
.tasks-panel.active .tasks-content { transform: translateY(0); }
.tasks-panel .tasks-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--color-border); }
.tasks-panel .tasks-header h3 { font-size: 16px; font-weight: 700; }
.tasks-panel .tasks-header .close-tasks { width: 28px; height: 28px; border-radius: 50%; background: #f9f1ed; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 16px; color: #876f67; }
.tasks-panel .tasks-list { padding: 12px 16px; }
.tasks-panel .task-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.tasks-panel .task-row:last-child { border-bottom: none; }
.tasks-panel .task-row .task-info { display: flex; align-items: center; gap: 10px; }
.tasks-panel .task-row .task-info .task-emoji { font-size: 20px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #f9f9f9; border-radius: 8px; }
.tasks-panel .task-row .task-info .task-text .task-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.tasks-panel .task-row .task-info .task-text .task-reward { font-size: 11px; color: var(--color-badge-orange); font-weight: 600; }
.tasks-panel .task-row .task-action { padding: 5px 14px; border-radius: 14px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition-base); }
.tasks-panel .task-row .task-action.go { background: linear-gradient(135deg, #ff6f5e, #F5333F); color: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
.tasks-panel .task-row .task-action.go:active { transform: scale(0.95); }
.tasks-panel .task-row .task-action.done { background: #f0f0f0; color: #999; cursor: default; }

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 8px 24px;
}
@keyframes grid-slide-left { from { opacity: 0.35; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes grid-slide-right { from { opacity: 0.35; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.product-grid.slide-left { animation: grid-slide-left 0.24s ease; }
.product-grid.slide-right { animation: grid-slide-right 0.24s ease; }

/* ===== Product Card ===== */
.product-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 128, 90, 0.07);
}
.product-card:active { transform: scale(0.98); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.product-card .image-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: #faf5f1; }
.product-card .image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .image-wrapper .tag { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #ff9f58, #ff715a); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 12px rgba(255, 123, 86, 0.2); }
.product-card .image-wrapper .tag-blue { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #ff8f76, #ef5d67); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 12px rgba(239, 93, 103, 0.18); }
.product-card .image-wrapper .level-tag { position: absolute; top: 6px; right: 6px; font-size: 9px; padding: 2px 7px; border-radius: 999px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.4; }
.product-card .image-wrapper .level-tag.lv5 { background: linear-gradient(135deg, #e8556d, #f4899c); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.product-card .image-wrapper .level-tag.event { background: linear-gradient(135deg, #fa8c16, #ffc53d); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.pd-hero .level-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: 0.3px; z-index: 2; }
.pd-hero .level-tag.lv5 { background: linear-gradient(135deg, #e8556d, #f4899c); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.pd-hero .level-tag.event { background: linear-gradient(135deg, #fa8c16, #ffc53d); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
/* 方案4 光带扫过：所有等级角标（活动限定 + Lv5以上）——高光周期性斜扫表面，金属徽章质感
   2.0s 一轮（更快）；JS 给各角标随机 0~2s 负延迟错开相位（tagShineDelay 类微调） */
.level-tag.event, .level-tag.lv5 { position: absolute; overflow: hidden; }
.level-tag.event::after, .level-tag.lv5::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%; border-radius: inherit;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: tagShine 2s ease-in-out infinite;
  animation-delay: var(--shine-delay, 0s); /* JS 相位错开 */
  pointer-events: none;
}
@keyframes tagShine {
  0% { left: -60%; }
  45%, 100% { left: 130%; }
}
.product-card .card-body { padding: 8px 8px 10px; }
.product-card .card-body .expiry-notice { font-size: 11px; color: var(--color-tag-red); margin-bottom: 2px; line-height: 1.4; }
.product-card .card-body .product-title { font-size: 13px; font-weight: 500; color: var(--color-text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.product-card .card-body .product-subtitle { font-size: 11px; color: var(--color-text-tertiary); line-height: 1.4; margin-bottom: 2px; }
.product-card .card-body .product-features { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
.product-card .card-body .product-features .feature-tag { font-size: 10px; color: #8a7269; background: #f9f1ed; padding: 2px 6px; border-radius: 999px; }
.product-card .card-body .price-row { display: flex; align-items: baseline; gap: 2px; }
.product-card .card-body .price-row .star-icon { width: 14px; height: 14px; flex-shrink: 0; margin-right: 1px; position: relative; top: -1px; }
.product-card .card-body .price-row .credit-amount { font-size: 16px; font-weight: 700; color: var(--color-price-red); }
.product-card .card-body .price-row .plus-sign { font-size: 12px; color: var(--color-price-red); font-weight: 500; }
.product-card .card-body .price-row .cash-price { font-size: 14px; font-weight: 700; color: var(--color-price-red); }
.product-card .card-body .price-row .cash-unit { font-size: 11px; color: var(--color-price-red); font-weight: 500; }

/* ===== Vertical Ad Card ===== */
.ad-card-vertical {
  background: var(--color-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}
.ad-card-vertical:active { transform: scale(0.98); }
.ad-card-vertical .ad-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.ad-card-vertical .ad-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-card-vertical .ad-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff6b60, #F5333F);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.ad-card-vertical .ad-body {
  padding: 8px;
}
.ad-card-vertical .ad-body .ad-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.ad-card-vertical .ad-body .ad-desc {
  font-size: 11px;
  color: var(--color-badge-orange);
  font-weight: 600;
}

/* ===== Detail Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(42, 18, 12, 0.48); z-index: 200; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { width: 100%; max-width: 414px; margin: 0 auto; background: var(--color-card); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform 0.3s ease; max-height: 88vh; overflow-y: auto; box-shadow: 0 -22px 48px rgba(75, 33, 23, 0.16); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-content .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--color-border); }
.modal-content .modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-content .modal-header .close-btn { width: 28px; height: 28px; border-radius: 50%; background: #f9f1ed; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 16px; color: #866d65; }
.modal-content .modal-body { padding: 16px; }
.modal-content .modal-body .modal-image { width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; margin-bottom: 10px; background: linear-gradient(180deg, #fff7f1, #fff1e9); position: relative; }
.modal-media-track { display: flex; width: 300%; height: 100%; transition: transform 0.32s ease; }
.modal-media-slide { width: 33.3333%; height: 100%; flex-shrink: 0; position: relative; }
.modal-media-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-media-card { width: 100%; height: 100%; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(255,243,236,0.98)); }
.modal-media-badge { display: inline-flex; align-items: center; width: fit-content; height: 24px; padding: 0 12px; border-radius: 999px; background: linear-gradient(135deg, #ff8f62, #F5333F); color: #fff; font-size: 11px; font-weight: 700; }
.modal-media-title { font-size: 22px; line-height: 1.2; font-weight: 700; color: #2d2522; max-width: 68%; }
.modal-media-copy { font-size: 12px; line-height: 1.5; color: #8b7871; max-width: 66%; }
.modal-media-product { position: absolute; right: 18px; bottom: 18px; width: 42%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 28px rgba(137, 78, 52, 0.16); }
.modal-media-product img { width: 100%; height: 100%; object-fit: cover; }
.modal-media-tags { display: flex; flex-wrap: wrap; gap: 6px; max-width: 70%; }
.modal-media-tag { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.92); color: #b96b49; font-size: 10px; font-weight: 700; box-shadow: 0 6px 12px rgba(121, 73, 50, 0.08); }
.modal-media-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.modal-media-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(190, 140, 122, 0.3); transition: all 0.24s ease; cursor: pointer; }
.modal-media-dots span.active { width: 18px; border-radius: 999px; background: #F5333F; }
.modal-content .modal-body .modal-price { font-size: 22px; font-weight: 700; color: var(--color-price-red); margin-bottom: 8px; display: flex; align-items: baseline; gap: 2px; }
.modal-content .modal-body .modal-price .modal-credit { font-size: 26px; }
.modal-content .modal-body .modal-desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* --- Detail Inner Tabs --- */
.modal-tabs { display: flex; border-bottom: 1px solid var(--color-border); margin: 12px -16px 0; padding: 0 16px; }
.modal-tabs .mtab { padding: 10px 0; margin-right: 28px; font-size: 14px; font-weight: 500; color: var(--color-text-tertiary); cursor: pointer; position: relative; white-space: nowrap; transition: var(--transition-base); }
.modal-tabs .mtab:last-child { margin-right: 0; }
.modal-tabs .mtab.active { color: var(--color-price-red); font-weight: 700; }
.modal-tabs .mtab.active::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 22px; height: 2.5px; background: var(--color-price-red); border-radius: 2px; }

/* --- Tab Content Area --- */
.modal-tab-content { padding-top: 14px; }
.modal-tab-pane { display: none; }
.modal-tab-pane.active { display: block; }

/* --- Product Detail Long Card --- */
.detail-long { border-radius: 10px; overflow: hidden; }
.detail-long .dl-section { padding: 18px 14px; text-align: center; }
.detail-long .dl-section:nth-child(odd) { background: linear-gradient(180deg, #fffaf4, #fff1e8); }
.detail-long .dl-section:nth-child(even) { background: #fff; }
.detail-long .dl-badge { display: inline-block; background: linear-gradient(135deg, #ff6b60, #F5333F); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 10px; margin-bottom: 10px; }
.detail-long .dl-title { font-size: 17px; font-weight: 700; color: #333; margin-bottom: 4px; line-height: 1.4; }
.detail-long .dl-subtitle { font-size: 12px; color: #999; margin-bottom: 12px; }
.detail-long .dl-hero { width: 100%; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.detail-long .dl-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-long .dl-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.detail-long .dl-feat { background: #fff; border-radius: 8px; padding: 10px; display: flex; align-items: flex-start; gap: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.detail-long .dl-feat-icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #ffb14d, #ff7857); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.detail-long .dl-feat-text .dl-feat-name { font-size: 12px; font-weight: 700; color: #333; }
.detail-long .dl-feat-text .dl-feat-desc { font-size: 10px; color: #999; margin-top: 1px; line-height: 1.3; }
.detail-long .dl-specs { text-align: left; }
.detail-long .dl-specs-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; text-align: center; }
.detail-long .dl-spec-row { display: flex; border-bottom: 1px solid #f0f0f0; padding: 8px 0; font-size: 12px; }
.detail-long .dl-spec-row:last-child { border-bottom: none; }
.detail-long .dl-spec-label { width: 72px; color: #999; flex-shrink: 0; }
.detail-long .dl-spec-value { flex: 1; color: #333; font-weight: 500; }
.detail-long .dl-guarantee { display: flex; justify-content: space-around; padding: 14px 8px; background: linear-gradient(135deg, #fff7f5, #ffede8); border-radius: 8px; margin-top: 10px; }
.detail-long .dl-guarantee-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.detail-long .dl-guarantee-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--color-price-red); display: flex; align-items: center; justify-content: center; }
.detail-long .dl-guarantee-icon svg { width: 16px; height: 16px; color: #fff; }
.detail-long .dl-guarantee-text { font-size: 10px; color: #666; font-weight: 600; }

/* --- Reviews Section --- */
.reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.reviews-summary { display: flex; align-items: center; gap: 8px; }
.reviews-summary .rs-score { font-size: 28px; font-weight: 700; color: var(--color-price-red); }
.reviews-summary .rs-info { display: flex; flex-direction: column; gap: 1px; }
.reviews-summary .rs-stars { display: flex; gap: 2px; }
.reviews-summary .rs-stars svg { width: 12px; height: 12px; }
.reviews-summary .rs-count { font-size: 11px; color: #999; }
.reviews-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.reviews-tags .rtag { padding: 4px 10px; border-radius: 14px; font-size: 11px; font-weight: 500; background: #f9f1ed; color: #7f6a62; cursor: pointer; transition: var(--transition-base); border: none; }
.reviews-tags .rtag.active { background: #fff1ec; color: var(--color-price-red); border: 1px solid #ffd4ca; }
.reviews-tags .rtag:active { transform: scale(0.95); }
.review-item { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.review-item:last-child { border-bottom: none; }
.review-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.review-user-info { flex: 1; min-width: 0; }
.review-user-name { font-size: 13px; font-weight: 600; color: #333; }
.review-user-date { font-size: 10px; color: #bbb; }
.review-stars { display: flex; gap: 1px; }
.review-stars svg { width: 12px; height: 12px; }
.review-comment { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 6px; }
.review-images { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.review-images::-webkit-scrollbar { display: none; }
.review-images .rimg { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.review-empty { text-align: center; padding: 40px 0; color: #ccc; font-size: 13px; }

.modal-content .modal-footer { padding: 12px 16px; border-top: 1px solid var(--color-border); }
.modal-content .modal-footer .buy-btn { width: 100%; padding: 12px; background: linear-gradient(135deg, #ff6d60, #F5333F); color: #fff; border: none; border-radius: 24px; font-size: 16px; font-weight: 700; cursor: pointer; transition: var(--transition-base); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
.modal-content .modal-footer .buy-btn:active { background: linear-gradient(135deg, #f75e52, #dc3349); }

/* ===== Insufficient Credits Modal ===== */
.credit-modal { position: fixed; inset: 0; background: rgba(42, 18, 12, 0.52); z-index: 250; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.28s ease; padding: 24px; }
.credit-modal.active { opacity: 1; visibility: visible; }
.credit-modal .credit-card { width: 100%; max-width: 320px; background: #fff; border-radius: 20px; padding: 28px 22px 22px; transform: scale(0.85); transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; }
.credit-modal.active .credit-card { transform: scale(1); }
.credit-modal .credit-close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border: none; background: transparent; font-size: 22px; color: #999; cursor: pointer; line-height: 1; }
.credit-modal .credit-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, #fff3d6, #ffe5a8); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(255, 184, 0, 0.25); }
.credit-modal .credit-icon svg { width: 36px; height: 36px; }
.credit-modal .credit-title { font-size: 18px; font-weight: 700; color: #222; text-align: center; margin-bottom: 6px; }
.credit-modal .credit-subtitle { font-size: 13px; color: #888; text-align: center; line-height: 1.5; margin-bottom: 16px; }
.credit-modal .credit-status { display: flex; justify-content: space-between; align-items: center; background: #fff8eb; border: 1px solid #ffe2a3; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.credit-modal .credit-status .status-block { display: flex; flex-direction: column; gap: 2px; }
.credit-modal .credit-status .status-label { font-size: 11px; color: #999; }
.credit-modal .credit-status .status-value { font-size: 17px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 4px; }
.credit-modal .credit-status .status-value.lack { color: var(--color-price-red); }
.credit-modal .credit-status .status-divider { width: 1px; height: 28px; background: #ffe2a3; }
.credit-modal .quick-tasks { background: #fcf5f1; border-radius: 12px; padding: 12px; margin-bottom: 18px; }
.credit-modal .quick-tasks-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.credit-modal .quick-tasks-title { font-size: 13px; font-weight: 700; color: #333; }
.credit-modal .quick-tasks-hint { font-size: 11px; color: #ff9500; font-weight: 600; }
.credit-modal .quick-task-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ececec; }
.credit-modal .quick-task-item:last-child { border-bottom: none; }
.credit-modal .quick-task-emoji { width: 32px; height: 32px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.credit-modal .quick-task-info { flex: 1; min-width: 0; }
.credit-modal .quick-task-name { font-size: 13px; font-weight: 600; color: #333; }
.credit-modal .quick-task-desc { font-size: 11px; color: #999; margin-top: 1px; }
.credit-modal .quick-task-reward { font-size: 12px; font-weight: 700; color: var(--color-price-red); flex-shrink: 0; }
.credit-modal .credit-actions { display: flex; gap: 10px; }
.credit-modal .credit-actions button { flex: 1; padding: 12px; border: none; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition-base); }
.credit-modal .credit-actions .btn-cancel { background: #f5eeea; color: #7a6a63; }
.credit-modal .credit-actions .btn-tasks { background: linear-gradient(135deg, #ffb54d, #ff7f58); color: #fff; box-shadow: 0 8px 18px rgba(255, 138, 88, 0.24); }
.credit-modal .credit-actions .btn-tasks:active { transform: scale(0.97); }

/* ===== Toast ===== */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); background: rgba(38, 24, 20, 0.82); color: #fff7f3; padding: 12px 24px; border-radius: 14px; font-size: 14px; z-index: 300; opacity: 0; visibility: hidden; transition: all 0.3s ease; text-align: center; pointer-events: none; box-shadow: 0 12px 26px rgba(0,0,0,0.14); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

/* ===== Bottom Tab Bar ===== */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  background: rgba(255,255,255,0.96);
  display: flex;
  align-items: stretch;
  border-top: 0.5px solid rgba(245, 51, 63, 0.08);
  box-shadow: 0 -8px 24px rgba(112, 77, 61, 0.08);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-tab-bar .btab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.bottom-tab-bar .btab svg {
  width: 24px;
  height: 24px;
  color: #b0b0b0;
  stroke-width: 1.8;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}
.bottom-tab-bar .btab span {
  font-size: 10px;
  color: #b0b0b0;
  font-weight: 500;
  transition: all 0.15s ease;
}
.bottom-tab-bar .btab.active svg { color: var(--color-price-red); }
.bottom-tab-bar .btab.active span { color: var(--color-price-red); font-weight: 700; }
.bottom-tab-bar .btab .btab-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -18px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--color-price-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ===== Page Containers ===== */
.page-container { display: block; }
.page-container.hidden { display: none; }

/* Bottom padding for fixed tab bar */
.product-grid { padding-bottom: 70px; }

/* ===== Messages Page ===== */
.msg-page-header {
  padding: 14px 16px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  border-bottom: 0.5px solid rgba(245, 51, 63, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.msg-list { padding: 10px 10px 70px; }
.msg-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.msg-card:active { transform: scale(0.98); }
.msg-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.msg-card-body { flex: 1; min-width: 0; }
.msg-card-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 3px; }
.msg-card-desc { font-size: 12px; color: #999; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-card-time { font-size: 11px; color: #ccc; margin-top: 6px; }
.msg-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-price-red);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ===== Profile Page ===== */
.profile-header-card {
  background: linear-gradient(135deg, #F5333F, #ff7560);
  padding: 30px 20px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-user-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
}
.profile-user-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-id { font-size: 12px; opacity: 0.85; margin-top: 3px; }
.profile-credit-card {
  background: rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 14px 18px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.profile-credit-label { font-size: 13px; opacity: 0.9; }
.profile-credit-value { font-size: 30px; font-weight: 700; }
.profile-credit-btn {
  padding: 7px 16px;
  background: rgba(255,255,255,0.95);
  color: var(--color-price-red);
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-credit-btn:active { transform: scale(0.96); }
.profile-section { margin: 10px 10px 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; border: 1px solid rgba(255, 128, 90, 0.06); }
.profile-section-title { font-size: 15px; font-weight: 700; padding: 14px 16px 10px; color: #333; }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 8px 16px; }
.profile-grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; cursor: pointer; }
.profile-grid-item:active { opacity: 0.7; }
.profile-grid-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff8f6, #f8efeb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.profile-grid-label { font-size: 12px; color: #666; font-weight: 500; }
.profile-grid-badge {
  position: relative;
}
.profile-grid-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--color-price-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 0.5px solid #f5f5f5;
  cursor: pointer;
  transition: all 0.15s ease;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: #f9f9f9; }
.profile-menu-icon { font-size: 20px; margin-right: 12px; width: 28px; text-align: center; }
.profile-menu-text { flex: 1; font-size: 14px; font-weight: 500; color: #333; }
.profile-menu-arrow { color: #ccc; font-size: 16px; }
.profile-page-bottom { height: 70px; }

/* ===== Final Home Merge Overrides ===== */
html, body {
  background: linear-gradient(180deg, #ffe7e1 0%, #f8f4f1 220px, #f8f4f1 100%);
}
.mobile-shell { background: transparent; }
#pageMessages,
#pageProfile,
#bottomTabBar { display: none !important; }
.status-bar,
.user-header {
  background: transparent;
}
.status-bar { padding-bottom: 4px; }
.user-header {
  padding: 8px 14px 8px;
  display: block;
  border-bottom: none;
}
.user-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.user-header .user-avatar {
  background: linear-gradient(135deg, #ff8d55, #F5333F);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.user-header .user-info .user-name,
.user-header .user-info .user-credit { color: #fff; }
.user-header .user-info .user-credit .credit-value { color: #fff2a2; }
.user-header .user-right .header-icon-btn {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 20px rgba(110, 54, 37, 0.08);
}
.credit-summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 16px 18px 18px;
  background: linear-gradient(135deg, #ff7160 0%, #ff7b60 35%, #ff9762 100%);
  box-shadow: 0 22px 36px rgba(239, 88, 74, 0.22);
  color: #fff;
}
.credit-summary-top,
.credit-summary-body {
  position: relative;
  z-index: 1;
}
.credit-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.credit-summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.credit-summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.credit-summary-tag svg { width: 18px; height: 18px; }
.credit-summary-detail {
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  background: rgba(255,255,255,0.95);
  color: #F5333F;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.credit-summary-detail svg { width: 16px; height: 16px; }
.credit-summary-checkin {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 19px;
  background: rgba(255,255,255,0.95);
  color: #F5333F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(119, 53, 39, 0.08);
}
.credit-summary-checkin svg {
  width: 18px;
  height: 18px;
}
.credit-summary-checkin.checked {
  background: linear-gradient(135deg, #fff3ab, #ffe57d);
  color: #b84322;
}
.credit-summary-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}
.credit-summary-main {
  min-width: 0;
  flex: 1;
}
.credit-summary-value {
  font-size: 58px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -1px;
}
.credit-summary-sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.credit-summary-earn {
  height: 54px;
  padding: 0 22px;
  border-radius: 27px;
  background: linear-gradient(135deg, #fff3ab, #ffe57d);
  color: #b84322;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(158, 74, 28, 0.16);
  flex-shrink: 0;
}
.credit-summary-earn svg { width: 16px; height: 16px; }
.banner-section {
  margin: -107px 8px 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}
.banner-search,
.banner-shortcuts,
.carousel,
.banner-dots {
  position: relative;
  z-index: 1;
}
.banner-search { display: none; }
.banner-search-bar {
  height: 44px;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #555769;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(129, 63, 42, 0.12);
  cursor: pointer;
}
.banner-search-bar svg,
.banner-search-action svg { width: 18px; height: 18px; }
.banner-search-btn {
  height: 44px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.18));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(92, 55, 43, 0.72);
  cursor: pointer;
}
.banner-search-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.75);
  color: #664b40;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel { border-radius: 0; }
.carousel-slide img { aspect-ratio: 16 / 6; }
.banner-dots { padding: 10px 0 0; }
.banner-shortcuts { display: none; }
.banner-shortcut {
  border-radius: 18px;
  padding: 10px 8px 9px;
  background: rgba(255,255,255,0.9);
  text-align: center;
  box-shadow: 0 12px 22px rgba(124, 65, 47, 0.12);
  cursor: pointer;
}
.banner-shortcut-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.banner-shortcut-icon svg { width: 18px; height: 18px; }
.banner-shortcut:nth-child(1) .banner-shortcut-icon { background: linear-gradient(135deg, #ff8e56, #F5333F); }
.banner-shortcut:nth-child(2) .banner-shortcut-icon { background: linear-gradient(135deg, #ffb453, #ff8a4f); }
.banner-shortcut:nth-child(3) .banner-shortcut-icon { background: linear-gradient(135deg, #ff7567, #ff5a63); }
.banner-shortcut:nth-child(4) .banner-shortcut-icon { background: linear-gradient(135deg, #ff9d66, #ff7f4d); }
.banner-shortcut-title { font-size: 12px; font-weight: 700; color: #3a3434; }
.banner-shortcut-sub { margin-top: 2px; font-size: 10px; color: #9f9189; }
.rec-module {
  margin-top: 8px;
  display: block;
  padding: 0 8px;
}
.compact-recommend-card,
.compact-promo-card {
  background: #fff;
  border-radius: 0;   /* 贴边布局：去圆角填满左右 */
  padding: 12px 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 128, 90, 0.08);
  cursor: pointer;
  overflow: hidden;
}
.compact-recommend-card {
  min-height: 126px;
}
.compact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.compact-card-title {
  font-size: 19px;
  font-weight: 500;
  line-height: 32px;
  color: #2d2624;
  white-space: nowrap;
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, sans-serif;
}
.compact-card-more {
  font-size: 12px;
  color: #1A1A1A; /* 黑色：查看更多/进入及 › 符号 */
  font-weight: 400;
  flex-shrink: 0;
}
.exchange-inline-list {
  display: flex;              /* 改 flex 横滑：固定卡宽，露出约 3.5 个商品 */
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.exchange-inline-list::-webkit-scrollbar { display: none; }
.exchange-inline-item {
  flex: 0 0 104px;            /* 固定卡宽 ≈ 屏宽(348内容区)/3.5+间距 */
  min-width: 0;
}
.exchange-inline-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #f8f4f1;
  margin-bottom: 6px;
}
.exchange-inline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exchange-inline-line {
  font-size: 16px;
  line-height: 26px;
  color: #4a3e39;
  font-weight: 400;
  white-space: normal;        /* 允许换行 */
  word-break: break-all;
}
.exchange-inline-cash {
  font-size: 12px;
  line-height: 26px;
  color: #8d7b73;
  font-weight: 400;
  margin-top: 1px;
  white-space: nowrap;
}
.exchange-inline-stock {
  font-size: 10px;
  color: #52c41a;
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.3;
}
.exchange-inline-stock.low {
  color: #fa8c16;
}
.compact-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.compact-promo-card {
  min-height: 126px;
  position: relative;
}
.compact-promo-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #8d7b73;
  margin-bottom: 10px;
}
.compact-promo-thumbs {
  display: flex;
  gap: 8px;
}
.compact-promo-thumb {
  flex: 1;
  min-width: 0;
  height: 62px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #f8f4f1;
}
.compact-promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compact-promo-badge {
  position: absolute;
  right: 6px;
  top: 38px;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.compact-promo-card.hot .compact-promo-badge {
  display: block;
}
.compact-promo-card.newbie .compact-promo-badge {
  display: none;
}
.category-tabs .tab-item { padding: 10px 6px; font-size: 15px; }
.product-card .card-body .meta-row {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: #aa9b94;
}
.product-card .card-body .meta-row .sold-count {
  color: #ef6a58;
  font-weight: 700;
}
.modal-value-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.modal-value-item {
  border-radius: 14px;
  padding: 10px 10px 9px;
  background: linear-gradient(180deg, #fff8f4, #fff2ed);
  border: 1px solid #ffe4d8;
}
.modal-value-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: #27313f;
  font-weight: 700;
}
.modal-value-item span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
  color: #8a7b75;
}
.modal-marketing {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.modal-coupon-card,
.modal-timer-card,
.modal-service-card {
  border-radius: 14px;
  border: 1px solid #ebf1f6;
  background: #f8fbff;
}
.modal-coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff8f2, #fff0eb);
}
.modal-coupon-main strong { font-size: 15px; color: var(--color-price-red); }
.modal-coupon-main span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8f7d77;
}
.modal-coupon-tip {
  margin-top: 4px;
  font-size: 10px;
  color: #b26f5e;
  font-weight: 600;
}
.modal-coupon-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8c50, #ff5c4d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.modal-timer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}
.modal-timer-title { font-size: 12px; color: #7a8798; }
.modal-timer-meta {
  margin-top: 5px;
  font-size: 10px;
  color: #97a3b3;
}
.modal-timer-clock {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--color-price-red);
  font-weight: 700;
  font-size: 15px;
}
.modal-timer-clock span {
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 61, 94, 0.08);
}
.modal-benefit-card {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #fff8f5, #fff1ea);
  border: 1px solid #ffe4d9;
  box-shadow: 0 12px 24px rgba(159, 82, 55, 0.08);
}
.modal-benefit-title {
  font-size: 14px;
  font-weight: 700;
  color: #43322c;
  margin-bottom: 10px;
}
.modal-benefit-title b { color: #F5333F; font-size: 16px; }
.modal-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.modal-benefit-item {
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  padding: 8px 8px 10px;
  min-width: 0;
}
.modal-benefit-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 6px;
}
.modal-benefit-item strong {
  display: block;
  min-height: 32px;
  font-size: 12px;
  line-height: 1.35;
  color: #332926;
  font-weight: 700;
}
.modal-benefit-item span {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0eb;
  color: #ef6c57;
  font-size: 10px;
  font-weight: 700;
}
.modal-service-card { padding: 12px 14px; }
.modal-service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.modal-service-title {
  font-size: 13px;
  font-weight: 700;
  color: #314255;
}
.modal-service-status {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-price-red);
  font-size: 10px;
  font-weight: 700;
}
.modal-service-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #748095;
  line-height: 1.7;
}
.modal-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 8px;
}
.modal-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #5e6c80;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
}
.modal-service-chip svg { width: 12px; height: 12px; color: #ef6a58; }
/* ===== Floating Action Buttons (draggable group, right side) ===== */
.fab-group {
  position: fixed;
  left: calc(50vw + min(207px, 50vw) - 82px);
  bottom: 120px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  touch-action: none;
  user-select: none;
  /* 下滑隐藏：透明+右移收起，不占交互 */
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease;
}
/* 下滑时：侧边栏组移动到顶部右侧贴边并缩小收起（非消失） */
/* 下滑隐藏：只作用于功能按钮（搜索/购物车/客服），fab-top 不受影响 */
.fab-group.hide-on-scroll .fab-btn.fab-ai-search,
.fab-group.hide-on-scroll .fab-btn.fab-cart,
.fab-group.hide-on-scroll .fab-btn.fab-cs {
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
}
/* 收纳态：滑到顶部后展示为小按钮组 */
.fab-group.docked-top {
  bottom: auto;
  top: 8px;
  transform: translateX(0) scale(1);
  transform-origin: top right;
  opacity: 1;
  pointer-events: auto;
  flex-direction: row;
  gap: 8px;
}
.fab-group.dragging { transition: none !important; }
.fab-group.dragging .fab-btn { transition: none !important; }
.fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(70, 34, 24, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  flex-shrink: 0;
  padding: 0;
  /* 入场瀑布：从右侧依次滑入（JS 加 fab-in 类触发）；fab-top 除外（自身有滚动显隐逻辑） */
  opacity: 0;
}
.fab-btn.fab-in { animation: fabWaterfall .5s cubic-bezier(.22,1,.36,1) both; }
/* 入场完成：动画被 hover 等替换后保持可见（fabWaterfall 的 both 会被后续 animation 覆盖，故落地显式样式） */
.fab-btn.fab-in-done { opacity: 1; animation: none; }
.fab-top.fab-in { animation: none; opacity: 0; }
@keyframes fabWaterfall { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
/* 摇摆唤醒：hover 时左右摆动打招呼 */
.fab-btn:hover { animation: fabWiggle .6s ease; box-shadow: 0 6px 16px rgba(70, 34, 24, 0.16); }
@keyframes fabWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  60% { transform: rotate(7deg); }
}
.fab-btn:active { transform: scale(0.92); animation: none; }
.fab-btn svg { width: 17px; height: 17px; position: relative; z-index: 1; }
.fab-btn .fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--color-price-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  z-index: 2;
  line-height: 1;
}
.fab-btn .fab-badge.show { display: flex; }
.fab-cart {
  background: linear-gradient(135deg, #ff7b60, #F5333F);
}
.fab-cart svg { color: #fff; stroke: #fff; }
.fab-cart .fab-label { color: #fff; }
.fab-cs {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,244,0.96));
}
.fab-cs svg { color: #5b4a43; }
.fab-cs .fab-label { color: #5b4a43; }
.fab-top {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,244,0.96));
  opacity: 0;
  transform: translateY(20px) scale(0.6);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fab-group .fab-btn.fab-top.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-top svg { color: #5b4a43; }
.fab-top .fab-label { color: #5b4a43; }
.fab-label {
  font-size: 16px;
  font-weight: 600;
  transform: scale(0.75);
  transform-origin: center center;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* ===== AI Search Button (in fab-group, with dynamic glow) ===== */
.fab-ai-search {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,244,0.96));
  position: relative;
}
.fab-ai-search svg { color: #5b4a43; stroke: #5b4a43; z-index: 1; }
.fab-ai-search .fab-label { color: #5b4a43; }

/* ===== Product Detail FAB (cart + CS, above pd-overlay) ===== */
.pd-fab-group {
  position: fixed;
  left: calc(50vw + min(207px, 50vw) - 82px);
  bottom: 120px;
  z-index: 505;
  display: none;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.pd-fab-group.active { display: flex; }

/* Search Panel (pops out left from fab-group) */
.ai-search-panel {
  position: fixed;
  z-index: 201;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: none;
  border-radius: 28px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.25s ease;
  pointer-events: none;
}
.ai-search-panel.open {
  width: 260px;
  opacity: 1;
  pointer-events: auto;
}
.ai-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
  min-width: 0;
}
.ai-search-input::placeholder { color: #c4a99a; }
.ai-search-voice {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff9f58, #ff715a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.ai-search-voice:active { transform: scale(0.9); }
.ai-search-voice svg { width: 15px; height: 15px; color: #fff; }
.ai-search-voice.listening {
  background: linear-gradient(135deg, #ff7b60, #F5333F);
}
.ai-search-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff7b60, #F5333F);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.ai-search-submit:active { transform: scale(0.9); }
.ai-search-submit svg { width: 18px; height: 18px; color: #fff; }
.promo-popup,
.exchange-success {
  position: fixed;
  inset: 0;
  display: block;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  background: #f7f3f0;
  z-index: 530; /* 高于购物车(510)与详情页(500)，低于确认订单(700) */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity .28s ease, visibility .28s ease;
}
.promo-popup { background: rgba(22, 35, 52, 0.42); z-index: 320; }
.promo-popup.active,
.exchange-success.active { opacity: 1; visibility: visible; }
.promo-popup-card,
.exchange-success-card {
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #fff;
  padding-bottom: 20px;
}
.promo-popup-head,
.exchange-success-head {
  padding: 20px 18px 14px;
  background: linear-gradient(135deg, #fff1ea, #fff9f4);
  position: relative;
}
/* 返回上一级按钮（左上角） */
.exchange-success-back {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(70, 34, 24, 0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: transform .15s ease;
}
.exchange-success-back:active { transform: scale(0.92); }
.exchange-success-back svg { width: 20px; height: 20px; color: #3a3029; }
.promo-popup-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8c50, #F5333F);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.promo-popup-title,
.exchange-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #27313f;
}
.promo-popup-sub,
.exchange-success-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #718094;
  line-height: 1.6;
}
.promo-popup-coupon {
  margin: 14px 18px 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff6ef, #ffefe7);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.promo-popup-coupon strong { font-size: 30px; color: var(--color-price-red); line-height: 1; }
.promo-popup-coupon span { display: block; margin-top: 4px; font-size: 11px; color: #8a7b75; }
.promo-popup-actions { display: flex; gap: 10px; padding: 0 18px 18px; }
.promo-popup-btn,
.success-action-btn {
  font-size: 14px;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
}
.promo-popup-btn { flex: 1; height: 44px; }
.promo-popup-btn.secondary,
#successViewOrders[hidden] { display: none; }
.success-action-btn.secondary { background: #f2f6fb; color: #67788f; }
.promo-popup-btn.primary,
.success-action-btn.primary { background: linear-gradient(135deg, #ff8c50, #ff5c4d); color: #fff; }
.promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.88);
  color: #6d7d91;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.exchange-success-head { text-align: center; padding: 22px 20px 16px; }
.exchange-success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #35d678, #1fb25d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(31, 178, 93, 0.22);
}
.exchange-success-icon svg { width: 28px; height: 28px; }
.exchange-success-body { padding: 0 18px 18px; display: grid; gap: 12px; }
.success-delivery-card {
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
  border: 1px solid #ffe5d9;
  padding: 14px;
}
.success-delivery-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.success-delivery-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 92, 77, 0.1);
  color: var(--color-price-red);
  font-size: 11px;
  font-weight: 700;
}
.success-delivery-time { font-size: 11px; color: #7b8797; font-weight: 600; }
.success-delivery-title {
  margin-top: 10px;
  font-size: 15px;
  color: #27313f;
  font-weight: 700;
}
.success-delivery-sub { margin-top: 4px; font-size: 12px; color: #768396; line-height: 1.6; }
.success-benefits { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.success-benefit {
  border-radius: 14px;
  background: #fff;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #f2f3f7;
}
.success-benefit strong { display: block; font-size: 13px; color: #27313f; font-weight: 700; }
.success-benefit span { display: block; margin-top: 4px; font-size: 10px; color: #8592a5; line-height: 1.4; }
.success-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.success-action-btn { height: 42px; font-size: 13px; border-radius: 14px; }
.success-section {
  border-radius: 16px;
  background: #f8fbff;
  padding: 12px;
  border: 1px solid #edf1f6;
}
.success-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.success-section-head strong { font-size: 14px; color: #2c3949; }
.success-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.success-share span { font-size: 12px; color: #768396; line-height: 1.5; }
.success-share button {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8c50, #ff5c4d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.success-related-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.success-related-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #eef1f6;
}
.success-related-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.success-related-item div { padding: 8px 8px 10px; }
.success-related-name { font-size: 11px; color: #334255; line-height: 1.4; min-height: 32px; font-weight: 600; }
.success-related-meta { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.success-related-price { font-size: 11px; color: var(--color-price-red); font-weight: 700; }
.success-related-cta { font-size: 10px; color: #7b8797; font-weight: 700; }

/* ===== Page Title ===== */
/* ===== Top Sticky Wrapper (title + credit module stick together) ===== */
.top-sticky-wrap {
  position: relative;
  z-index: 1;
}
.top-sticky-wrap.sticky {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(414px, 100%);
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mall-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.mall-title-btn {
  width: 36px; height: 36px; border: none; background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mall-title-btn svg { width: 22px; height: 22px; color: #333; }
.mall-page-title h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
  flex: 1;
  text-align: center;
}

/* ===== Product Shelf Sub-page ===== */
.shelf-overlay {
  position: fixed; inset: 0; z-index: 480;
  background: #f7f3f0;
  display: flex; flex-direction: column;
  max-width: 414px; margin: 0 auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.shelf-overlay.active { opacity: 1; visibility: visible; }
.shelf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky; top: 0; z-index: 10;
}
.shelf-back { width: 36px; height: 36px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.shelf-back svg { width: 22px; height: 22px; color: #333; }
.shelf-title { font-size: 16px; font-weight: 700; color: #333; flex: 1; text-align: center; }
.shelf-placeholder { width: 36px; }
.shelf-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px; }
.shelf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.shelf-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  cursor: pointer; transition: var(--transition-base);
}
.shelf-card:active { transform: scale(0.98); }
.shelf-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.shelf-card-body { padding: 10px 12px 12px; }
.shelf-card-title {
  font-size: 12px; font-weight: 700; color: #333; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 34px;
}
.shelf-card-price {
  display: flex; align-items: baseline; gap: 3px; margin-top: 8px;
}
.shelf-card-credit { font-size: 16px; font-weight: 900; color: var(--color-price-red); }
.shelf-card-plus { font-size: 11px; color: var(--color-text-secondary); }
.shelf-card-cash { font-size: 13px; font-weight: 700; color: var(--color-price-red); }
.shelf-card-stats { font-size: 10px; color: #bbb; margin-top: 4px; }
.shelf-card-stock { font-size: 10px; font-weight: 600; margin-top: 3px; }
.shelf-card-stock.ok { color: #52c41a; }
.shelf-card-stock.low { color: #fa8c16; }
.shelf-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: #bbb; font-size: 13px; }

/* Shelf List (Elderly-friendly single column) */
.shelf-list {
  display: flex; flex-direction: column; gap: 14px;
}
.shelf-list-card {
  display: flex; gap: 14px; background: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  cursor: pointer; transition: var(--transition-base);
  padding: 12px;
}
.shelf-list-card:active { transform: scale(0.98); }
.shelf-list-card-img {
  width: 120px; height: 120px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}
.shelf-list-card-body {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 4px 0;
}
.shelf-list-card-title {
  font-size: 16px; font-weight: 700; color: #333; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shelf-list-card-price {
  display: flex; align-items: baseline; gap: 4px; margin-top: 8px;
}
.shelf-list-card-credit { font-size: 22px; font-weight: 900; color: var(--color-price-red); }
.shelf-list-card-unit { font-size: 13px; color: var(--color-text-secondary); font-weight: 500; }
.shelf-list-card-plus { font-size: 14px; color: var(--color-text-secondary); }
.shelf-list-card-cash { font-size: 18px; font-weight: 700; color: var(--color-price-red); }
.shelf-list-card-cash-unit { font-size: 13px; color: var(--color-text-secondary); }
.shelf-list-card-stats {
  font-size: 13px; color: #bbb; margin-top: 6px;
}
.shelf-list-card-stock {
  font-size: 13px; font-weight: 600; margin-top: 4px;
}
.shelf-list-card-stock.ok { color: #52c41a; }
.shelf-list-card-stock.low { color: #fa8c16; }
.shelf-list .shelf-empty { text-align: center; padding: 60px 20px; color: #bbb; font-size: 15px; }
.shelf-list-card .shelf-img-wrap { position: relative; flex-shrink: 0; }
.shelf-list-card .shelf-img-wrap .level-tag { position: absolute; top: 6px; right: 6px; font-size: 9px; padding: 2px 7px; border-radius: 999px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.4; z-index: 1; }
.shelf-list-card .shelf-img-wrap .level-tag.lv5 { background: linear-gradient(135deg, #e8556d, #f4899c); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.shelf-list-card .shelf-img-wrap .level-tag.event { background: linear-gradient(135deg, #fa8c16, #ffc53d); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.shelf-card .shelf-card-img-wrap { position: relative; }
.shelf-card .shelf-card-img-wrap .level-tag { position: absolute; top: 6px; right: 6px; font-size: 9px; padding: 2px 7px; border-radius: 999px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.4; z-index: 1; }
.shelf-card .shelf-card-img-wrap .level-tag.lv5 { background: linear-gradient(135deg, #e8556d, #f4899c); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.shelf-card .shelf-card-img-wrap .level-tag.event { background: linear-gradient(135deg, #fa8c16, #ffc53d); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

/* ===== Search Results Page ===== */
.search-results-overlay {
  position: fixed; inset: 0; z-index: 480;
  background: #f7f3f0;
  display: flex; flex-direction: column;
  max-width: 414px; margin: 0 auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.search-results-overlay.active { opacity: 1; visibility: visible; }
.search-results-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #fff;
  border-bottom: 1px solid #f0e8e3;
  flex-shrink: 0;
}
.search-results-back {
  width: 32px; height: 32px; border: none; background: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}
.search-results-back svg { width: 22px; height: 22px; color: var(--color-text-primary); }
.search-results-bar {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  background: #f5efec;
  border-radius: 18px;
  padding: 0 12px;
  height: 36px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.search-results-bar:focus-within { border-color: rgba(245, 51, 63, 0.35); background: #fff; }
.search-results-bar-icon { width: 16px; height: 16px; color: var(--color-text-tertiary); flex-shrink: 0; }
.search-results-input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--color-text-primary);
  font-family: var(--font-family);
}
.search-results-input::placeholder { color: var(--color-text-tertiary); }
.search-results-clear {
  display: none; border: none; background: #e5dcd6; color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 13px; line-height: 1; cursor: pointer; flex-shrink: 0;
  align-items: center; justify-content: center; padding: 0;
}
.search-results-bar.has-value .search-results-clear { display: flex; }
.search-results-voice {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: none; border-radius: 50%;
  background: var(--gradient-primary); color: #fff;
  cursor: pointer; flex-shrink: 0; padding: 0;
  transition: var(--transition-base);
}
.search-results-voice svg { width: 13px; height: 13px; }
.search-results-voice:active { transform: scale(0.9); }
.search-results-voice.listening { animation: srVoicePulse 1s ease infinite; }
@keyframes srVoicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 51, 63, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(245, 51, 63, 0); }
}
.search-results-submit {
  flex-shrink: 0; border: none; cursor: pointer;
  height: 34px; padding: 0 16px; border-radius: 17px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 3px 10px rgba(245, 51, 63, 0.25);
  font-family: var(--font-family);
}
.search-results-submit:active { transform: scale(0.95); }
.search-results-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 12px 30px;
}
.search-results-hot { padding: 2px 4px 12px; }
.search-results-hot-title {
  font-size: 12px; font-weight: 700; color: var(--color-text-secondary);
  margin-bottom: 10px; letter-spacing: 0.5px;
}
.search-results-hot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-results-hot-chip {
  border: none; cursor: pointer;
  padding: 6px 14px; border-radius: 15px;
  background: #fff; color: var(--color-text-secondary);
  font-size: 12px; font-weight: 500;
  box-shadow: var(--shadow-card);
  font-family: var(--font-family);
  transition: var(--transition-base);
}
.search-results-hot-chip:active { transform: scale(0.95); color: var(--color-price-red); }
.search-results-list {
  display: flex; flex-direction: column; gap: 10px;
}
.search-results-count {
  font-size: 12px; color: var(--color-text-tertiary); padding: 4px 4px 10px;
}
.search-results-count b { color: var(--color-price-red); font-weight: 700; }
.search-results-empty {
  text-align: center; padding: 60px 20px; color: var(--color-text-tertiary); font-size: 14px;
  background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.search-results-empty-icon { font-size: 40px; margin-bottom: 12px; }
.search-results-empty-btn {
  margin-top: 16px; border: none; cursor: pointer;
  padding: 9px 26px; border-radius: 20px;
  background: var(--gradient-primary); color: #fff;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(245, 51, 63, 0.25);
  font-family: var(--font-family);
}
.search-results-empty-btn:active { transform: scale(0.95); }

/* ===== 语音聆听中面板（方案1动效 + 方案3文案，浅色） ===== */
.sr-listening-mask {
  display: none; position: absolute; inset: 0;
  background: rgba(255,255,255,0.55); z-index: 5;
}
.sr-listening-mask.open { display: block; }
.sr-listening {
  display: none; position: absolute; z-index: 6;
  left: 50%; bottom: 24px; transform: translateX(-50%);
  width: calc(100% - 48px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 36px rgba(43,38,36,0.14);
  padding: 22px 16px 18px;
  text-align: center;
  flex-direction: column; align-items: center;
}
.sr-listening.open { display: flex; }
.sr-listening-core {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.sr-listening-core svg { width: 24px; height: 24px; color: #fff; position: relative; z-index: 1; }
.sr-listening-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(239,68,85,0.5);
  animation: srRing 1.6s ease-out infinite;
}
.sr-listening-ring.d2 { animation-delay: .55s; }
.sr-listening-ring.d3 { animation-delay: 1.1s; }
@keyframes srRing { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.sr-listening-title { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--color-text-primary); }
.sr-listening-dots::after { content: ''; animation: srDots 1.5s steps(1) infinite; }
@keyframes srDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.sr-listening-sub { font-size: 11px; color: var(--color-text-tertiary); margin-top: 5px; }
.sr-listening-waves { display: flex; align-items: center; gap: 3px; height: 16px; margin-top: 10px; }
.sr-listening-waves i { width: 3px; border-radius: 2px; background: var(--color-price-red); animation: srWave 0.9s ease-in-out infinite; }
.sr-listening-waves i:nth-child(1) { height: 6px; }
.sr-listening-waves i:nth-child(2) { height: 12px; animation-delay: .1s; }
.sr-listening-waves i:nth-child(3) { height: 16px; animation-delay: .2s; }
.sr-listening-waves i:nth-child(4) { height: 10px; animation-delay: .3s; }
.sr-listening-waves i:nth-child(5) { height: 5px; animation-delay: .4s; }
@keyframes srWave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
.sr-listening-cancel {
  margin-top: 14px; border: none; border-radius: 17px; cursor: pointer;
  background: #f5efec; color: #736863;
  font-size: 12px; font-weight: 600; padding: 8px 26px;
  font-family: var(--font-family); transition: var(--transition-base);
}
.sr-listening-cancel:active { transform: scale(0.95); }

/* ===== Share Bottom Sheet ===== */
.share-overlay {
  position: fixed; inset: 0; z-index: 550;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.share-overlay.active { opacity: 1; visibility: visible; }
.share-sheet {
  width: min(414px, 100%); background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s ease;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.12);
}
.share-overlay.active .share-sheet { transform: translateY(0); }
.share-title { font-size: 16px; font-weight: 700; color: #333; text-align: center; margin-bottom: 16px; }
.share-section-label { font-size: 12px; color: #999; font-weight: 600; margin-bottom: 10px; }
.share-method-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.share-method-tab {
  flex: 1; padding: 8px 0; border-radius: 20px;
  border: 1.5px solid #e0e0e0; background: #fff;
  font-size: 13px; color: #666; font-weight: 600;
  cursor: pointer; text-align: center; transition: var(--transition-base);
}
.share-method-tab.selected {
  border-color: var(--color-price-red); color: var(--color-price-red);
  background: #fff5f5;
}
.share-method-tab:active { transform: scale(0.97); }
.share-preview-card {
  background: #f7f7f8; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 20px; position: relative;
}
.share-preview-sender { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.share-preview-msg { font-size: 12px; color: #666; line-height: 1.6; padding-right: 48px; }
.share-preview-logo {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 10px;
  background: #e53935; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; text-align: center; line-height: 1.2;
}
.share-link-box {
  display: none; margin-bottom: 20px;
  background: #f7f7f8; border-radius: 12px; padding: 12px 14px;
  align-items: center; gap: 10px;
}
.share-link-box.active { display: flex; }
.share-link-input {
  flex: 1; border: none; background: transparent;
  font-size: 12px; color: #999; outline: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.share-link-copy {
  padding: 6px 16px; border-radius: 16px; border: none;
  background: var(--color-price-red); color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: var(--transition-base);
}
.share-link-copy:active { transform: scale(0.95); }
.share-divider { height: 1px; background: #f0f0f0; margin: 0 0 16px; }
.share-options { display: flex; gap: 0; margin-bottom: 16px; justify-content: space-around; }
.share-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; border: none; background: none; padding: 0; min-width: 72px;
}
.share-opt-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-base);
}
.share-opt-icon:active { transform: scale(0.93); }
.share-opt-icon.wechat { background: #07c160; color: #fff; }
.share-opt-icon.moments { background: #07c160; color: #fff; }
.share-opt-icon svg { width: 26px; height: 26px; }
.share-opt-label { font-size: 11px; color: #666; }
.share-cancel {
  width: 100%; padding: 13px; border: none; border-radius: 24px;
  background: #f5f5f5; color: #666; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition-base);
}
.share-cancel:active { background: #eee; }

/* ===== H5 Activity Viewer ===== */
.h5viewer-overlay {
  position: fixed; inset: 0; z-index: 520;
  background: #fff;
  display: flex; flex-direction: column;
  max-width: 414px; margin: 0 auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.h5viewer-overlay.open { opacity: 1; visibility: visible; }
.h5viewer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 10;
  flex-shrink: 0;
}
.h5viewer-back { width: 36px; height: 36px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.h5viewer-back svg { width: 22px; height: 22px; color: #333; }
.h5viewer-title { font-size: 15px; font-weight: 700; color: #333; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5viewer-placeholder { width: 36px; }
.h5viewer-frame {
  flex: 1; width: 100%; border: none;
  background: #f5f5f5;
}
.h5viewer-loading {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; color: #bbb; font-size: 13px;
}
.h5viewer-loading-spinner {
  width: 32px; height: 32px; border: 3px solid #f0f0f0;
  border-top-color: var(--color-price-red); border-radius: 50%;
  animation: h5spin 0.8s linear infinite; margin: 0 auto 10px;
}
@keyframes h5spin { to { transform: rotate(360deg); } }
.product-empty { grid-column: 1 / -1; padding: 38px 20px 46px; text-align: center; color: #8a7d77; }

/* ===== Credit Module ===== */
.credit-module {
  margin: 0 0 0;
  /* 底图渐变：红粉→亮橙（横向，与促销 Banner 同色系） */
  background: linear-gradient(90deg, #F5333F 0%, #FF790D 100%);
  border-radius: 0 0 5px 5px;
  padding: 18px 20px 121px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.credit-main-row {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.credit-icon {
  width: 47px;
  height: 47px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
}
.credit-icon svg {
  width: 33px;
  height: 33px;
}
.credit-balance-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.credit-balance-num {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.credit-balance-unit {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.credit-level-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  padding: 2px 8px;
  line-height: 1;
  white-space: nowrap;
  margin-left: 6px;
  letter-spacing: 0.5px;
}
.credit-detail-link {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  padding: 5px 12px 5px 14px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 8px;
}
.credit-detail-link:active { background: rgba(255,255,255,0.35); }
.credit-detail-link svg {
  width: 12px;
  height: 12px;
}
.credit-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.credit-total {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.credit-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.credit-rule-link {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s;
}
.credit-rule-link:active { opacity: 0.6; }
.credit-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
}
.credit-btn:active { transform: scale(0.96); }
.credit-btn-primary {
  background: rgba(255,255,255,0.95);
  color: #e8453c;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  /* F 呼吸光效：白色光晕缓慢脉动引导点击 */
  animation: creditBtnBreathe 2.4s ease-in-out infinite;
}
@keyframes creditBtnBreathe {
  0%, 100% { box-shadow: 0 3px 12px rgba(0,0,0,0.08), 0 0 0 0 rgba(255,255,255,0.55); }
  50% { box-shadow: 0 3px 12px rgba(0,0,0,0.08), 0 0 0 9px rgba(255,255,255,0); }
}

/* ===== D banner 文字入场动效 ===== */
.banner-overlay .banner-title { animation: bTitleIn .5s cubic-bezier(.22,1,.36,1) both; }
.banner-overlay .banner-subtitle { animation: bSubIn .55s .08s cubic-bezier(.22,1,.36,1) both; }
.banner-overlay .banner-btn { animation: bBtnIn .5s .16s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes bTitleIn { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes bSubIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes bBtnIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
/* 轮播切换时重播文字入场 */
.carousel-slide.active-text .banner-overlay .banner-title { animation: bTitleIn .5s cubic-bezier(.22,1,.36,1) both; }
.carousel-slide.active-text .banner-overlay .banner-subtitle { animation: bSubIn .55s .08s cubic-bezier(.22,1,.36,1) both; }
.carousel-slide.active-text .banner-overlay .banner-btn { animation: bBtnIn .5s .16s cubic-bezier(.34,1.56,.64,1) both; }

/* ===== E 加购飞入动效 ===== */
.fly-to-cart {
  position: fixed; z-index: 999; pointer-events: none;
  width: 44px; height: 44px; border-radius: 8px;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform .7s cubic-bezier(.55,-0.3,.7,.5), opacity .7s ease;
}
.fab-badge.bump { animation: badgeBump .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes badgeBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ===== Credit Detail Page ===== */
.cd-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: #f5f5f5;
  display: flex; flex-direction: column;
  max-width: 414px; margin: 0 auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.cd-overlay.active { opacity: 1; visibility: visible; }
.cd-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.cd-back { width: 36px; height: 36px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cd-back svg { width: 22px; height: 22px; color: #333; }
.cd-header-title { font-size: 16px; font-weight: 700; color: #333; flex: 1; text-align: center; margin-right: 36px; }
.cd-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cd-banner {
  background: linear-gradient(135deg, #ff6b60 0%, #ff8a3d 50%, #ffb34b 100%);
  padding: 24px 20px 28px; position: relative; overflow: hidden;
}
.cd-banner-top {
  display: flex; align-items: center; justify-content: space-between;
}
.cd-banner-left { display: flex; align-items: baseline; gap: 8px; }
.cd-banner-label { font-size: 15px; color: rgba(255,255,255,0.9); font-weight: 600; }
.cd-banner-num { font-size: 40px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1; }
.cd-banner-total { font-size: 13px; color: rgba(255,255,255,0.7); }
.cd-tabs {
  display: flex; background: #fff; padding: 0 14px;
  border-bottom: 1px solid #f0f0f0;
}
.cd-tab {
  flex: 1; text-align: center; padding: 13px 0;
  font-size: 14px; font-weight: 600; color: #999;
  cursor: pointer; position: relative; border: none; background: none;
  transition: color .2s;
}
.cd-tab.active { color: var(--color-price-red); font-weight: 700; }
.cd-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--color-price-red);
}
/* ===== 月份筛选（方案3：年|月两段可点 + 滚轮选择弹层） ===== */
.cd-filter {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; background: #fff; border-bottom: 1px solid #f5f5f5;
  position: relative;
}
.cd-filter-segs { display: flex; align-items: center; gap: 8px; }
.cd-seg { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.cd-seg b { font-size: 16px; font-weight: 700; color: var(--color-text-primary); line-height: 1; }
.cd-seg svg { width: 12px; height: 12px; color: var(--color-price-red); }
.cd-seg:active { opacity: 0.6; }
.cd-seg-reset {
  font-size: 11px; color: #999; border: 1px solid #eee;
  border-radius: 11px; padding: 3px 10px; cursor: pointer;
}
.cd-seg-reset:active { transform: scale(0.95); }
.cd-filter-sub-inline { font-size: 11px; color: #bbb; }
/* 滚轮弹层 */
.cd-wheel-mask {
  display: none; position: fixed; inset: 0;
  background: rgba(43,38,36,0.35); z-index: 560;
}
.cd-wheel-mask.open { display: block; }
.cd-wheel-pop {
  display: none; position: fixed; z-index: 561;
  left: 50%; bottom: 0; transform: translateX(-50%) translateY(100%);
  width: min(414px, 100%); background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  transition: transform .26s ease;
}
.cd-wheel-pop.open { display: block; }
.cd-wheel-pop.show { transform: translateX(-50%) translateY(0); }
.cd-wheel-title { text-align: center; font-size: 14px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 10px; }
.cd-wheel-body {
  display: flex; position: relative; overflow: hidden;
  height: 180px; border-top: 1px solid #f0e0dc; border-bottom: 1px solid #f0e0dc;
}
.cd-wheel-col { flex: 1; overflow-y: auto; scrollbar-width: none; text-align: center; -webkit-overflow-scrolling: touch; border-right: 1px solid #f5f0ed; }
.cd-wheel-col:last-child { border-right: none; }
.cd-wheel-col-title { font-size: 11px; color: #aaa; padding: 8px 0 4px; font-weight: 600; }
.cd-wheel-item { padding: 14px 0; font-size: 14px; color: #999; cursor: pointer; }
.cd-wheel-item.mid { font-size: 17px; font-weight: 700; color: var(--color-text-primary); }
.cd-wheel-item.on { color: var(--color-price-red); font-weight: 700; }
.cd-wheel-actions { display: flex; gap: 10px; margin-top: 14px; }
.cd-wheel-cancel, .cd-wheel-ok {
  flex: 1; border: none; border-radius: 20px; cursor: pointer;
  padding: 11px 0; font-size: 14px; font-weight: 700;
  font-family: var(--font-family); transition: var(--transition-base);
}
.cd-wheel-cancel { background: #f5efec; color: #736863; }
.cd-wheel-ok { background: var(--gradient-primary); color: #fff; box-shadow: 0 3px 10px rgba(239,68,85,0.25); }
.cd-wheel-cancel:active, .cd-wheel-ok:active { transform: scale(0.97); }
.cd-list { padding: 10px 14px; }
.cd-record {
  background: #fafafa; border-radius: 12px; padding: 12px 14px;
  margin-bottom: 8px;
}
.cd-record-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.cd-record-time { font-size: 12px; color: #bbb; }
.cd-record-amount { font-size: 15px; font-weight: 700; color: #333; }
.cd-record-body { display: flex; gap: 10px; align-items: center; }
.cd-record-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0; background: #f0f0f0;
}
.cd-record-info { flex: 1; }
.cd-record-title { font-size: 13px; font-weight: 700; color: #333; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-record-sub { font-size: 11px; color: #bbb; margin-top: 2px; }
.cd-record-order { font-size: 11px; color: #ccc; margin-top: 4px; }
.cd-empty { padding: 40px 20px; text-align: center; color: #ccc; font-size: 13px; }
.cd-footer { text-align: center; padding: 16px; color: #ccc; font-size: 12px; }
.product-empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(145deg,#fff5f1,#f5e9e3); font-size: 28px; }
.product-empty strong { display: block; color: #4f4642; font-size: 15px; }
.product-empty span { display: block; margin-top: 4px; font-size: 12px; }
.product-empty button { margin-top: 14px; border: 0; border-radius: 999px; padding: 9px 18px; color: #fff; background: linear-gradient(135deg,#ff6b60,#F5333F); font-weight: 700; cursor: pointer; }
.header-icon-btn { position: relative; }
.header-cart-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: none; place-items: center; background: #F5333F; border: 2px solid #fff; color: #fff; font-size: 9px; font-weight: 700; }
.header-cart-badge.show { display: grid; }
.cart-panel { position: fixed; inset: 0; z-index: 510; display: flex; justify-content: center; align-items: flex-end; background: rgba(22,35,52,.42); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.cart-panel.active { opacity: 1; visibility: visible; }
/* 固定高度：无论空车/满车，面板高度恒定 60vh，不随内容变化 */
.cart-content { width: min(414px,100%); height: 60vh; display: flex; flex-direction: column; background: #ffffff; border-radius: 24px 24px 0 0; overflow: hidden; transform: translateY(100%); transition: transform .28s ease; box-shadow: 0 -18px 50px rgba(41,29,24,.18); }
.cart-panel.active .cart-content { transform: translateY(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; background: #fff; flex-shrink: 0; position: relative; }
.cart-header h3 { font-size: 18px; font-weight: 700; color: #3a3029; margin: 0; position: absolute; left: 50%; transform: translateX(-50%); }
.cart-header button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f5eeeb; color: #7c6b64; font-size: 22px; cursor: pointer; }
/* 添加商品：右上角，浅红底红字小胶囊（同页面浅色操作按钮风格） */
.cart-header button.cart-add-btn {
  width: auto; height: 30px; border-radius: 15px;
  background: #fff2ef; color: #F5333F;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 0 14px; display: inline-flex; align-items: center;
  font-family: inherit; transition: transform .15s ease, background .15s ease;
}
.cart-header button.cart-add-btn:active { transform: scale(.95); background: #ffe4e0; }
.cart-list { padding: 12px; flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 20px 80px 1fr auto; gap: 10px; align-items: center; padding: 10px; margin-bottom: 9px; border-radius: 16px; background: #fff; box-shadow: 0 7px 18px rgba(102,71,58,.05); }
.cart-item-check { display: flex; align-items: center; justify-content: center; }
.cart-item-check input { width: 18px; height: 18px; accent-color: #F5333F; cursor: pointer; }
/* 全选栏（列表上方） */
.cart-select-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border-bottom: 1px solid #f1e7e3; flex-shrink: 0; }
.cart-select-bar .sel-label { font-size: 14px; font-weight: 600; color: #453c38; cursor: pointer; }
.cart-select-bar input { width: 18px; height: 18px; accent-color: #F5333F; cursor: pointer; }
.cart-select-bar .sel-count { margin-left: auto; font-size: 12px; color: #9b8b84; }
.cart-item img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.cart-item-title { font-size: 16px; line-height: 1.45; font-weight: 700; color: #453c38; }
.cart-item-price { margin-top: 6px; color: #F5333F; font-size: 14px; font-weight: 700; }
.cart-item-remove { border: 0; background: #fff2ef; color: #d65a50; border-radius: 10px; padding: 7px 8px; font-size: 11px; cursor: pointer; }
.cart-empty { padding: 54px 18px; text-align: center; color: #9b8b84; }
.cart-empty div { font-size: 38px; margin-bottom: 8px; }
.cart-list .cart-empty { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 18px; }
.cart-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #f1e7e3; flex-shrink: 0; }
.cart-total span { display: block; font-size: 10px; color: #9b8b84; }
.cart-total strong { color: #F5333F; font-size: 15px; }
.cart-checkout { min-width: 126px; height: 42px; border: 0; border-radius: 21px; color: #fff; background: #F5333F; font-weight: 700; cursor: pointer; }
.cart-checkout:disabled { background: #d9d2cf; cursor: not-allowed; }

/* Cart Tabs */
.cart-tabs { display: flex; background: #fff; border-bottom: 1px solid #f2e9e5; padding: 0 16px; }
.cart-tab { flex: 1; text-align: center; padding: 10px 0 8px; font-size: 16px; font-weight: 600; color: #b5a8a0; cursor: pointer; position: relative; transition: color 0.2s ease; border: none; background: none; }
.cart-tab.active { color: #F5333F; }
.cart-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 32px; height: 3px; border-radius: 2px; background: linear-gradient(135deg, #ff6b60, #F5333F); }
.cart-tab-badge { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #F5333F; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; margin-left: 4px; vertical-align: top; }

/* Cart Quantity Controls */
.cart-item-qty { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.cart-qty-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #e8ddd8; background: #fff; color: #6b5b53; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; line-height: 1; }
.cart-qty-btn:active { background: #f5eeeb; }
.cart-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cart-qty-num { min-width: 34px; text-align: center; font-size: 16px; font-weight: 700; color: #453c38; }

/* Cart Orders View */
.cart-orders-view { display: none; padding: 0; flex: 1; min-height: 0; flex-direction: column; }
.cart-orders-view.active { display: flex; }
.cart-view-cart { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.cart-view-cart.hidden { display: none; }
.cart-orders-tabs { display: flex; gap: 0; padding: 10px 12px 0; background: #f8f5f3; flex-shrink: 0; }
.cart-orders-tab { padding: 8px 14px; font-size: 16px; font-weight: 600; color: #9b8b84; border-radius: 20px; border: none; background: none; cursor: pointer; transition: all 0.18s ease; white-space: nowrap; }
.cart-orders-tab.active { background: linear-gradient(135deg, #ff6b60, #F5333F); color: #fff; }
.cart-orders-list { padding: 12px; flex: 1; overflow-y: auto; }
.cart-order-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 7px; box-shadow: 0 4px 14px rgba(102,71,58,.05); }
.cart-order-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cart-order-no { font-size: 13px; color: #9b8b84; font-weight: 500; }
.cart-order-status { font-size: 16px; font-weight: 600; padding: 3px 12px; border-radius: 12px; }
.cart-order-status.shipped { background: #e6f7e9; color: #52c41a; }
.cart-order-status.pending { background: #fff7e6; color: #fa8c16; }
.cart-order-status.received { background: #e6f0ff; color: #1890ff; }
.cart-order-items { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cart-order-items::-webkit-scrollbar { display: none; }
.cart-order-sku { display: flex; align-items: center; gap: 12px; }
.cart-order-sku-meta { color: #675c56; font-size: 13px; margin-top: 4px; }
.cart-order-sku-status { color: #ad3341; font-size: 13px; margin-left: 8px; }
.cart-order-item-img { width: 75px; height: 75px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-order-time { font-size: 13px; color: #9b8b84; font-weight: 400; }
.cart-order-total-row { margin-top: 10px; font-size: 14px; color: #F5333F; font-weight: 700; text-align: right; }
.cart-order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-order-detail-btn { font-size: 13px; color: #9b8b84; font-weight: 500; cursor: pointer; background: none; border: none; padding: 0; }
.cart-order-review-btn { font-size: 13px; color: #fff; font-weight: 600; cursor: pointer; border: none; padding: 7px 20px; border-radius: 16px; background: linear-gradient(135deg, #ff6b60, #F5333F); box-shadow: 0 3px 8px rgba(245,51,63,.25); transition: transform .15s ease, box-shadow .15s ease; }
.cart-order-review-btn:active { transform: scale(.96); }
.cart-order-empty { padding: 48px 18px; text-align: center; color: #9b8b84; }
.cart-order-empty div { font-size: 32px; margin-bottom: 8px; }

button:focus-visible, [onclick]:focus-visible, input:focus-visible { outline: 3px solid rgba(239,68,85,.22); outline-offset: 2px; }
/* ===== Product Detail Page ===== */
.pd-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: #f7f3f0;
  display: flex; flex-direction: column;
  max-width: 414px; margin: 0 auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.pd-overlay.active { opacity: 1; visibility: visible; }
.pd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.pd-back { width: 36px; height: 36px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pd-back svg { width: 22px; height: 22px; color: #333; }
.pd-header-title { font-size: 16px; font-weight: 700; color: #333; }
.pd-share { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #666; cursor: pointer; border: none; background: none; }
.pd-share svg { width: 18px; height: 18px; }
.pd-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 80px; }

/* ===== Product Detail Gallery ===== */
.pd-detail-section { margin-top: 10px; background: #fff; }
.pd-detail-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 16px 10px;
}
.pd-detail-head::before, .pd-detail-head::after {
  content: ''; width: 28px; height: 1px; background: rgba(0,0,0,0.10);
}
.pd-detail-head-title { font-size: 14px; font-weight: 700; color: var(--color-text-primary); letter-spacing: 1px; }
.pd-detail-item { position: relative; margin: 0 0 10px; }
.pd-detail-item img {
  width: 100%; display: block;
  aspect-ratio: 16 / 9; object-fit: cover;
  background: #f5f1ee;
}
.pd-detail-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px;
  background: linear-gradient(transparent 8%, rgba(43, 38, 36, 0.55));
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: space-between;
}
.pd-detail-caption .pd-detail-sub { font-size: 10px; font-weight: 400; opacity: 0.85; }
.pd-detail-item.tall img { aspect-ratio: 3 / 4; }
.pd-hero {
  position: relative; overflow: hidden; width: 100%;
}
.pd-hero-img {
  width: 100%;
}
.pd-hero-img img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.pd-hero-blur {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.95) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.pd-info-module {
  padding: 16px 18px 14px; background: #fff; margin: -20px 14px 0; border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative; z-index: 2;
}
.pd-info-price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.pd-info-price-left { display: flex; align-items: baseline; gap: 4px; }
.pd-price-credit { font-size: 28px; font-weight: 900; color: var(--color-price-red); }
.pd-price-unit { font-size: 13px; color: var(--color-text-secondary); font-weight: 500; }
.pd-price-plus { font-size: 16px; color: var(--color-text-secondary); margin: 0 2px; }
.pd-price-cash { font-size: 22px; font-weight: 700; color: var(--color-price-red); }
.pd-price-cash-unit { font-size: 13px; color: var(--color-text-secondary); }
.pd-redeemed { font-size: 12px; color: var(--color-text-tertiary); }
.pd-info-title {
  font-size: 15px; font-weight: 700; color: #333;
  margin-top: 10px; line-height: 1.5;
}
.pd-spec-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 14px 0; padding: 12px 16px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  cursor: pointer;
}
.pd-spec-label { font-size: 14px; color: #333; }
.pd-spec-label em { font-style: normal; color: var(--color-price-red); font-weight: 600; }
.pd-spec-arrow { color: #ccc; font-size: 18px; }
.pd-rules {
  margin: 14px 14px 0; padding: 16px 18px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.pd-rules ol { padding-left: 18px; }
.pd-rules li {
  font-size: 12px; color: #555; line-height: 1.8;
  margin-bottom: 4px;
}
.pd-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid rgba(0,0,0,0.04);
  z-index: 10;
  display: flex; align-items: center; gap: 10px;
}
.pd-cart-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #f0e8e3; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; position: relative;
  transition: var(--transition-base);
}
.pd-cart-btn:active { transform: scale(0.92); }
.pd-cart-btn svg { width: 20px; height: 20px; color: #5b4a43; stroke: #5b4a43; }
.pd-cart-btn .pd-cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--color-price-red); color: #fff;
  font-size: 9px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.pd-cart-btn .pd-cart-badge.show { display: flex; }
.pd-add-cart-btn {
  flex: 1; padding: 14px 8px; border: none; border-radius: 26px;
  background: linear-gradient(135deg, #ff9f58, #ff715a);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 6px 16px rgba(255,113,90,0.2);
  transition: var(--transition-base);
}
.pd-add-cart-btn:active { transform: scale(0.98); }
.pd-redeem-btn {
  flex: 1; padding: 14px 8px; border: none; border-radius: 26px;
  background: linear-gradient(135deg, #ff6b60, #F5333F);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: var(--transition-base);
}
.pd-redeem-btn:active { transform: scale(0.98); }

/* ===== Spec Selection Modal ===== */
.spec-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.spec-overlay.active { opacity: 1; visibility: visible; }
.spec-sheet {
  width: min(414px, 100%); background: #fff;
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(14px + env(safe-area-inset-bottom));
  min-height: 400px;
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .3s ease;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.12);
}
.spec-overlay.active .spec-sheet { transform: translateY(0); }
.spec-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.spec-header h3 { font-size: 17px; font-weight: 700; color: #333; }
.spec-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #eee; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #999; cursor: pointer;
}
.spec-group-label { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.spec-opt {
  padding: 8px 20px; border-radius: 22px;
  border: 1.5px solid #ddd; background: #fff;
  font-size: 13px; color: #555; font-weight: 600;
  cursor: pointer; transition: var(--transition-base);
}
.spec-opt.selected {
  border-color: var(--color-price-red); color: var(--color-price-red);
  background: #fff5f5;
}
.spec-opt:active { transform: scale(0.96); }
.spec-redeem-btn {
  width: 100%; padding: 14px; border: none; border-radius: 26px;
  background: linear-gradient(135deg, #ff6b60, #F5333F);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: var(--transition-base);
  margin-top: auto;
}
.spec-redeem-btn:active { transform: scale(0.98); }

/* ===== Order Confirmation Page ===== */
.order-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: #f5f5f5;
  display: flex; flex-direction: column;
  max-width: 414px; margin: 0 auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.order-overlay.active { opacity: 1; visibility: visible; }
.order-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.order-back { width: 36px; height: 36px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.order-back svg { width: 22px; height: 22px; color: #333; }
.order-header-title { font-size: 16px; font-weight: 700; color: #333; flex: 1; text-align: center; }
.order-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 90px; }
.order-card {
  background: #fff; border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.order-addr-row { display: flex; align-items: flex-start; gap: 10px; }
.order-addr-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff2ef; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.order-addr-icon svg { width: 16px; height: 16px; color: var(--color-price-red); }
.order-addr-text { flex: 1; }
.order-addr-edit { flex-shrink: 0; width: 28px; height: 28px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.order-addr-edit svg { width: 16px; height: 16px; color: #999; }
.order-addr-edit:active { transform: scale(0.9); }
.order-addr-detail { font-size: 14px; color: #333; font-weight: 700; line-height: 1.5; }
.order-addr-contact { font-size: 12px; color: #999; margin-top: 2px; }
.order-product { display: flex; gap: 12px; }
.order-product-img {
  width: 80px; height: 80px; border-radius: 12px;
  object-fit: cover; flex-shrink: 0;
}
.order-confirm-line + .order-confirm-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0e9e5; }
.order-product-info { flex: 1; }
.order-product-name { font-size: 13px; font-weight: 700; color: #333; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-product-spec { font-size: 12px; color: #999; margin-top: 4px; }
.order-product-price { font-size: 14px; font-weight: 700; color: var(--color-price-red); margin-top: 8px; }
.order-bundle-items { display: grid; gap: 8px; margin-top: 12px; }
.order-bundle-group {
  list-style: none; margin: 0; padding: 4px 10px;
  border: 1px solid #e8e0dc; border-radius: 9px;
  box-shadow: 0 1px 3px rgba(43,38,36,0.06);
}
.order-bundle-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 7px 0; font-size: 13px; overflow-wrap: anywhere;
}
.order-bundle-item + .order-bundle-item { border-top: 1px solid #f3efec; }
.order-bundle-item-info { min-width: 0; }
.order-bundle-unit, .order-bundle-subtotal-label {
  display: block; font-size: 12px; color: #6b5f59; margin-top: 3px;
}
.order-bundle-subtotal { flex-shrink: 0; text-align: right; }
.order-bundle-subtotal strong { color: var(--color-price-red); }
.order-price-section { }
.order-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #f5f5f5;
}
.order-price-row:last-child { border-bottom: none; }
.order-price-label { font-size: 13px; color: #666; }
.order-price-label small { font-size: 11px; color: #bbb; margin-left: 4px; }
.order-price-value { font-size: 13px; color: #333; font-weight: 600; }
.order-price-value.red { color: var(--color-price-red); }
.order-price-row.total { padding-top: 12px; }
.order-price-row.total .order-price-label { font-size: 14px; font-weight: 700; color: #333; }
.order-price-row.total .order-price-value { font-size: 16px; font-weight: 900; color: var(--color-price-red); }
.order-note-label { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 8px; }
.order-note-input {
  width: 100%; border: 1px solid #eee; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: #333;
  resize: none; min-height: 56px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.order-note-input:focus { border-color: var(--color-price-red); }
.order-note-input::placeholder { color: #ccc; }
.order-pay-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; cursor: pointer;
}
.order-pay-option + .order-pay-option { border-top: 1px solid #f5f5f5; }
.order-pay-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.order-pay-icon.wechat { background: #07c160; color: #fff; font-weight: 900; font-size: 14px; }
.order-pay-icon.alipay { background: #1677ff; color: #fff; font-weight: 900; font-size: 12px; }
.order-pay-info { flex: 1; }
.order-pay-name { font-size: 14px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 6px; }
.order-pay-badge {
  font-size: 10px; color: #ff8a3d; background: #fff7f0;
  padding: 1px 6px; border-radius: 4px; font-weight: 700;
}
.order-pay-desc { font-size: 11px; color: #bbb; margin-top: 2px; }
.order-pay-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #ddd; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-base);
}
.order-pay-radio.checked {
  border-color: var(--color-price-red); background: var(--color-price-red);
}
.order-pay-radio.checked::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 900;
}
.order-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid rgba(0,0,0,0.04);
  z-index: 10;
}
.order-total-label { font-size: 13px; color: #666; }
.order-total-label strong { font-size: 18px; color: var(--color-price-red); font-weight: 900; }
.order-submit-btn {
  padding: 12px 32px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #ff6b60, #F5333F);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: var(--transition-base);
}
.order-submit-btn:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
