:root {
  --primary: #8b1e2d;
  --primary-dark: #6d1622;
  --primary-light: #b8384a;
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --bg: #f4f4f6;
  --card: #fff;
  --text: #1c1c1e;
  --text-2: #6b6b70;
  --text-3: #9a9aa0;
  --line: #ececf0;
  --danger: #d93025;
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

#app { min-height: 100vh; }
.page { min-height: 100vh; padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px); background: var(--bg); }
.page-plain { min-height: 100vh; background: var(--bg); padding-bottom: 24px; }
.pad { padding: 0 12px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  display: flex; align-items: center; height: 46px; padding: 0 6px;
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-back { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-right { min-width: 38px; display: flex; justify-content: flex-end; align-items: center; padding-right: 6px; }

/* ---------- 底部 tab ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); }
.tab-item.active { color: var(--primary); }
.tab-icon { position: relative; display: flex; }
.tab-label { font-size: 10px; }
.tab-badge {
  position: absolute; top: -4px; right: -10px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--primary); color: #fff; font-size: 9px; line-height: 15px; text-align: center;
}

/* ---------- 金额 ---------- */
.price { color: var(--primary); font-weight: 700; }
.price-sym { font-size: .72em; margin-right: 1px; }
.price-int { font-size: 1.12em; }
.price-dec { font-size: .78em; }
.price-sm .price-int { font-size: 1em; }
.price-md .price-int { font-size: 1.16em; }
.price-lg .price-int { font-size: 1.5em; }
.price-muted { color: var(--text-2); }

/* ---------- 空态 / 加载 ---------- */
.empty { padding: 64px 24px; text-align: center; color: var(--text-3); }
.empty-ico { color: #d4d4da; display: flex; justify-content: center; margin-bottom: 12px; }
.empty-text { font-size: 14px; }
.empty-sub { font-size: 12px; margin-top: 6px; color: #b4b4ba; }
.loading { padding: 40px 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #dcdce2; border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toast ---------- */
#sh-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px);
  max-width: 76vw; padding: 9px 16px; border-radius: 8px;
  background: rgba(0,0,0,.82); color: #fff; font-size: 13px; text-align: center;
  opacity: 0; pointer-events: none; transition: all .22s ease; z-index: 9999;
}
#sh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 首页 ---------- */
.banner-wrap { margin: 8px 12px 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(109, 22, 34, .09); }
.banner { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f2ecec; }
.banner-track { display: flex; height: 100%; transition: transform .35s ease; }
.banner-track > div { flex: 0 0 100%; height: 100%; }
.banner-track img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner-dots span { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); transition: all .2s; }
.banner-dots span.on { width: 14px; background: #fff; }

.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 14px 8px 12px; background: var(--card); border-radius: var(--radius); margin: 10px 12px 0; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.quick-ico { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #fdf3f4, #f7e3e6); display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--primary); }

.ticker { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 12px; background: var(--card); border-radius: 22px; font-size: 12px; color: var(--text-2); overflow: hidden; }
.ticker-badge { flex: none; padding: 1px 7px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-size: 10px; }
.ticker-body { flex: 1; overflow: hidden; height: 18px; position: relative; }
.ticker-line { position: absolute; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: roll 12s linear infinite; }
@keyframes roll { 0%, 42% { transform: translateY(0); } 50%, 92% { transform: translateY(-18px); } 100% { transform: translateY(-36px); } }

/* 瓷片区：左文右图（商品实拍多为白底，右对齐 contain 不裁切，文字用 HTML 渲染始终清晰） */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 12px 0; }
/* 首页瓷片区 B 版：照片铺满 + 底部压字（客户 2026-11-09 选定） */
.tile { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #7a1420, #b8384a); box-shadow: 0 1px 6px rgba(28, 28, 30, .06); }
.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, .02) 78%, transparent); }
.tile-cap { position: absolute; left: 10px; right: 8px; bottom: 9px; color: #fff; }
.tile-t { font-size: 15px; font-weight: 700; letter-spacing: .5px; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.tile-s { font-size: 10.5px; margin-top: 3px; color: rgba(255, 255, 255, .9); line-height: 1.3; }

.home-more { padding: 16px 12px calc(var(--tab-h) + 26px); text-align: center; }
.home-more .btn { background: #fff; border: 1px solid var(--line); }

.sec { margin: 12px 12px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.sec-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sec-title::before { content: ''; width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--primary-light)); }
.sec-more { font-size: 12px; color: var(--text-3); }

.hot-list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.hot-row { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hot-row:last-child { border-bottom: none; }
.hot-rank { flex: none; width: 20px; font-weight: 700; font-style: italic; color: var(--text-3); text-align: center; font-size: 15px; }
.hot-rank.top { color: var(--primary); }
.hot-img { flex: none; width: 62px; height: 62px; border-radius: 8px; overflow: hidden; background: #f0f0f2; }
.hot-img img { width: 100%; height: 100%; object-fit: cover; }
.hot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.hot-name { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-foot { display: flex; align-items: baseline; justify-content: space-between; }

/* ---------- 商品卡片 ---------- */
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goods { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.goods.grid .goods-img { width: 100%; aspect-ratio: 1; background: #f0f0f2; }
.goods.grid .goods-img img { width: 100%; height: 100%; object-fit: cover; }
.goods.list { display: flex; gap: 10px; padding: 10px; border-radius: 0; border-bottom: 1px solid var(--line); }
.goods.list .goods-img { flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #f0f0f2; }
.goods.list .goods-img img { width: 100%; height: 100%; object-fit: cover; }
.goods-body { padding: 8px 10px 10px; }
.goods.list .goods-body { flex: 1; min-width: 0; padding: 0; display: flex; flex-direction: column; }
.goods-name { font-size: 13px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.tag { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: #fdf0f1; color: var(--primary); }
.goods-reason { margin-top: 4px; font-size: 11px; color: var(--gold); background: #fffbf0; padding: 3px 6px; border-radius: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.goods-foot { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.goods-origin { font-size: 11px; color: var(--text-3); text-decoration: line-through; }
.goods-sold { margin-left: auto; font-size: 10px; color: var(--text-3); }

/* ---------- 商品详情 ---------- */
.detail-swipe { width: 100%; aspect-ratio: 1; background: #f0f0f2; position: relative; }
.detail-swipe img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { background: var(--card); padding: 12px; }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; }
.detail-origin { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.detail-name { margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.42; }
.detail-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.detail-tags .tag { font-size: 11px; padding: 2px 7px; }
.detail-block { margin-top: 10px; background: var(--card); padding: 12px; }
.block-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.block-title::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); }
.reason-box { font-size: 13px; color: #7a5c12; background: linear-gradient(135deg, #fffdf5, #fff8e6); border: 1px solid #f3e3b3; border-radius: 8px; padding: 10px; line-height: 1.6; }
.share-box { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); background: #f7f7fa; border-radius: 8px; padding: 10px; }
.share-box .grow { flex: 1; line-height: 1.5; }
.shop-row { display: flex; align-items: center; gap: 10px; }
.shop-ico { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.shop-name { font-size: 14px; font-weight: 600; }
.shop-sub { font-size: 11px; color: var(--text-3); }
.btn-follow { margin-left: auto; padding: 5px 14px; border-radius: 16px; border: 1px solid var(--primary); color: var(--primary); font-size: 12px; background: #fff; }
.btn-follow.on { background: var(--primary); color: #fff; }
.detail-meta { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); }
.detail-desc { font-size: 13.5px; line-height: 1.75; color: #333; white-space: pre-wrap; word-break: break-word; }
.detail-imgs img { width: 100%; margin-top: 8px; border-radius: 8px; }
.cmt { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmt:last-child { border-bottom: none; }
.cmt-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.cmt-stars { color: var(--gold); letter-spacing: 1px; }
.cmt-body { margin-top: 5px; font-size: 13px; line-height: 1.6; }
.cmt-imgs { display: flex; gap: 6px; margin-top: 6px; }
.cmt-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.cmt-reply { margin-top: 6px; font-size: 12px; color: var(--text-2); background: #f7f7fa; border-radius: 6px; padding: 6px 8px; }
.cmt-stat { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); padding-bottom: 6px; }

/* ---------- 底部操作条 ---------- */
.actbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px calc(8px + var(--safe-bottom));
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
}
.act-ico { width: 46px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; color: var(--text-2); }
.act-ico.on { color: var(--primary); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 21px; font-size: 14px; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--primary); color: var(--primary); }
.btn-gold { background: linear-gradient(135deg, #b5891d, var(--gold-light)); color: #4a3402; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 16px; font-size: 12px; }
.btn:disabled { opacity: .5; }

/* ---------- 分类 ---------- */
.cat-wrap { display: flex; height: calc(100vh - 46px - var(--tab-h) - var(--safe-bottom)); }
.cat-side { flex: none; width: 96px; background: #f0f0f3; overflow-y: auto; }
.cat-side-item { padding: 14px 8px; font-size: 13px; color: var(--text-2); text-align: center; position: relative; }
.cat-side-item.on { background: #fff; color: var(--primary); font-weight: 600; }
.cat-side-item.on::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 16px; background: var(--primary); border-radius: 2px; }
.cat-main { flex: 1; overflow-y: auto; padding: 10px; background: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-cell { text-align: center; font-size: 12px; color: var(--text-2); }
.cat-cell-img { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #f4f4f6; margin-bottom: 5px; overflow: hidden; }
.cat-cell-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 筛选栏 ---------- */
.filters { position: sticky; top: 46px; z-index: 40; display: flex; align-items: center; gap: 4px; padding: 6px 12px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.filter { flex: none; padding: 5px 12px; border-radius: 14px; font-size: 12.5px; color: var(--text-2); background: #f4f4f6; }
.filter.on { background: var(--primary); color: #fff; }
.search-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; }
.search-input { flex: 1; height: 34px; border-radius: 17px; background: #f2f2f5; border: none; padding: 0 14px; font-size: 13px; outline: none; }

/* ---------- 购物车 ---------- */
.cart-item { display: flex; gap: 10px; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.check { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid #c8c8cf; display: flex; align-items: center; justify-content: center; margin-top: 32px; }
.check.on { background: var(--primary); border-color: var(--primary); }
.check.on::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cart-img { flex: none; width: 78px; height: 78px; border-radius: 8px; overflow: hidden; background: #f0f0f2; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-name { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-foot { display: flex; align-items: center; margin-top: auto; }
.stepper { display: flex; align-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { width: 26px; height: 26px; font-size: 15px; color: var(--text-2); background: #fafafc; }
.stepper span { min-width: 32px; text-align: center; font-size: 13px; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); z-index: 55; }
.cart-total { flex: 1; font-size: 12px; color: var(--text-2); }

/* ---------- 通用列表行 ---------- */
.cell { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.cell:last-child { border-bottom: none; }
.cell-label { flex: 1; font-size: 14px; }
.cell-value { font-size: 13px; color: var(--text-2); }
.cell-arrow { color: #c8c8cf; }
.group { margin: 10px 12px 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.group-title { padding: 12px 14px 6px; font-size: 12px; color: var(--text-3); }

/* ---------- 我的 ---------- */
.me-head { padding: 18px 16px 22px; background: linear-gradient(150deg, var(--primary), var(--primary-dark) 65%, #4e1018); color: #fff; }
.me-top { display: flex; align-items: center; gap: 12px; }
.me-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-name { font-size: 17px; font-weight: 600; }
.me-sub { font-size: 11.5px; opacity: .82; margin-top: 3px; }
.me-badge { display: inline-block; margin-top: 5px; padding: 1px 8px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #4a3402; font-size: 10px; font-weight: 600; }
.me-wallet { display: flex; flex-wrap: wrap; margin-top: 16px; row-gap: 12px; }
.me-wallet > div { flex: 0 0 25%; text-align: center; }
.me-wallet .v { font-size: 17px; font-weight: 700; }
.me-wallet .k { font-size: 11px; opacity: .8; margin-top: 2px; }
.me-orders { display: flex; background: #fff; padding: 12px 0; }
.me-order { flex: 1; text-align: center; font-size: 11.5px; color: var(--text-2); position: relative; }
.me-order .n { font-size: 17px; font-weight: 600; color: var(--text); }
.me-order .b { position: absolute; top: -4px; right: 50%; transform: translateX(26px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 9px; line-height: 15px; }

/* ---------- 表单 ---------- */
.field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: none; }
.field-label { flex: none; width: 76px; font-size: 14px; }
.field-input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }
.field-input::placeholder { color: #b8b8c0; }
textarea.field-input { min-height: 66px; resize: none; }
.form-tip { padding: 10px 14px; font-size: 11.5px; color: var(--text-3); }

/* ---------- 订单 ---------- */
.order-card { margin: 10px 12px 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.order-head { display: flex; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.order-status { margin-left: auto; color: var(--primary); font-weight: 600; }
.order-body { display: flex; gap: 10px; padding: 12px; }
.order-img { flex: none; width: 70px; height: 70px; border-radius: 8px; overflow: hidden; background: #f0f0f2; }
.order-img img { width: 100%; height: 100%; object-fit: cover; }
.order-info { flex: 1; min-width: 0; }
.order-name { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-meta { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.order-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; }
.order-total { flex: 1; font-size: 12px; color: var(--text-2); }

/* ---------- tab 切换 ---------- */
.tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 46px; z-index: 40; overflow-x: auto; }
.tabs-item { flex: none; padding: 11px 14px; font-size: 13.5px; color: var(--text-2); position: relative; white-space: nowrap; }
.tabs-item.on { color: var(--primary); font-weight: 600; }
.tabs-item.on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 20px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.tabs-item .n { font-size: 10px; color: var(--danger); margin-left: 2px; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 78vh; background: #fff; border-radius: 16px 16px 0 0; padding: 16px 14px calc(16px + var(--safe-bottom)); overflow-y: auto; }
.sheet-title { font-size: 15px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.sheet-close { position: absolute; right: 14px; top: 12px; color: var(--text-3); font-size: 20px; }
.center-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { width: 100%; max-width: 320px; background: #fff; border-radius: 14px; padding: 18px 16px 12px; }
.dialog-title { font-size: 15px; font-weight: 600; text-align: center; }

/* ---------- 收款码全屏查看（微信内核调不起下载时，靠长按保存） ---------- */
.qr-big { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; }
.qr-big img { width: 76vw; max-width: 320px; height: auto; background: #fff; padding: 10px; border-radius: 10px; }
.qr-big-tip { margin-top: 20px; color: #fff; font-size: 13px; line-height: 1.8; text-align: center; }
.qr-big-close { margin-top: 24px; padding: 9px 32px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; color: #fff; font-size: 14px; }

/* ---------- 门店/代理 ---------- */
.hero { padding: 18px 16px; background: linear-gradient(150deg, #2a1a0e, #5b3a12 60%, #8b1e2d); color: #fff; }
.hero-title { font-size: 19px; font-weight: 700; }
.hero-sub { font-size: 12px; opacity: .85; margin-top: 6px; line-height: 1.6; }
.gift-card { display: flex; flex-direction: column; gap: 8px; margin: 10px 12px 0; background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid #f0e2c8; }
.gift-name { font-size: 15px; font-weight: 700; }
.gift-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.gift-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 9px; background: #fdf0f1; color: var(--primary); font-size: 10.5px; }
.pill-gold { background: #fff8e6; color: #8a6a10; }

/* 进度条 / 排行榜 */
.progress { height: 6px; border-radius: 3px; background: #f0f0f3; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-no { width: 20px; text-align: center; font-weight: 700; font-style: italic; color: var(--text-3); }
.rank-no.top { color: var(--primary); }
.rank-name { flex: 1; font-size: 13.5px; }
.rank-amt { font-size: 13.5px; font-weight: 600; color: var(--primary); }

/* 登录 */
.login-wrap { min-height: 100vh; padding: 56px 24px calc(var(--tab-h) + var(--safe-bottom) + 28px); background: linear-gradient(160deg, #fff 0%, #fdf2f3 42%, #f4f4f6 100%); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .t { font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.login-logo .s { font-size: 12px; color: var(--text-3); margin-top: 6px; letter-spacing: 1px; }
.login-card { background: #fff; border-radius: 16px; padding: 6px 0; box-shadow: 0 8px 28px rgba(139,30,45,.07); }
.login-btn { margin: 18px 14px 8px; }
.login-switch { text-align: center; font-size: 12.5px; color: var(--text-2); padding: 12px 0 4px; }
.login-switch b { color: var(--primary); font-weight: 600; }

.stat-row { display: flex; gap: 8px; margin: 10px 12px 0; }
.stat-box { flex: 1; background: #fff; border-radius: var(--radius); padding: 12px; text-align: center; }
.stat-box .v { font-size: 17px; font-weight: 700; color: var(--primary); }
.stat-box .k { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ==================== 2026-11-08 新增页面样式 ==================== */
/* 地址管理 */
.addr { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.addr:last-child { border-bottom: 0; }
.addr-top { font-size: 14px; }
.addr-detail { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-top: 4px; }
.addr-ops { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); text-align: right; flex: none; }
.addr-ops span { cursor: pointer; }

/* 底部弹出层 */

/* 开关 */
.switch { width: 44px; height: 25px; border-radius: 999px; background: #dfe0e6; position: relative; transition: background .2s; flex: none; }
.switch i { position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.switch.on { background: var(--primary); }
.switch.on i { left: 21.5px; }

/* 商品详情：排队返还说明 */
.share-note { margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: linear-gradient(90deg, #fdf3f4, #fbf7ea); font-size: 12px; line-height: 1.7; color: #7a4a12; }
.share-note b { color: var(--primary); }

/* 商品详情：评价筛选 */
.cmt-tabs { display: flex; gap: 8px; padding: 8px 0 10px; }
.cmt-tabs .filter { padding: 4px 12px; border-radius: 999px; background: #f4f4f6; font-size: 12px; color: var(--text-2); }
.cmt-tabs .filter.on { background: var(--primary); color: #fff; }

/* 订单详情：状态条 */
.od-status { padding: 20px 16px 18px; background: linear-gradient(150deg, #8b1e2d, #b8384a); color: #fff; }
.od-status .t { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.od-status .s { font-size: 12.5px; opacity: .85; margin-top: 6px; }

/* 首页顶栏 + 搜索 + 分类条 */
.home-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px 6px; background: #fff; position: sticky; top: 0; z-index: 60; }
.home-brand { font-size: 15px; font-weight: 700; letter-spacing: 1px; flex: none; color: var(--primary); }
.home-search { flex: 1; display: flex; align-items: center; gap: 5px; height: 31px; padding: 0 10px; border-radius: 999px; background: #f4f4f6; color: var(--text-3); font-size: 12.5px; }
.home-bell { color: var(--text-2); display: flex; align-items: center; flex: none; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px 10px; background: #fff; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; padding: 5px 11px; border-radius: 999px; background: #f6f6f8; font-size: 12px; color: var(--text-2); white-space: nowrap; }
