﻿/* ============================================================================
 * 屏幕内容结构 + 中性视觉底稿
 * 六套风格只需覆盖 :root 里的变量与少量装饰，就能完全换掉气质

.page {
  --brand: #1a1a1a;
  --brand-ink: #fff;
  --pg-bg: #fff;
  --pg-ink: #191919;
  --pg-mut: #8a8a8a;
  --pg-line: rgba(0, 0, 0, .08);
  --card-bg: #fff;
  --card-r: 12px;
  --card-shadow: none;
  --tab-bg: #fff;
  --tab-line: rgba(0, 0, 0, .07);
  --badge-bg: #e5484d;
  --sheet-bg: #fff;
  --act-bg: #fff;
  --act-line: rgba(0, 0, 0, .06);
  --btn-bg: #191919;
  --btn-ink: #fff;
  --radius: 12px;
  --gap: 12px;
  --halo: transparent;
}

/* 让 .page 的滚动区能正确撑高 */
.page > .scroll { min-height: 0; }

/* ================================================================= 首页 == */
.h-head {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 4px 16px 10px; position: relative; z-index: 8;
  transition: background .25s ease, box-shadow .25s ease;
}
.h-head.stuck { background: var(--pg-bg); box-shadow: 0 1px 0 var(--pg-line); }
.h-loc { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; flex: none; letter-spacing: .01em; }
.h-search {
  flex: 1; height: 34px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 5px 0 11px; min-width: 0;
  background: rgba(0, 0, 0, .055);
  color: var(--pg-mut); font-size: 12px;
}
.h-search em { font-style: normal; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-search i { font-style: normal; font-size: 11px; padding: 4px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); letter-spacing: .04em; }
.h-bell { width: 30px; height: 30px; display: grid; place-items: center; position: relative; flex: none; }
.h-bell u { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--badge-bg); text-decoration: none; }

/* 下拉刷新 */
.pull { height: 0; overflow: hidden; display: grid; place-items: center; transition: height .28s cubic-bezier(.22, .9, .28, 1); }
.pull-in { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--pg-mut); }
.pull.ready .pull-in { color: var(--brand); }
.pull.ready .pull-in svg { transform: rotate(180deg); }
.spin { width: 12px; height: 12px; border: 1.6px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 杞挱 */
.banner { position: relative; margin: 6px 14px 0; border-radius: 16px; overflow: hidden; height: 168px; }
.bn-item { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.bn-item.on { opacity: 1; pointer-events: auto; }
.bn-art { position: absolute; inset: 0; }
.bn-art svg { width: 100%; height: 100%; }
.bn-txt { position: relative; z-index: 2; padding: 22px 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.bn-tag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }
.bn-txt h2 { font-size: 25px; line-height: 1.16; letter-spacing: -.01em; font-weight: 700; }
.bn-txt p { font-size: 11.5px; opacity: .62; letter-spacing: .02em; }
.bn-btn { margin-top: 9px; align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.bn-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 4px; z-index: 3; }
.bn-dots i { width: 5px; height: 5px; border-radius: 99px; background: currentColor; opacity: .28; transition: all .35s ease; cursor: pointer; }
.bn-dots i.on { width: 16px; opacity: .95; }

/* 分类 */
.cats { display: flex; padding: 18px 10px 6px; }
.cat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: transform .18s cubic-bezier(.2, .9, .3, 1); }
.cat:active { transform: scale(.92); }
.cat-ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: rgba(0, 0, 0, .045); }
.cat-n { font-size: 11px; letter-spacing: .02em; }

/* 券条 */
.coupon-strip {
  margin: 12px 14px 4px; padding: 11px 14px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(100deg, rgba(178, 58, 42, .09), rgba(178, 58, 42, .03));
  border: 1px dashed rgba(178, 58, 42, .3);
}
.cs-l { display: flex; align-items: center; gap: 9px; flex: 1; }
.cs-badge { width: 26px; height: 26px; border-radius: 8px; background: #b23a2a; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.coupon-strip b { font-size: 12.5px; display: block; }
.coupon-strip p { font-size: 10.5px; opacity: .55; }
.cs-btn { font-size: 11px; display: flex; align-items: center; gap: 2px; color: #b23a2a; font-weight: 600; }

/* 分区头 */
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; padding: 22px 16px 10px; }
.sec-ht { display: flex; align-items: baseline; gap: 8px; }
.sec-ht b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sec-ht span { font-size: 10.5px; opacity: .5; letter-spacing: .02em; }
.sec-more { font-size: 11px; opacity: .5; display: flex; align-items: center; gap: 1px; }

/* 鍟嗗搧缃戞牸 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.card { text-align: left; border-radius: var(--card-r); background: var(--card-bg); overflow: hidden; box-shadow: var(--card-shadow); transition: transform .22s cubic-bezier(.2, .9, .3, 1); }
.card:active { transform: scale(.968); }
.card-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: rgba(0, 0, 0, .03); }
.card-art svg { width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.card:hover .card-art svg { transform: scale(1.04); }
.card-badge { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); }
.card-seal { position: absolute; top: 4px; right: 4px; }
.card-b { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 2px; }
.card-n { font-size: 12.5px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; }
.card-sub { font-size: 10px; opacity: .45; letter-spacing: .02em; }
.card-tags { display: flex; gap: 3px; margin-top: 4px; }
.card-tag { font-size: 9px; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, .05); opacity: .75; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 5px; gap: 4px; }
.card-pr { display: flex; align-items: baseline; gap: 4px; }
.card-pr .price { font-size: 16px; }
.card-sold { font-size: 9px; opacity: .4; white-space: nowrap; }
.card-mini .card-b { padding: 8px 8px 10px; }
.card-mini .card-n { font-size: 12px; }
/* 窄栏卡片：价格行必须能换行，否则必然溢出 */
.card-mini .card-foot { flex-wrap: wrap; row-gap: 1px; }
.card-mini .card-pr .price { font-size: 14px; }
.card-mini .card-sold { font-size: 8.5px; }
.card-mini .card-tag { font-size: 8px; padding: 0 3px; }
.card-mini .card-art { aspect-ratio: 1 / .95; }
.list-mode { grid-template-columns: 1fr !important; }
.list-mode .card { display: flex; }
.list-mode .card-art { width: 108px; aspect-ratio: auto; flex: none; }
.list-mode .card-b { flex: 1; justify-content: center; }

/* 瀹藉崱 */
.wide-list { padding: 4px 14px; }
.wide { display: flex; width: 100%; text-align: left; border-radius: 14px; overflow: hidden; background: var(--card-bg); box-shadow: var(--card-shadow); }
.wide-art { width: 132px; flex: none; background: rgba(0, 0, 0, .03); }
.wide-art svg { width: 100%; height: 100%; }
.wide-b { padding: 14px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.wide-tag { font-size: 9.5px; letter-spacing: .14em; opacity: .45; text-transform: uppercase; }
.wide-b b { font-size: 15px; font-weight: 600; }
.wide-b p { font-size: 11px; opacity: .5; line-height: 1.55; }
.wide-pr { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.wide-pr .price { font-size: 17px; }

.foot-note { text-align: center; font-size: 10px; opacity: .34; padding: 28px 0 8px; letter-spacing: .06em; }

/* 鍥炲埌椤堕儴 */
.to-top {
  position: fixed; right: 14px; bottom: 96px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tab-bg); color: var(--pg-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0; transform: translateY(10px) scale(.85); pointer-events: none;
  transition: all .28s cubic-bezier(.2, .9, .3, 1); z-index: 20;
}
.page .to-top { position: absolute; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }

/* =============================================================== 分类页 == */
.c-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 14px 10px; }
.c-search { flex: 1; height: 34px; border-radius: 10px; background: rgba(0, 0, 0, .05); display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12px; }
.c-search.focus { background: var(--pg-bg); box-shadow: 0 0 0 1.6px var(--brand); }
.c-search input { flex: 1; border: none; background: none; outline: none; font: inherit; color: inherit; min-width: 0; }
.c-search input::placeholder { color: var(--pg-mut); }
.c-cancel { font-size: 11.5px; color: var(--pg-mut); flex: none; }
.c-filter-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, .05); flex: none; }
.c-body { flex: 1; display: flex; min-height: 0; min-width: 0; overflow: hidden; }
.c-side { width: 84px; flex: none; overflow-y: auto; padding-bottom: 90px; scrollbar-width: none; }
.c-side::-webkit-scrollbar { display: none; }
.cs-item {
  width: 100%; padding: 13px 6px 13px 0; text-align: center; font-size: 12.5px;
  color: var(--pg-mut); position: relative; transition: color .2s ease, font-weight .1s;
}
.cs-item.on { color: var(--pg-ink); font-weight: 700; }
.cs-item i { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 3px; height: 14px; border-radius: 99px; background: var(--brand); }
.c-main { flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.c-sort {
  flex: none; display: flex; align-items: center; gap: 3px;
  padding: 0 10px 9px 4px; margin-bottom: 2px;
  position: relative; z-index: 3; background: var(--pg-bg);
}
.sort-b { font-size: 12px; padding: 5px 8px; border-radius: 7px; color: var(--pg-mut); transition: all .18s ease; white-space: nowrap; }
.sort-b.on { background: rgba(0, 0, 0, .06); color: var(--pg-ink); font-weight: 600; }
.c-view { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; color: var(--pg-mut); flex: none; }
.c-view.on { color: var(--brand); }
.c-list { padding-bottom: 0; min-height: 0; }
.c-kwhint { font-size: 10.5px; color: var(--pg-mut); padding: 2px 10px 8px; }
.c-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px; padding: 0 10px 0 4px;
}
.c-grid > * { min-width: 0; }
.c-grid.only-free .card:not([data-free]) { }
.c-flagnote { font-size: 10px; opacity: .4; padding: 10px 0 0 4px; }
.c-empty { grid-column: 1 / -1; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.c-empty b { font-size: 13.5px; }
.c-empty span { font-size: 11.5px; opacity: .45; }
.c-hot { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.c-hot button { font-size: 11px; padding: 5px 11px; border-radius: 99px; background: rgba(0, 0, 0, .05); }

/* 绛涢€夋娊灞?*/
.filter-sheet { width: 100%; background: var(--sheet-bg); border-radius: 22px 22px 0 0; padding: 8px 20px 24px; animation: sheetIn .32s cubic-bezier(.22, .9, .28, 1) both; }
.fs-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.fs-h b { font-size: 16px; }
.fs-t { display: block; font-size: 12px; font-weight: 600; margin: 8px 0 10px; }
.fs-price { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.fs-price input { flex: 1; height: 36px; border-radius: 9px; border: 1px solid var(--pg-line); background: rgba(0, 0, 0, .02); padding: 0 11px; font: inherit; font-size: 12.5px; outline: none; color: inherit; }
.fs-price input:focus { border-color: var(--brand); }
.fs-price span { opacity: .3; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chip { font-size: 12px; padding: 7px 13px; border-radius: 9px; background: rgba(0, 0, 0, .05); transition: all .18s ease; }
.fs-chip.on { background: var(--brand); color: var(--brand-ink); }
.fs-f { display: flex; gap: 10px; margin-top: 20px; }
.btn-reset { flex: 1; height: 44px; border-radius: 22px; border: 1px solid var(--pg-line); font-size: 14px; }
.btn-ok { flex: 2; height: 44px; border-radius: 22px; background: var(--btn-bg); color: var(--btn-ink); font-size: 14px; font-weight: 600; }

/* =============================================================== 璇︽儏椤?== */
.d-nav { position: absolute; top: var(--status-h); left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 10px; transition: background .3s ease, box-shadow .3s ease; }
.d-nav.solid { background: var(--pg-bg); box-shadow: 0 1px 0 var(--pg-line); }
.d-nav .pb { background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.d-nav.solid .pb { background: rgba(0, 0, 0, .05); box-shadow: none; }
.d-nav .pb.on { color: #d33b3b; }
.d-nav-r { display: flex; gap: 6px; }
.d-scroll { padding-bottom: 0; }
.d-gallery { position: relative; height: 390px; overflow: hidden; background: rgba(0, 0, 0, .03); }
.d-track { display: flex; height: 100%; will-change: transform; }
.d-slide { width: 100%; height: 100%; flex: none; position: relative; }
.d-slide svg { width: 100%; height: 100%; }
.d-gallery.zoom .d-track { transform: scale(1.9) !important; transition: transform .4s cubic-bezier(.2, .9, .3, 1) !important; }
.d-slide2 { background: rgba(0, 0, 0, .02); }
.d-slide3 { display: grid; place-items: center; background: rgba(0, 0, 0, .035); }
.d-detailart { width: 76%; padding: 20px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; background: rgba(255, 255, 255, .5); }
.dd-row { display: flex; justify-content: space-between; }
.dd-row i { height: 7px; background: rgba(0, 0, 0, .12); border-radius: 3px; width: 42%; position: relative; }
.dd-row i::after { content: attr(data-t); position: absolute; top: -14px; left: 0; font-size: 8px; }
.dd-cap { font-size: 9px; text-align: center; opacity: .45; letter-spacing: .1em; }
.dd-lines { display: flex; flex-direction: column; gap: 6px; }
.dd-lines span { height: 5px; background: rgba(0, 0, 0, .07); border-radius: 3px; }
.dd-lines span:nth-child(2) { width: 78%; }
.dd-lines span:nth-child(3) { width: 54%; }
.d-hint { position: absolute; bottom: 12px; left: 16px; font-size: 10px; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .38); color: #fff; letter-spacing: .04em; }
.d-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.d-dots i { width: 5px; height: 5px; border-radius: 99px; background: currentColor; opacity: .3; transition: all .3s ease; }
.d-dots i.on { width: 14px; opacity: .9; }
.d-idx { position: absolute; bottom: 12px; right: 16px; font-size: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .38); color: #fff; font-family: "Inter", monospace; }
.d-idx b { font-weight: 600; }

.d-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 16px 16px 8px; }
.d-pr-l { display: flex; flex-direction: column; gap: 5px; }
.d-pr { display: flex; align-items: baseline; gap: 7px; }
.d-pr .price { font-size: 27px; letter-spacing: -.02em; }
.d-pmt { font-size: 10.5px; opacity: .5; display: flex; align-items: center; gap: 5px; }
.d-coupon { font-size: 10.5px; padding: 4px 9px; border-radius: 5px; background: rgba(178, 58, 42, .1); color: #b23a2a; font-weight: 600; flex: none; }

.d-title { padding: 2px 16px 14px; }
.d-title h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.d-title p { font-size: 11.5px; opacity: .48; margin-top: 4px; letter-spacing: .02em; }
.d-badges { display: flex; gap: 4px; margin-top: 9px; flex-wrap: wrap; }
.d-badges .tag { color: var(--pg-mut); border-color: var(--pg-line); font-size: 9.5px; padding: 2px 6px; }

.d-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; width: 100%; text-align: left; border-top: 1px solid var(--pg-line); }
.d-row-k { font-size: 11.5px; opacity: .45; flex: none; width: 32px; }
.d-row-v { flex: 1; font-size: 12.5px; }
.d-row svg { opacity: .3; flex: none; }
.d-row-serv .d-row-v { font-size: 11.5px; opacity: .7; }

.d-review { border-top: 8px solid rgba(0, 0, 0, .035); }
.d-review .sec-h { padding-top: 14px; }
.rv-list { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.rv-h { display: flex; align-items: center; gap: 7px; }
.rv-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none; }
.rv-av svg { width: 100%; height: 100%; }
.rv-h b { font-size: 11.5px; font-weight: 500; }
.rv-h .rate { margin-left: auto; }
.rv p { font-size: 12px; opacity: .72; line-height: 1.65; margin-top: 6px; }
.rate { display: inline-flex; align-items: center; gap: 1px; }
.rate > span > span { display: flex; }
.rate .on { color: #e2a33c; display: flex; }
.rate .off { color: rgba(0, 0, 0, .15); display: flex; }
.rate em { font-style: normal; font-size: 10.5px; margin-left: 3px; opacity: .6; font-family: "Inter", monospace; }
.rate > span:last-child:not(:first-child) { font-size: 10px; opacity: .4; margin-left: 2px; }

.d-detail { border-top: 8px solid rgba(0, 0, 0, .035); padding: 18px 16px 8px; }
.dd-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dd-head span { font-size: 14px; font-weight: 700; }
.dd-head i { font-style: normal; font-size: 9px; letter-spacing: .22em; opacity: .3; }
.dd-p { font-size: 12px; opacity: .68; line-height: 1.85; margin-bottom: 12px; }
.dd-img { border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.dd-params { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--pg-line); border-radius: 8px; overflow: hidden; margin: 14px 0; }
.dd-param { background: var(--pg-bg); padding: 9px 11px; font-size: 10.5px; opacity: .62; }

.d-bar { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px calc(var(--homebar) + 4px); background: var(--act-bg); border-top: 1px solid var(--act-line); position: relative; z-index: 12; }
.d-bar-ic { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 46px; position: relative; font-size: 9.5px; opacity: .75; }
.d-bar-badge { position: absolute; top: -3px; right: 5px; min-width: 14px; height: 14px; border-radius: 99px; background: var(--badge-bg); color: #fff; font-size: 9px; line-height: 14px; text-align: center; font-style: normal; font-family: "Inter", monospace; }
.d-bar-badge.pop { animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
.d-bar-add, .d-bar-buy { flex: 1; height: 44px; border-radius: 22px; font-size: 14px; font-weight: 600; transition: transform .16s ease, filter .16s ease; }
.d-bar-add { background: rgba(0, 0, 0, .07); }
.d-bar-buy { background: var(--btn-bg); color: var(--btn-ink); }
.d-bar-add:active, .d-bar-buy:active { transform: scale(.97); filter: brightness(.95); }

/* SKU 鎶藉眽 */
.sku-sheet { width: 100%; background: var(--sheet-bg); border-radius: 20px 20px 0 0; padding: 18px 18px 22px; animation: sheetIn .32s cubic-bezier(.22, .9, .28, 1) both; display: flex; flex-direction: column; max-height: 82%; }
.sku-head { display: flex; gap: 13px; position: relative; }
.sku-art { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; flex: none; margin-top: -34px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); background: #fff; }
.sku-info { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.sku-pr .price { font-size: 22px; }
.sku-pr .price-old { margin-left: 6px; }
.sku-stock { font-size: 10px; opacity: .42; }
.sku-sel { font-size: 11.5px; opacity: .7; }
.sku-head .pb { position: absolute; top: -6px; right: -6px; }
.sku-body { overflow-y: auto; margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.sku-g b { font-size: 12px; display: block; margin-bottom: 9px; }
.sku-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-o { font-size: 12px; padding: 8px 15px; border-radius: 8px; background: rgba(0, 0, 0, .05); border: 1px solid transparent; transition: all .18s cubic-bezier(.2, .9, .3, 1); }
.sku-o.on { background: var(--brand); color: var(--brand-ink); }
.sku-qty { display: flex; align-items: center; justify-content: space-between; }
.sku-qty b { margin: 0; }
.stepper { display: flex; align-items: center; border-radius: 7px; overflow: hidden; background: rgba(0, 0, 0, .05); }
.stepper button { width: 30px; height: 28px; display: grid; place-items: center; }
.stepper button:disabled { opacity: .25; }
.stepper em { font-style: normal; min-width: 32px; text-align: center; font-size: 12.5px; font-family: "Inter", monospace; }
.stepper-sm { border-radius: 6px; }
.stepper-sm button { width: 26px; height: 24px; }
.stepper-sm em { min-width: 26px; font-size: 12px; }
.sku-foot { margin-top: 20px; }
.sku-ok { width: 100%; height: 46px; border-radius: 23px; background: var(--btn-bg); color: var(--btn-ink); font-size: 15px; font-weight: 600; }
.flyart { position: absolute; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; z-index: 90; pointer-events: none; transition: transform .6s cubic-bezier(.5, -.3, .7, 1), opacity .6s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }

/* ============================================================== 璐墿杞?== */
.cart-scroll { padding-bottom: 0; }
.cart-tip { display: flex; align-items: center; gap: 6px; margin: 0 14px 10px; padding: 9px 12px; border-radius: 9px; background: rgba(0, 0, 0, .04); font-size: 11px; }
.cart-tip b { color: #b23a2a; font-family: "Inter", monospace; }
.ci { position: relative; margin: 0 14px 9px; border-radius: 12px; overflow: hidden; background: var(--card-bg); }
.ci-swipe { display: flex; align-items: center; gap: 10px; padding: 10px; position: relative; background: var(--card-bg); transition: transform .28s cubic-bezier(.22, .9, .28, 1); z-index: 2; }
.ci-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .2); flex: none; display: grid; place-items: center; color: transparent; transition: all .2s cubic-bezier(.2, .9, .3, 1); }
.ci.on .ci-check { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ci-art { width: 76px; height: 76px; border-radius: 9px; overflow: hidden; flex: none; }
.ci-b { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ci-n { font-size: 13px; font-weight: 600; }
.ci-spec { font-size: 10px; opacity: .42; background: rgba(0, 0, 0, .04); align-self: flex-start; padding: 1px 6px; border-radius: 3px; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.ci-foot .price { font-size: 15px; }
.ci-del { position: absolute; top: 0; right: 0; bottom: 0; width: 72px; background: #e5484d; color: #fff; font-size: 13px; display: grid; place-items: center; z-index: 1; }
.ci-invalid-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 9px; font-size: 11px; }
.ci-invalid-head b { font-weight: 500; opacity: .5; }
.ci-invalid-head button { font-size: 10.5px; opacity: .45; }
.ci-dead { opacity: .55; }
.ci-dead-tag { position: absolute; top: 10px; left: 10px; font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .4); color: #fff; z-index: 3; }
.ci-dead .ci-swipe { padding-left: 10px; }
.ci-dead .ci-art { margin-left: 0; }
.ci-dead-txt { font-size: 10.5px; opacity: .6; }
.cart-invalid .ci { display: flex; align-items: center; gap: 10px; padding: 10px; }
.cart-coupon { margin: 12px 14px 0; padding: 12px; border-radius: 11px; display: flex; align-items: center; gap: 10px; background: rgba(178, 58, 42, .06); }
.cc-l { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; }
.cc-ico { width: 24px; height: 24px; border-radius: 7px; background: #b23a2a; color: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; }
.cc-l b { font-size: 11px; display: block; }
.cc-bar { height: 3px; border-radius: 99px; background: rgba(178, 58, 42, .16); margin-top: 6px; overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: #b23a2a; border-radius: 99px; transition: width .4s ease; }
.cart-coupon > button { font-size: 11px; padding: 5px 11px; border-radius: 99px; background: #b23a2a; color: #fff; flex: none; }
.cart-rec .sec-h { padding-left: 14px; padding-right: 14px; }
.cart-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 14px 4px; background: var(--act-bg); border-top: 1px solid var(--act-line); }
.cart-all { display: flex; align-items: center; gap: 6px; font-size: 11.5px; flex: none; }
.cart-all svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .2); color: transparent; box-sizing: content-box; transition: all .2s ease; }
.cart-all.on svg { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cart-sum { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.cart-sum > span:first-child { font-size: 11px; display: flex; align-items: baseline; gap: 4px; }
.cart-sum .price { font-size: 19px; }
.cart-sum-t { font-size: 9px; opacity: .35; }
.cart-pay { height: 42px; padding: 0 22px; border-radius: 21px; background: var(--btn-bg); color: var(--btn-ink); font-size: 14px; font-weight: 600; flex: none; }
.cart-pay.editing, .cart-bar.editing .cart-pay { background: #e5484d; }

/* ============================================================ 缁撶畻 / 鏀粯 = */
.co-scroll { padding-bottom: 0; }
.co-addr { position: relative; display: flex; align-items: center; gap: 11px; width: calc(100% - 28px); margin: 2px 14px 10px; padding: 15px 14px; border-radius: 13px; text-align: left; background: var(--card-bg); box-shadow: var(--card-shadow); transition: padding .3s ease; }
.co-addr.shrink { padding-top: 10px; padding-bottom: 10px; }
.co-addr-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(178, 58, 42, .1); color: #b23a2a; flex: none; }
.co-addr-b { flex: 1; min-width: 0; transition: opacity .2s ease; }
.co-addr-h { display: flex; align-items: center; gap: 7px; }
.co-addr-h b { font-size: 14px; }
.co-addr-h em { font-style: normal; font-size: 11.5px; opacity: .55; font-family: "Inter", monospace; }
.co-addr-tag { font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(178, 58, 42, .1); color: #b23a2a; }
.co-addr-b p { font-size: 11.5px; opacity: .62; line-height: 1.5; margin-top: 5px; }
.co-addr > svg { opacity: .3; flex: none; }
.co-addr-line { position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: repeating-linear-gradient(90deg, rgba(178, 58, 42, .5) 0 8px, transparent 8px 14px); border-radius: 2px; }
.co-wxaddr { display: flex; align-items: center; gap: 7px; width: calc(100% - 28px); margin: 0 14px 10px; padding: 9px 13px; border-radius: 9px; font-size: 11.5px; background: rgba(7, 193, 96, .07); color: #0d9b55; }
.co-wxaddr b { font-weight: 500; flex: 1; }
.co-wxaddr em { font-style: normal; font-size: 10px; opacity: .65; }
.co-goods { margin: 0 14px; padding: 12px; border-radius: 12px; background: var(--card-bg); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 11px; }
.co-gi { display: flex; gap: 10px; }
.co-gi-art { width: 66px; height: 66px; border-radius: 8px; overflow: hidden; flex: none; }
.co-gi-b { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-gi-n { font-size: 12.5px; font-weight: 600; }
.co-gi-s { font-size: 10px; opacity: .42; }
.co-gi-f { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.co-gi-f .price { font-size: 14px; }
.co-gi-n2 { font-size: 10.5px; opacity: .4; font-family: "Inter", monospace; }
.co-rows { margin: 10px 14px; padding: 2px 12px; border-radius: 12px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.co-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 0; text-align: left; border-top: 1px solid var(--pg-line); }
.co-row:first-child { border-top: none; }
.co-row-k { font-size: 11.5px; opacity: .5; flex: none; width: 58px; }
.co-row-v { flex: 1; font-size: 11.5px; text-align: right; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-row svg { opacity: .26; flex: none; }
.co-badge { font-style: normal; font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .05); opacity: .55; }
.co-sum { margin: 10px 14px; padding: 12px; border-radius: 12px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.co-sum-r { display: flex; justify-content: space-between; font-size: 11.5px; padding: 5px 0; }
.co-sum-r span { opacity: .55; }
.co-sum-r b { font-weight: 500; font-family: "Inter", monospace; }
.co-sum .cut { color: #b23a2a; }
.co-sum-last { border-top: 1px solid var(--pg-line); margin-top: 5px; padding-top: 10px; align-items: baseline; }
.co-sum-last b.big { font-size: 20px; font-weight: 700; }
.co-safe { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 9.5px; opacity: .35; padding: 4px 0; }
.co-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(var(--homebar) + 4px); background: var(--act-bg); border-top: 1px solid var(--act-line); }
.co-bar-l { flex: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.co-bar-l > span { font-size: 10.5px; opacity: .5; }
.co-bar-l .price { font-size: 22px; }
.co-bar-l em { font-style: normal; font-size: 9.5px; opacity: .4; width: 100%; }
.co-pay { height: 44px; padding: 0 26px; border-radius: 22px; background: var(--btn-bg); color: var(--btn-ink); font-size: 14.5px; font-weight: 600; flex: none; }

/* 券选择 */
.cp-pick { display: flex; flex-direction: column; gap: 9px; padding-bottom: 6px; }
.cp-item { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 11px; background: rgba(0, 0, 0, .03); text-align: left; }
.cp-item.on { box-shadow: inset 0 0 0 1.5px var(--brand); }
.cp-item.off { opacity: .4; }
.cp-l { width: 54px; height: 54px; border-radius: 9px; background: rgba(178, 58, 42, .1); color: #b23a2a; display: flex; align-items: baseline; justify-content: center; gap: 1px; padding-top: 15px; flex: none; }
.cp-l b { font-size: 19px; font-family: "Inter", monospace; }
.cp-l span { font-size: 9px; }
.cp-m { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-m b { font-size: 12.5px; }
.cp-m span { font-size: 10px; opacity: .5; }
.cp-m em { font-style: normal; font-size: 9.5px; opacity: .4; }
.cp-m .cp-no { color: #b23a2a; opacity: .75; }
.cp-radio { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .18); flex: none; }
.cp-item.on .cp-radio { border: 5px solid var(--brand); }
.cp-none { font-size: 11.5px; opacity: .5; padding: 11px 0; text-align: center; border-top: 1px dashed var(--pg-line); margin-top: 4px; }

/* 澶囨敞 */
.note-wrap { position: relative; }
.note-wrap textarea { width: 100%; height: 96px; border-radius: 10px; border: 1px solid var(--pg-line); background: rgba(0, 0, 0, .02); padding: 11px; font: inherit; font-size: 12.5px; line-height: 1.7; outline: none; resize: none; color: inherit; }
.note-wrap textarea:focus { border-color: var(--brand); }
.note-count { position: absolute; right: 10px; bottom: 8px; font-size: 9.5px; opacity: .35; font-family: "Inter", monospace; }
.note-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.note-tags button { font-size: 11px; padding: 6px 11px; border-radius: 7px; background: rgba(0, 0, 0, .05); }
.sheet-foot { margin-top: 16px; display: flex; }
.sheet-foot .btn-main { flex: 1; height: 46px; border-radius: 23px; background: var(--btn-bg); color: var(--btn-ink); font-size: 15px; font-weight: 600; }

/* ================================================================ 璁㈠崟 == */
.o-tabs { flex: none; display: flex; gap: 2px; padding: 0 10px 6px; }
.o-tab { flex: 1; font-size: 12px; padding: 9px 0; position: relative; color: var(--pg-mut); transition: color .2s ease; }
.o-tab.on { color: var(--pg-ink); font-weight: 700; }
.o-tab.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); width: 16px; height: 2.5px; border-radius: 99px; background: var(--brand); }
.o-tab i { font-style: normal; font-size: 9px; background: var(--badge-bg); color: #fff; border-radius: 99px; padding: 0 4px; margin-left: 2px; vertical-align: top; }
.o-scroll { padding: 6px 0 0; }
.o-card { margin: 0 14px 10px; padding: 12px; border-radius: 13px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.o-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; }
.o-no { font-size: 10px; opacity: .42; font-family: "Inter", monospace; }
.o-st { font-size: 11px; font-weight: 600; }
.o-st-unpaid { color: #b23a2a; }
.o-st-unship { color: #c07a1e; }
.o-st-unrecv { color: #2f7dd1; }
.o-st-done { opacity: .45; }
.o-countdown { display: flex; align-items: center; gap: 4px; font-size: 10px; padding: 6px 9px; border-radius: 7px; background: rgba(178, 58, 42, .07); color: #b23a2a; margin-bottom: 9px; }
.o-countdown b { font-family: "Inter", monospace; font-weight: 600; }
.o-cd2 { display: flex; align-items: center; gap: 5px; font-size: 10px; padding: 6px 9px; border-radius: 7px; background: rgba(47, 125, 209, .07); color: #2f7dd1; margin-bottom: 9px; font-family: "Inter", monospace; }
.o-gi { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.o-gi-art { width: 58px; height: 58px; border-radius: 7px; overflow: hidden; flex: none; }
.o-gi-b { flex: 1; min-width: 0; }
.o-gi-n { font-size: 12.5px; font-weight: 600; }
.o-gi-s { font-size: 10px; opacity: .42; margin-top: 3px; }
.o-gi .price { font-size: 13.5px; flex: none; }
.o-sum { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; padding: 9px 0 10px; border-top: 1px dashed var(--pg-line); margin-top: 4px; font-size: 10.5px; }
.o-sum span { opacity: .5; }
.o-sum .price { font-size: 16px; }
.o-acts { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.o-acts button { font-size: 11.5px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--pg-line); transition: transform .16s ease; }
.o-acts button:active { transform: scale(.96); }
.o-acts button.primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; font-weight: 600; }
.empty-go { margin-top: 6px; font-size: 12px; padding: 8px 20px; border-radius: 99px; background: var(--btn-bg); color: var(--btn-ink); }

/* ================================================================ 鐗╂祦 == */
.lg-head { display: flex; gap: 11px; align-items: center; padding: 6px 16px 12px; }
.lg-art { width: 64px; height: 64px; border-radius: 9px; overflow: hidden; flex: none; }
.lg-hb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lg-st { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #2f7dd1; font-weight: 600; }
.lg-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(47, 125, 209, .16); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(47, 125, 209, .16); } 50% { box-shadow: 0 0 0 6px rgba(47, 125, 209, .04); } }
.lg-n { font-size: 12.5px; font-weight: 600; }
.lg-e { font-size: 10px; opacity: .42; font-family: "Inter", monospace; }
.lg-copy { display: flex; align-items: center; gap: 5px; margin: 0 16px 12px; padding: 8px 11px; border-radius: 8px; background: rgba(0, 0, 0, .035); font-size: 10.5px; opacity: .7; width: calc(100% - 32px); }
.lg-copy b { font-family: "Inter", monospace; opacity: .8; }
.lg-copy.done { color: #2f8f5b; background: rgba(47, 143, 91, .08); opacity: 1; }
.lg-map { position: relative; margin: 0 16px 14px; height: 140px; border-radius: 12px; overflow: hidden; color: #2f7dd1; background: linear-gradient(160deg, #eef4fb, #e3ebf6); }
.lg-map-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(47, 125, 209, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 125, 209, .07) 1px, transparent 1px); background-size: 22px 22px; }
.lg-map-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-map-l1, .lg-map-l2 { position: absolute; font-size: 9.5px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: #2f7dd1; }
.lg-map-l1 { left: 24px; bottom: 10px; }
.lg-map-l2 { right: 12px; top: 8px; font-weight: 600; }
.lg-time { padding: 0 16px; }
.lg-t { display: flex; gap: 11px; position: relative; padding-bottom: 18px; }
.lg-t::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: var(--pg-line); }
.lg-t:last-child::before { display: none; }
.lg-t-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .14); flex: none; margin-top: 3px; position: relative; z-index: 2; }
.lg-t.on .lg-t-dot { background: #2f7dd1; box-shadow: 0 0 0 3px rgba(47, 125, 209, .16); }
.lg-t-b { display: flex; flex-direction: column; gap: 3px; }
.lg-t-b b { font-size: 11.5px; font-weight: 400; opacity: .5; line-height: 1.5; }
.lg-t-b span { font-size: 9.5px; opacity: .3; font-family: "Inter", monospace; }
.lg-t.on .lg-t-b b { font-weight: 600; opacity: 1; font-size: 12.5px; }
.lg-t.on .lg-t-b span { opacity: .5; }
.lg-acts { display: flex; gap: 9px; padding: 6px 16px 0; }
.lg-acts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 38px; border-radius: 9px; background: rgba(0, 0, 0, .04); font-size: 11.5px; }
.lg-bar .btn-ghost { flex: 1; }

/* ================================================================ 鍞悗 == */
.rf-tip { display: flex; gap: 8px; margin: 0 14px 12px; padding: 11px; border-radius: 9px; background: rgba(47, 125, 209, .07); color: #2f6fbe; font-size: 11px; line-height: 1.55; }
.rf-tip em { font-style: normal; display: block; opacity: .65; margin-top: 2px; font-size: 10px; }
.rf-type { display: flex; gap: 8px; padding: 0 14px 12px; }
.rf-t { flex: 1; height: 38px; border-radius: 9px; background: rgba(0, 0, 0, .04); font-size: 13px; color: var(--pg-mut); transition: all .2s ease; }
.rf-t.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.rf-goods { display: flex; align-items: center; gap: 10px; margin: 0 14px 10px; padding: 11px; border-radius: 11px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.rf-art { width: 56px; height: 56px; border-radius: 7px; overflow: hidden; flex: none; }
.rf-gb { flex: 1; min-width: 0; }
.rf-n { font-size: 12.5px; font-weight: 600; }
.rf-s { font-size: 10px; opacity: .42; margin-top: 3px; }
.rf-goods .price { font-size: 14px; }
.rf-form { margin: 0 14px; padding: 2px 12px; border-radius: 11px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.rf-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 0; border-top: 1px solid var(--pg-line); font-size: 12px; text-align: left; }
.rf-row:first-child { border-top: none; }
.rf-row > span { flex: none; width: 76px; opacity: .55; font-size: 11.5px; }
.rf-row > span em { font-style: normal; display: block; font-size: 9px; opacity: .6; margin-top: 2px; }
.rf-row > b { flex: 1; text-align: right; font-weight: 500; }
.rf-row > b.price { font-size: 14px; }
.rf-free { color: #2f8f5b; }
.rf-note { align-items: flex-start; }
.rf-note textarea { flex: 1; height: 62px; border: none; background: none; outline: none; resize: none; font: inherit; font-size: 12px; line-height: 1.6; color: inherit; text-align: right; }
.rf-note textarea::placeholder { opacity: .35; }
.rf-upload { flex-direction: column; align-items: stretch; }
.rf-upload > span { width: auto; margin-bottom: 9px; }
.rf-ups { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rf-up { aspect-ratio: 1; border-radius: 7px; border: 1px dashed var(--pg-line); display: grid; place-items: center; opacity: .5; }
.rf-up.on { background: linear-gradient(135deg, #d8d4cc, #c2bcb1); border-style: solid; opacity: 1; color: #fff; }
.rf-rule { margin: 12px 14px; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .025); }
.rf-rule b { font-size: 11px; display: block; margin-bottom: 7px; }
.rf-rule p { font-size: 10px; opacity: .45; line-height: 1.75; }
.reason-list { display: flex; flex-direction: column; }
.reason-i { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; font-size: 13px; border-bottom: 1px solid var(--pg-line); text-align: left; }
.reason-i svg { opacity: 0; color: var(--brand); }
.reason-i.on { font-weight: 600; }
.reason-i.on svg { opacity: 1; }
.result-dlg { width: 78%; background: var(--sheet-bg); border-radius: 18px; padding: 26px 22px 20px; text-align: center; animation: dlgIn .3s cubic-bezier(.22, .9, .28, 1) both; }
.rs-ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(47, 143, 91, .12); color: #2f8f5b; display: grid; place-items: center; margin: 0 auto 14px; animation: rsIn .45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes rsIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-dlg b { font-size: 16px; }
.result-dlg p { font-size: 12px; opacity: .55; line-height: 1.65; margin: 7px 0 18px; }
.rs-btn { width: 100%; height: 42px; border-radius: 21px; background: var(--btn-bg); color: var(--btn-ink); font-size: 14px; }

/* ============================================================== 涓汉涓績 = */
.me-scroll { padding-bottom: 0; }
.me-hero { padding: 8px 18px 18px; }
.me-top { display: flex; align-items: flex-start; justify-content: space-between; }
.me-user { display: flex; align-items: center; gap: 12px; }
.me-av { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.me-ub { display: flex; flex-direction: column; gap: 3px; }
.me-ub b { font-size: 18px; letter-spacing: -.01em; }
.me-lv { font-size: 9px; padding: 1px 6px; border-radius: 99px; background: linear-gradient(100deg, #d9b269, #b9924a); color: #3a2c10; align-self: flex-start; font-weight: 600; letter-spacing: .04em; }
.me-ub em { font-style: normal; font-size: 9.5px; opacity: .4; font-family: "Inter", monospace; }
.me-stats { display: flex; margin-top: 20px; }
.me-stats button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.me-stats b { font-size: 17px; font-family: "Inter", monospace; font-weight: 600; }
.me-stats span { font-size: 10px; opacity: .45; }
.me-orders { margin: 0 14px; padding: 12px; border-radius: 13px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.me-oh { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.me-oh b { font-size: 13px; }
.me-oh button { font-size: 10.5px; opacity: .45; display: flex; align-items: center; gap: 1px; }
.me-og { display: grid; grid-template-columns: repeat(5, 1fr); }
.me-og button { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.me-oi { position: relative; }
.me-ob { position: absolute; top: -4px; right: -6px; min-width: 14px; height: 14px; border-radius: 99px; background: var(--badge-bg); color: #fff; font-size: 9px; line-height: 14px; text-align: center; font-style: normal; font-family: "Inter", monospace; }
.me-on { font-size: 10px; opacity: .6; }
.me-list { margin: 12px 14px; border-radius: 13px; background: var(--card-bg); box-shadow: var(--card-shadow); overflow: hidden; }
.me-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px; text-align: left; border-top: 1px solid var(--pg-line); }
.me-row:first-child { border-top: none; }
.me-ric { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .045); flex: none; }
.me-ric.tone-gold { background: rgba(217, 178, 105, .18); color: #a37c2f; }
.me-rn { flex: 1; font-size: 12.5px; }
.me-rs { font-size: 10px; opacity: .38; }
.me-row > svg { opacity: .25; }
.me-adv { margin: 12px 14px; padding: 15px; border-radius: 13px; background: linear-gradient(110deg, #2a2721, #453f34); color: #f0e6d2; position: relative; overflow: hidden; }
.me-adv::after { content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(217, 178, 105, .18); }
.me-adv b { font-size: 13px; display: block; }
.me-adv p { font-size: 10.5px; opacity: .6; margin-top: 4px; }
.me-adv button { margin-top: 11px; font-size: 10.5px; padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(240, 230, 210, .3); position: relative; z-index: 2; }

/* ================================================================ 优惠券 == */
.cp-tabs { flex: none; display: flex; gap: 2px; padding: 0 12px 8px; }
.cp-tab { flex: 1; font-size: 12.5px; padding: 8px 0; color: var(--pg-mut); position: relative; }
.cp-tab.on { color: var(--pg-ink); font-weight: 700; }
.cp-tab.on::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 18px; height: 2.5px; border-radius: 99px; background: var(--brand); }
.cp-tab i { font-style: normal; font-size: 9px; opacity: .5; margin-left: 2px; }
.cp-scroll { padding: 6px 0; }
.cp-get { display: flex; align-items: center; gap: 10px; margin: 0 14px 12px; padding: 12px; border-radius: 12px; background: rgba(178, 58, 42, .07); }
.cp-get-ic { width: 28px; height: 28px; border-radius: 8px; background: #b23a2a; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.cp-get > div { flex: 1; }
.cp-get b { font-size: 12px; display: block; }
.cp-get p { font-size: 10px; opacity: .5; margin-top: 2px; }
.cp-get button { font-size: 11px; padding: 6px 12px; border-radius: 99px; background: #b23a2a; color: #fff; flex: none; }
.cp-card { display: flex; align-items: stretch; margin: 0 14px 10px; border-radius: 12px; overflow: hidden; background: var(--card-bg); box-shadow: var(--card-shadow); position: relative; }
.cp-card.dead { opacity: .45; filter: grayscale(1); }
.cp-cl { width: 92px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: linear-gradient(150deg, #b23a2a, #8e2b1f); color: #fff; position: relative; }
.cp-cl::after { content: ""; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px; background: radial-gradient(circle at 5px 5px, transparent 4.5px, var(--card-bg) 5px) 0 0 / 10px 10px; }
.cp-cl b { font-size: 26px; font-family: "Inter", monospace; font-weight: 700; display: flex; align-items: baseline; }
.cp-cl b i { font-style: normal; font-size: 12px; margin: 0 1px; }
.cp-cl span { font-size: 9px; opacity: .8; letter-spacing: .1em; }
.cp-cm { flex: 1; padding: 12px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-cm b { font-size: 12.5px; }
.cp-cm span { font-size: 10px; opacity: .5; }
.cp-cm em { font-style: normal; font-size: 9.5px; opacity: .38; }
.cp-prog { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.cp-prog i { height: 3px; border-radius: 99px; background: rgba(178, 58, 42, .2); flex: 1; position: relative; }
.cp-prog i::before { content: ""; position: absolute; inset: 0; background: #b23a2a; border-radius: 99px; width: inherit; }
.cp-prog span { font-size: 8.5px; opacity: .4; font-family: "Inter", monospace; flex: none; }
.cp-getb { width: 58px; flex: none; font-size: 11px; background: rgba(178, 58, 42, .08); color: #b23a2a; font-weight: 600; transition: all .2s ease; }
.cp-getb.got { background: rgba(0, 0, 0, .04); color: var(--pg-mut); }
.cp-note { text-align: center; font-size: 9.5px; opacity: .32; padding: 12px 0; }
.rule-body p { font-size: 11.5px; opacity: .62; line-height: 1.85; display: flex; gap: 6px; padding: 3px 0; }
.rule-body p b { opacity: .5; }

/* ================================================================ 鍦板潃 == */
.ad-scroll { padding: 2px 0 0; }
.ad-wx { display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); margin: 0 14px 12px; padding: 12px; border-radius: 11px; background: rgba(7, 193, 96, .08); text-align: left; transition: all .25s ease; }
.ad-wx.loading { opacity: .6; }
.ad-wx.done { background: rgba(7, 193, 96, .13); }
.ad-wx-i { width: 30px; height: 30px; border-radius: 9px; background: #07c160; color: #fff; display: grid; place-items: center; flex: none; }
.ad-wx > div { flex: 1; }
.ad-wx b { font-size: 12.5px; display: block; color: #0d9b55; }
.ad-wx p { font-size: 10px; opacity: .55; margin-top: 2px; }
.ad-card { margin: 0 14px 10px; border-radius: 12px; background: var(--card-bg); box-shadow: var(--card-shadow); overflow: hidden; }
.ad-b { padding: 13px 13px 11px; }
.ad-h { display: flex; align-items: center; gap: 8px; }
.ad-h b { font-size: 13.5px; }
.ad-h em { font-style: normal; font-size: 11.5px; opacity: .55; font-family: "Inter", monospace; }
.ad-tag { font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .05); opacity: .7; }
.ad-def { font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(178, 58, 42, .1); color: #b23a2a; margin-left: auto; }
.ad-b p { font-size: 11.5px; opacity: .6; margin-top: 6px; line-height: 1.5; }
.ad-detail { margin-top: 2px !important; opacity: .82 !important; font-size: 12px !important; }
.ad-f { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-top: 1px solid var(--pg-line); }
.ad-defbtn { display: flex; align-items: center; gap: 6px; font-size: 10.5px; opacity: .6; }
.rad { width: 15px; height: 15px; border-radius: 50%; border: 1.4px solid rgba(0, 0, 0, .2); box-sizing: border-box; transition: all .2s ease; }
.rad.on { border: 5px solid var(--brand); }
.ad-fr { display: flex; gap: 12px; }
.ad-fr button { display: flex; align-items: center; gap: 4px; font-size: 10.5px; opacity: .55; }
.ad-tip { display: flex; align-items: center; gap: 5px; justify-content: center; font-size: 9.5px; opacity: .35; padding: 10px 0; }
.ad-form .sheet-body { display: flex; flex-direction: column; }
.ad-f-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--pg-line); }
.ad-f-row span { flex: none; width: 66px; font-size: 12px; opacity: .55; }
.ad-f-row input { flex: 1; border: none; background: none; outline: none; font: inherit; font-size: 13px; color: inherit; }
.ad-f-tags { display: flex; align-items: center; gap: 10px; padding: 13px 0; }
.ad-f-tags > span { flex: none; width: 66px; font-size: 12px; opacity: .55; }
.ad-f-tags > div { display: flex; gap: 8px; }
.ad-f-tag { font-size: 11px; padding: 5px 13px; border-radius: 7px; background: rgba(0, 0, 0, .05); }
.ad-f-tag.on { background: var(--brand); color: var(--brand-ink); }
.ad-f-err { color: #e5484d; font-size: 11px; min-height: 16px; padding-top: 6px; }
.shake { animation: shake .36s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }

/* ================================================================ 瀹㈡湇 == */
.sv-scroll { padding-bottom: 0; background: rgba(0, 0, 0, .022); }
.sv-order { display: flex; align-items: center; gap: 9px; margin: 10px 14px; padding: 10px 12px; border-radius: 10px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.sv-order-ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(0, 0, 0, .05); display: grid; place-items: center; flex: none; }
.sv-order > div { flex: 1; }
.sv-order b { font-size: 11.5px; display: block; }
.sv-order p { font-size: 10px; opacity: .45; margin-top: 2px; }
.sv-order button { font-size: 10.5px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .05); }
.sv-msgs { padding: 8px 14px; display: flex; flex-direction: column; gap: 14px; }
.sv-m { display: flex; gap: 8px; align-items: flex-start; animation: fadeUp .32s ease both; }
.sv-m.me { justify-content: flex-end; }
.sv-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; }
.sv-bubble { max-width: 232px; padding: 10px 12px; border-radius: 13px; font-size: 12.5px; line-height: 1.6; position: relative; background: var(--card-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.sv-m.cs .sv-bubble { border-top-left-radius: 4px; }
.sv-m.me .sv-bubble { background: var(--brand); color: var(--brand-ink); border-top-right-radius: 4px; }
.sv-bubble em { display: block; font-style: normal; font-size: 8.5px; opacity: .4; margin-top: 4px; text-align: right; }
.sv-typing { display: flex; gap: 3px; padding: 13px 14px; }
.sv-typing i { width: 5px; height: 5px; border-radius: 50%; background: rgba(0, 0, 0, .25); animation: typing 1.2s infinite; }
.sv-typing i:nth-child(2) { animation-delay: .18s; }
.sv-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.sv-quick { padding: 10px 14px 0; }
.sv-quick b { font-size: 10px; opacity: .4; display: block; margin-bottom: 8px; }
.sv-quick button { display: block; width: 100%; text-align: left; font-size: 11.5px; padding: 10px 12px; border-radius: 9px; background: var(--card-bg); margin-bottom: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.sv-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px calc(var(--homebar) + 4px); background: var(--act-bg); border-top: 1px solid var(--act-line); }
.sv-plus { width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .05); display: grid; place-items: center; flex: none; }
.sv-input { flex: 1; height: 34px; border-radius: 17px; background: rgba(0, 0, 0, .05); display: flex; align-items: center; padding: 0 13px; }
.sv-input input { flex: 1; border: none; background: none; outline: none; font: inherit; font-size: 12.5px; color: inherit; }
.sv-send { font-size: 12.5px; color: var(--brand); font-weight: 600; flex: none; padding: 0 4px; }

/* 椤舵爮鏂囧瓧鎸夐挳 */
.bar-txt { font-size: 12px; opacity: .6; }
.pb-dark { color: #fff; }
.mask-out { opacity: 0; transition: opacity .18s ease; }
.mask-in { display: contents; }
.wxpay-center { align-items: flex-end; }

/* 详情页：导航绝对定位相对整页，避免被 flex 子项推出边界 */
.page-pdp { position: relative; }
.d-nav-r { flex: none; display: flex; gap: 6px; align-items: center; }
.d-nav > .pb:first-child { flex: none; }

/* ---------------------------------------------------------------- 收尾补丁 -- */
/* 1) 弹层底部统一安全区，避免被 homebar 压住 */
.sheet-body { padding-bottom: 6px; }
.sku-sheet, .filter-sheet, .wxpay { padding-bottom: calc(var(--homebar, 24px) * .6 + 8px); }
/* 2) 空态图标在深色主题下也要有可见度（用 currentColor + opacity） */
.empty svg { color: currentColor; opacity: .14; }
/* 3) 客服会话的输入区不要被 homebar 压住 */
.sv-msgs { padding-bottom: 6px; }
/* 4) 订单卡在窄屏下的操作按钮需要换行而不溢出 */
.o-acts { row-gap: 7px; }
/* 5) 详情页图片索引与双击提示不要压在圆角边缘 */
.d-idx, .d-hint { bottom: 14px; }
/* 6) 让所有可点元素都有最小命中区 */
.sec-more, .bar-txt, .cp-getb, .o-acts button { min-height: 28px; }
/* 7) 首页轮播在 168px 高度下文字不要贴边 */
.bn-txt { padding-top: 26px; padding-bottom: 26px; }