/* ================= 优选商城 H5 主题（青绿） ================= */
:root {
    --main: #4CB8A4;
    --main-dark: #3A9E8B;
    --accent: #FF7A45;
    --grad: linear-gradient(160deg, #56C2AC, #3FA08D);
    --bg: #EAF6F2;
    --card: #ffffff;
    --text: #2A3B37;
    --text2: #66736E;
    --text3: #98A5A1;
    --line: #E3EEEA;
    --green: #3FAE7C;
    --blue: #2B7BD1;
    --gold: #F5A623;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 58px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, li { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; border: none; background: transparent; }
button { cursor: pointer; }

/* ---------- 顶部导航 ---------- */
.mall-header {
    position: sticky; top: 0; z-index: 100;
    height: 46px; display: flex; align-items: center;
    padding: 0 10px;
    background: var(--grad);
    color: #fff;
}
.mall-header .back { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mall-header .hd-title { flex: 1; text-align: center; font-size: 16px; font-weight: 500; }
.mall-header .hd-right { min-width: 30px; text-align: right; font-size: 13px; }

/* ---------- 内容容器 ---------- */
.page { padding: 12px; }
.page-nopad { padding: 0; }

/* ---------- 搜索框 ---------- */
.search-bar { padding: 10px 12px; background: var(--grad); }
.search-bar .s-inner {
    display: flex; align-items: center; height: 34px;
    background: #fff; border-radius: 17px; padding: 0 14px; gap: 6px;
}
.search-bar input { flex: 1; height: 100%; }
.search-bar .s-icon { color: var(--text3); font-style: normal; }

/* ---------- 轮播图 ---------- */
.swiper { position: relative; overflow: hidden; border-radius: 10px; }
.swiper .sw-track { display: flex; transition: transform .5s ease; }
.swiper .sw-item { min-width: 100%; }
.swiper .sw-item img { width: 100%; height: 140px; object-fit: cover; }
.swiper .sw-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.swiper .sw-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .3s; }
.swiper .sw-dots i.on { width: 16px; background: #fff; }

/* ---------- 通知条 ---------- */
.notice-bar {
    display: flex; align-items: center; gap: 8px;
    background: #fff7ec; color: #b25b00;
    border-radius: 8px; padding: 8px 12px; margin-top: 12px;
    overflow: hidden; font-size: 13px;
}
.notice-bar .n-icon { flex-shrink: 0; }
.notice-bar .n-scroll { flex: 1; height: 20px; overflow: hidden; position: relative; }
.notice-bar .n-list { position: absolute; left: 0; top: 0; width: 100%; animation: noticeUp 9s infinite; }
.notice-bar .n-list p { height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes noticeUp {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-20px); }
    66%, 94% { transform: translateY(-40px); }
    100% { transform: translateY(0); }
}

/* ---------- 菜单宫格 ---------- */
.menu-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    background: var(--card); border-radius: 10px; padding: 14px 6px; margin-top: 12px;
}
.menu-grid a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); }
.menu-grid .m-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #fff;
}
.m-icon.c1 { background: var(--grad); }
.m-icon.c2 { background: linear-gradient(135deg, #ffa726, #fb8c00); }
.m-icon.c3 { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.m-icon.c4 { background: linear-gradient(135deg, #66bb6a, #43a047); }
.menu-grid .m-badge {
    position: absolute; transform: translate(22px, -6px);
    background: var(--main); color: #fff; border-radius: 8px;
    font-size: 10px; padding: 0 5px; height: 14px; line-height: 14px;
}

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 10px; }
.sec-head .t { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sec-head .t::before { content: ""; width: 4px; height: 15px; background: var(--grad); border-radius: 2px; }
.sec-head .more { font-size: 12px; color: var(--text3); }

/* ---------- 抢购横条 ---------- */
.seckill-strip {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--grad); color: #fff; border-radius: 10px;
    padding: 12px 14px; margin-top: 12px;
}
.seckill-strip .left b { font-size: 16px; }
.seckill-strip .left p { font-size: 12px; opacity: .85; }
.seckill-strip .go-btn {
    background: #fff; color: var(--main); border-radius: 14px;
    height: 26px; padding: 0 12px; font-size: 12px; line-height: 26px; font-weight: 600;
}

/* ---------- 商品卡片 ---------- */
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goods-card { background: var(--card); border-radius: 10px; overflow: hidden; }
.goods-card .g-img { width: 100%; height: 150px; object-fit: cover; background: #f0f0f0; }
.goods-card .g-body { padding: 9px 10px 11px; }
.goods-card .g-title {
    font-size: 13px; color: var(--text); line-height: 1.4; height: 36px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-card .g-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag-pill { font-size: 10px; color: var(--main-dark); background: #e3f3ef; border: 1px solid #bfe5dc; padding: 0 5px; border-radius: 3px; line-height: 16px; }
.tag-pill.blue { color: var(--blue); background: #e8f3ff; border-color: #b8dbff; }
.tag-pill.gold { color: #b25b00; background: #fff3e0; border-color: #ffdfae; }
.tag-pill.gray { color: var(--text3); background: #f5f5f5; border-color: #e5e5e5; }
.goods-card .g-bottom { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; }
.price { color: var(--accent); font-weight: 700; }
.price::before { content: "￥"; font-size: .72em; }
.price .p-val { font-size: 17px; }
.price-original { color: var(--text3); font-size: 11px; text-decoration: line-through; margin-left: 4px; }
.stock-num { color: var(--text3); font-size: 11px; }

/* 抢购专栏：双排商品卡 */
.seckill-column { padding-bottom: 72px; }
.seckill-card .g-meta { margin-top: 5px; font-size: 11px; color: var(--text3); }
.seckill-card .g-meta b { color: var(--text); font-weight: 600; }
.seckill-card .g-bottom { align-items: center; }
.seckill-card .price .p-val { font-size: 15px; }
.seckill-card .btn-mini {
    background: #E3F3EF; color: var(--main-dark);
    border-radius: 4px; height: 24px; line-height: 24px; padding: 0 8px;
    font-size: 11px; font-weight: 600; flex-shrink: 0;
}

/* ---------- 商品横列（抢购/搜索结果） ---------- */
.goods-row { display: flex; gap: 10px; background: var(--card); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.goods-row .g-img { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f0f0f0; }
.goods-row .g-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.goods-row .g-title { font-size: 14px; font-weight: 500; line-height: 1.4; max-height: 39px; overflow: hidden; }
.goods-row .g-meta { margin-top: 3px; font-size: 11px; color: var(--text3); }
.goods-row .g-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.btn-mini {
    background: var(--grad); color: #fff; border-radius: 14px;
    height: 26px; padding: 0 14px; font-size: 12px; line-height: 26px; display: inline-block; border: none;
}
.btn-mini:active { opacity: .85; }
.btn-mini.disabled { background: #ccc; }

/* 等待购买标签 */
.wait-tag {
    display: inline-block; font-size: 10px; color: #fff;
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    border-radius: 3px; padding: 0 6px; line-height: 17px;
}

/* ---------- 倒计时条 ---------- */
.count-strip {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--card); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.count-strip .cs-t { font-size: 14px; font-weight: 600; }
.count-strip .cs-s { font-size: 11px; color: var(--text3); margin-top: 2px; }
.count-num { display: inline-flex; gap: 4px; align-items: center; color: var(--main); font-weight: 700; }
.count-num .cs-l {
    font-size: 11px; color: var(--text2); font-weight: 500;
    background: #f1f7f5; border-radius: 4px; padding: 3px 6px; margin-right: 2px;
}
.count-num b {
    background: #e3f3ef; border-radius: 4px; min-width: 26px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--main); font-variant-numeric: tabular-nums;
}

/* ---------- 按钮 ---------- */
.btn {
    display: block; width: 100%; height: 44px; border-radius: 22px;
    background: var(--grad); color: #fff; font-size: 16px; font-weight: 500;
    text-align: center; line-height: 44px; border: none;
}
.btn:active { opacity: .88; }
.btn.plain { background: #fff; color: var(--main); border: 1px solid var(--main); }
.btn.gray { background: #eee; color: var(--text3); }
.btn-sm { display: inline-block; height: 30px; line-height: 30px; padding: 0 16px; border-radius: 15px; background: var(--grad); color: #fff; font-size: 13px; border: none; text-align: center; }
.btn-sm.plain { background: #fff; color: var(--main); border: 1px solid var(--main); }
.btn-sm.gray { background: #eee; color: var(--text3); border: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; height: 38px; line-height: 38px; border-radius: 19px; font-size: 14px; }

/* ---------- 表单 ---------- */
.form-card { background: var(--card); border-radius: 12px; padding: 6px 16px; }
.form-item { display: flex; align-items: center; border-bottom: 1px solid var(--line); min-height: 52px; gap: 8px; }
.form-item:last-child { border-bottom: none; }
.form-item label { width: 88px; flex-shrink: 0; color: var(--text2); font-size: 14px; }
.form-item input, .form-item select { flex: 1; height: 100%; color: var(--text); }
.form-item input::placeholder { color: #bbb; }
.form-item .code-btn { flex-shrink: 0; color: var(--main); border: 1px solid var(--main); border-radius: 14px; font-size: 12px; height: 26px; line-height: 24px; padding: 0 10px; background: #fff; }
.form-item .code-btn:disabled { color: #bbb; border-color: #ddd; background: #fafafa; }
.form-area { padding: 12px 0; border-bottom: 1px solid var(--line); }
.form-area label { display: block; color: var(--text2); margin-bottom: 8px; }
.form-area textarea { width: 100%; min-height: 90px; background: #f8f8f8; border-radius: 8px; padding: 10px; resize: vertical; }
.form-tip { font-size: 12px; color: var(--text3); padding: 10px 4px 0; line-height: 1.6; }
.form-tip.warn { color: #b25b00; background: #fff7ec; border-radius: 8px; padding: 8px 10px; margin-top: 10px; }
.submit-wrap { padding: 22px 6px 10px; }

/* ---------- 登录/注册页 ---------- */
.auth-logo { text-align: center; padding: 40px 0 26px; }
.auth-logo .lg {
    width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 20px;
    background: var(--grad); color: #fff; font-size: 34px;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.auth-logo h1 { font-size: 19px; color: var(--text); }
.auth-logo p { font-size: 12px; color: var(--text3); margin-top: 4px; }
.auth-foot { text-align: center; color: var(--text3); font-size: 13px; padding-top: 18px; }
.auth-foot a { color: var(--main); }

/* ---------- 个人中心 ---------- */
.center-hero {
    background: var(--grad); color: #fff; padding: 20px 16px 54px;
    position: relative;
}
.center-user { display: flex; align-items: center; gap: 12px; }
.center-user img.av { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; background: #fff; }
.center-user .cu-name { font-size: 17px; font-weight: 600; }
.center-user .cu-sub { font-size: 11px; opacity: .85; margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.center-user .cu-sub .icode { background: rgba(255,255,255,.2); border-radius: 9px; padding: 0 8px; line-height: 17px; font-size: 11px; }
.center-asset {
    position: absolute; left: 12px; right: 12px; bottom: -32px;
    background: var(--card); border-radius: 12px;
    display: flex; padding: 14px 0; box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.center-asset a { flex: 1; text-align: center; }
.center-asset b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.center-asset span { display: block; font-size: 11px; color: var(--text3); margin-top: 2px; }

.cell-group { background: var(--card); border-radius: 12px; margin-top: 12px; overflow: hidden; }
.cell-group .cg-title { font-size: 13px; color: var(--text3); padding: 12px 16px 2px; }
.cell { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cell:last-child { border-bottom: none; }
.cell:active { background: #fafafa; }
.cell .c-icon {
    width: 30px; height: 30px; border-radius: 8px; margin-right: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff;
}
.cell .c-txt { flex: 1; }
.cell .c-badge { background: var(--main); color: #fff; border-radius: 8px; font-size: 10px; padding: 0 6px; line-height: 15px; margin-left: 6px; }
.cell .c-arrow { color: #ccc; margin-left: 6px; }
.cell .c-val { color: var(--text3); font-size: 12px; }

.order-quick { background: var(--card); border-radius: 12px; margin-top: 12px; padding: 14px 0 12px; }
.order-quick .oq-title { font-size: 14px; font-weight: 600; padding: 0 16px 10px; }
.order-quick .oq-list { display: flex; }
.order-quick .oq-list a { flex: 1; text-align: center; font-size: 12px; color: var(--text2); position: relative; }
.order-quick .oq-list .oi { font-size: 20px; display: block; margin-bottom: 5px; }

.logout-btn { margin-top: 18px; }
.logout-btn .btn.plain { color: var(--text2); border-color: #ddd; }

/* ---------- 订单 ---------- */
.status-tabs { display: flex; background: var(--card); border-radius: 10px; padding: 4px; gap: 2px; margin-bottom: 12px; }
.status-tabs a { flex: 1; text-align: center; height: 32px; line-height: 32px; border-radius: 8px; font-size: 13px; color: var(--text2); }
.status-tabs a.on { background: var(--grad); color: #fff; font-weight: 500; }

.order-card { background: var(--card); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text3); }
.order-card .oc-head .st { font-weight: 600; font-size: 13px; }
.order-card .oc-body { display: flex; gap: 10px; padding: 12px; }
.order-card .oc-img { width: 74px; height: 74px; border-radius: 8px; object-fit: cover; background: #f0f0f0; }
.order-card .oc-info { flex: 1; min-width: 0; }
.order-card .oc-title { font-size: 13px; line-height: 1.4; max-height: 37px; overflow: hidden; }
.order-card .oc-price { margin-top: 6px; display: flex; justify-content: space-between; align-items: baseline; }
.order-card .oc-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 12px 12px; }

.st-created { color: var(--accent); }
.st-paid { color: var(--blue); }
.st-completed { color: var(--green); }
.st-cancelled { color: var(--text3); }

/* 订单状态步骤 */
.order-steps { background: var(--card); border-radius: 12px; padding: 16px; display: flex; margin-bottom: 12px; }
.order-steps .os { flex: 1; text-align: center; position: relative; font-size: 11px; color: var(--text3); }
.order-steps .os::before {
    content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #eee; z-index: 0;
}
.order-steps .os:first-child::before { display: none; }
.order-steps .os .dot {
    width: 20px; height: 20px; border-radius: 50%; background: #eee; color: #fff;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; position: relative; z-index: 1; font-size: 11px;
}
.order-steps .os.done { color: var(--main); }
.order-steps .os.done .dot { background: var(--grad); }

.info-card { background: var(--card); border-radius: 12px; padding: 4px 14px; margin-bottom: 12px; }
.info-row { display: flex; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { width: 92px; color: var(--text3); flex-shrink: 0; }
.info-row .v { flex: 1; word-break: break-all; }
.payinfo-box { background: #fff8f0; border: 1px dashed #f0c090; border-radius: 10px; padding: 12px; font-size: 13px; color: #8a5300; margin-bottom: 12px; }
.payinfo-box h4 { font-size: 13px; margin-bottom: 6px; }
.payinfo-box p { line-height: 1.9; }

/* ---------- 合同 ---------- */
.contract-paper {
    background: var(--card); border-radius: 12px; padding: 20px 16px;
    font-size: 14px; line-height: 1.9; color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.contract-paper h3 { text-align: center; font-size: 17px; margin-bottom: 10px; }
.contract-paper p { margin-bottom: 6px; text-align: justify; }
.contract-seal {
    margin-top: 18px; display: inline-block; color: var(--green);
    border: 2px solid var(--green); border-radius: 6px;
    transform: rotate(-8deg); padding: 4px 14px; font-weight: 700; font-size: 15px;
}

/* ---------- 邀请页 ---------- */
.invite-hero {
    background: var(--grad); border-radius: 14px; color: #fff;
    text-align: center; padding: 30px 16px;
}
.invite-hero h2 { font-size: 19px; }
.invite-hero p { font-size: 12px; opacity: .9; margin-top: 6px; }
.invite-code-box {
    display: inline-block; margin-top: 18px; background: rgba(255,255,255,.16);
    border: 1px dashed rgba(255,255,255,.6); border-radius: 10px;
    padding: 12px 30px; font-size: 26px; letter-spacing: 8px; font-weight: 700;
}
.invite-link { background: var(--card); border-radius: 12px; margin-top: 14px; padding: 14px; }
.invite-link .il-txt {
    background: #f7f7f7; border-radius: 8px; padding: 9px 10px;
    font-size: 12px; color: var(--text2); word-break: break-all; margin-bottom: 10px;
}
.invite-steps { background: var(--card); border-radius: 12px; margin-top: 14px; padding: 16px; }
.invite-steps h4 { font-size: 14px; margin-bottom: 10px; }
.invite-steps li { display: flex; gap: 10px; font-size: 13px; color: var(--text2); padding: 6px 0; }
.invite-steps .n {
    width: 18px; height: 18px; border-radius: 50%; background: #e3f3ef; color: var(--main-dark);
    font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- 收益 ---------- */
.earn-hero { background: var(--grad); border-radius: 14px; color: #fff; padding: 22px 18px; display: flex; }
.earn-hero .eh { flex: 1; }
.earn-hero b { font-size: 22px; font-variant-numeric: tabular-nums; }
.earn-hero span { display: block; font-size: 12px; opacity: .85; margin-bottom: 6px; }
.money-log { background: var(--card); border-radius: 12px; padding: 2px 14px; }
.money-log .ml { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.money-log .ml:last-child { border-bottom: none; }
.money-log .ml .mi {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; margin-right: 10px;
    background: #e8f3ff; color: var(--blue); font-size: 14px;
}
.money-log .ml .mi.in { background: #e8f8ee; color: var(--green); }
.money-log .ml .mt { flex: 1; min-width: 0; }
.money-log .ml .mt .memo { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.money-log .ml .mt .time { font-size: 11px; color: var(--text3); }
.money-log .ml .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.amt.in { color: var(--green); }
.amt.out { color: var(--main); }

/* ---------- 粉丝 ---------- */
.fan-item { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.fan-item img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #f0f0f0; }
.fan-item .fn { flex: 1; }
.fan-item .fn b { font-size: 14px; font-weight: 500; }
.fan-item .fn p { font-size: 11px; color: var(--text3); margin-top: 2px; }
.fan-item .ft { font-size: 11px; color: var(--text3); }

/* ---------- 详情页 ---------- */
.pd-swiper .sw-item img { height: 320px; }
.pd-card { background: var(--card); border-radius: 12px; padding: 14px; margin-top: 12px; }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; }
.pd-price-row .price .p-val { font-size: 24px; }
.pd-sales { margin-left: auto; font-size: 11px; color: var(--text3); }
.pd-title { font-size: 16px; font-weight: 600; line-height: 1.45; margin-top: 8px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.pd-stock { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text3); }
.pd-stock b { color: var(--text); }
.pd-seller { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text2); }
.pd-seller img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pd-content { background: var(--card); border-radius: 12px; margin-top: 12px; padding: 14px; font-size: 14px; line-height: 1.8; overflow: hidden; }
.pd-content h4.sec { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pd-content img { max-width: 100%; margin: 6px 0; }
.pd-bottom {
    position: fixed; left: 0; right: 0; bottom: 58px; z-index: 90;
    background: #fff; display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-top: 1px solid var(--line);
}
.pd-bottom .pb-consult { flex-shrink: 0; text-align: center; font-size: 10px; color: var(--text2); width: 46px; }
.pd-bottom .pb-consult i { display: block; font-size: 20px; font-style: normal; color: var(--main); }
.pd-bottom .btn { flex: 1; height: 40px; line-height: 40px; font-size: 15px; }
.has-pdbar { padding-bottom: 130px !important; }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; display: none; }
.mask.show { display: block; }
.modal {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 201;
    background: #fff; border-radius: 16px 16px 0 0; padding: 18px 16px 24px;
    transform: translateY(100%); transition: transform .25s ease; max-height: 78vh; overflow-y: auto;
}
.modal.show { transform: translateY(0); }
.modal h3 { font-size: 16px; margin-bottom: 14px; text-align: center; }
.modal .close-x { position: absolute; right: 14px; top: 14px; font-size: 20px; color: #bbb; line-height: 1; }
.qty-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; width: fit-content; }
.qty-stepper button { width: 34px; height: 34px; font-size: 18px; color: var(--text2); background: #fafafa; }
.qty-stepper input { width: 52px; height: 34px; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.consult-line { display: flex; justify-content: space-between; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.consult-line:last-child { border-bottom: none; }
.consult-line b { font-weight: 500; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; top: 42%; left: 50%; transform: translate(-50%,-50%);
    background: rgba(0,0,0,.78); color: #fff; padding: 11px 18px;
    border-radius: 10px; font-size: 14px; z-index: 500; max-width: 78vw;
    display: none; text-align: center; line-height: 1.5;
}
.toast.show { display: block; }

/* ---------- 底部标签栏 ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; height: 58px; z-index: 150;
    background: #fff; border-top: 1px solid var(--line);
    display: flex; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { flex: 1; text-align: center; padding-top: 8px; font-size: 10px; color: var(--text3); position: relative; }
.tabbar a i { font-style: normal; font-size: 21px; display: block; margin-bottom: 2px; }
.tabbar a.on { color: var(--main); font-weight: 600; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 14px 0 4px; flex-wrap: wrap; }
.pagination li { display: inline-block; }
.pagination li a, .pagination li span {
    display: inline-block; min-width: 32px; height: 32px; line-height: 32px;
    text-align: center; border-radius: 8px; background: #fff; color: var(--text2);
    font-size: 13px; padding: 0 8px;
}
.pagination li.active span { background: var(--grad); color: #fff; }
.pagination li.disabled span { color: #ccc; background: #f5f5f5; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 0 70px; color: var(--text3); font-size: 13px; }
.empty i { font-style: normal; font-size: 46px; display: block; margin-bottom: 12px; opacity: .35; }

/* ---------- 设置 ---------- */
.avatar-picks { display: flex; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.avatar-picks img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid transparent; object-fit: cover; }
.avatar-picks img.on { border-color: var(--main); }

/* 收益统计小卡片 */
.sum-cards { display: flex; gap: 10px; margin-bottom: 12px; }
.sum-cards .sc {
    flex: 1; background: var(--card); border-radius: 12px; padding: 14px;
}
.sum-cards .sc b { font-size: 17px; font-variant-numeric: tabular-nums; }
.sum-cards .sc span { display: block; font-size: 11px; color: var(--text3); margin-top: 3px; }
