/* 收付通商城 H5 — 视觉还原自 h5.jinpeigs.cn（主题色 #F62C2C，375px 移动端布局） */
:root {
  --red: #F62C2C;
  --red-light: #fff1f0;
  --text: #282828;
  --text-2: #666;
  --text-3: #999;
  --line: #f0f0f0;
  --bg: #f5f6f8;
  --tabbar-h: 54px;
  --radius: 12px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #e9eaec;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
}
#app {
  width: 100%;
  max-width: 414px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.loading { padding: 120px 0; text-align: center; color: var(--text-3); }

/* ---------- 通用 ---------- */
.page { padding-bottom: calc(var(--tabbar-h) + 16px); min-height: 100vh; }
.page.no-tab { padding-bottom: 16px; }
.nav {
  height: 44px; display: flex; align-items: center; padding: 0 12px;
  background: #fff; position: sticky; top: 0; z-index: 30;
}
.nav .back { width: 28px; font-size: 20px; color: var(--text); line-height: 1; }
.nav .nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.nav .nav-right { min-width: 28px; text-align: right; font-size: 13px; color: var(--text-2); }
.card { background: #fff; border-radius: var(--radius); margin: 10px 12px; padding: 12px; }
.sec-title { font-size: 16px; font-weight: 700; margin: 14px 12px 8px; }
.empty { padding: 90px 20px; text-align: center; color: var(--text-3); }
.empty .empty-ico { font-size: 44px; display: block; margin-bottom: 10px; opacity: .5; }
.price { color: var(--red); font-weight: 700; }
.price .sym { font-size: 12px; }
.price .num { font-size: 18px; }
.ot-price { color: var(--text-3); font-size: 12px; text-decoration: line-through; margin-left: 5px; }
.tag { display: inline-block; font-size: 10px; color: var(--red); border: 1px solid var(--red); border-radius: 3px; padding: 0 3px; margin-right: 4px; vertical-align: middle; }
.btn {
  display: block; width: 100%; height: 44px; line-height: 44px; text-align: center;
  border-radius: 22px; background: var(--red); color: #fff; font-size: 15px; font-weight: 600;
}
.btn.ghost { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn.gray { background: #f2f3f5; color: var(--text-2); }
.btn.sm { width: auto; display: inline-block; height: 32px; line-height: 32px; padding: 0 16px; font-size: 13px; border-radius: 16px; }
.btn:disabled { opacity: .5; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellip2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.cell {
  display: flex; align-items: center; padding: 14px 12px; background: #fff;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.cell:last-child { border-bottom: none; }
.cell .cell-label { width: 82px; color: var(--text-2); flex-shrink: 0; }
.cell input, .cell textarea { flex: 1; width: 100%; }
.cell .arrow { color: var(--text-3); margin-left: 6px; }
.field { padding: 12px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.field label { width: 80px; color: var(--text-2); flex-shrink: 0; }
.field input, .field textarea { flex: 1; width: 100%; font-size: 14px; }
.field textarea { height: 60px; resize: none; padding-top: 3px; }

/* ---------- 首页 ---------- */
.home-header {
  display: flex; align-items: center; padding: 10px 12px; background: #fff;
  position: sticky; top: 0; z-index: 30;
}
.home-logo { width: 62px; height: 24px; object-fit: contain; margin-right: 8px; flex-shrink: 0; }
.home-logo-text { font-size: 15px; font-weight: 700; color: var(--red); margin-right: 8px; flex-shrink: 0; white-space: nowrap; }
.search-box {
  flex: 1; height: 32px; background: #f4f5f7; border-radius: 16px;
  display: flex; align-items: center; padding: 0 12px; color: var(--text-3); font-size: 13px;
}
.search-box .ico { margin-right: 6px; font-size: 14px; }
.banner { position: relative; margin: 10px 12px 0; border-radius: var(--radius); overflow: hidden; height: 150px; background: #eee; }
.banner-track { display: flex; height: 100%; transition: transform .35s ease; }
.banner-item { min-width: 100%; height: 100%; position: relative; }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.banner-ph-0 { background: linear-gradient(120deg, #f7b6c8, #e77fa0); }
.banner-ph-1 { background: linear-gradient(120deg, #86c79a, #3f8f63); }
.banner-ph-2 { background: linear-gradient(120deg, #a9c6f5, #5f8fd8); }
.banner-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.45)); color: #fff; font-size: 13px;
}
.banner-dots { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.banner-dots i.on { background: #fff; width: 14px; border-radius: 3px; }
.notice-bar {
  margin: 10px 12px 0; background: var(--red-light); color: var(--red);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; display: flex; align-items: center;
}
.notice-bar .ico { margin-right: 6px; }
.goods-grid { display: flex; flex-wrap: wrap; padding: 0 8px; gap: 8px; }
.g-card {
  width: calc(50% - 4px); background: #fff; border-radius: var(--radius);
  overflow: hidden; margin: 0 0 0;
}
.g-card .g-img { width: 100%; height: 0; padding-bottom: 100%; position: relative; background: #f7f7f7; }
.g-card .g-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-card .g-body { padding: 8px 10px 10px; }
.g-card .g-name { font-size: 13px; line-height: 1.4; height: 36px; }
.g-card .g-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.g-card .sold { font-size: 11px; color: var(--text-3); }
.add-cart {
  width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 17px; line-height: 22px; text-align: center; flex-shrink: 0;
}
.quick-cate { display: flex; justify-content: space-around; background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 14px 6px; }
.quick-cate div { text-align: center; font-size: 12px; color: var(--text-2); }
.quick-cate .qc-ico {
  width: 42px; height: 42px; line-height: 42px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--red-light); color: var(--red); font-size: 19px;
}

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 414px; height: var(--tabbar-h); background: #fff;
  display: flex; border-top: 1px solid var(--line); z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { flex: 1; text-align: center; color: var(--text-2); font-size: 11px; position: relative; }
.tabbar a .t-ico { display: block; font-size: 20px; line-height: 26px; margin-top: 4px; filter: grayscale(1) opacity(.55); }
.tabbar a.on { color: var(--red); font-weight: 600; }
.tabbar a.on .t-ico { filter: none; }
.tabbar .badge {
  position: absolute; top: 2px; left: 55%; min-width: 15px; height: 15px; line-height: 15px;
  background: var(--red); color: #fff; border-radius: 8px; font-size: 10px; padding: 0 4px;
}

/* ---------- 分类页 ---------- */
.cate-wrap { display: flex; height: calc(100vh - 44px - var(--tabbar-h)); }
.cate-left { width: 88px; background: #f2f3f5; overflow-y: auto; flex-shrink: 0; }
.cate-left div {
  padding: 16px 6px; text-align: center; font-size: 13px; color: var(--text-2); position: relative;
}
.cate-left div.on { background: #fff; color: var(--red); font-weight: 600; }
.cate-left div.on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; background: var(--red); border-radius: 2px;
}
.cate-right { flex: 1; background: #fff; overflow-y: auto; }
.sub-tabs { display: flex; align-items: center; gap: 8px; padding: 10px; overflow-x: auto; position: sticky; top: 0; background: #fff; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs span {
  flex-shrink: 0; padding: 6px 14px; border-radius: 15px; background: #f4f5f7;
  font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.sub-tabs a { flex-shrink: 0; }
.sub-tabs span.on { background: var(--red); color: #fff; font-weight: 600; }
.g-row { display: flex; padding: 10px; border-bottom: 1px solid var(--line); }
.g-row .gr-img { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; background: #f7f7f7; flex-shrink: 0; }
.g-row .gr-body { flex: 1; margin-left: 10px; display: flex; flex-direction: column; min-width: 0; }
.g-row .gr-name { font-size: 13px; line-height: 1.4; height: 36px; }
.g-row .gr-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.spec-btn {
  background: var(--red); color: #fff; font-size: 12px; border-radius: 14px; padding: 5px 12px;
  white-space: nowrap; flex-shrink: 0;
}
/* 分类页底部：购物车圆钮 + 结算条同处一个容器，避免重叠 */
.cate-float {
  position: fixed; bottom: calc(var(--tabbar-h) + 8px); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 414px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; z-index: 40; pointer-events: none;
}
.cate-float > * { pointer-events: auto; }
.cate-cart-fab {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 22px; line-height: 46px;
  text-align: center; box-shadow: 0 4px 12px rgba(246,44,44,.4); position: relative;
}
.cate-cart-fab .badge {
  position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; line-height: 16px;
  background: #ffb400; color: #fff; border-radius: 8px; font-size: 10px; padding: 0 4px;
}
.cate-settle {
  flex: 1; height: 46px; background: rgba(255,255,255,.97);
  border-radius: 23px; box-shadow: 0 2px 14px rgba(0,0,0,.12); display: flex; align-items: center;
  padding: 0 6px 0 14px;
}
.cate-settle .cs-price { flex: 1; }
.cate-settle .cs-btn {
  width: 100px; height: 36px; line-height: 36px; text-align: center; border-radius: 18px;
  background: #c8c9cc; color: #fff; font-size: 14px;
}
.cate-settle .cs-btn.on { background: var(--red); }

/* ---------- 商品详情 ---------- */
.detail-swiper { position: relative; height: 375px; max-height: 100vw; background: #fff; }
.detail-swiper .ds-track { display: flex; height: 100%; transition: transform .3s ease; }
.detail-swiper .ds-item { min-width: 100%; height: 100%; }
.detail-swiper .ds-item img { width: 100%; height: 100%; object-fit: contain; }
.detail-swiper .ds-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.35); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 10px;
}
.detail-swiper .ds-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.detail-swiper .ds-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.18); }
.detail-swiper .ds-dots i.on { background: var(--red); width: 16px; border-radius: 3px; }
.d-price-box { background: #fff; padding: 12px; }
.d-price-box .price .num { font-size: 24px; }
.d-price-box .d-name { font-size: 15px; line-height: 1.5; margin-top: 6px; }
.d-meta { background: #fff; padding: 4px 12px 12px; font-size: 12px; color: var(--text-3); display: flex; gap: 16px; }
.d-spec-entry { background: #fff; padding: 12px; display: flex; align-items: center; border-top: 8px solid var(--bg); }
.d-spec-entry .se-label { color: var(--text-2); width: 52px; }
.d-spec-entry .se-val { flex: 1; font-size: 13px; color: var(--text-2); }
.d-tabs { display: flex; background: #fff; margin-top: 8px; border-bottom: 1px solid var(--line); }
.d-tabs span { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: var(--text-2); }
.d-tabs span.on { color: var(--red); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); }
.d-content { background: #fff; padding: 0; font-size: 14px; line-height: 1.8; min-height: 200px; }
.d-content img { display: block; width: 100%; max-width: 100%; height: auto; }
.d-content p { padding: 0 12px; }
.d-shop { background: #fff; margin-top: 8px; padding: 12px; display: flex; align-items: center; }
.d-shop .shop-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--red-light); color: var(--red); text-align: center; line-height: 36px; font-size: 18px; }
.d-shop .shop-name { margin-left: 10px; font-size: 13px; }
.d-actionbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 414px;
  height: 56px; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 10px; z-index: 50;
}
.d-actionbar .ab-ico { width: 40px; text-align: center; font-size: 10px; color: var(--text-2); position: relative; }
.d-actionbar .ab-ico i { display: block; font-size: 19px; line-height: 20px; }
.d-actionbar .ab-btn { flex: 1; height: 38px; line-height: 38px; text-align: center; color: #fff; font-size: 14px; font-weight: 600; }
.d-actionbar .ab-btn.cart { background: #ff8c1a; border-radius: 19px 0 0 19px; margin-left: 6px; }
.d-actionbar .ab-btn.buy { background: var(--red); border-radius: 0 19px 19px 0; }
.d-actionbar .ab-btn.only { border-radius: 19px; margin-left: 6px; }
.detail-page { padding-bottom: 64px; }

/* ---------- 规格弹窗 ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: none;
}
.sheet-mask.show { display: block; }
.sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 414px; background: #fff; border-radius: 16px 16px 0 0;
  max-height: 80vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom);
}
.sheet-head { display: flex; align-items: flex-start; padding: 14px 14px 8px; }
.sheet-head .sh-img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; background: #f7f7f7; }
.sheet-head .sh-info { flex: 1; margin-left: 12px; }
.sheet-head .sh-info .price .num { font-size: 21px; }
.sheet-head .sh-info .sh-stock { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.sheet-close { position: absolute; right: 12px; top: 10px; font-size: 22px; color: var(--text-3); line-height: 1; }
.sheet-body { padding: 6px 14px; }
.spec-group-title { font-size: 13px; color: var(--text-2); margin: 10px 0 8px; }
.spec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list span {
  padding: 6px 14px; border-radius: 15px; background: #f4f5f7; font-size: 13px; color: var(--text-2);
  border: 1px solid transparent;
}
.spec-list span.on { background: var(--red-light); color: var(--red); border-color: var(--red); font-weight: 600; }
.qty-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stepper button { width: 30px; height: 28px; background: #fafafa; font-size: 15px; color: var(--text-2); }
.stepper input { width: 42px; text-align: center; font-size: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 28px; }
.sheet-foot { padding: 10px 14px 16px; }
.sheet-notice { text-align: center; color: var(--text-3); font-size: 12px; padding: 4px 0 10px; }

/* ---------- 购物车 ---------- */
.cart-item { display: flex; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; }
.ck {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid #ddd; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.ck.on { background: var(--red); border-color: var(--red); }
.cart-item .ci-img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; margin: 0 10px; background: #f7f7f7; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 13px; line-height: 1.4; height: 36px; }
.cart-item .ci-spec { font-size: 11px; color: var(--text-3); background: #f7f8fa; border-radius: 3px; padding: 2px 6px; display: inline-block; margin-top: 4px; }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cart-bar {
  position: fixed; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 414px; height: 52px; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 12px; z-index: 45;
}
.cart-bar .cb-all { display: flex; align-items: center; font-size: 13px; color: var(--text-2); }
.cart-bar .cb-all .ck { margin-right: 6px; }
.cart-bar .cb-total { flex: 1; text-align: right; margin-right: 12px; font-size: 13px; }
.cart-bar .cb-btn { width: 96px; height: 36px; line-height: 36px; text-align: center; border-radius: 18px; background: var(--red); color: #fff; font-size: 14px; }
.cart-bar .cb-btn.off { background: #c8c9cc; }
.page.with-cart-bar { padding-bottom: calc(var(--tabbar-h) + 52px + 8px); }

/* ---------- 我的 ---------- */
.user-head {
  background: linear-gradient(160deg, var(--red) 0%, #ff6b5b 100%);
  padding: 24px 16px 46px; color: #fff; position: relative;
}
.user-head .uh-row { display: flex; align-items: center; }
.user-head .uh-avatar {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden;
}
.user-head .uh-name { margin-left: 12px; font-size: 17px; font-weight: 600; }
.user-head .uh-tip { font-size: 12px; opacity: .85; margin-top: 4px; }
.user-stat {
  display: flex; background: #fff; margin: -32px 12px 0; border-radius: var(--radius);
  padding: 14px 0; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.user-stat div { flex: 1; text-align: center; }
.user-stat b { display: block; font-size: 17px; }
.user-stat span { font-size: 12px; color: var(--text-3); }
.order-cards { display: flex; background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 14px 0; }
.order-cards a { flex: 1; text-align: center; font-size: 12px; color: var(--text-2); position: relative; }
.order-cards a i { display: block; font-size: 22px; line-height: 26px; }
.order-cards .oc-badge {
  position: absolute; top: -2px; right: 22%; min-width: 14px; height: 14px; line-height: 14px;
  background: var(--red); color: #fff; border-radius: 7px; font-size: 10px; padding: 0 3px;
}
.grid-menu { background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 6px 0 12px; }
.grid-menu .gm-title { font-size: 15px; font-weight: 600; padding: 10px 12px 4px; }
.grid-menu .gm-list { display: flex; flex-wrap: wrap; }
.grid-menu .gm-list a { width: 25%; text-align: center; padding: 12px 0; font-size: 12px; color: var(--text-2); }
.grid-menu .gm-list i { display: block; font-size: 21px; line-height: 26px; color: var(--red); }
.agree-list { background: #fff; margin: 10px 12px; border-radius: var(--radius); overflow: hidden; }

/* ---------- 订单 ---------- */
.o-tabs { display: flex; background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.o-tabs a { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: var(--text-2); }
.o-tabs a.on { color: var(--red); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); }
.o-card { background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 12px; }
.o-card .oc-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.o-card .oc-head .st { color: var(--red); font-weight: 600; }
.o-card .oc-goods { padding: 10px 0; }
.o-card .oc-goods .og-row { display: flex; align-items: center; margin-bottom: 8px; }
.o-card .oc-goods img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; margin-right: 10px; background: #f7f7f7; }
.o-card .oc-goods .og-name { flex: 1; font-size: 13px; line-height: 1.35; height: 36px; }
.o-card .oc-total { text-align: right; font-size: 13px; padding-top: 6px; border-top: 1px solid var(--line); }
.o-card .oc-btns { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; }
.o-card .oc-btns button { border: 1px solid #ddd; border-radius: 15px; padding: 5px 14px; font-size: 13px; color: var(--text-2); }
.o-card .oc-btns button.primary { border-color: var(--red); color: var(--red); font-weight: 600; }
.addr-card { background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 12px; display: flex; align-items: center; }
.addr-card .ac-ico { font-size: 20px; color: var(--red); margin-right: 10px; }
.addr-card .ac-body { flex: 1; }
.addr-card .ac-line1 { font-size: 14px; font-weight: 600; }
.addr-card .ac-line1 span { font-weight: 400; color: var(--text-2); margin-left: 8px; font-size: 13px; }
.addr-card .ac-line2 { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.logi-box { background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 12px; }
.logi-box .lb-head { font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.logi-box .lb-head b { color: var(--text); }
.track { padding: 12px 0 0 4px; }
.track .tk {
  position: relative; padding-left: 20px; padding-bottom: 16px;
  border-left: 1px solid var(--line); margin-left: 4px;
}
.track .tk:last-child { border-left-color: transparent; padding-bottom: 0; }
.track .tk::before {
  content: ''; position: absolute; left: -4.5px; top: 3px; width: 8px; height: 8px;
  border-radius: 50%; background: #d8d9db;
}
.track .tk.on::before { background: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.track .tk .tk-desc { font-size: 13px; line-height: 1.5; }
.track .tk.on .tk-desc { color: var(--red); font-weight: 600; }
.track .tk .tk-time { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.track .tk .tk-tag { font-size: 11px; color: #fff; background: var(--red); border-radius: 3px; padding: 1px 5px; margin-right: 5px; }
.pay-sheet-opt { display: flex; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.pay-sheet-opt .po-ico { width: 26px; height: 26px; border-radius: 5px; text-align: center; line-height: 26px; color: #fff; font-size: 15px; }
.pay-sheet-opt .po-name { flex: 1; margin-left: 10px; font-size: 14px; }
.pay-sheet-opt .po-sub { font-size: 11px; color: var(--text-3); }
.pay-sheet-opt .ck { margin-left: 8px; }

/* ---------- 协议页 ---------- */
.rich { background: #fff; padding: 16px; font-size: 14px; line-height: 1.9; color: var(--text); }
.rich h3 { font-size: 17px; margin: 0 0 14px; }
.rich h4 { font-size: 15px; margin: 20px 0 8px; }
.rich p { margin: 8px 0; }
.rich ul, .rich ol { margin: 8px 0; padding-left: 22px; }
.rich img { max-width: 100%; border-radius: 4px; }
.rich .upd { color: var(--text-3); font-size: 12px; margin-bottom: 12px; }

/* ---------- toast / dialog ---------- */
.toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; z-index: 999; opacity: 0; pointer-events: none; transition: opacity .2s;
  max-width: 260px; text-align: center; line-height: 1.5;
}
.toast.show { opacity: 1; }
.dialog-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 900; display: none;
  align-items: center; justify-content: center;
}
.dialog-mask.show { display: flex; }
.dialog-box { width: 280px; background: #fff; border-radius: 12px; overflow: hidden; }
.dialog-title { font-size: 16px; font-weight: 600; text-align: center; padding: 18px 16px 8px; }
.dialog-body { padding: 0 16px 18px; font-size: 14px; color: var(--text-2); text-align: center; line-height: 1.6; }
.dialog-foot { display: flex; border-top: 1px solid var(--line); }
.dialog-btn { flex: 1; height: 46px; font-size: 15px; color: var(--text-2); }
.dialog-btn + .dialog-btn { border-left: 1px solid var(--line); }
.dialog-btn.primary { color: var(--red); font-weight: 600; }
.dialog-body input {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-top: 8px; text-align: left;
}
