/* ============================================================
   丽人妆 · 积分商城 H5  v0.3
   视觉对齐原小程序：粉色主题 / 积分计价 / 白卡浅灰底
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --pink: #ff4d6d;            /* 主粉色（价格/选中/按钮） */
  --pink-deep: #f02e58;
  --pink-soft: #fff0f3;
  --red: #fa5151;             /* 角标红 */
  --khaki-1: #bc9f76;         /* 我的页头棕卡其 */
  --khaki-2: #a5854f;
  --green: #07c160;           /* 微信确认绿 */
  --bg: #f4f5f6;
  --card: #ffffff;
  --line: #f0f0f0;
  --t1: #333333;
  --t2: #666666;
  --t3: #999999;
  --price-old: #b2b2b2;
  --radius: 8px;
  --tabbar-h: 50px;
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 布局骨架 ---------- */
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
.hide { display: none !important; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 44px; display: flex; align-items: center;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 12px; gap: 8px;
}
.topbar .back, .topbar .home-ic {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--t1); cursor: pointer; flex: none;
}
.topbar .back:active, .topbar .home-ic:active { opacity: .6; }
.topbar .title { flex: 1; text-align: center; font-size: 16px; font-weight: 500; color: var(--t1); }
.topbar .title-s { font-size: 16px; }
.topbar .ph { width: 32px; flex: none; }

/* 搜索框 */
.searchbar { padding: 8px 12px; background: #fff; }
.searchbar input {
  width: 100%; height: 34px; border: none; outline: none;
  background: #f5f5f7; border-radius: 17px;
  font-size: 13px; color: var(--t1); padding: 0 14px 0 36px;
}
.searchbar .sicon { position: relative; }
.searchbar .sicon svg { position: absolute; left: 14px; top: 9px; color: #b8b8b8; }
.searchbar input::placeholder { color: #b8b8b8; }

/* 主内容 */
#view {
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
  min-height: calc(100vh - 44px);
  animation: pageIn .22s ease;
}
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 底部 Tabbar ---------- */
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff; border-top: 1px solid var(--line);
  display: flex;
}
#tabbar .titem {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #909090; font-size: 10px; cursor: pointer; position: relative; text-decoration: none;
}
#tabbar .titem svg { width: 24px; height: 24px; }
#tabbar .titem.on { color: var(--pink); }
#tabbar .titem:active { opacity: .7; }
#tabbar .badge {
  position: absolute; top: 2px; right: calc(50% - 22px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--pink); color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}

/* ---------- 首页 ---------- */
/* 轮播 */
.carousel { position: relative; width: 100%; overflow: hidden; background: #fff; }
.carousel .track { display: flex; transition: transform .45s cubic-bezier(.33,.8,.33,1); }
.carousel .slide { flex: none; width: 100%; }
.carousel .slide img { width: 100%; height: auto; display: block; aspect-ratio: 2/1; object-fit: cover; }
.carousel .dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.carousel .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .3s; }
.carousel .dots i.on { width: 16px; background: #fff; }

/* 快捷分类横滑 */
.quickcats { background: #fff; padding: 12px 8px 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.quickcats::-webkit-scrollbar { display: none; }
.quickcats .qc {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 64px; cursor: pointer; text-decoration: none;
}
.quickcats .qc .qimg {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #f6f6f6;
}
.quickcats .qc .qimg img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.quickcats .qc span { font-size: 11px; color: var(--t2); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分区标题 */
.sect { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px 10px; }
.sect .ln { flex: 1; height: 1px; background: #e8e8e8; max-width: 90px; }
.sect .tt { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; color: var(--t1); }
.sect .tt svg { color: var(--pink); }
.sect .more { font-size: 12px; color: var(--t3); }

/* 彩色小组块（对齐截图2的「发现/积分好物」标签位） */
.chipsrow { display: flex; gap: 8px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.chipsrow::-webkit-scrollbar { display: none; }
.chipsrow .chip {
  flex: none; padding: 7px 14px; border-radius: 16px; font-size: 13px; font-weight: 500;
  color: #fff; cursor: pointer;
}
.chipsrow .chip.c1 { background: linear-gradient(135deg, #ff7a9c, #ff4d6d); }
.chipsrow .chip.c2 { background: linear-gradient(135deg, #ffc24d, #ff9a2e); }
.chipsrow .chip.c3 { background: linear-gradient(135deg, #6ec9ff, #3f8cff); }
.chipsrow .chip.c4 { background: linear-gradient(135deg, #7ee0b8, #2fc48a); }

/* 双列商品网格 */
.glist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; }
.gcard {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative; animation: cardIn .3s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gcard:active { transform: scale(.98); }
.gcard .gimg { position: relative; width: 100%; aspect-ratio: 1/1; background: #f6f6f6; overflow: hidden; }
.gcard .gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard .gimg img.fade { opacity: 0; transition: opacity .3s; }
.gcard .gimg img.fade.in { opacity: 1; }
.gcard .corner {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: linear-gradient(135deg, #ff6a45, var(--red));
  color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 0 0 8px 0;
}
.gcard .gbody { padding: 8px 10px 10px; }
.gcard .gname {
  font-size: 13px; color: var(--t1); line-height: 1.45; height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gcard .gsold { font-size: 11px; color: var(--t3); margin-top: 3px; }
.gcard .grow { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.intg { color: var(--pink); font-weight: 700; line-height: 1; }
.intg b { font-size: 18px; letter-spacing: -.3px; }
.intg i { font-style: normal; font-size: 12px; font-weight: 500; margin-left: 2px; }
.intg.small b { font-size: 15px; }
.buybtn {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(255, 77, 109, .35);
}
.buybtn svg { width: 14px; height: 14px; }
.buybtn:active { transform: scale(.9); }
.gcard .soldout {
  position: absolute; inset: 0; z-index: 3; background: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); font-size: 13px; letter-spacing: 2px;
}

/* ---------- 分类页 ---------- */
.catwrap { display: flex; min-height: calc(100vh - 44px - 86px); background: #fff; }
.catside { width: 96px; flex: none; background: #f6f6f8; overflow-y: auto; max-height: calc(100vh - 44px - 86px); }
.catside .citem {
  padding: 15px 6px; text-align: center; font-size: 13px; color: var(--t2);
  cursor: pointer; position: relative; line-height: 1.4; word-break: break-all;
}
.catside .citem.on { background: var(--pink); color: #fff; font-weight: 600; }
.catmain { flex: 1; overflow-y: auto; max-height: calc(100vh - 44px - 86px); padding-bottom: 16px; }
.catbanner { position: relative; margin: 10px; border-radius: var(--radius); overflow: hidden; background: #f2f2f4; height: 88px; }
.catbanner .cbimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.catbanner .cbname {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 19px; font-weight: 700; color: #fff; letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.catbanner .cbmask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 60%); }

/* 子分类 chips */
.subchips { display: flex; gap: 8px; padding: 4px 12px 10px; overflow-x: auto; scrollbar-width: none; }
.subchips::-webkit-scrollbar { display: none; }
.subchips .sc {
  flex: none; padding: 5px 13px; border-radius: 14px; font-size: 12px;
  background: #f4f4f6; color: var(--t2); cursor: pointer;
}
.subchips .sc.on { background: var(--pink-soft); color: var(--pink); font-weight: 600; }

/* 横向商品卡（分类页/列表页） */
.vlist { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.vcard {
  display: flex; gap: 10px; background: var(--card); border-radius: var(--radius);
  padding: 10px; cursor: pointer; animation: cardIn .3s ease both;
}
.vcard:active { background: #fafafa; }
.vcard .vimg { width: 96px; height: 96px; flex: none; border-radius: 6px; background: #f6f6f6; overflow: hidden; }
.vcard .vimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .vbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vcard .vname { font-size: 14px; color: var(--t1); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .vsold { font-size: 11px; color: var(--t3); margin-top: auto; }
.vcard .vrow { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 4px; }

/* ---------- 商品详情 ---------- */
.gallery { position: relative; background: #fff; }
.gallery .stage { width: 100%; aspect-ratio: 1/1; background: #f6f6f6; overflow: hidden; }
.gallery .stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
.gallery .thumbs::-webkit-scrollbar { display: none; }
.gallery .thumbs img {
  width: 52px; height: 52px; border-radius: 6px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; opacity: .75;
}
.gallery .thumbs img.on { border-color: var(--pink); opacity: 1; }
.gallery .count {
  position: absolute; right: 12px; bottom: 76px; background: rgba(0,0,0,.45); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
}
.pd-info { background: #fff; padding: 14px 14px 16px; margin-top: 8px; }
.pd-intg { display: flex; align-items: baseline; gap: 8px; }
.pd-intg .intg b { font-size: 26px; }
.pd-intg .mkt { font-size: 12px; color: var(--price-old); text-decoration: line-through; }
.pd-name { font-size: 16px; font-weight: 600; color: var(--t1); line-height: 1.5; margin-top: 8px; }
.pd-sub { font-size: 12px; color: var(--t3); margin-top: 4px; }
.pd-meta { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--t3); }
.pd-sec { background: #fff; margin-top: 8px; padding: 14px; }
.pd-sec .pt { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pd-detail { font-size: 14px; color: var(--t2); line-height: 1.7; word-break: break-all; }
.pd-detail img { max-width: 100%; height: auto; display: block; }
.pd-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
}
.pd-bar .ico { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--t2); font-size: 10px; cursor: pointer; }
.pd-bar .ico svg { width: 22px; height: 22px; }
.pd-bar .btn {
  flex: 1; height: 40px; border: none; border-radius: 20px; font-size: 14px; font-weight: 600;
  color: #fff; cursor: pointer;
}
.pd-bar .btn:active { opacity: .85; }
.pd-bar .btn.cart { background: linear-gradient(135deg, #ffa04d, #ff7a2e); }
.pd-bar .btn.buy { background: linear-gradient(135deg, #ff7a9c, var(--pink)); }
.qty { display: flex; align-items: center; gap: 14px; background: #f5f5f7; border-radius: 16px; padding: 5px 14px; }
.qty button { border: none; background: none; font-size: 17px; color: var(--t1); cursor: pointer; padding: 0 2px; }
.qty button:disabled { color: #ccc; }
.qty span { font-size: 14px; font-weight: 600; min-width: 18px; text-align: center; }

/* ---------- 购物车 ---------- */
.cart-tip {
  background: #fff8e6; color: #b8860b; font-size: 12px; padding: 7px 12px;
}
.shoprow {
  display: flex; align-items: center; gap: 8px; background: #fff;
  padding: 12px 12px 4px; font-size: 14px; font-weight: 600;
}
.shoprow svg { color: var(--pink); }
.citem { background: #fff; padding: 12px; display: flex; gap: 10px; border-bottom: 1px solid var(--line); animation: cardIn .25s ease both; }
.citem:last-of-type { border-bottom: none; }
.ckbox {
  width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 32px;
  border: 1.5px solid #ccc; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all .15s;
}
.ckbox.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.ckbox svg { width: 12px; height: 12px; }
.citem .cimg { width: 80px; height: 80px; border-radius: 6px; background: #f6f6f6; overflow: hidden; flex: none; }
.citem .cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.citem .cbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.citem .cname { font-size: 13px; color: var(--t1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem .cspec { font-size: 11px; color: var(--t3); background: #f5f5f7; border-radius: 4px; padding: 2px 8px; margin-top: 4px; align-self: flex-start; }
.citem .crow { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper .stnum { min-width: 30px; text-align: center; font-size: 13px; }
.stepper button {
  width: 24px; height: 24px; border-radius: 50%; border: none; background: #f5f5f7;
  font-size: 14px; color: var(--t2); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.stepper button.plus { background: var(--pink); color: #fff; }
.stepper button:disabled { background: #f0f0f0; color: #ccc; }
.del-x { color: #c8c8c8; font-size: 15px; cursor: pointer; padding: 2px 4px; }

.cartbar {
  position: fixed; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 55;
  background: #fff; border-top: 1px solid var(--line);
  height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.cartbar .ckbox { margin-top: 0; }
.cartbar .alltxt { font-size: 12px; color: var(--t2); }
.cartbar .sum { flex: 1; text-align: right; font-size: 13px; color: var(--t1); }
.cartbar .sum .intg b { font-size: 17px; }
.cartbar .gobtn {
  width: 96px; height: 34px; border: none; border-radius: 17px; color: #fff;
  font-size: 13px; font-weight: 600; background: linear-gradient(135deg, #ff7a9c, var(--pink)); cursor: pointer;
}
.cartbar .gobtn:disabled { background: #d8d8d8; }

/* 推荐分隔 */
.like-sep { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0 4px; color: var(--t3); font-size: 13px; }
.like-sep .ln { width: 60px; height: 1px; background: #e5e5e5; }
.like-sep svg { color: #ffb3c1; }

/* ---------- 结算 ---------- */
.addr-card { background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.addr-card .aic { color: var(--pink); flex: none; }
.addr-card .abody { flex: 1; min-width: 0; }
.addr-card .an { font-size: 14px; font-weight: 600; }
.addr-card .ad { font-size: 12px; color: var(--t3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-card .arrow { color: #ccc; flex: none; }
.ord-goods { background: #fff; margin: 0 12px; border-radius: var(--radius); padding: 4px 14px; }
.ord-goods .og { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ord-goods .og:last-child { border-bottom: none; }
.ord-goods .og img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: #f6f6f6; }
.ord-goods .ogb { flex: 1; min-width: 0; }
.ord-goods .ogn { font-size: 13px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-goods .ogq { font-size: 11px; color: var(--t3); margin-top: 3px; }
.paycard { background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 4px 14px; }
.payrow { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 13px; color: var(--t2); border-bottom: 1px solid var(--line); cursor: pointer; }
.payrow:last-child { border-bottom: none; }
.payrow .pv { color: var(--t1); }
.payrow .pv.neg { color: var(--pink); }
.payrow.total { font-size: 14px; font-weight: 600; color: var(--t1); }
.paybtn-wrap { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; z-index: 60; }
.paybtn-wrap .pl { flex: 1; font-size: 13px; color: var(--t2); }
.paybtn-wrap .paybtn { width: 130px; height: 40px; border: none; border-radius: 20px; background: linear-gradient(135deg, #ff7a9c, var(--pink)); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.paybtn-wrap .paybtn:disabled { background: #d8d8d8; }
.paybtn-wrap .paybtn:active { opacity: .85; }

/* ---------- 我的 ---------- */
.me-head {
  background: linear-gradient(160deg, var(--khaki-1), var(--khaki-2));
  padding: 26px 16px 16px; color: #fff;
}
.me-row { display: flex; align-items: center; gap: 12px; }
.me-ava { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: #fff; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.me-ava img { width: 100%; height: 100%; object-fit: cover; }
.me-name { flex: 1; font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.addr-pill {
  background: rgba(255,255,255,.92); color: var(--khaki-2); font-size: 12px;
  padding: 6px 12px; border-radius: 15px; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.me-stats { display: flex; margin-top: 16px; font-size: 13px; }
.me-stats .ms { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.me-stats .ms:first-child { border-right: 1px solid rgba(255,255,255,.25); }
.me-stats .ms:active { opacity: .75; }
.me-stats b { font-size: 15px; }
.ord-card { background: #fff; margin: 12px 12px 0; border-radius: 10px; padding: 14px; }
.ord-card .oc-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.ord-card .oc-head .more { font-size: 12px; color: var(--t3); font-weight: 400; cursor: pointer; display: flex; align-items: center; gap: 2px; }
.ord-grid { display: flex; }
.ord-grid .og2 { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--t2); cursor: pointer; position: relative; }
.ord-grid .og2 svg { width: 24px; height: 24px; color: #ff8f4d; }
.ord-grid .og2:active { opacity: .7; }
.ord-grid .og2 .bdg { position: absolute; top: -4px; right: calc(50% - 18px); min-width: 15px; height: 15px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; line-height: 15px; padding: 0 4px; text-align: center; }
.int-card { background: #fff; margin: 12px 12px 0; border-radius: 10px; padding: 14px; display: flex; align-items: center; cursor: pointer; }
.int-card .ic-b { flex: 1; }
.int-card .ic-t { font-size: 12px; color: var(--t3); }
.int-card .ic-v { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.5px; }
.int-card .ic-badge { color: var(--pink); }
.me-banner { margin: 12px; border-radius: 10px; overflow: hidden; }
.me-banner img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.mlist { background: #fff; margin: 12px; border-radius: 10px; overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.mrow:last-child { border-bottom: none; }
.mrow:active { background: #fafafa; }
.mrow svg { color: var(--pink); }
.mrow .mt { flex: 1; }
.mrow .mv { color: var(--t3); font-size: 12px; }
.mrow .arrow { color: #d5d5d5; }

/* ---------- 订单页 ---------- */
.ordtabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 44px; z-index: 40; }
.ordtabs .ot { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; color: var(--t2); cursor: pointer; position: relative; }
.ordtabs .ot.on { color: var(--pink); font-weight: 600; }
.ordtabs .ot.on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 28px; height: 2.5px; border-radius: 2px; background: var(--pink); }
.ocard { background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.ocard .ohead { display: flex; justify-content: space-between; font-size: 12px; color: var(--t3); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ocard .ohead .st { color: var(--pink); font-weight: 600; }
.ocard .obody { display: flex; gap: 10px; padding: 10px 0; align-items: center; }
.ocard .obody img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; background: #f6f6f6; }
.ocard .oitems { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ocard .oit { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ocard .oit .n { color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard .ofoot { display: flex; justify-content: flex-end; align-items: baseline; gap: 4px; font-size: 12px; color: var(--t2); padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- 收藏/足迹/积分 ---------- */
.segtabs { display: flex; background: #fff; padding: 10px 12px; gap: 8px; }
.segtabs .seg {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 18px; font-size: 13px;
  background: #f4f4f6; color: var(--t2); cursor: pointer;
}
.segtabs .seg.on { background: var(--pink); color: #fff; font-weight: 600; }
.timechips { display: flex; gap: 8px; padding: 10px 12px; background: #fff; overflow-x: auto; scrollbar-width: none; }
.timechips::-webkit-scrollbar { display: none; }
.timechips .tc { flex: none; padding: 6px 14px; border-radius: 15px; font-size: 12px; background: #f4f4f6; color: var(--t2); cursor: pointer; }
.timechips .tc.on { background: var(--pink); color: #fff; }
.daytitle { padding: 14px 14px 6px; font-size: 13px; color: var(--t3); }
.trackcard { background: #fff; margin: 0 12px 10px; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.trackcard img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.trackcard .tb { padding: 10px 12px 12px; }
.trackcard .tn { font-size: 14px; color: var(--t1); }
.trackcard .tp { font-size: 13px; color: var(--red); margin-top: 4px; font-weight: 600; }
.bal-head { background: linear-gradient(160deg, var(--khaki-1), var(--khaki-2)); padding: 24px 16px 22px; text-align: center; color: #fff; }
.bal-head .bt { font-size: 13px; opacity: .85; }
.bal-head .bv { font-size: 40px; font-weight: 700; margin-top: 8px; letter-spacing: -.5px; }
.bal-head .bu { display: inline-block; margin-top: 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; padding: 5px 22px; font-size: 13px; cursor: pointer; }
.logrow { background: #fff; margin: 10px 12px 0; border-radius: var(--radius); padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
.logrow .lb { flex: 1; min-width: 0; }
.logrow .lt { font-size: 14px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logrow .ld { font-size: 11px; color: var(--t3); margin-top: 3px; }
.logrow .lv { font-size: 15px; font-weight: 700; }
.logrow .lv.plus { color: var(--green); }
.logrow .lv.minus { color: var(--pink); }

/* ---------- 空状态 ---------- */
.empty { padding: 70px 0; text-align: center; color: var(--t3); }
.empty svg { width: 90px; height: 90px; color: #dcdcdc; margin-bottom: 14px; }
.empty .et { font-size: 13px; }

/* ---------- 抽屉 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px; background: #fff; z-index: 81;
  border-radius: 14px 14px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp .25s cubic-bezier(.33,.8,.33,1);
}
@keyframes sheetUp { from { transform: translate(-50%, 60%); } to { transform: translate(-50%, 0); } }
.sheet .sh-t { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.sheet .sh-x { color: #b5b5b5; cursor: pointer; font-size: 18px; padding: 2px 6px; }
.sheet input {
  width: 100%; height: 40px; border: 1px solid #e8e8e8; border-radius: 8px;
  font-size: 14px; padding: 0 12px; outline: none; margin-bottom: 10px;
}
.sheet input:focus { border-color: var(--pink); }
.sheet .confirm {
  width: 100%; height: 42px; border: none; border-radius: 21px; color: #fff;
  font-size: 15px; font-weight: 600; background: linear-gradient(135deg, #ff7a9c, var(--pink)); cursor: pointer;
}
.cp-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #f0f0f0; border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.cp-item.on { border-color: var(--pink); background: var(--pink-soft); }
.cp-item .cp-l { text-align: center; color: var(--pink); flex: none; min-width: 64px; }
.cp-item .cp-l b { font-size: 22px; }
.cp-item .cp-l i { font-style: normal; font-size: 11px; }
.cp-item .cp-b { flex: 1; }
.cp-item .cp-n { font-size: 14px; font-weight: 600; }
.cp-item .cp-d { font-size: 11px; color: var(--t3); margin-top: 3px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.9);
  background: rgba(17,17,17,.82); color: #fff; font-size: 14px;
  padding: 12px 22px; border-radius: 10px; z-index: 99; pointer-events: none;
  opacity: 0; transition: all .22s;
}
#toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 飞入购物车小球 */
.flyball {
  position: fixed; z-index: 98; width: 16px; height: 16px; border-radius: 50%;
  background: var(--pink); pointer-events: none; transition: all .55s cubic-bezier(.3,-.1,.6,1);
}

/* 加载骨架 */
.skel { background: linear-gradient(90deg, #f2f2f2 25%, #fafafa 50%, #f2f2f2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   线上版补充（v1.0）：加载态 / 订单取消按钮 / 桌面宽度约束
   ============================================================ */
.boot-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 90px 0 110px; color: #b8b8b8; font-size: 13px;
  background: #fff; min-height: 46vh;
}
.boot-loading .spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #f0d6dc; border-top-color: var(--pink);
  animation: lrz-spin .8s linear infinite;
}
@keyframes lrz-spin { to { transform: rotate(360deg); } }

.ocard .ofoot { align-items: center; }
.ocancel {
  font-size: 12px; padding: 5px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--t2); font-family: inherit; cursor: pointer;
}
.ocancel:active { background: #f6f6f6; }
