/* ============================================================
   潮流服装商城 · WAP 精修层（v20241121）
   在 style.css 之后加载，只作用于手机视图；统一卡片、间距、触控、
   固定操作栏，并为新增功能（四级地区、钱包、帮助、分享、客服）提供样式。
   ============================================================ */

:root {
  --w-radius: 16px;
  --w-shadow: 0 6px 20px rgba(29, 33, 41, .055);
  --w-line: rgba(229, 230, 235, .85);
  --w-ink: #1d2129;
  --w-muted: #86909c;
}

body.wap {
  background: #f5f6f8;
  -webkit-tap-highlight-color: transparent;
  font-size: 14px;
}

/* ---------- 1. 内容区：统一留白与最大宽度 ---------- */
body.wap .wap-body {
  padding: 12px 12px calc(86px + env(safe-area-inset-bottom));
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}
body.wap .container { padding: 0; max-width: 100%; }
body.wap .card,
body.wap .checkout-block,
body.wap .help-card,
body.wap .cart-table,
body.wap .auth-card,
body.wap .order-card {
  border-radius: var(--w-radius);
  box-shadow: var(--w-shadow);
  border: 1px solid var(--w-line);
}
body.wap .card { padding: 15px; margin-bottom: 12px; }
body.wap .card.mb16, body.wap .mb16 { margin-bottom: 12px; }
body.wap .card-title { font-size: 15px; margin-bottom: 12px; }
body.wap .section-head { margin: 20px 0 12px; }
body.wap .section-head h2 { font-size: 17px; }
body.wap .section { margin-top: 20px; }
body.wap .benefit-bar { margin: 14px 0 4px; border-radius: 12px; }

/* 页面副标题（共 N 笔等）压成一行小字，不再像第二个标题 */
body.wap .page-head { margin: 0 0 10px; }
body.wap .page-head h2 { font-size: 12px; }

/* ---------- 2. 顶部：品牌条 / 简洁条 / 标题栏 ---------- */
body.wap .wap-header.top-brand,
body.wap .wap-header.top-plain { position: sticky; top: 0; z-index: 100; }
body.wap .wap-header.top-title { position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(29, 33, 41, .04); }
body.wap .wap-header.top-brand .wap-top { padding: 10px 12px calc(10px + env(safe-area-inset-top)); }
body.wap .wap-header.top-title .wap-titlebar { height: 50px; }
body.wap .wap-header.top-title .tb-title { font-size: 16px; }
/* 详情页右侧「分享 + 购物车」双按钮 */
body.wap.page-goods_detail .wap-header.top-title .wap-titlebar { grid-template-columns: 44px 1fr 88px; }
body.wap .wap-header.top-title .tb-sides { display: flex; align-items: center; justify-content: flex-end; }
body.wap .wap-header.top-title .tb-sides .tb-side { background: transparent; border: 0; cursor: pointer; padding: 0; width: 44px; }
body.wap .wap-nav { padding: 0 10px 8px; gap: 6px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
body.wap .wap-nav::-webkit-scrollbar { display: none; }
body.wap .wap-nav a { padding: 6px 12px; border-radius: 999px; font-size: 13px; }

/* ---------- 3. 个人中心：会员卡 / 订单状态 / 常用服务 ---------- */
/* 会员卡 */
.mc-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 16px 16px 14px;
  background: linear-gradient(125deg, #ff6a5e 0%, #ff8763 58%, #ffab72 100%);
  box-shadow: 0 10px 26px rgba(240, 90, 70, .22); color: #fff; }
.mc-hero::before, .mc-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.mc-hero::before { width: 172px; height: 172px; right: -54px; top: -80px; background: rgba(255, 255, 255, .13); }
.mc-hero::after  { width: 120px; height: 120px; right: 40px; bottom: -76px; background: rgba(255, 255, 255, .08); }
.mc-hero > * { position: relative; z-index: 1; }
.mc-top { display: flex; align-items: center; gap: 11px; }
.mc-avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #ff6a5e;
  background: #fff; box-shadow: 0 4px 12px rgba(160, 50, 35, .16); }
.mc-id { flex: 1; min-width: 0; }
.mc-nick { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.mc-vip { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .3); white-space: nowrap; }
.mc-phone { font-size: 11.5px; opacity: .86; margin-top: 4px; letter-spacing: .3px; }
.mc-wallet-link { flex: none; font-size: 11.5px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .18); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.mc-assets { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 12px; }
.mc-assets a { position: relative; text-align: center; text-decoration: none; color: #fff; min-width: 0; }
.mc-assets a + a::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 1px; background: rgba(255, 255, 255, .18); }
.mc-assets b { display: block; font-size: 17px; font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-assets b.mc-money { font-size: 15px; }
.mc-assets span { display: block; font-size: 10.5px; opacity: .86; margin-top: 3px; }

/* 通用小节标题 */
.mc-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mc-sec-head h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700;
  margin: 0; color: var(--w-ink); }
.mc-sec-head h3::before { content: ""; width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2)); }
.mc-sec-head a { font-size: 12px; color: var(--w-muted); text-decoration: none; }
.mc-sec-head .mc-sub { font-size: 11px; color: var(--w-muted); }

/* 我的订单状态 */
.mc-order-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.mc-order-grid a { position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-decoration: none; color: var(--w-ink); padding: 2px 0; }
.mc-o-ico { position: relative; width: 42px; height: 42px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; background: #fff4f0; color: var(--primary); }
.mc-o-ico svg { width: 21px; height: 21px; }
.mc-o-num { font-size: 17px; font-weight: 800; line-height: 1; color: var(--w-ink); }
.mc-o-lab { font-size: 11px; color: var(--w-muted); }

/* 常用服务：12 项 = 4 列 × 3 行满格，末行不再空缺 */
.mc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 4px; }
.mc-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none; color: var(--w-ink); min-width: 0; padding: 2px 0; }
.mc-ico { position: relative; width: 44px; height: 44px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; background: #fff4f0; color: var(--primary); }
.mc-ico svg { width: 22px; height: 22px; }
.mc-cell.t1 .mc-ico { background: #eef4ff; color: #4a7cf7; }
.mc-cell.t2 .mc-ico { background: #eaf8f1; color: #22a06b; }
.mc-cell.t3 .mc-ico { background: #fff6e8; color: #e08a20; }
.mc-cell:active .mc-ico { transform: scale(.93); transition: transform .12s; }
.mc-name { font-size: 11.5px; line-height: 1.3; white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; }

/* 退出登录（原横向胶囊菜单移除后的唯一入口） */
.mc-logout { display: block; margin: 18px 0 4px; background: #fff; border: 1px solid var(--w-line);
  border-radius: 14px; padding: 14px; text-align: center; color: #e0483c; font-size: 14px;
  font-weight: 600; text-decoration: none; box-shadow: var(--w-shadow); }
.mc-logout:active { background: #fff4f2; }
.mc-switch { display: block; text-align: center; font-size: 12px; color: var(--w-muted);
  text-decoration: none; padding: 14px 0 4px; }
.mc-switch:active { color: var(--primary); }

body.wap.page-center .user-layout { margin-top: 0; }
body.wap.page-center .mc-hero,
body.wap.page-center .mc-order,
body.wap.page-center .mc-service { margin-bottom: 12px; }
body.wap .mini-order { padding: 11px 0; border-bottom: 1px dashed var(--w-line); }
body.wap .pwd-card summary { padding: 4px 0; }
@media (max-width: 360px) {
  .mc-nick { font-size: 15.5px; }
  .mc-assets b { font-size: 15px; }
  .mc-assets b.mc-money { font-size: 13px; }
  .mc-name { font-size: 10.5px; }
  .mc-ico, .mc-o-ico { width: 40px; height: 40px; }
}

/* ---------- 5. 商品卡片 / 列表视图切换 ---------- */
body.wap .goods-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.wap .goods-card { border-radius: 14px; overflow: hidden; background: #fff; }
body.wap .goods-card .pic img { aspect-ratio: 1 / 1; object-fit: cover; }
body.wap .goods-card .info { padding: 9px 10px 11px; }
body.wap .goods-card .info .name { font-size: 13px; line-height: 1.45; }
body.wap .goods-card .info .price { font-size: 17px; }
body.wap .list-toolbar { border-radius: 14px; padding: 9px 10px; gap: 8px; }
body.wap .list-toolbar .grow { min-width: 0; }
/* 列表视图：单行大图卡片 */
body.wap.goods-list-view .goods-grid { grid-template-columns: 1fr; }
body.wap.goods-list-view .goods-card { display: flex; align-items: stretch; }
body.wap.goods-list-view .goods-card .pic { width: 112px; flex: none; }
body.wap.goods-list-view .goods-card .pic img { height: 100%; }
body.wap.goods-list-view .goods-card .info { flex: 1; min-width: 0; padding: 12px; }
body.wap .wap-view-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--w-line);
  background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; color: var(--w-muted); }
body.wap .wap-view-btn.active { color: var(--primary); border-color: #ffd7d0; background: var(--primary-soft); }
body.wap .wap-view-btn svg { width: 15px; height: 15px; }

/* ---------- 6. 商品详情：相册、规格、详情分区 ---------- */
body.wap .detail-top { padding: 0; gap: 0; background: transparent; }
body.wap .gallery { background: #fff; border-radius: var(--w-radius); overflow: hidden; }
body.wap .gallery .main-img { aspect-ratio: 1 / 1; }
body.wap .gallery .thumbs { padding: 8px 10px 12px; gap: 8px; }
body.wap .detail-info { background: #fff; border-radius: var(--w-radius); padding: 15px; margin-top: 12px; }
body.wap .detail-info h1 { font-size: 19px; line-height: 1.45; }
body.wap .detail-price-box { border-radius: 12px; padding: 14px; margin: 12px 0; }
body.wap .sku-group { padding: 10px 0; border-bottom: 1px dashed var(--w-line); }
body.wap .sku-opt { min-width: 54px; padding: 9px 12px; font-size: 13px; border-radius: 10px; }
body.wap .detail-content { background: #fff; border-radius: var(--w-radius); padding: 0 14px 16px; margin-top: 12px; }
body.wap .detail-content .tabs { position: sticky; top: 50px; z-index: 20; background: #fff; }
body.wap .detail-content .tabs span { padding: 13px 18px; font-size: 14px; }
body.wap .rich-content img { max-width: 100% !important; height: auto; }
body.wap .spec-summary { margin-top: 12px; }
body.wap .spec-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
body.wap .spec-grid > div { background: #fafbfc; border-radius: 10px; padding: 10px; }
body.wap .wap-buy-bar { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 4px; }
body.wap .wap-buy-bar .wb-actions .btn { padding: 12px 4px; }

/* ---------- 7. 购物车：卡片化条目 + 醒目结算条 ---------- */
body.wap .cart-table { padding: 8px 12px; }
body.wap .cart-item { grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 12px; margin-bottom: 10px;
  background: #fff; border-radius: var(--w-radius); box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  align-items: center; }
body.wap .cart-item .ck { grid-column: 1; grid-row: 1 / -1; align-self: center; width: 20px; height: 20px; }
body.wap .cart-item > * { grid-column: 2; }
body.wap .cart-item .good { grid-column: 2; }
body.wap .cart-item .good img { width: 72px; height: 86px; border-radius: 10px; }
body.wap .cart-item .good .name { font-size: 13px; }
body.wap .cart-item .price { font-size: 15px; font-weight: 700; }
body.wap .cart-item .qty { width: 118px; max-width: 100%; }
body.wap .cart-item .del { display: inline-block; padding: 6px 12px; border: 1px solid var(--w-line);
  border-radius: 999px; font-size: 12px; transition: background .15s ease; }
body.wap .cart-item .del:active { background: var(--w-line); }
/* 结算条吸附在底部：手机端无需滚动即可结算，适配底部安全区，隐藏 Tab 避免双层底栏 */
body.wap .checkout-bar { position: sticky; bottom: 0; z-index: 20; border-radius: var(--w-radius);
  padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 12px; margin-top: 12px;
  background: linear-gradient(180deg, #fff, #fffaf9); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
body.wap .checkout-bar .total b { font-size: 21px; }
body.wap .checkout-bar .btn-lg { min-width: 120px; border-radius: 999px; }
body.wap .ship-progress { border-radius: 12px; }
body.wap.page-cart .wap-tabbar { display: none; }
body.wap.page-cart .wap-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.wap.page-cart .checkout-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px;
  margin: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0; border: 0;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--w-line); box-shadow: 0 -6px 24px rgba(29, 33, 41, .09); }
body.wap.page-cart .checkout-bar .between:first-child { grid-column: 1; gap: 8px; }
body.wap.page-cart .checkout-bar .between:first-child a { display: none; }
body.wap.page-cart .checkout-bar .between:last-child { grid-column: 2; gap: 10px; justify-content: flex-end; }
body.wap.page-cart .checkout-bar .total { font-size: 11px; white-space: nowrap; }
body.wap.page-cart .checkout-bar .total b { font-size: 19px; }
body.wap.page-cart .checkout-bar .btn-lg { min-width: 108px; height: 42px; font-size: 14px; }
body.wap.page-cart .wap-fab,
body.wap.page-cart .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ---------- 8. 结算页：地址卡 / 优惠券 / 固定提交栏 ---------- */
body.wap .checkout-block { padding: 14px; margin-bottom: 12px; background: #fff; }
body.wap .checkout-block h3 { font-size: 15px; margin-bottom: 12px; }
body.wap .addr-card { border-radius: 12px; padding: 12px; }
body.wap .checkout-goods { padding: 9px 0; border-bottom: 1px dashed var(--w-line); }
body.wap .checkout-goods:last-child { border-bottom: 0; }
body.wap .coupon-opt { border-radius: 12px; padding: 12px; margin-bottom: 8px; }
body.wap .coupon-opt.active { border-color: var(--primary); background: var(--primary-soft); }
body.wap .textarea { min-height: 76px; }
/* 费用卡里的原提交按钮让位给底部固定栏 */
body.wap.page-checkout .checkout-side .checkout-block > .btn-block { display: none; }
body.wap.page-checkout .wap-tabbar { display: none; }
body.wap.page-checkout .wap-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.ck-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--w-line); box-shadow: 0 -6px 24px rgba(29, 33, 41, .09); }
.ck-bar .ck-total { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-bar .ck-total > span { font-size: 11px; color: var(--w-muted); }
.ck-bar .ck-total .price { font-size: 21px; }
.ck-bar .btn { min-width: 132px; height: 46px; border-radius: 999px; font-size: 15px; }
body.wap.page-checkout .to-top { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- 9. 我的订单：吸顶状态标签（平铺 + 更多）/ 卡片 / 空态 ---------- */
/* 状态筛选：常用状态平铺（横滑、无滚动条）+ 更多下拉；与搜索框同属一个固定栏 */
body.wap .od-tabs { position: relative; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 10px 8px; }
/* 平铺区：横滑但隐藏滚动条条，纯文字标签 + 选中红字 + 文字宽度红下划线（与商品分类导航同款） */
body.wap .od-tabs-scroll { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.wap .od-tabs-scroll::-webkit-scrollbar { display: none; }
body.wap .od-tabs-scroll a { flex: none; position: relative; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; line-height: 1.2; color: var(--text); text-decoration: none;
  white-space: nowrap; }
body.wap .od-tabs-scroll a.active { color: var(--primary); font-weight: 700; }
/* 红下划线紧贴标签底部、距文字约 3px，避免「红线太靠下」 */
body.wap .od-tabs-scroll a.active::after { content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; width: auto; height: 3px; transform: none;
  border-radius: 2px; background: var(--primary); }
/* 更多按钮：固定右端，点击展开下拉菜单；当前选中落在更多分组的，按钮即高亮显示当前标签 */
body.wap .od-more { flex: none; display: flex; align-items: center; gap: 5px;
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; font-size: 13px; line-height: 1.2; color: var(--text); }
body.wap .od-more.active { color: var(--primary); font-weight: 700; }
body.wap .od-caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg);
  transition: transform .2s; flex: none; }
body.wap .od-tabs.open .od-caret { transform: translateY(2px) rotate(225deg); }
/* 更多下拉菜单：覆盖在内容区上方，列出多余状态，无滚动条 */
body.wap .od-more-menu { position: absolute; right: 8px; top: 100%; z-index: 110;
  background: #fff; box-shadow: 0 8px 24px rgba(29, 33, 41, .12); border-radius: 0 0 14px 14px;
  padding: 4px 0; min-width: 120px; }
body.wap .od-more-menu a { display: block; padding: 12px 16px; font-size: 14px;
  color: #333; text-decoration: none; border-left: 3px solid transparent; white-space: nowrap; }
body.wap .od-more-menu a.active { color: var(--primary); font-weight: 700;
  background: #fff5f3; border-left-color: var(--primary); }
body.wap .od-more-menu a:active { background: #f6f7f9; }
/* 导航栏内的订单搜索按钮：沿用 .top-plain .wap-search button（红字 + 左侧分隔竖线），补字重与点击态 */
body.wap.page-order_list .wap-search .od-go { font-weight: 700; cursor: pointer; }
body.wap.page-order_list .wap-search .od-go:active { opacity: .6; }
/* 订单页：搜索栏与状态栏紧凑贴合；清除 .user-layout 的 20px 顶部外边距、首张卡片距固定栏收紧 */
body.wap.page-order_list .wap-top { padding-bottom: 9px; }
body.wap.page-order_list .user-layout { margin-top: 0; }
body.wap.page-order_list .wap-body { padding-top: 8px; }
/* 搜索实时过滤提示 */
.od-search-tip { font-size: 12px; color: var(--w-muted); margin: 0 2px 10px; }

/* 订单卡片：店铺/时间 → 订单号 → 商品 → 实付款 → 操作，逐层留白 */
body.wap.page-order_list .wap-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.wap .order-card { padding: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--w-line); box-shadow: var(--w-shadow); margin-bottom: 12px; }
/* 卡片头部：订单号（原店名位置，左）+ 状态标签（右）；下单时间单独一行 */
body.wap .order-card .o-head { background: #fff; padding: 14px 14px 11px;
  display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.od-head-row { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-width: 0; }
.od-no { display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 12.5px; color: var(--w-muted); }
.od-no b { font-weight: 600; color: #4e5969; font-variant-numeric: tabular-nums;
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { flex: none; width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center; border: 0; background: transparent;
  color: var(--primary); cursor: pointer; padding: 0; border-radius: 6px; }
.copy-btn:active { background: var(--primary-soft); }
.od-date { font-size: 11px; color: var(--w-muted); font-weight: 400; }
body.wap .order-card .o-head .status { margin-left: 0; flex: none; }
body.wap .order-card .tag { border-radius: 999px; padding: 3px 10px; font-size: 11.5px; }
body.wap .order-card .pay-countdown { margin: 10px 14px 0; border-radius: 10px;
  background: #fff7e8; color: #a86a00; padding: 8px 10px; font-size: 12px; }
body.wap .order-card .pay-countdown b { color: #e0483c; }

.od-goods { padding: 0; }
body.wap .order-goods-row { display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; text-decoration: none; color: inherit; }
body.wap .order-goods-row + .order-goods-row { border-top: 1px dashed #f0f1f4; }
body.wap .order-goods-row img { width: 72px; height: 72px; border-radius: 12px;
  object-fit: cover; flex: none; background: #f7f8fa; }
.og-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.og-title { font-size: 13.5px; font-weight: 600; color: var(--w-ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.og-sku { font-size: 11.5px; color: var(--w-muted); }
.og-price { flex: none; text-align: right; min-width: 74px; }
.og-price .price { font-size: 14px; font-weight: 700; color: var(--w-ink); }
.og-num { display: block; font-size: 11.5px; color: var(--w-muted); margin-top: 4px; }
/* 卡片底部：左侧实付款金额，右侧客服 / 订单详情等操作菜单，同一行 */
body.wap .order-card .o-foot { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 12px 14px 14px; border-top: 1px solid var(--w-line);
  background: #fcfcfd; }
.od-amount { flex: none; display: flex; flex-direction: column; gap: 2px; }
.od-amount-label { font-size: 11.5px; color: var(--w-muted); }
.od-amount-box { display: flex; align-items: baseline; gap: 6px; }
.od-amount-box b { font-size: 19px; color: var(--primary); line-height: 1.1; }
.od-amount-box small { font-size: 11px; color: var(--w-muted); }
.od-actions { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px;
  flex-wrap: wrap; justify-content: flex-end; }
/* 高权重覆盖 style.css 的 .o-foot .btn 高度与 .btn 的 min-height，保证两种按钮等高 */
body.wap .order-card .o-foot .od-actions .btn-sm { height: 36px; min-height: 36px;
  padding: 0 14px; font-size: 12.5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.od-actions .btn-primary { box-shadow: 0 4px 12px rgba(240, 67, 58, .2); }
.od-kefu { flex: none; background: #fff; border: 1px solid var(--w-line); color: #4e5969; padding: 0 15px; }
.od-main { border-color: #ffc9bf !important; color: var(--primary) !important; font-weight: 600; }

/* 空态 */
.od-empty { text-align: center; padding: 30px 18px 24px; }
.od-empty-ico { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 24px;
  background: #fff4f0; color: var(--primary); display: flex;
  align-items: center; justify-content: center; }
.od-empty h3 { font-size: 15px; margin: 0 0 6px; color: var(--w-ink); }
.od-empty p { font-size: 12.5px; color: var(--w-muted); margin: 0 0 16px; }
.od-empty .btn { border-radius: 999px; padding: 9px 30px; }
.od-empty-links { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.od-empty-links a, .od-empty-links button { border: 0; background: transparent;
  color: var(--w-muted); text-decoration: none; padding: 0; font-size: 12.5px; }
body.wap .pagination { margin: 18px 0 8px; }
body.wap .pagination a, body.wap .pagination span { min-width: 36px; height: 36px;
  border-radius: 10px; font-size: 13px; }

/* 订单详情页：状态头部统一为品牌渐变，进度轨迹更清晰 */
body.wap.page-order_detail .od-hero { position: relative; overflow: hidden;
  background: linear-gradient(125deg, #ff6a5e, #ff9a6b); border: 0; color: #fff; padding: 16px; }
body.wap.page-order_detail .od-hero::after { content: ""; position: absolute; width: 150px;
  height: 150px; right: -50px; top: -70px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
body.wap.page-order_detail .od-hero > * { position: relative; z-index: 1; }
body.wap.page-order_detail .od-hero h3 { color: #fff; font-size: 19px; margin: 0 0 6px; }
body.wap.page-order_detail .od-hero .text-muted { color: rgba(255, 255, 255, .88) !important; }
body.wap.page-order_detail .od-hero .pay-countdown { background: rgba(255, 255, 255, .18);
  color: #fff; border-radius: 10px; padding: 8px 10px; }
body.wap.page-order_detail .od-hero .pay-countdown b { color: #fff; }
body.wap.page-order_detail .od-hero .btn-outline { background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .5); color: #fff; }
body.wap.page-order_detail .od-hero .btn-primary { background: #fff; color: #e0483c; border-color: #fff; }
body.wap .timeline { padding-left: 6px; }
body.wap .timeline li { font-size: 13px; padding-bottom: 18px; }
body.wap .timeline li.done::before { box-shadow: 0 0 0 4px var(--primary-soft); }
body.wap .timeline li b { font-size: 13.5px; }

/* 订单页隐藏悬浮客服按钮，避免压住卡片金额与操作区（客服入口已放进卡片 / 空态 / 详情页） */
body.wap.page-order_list .wap-fab,
body.wap.page-order_detail .wap-fab { display: none; }
/* 物流轨迹卡（新增） */
.lg-card { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-radius);
  box-shadow: var(--w-shadow); padding: 14px; margin-bottom: 12px; }
.lg-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.lg-head .lg-ico { width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center; }
.lg-no { display: flex; align-items: center; gap: 8px; background: #fafbfc; border-radius: 10px;
  padding: 10px; font-size: 12px; color: var(--w-muted); margin-bottom: 12px; }
.lg-no b { color: var(--w-ink); font-size: 13px; }
.lg-no .copy-btn { margin-left: auto; }
.lg-track { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #f0f1f4; }
.lg-track li { position: relative; padding: 0 0 16px 10px; font-size: 13px; color: var(--w-muted); }
.lg-track li:last-child { padding-bottom: 0; }
.lg-track li::before { content: ''; position: absolute; left: -25px; top: 3px; width: 10px; height: 10px;
  border-radius: 50%; background: #dcdfe6; border: 2px solid #fff; }
.lg-track li.done { color: var(--w-ink); }
.lg-track li.done::before { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.lg-track li b { display: block; font-weight: 600; margin-bottom: 2px; }
.lg-track li span { display: block; line-height: 1.5; }
.lg-track li small { display: block; font-size: 11px; color: #a9b0bb; margin-top: 3px; }

/* ---------- 10. 表单 / 登录注册 / 支付 ---------- */
body.wap .input, body.wap .textarea, body.wap select.input { height: 46px; border-radius: 12px;
  border-color: var(--w-line); background: #fff; font-size: 14px; }
body.wap .textarea { height: auto; }
body.wap .field { margin-bottom: 13px; }
body.wap .field > label { display: block; font-size: 12px; color: var(--w-muted); margin-bottom: 6px; }
body.wap .btn { border-radius: 999px; min-height: 40px; }
body.wap .btn-block { width: 100%; }
body.wap .btn-lg { height: 46px; }
body.wap .auth-wrap { padding: 8px 0 0; }
body.wap .auth-card { border-radius: 18px; padding: 20px 18px; }
body.wap .auth-extra { margin-top: 14px; }
body.wap .pay-card { border-radius: 18px; }
body.wap .info-row { padding: 10px 0; border-bottom: 1px dashed var(--w-line); font-size: 13px; }
body.wap .info-row .lab { color: var(--w-muted); }
body.wap .summary-line { padding: 9px 0; font-size: 13px; }

/* ---------- 11. 地址编辑：智能识别 / 表单 / 四级地区 ---------- */
.adr-smart { background: linear-gradient(120deg, #fff6f2, #fffdfb); border: 1px solid #ffe2d7;
  border-radius: var(--w-radius); padding: 12px; margin-bottom: 12px; }
.adr-smart-head { display: flex; align-items: center; gap: 10px; }
.adr-smart-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; background: #fff;
  color: var(--primary); display: flex; align-items: center; justify-content: center; }
.adr-smart-head .grow { flex: 1; min-width: 0; }
.adr-smart-head b { display: block; font-size: 13px; color: var(--w-ink); }
.adr-smart-head small { display: block; font-size: 11px; color: var(--w-muted); margin-top: 2px; }
.adr-smart-btn { border: 0; background: #fff; color: var(--primary); font-size: 12px;
  font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.adr-smart-body { padding-top: 10px; }
.adr-textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--w-line);
  border-radius: 12px; padding: 10px; font-size: 13px; resize: vertical; background: #fff; }
.adr-smart-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.adr-smart-tip { font-size: 11px; color: var(--w-muted); line-height: 1.6; margin-top: 8px; }
.adr-card { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-radius);
  box-shadow: var(--w-shadow); padding: 15px; }
.adr-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700;
  color: var(--w-ink); padding-bottom: 12px; border-bottom: 1px dashed var(--w-line); margin-bottom: 14px; }
.adr-ico { color: var(--primary); display: inline-flex; }
.adr-field { margin-bottom: 15px; }
.adr-field > label { display: block; font-size: 12px; font-weight: 600; color: var(--w-muted); margin-bottom: 7px; }
.adr-label-tip { font-weight: 400; font-size: 11px; margin-left: 4px; }
.adr-input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 13px; font-size: 14px;
  border: 1px solid var(--w-line); border-radius: 12px; background: #fff; outline: none; }
.adr-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.adr-region { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 13px;
  border: 1px solid var(--w-line); border-radius: 12px; background: #fff; cursor: pointer; }
.adr-region:active { background: #fafbfc; }
.adr-region-val { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adr-region-val.ph { color: #b7bec9; }
.adr-region svg { color: var(--w-muted); flex: none; }
.adr-locate { display: flex; align-items: center; gap: 6px; margin-top: 10px; border: 0;
  background: transparent; color: var(--primary); font-size: 12px; font-weight: 600; padding: 4px 0; }
.adr-locate.loading { opacity: .6; pointer-events: none; }
.adr-hotcity { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; }
.adr-hotcity-lab { font-size: 11px; color: var(--w-muted); margin-right: 2px; }
.adr-hotcity button { border: 1px solid var(--w-line); background: #fff; color: var(--w-ink);
  border-radius: 999px; padding: 6px 11px; font-size: 12px; }
.adr-hotcity button:active { background: var(--primary-soft); border-color: #ffd7d0; }
.adr-switch { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 4px 0; }
.adr-switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.adr-help { margin-top: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--w-line);
  border-radius: var(--w-radius); padding: 14px; }
.adr-help h3 { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 10px; }
.adr-help > div { display: flex; gap: 9px; font-size: 11.5px; color: var(--w-muted); line-height: 1.7; padding: 4px 0; }
.adr-help i { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary); font-style: normal; font-size: 11px; font-weight: 700; text-align: center; line-height: 17px; }
/* 地址编辑页：底部固定保存，隐藏 Tab */
body.wap.page-address_edit .wap-tabbar { display: none; }
body.wap.page-address_edit .wap-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.wap.page-address_edit .adr-submit-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--w-line); box-shadow: 0 -6px 20px rgba(29, 33, 41, .07); }
body.wap.page-address_edit .adr-submit { height: 46px; }
body.wap.page-address_edit .wap-fab, body.wap.page-address_edit .to-top { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* 四级地区弹层 */
.rg-mask, .sh-mask, .sv-mask { position: fixed; inset: 0; background: rgba(24, 28, 34, .45);
  z-index: 130; opacity: 0; pointer-events: none; transition: opacity .22s; }
.rg-mask.show, .sh-mask.show, .sv-mask.show { opacity: 1; pointer-events: auto; }
.rg-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 131; background: #fff;
  border-radius: 20px 20px 0 0; height: 72vh; max-height: 620px; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.22, .7, .3, 1); }
.rg-sheet.show { transform: translateY(0); }
.rg-sheet-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--w-line); }
.rg-sheet-head b { font-size: 15px; }
.rg-sheet-head button { border: 0; background: transparent; font-size: 13px; color: var(--w-muted); }
.rg-sheet-head .rg-done { color: var(--primary); font-weight: 700; }
.rg-tip { padding: 9px 16px 0; font-size: 11px; color: var(--w-muted); }
.rg-tabs { display: flex; gap: 6px; padding: 10px 14px 6px; overflow-x: auto; scrollbar-width: none; }
.rg-tabs::-webkit-scrollbar { display: none; }
.rg-tabs button { flex: none; border: 0; background: #f5f6f8; color: var(--w-muted);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-tabs button.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.rg-search { display: flex; align-items: center; gap: 7px; margin: 4px 14px 8px;
  background: #f5f6f8; border-radius: 10px; padding: 8px 11px; }
.rg-search svg { color: var(--w-muted); flex: none; }
.rg-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.rg-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 0 14px 10px; }
.rg-opt { display: flex; align-items: center; justify-content: space-between; padding: 13px 6px;
  border-bottom: 1px solid #f2f3f5; font-size: 14px; }
.rg-opt:active { background: #fafbfc; }
.rg-opt.active { color: var(--primary); font-weight: 700; }
.rg-tick { color: var(--primary); }
.rg-loading { text-align: center; color: var(--w-muted); font-size: 12px; padding: 28px 0; }
.rg-foot { display: flex; gap: 10px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--w-line); }
.rg-foot .btn { flex: 1; }

/* ---------- 12. 钱包 / 帮助中心 ---------- */
.wk-hero { border-radius: 18px; padding: 18px 16px 0; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #f0433a, #ff8a5c 70%, #ffb26b);
  box-shadow: 0 12px 28px rgba(240, 67, 58, .22); }
.wk-hero-lab { font-size: 12px; opacity: .9; }
.wk-hero-num { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin: 4px 0 6px; }
.wk-hero-num span { font-size: 18px; margin-right: 3px; }
.wk-hero-tip { display: flex; align-items: center; gap: 5px; font-size: 11px; opacity: .88; }
.wk-hero-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 16px -16px 0;
  background: rgba(255, 255, 255, .22); }
.wk-hero-stat a { background: rgba(255, 255, 255, .12); padding: 11px 4px; text-align: center;
  text-decoration: none; color: #fff; }
.wk-hero-stat b { display: block; font-size: 13px; }
.wk-hero-stat span { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.wk-sec { margin-top: 16px; }
.wk-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wk-sec-head h2 { display: flex; align-items: center; gap: 7px; font-size: 15px; margin: 0; }
.wk-sec-head h2 .bar { width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2)); }
.wk-sec-tip { font-size: 11px; color: var(--w-muted); }
.wk-list { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-radius);
  box-shadow: var(--w-shadow); padding: 0 14px; }
.wk-row { display: flex; align-items: center; gap: 11px; padding: 13px 0;
  border-bottom: 1px dashed var(--w-line); }
.wk-row:last-child { border-bottom: 0; }
.wk-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: flex;
  align-items: center; justify-content: center; }
.wk-ico.in { background: #eaf8ee; color: #2fa85c; }
.wk-ico.out { background: var(--primary-soft); color: var(--primary); }
.wk-row-main { flex: 1; min-width: 0; }
.wk-row-t { font-size: 13px; font-weight: 600; }
.wk-row-s { font-size: 11px; color: var(--w-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-row-d { font-size: 10.5px; color: #a9b0bb; margin-top: 3px; }
.wk-row-amt { flex: none; font-size: 15px; font-weight: 700; }
.wk-row-amt.in { color: #2fa85c; }
.wk-row-amt.out { color: var(--primary); }
.wk-empty { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-radius);
  text-align: center; padding: 34px 14px; color: var(--w-muted); }
.wk-empty svg { color: #c9ced8; }
.wk-empty p { font-size: 13px; margin: 10px 0 14px; }
.wk-foot-note { font-size: 11px; color: var(--w-muted); line-height: 1.7; margin: 14px 2px 0; }
.wk-foot-note a { color: var(--primary); }
.hp-hero { display: flex; align-items: center; gap: 11px; background: linear-gradient(120deg, #fff4f0, #fff);
  border: 1px solid #ffe3de; border-radius: var(--w-radius); padding: 14px; }
.hp-hero-ico { width: 42px; height: 42px; flex: none; border-radius: 13px; background: #fff;
  color: var(--primary); display: flex; align-items: center; justify-content: center; }
.hp-hero .grow { flex: 1; min-width: 0; }
.hp-hero b { display: block; font-size: 14px; }
.hp-hero small { display: block; font-size: 11px; color: var(--w-muted); margin-top: 3px; }
.hp-tel { flex: none; background: linear-gradient(135deg, #f0433a, #ff6b57); color: #fff;
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; text-decoration: none; }
.hp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.hp-quick a { background: #fff; border: 1px solid var(--w-line); border-radius: 13px;
  padding: 12px 2px; text-align: center; font-size: 11px; color: var(--w-ink); text-decoration: none;
  box-shadow: var(--w-shadow); }
.hp-quick a span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  margin: 0 auto 6px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.hp-faq { background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-radius);
  box-shadow: var(--w-shadow); overflow: hidden; }
.hp-faq details { border-bottom: 1px dashed var(--w-line); }
.hp-faq details:last-child { border-bottom: 0; }
.hp-faq summary { display: flex; align-items: center; gap: 9px; padding: 13px 14px;
  list-style: none; font-size: 13px; cursor: pointer; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary b { flex: 1; min-width: 0; font-weight: 600; }
.hp-q-no { width: 20px; height: 20px; flex: none; border-radius: 6px; background: var(--primary-soft);
  color: var(--primary); font-size: 11px; font-weight: 700; text-align: center; line-height: 20px; }
.hp-chev { color: var(--w-muted); transition: transform .2s; }
.hp-faq details[open] .hp-chev { transform: rotate(90deg); }
.hp-a { padding: 0 14px 14px 43px; font-size: 12.5px; color: var(--w-muted); line-height: 1.75; }
.faq-item summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 12px 0;
  border-bottom: 1px dashed var(--w-line); font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-body { padding: 10px 0 12px; font-size: 13px; color: var(--w-muted); line-height: 1.7; }
.q-no { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary); font-size: 11px; text-align: center; line-height: 20px; flex: none; }

/* ---------- 13. 分享 / 客服面板 + 悬浮按钮 ---------- */
.sh-sheet, .sv-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 131; background: #fff;
  border-radius: 20px 20px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .26s cubic-bezier(.22, .7, .3, 1); }
.sh-sheet.show, .sv-sheet.show { transform: translateY(0); }
.sh-head { display: flex; align-items: center; justify-content: center; padding: 15px;
  border-bottom: 1px solid var(--w-line); position: relative; }
.sh-head b { font-size: 14px; }
.sh-head button { position: absolute; right: 14px; top: 10px; border: 0; background: transparent;
  font-size: 24px; color: var(--w-muted); line-height: 1; }
.sh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 14px; }
.sh-grid button, .sh-grid a { border: 0; background: transparent; text-align: center;
  font-size: 11px; color: var(--w-ink); text-decoration: none; }
.sh-grid span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  margin: 0 auto 7px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); }
.sh-cancel { display: block; width: calc(100% - 28px); margin: 4px 14px 0; height: 44px;
  border: 0; border-radius: 999px; background: #f5f6f8; color: var(--w-muted); font-size: 14px; }
.sv-head { display: flex; align-items: center; gap: 11px; padding: 16px 16px 12px; }
.sv-ico { width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center; }
.sv-head .grow { flex: 1; }
.sv-head b { display: block; font-size: 15px; }
.sv-head small { font-size: 11px; color: var(--w-muted); }
.sv-head button { border: 0; background: transparent; font-size: 24px; color: var(--w-muted); }
.sv-tel { display: flex; align-items: center; gap: 8px; margin: 0 14px 12px; padding: 12px;
  border-radius: 12px; background: linear-gradient(120deg, #fff4f0, #fff);
  border: 1px solid #ffe3de; font-size: 13px; color: var(--w-ink); text-decoration: none; }
.sv-tel b { margin-left: auto; color: var(--primary); }
.sv-links { margin: 0 14px; border: 1px solid var(--w-line); border-radius: 12px; overflow: hidden; }
.sv-links a { display: flex; align-items: center; gap: 9px; padding: 12px;
  border-bottom: 1px dashed var(--w-line); font-size: 13px; color: var(--w-ink); text-decoration: none; }
.sv-links a:last-child { border-bottom: 0; }
.sv-links a svg { color: var(--primary); }
.sv-links a span { margin-left: auto; color: var(--w-muted); }
.wap-fab { position: fixed; right: 14px; bottom: calc(132px + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 50%; border: 0; z-index: 97;
  background: linear-gradient(135deg, #f0433a, #ff8a5c); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(240, 67, 58, .35); }
.wap-fab:active { transform: scale(.93); }
body.wap.page-goods_detail .wap-fab { bottom: calc(106px + env(safe-area-inset-bottom)); }
body.wap.page-checkout .wap-fab,
body.wap.page-address_edit .wap-fab,
body.wap.page-center .wap-fab { display: none; } /* 个人中心常用服务已含「联系客服」，避免悬浮按钮压住末行入口 */
body.wap.page-checkout .to-top { bottom: calc(90px + env(safe-area-inset-bottom)); }

/* ---------- 14. 空态 / 细节 ---------- */
body.wap .empty { padding: 34px 14px; }
body.wap .empty p { font-size: 14px; }
body.wap .help-card { padding: 14px; border-radius: var(--w-radius); }
body.wap .coupon-card { border-radius: 14px; }
body.wap .tag { font-size: 11px; }
body.wap .wap-cats { gap: 8px; }
body.wap .wap-cats a { font-size: 11px; }
body.wap .wap-notice, body.wap .wap-banner, body.wap .wap-coupon-strip { border-radius: 14px; }
body.wap .wap-banner { overflow: hidden; }
body.wap .wap-sec-title { margin: 18px 2px 10px; }
body.wap .wap-sec-title h2 { font-size: 16px; }

/* 小屏适配：<=360px 收紧留白与按钮 */
@media (max-width: 360px) {
  body.wap .wap-body { padding-left: 9px; padding-right: 9px; }
  body.wap .service-grid .s-name { font-size: 11px; }
  body.wap .wap-buy-bar .wb-actions .btn { font-size: 12px; }
  .ck-bar .btn { min-width: 112px; }
  body.wap .order-card .o-foot .od-actions .btn-sm { padding: 0 10px; font-size: 12px; }
  .od-actions { gap: 5px; }
}

/* ---------- 15. 首页常用功能快捷入口 ---------- */
.wap-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 8px; }
.wap-tools a, .wap-tools button { display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid var(--w-line); background: #fff; border-radius: 13px; padding: 12px 2px;
  font-size: 11px; color: var(--w-ink); text-decoration: none; box-shadow: var(--w-shadow); }
.wap-tools a:active, .wap-tools button:active { background: var(--primary-soft); }
.wap-tools .wt-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center; }

/* ========== 16. 精修：首页品牌 / 公告 / 领券 / 商品卡片 / 购物车 / 收藏页 ========== */
/* --- 首页品牌名称：完整显示，排版挺括 --- */
body.wap .wap-header.top-brand .wap-top { gap: 8px; }
body.wap .wap-brand-name { font-size: 16px; font-weight: 800; letter-spacing: .5px;
  max-width: 150px; text-shadow: 0 1px 4px rgba(120, 20, 10, .28); }

/* --- 公告栏：干净白卡 + 胶囊标签 + 无缝匀速滚动 --- */
body.wap .wap-notice { padding: 10px 12px; border: 0; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29, 33, 41, .05); }
body.wap .wap-notice .n-tag { display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .5px;
  background: var(--primary-soft); }
body.wap .wap-notice .n-tag svg { line-height: 0; }
body.wap .wap-notice .n-scroll { display: flex; align-items: center; }
body.wap .wap-notice .n-track { display: inline-flex; white-space: nowrap; will-change: transform; }
body.wap .wap-notice .n-track span { padding-right: 56px; }
body.wap .wap-notice .n-scroll.is-long .n-track { animation: wapNoticeScroll 18s linear infinite; }
@keyframes wapNoticeScroll { to { transform: translateX(-50%); } }
body.wap .wap-notice .n-more { width: 24px; height: 24px; flex: none; align-items: center;
  justify-content: center; border-radius: 50%; background: #f6f7f9; color: var(--muted); }
body.wap .wap-notice .n-more:active { background: var(--primary-soft); color: var(--primary); }

/* --- 领券：红色渐变券卡，白字 + 虚线分隔 + 白底领取按钮 --- */
body.wap .wap-coupon-strip { position: relative; overflow: hidden; border: 0;
  background: linear-gradient(115deg, #f0433a 0%, #ff6b57 55%, #ff8a5c 100%);
  box-shadow: 0 8px 20px rgba(240, 67, 58, .22); padding: 14px; }
body.wap .wap-coupon-strip::before { content: ""; position: absolute; width: 110px; height: 110px;
  border-radius: 50%; right: -30px; top: -46px; background: rgba(255, 255, 255, .10); pointer-events: none; }
body.wap .wap-coupon-strip::after { content: ""; position: absolute; width: 70px; height: 70px;
  border-radius: 50%; right: 56px; bottom: -40px; background: rgba(255, 255, 255, .07); pointer-events: none; }
body.wap .wap-coupon-strip .cs-ico { width: 44px; height: 44px; flex: none; border-radius: 13px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: none; }
body.wap .wap-coupon-strip .cs-body { flex: 1; min-width: 0; display: flex; flex-direction: column;
  gap: 3px; padding-left: 12px; border-left: 1px dashed rgba(255, 255, 255, .38); }
body.wap .wap-coupon-strip .cs-body b { font-size: 14px; color: #fff; letter-spacing: .3px; }
body.wap .wap-coupon-strip .cs-body small { font-size: 11px; color: rgba(255, 255, 255, .78); }
body.wap .wap-coupon-strip .cs-btn { flex: none; padding: 8px 16px; border-radius: 999px;
  background: #fff; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 3px 8px rgba(120, 20, 10, .16); transition: transform .15s ease; }
body.wap .wap-coupon-strip:active .cs-btn { transform: scale(.96); }

/* --- 商品卡片：克制的层次与按压反馈 --- */
body.wap .goods-card { box-shadow: 0 2px 10px rgba(29, 33, 41, .05);
  transition: transform .18s ease, box-shadow .18s ease; }
body.wap .goods-card:active { transform: scale(.985); box-shadow: 0 1px 6px rgba(29, 33, 41, .06); }
body.wap .goods-card .info .name { color: var(--w-ink); }
body.wap .goods-card .info .bottom { margin-top: 6px; }
body.wap .goods-card .info .sales { font-size: 11px; }

/* --- 购物车底部栏：单行紧凑，左侧首页/分类菜单（详情页同款） --- */
body.wap.page-cart .checkout-bar { display: flex; align-items: center; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
body.wap.page-cart .checkout-bar .between { display: contents; }
body.wap.page-cart .ck-minis { display: flex; align-items: center; gap: 2px; }
body.wap.page-cart .ck-mini { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-width: 42px; padding: 3px 4px; border-radius: 10px;
  font-size: 10px; line-height: 1; color: var(--text); text-decoration: none; }
body.wap.page-cart .ck-mini svg { color: var(--text); }
body.wap.page-cart .ck-mini:active { background: var(--primary-soft); color: var(--primary); }
body.wap.page-cart .ck-mini:active svg { color: var(--primary); }
body.wap.page-cart .checkout-bar label { white-space: nowrap; font-size: 12px; }
body.wap.page-cart .checkout-bar .total { margin-left: auto; font-size: 12px; white-space: nowrap; }
body.wap.page-cart .checkout-bar .total b { font-size: 18px; }
body.wap.page-cart .checkout-bar .btn-lg { min-width: 104px; height: 42px; font-size: 14px; }
body.wap.page-cart .wap-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body.wap.page-cart .wap-fab,
body.wap.page-cart .to-top { bottom: calc(72px + env(safe-area-inset-bottom)); }
/* 空购物车：无结算条，恢复底部全局导航 */
body.wap.page-cart:has(.cart-empty-card) .wap-tabbar { display: flex; }
body.wap.page-cart:has(.cart-empty-card) .wap-body { padding-bottom: 76px; }

/* --- 收藏页：等高双胶囊操作按钮 --- */
body.wap .fav-item { display: flex; flex-direction: column; }
body.wap .fav-item .goods-card { flex: 1; }
body.wap .fav-ops { display: flex; gap: 8px; margin-top: 8px; }
body.wap .fav-ops .fav-go,
body.wap .fav-ops .fav-remove { flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 4px; height: 34px; padding: 0; border-radius: 999px; font-size: 12px; }
body.wap .fav-ops .fav-go { border: 1px solid var(--w-line); background: #fff;
  color: var(--text); text-decoration: none; }
body.wap .fav-ops .fav-go:active { background: #f6f7f9; }
body.wap .fav-ops .fav-remove { border: 1px solid #ffd4cc; background: #fff7f5;
  color: var(--primary); cursor: pointer; }
body.wap .fav-ops .fav-remove:active { background: var(--primary-soft); }

/* --- 小屏收紧 --- */
@media (max-width: 360px) {
  body.wap .wap-brand-name { max-width: 120px; font-size: 15px; }
  body.wap .wap-coupon-strip { padding: 12px; }
  body.wap .wap-coupon-strip .cs-btn { padding: 7px 13px; }
  body.wap.page-cart .checkout-bar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  body.wap.page-cart .ck-mini { min-width: 38px; }
  body.wap.page-cart .checkout-bar .btn-lg { min-width: 92px; font-size: 13px; }
  body.wap .fav-ops { gap: 6px; }
}

/* ========== 17. 精修：购物车商品条目（有商品时） ========== */
/* 条目卡片化：白底圆角独立卡片，条目之间以间距分隔 */
body.wap.page-cart .cart-table { background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
body.wap.page-cart .cart-item { position: relative; background: #fff; border-radius: 14px;
  border: 0; box-shadow: 0 2px 10px rgba(29, 33, 41, .05); padding: 12px; margin-bottom: 10px; }
body.wap.page-cart .cart-item:last-child { margin-bottom: 0; }
body.wap.page-cart .cart-item:active { box-shadow: 0 1px 5px rgba(29, 33, 41, .06); }
/* 商品图：统一比例、细腻圆角、浅底占位 */
body.wap.page-cart .cart-item .good { gap: 10px; align-items: flex-start; }
body.wap.page-cart .cart-item .good a { flex: none; display: block; border-radius: 10px; overflow: hidden;
  background: #f2f3f5; line-height: 0; }
body.wap.page-cart .cart-item .good img { width: 76px; height: 90px; object-fit: cover; border-radius: 0; }
/* 商品名最多两行、规格行弱化 */
body.wap.page-cart .cart-item .good .name { font-size: 13px; font-weight: 600; line-height: 1.4;
  color: var(--w-ink); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
body.wap.page-cart .cart-item .good .sku { margin-top: 5px; font-size: 11px; color: var(--w-muted);
  display: inline-block; background: #f6f7f9; border-radius: 6px; padding: 2px 7px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 勾选框更醒目 */
body.wap.page-cart .cart-item .checkbox { width: 19px; height: 19px; border-radius: 50%; }
body.wap.page-cart .cart-item .checkbox.checked::after { width: 5px; height: 9px; margin-top: -1px; }
/* 单价行：弱化，小计突出 */
body.wap.page-cart .cart-item .price { font-size: 13px; color: var(--w-muted); }
body.wap.page-cart .cart-item .price[data-subtotal] { font-size: 16px; font-weight: 700; color: var(--w-ink); }
body.wap.page-cart .cart-item .price[data-subtotal] .sym { font-size: 11px; }
/* 数量控件：胶囊化、按钮加宽、按压反馈 */
body.wap.page-cart .cart-item .qty { border-radius: 999px; border-color: var(--w-line);
  background: #f8f9fa; width: 112px; }
body.wap.page-cart .cart-item .qty button { width: 34px; height: 30px; background: transparent;
  font-size: 17px; color: var(--text); }
body.wap.page-cart .cart-item .qty button:active { color: var(--primary); }
body.wap.page-cart .cart-item .qty input { width: 40px; height: 30px; background: transparent;
  border-left: 0; border-right: 0; font-size: 13px; }
/* 删除：图标化弱按钮 */
body.wap.page-cart .cart-item .del { display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 30px; padding: 0; border: 0; background: transparent;
  color: var(--w-muted); font-size: 12px; }
body.wap.page-cart .cart-item .del:active { color: var(--primary); }
/* 包邮进度条：更轻的卡片、轨道更细 */
body.wap.page-cart .ship-progress { border-radius: 12px; padding: 10px 12px; margin: 2px 0 10px;
  box-shadow: 0 2px 10px rgba(29, 33, 41, .04); }
body.wap.page-cart .ship-progress .sp-text { font-size: 12px; }
/* 包邮进度卡片与商品卡片拉开间距，避免贴得太近 */
body.wap.page-cart .cart-table + .ship-progress { margin-top: 14px; }

/* 品牌条去 logo：名称左对齐收紧 */
body.wap .wap-header.top-brand .wap-logo { gap: 0; }

/* ========== 18. 购物车有商品：布局精修 v2（勾选列 + 图文卡片 + 管理模式） ========== */
/* 页头：标题件数与「管理」切换同行，替代原 page-head 副标题 */
body.wap.page-cart .cart-pagehead { display: flex; align-items: center; justify-content: space-between;
  margin: 2px 2px 10px; }
body.wap.page-cart .cart-pagehead .cph-title { display: flex; align-items: baseline; gap: 8px;
  font-size: 17px; font-weight: 800; color: var(--w-ink); line-height: 1.3; }
body.wap.page-cart .cart-pagehead .cph-sub { font-size: 12px; font-weight: 400; color: var(--w-muted); }
body.wap.page-cart .cart-pagehead .cph-manage { border: 0; background: transparent; color: var(--primary);
  font-size: 13.5px; font-weight: 600; padding: 6px 2px 6px 12px; cursor: pointer; }
body.wap.page-cart .cart-pagehead .cph-manage:active { opacity: .6; }
/* 列表顶部间距（替代已移除的页头占位） */
body.wap.page-cart .cart-table { margin-top: 8px; }
/* 顶部栏「管理」按钮：清除默认 button 样式，与 .tb-side 对齐 */
body.wap .wap-header.top-title .tb-manage { border: 0; background: transparent; color: var(--primary);
  font-size: 15px; font-weight: 600; padding: 0 2px; margin-left: 6px; cursor: pointer; }
body.wap .wap-header.top-title .tb-manage:active { opacity: .6; }

/* 条目卡片：左勾选列 + 右主内容列（图 + 信息），替代旧两行网格 */
body.wap.page-cart .cart-item { position: relative; display: grid; grid-template-columns: 22px 1fr;
  gap: 11px; align-items: center; background: #fff; border-radius: 14px; padding: 12px;
  margin-bottom: 10px; border: 0; box-shadow: 0 2px 10px rgba(29, 33, 41, .05); }
body.wap.page-cart .cart-item:last-child { margin-bottom: 0; }
body.wap.page-cart .cart-item > * { grid-column: auto; }
body.wap.page-cart .cart-item > .checkbox { grid-column: 1; justify-self: center; align-self: center;
  width: 20px; height: 20px; border-radius: 50%; }
body.wap.page-cart .cart-item > .ci-main { grid-column: 2; min-width: 0; display: flex;
  gap: 10px; align-items: flex-start; }
/* 商品图：统一 3:3.6 比例、细腻圆角、浅底占位 */
body.wap.page-cart .cart-item .ci-thumb { flex: none; width: 74px; height: 88px; border-radius: 10px;
  overflow: hidden; background: #f2f3f5; line-height: 0; display: block; }
body.wap.page-cart .cart-item .ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 信息区：名称两行省略、规格弱化成浅底胶囊 */
body.wap.page-cart .cart-item .ci-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.wap.page-cart .cart-item .name { font-size: 13.5px; font-weight: 600; line-height: 1.42;
  color: var(--w-ink); padding-right: 26px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
body.wap.page-cart .cart-item .sku { align-self: flex-start; margin-top: 6px; font-size: 11px;
  color: var(--w-muted); background: #f6f7f9; border-radius: 6px; padding: 3px 8px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 操作行：单价(含划线价) | 数量步进 | 小计，三段等距分布 */
body.wap.page-cart .cart-item .ci-meta { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 11px; }
body.wap.page-cart .cart-item .ci-meta .price { display: flex; flex-direction: column; gap: 3px;
  font-size: 15px; font-weight: 700; color: var(--primary); line-height: 1; white-space: nowrap; }
body.wap.page-cart .cart-item .ci-meta .price .sym { font-size: 10.5px; margin-right: 1px; }
body.wap.page-cart .cart-item .ci-meta .price .mkt { font-size: 10.5px; color: var(--w-muted);
  font-weight: 400; text-decoration: line-through; }
body.wap.page-cart .cart-item .ci-meta .subtotal { font-size: 15px; font-weight: 700;
  color: var(--w-ink); white-space: nowrap; }
body.wap.page-cart .cart-item .ci-meta .subtotal .sym { font-size: 10px; }
/* 数量步进器：胶囊化，按压反馈 */
body.wap.page-cart .cart-item .qty { border-radius: 999px; border-color: var(--w-line);
  background: #f8f9fa; height: 30px; flex: none; }
body.wap.page-cart .cart-item .qty button { width: 31px; height: 28px; background: transparent;
  font-size: 17px; color: var(--text); }
body.wap.page-cart .cart-item .qty button:active { color: var(--primary); }
body.wap.page-cart .cart-item .qty input { width: 36px; height: 28px; background: transparent;
  border-left: 0; border-right: 0; font-size: 13px; }
/* 单删：右上角轻量图标按钮 */
body.wap.page-cart .cart-item .del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent;
  color: var(--w-muted); border-radius: 8px; padding: 0; min-width: 0; }
body.wap.page-cart .cart-item .del:active { background: var(--primary-soft); color: var(--primary); }

/* 包邮进度：更轻的卡片与更细轨道 */
body.wap.page-cart .ship-progress { border-radius: 14px; padding: 12px 14px; margin: 0 0 10px;
  box-shadow: 0 2px 10px rgba(29, 33, 41, .04); }
body.wap.page-cart .ship-progress .sp-track { height: 6px; border-radius: 999px; }
body.wap.page-cart .ship-progress .sp-track i { border-radius: 999px; }
body.wap.page-cart .ship-progress .sp-text { font-size: 12.5px; }

/* 结算条：全选 | 合计(未含运费) | 去结算；管理模式切换为批量删除 */
body.wap.page-cart .checkout-bar { display: flex; align-items: center; gap: 10px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); }
body.wap.page-cart .checkout-bar .cb-all { display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
body.wap.page-cart .checkout-bar .cb-all .checkbox { width: 20px; height: 20px; border-radius: 50%; flex: none; }
body.wap.page-cart .checkout-bar .total-box { margin-left: auto; text-align: right; line-height: 1.15; min-width: 0; }
body.wap.page-cart .checkout-bar .total-box .lbl { display: block; font-size: 10.5px; color: var(--w-muted); }
body.wap.page-cart .checkout-bar .total-box b { font-size: 20px; font-weight: 800; color: var(--primary); }
body.wap.page-cart .checkout-bar .total-box .lbl2 { display: block; font-size: 10px; color: #e08a20;
  margin-top: 1px; white-space: nowrap; }
body.wap.page-cart .checkout-bar .btn-checkout { border-radius: 999px; height: 44px; min-width: 112px;
  padding: 0 20px; font-size: 15px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 16px rgba(240, 67, 58, .28); white-space: nowrap; }
body.wap.page-cart .checkout-bar .btn-del-checked { display: none; height: 44px; min-width: 112px;
  padding: 0 20px; border-radius: 999px; border: 1px solid var(--primary); background: #fff;
  color: var(--primary); font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; align-items: center; justify-content: center; }
body.wap.page-cart .checkout-bar .btn-del-checked:active { background: var(--primary-soft); }
/* 管理模式：隐藏单价/数量/小计与单删，突出勾选；结算条切换为批量删除 */
body.wap.page-cart.cart-editing .cart-item .ci-meta,
body.wap.page-cart.cart-editing .cart-item .del { display: none; }
body.wap.page-cart.cart-editing .checkout-bar .total-box,
body.wap.page-cart.cart-editing .checkout-bar .btn-checkout { display: none; }
body.wap.page-cart.cart-editing .checkout-bar .btn-del-checked { display: inline-flex; }
/* 窄屏适配：≤400px 收紧图片/步进器/按钮，≤345px 隐藏单价只留小计，保证操作行不溢出 */
@media (max-width: 400px) {
  body.wap.page-cart .cart-item { padding: 10px; grid-template-columns: 20px 1fr; gap: 9px; }
  body.wap.page-cart .cart-item .ci-thumb { width: 64px; height: 78px; }
  body.wap.page-cart .cart-item .ci-main { gap: 8px; }
  body.wap.page-cart .cart-item .ci-meta { gap: 6px; margin-top: 9px; }
  body.wap.page-cart .cart-item .qty { width: 96px; }
  body.wap.page-cart .cart-item .qty button { width: 28px; }
  body.wap.page-cart .cart-item .qty input { width: 36px; }
  body.wap.page-cart .cart-item .ci-meta .price { font-size: 14px; }
  body.wap.page-cart .cart-item .ci-meta .price .mkt { display: none; }
  body.wap.page-cart .cart-item .ci-meta .subtotal { font-size: 14px; }
  body.wap.page-cart .checkout-bar { gap: 8px; padding-left: 10px; padding-right: 10px; }
  body.wap.page-cart .checkout-bar .btn-checkout,
  body.wap.page-cart .checkout-bar .btn-del-checked { min-width: 96px; padding: 0 14px; font-size: 14px; }
  body.wap.page-cart .checkout-bar .total-box b { font-size: 18px; }
}
@media (max-width: 345px) {
  body.wap.page-cart .cart-item .ci-meta .price { display: none; }
}

/* ========== 19. 购物车：顶部置顶固定 + 价格去重 + 结算条强化 ========== */
/* 顶部「我的购物车 / 管理」吸顶：紧贴 50px 标题栏之下，滚动时遮住下方卡片 */
body.wap.page-cart .cart-pagehead {
  position: sticky; top: 50px; z-index: 90;
  margin: 2px 0 10px; padding: 9px 12px;
  background: #f5f6f8;
  border-bottom: 1px solid transparent;
}
body.wap.page-cart .cart-pagehead.is-stuck {
  border-bottom-color: var(--w-line);
  box-shadow: 0 6px 14px rgba(29, 33, 41, .05);
}
/* 价格区：单价（含划线价）与「小计」纵向堆叠，避免与单价重复 */
body.wap.page-cart .cart-item .ci-meta .price-wrap {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
body.wap.page-cart .cart-item .ci-meta .price { line-height: 1; }
body.wap.page-cart .cart-item .ci-meta .price .mkt { display: block; margin-top: 3px; }
body.wap.page-cart .cart-item .ci-meta .line-sub {
  font-size: 11.5px; color: var(--w-muted); white-space: nowrap;
}
body.wap.page-cart .cart-item .ci-meta .line-sub [data-line-sub] {
  color: var(--w-ink); font-weight: 600;
}
/* 结算条固定兜底：确保始终吸底且不被内容遮挡（Tab 已在 page-cart 隐藏） */
body.wap.page-cart .checkout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
}

/* ========== 20. 购物车图标角标（加购后联动）：正体数字 + 缩小一圈 ========== */
body.wap .wap-buy-bar .wb-mini .tab-ico { position: relative; display: inline-flex; line-height: 0; }
body.wap .wap-buy-bar .wb-mini .tab-ico .badge,
body.wap .wap-header .tab-ico .badge,
body.wap .wap-tabbar .tab-ico .badge,
body.wap .ha-ico .badge {
  font-style: normal;              /* 数字保持正体，不再随 <i> 倾斜 */
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  position: absolute; top: -7px; right: -8px; left: auto;
  min-width: 15px; height: 15px; padding: 0 3px;
  font-size: 9px; line-height: 15px; font-weight: 700;
  border-radius: 999px; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(240,67,58,.3); }

/* ========== 21. 微调：加购提示 / 顶部管理 / 合计区 / 包邮进度 ========== */
/* 1) 加购提示：从顶部挪到「底部操作栏上方」就近反馈；绿底改中性深灰，避免与红色主题冲突 */
body.wap #toast {
  top: auto; bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px) scale(.96);
  padding: 11px 20px; border-radius: 12px; font-size: 13.5px;
  width: max-content; max-width: 76vw; text-align: center;
  background: rgba(29, 33, 41, .92); color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
}
body.wap #toast.show { transform: translateX(-50%) translateY(0) scale(1); }
body.wap #toast.success { background: rgba(29, 33, 41, .92); }
body.wap #toast.error { background: rgba(240, 67, 58, .96); }

/* 2) 顶部「管理」固定右上角：购物车页标题栏第三列扩宽，右侧容器只承载这一个按钮 */
body.wap.page-cart .wap-header.top-title .wap-titlebar { grid-template-columns: 44px 1fr 60px; }
body.wap.page-cart .wap-header.top-title .tb-sides { justify-content: flex-end; }
body.wap .wap-header.top-title .tb-sides .tb-manage {
  width: auto; height: 44px; margin-left: 0; padding: 0 4px;
  font-size: 14px; white-space: nowrap;
}

/* 3) 合计区：由三行堆叠压成「合计 ¥xxx」+「未含运费」两行，右对齐紧贴结算按钮 */
body.wap.page-cart .checkout-bar .total-box {
  margin-left: auto; margin-right: 4px; text-align: right;
  line-height: 1.25; display: block; align-self: center;
}
body.wap.page-cart .checkout-bar .total-box .lbl {
  display: inline; font-size: 11.5px; color: var(--text); margin-right: 3px;
}
body.wap.page-cart .checkout-bar .total-box b { display: inline; font-size: 19px; }
body.wap.page-cart .checkout-bar .total-box .lbl2 {
  display: block; font-size: 10px; color: var(--w-muted); margin-top: 2px;
}

/* 4) 包邮进度：文字在上、进度条在下，轨道不再额外留出下边距 */
body.wap.page-cart .ship-progress .sp-text { font-size: 12.5px; margin-bottom: 9px; }
body.wap.page-cart .ship-progress .sp-track { height: 6px; border-radius: 999px; margin: 0; }

/* ========== 22. 购物车：商品列表去外框 / 管理左移 / 底部固定栏排版 ========== */
/* 1) 包邮进度与购物保障保留原有卡片样式；真正多余的方框是商品列表容器残留的 1px 边框 */
body.wap.page-cart .cart-table { border: 0; }

/* 2) 顶部「管理」整体左移 8px，不再贴着屏幕最右边 */
body.wap.page-cart .wap-header.top-title .tb-sides { padding-right: 8px; }

/* 3) 底部固定栏：实白底 + 上圆角层次，三段分区、禁止换行、不溢出 */
body.wap.page-cart .checkout-bar {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: #fff; backdrop-filter: none;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--w-line);
  box-shadow: 0 -6px 22px rgba(29, 33, 41, .10);
}
body.wap.page-cart .checkout-bar .cb-all { flex: none; margin-right: auto; }
body.wap.page-cart .checkout-bar .total-box {
  flex: 0 1 auto; min-width: 0; margin-left: 0; margin-right: 2px;
}
body.wap.page-cart .checkout-bar .total-box b { font-size: 20px; }
body.wap.page-cart .checkout-bar .btn-checkout,
body.wap.page-cart .checkout-bar .btn-del-checked {
  flex: none; min-width: 108px; max-width: 42vw; padding: 0 16px;
}
/* 滚到底部时最后一行内容不被固定栏遮住 */
body.wap.page-cart .wap-body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
@media (max-width: 360px) {
  body.wap.page-cart .checkout-bar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  body.wap.page-cart .checkout-bar .btn-checkout,
  body.wap.page-cart .checkout-bar .btn-del-checked { min-width: 92px; padding: 0 12px; }
  body.wap.page-cart .checkout-bar .total-box b { font-size: 17px; }
}

/* ========== 23. 结算条合计：标签与金额同一排，运费说明并入「合计」并随包邮状态切换 ========== */
body.wap.page-cart .checkout-bar .total-box {
  display: flex; flex-direction: row; align-items: baseline; justify-content: flex-end;
  gap: 4px; text-align: right; line-height: 1.2; white-space: nowrap;
}
body.wap.page-cart .checkout-bar .total-box .lbl {
  display: inline; margin-right: 0; font-size: 11px;
  color: var(--w-muted); white-space: nowrap;
}
body.wap.page-cart .checkout-bar .total-box .lbl2 {
  display: inline; margin-top: 0; font-size: 10px; color: var(--w-muted);
}
body.wap.page-cart .checkout-bar .total-box b {
  display: inline; margin-top: 0; font-size: 18px; white-space: nowrap;
}
body.wap.page-cart .checkout-bar .total-box b .sym { font-size: 11px; margin-right: 1px; }
@media (max-width: 360px) {
  body.wap.page-cart .checkout-bar .total-box { gap: 3px; }
  body.wap.page-cart .checkout-bar .total-box .lbl { font-size: 10px; }
  body.wap.page-cart .checkout-bar .total-box .lbl2 { font-size: 9px; }
  body.wap.page-cart .checkout-bar .total-box b { font-size: 16px; }
}

/* ========== 24. 商品卡片：现价与划线原价并成一排，小计仍单独一行 ========== */
body.wap.page-cart .cart-item .ci-meta .price {
  flex-direction: row; align-items: baseline; gap: 6px; font-size: 14px;
}
body.wap.page-cart .cart-item .ci-meta .price .mkt {
  display: inline; margin-top: 0; font-size: 10px;
}

/* ========== 25. 全站悬浮按钮：位置与首页一致；在线客服无操作时透明显示 ========== */
/* 在线客服：所有页面统一回首页基准（right 14px / bottom 132px），并统一显示 */
body.wap .wap-fab,
body.wap.page-cart .wap-fab,
body.wap.page-goods_detail .wap-fab,
body.wap.page-checkout .wap-fab,
body.wap.page-address_edit .wap-fab,
body.wap.page-center .wap-fab,
body.wap.page-order_list .wap-fab,
body.wap.page-order_detail .wap-fab {
  right: 14px;
  bottom: calc(132px + env(safe-area-inset-bottom));
  display: flex;
}
/* 无操作：完全隐藏（缩小热区降低误触）；触碰 / 按下 / 聚焦时显现 */
body.wap .wap-fab {
  opacity: 0;
  transform: scale(.55);
  box-shadow: none;
  transition: opacity .22s ease, transform .18s ease, box-shadow .2s ease;
}
body.wap .wap-fab.is-revealed,
body.wap .wap-fab:hover,
body.wap .wap-fab:active,
body.wap .wap-fab:focus-visible {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 6px 18px rgba(240, 67, 58, .35);
}
/* 回到顶部箭头：所有页面统一回首页基准（right 14px / bottom 78px） */
body.wap .to-top,
body.wap.page-cart .to-top,
body.wap.page-goods_detail .to-top,
body.wap.page-checkout .to-top,
body.wap.page-address_edit .to-top,
body.wap.page-center .to-top,
body.wap.page-order_list .to-top,
body.wap.page-order_detail .to-top {
  right: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom));
}

/* ========== 26. 指定页面移除悬浮客服（聊天面板样式见 service.css） ========== */
/* 「我的订单」「个人中心」不显示圆形悬浮客服（页面内已有文字客服入口） */
body.wap.page-order_list .wap-fab,
body.wap.page-center .wap-fab { display: none; }

body.wap.chat-open { overflow: hidden; }

/* ========== 27. WAP 全局隐藏滚动条（保留滚动能力） ==========
   只隐藏滚动条的视觉呈现，绝不改 overflow：页面、聊天消息区、订单列表、
   横向分类导航、搜索下拉等所有可滚动容器仍可正常滚动/滑动。
   v20261108t */
html, body.wap, body.wap * {
  scrollbar-width: none;        /* Firefox / 标准属性 */
  -ms-overflow-style: none;     /* 旧 Edge / IE */
}
html::-webkit-scrollbar,
body.wap::-webkit-scrollbar,
body.wap *::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / 各类 WebView */
  width: 0; height: 0;
}

