/* ===== H5 商城样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.page { padding-bottom: 60px; min-height: 100vh; }
.page-header { position: sticky; top: 0; z-index: 10; background: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.page-header .back { font-size: 20px; padding: 0 4px; color: #333; }
.page-header h1 { flex: 1; font-size: 16px; text-align: center; }
.page-header .empty { width: 28px; }
.page-body { padding: 12px; }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 99; padding-bottom: env(safe-area-inset-bottom); }
.tab-item { flex: 1; text-align: center; padding: 6px 0 8px; color: #999; font-size: 11px; }
.tab-item.active { color: #e64340; }
.tab-icon { display: block; font-size: 20px; line-height: 24px; }
.badge { position: absolute; background: #f56c6c; color: #fff; border-radius: 8px; font-size: 10px; padding: 0 4px; transform: translate(4px, -2px); }

/* 轮播 */
.banner { width: 100%; }
.banner a { display: block; }
.banner .slide { width: 100%; height: 150px; background: linear-gradient(135deg,#ff9a9e,#fad0c4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.banner img { width: 100%; height: 150px; object-fit: cover; }

/* 金刚区导航 */
.nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #fff; padding: 12px 4px; }
.nav-item { text-align: center; padding: 6px 0; }
.nav-item .icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#ff9a9e,#fecfef); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: 16px; }
.nav-item span { font-size: 12px; color: #333; }

/* 商品 */
.section { background: #fff; margin: 10px 0; padding: 12px; }
.section-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ""; width: 4px; height: 14px; background: #e64340; border-radius: 2px; }
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goods-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.goods-card .cover { width: 100%; height: 150px; background: #f0f0f0; object-fit: cover; }
.goods-card .info { padding: 8px 10px 10px; }
.goods-card .name { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goods-card .price { color: #e64340; font-weight: 700; font-size: 16px; margin-top: 6px; }
.goods-card .price small { font-size: 11px; font-weight: 400; }
.goods-card .sales { color: #999; font-size: 11px; margin-left: 6px; }

/* 商品详情 */
.goods-detail-cover { width: 100%; height: 320px; background: #f0f0f0; object-fit: cover; }
.goods-detail-info { background: #fff; padding: 14px; }
.goods-detail-price { color: #e64340; font-size: 24px; font-weight: 700; }
.goods-detail-price small { font-size: 13px; }
.goods-detail-name { font-size: 16px; font-weight: 600; margin-top: 6px; line-height: 1.4; }
.goods-detail-sub { color: #999; font-size: 12px; margin-top: 4px; }
.sku-bar { background: #fff; padding: 12px 14px; margin-top: 10px; }
.sku-bar .label { font-size: 13px; color: #666; margin-bottom: 8px; }
.sku-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-option { border: 1px solid #ddd; border-radius: 16px; padding: 5px 14px; font-size: 13px; }
.sku-option.active { border-color: #e64340; color: #e64340; background: #fff5f5; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 99; }
.buy-bar .btn-cart, .buy-bar .btn-buy { flex: 1; padding: 13px; text-align: center; color: #fff; font-size: 15px; border: none; }
.buy-bar .btn-cart { background: #ffb800; }
.buy-bar .btn-buy { background: #e64340; }

/* 购物车 */
.cart-item { display: flex; background: #fff; margin-bottom: 10px; padding: 12px; border-radius: 8px; align-items: center; gap: 10px; }
.cart-item .check { width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 50%; flex-shrink: 0; }
.cart-item .check.on { background: #e64340; border-color: #e64340; position: relative; }
.cart-item .check.on::after { content: "✓"; color: #fff; font-size: 12px; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cart-item img { width: 76px; height: 76px; border-radius: 6px; object-fit: cover; background: #f0f0f0; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .spec { color: #999; font-size: 11px; margin: 4px 0; }
.cart-item .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.cart-item .price { color: #e64340; font-weight: 600; }
.num-stepper { display: flex; align-items: center; border: 1px solid #eee; border-radius: 4px; }
.num-stepper button { width: 26px; height: 26px; border: none; background: #f7f7f7; font-size: 15px; }
.num-stepper span { width: 34px; text-align: center; font-size: 13px; }

/* 结算条 */
.checkout-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; align-items: center; padding: 10px 14px; border-top: 1px solid #eee; z-index: 99; }
.checkout-bar .total { flex: 1; font-size: 13px; color: #666; }
.checkout-bar .total b { color: #e64340; font-size: 18px; }
.checkout-bar .btn { background: #e64340; color: #fff; border: none; border-radius: 20px; padding: 10px 28px; font-size: 14px; }

/* 按钮 */
.btn { border: none; border-radius: 6px; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.btn-primary { background: #e64340; color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-plain { background: #fff; border: 1px solid #ddd; color: #666; }
.btn-wx { background: #07c160; color: #fff; margin-top: 10px; }
.btn-wx:active { background: #06ad56; }
.divider-line { display: flex; align-items: center; color: #999; font-size: 12px; margin: 14px 0 10px; }
.divider-line::before, .divider-line::after { content: ''; flex: 1; height: 1px; background: #eee; }
.divider-line span { padding: 0 10px; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #e5e5e5; border-radius: 6px; padding: 11px 12px; font-size: 14px; outline: none; background: #fff; }
.field input:focus, .field textarea:focus { border-color: #e64340; }

/* 会员中心 */
.user-page { background: #f7f3ea; }
.member-card { position: relative; margin: 12px 12px 0; padding: 20px 18px; border-radius: 16px; background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; overflow: hidden; box-shadow: 0 6px 16px rgba(214,162,48,.28); }
.member-card::before, .member-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.28); pointer-events: none; }
.member-card::before { width: 130px; height: 130px; right: -34px; top: -46px; }
.member-card::after { width: 90px; height: 90px; right: 44px; bottom: -34px; }
.mc-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.member-card .avatar { width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(255,255,255,.92); background: #fff; object-fit: cover; flex-shrink: 0; }
.user-meta { flex: 1; min-width: 0; }
.nickname { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.level-tag { font-size: 11px; color: #8a5a00; background: rgba(255,255,255,.8); border-radius: 10px; padding: 1px 8px; font-weight: 600; }
.phone { font-size: 12px; color: rgba(107,74,18,.78); margin-top: 6px; }
.mc-slogan { position: relative; z-index: 1; margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(139,94,20,.4); font-size: 12px; letter-spacing: 1px; }
.asset-bar { display: flex; margin: -18px 12px 0; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.06); position: relative; z-index: 2; overflow: hidden; }
.asset { flex: 1; text-align: center; padding: 14px 4px 12px; position: relative; }
.asset + .asset::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #f0e8d8; }
.asset b { display: block; font-size: 18px; font-weight: 700; color: #d49b1f; }
.asset span { display: block; font-size: 11px; color: #999; margin-top: 4px; }
.user-page .section { margin: 12px; border-radius: 14px; }
.user-page .section-title::before { background: #d49b1f; }
.order-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.o-item { text-align: center; padding: 6px 2px; }
.o-icon { display: block; width: 40px; height: 40px; line-height: 40px; margin: 0 auto 6px; border-radius: 12px; background: #fdf3dc; font-size: 18px; }
.o-item span:last-child { font-size: 11px; color: #666; }
.fn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px; }
.fn-item { text-align: center; }
.fn-icon { display: block; width: 48px; height: 48px; line-height: 48px; margin: 0 auto 6px; border-radius: 50%; background: linear-gradient(135deg,#fff6e0,#ffe9b0); font-size: 22px; box-shadow: 0 2px 6px rgba(214,162,48,.2); }
.fn-item span:last-child { font-size: 12px; color: #555; }
.logout-btn { margin: 4px 12px 16px; background: #fff; border-radius: 14px; text-align: center; padding: 13px; font-size: 14px; color: #c0392b; }

/* 订单 */
.order-card { background: #fff; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.order-head { display: flex; justify-content: space-between; padding: 10px 12px; font-size: 12px; color: #666; border-bottom: 1px solid #f5f5f5; }
.order-head .status { color: #e64340; }
.order-item { display: flex; padding: 10px 12px; gap: 10px; }
.order-item img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: #f0f0f0; }
.order-item .info { flex: 1; min-width: 0; }
.order-item .name { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-item .spec { color: #999; font-size: 11px; margin: 3px 0; }
.order-item .price { color: #e64340; font-size: 13px; }
.order-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #f5f5f5; font-size: 13px; }
.order-foot .btn { padding: 6px 14px; font-size: 12px; border-radius: 14px; }
/* 订单卡片头尾（与会员中心风格统一） */
.order-card-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 12px; color: #666; border-bottom: 1px solid #f5f5f5; }
.order-card-head b { color: #e64340; font-weight: 600; }
.order-card-foot { display: flex; justify-content: flex-end; align-items: center; padding: 10px 12px; border-top: 1px solid #f5f5f5; font-size: 13px; color: #666; }
.order-card-foot .price { color: #e64340; font-weight: 700; }

/* 订单详情 */
.status-bar { padding: 14px 16px; font-size: 15px; font-weight: 600; color: #6b4a12; }
.amount-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; font-size: 13px; color: #666; }
.amount-row b { color: #333; font-weight: 500; }
.amount-row .coupon { color: #e64340; }
.amount-row.total { border-top: 1px solid #f5efe0; margin-top: 6px; padding-top: 10px; }
.amount-row.total b.price { color: #e64340; font-size: 16px; }
.log-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 12px; color: #666; }
.log-item small { color: #999; white-space: nowrap; }

/* 会员中心主题（sub-page）下的订单页 */
.sub-page .order-card { border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sub-page .order-card-head { border-bottom-color: #f5efe0; }
.sub-page .order-card-head b { color: #d49b1f; }
.sub-page .order-card-foot { border-top-color: #f5efe0; }
.sub-page .order-card-foot .price { color: #d49b1f; }
.sub-page .status-bar { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; border-radius: 14px; margin: 0 12px 10px; }
.sub-page .amount-row { color: #8a7440; }
.sub-page .amount-row b { color: #4a3a12; }
.sub-page .amount-row.total { border-top-color: #f0e6cd; }
.sub-page .amount-row.total b.price { color: #c0392b; }
.sub-page .log-item { color: #8a7440; }

/* 订单 tab */
.tabs { display: flex; background: #fff; position: sticky; top: 44px; z-index: 10; overflow-x: auto; }
.tabs .tab { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; color: #666; white-space: nowrap; }
.tabs .tab.active { color: #e64340; font-weight: 600; border-bottom: 2px solid #e64340; }

/* 分销 */
.dist-head { background: linear-gradient(135deg,#7c3aed,#a78bfa); color: #fff; padding: 20px 16px; }
.dist-head .num { font-size: 26px; font-weight: 700; }
.dist-head .lab { font-size: 12px; opacity: .85; }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.rank-card { background: #fff; border-radius: 8px; padding: 12px; text-align: center; }
.rank-card .num { font-size: 16px; font-weight: 700; color: #7c3aed; }
.rank-card .lab { font-size: 11px; color: #999; margin-top: 4px; }

/* 优惠券 */
.coupon { display: flex; background: #fff; margin-bottom: 10px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.coupon .left { width: 96px; background: #e64340; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; }
.coupon .left b { font-size: 20px; }
.coupon .left small { font-size: 11px; }
.coupon .right { flex: 1; padding: 12px; }
.coupon .right .name { font-size: 14px; font-weight: 600; }
.coupon .right .cond { font-size: 12px; color: #999; margin-top: 4px; }
.coupon .right .time { font-size: 11px; color: #bbb; margin-top: 4px; }

/* 空状态 */
.empty { text-align: center; color: #999; padding: 60px 20px; font-size: 14px; }
.empty .icon { font-size: 48px; display: block; margin-bottom: 12px; opacity: .4; }

/* Toast */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 999; display: none; max-width: 80%; text-align: center; }
.toast.show { display: block; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 加载 */
.loading { text-align: center; color: #999; padding: 30px; }
.address-item { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.address-item .name { font-weight: 600; }
.address-item .phone { color: #666; margin-left: 10px; }
.address-item .addr { color: #666; font-size: 13px; margin-top: 6px; line-height: 1.5; }
.address-item .addr-ops { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #ececec; }
.address-item .addr-ops .ops-btn { display: inline-flex; align-items: center; gap: 3px; padding: 6px 16px; border-radius: 16px; font-size: 13px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: opacity .15s, transform .1s; }
.address-item .addr-ops .ops-btn:active { transform: scale(.95); opacity: .85; }
.address-item .addr-ops .ops-edit { background: #fdf3dc; color: #8a5a00; }
.address-item .addr-ops .ops-del { background: #fdecec; color: #d43a3a; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; }
.rich-text { line-height: 1.8; font-size: 14px; }
.rich-text img { max-width: 100%; }
/* Tabbar ????????????????????? */
body.tabbar-on .checkout-bar,
body.tabbar-on .buy-bar { bottom: 52px; }

/* 登录 / 注册 */
.login-tabs { display: flex; background: #fff; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.login-tabs .tab { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: #666; border-bottom: 2px solid transparent; }
.login-tabs .tab.active { color: #e64340; font-weight: 600; border-bottom-color: #e64340; }
.form { background: #fff; border-radius: 8px; padding: 16px 14px; }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.form-item input { width: 100%; border: 1px solid #e5e5e5; border-radius: 6px; padding: 11px 12px; font-size: 14px; outline: none; background: #fff; }
.form-item input:focus { border-color: #e64340; }
.tip { font-size: 12px; color: #996b00; background: #fff7e6; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.agree-line { display: flex; align-items: center; font-size: 13px; color: #666; margin: 4px 0 14px; gap: 6px; line-height: 1.5; }
.agree-line input { width: 16px; height: 16px; flex-shrink: 0; }
.agree-line a { color: #e64340; }
.link { display: block; text-align: center; color: #999; font-size: 13px; margin-top: 14px; }

/* 协议弹层 */
.modal-mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: 10px; width: 100%; max-width: 420px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-title { padding: 14px; text-align: center; font-size: 15px; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.modal-body { padding: 14px; overflow-y: auto; font-size: 14px; line-height: 1.8; }
.modal-close { border-radius: 0; }
/* ===== 会员中心常用功能子页（与会员中心同风格） ===== */
.sub-page { background: #f7f3ea; min-height: 100vh; }
.sub-page .page-header { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; box-shadow: 0 2px 10px rgba(214,162,48,.22); }
.sub-page .page-header .back { color: #6b4a12; }
.sub-page .page-header h1 { color: #6b4a12; font-weight: 700; }
.sub-page .section-title { color: #6b4a12; }
.sub-page .section-title::before { background: #d49b1f; }
.sub-page .section { border-radius: 14px; }
.sub-page .cell { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; font-size: 14px; }
.sub-page .cell + .cell { border-top: 1px solid #f5efe0; }
.sub-page .cell i { color: #c9b48a; font-style: normal; font-size: 16px; }
.sub-page .tabs { background: #fff; border-radius: 12px; overflow: hidden; }
.sub-page .tabs .tab.active { color: #d49b1f; border-bottom-color: #d49b1f; }
.sub-page .btn-primary { background: linear-gradient(135deg,#f9cf6b,#efb83c); color: #6b4a12; font-weight: 600; border-radius: 12px; }
/* 订单详情底部操作条：次要按钮（申请售后/取消订单）与会员中心风格统一 */
.sub-page .checkout-bar .btn-plain {
  background: #fff;
  border: 1px solid #d49b1f;
  color: #d49b1f;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 14px;
}

.sub-page .form { border-radius: 14px; }
.sub-page .form-item input, .sub-page .form-item select { border-radius: 8px; background: #fffdf7; }
.sub-page .form-item input:focus { border-color: #d49b1f; }
.sub-page .form-item select { width: 100%; border: 1px solid #e5e5e5; padding: 11px 12px; font-size: 14px; outline: none; background: #fff; }
.sub-page .form-item select:focus { border-color: #d49b1f; }
.sub-page .check-line { display: flex; align-items: center; gap: 6px; }
/* 站内消息 */
.sub-page .msg-item { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sub-page .msg-item .msg-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sub-page .msg-item .msg-body { font-size: 13px; color: #666; line-height: 1.6; margin-top: 6px; }
.sub-page .msg-item small { display: block; color: #bbb; font-size: 11px; margin-top: 6px; }
.sub-page .badge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d49b1f; }
/* 分销中心 */
.sub-page .dist-header { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; border-radius: 16px; padding: 20px 16px; margin-bottom: 12px; box-shadow: 0 6px 16px rgba(214,162,48,.25); }
.sub-page .dist-header .dist-level { font-size: 15px; font-weight: 700; }
.sub-page .dist-stats { display: flex; margin-top: 16px; }
.sub-page .dist-stats > div { flex: 1; }
.sub-page .dist-stats b { display: block; font-size: 20px; font-weight: 700; }
.sub-page .dist-stats span { font-size: 11px; opacity: .75; }
.sub-page .dist-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.sub-page .dist-summary > div { background: #fff; border-radius: 12px; padding: 12px 6px; text-align: center; }
.sub-page .dist-summary span { display: block; font-size: 11px; color: #999; margin-bottom: 4px; }
.sub-page .dist-summary b { display: block; font-size: 15px; color: #d49b1f; }
.sub-page .dist-welcome { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; border-radius: 16px; padding: 26px 18px; text-align: center; margin-bottom: 12px; box-shadow: 0 6px 16px rgba(214,162,48,.25); }
.sub-page .dist-welcome .dist-level { font-size: 20px; font-weight: 700; }
.sub-page .dist-welcome p { font-size: 13px; margin-top: 8px; opacity: .8; }
/* 我的团队 */
.sub-page .team-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sub-page .team-item .avatar { width: 44px; height: 44px; border-radius: 50%; background: #f3ead7; object-fit: cover; flex-shrink: 0; }
.sub-page .team-item .info { flex: 1; min-width: 0; }
.sub-page .team-item .name { font-size: 14px; font-weight: 600; }
.sub-page .team-item .sub { font-size: 12px; color: #999; margin-top: 3px; }
.sub-page .team-item .amount { color: #d49b1f; font-weight: 700; font-size: 14px; }
/* 佣金明细 / 提现记录 / 资金流水 */
.sub-page .commission-item, .sub-page .withdraw-item, .sub-page .flow-item { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sub-page .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sub-page .row .name { font-size: 13px; font-weight: 500; }
.sub-page .row.sub { margin-top: 6px; font-size: 11px; color: #999; }
.sub-page .amount { color: #d49b1f; font-weight: 700; }
.sub-page .amount.out { color: #c0392b; }
.sub-page .tag0, .sub-page .tag1, .sub-page .tag2, .sub-page .tag3 { display: inline-block; font-size: 11px; border-radius: 10px; padding: 1px 8px; }
.sub-page .tag0 { background: #f0ece0; color: #8a8a7a; }
.sub-page .tag1 { background: #fdf3dc; color: #d49b1f; }
.sub-page .tag2 { background: #fdf3dc; color: #8a5a00; }
.sub-page .tag3 { background: #f0f0f0; color: #999; }
.sub-page .load-more { text-align: center; color: #d49b1f; font-size: 13px; padding: 12px; }
/* 申请提现 */
.sub-page .withdraw-balance { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; border-radius: 14px; padding: 18px 16px; margin-bottom: 12px; font-size: 13px; box-shadow: 0 6px 16px rgba(214,162,48,.22); }
.sub-page .withdraw-balance b { font-size: 24px; font-weight: 700; margin-left: 6px; }
/* 积分兑换 */
.sub-page .points-bar { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; border-radius: 14px; padding: 16px; margin-bottom: 12px; font-size: 14px; box-shadow: 0 6px 16px rgba(214,162,48,.22); }
.sub-page .points-bar b { font-size: 26px; font-weight: 700; margin-left: 6px; }
.sub-page .goods-card { border-radius: 14px; }
.sub-page .goods-card .price { color: #d49b1f; }
.sub-page .goods-card .btn-buy { width: 100%; margin-top: 10px; padding: 8px; border: none; border-radius: 12px; background: linear-gradient(135deg,#f9cf6b,#efb83c); color: #6b4a12; font-size: 13px; font-weight: 600; }
/* 优惠券 */
.sub-page .coupon-card { display: flex; background: #fff; margin-bottom: 10px; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sub-page .coupon-card .left { width: 96px; background: linear-gradient(180deg,#f9cf6b,#efb83c); color: #6b4a12; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; flex-shrink: 0; }
.sub-page .coupon-card .left b { font-size: 18px; }
.sub-page .coupon-card .left span { font-size: 11px; text-align: center; margin-top: 4px; opacity: .85; }
.sub-page .coupon-card .right { flex: 1; padding: 12px; }
.sub-page .coupon-card .right .name { font-size: 14px; font-weight: 600; }
.sub-page .coupon-card .right .tip { margin: 8px 0 0; }
.sub-page .btn-receive { border: none; border-radius: 12px; background: linear-gradient(135deg,#f9cf6b,#efb83c); color: #6b4a12; font-size: 12px; padding: 6px 14px; font-weight: 600; margin-top: 6px; }
.sub-page .btn-receive:disabled { opacity: .45; }
.sub-page .btn-transfer { border: none; border-radius: 12px; background: #fff; color: #e98d1f; border: 1px solid #efb83c; font-size: 12px; padding: 5px 12px; font-weight: 600; margin-top: 6px; margin-left: 8px; }
/* 限时秒杀 */
.sub-page .seckill-item { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sub-page .seckill-item img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.sub-page .seckill-item .info { flex: 1; min-width: 0; }
.sub-page .seckill-item .name { font-size: 13px; line-height: 1.4; }
.sub-page .seckill-item .price { margin-top: 6px; }
.sub-page .seckill-item .price b { color: #d49b1f; font-size: 16px; }
.sub-page .seckill-item .price s { color: #bbb; font-size: 12px; margin-left: 6px; }
.sub-page .seckill-item .progress { height: 6px; background: #f3ead7; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.sub-page .seckill-item .progress span { display: block; height: 100%; background: linear-gradient(90deg,#f9cf6b,#efb83c); border-radius: 3px; }
.sub-page .seckill-item .sub { font-size: 11px; color: #999; margin-top: 6px; }
/* 每日签到 */
.sub-page .signin-box { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; border-radius: 16px; padding: 28px 18px; text-align: center; margin-bottom: 12px; box-shadow: 0 6px 16px rgba(214,162,48,.25); }
.sub-page .signin-days { font-size: 14px; }
.sub-page .signin-days b { font-size: 28px; font-weight: 700; margin: 0 4px; }
.sub-page .signin-points { font-size: 13px; margin-top: 8px; opacity: .85; }
.sub-page .signed-tag { display: inline-block; margin-top: 14px; background: rgba(255,255,255,.85); color: #8a5a00; border-radius: 14px; padding: 7px 18px; font-size: 13px; font-weight: 600; }
.sub-page .signin-box .btn-primary { margin-top: 16px; background: #fff; color: #8a5a00; }
/* 收货地址 */
.sub-page .address-item { border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sub-page .address-item .tag { display: inline-block; margin-left: 8px; font-size: 11px; color: #8a5a00; background: #fdf3dc; border-radius: 10px; padding: 1px 8px; }

/* 结算页：配送方式图标卡片（红白风格） */
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.delivery-card { border: 1.5px solid #eee; border-radius: 14px; background: #fff; padding: 14px 6px 10px; text-align: center; cursor: pointer; transition: all .2s; }
.delivery-card:active { transform: scale(.97); }
.delivery-card.active { border-color: #e64340; background: #fff5f5; box-shadow: 0 3px 10px rgba(230,67,64,.12); }
.delivery-card .ico { width: 42px; height: 42px; margin: 0 auto 7px; border-radius: 50%; background: linear-gradient(135deg,#ff9a9e,#fecfef); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.delivery-card.active .ico { background: linear-gradient(135deg,#e64340,#ff6b68); }
.delivery-card .dt { font-size: 14px; font-weight: 600; color: #333; }
.delivery-card.active .dt { color: #e64340; }
.delivery-card .sub { font-size: 11px; color: #999; margin-top: 3px; line-height: 1.3; }
.delivery-card.active .sub { color: #e64340; opacity: .85; }

/* 底部弹窗：自提点选择 */
.sheet-mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 300; display: flex; align-items: flex-end; }
.sheet { width: 100%; background: #fff; border-radius: 16px 16px 0 0; max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; animation: sheetUp .25s ease; padding-bottom: env(safe-area-inset-bottom); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-title { padding: 14px 16px 10px; text-align: center; font-size: 16px; font-weight: 600; position: relative; border-bottom: 1px solid #f5f5f5; flex-shrink: 0; }
.sheet-close { position: absolute; right: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #f0f0f0; border: none; font-size: 13px; color: #666; line-height: 26px; text-align: center; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 4px 14px 20px; }
.pickup-item { border: 1.5px solid #f0f0f0; border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: #fff; cursor: pointer; transition: all .2s; }
.pickup-item.active { border-color: #e64340; background: #fff5f5; }
.pickup-item .t { display: flex; align-items: center; }
.pickup-item .t .nm { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.pickup-item .t .ph { font-size: 12px; color: #e64340; flex-shrink: 0; }
.pickup-item .cur { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #ddd; margin-left: 8px; flex-shrink: 0; }
.pickup-item.active .cur { border-color: #e64340; background: #e64340; position: relative; }
.pickup-item.active .cur::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pickup-item .ad { font-size: 12px; color: #666; margin-top: 7px; line-height: 1.5; }
.pickup-item .bh { font-size: 11px; color: #999; margin-top: 4px; }

/* 商品详情：购买数量 */
.num-row { display: flex; align-items: center; justify-content: space-between; }
.num-row .label { margin-bottom: 0; }
.num-row .num-stepper { border-radius: 6px; overflow: hidden; }
.num-row .num-stepper button { width: 30px; height: 30px; font-size: 16px; }
.num-row .num-stepper span { width: 42px; font-size: 14px; }
/* 积分抵现开关（结算页） */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; cursor: pointer; inset: 0; background: #ddd; border-radius: 26px; transition: .2s; }
.switch i::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + i { background: #e64340; }
.switch input:checked + i::before { transform: translateX(20px); }
.points-tip { color: #999; font-size: 12px; padding: 8px 2px 2px; line-height: 1.5; }
.tier-points-bar { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.tier-points-bar.ok { background: #fff8e6; color: #b8860b; border-color: #f6e5c3; }
.tier-group-item { display: block; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; }
.tier-group-item .t { font-size: 14px; color: #333; font-weight: 600; }
.tier-group-item .sub { font-size: 12px; color: #999; margin-top: 4px; }

/* ========== 静态消费积分 ========== */
.tier-points-grid { display: flex; gap: 10px; }
.tier-point-item { flex: 1; text-align: center; background: #fffaf0; border: 1px solid #f6e5c3; border-radius: 12px; padding: 12px 6px; }
.tier-point-item b { display: block; font-size: 20px; font-weight: 700; color: #d49b1f; }
.tier-point-item span { display: block; font-size: 12px; color: #999; margin-top: 4px; }
.tier-plan-box { background: #fff7e6; border: 1px solid #f6e5c3; border-radius: 12px; padding: 12px; font-size: 13px; color: #6b4a12; line-height: 1.9; }
.tier-plan-box b { color: #d49b1f; }
.tier-plan-box .plan-note { margin-top: 8px; color: #996b00; font-size: 12px; }
.sub-page .tier-plan-box .progress { height: 6px; background: #f3ead7; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.sub-page .tier-plan-box .progress span { display: block; height: 100%; background: linear-gradient(90deg,#f9cf6b,#efb83c); border-radius: 3px; }
.tier-log-list { background: #fff; border-radius: 12px; overflow: hidden; }
.tier-log-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.tier-log-item:last-child { border-bottom: none; }
.tier-log-item .left { color: #333; }
.tier-log-item .left .sub { color: #999; font-size: 12px; margin-top: 2px; }
.tier-log-item .right { color: #d49b1f; font-weight: 700; }

/* 团队业绩（大区 / 小区） */
.perf-grid { display: flex; gap: 10px; }
.perf-item { flex: 1; text-align: center; background: #fff; border-radius: 14px; padding: 16px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.perf-item b { display: block; font-size: 20px; font-weight: 700; color: #d49b1f; }
.perf-item span { display: block; font-size: 12px; color: #999; margin-top: 6px; }
.perf-item.perf-big b { color: #e64340; }
.perf-total { margin-top: 10px; background: #fff7e6; border: 1px solid #f6e5c3; border-radius: 12px; padding: 12px; text-align: center; font-size: 13px; color: #6b4a12; }
.perf-total b { color: #d49b1f; font-size: 16px; }
.perf-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed #f0e6cd; }
.perf-row:last-child { border-bottom: none; padding-bottom: 0; }
.perf-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.perf-user img { width: 34px; height: 34px; border-radius: 50%; background: #f3ead7; object-fit: cover; flex-shrink: 0; }
.perf-user .nick { font-size: 14px; font-weight: 600; color: #333; }
.perf-user .sub { font-size: 12px; color: #999; margin-top: 2px; }
.perf-amount { color: #d49b1f; font-weight: 700; flex-shrink: 0; }
.perf-tag { display: inline-block; font-size: 11px; border-radius: 10px; padding: 1px 8px; background: #ffe4e1; color: #c0392b; margin-left: 6px; }

/* 门店奖励（团队累计业绩 / 门店等级） */
.store-card { background: linear-gradient(135deg,#ffe9ad 0%,#f9cf6b 55%,#efb83c 100%); color: #6b4a12; border-radius: 16px; padding: 16px; box-shadow: 0 6px 16px rgba(214,162,48,.25); cursor: pointer; }
.store-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.store-card-top .store-level { font-size: 16px; font-weight: 700; }
.store-card-top .store-more { font-size: 12px; opacity: .8; flex-shrink: 0; }
.store-card .store-perf { margin-top: 10px; }
.store-card .store-perf b { font-size: 26px; font-weight: 700; }
.store-card .store-perf span { display: block; font-size: 12px; opacity: .78; margin-top: 2px; }
.store-card .store-next { margin-top: 8px; font-size: 12px; opacity: .85; }
.store-ladder { display: flex; flex-direction: column; gap: 10px; }
.store-lv { background: #fff; border: 1px solid #f2ede1; border-radius: 12px; padding: 12px 14px; }
.store-lv.reached { background: #fffaf0; border-color: #f6d99a; }
.store-lv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.store-lv-head .nm { font-size: 15px; font-weight: 700; color: #6b4a12; }
.store-lv-head .tag-ok { font-size: 11px; color: #fff; background: #d49b1f; border-radius: 10px; padding: 2px 8px; flex-shrink: 0; }
.store-lv-head .tag-no { font-size: 11px; color: #909399; background: #f2f3f5; border-radius: 10px; padding: 2px 8px; flex-shrink: 0; }
.store-lv-sub { font-size: 12px; color: #999; margin-top: 6px; line-height: 1.6; }
.store-lv-sub b { color: #d49b1f; }
.store-bar { height: 6px; background: #f2ede1; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.store-bar span { display: block; height: 100%; background: linear-gradient(90deg,#f9cf6b,#efb83c); border-radius: 4px; }
