/* 雨诺科技 · 电竞护航系统 —— 前台样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body.front {
    background: #e9edf4;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #161b26;
    -webkit-font-smoothing: antialiased;
}
img { display: block; }
button, input { font-family: inherit; }

.phone {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f6f7fa;
    padding-bottom: 92px;
    box-shadow: 0 0 40px rgba(18, 32, 60, .08);
}

/* 顶部栏 */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 12px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #eef1f6;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, #1f8bff, #0a4ad0);
    color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(10, 74, 208, .28);
}
.brand-text strong { display: block; font-size: 17px; letter-spacing: .5px; }
.brand-text small { display: block; color: #8b96a8; font-size: 11px; margin-top: 2px; }
.online {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: #12a05c; background: #e8f8ef;
    padding: 4px 9px; border-radius: 20px;
}
.online i { width: 6px; height: 6px; border-radius: 50%; background: #12a05c; display: inline-block; }

.content { min-height: calc(100vh - 160px); }

/* 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    height: 236px;
    overflow: hidden;
    background: #fff;
    touch-action: pan-y;
}
.carousel-track { display: flex; height: 100%; will-change: transform; transition: transform .42s cubic-bezier(.25,.9,.3,1); }
.slide { flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dots {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
    display: flex; gap: 5px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .22); transition: .25s; }
.dot.active { width: 16px; border-radius: 4px; background: #1f8bff; }

/* 跑马灯 */
.notice-bar {
    display: flex; align-items: center; gap: 8px;
    margin: 12px 16px 0;
    height: 38px; padding: 0 10px;
    background: #fff6e8;
    border: 1px solid #ffe6bf;
    border-radius: 9px;
    overflow: hidden;
}
.notice-label {
    flex: 0 0 auto; font-size: 11px; font-weight: 600; color: #b26a00;
    background: #ffedd2; padding: 3px 8px; border-radius: 6px;
}
.notice-viewport { flex: 1; overflow: hidden; position: relative; height: 100%; }
.notice-track {
    position: absolute; top: 50%; left: 0; white-space: nowrap;
    transform: translate(0, -50%);
    font-size: 13px; color: #8a5a00; will-change: transform;
}

/* 分类切换 */
.cat-tabs {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 14px 16px 12px;
    scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex: 0 0 auto; border: 0; background: #fff; color: #5d6a80;
    padding: 7px 15px; border-radius: 8px; font-size: 13px; cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 35, 60, .04);
    transition: .2s;
}
.cat-tab.active { background: #eaf2ff; color: #0b58e0; font-weight: 600; box-shadow: inset 0 0 0 1px #bcd5ff; }

/* 商品列表 */
.product-list { padding: 4px 16px 24px; min-height: 300px; }
.empty { text-align: center; padding: 54px 0 40px; color: #a5aec0; }
.empty-icon {
    width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 16px;
    background: #eff2f7; display: flex; align-items: center; justify-content: center;
    color: #b3bcca;
}
.empty-icon svg { width: 30px; height: 30px; }
.empty p { margin: 0 0 6px; font-size: 15px; color: #8d97a8; }
.empty small { font-size: 12px; color: #aab3c2; }

/* 通用页头 */
.page-head { padding: 20px 18px 6px; }
.page-head h2 { margin: 0 0 4px; font-size: 19px; }
.page-head p { margin: 0; font-size: 12px; color: #8b96a8; }

/* 分类页列表 */
.cat-list { padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.cat-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 13px; padding: 14px 15px;
    box-shadow: 0 4px 14px rgba(20, 35, 60, .05);
    cursor: pointer; transition: transform .15s;
}
.cat-item:active { transform: scale(.98); }
.cat-badge {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #eaf2ff, #d7e6ff);
    color: #0b58e0; font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.cat-info { flex: 1; }
.cat-info strong { display: block; font-size: 15px; }
.cat-info small { color: #9aa4b5; font-size: 12px; }
.cat-arrow { color: #c3cad6; font-size: 20px; }

/* 我的页 */
.me-head {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 18px 24px;
    background: linear-gradient(135deg, #0f5fe6, #0a3fb0);
    color: #fff;
}
.avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
}
.me-info strong { display: block; font-size: 17px; }
.me-info small { display: block; font-size: 12px; color: rgba(255, 255, 255, .75); margin-top: 4px; }

.panel {
    margin: 14px 16px 20px; padding: 18px 16px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 4px 16px rgba(20, 35, 60, .05);
}
.me-list { list-style: none; margin: 0 0 16px; padding: 0; }
.me-list li {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px dashed #eef1f6; font-size: 14px;
}
.me-list li:last-child { border-bottom: 0; }
.me-list span { color: #8b96a8; }
.btn-outline {
    width: 100%; height: 44px; border-radius: 10px; cursor: pointer;
    background: #fff; border: 1px solid #e2e7ef; color: #d94a4a;
    font-size: 14px;
}

.auth-tabs {
    display: flex; margin: 16px 16px 0; background: #eef1f7;
    border-radius: 10px; padding: 4px;
}
.auth-tab {
    flex: 1; text-align: center; padding: 9px 0; font-size: 14px;
    color: #6b7789; border-radius: 8px; text-decoration: none;
}
.auth-tab.active { background: #fff; color: #0b58e0; font-weight: 600; box-shadow: 0 2px 8px rgba(20, 35, 60, .07); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #5d6a80; margin-bottom: 6px; }
.field input {
    width: 100%; height: 46px; border-radius: 10px;
    border: 1px solid #e2e7ef; background: #fafbfd;
    padding: 0 13px; font-size: 14px; outline: none;
    transition: .2s;
}
.field input:focus { border-color: #79a9fb; background: #fff; box-shadow: 0 0 0 3px rgba(31, 139, 255, .1); }
.btn-primary {
    width: 100%; height: 47px; border: 0; border-radius: 11px; cursor: pointer;
    background: linear-gradient(135deg, #1f8bff, #0b4fd6);
    color: #fff; font-size: 15px; font-weight: 600;
    box-shadow: 0 8px 18px rgba(11, 79, 214, .25);
    margin-top: 4px;
}
.alert {
    margin: 14px 16px 0; padding: 10px 13px; border-radius: 9px;
    background: #fff1f1; border: 1px solid #ffd7d7; color: #c62f2f; font-size: 13px;
}

/* 底部导航 */
.tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; z-index: 30;
    display: flex;
    background: #10131a;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(10, 15, 25, .18);
}
.tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: #fff; padding: 2px 0;
}
.tab-icon {
    width: 36px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; transition: background .2s, color .2s;
}
.tab-icon svg { width: 21px; height: 21px; }
.tab-text { font-size: 11px; color: rgba(255, 255, 255, .62); letter-spacing: .5px; transition: .2s; }

.tab-item.active .tab-icon { background: #ffffff; color: #000000; }
.tab-item.active .tab-text { color: #ffffff; font-weight: 600; }

@media (max-width: 380px) {
    .carousel { height: 198px; }
}

/* ================= 新增：商品 / 下单 / 支付 / 我的 ================= */
.content { display: flex; flex-direction: column; }

.back-btn {
    width: 34px; height: 34px; border-radius: 10px; margin-right: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #1b2330; font-size: 22px; text-decoration: none; background: #f2f5fa;
}

/* 商品网格 */
.product-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 4px 16px 22px;
}
.product-card {
    background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none;
    color: inherit; box-shadow: 0 4px 14px rgba(20, 35, 60, .06);
    display: flex; flex-direction: column;
}
.product-cover { position: relative; width: 100%; aspect-ratio: 1 / 0.82; overflow: hidden; background: #f2f5fa; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.stock-tag {
    position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 6px;
    background: rgba(20, 26, 38, .72); color: #fff; font-size: 11px;
}
.product-body { padding: 9px 10px 10px; }
.product-body h3 {
    margin: 0 0 7px; font-size: 13px; line-height: 1.4; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-meta { display: flex; align-items: baseline; justify-content: space-between; }
.product-meta .price { color: #e11d48; font-size: 15px; font-weight: 700; }
.product-meta .sales { color: #a3adbf; font-size: 11px; }

/* 登录提示条 */
.tip-banner {
    margin: 14px 16px 0; padding: 10px 13px; border-radius: 9px;
    background: #eef4ff; color: #4a6da8; font-size: 12px; line-height: 1.6;
}

/* 我的页 */
.me-head { position: relative; display: flex; align-items: center; gap: 14px; }
.avatar-btn {
    width: 64px; height: 64px; border-radius: 50%; padding: 0; overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .16);
    cursor: pointer; flex: 0 0 64px;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.edit-chip {
    position: absolute; right: 16px; top: 14px;
    font-size: 12px; color: #fff; text-decoration: none;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
    padding: 4px 10px; border-radius: 20px;
}

.wallet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 0; }
.wallet-card {
    border: 0; text-align: left; cursor: pointer;
    background: #fff; border-radius: 12px; padding: 13px 14px;
    box-shadow: 0 4px 14px rgba(20, 35, 60, .05);
    display: flex; flex-direction: column; gap: 5px;
    color: inherit; font-family: inherit;
}
.wallet-card span { font-size: 12px; color: #8b96a8; }
.wallet-card b { font-size: 16px; color: #0b58e0; font-weight: 700; }
.wallet-card:nth-child(2) b { color: #e11d48; font-size: 13px; }

.me-actions { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 0; }
.me-btn {
    width: 100%; height: 48px; border-radius: 12px; border: 0; cursor: pointer;
    background: #fff; color: #33405a; font-size: 15px; font-family: inherit;
    box-shadow: 0 4px 14px rgba(20, 35, 60, .05);
    transition: transform .12s;
}
.me-btn:active { transform: scale(.985); }

.tech-support {
    margin-top: auto; padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
    text-align: center; font-size: 11px; color: #fff; letter-spacing: 1px;
    background: linear-gradient(180deg, rgba(16, 19, 26, 0) 0%, #10131a 55%);
}

/* 弹窗（前台） */
.dialog-mask, .modal-mask {
    position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
    background: rgba(8, 12, 20, .55); padding: 24px;
    opacity: 0; visibility: hidden; transition: .22s;
}
.dialog-mask.open, .modal-mask.open { opacity: 1; visibility: visible; }
.dialog {
    width: 100%; max-width: 300px; background: #fff; border-radius: 16px; padding: 22px 18px 16px;
    text-align: center;
}
.dialog p { margin: 0 0 18px; font-size: 15px; }
.dialog-btns { display: flex; gap: 10px; }
.dialog-btn {
    flex: 1; height: 42px; border: 0; border-radius: 10px; font-size: 14px; cursor: pointer;
}
.dialog-btn.ghost { background: #f2f5fa; color: #5d6a80; }
.dialog-btn.primary { background: linear-gradient(135deg, #1f8bff, #0b4fd6); color: #fff; font-weight: 600; }

.modal {
    width: 100%; max-width: 380px; max-height: 82vh; overflow-y: auto;
    background: #fff; border-radius: 18px; padding: 20px 18px 16px;
}
.modal h3 { margin: 0 0 14px; font-size: 17px; text-align: center; }
.modal-btns { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.modal-btn { min-width: 84px; height: 40px; border: 0; border-radius: 10px; font-size: 14px; cursor: pointer; }
.modal-btn.ghost { background: #f2f5fa; color: #5d6a80; }
.modal-btn.primary { background: linear-gradient(135deg, #1f8bff, #0b4fd6); color: #fff; font-weight: 600; }

/* 订单列表 */
.order-list { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.order-item { border: 1px solid #eef1f6; border-radius: 12px; padding: 12px; }
.order-item .order-top { display: flex; justify-content: space-between; font-size: 12px; color: #97a2b4; }
.order-item .order-name { font-size: 14px; margin: 7px 0 4px; font-weight: 600; }
.order-item .order-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #8b96a8; }
.order-item .order-amount { color: #e11d48; font-weight: 700; font-size: 15px; }
.order-status { padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.order-status.wait { background: #fff6e8; color: #b26a00; }
.order-status.paid { background: #e8f8ef; color: #12a05c; }
.order-empty { text-align: center; color: #a3adbf; font-size: 13px; padding: 24px 0; }
.loading { text-align: center; color: #a3adbf; font-size: 13px; padding: 18px 0; }

/* 制作同款系统 */
.same-mask { background: rgba(6, 9, 15, .78); }
.same-wrap { width: 100%; max-width: 340px; max-height: 84vh; display: flex; justify-content: center; }
.same-wrap img { width: 100%; max-height: 84vh; object-fit: contain; border-radius: 12px; }

/* 编辑资料 */
.edit-page { padding: 22px 16px 30px; }
.edit-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; }
.edit-avatar {
    width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
    background: #eef1f7; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(20, 35, 60, .12);
}
.edit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.upload-btn {
    border: 0; background: #eaf2ff; color: #0b58e0; font-size: 13px;
    padding: 7px 18px; border-radius: 20px; cursor: pointer;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; color: #5d6a80; margin-bottom: 7px; }
.form-row input {
    width: 100%; height: 46px; border-radius: 10px; border: 1px solid #e2e7ef;
    background: #fafbfd; padding: 0 13px; font-size: 14px; outline: none;
}
.btn-primary.big { height: 50px; font-size: 16px; }

/* 商品详情 */
.detail-carousel { height: 300px; }
.detail-info { background: #fff; padding: 16px; margin-bottom: 10px; }
.detail-price-row { display: flex; align-items: baseline; justify-content: space-between; }
.detail-price { color: #e11d48; font-size: 26px; font-weight: 800; }
.detail-original { color: #b3bcca; font-size: 13px; text-decoration: line-through; margin-left: 8px; }
.detail-sales { color: #97a2b4; font-size: 12px; }
.detail-title { margin: 10px 0 8px; font-size: 17px; line-height: 1.45; }
.detail-tags { display: flex; gap: 8px; }
.detail-tags span { font-size: 11px; color: #0b58e0; background: #eef4ff; padding: 4px 9px; border-radius: 6px; }
.detail-block { background: #fff; padding: 16px; margin-bottom: 10px; }
.detail-block h2 { margin: 0 0 10px; font-size: 15px; }
.detail-text { font-size: 14px; line-height: 1.8; color: #3a4a63; word-break: break-word; }
.detail-text.small { font-size: 13px; line-height: 1.75; }
.detail-text.muted { color: #a3adbf; }
.detail-bottom {
    position: fixed; bottom: calc(78px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; z-index: 35;
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-top: 1px solid #eef1f6; padding: 10px 16px;
}
.detail-bottom-price { flex: 1; display: flex; flex-direction: column; }
.detail-bottom-price span { font-size: 11px; color: #97a2b4; }
.detail-bottom-price b { color: #e11d48; font-size: 19px; }
.btn-buy {
    min-width: 132px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, #1f8bff, #0b4fd6); color: #fff;
    font-size: 15px; font-weight: 600; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(11, 79, 214, .25);
}
.btn-buy.disabled { background: #dfe5ef; color: #97a2b4; box-shadow: none; cursor: not-allowed; }

/* 确认订单 */
.checkout-head { display: flex; gap: 12px; background: #fff; padding: 16px; }
.checkout-cover { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #f2f5fa; flex: 0 0 92px; }
.checkout-cover img { width: 100%; height: 100%; object-fit: cover; }
.checkout-meta h2 { margin: 2px 0 10px; font-size: 15px; line-height: 1.5; }
.checkout-price { color: #e11d48; font-size: 20px; font-weight: 800; }
.checkout-block { background: #fff; margin-top: 10px; padding: 16px; }
.checkout-block h3 { margin: 0; font-size: 14px; }
.region-row { display: flex; gap: 10px; margin-top: 12px; }
.region-chip { flex: 1; position: relative; cursor: pointer; }
.region-chip input { position: absolute; opacity: 0; }
.region-chip span {
    display: block; text-align: center; padding: 11px 0; border-radius: 10px;
    border: 1px solid #e2e7ef; background: #fafbfd; color: #5d6a80; font-size: 14px;
}
.region-chip input:checked + span { border-color: #1f8bff; background: #eef4ff; color: #0b58e0; font-weight: 600; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-stock { font-size: 12px; color: #97a2b4; }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid #e2e7ef; border-radius: 10px; overflow: hidden; }
.step-btn { width: 38px; height: 36px; border: 0; background: #f6f8fb; color: #33405a; font-size: 17px; cursor: pointer; }
.stepper input {
    width: 48px; height: 36px; border: 0; text-align: center; font-size: 15px; outline: none;
    -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f3f8; }
.total-row span { color: #8b96a8; font-size: 13px; }
.total-row b { color: #e11d48; font-size: 20px; }
.checkout-bottom {
    position: fixed; bottom: calc(78px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; z-index: 35;
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-top: 1px solid #eef1f6; padding: 10px 16px;
}
.checkout-bottom-price { flex: 1; display: flex; flex-direction: column; }
.checkout-bottom-price span { font-size: 11px; color: #97a2b4; }
.checkout-bottom-price b { color: #e11d48; font-size: 19px; }

/* 收银台 */
.pay-head { background: #fff; padding: 26px 16px; text-align: center; }
.pay-head span { display: block; font-size: 12px; color: #97a2b4; }
.pay-head b { display: block; font-size: 32px; color: #e11d48; font-weight: 800; margin: 6px 0; }
.pay-head small { color: #8b96a8; font-size: 12px; }
.pay-methods { background: #fff; margin-top: 10px; padding: 16px; }
.pay-methods h3 { margin: 0 0 12px; font-size: 14px; }
.pay-method {
    width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer;
    border: 1px solid #eef1f6; background: #fff; border-radius: 12px;
    padding: 12px; margin-bottom: 10px; font-family: inherit; text-align: left;
}
.pay-balance-form { margin: 0; }
.pay-method-icon {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
}
.pay-method-icon.wechat { background: #12b76a; }
.pay-method-icon.balance { background: #f79009; }
.pay-method-text { flex: 1; }
.pay-method-text b { display: block; font-size: 14px; color: #1b2330; }
.pay-method-text small { display: block; font-size: 11px; color: #97a2b4; margin-top: 2px; }
.pay-method-arrow { color: #c3cad6; font-size: 18px; }
.pay-result { text-align: center; padding: 46px 20px; background: #fff; }
.pay-success-icon {
    width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 14px;
    background: #e8f8ef; color: #12a05c; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
}
.pay-result h2 { margin: 0 0 10px; font-size: 18px; }
.pay-result-amount { font-size: 30px; font-weight: 800; color: #e11d48; margin: 0 0 10px; }
.pay-result-meta { font-size: 12px; color: #8b96a8; line-height: 1.8; }
.pay-result-btns { display: flex; gap: 10px; margin-top: 24px; }
.pay-result-btns a { flex: 1; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; }
.btn-ghost { background: #f2f5fa; color: #5d6a80; }

/* toast */
.toast {
    position: fixed; left: 50%; bottom: 26%; transform: translateX(-50%) translateY(8px);
    z-index: 999; max-width: 78vw; padding: 10px 18px; border-radius: 22px;
    background: rgba(12, 16, 24, .86); color: #fff; font-size: 13px; line-height: 1.4;
    opacity: 0; transition: .25s; pointer-events: none; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 登录页：上次账号密码提示 */
.saved-tip {
    margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
    background: #eef4ff; color: #33507d; font-size: 12px; line-height: 1.6;
}
.saved-tip b { color: #0b58e0; }
.fill-link { color: #0b58e0; text-decoration: underline; cursor: pointer; }

/* ============================================================
   v1.2 视觉升级（覆盖层）：更干净的卡片化布局
   ============================================================ */
body.front { background: #f4f6fb; color: #1b2436; }

/* 顶部品牌栏 */
.topbar { background: #fff; border-bottom: 1px solid #edf0f6; box-shadow: 0 6px 18px rgba(20, 35, 60, .04); }
.brand-mark { background: linear-gradient(135deg, #4d8dff, #1f5ee8); color: #fff; border-radius: 14px; box-shadow: 0 6px 14px rgba(31, 94, 232, .28); }
.brand-text strong { font-size: 16px; letter-spacing: .5px; }
.brand-text small { color: #98a3b7; font-size: 11px; }
.online { background: #eaf8ef; color: #12a05c; font-size: 11px; padding: 5px 10px; border-radius: 20px; }

/* 我的：渐变英雄区 */
.me-head {
    position: relative; display: flex; align-items: center; gap: 15px;
    padding: 30px 20px 44px; margin: 0;
    background: linear-gradient(135deg, #2f74ff 0%, #1a46c8 100%);
    border-radius: 0 0 26px 26px;
    box-shadow: 0 12px 26px rgba(20, 58, 160, .22);
    color: #fff; overflow: hidden;
}
.me-head::after {
    content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px;
    border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.me-head::before {
    content: ""; position: absolute; left: -40px; bottom: -80px; width: 170px; height: 170px;
    border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.avatar-btn {
    width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%; padding: 0;
    border: 3px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 24px rgba(8, 30, 90, .30);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; z-index: 2;
}
.avatar-btn svg { width: 36px; height: 36px; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.me-info { position: relative; z-index: 2; min-width: 0; }
.me-info strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: .5px; line-height: 1.25; }
.me-badge {
    display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 20px;
    background: rgba(255, 255, 255, .16); font-size: 11px; color: rgba(255, 255, 255, .9);
}
.me-info small { display: block; margin-top: 5px; font-size: 11px; color: rgba(255, 255, 255, .68); }
.edit-chip {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
    color: #1a46c8; background: rgba(255, 255, 255, .95); text-decoration: none;
    border: 0; box-shadow: 0 4px 12px rgba(8, 30, 90, .18);
}

/* 余额 / 客服卡片：上移压住渐变区 */
.wallet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 0 16px; margin-top: -26px; position: relative; z-index: 5; }
.wallet-card {
    border: 0; text-align: left; cursor: pointer; font-family: inherit; color: inherit;
    background: #fff; border-radius: 16px; padding: 15px 14px;
    box-shadow: 0 10px 24px rgba(23, 43, 88, .10);
    display: flex; flex-direction: row; align-items: center; gap: 11px; min-height: 78px;
}
.wallet-ico {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.wallet-ico.balance { background: #eaf1ff; color: #1a5ce8; font-size: 16px; }
.wallet-ico.service { background: #ffeef1; color: #e11d48; }
.wallet-ico.service svg { width: 20px; height: 20px; }
.wallet-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wallet-info small { font-size: 11px; color: #94a0b4; letter-spacing: .3px; }
.wallet-info b { font-size: 20px; line-height: 1.15; color: #12348c; font-weight: 800; letter-spacing: .3px; }
.wallet-card.service .wallet-info b { font-size: 15px; color: #e11d48; font-weight: 700; }
.wallet-arrow { margin-left: auto; color: #c3cbd9; font-size: 18px; }
.wallet-card:active { transform: scale(.985); }

/* 小功能：整组圆角卡片 + 分割线 */
.me-group {
    margin: 16px 16px 0; background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 22px rgba(23, 43, 88, .07);
}
.me-btn {
    width: 100%; height: 55px; border: 0; border-radius: 0; cursor: pointer;
    background: #fff; color: #26324a; font-size: 15px; font-family: inherit;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; box-shadow: none; transition: background .15s;
}
.me-btn + .me-btn { border-top: 1px solid #f1f3f8; }
.me-btn:active { background: #f7f9fc; transform: none; }
.me-btn i { font-style: normal; color: #c3cbd9; font-size: 18px; }

/* 技术支持：底部深色细条，白字 */
.tech-support {
    margin-top: auto; padding: 13px 16px calc(13px + env(safe-area-inset-bottom));
    text-align: center; font-size: 11px; letter-spacing: 1.2px;
    color: rgba(255, 255, 255, .9); background: #131a29;
}

/* 弹窗：默认彻底隐藏，避免样式缺失时堆叠；打开为底部卡片 */
.dialog-mask, .modal-mask {
    display: none; position: fixed; inset: 0; z-index: 90;
    align-items: center; justify-content: center;
    background: rgba(9, 14, 24, .55); padding: 24px;
    opacity: 1; visibility: visible; transition: none;
}
.dialog-mask.open, .modal-mask.open { display: flex; }
.dialog { border-radius: 18px; padding: 24px 20px 18px; box-shadow: 0 20px 50px rgba(8, 15, 30, .28); }
.dialog p { font-size: 15px; font-weight: 600; }
.dialog-btns { gap: 12px; }
.dialog-btn { height: 44px; border-radius: 12px; font-size: 14px; }
.dialog-btn.ghost { background: #f3f5fa; color: #6b7789; }
.dialog-btn.primary { background: linear-gradient(135deg, #2f74ff, #1a46c8); }

.modal-mask { align-items: flex-end; padding: 0; }
.modal {
    width: 100%; max-width: 480px; max-height: 80vh; overflow-y: auto;
    border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 40px rgba(8, 15, 30, .20);
}
.modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.order-item { border: 1px solid #f0f3f8; border-radius: 14px; padding: 13px; background: #fbfcfe; }

/* 制作同款：全屏暗底，海报居中 */
.same-mask { background: rgba(6, 10, 18, .78); align-items: center !important; justify-content: center !important; padding: 20px !important; }
.same-wrap { width: 100%; max-width: 360px; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.same-wrap img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.same-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #222; font-size: 23px; line-height: 1; }
.same-close:active { background: #fff; }

/* 编辑资料 */
.edit-page { padding: 26px 18px 34px; }
.edit-avatar { width: 104px; height: 104px; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(23, 43, 88, .14); background: #eef2f9; }
.edit-avatar-wrap { gap: 14px; margin-bottom: 26px; }
.upload-btn { background: #eaf1ff; color: #1a5ce8; font-weight: 600; padding: 8px 22px; border-radius: 22px; }
.form-row label { font-size: 12.5px; color: #7c88a0; }
.form-row input { height: 48px; border-radius: 12px; background: #fff; border: 1px solid #e6ebf3; box-shadow: 0 4px 12px rgba(23, 43, 88, .04); }
.btn-primary.big { height: 52px; border-radius: 14px; background: linear-gradient(135deg, #2f74ff, #1a46c8); box-shadow: 0 12px 26px rgba(26, 70, 200, .26); }

/* 商品卡片细节 */
.product-card { border-radius: 16px; box-shadow: 0 8px 22px rgba(23, 43, 88, .07); }
.product-cover { aspect-ratio: 1 / 1; }
.stock-tag { border-radius: 8px; backdrop-filter: blur(4px); }
.product-meta .price { font-size: 16px; }
.product-meta .sales { color: #98a3b7; }

/* 登录注册 */
.auth-tabs { background: #e9edf5; border-radius: 12px; padding: 4px; }
.auth-tab { border-radius: 9px; font-size: 14px; }
.panel { border-radius: 18px; padding: 20px 18px; box-shadow: 0 10px 26px rgba(23, 43, 88, .07); }
.field input { height: 48px; border-radius: 12px; background: #f8fafd; }
.btn-primary { border-radius: 13px; }

/* 结算 / 收银台 */
.checkout-head { border-radius: 0 0 18px 18px; }
.checkout-cover { border-radius: 12px; }
.region-chip { border-radius: 12px; }
.step-btn { border-radius: 9px; }
.detail-bottom { box-shadow: 0 -8px 24px rgba(23, 43, 88, .10); }
.pay-method { border-radius: 14px; }

/* 收银台 v1.2 */
.pay-head {
    background: linear-gradient(135deg, #2f74ff 0%, #1a46c8 100%);
    color: #fff; border-radius: 0 0 24px 24px; padding: 30px 20px 36px;
    box-shadow: 0 12px 26px rgba(20, 58, 160, .18);
}
.pay-head span { color: rgba(255, 255, 255, .72); font-size: 12px; letter-spacing: 1px; }
.pay-head b { color: #fff; font-size: 40px; font-weight: 800; margin: 8px 0 6px; letter-spacing: .5px; }
.pay-head small { color: rgba(255, 255, 255, .72); font-size: 12px; }
.pay-methods {
    background: #fff; margin: 16px 16px 0; padding: 18px 16px;
    border-radius: 18px; box-shadow: 0 10px 26px rgba(23, 43, 88, .07);
}
.pay-methods h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: #26324a; }
.pay-method {
    border-radius: 14px; background: #f8fafd; border: 1px solid #edf1f8;
    margin-bottom: 10px; padding: 14px;
}
.pay-method:last-child { margin-bottom: 0; }
.pay-method-icon { border-radius: 11px; }
.pay-method-text b { font-size: 15px; }
.pay-method-text small { color: #98a3b7; }
.pay-result { padding: 40px 20px; }
.pay-result h2 { font-size: 20px; margin: 14px 0 6px; }

/* 商品详情 / 确认订单 v1.2 卡片化 */
.detail-info, .detail-block, .checkout-head, .checkout-block {
    margin: 12px 16px; border-radius: 16px;
    box-shadow: 0 8px 22px rgba(23, 43, 88, .06);
}
.checkout-head { padding: 15px; }
.checkout-block { margin-top: 12px; padding: 16px; }
.checkout-block h3 { font-size: 14px; font-weight: 700; }
.detail-bottom { background: #fff; border-radius: 0; box-shadow: 0 -10px 26px rgba(23, 43, 88, .12); }

/* v1.3 技术支持：只显示一行浅灰小字，不再用黑色条包裹 */
.tech-support {
    margin-top: auto;
    padding: 18px 16px calc(92px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 11px;
    letter-spacing: .8px;
    color: #9aa5b8;
    background: none;
    box-shadow: none;
}

/* 1.0 顶部栏移除后的浮动返回 */
.float-back {
    position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 25;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92); color: #16202e;
    font-size: 24px; text-decoration: none;
    box-shadow: 0 6px 18px rgba(16, 28, 50, .14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* 首页 页面 / 刷视频 切换 */
.home-switch {
    display: flex; gap: 8px; padding: 12px 12px 4px;
    background: #f6f7fa;
    position: sticky; top: 0; z-index: 18;
}
.switch-btn {
    border: 0; border-radius: 999px; padding: 8px 18px;
    font-size: 13px; font-family: inherit; font-weight: 600;
    background: #e9edf4; color: #5e6b80; cursor: pointer;
    transition: background .18s, color .18s, transform .1s;
}
.switch-btn.active { background: linear-gradient(135deg,#2f74ff,#1f4fd8); color: #fff; box-shadow: 0 6px 16px rgba(47,116,255,.24); }
.switch-btn:active { transform: scale(.97); }

/* 竖屏刷视频 */
.video-feed {
    height: calc(100vh - 158px);
    min-height: 480px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    background: #000;
    margin-top: 8px;
}
.video-slide {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.video-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-title {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    padding: 18px 16px 44px;
    color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    pointer-events: none;
}
.video-toggle {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; border: 0; z-index: 4;
    background: rgba(0, 0, 0, .42); color: #fff; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .18s;
    cursor: pointer;
}
.video-toggle.show { opacity: 1; visibility: visible; }
.video-empty {
    height: 100%; display: flex; align-items: center; justify-content: center;
    color: #8892a4; font-size: 14px; background: #10131a;
}

/* 1.0 老板端底部导航：白色圆角悬浮底栏 + 选中项浅蓝胶囊 */
.tabbar {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    max-width: 460px;
    background: #ffffff;
    border-top: 0;
    border-radius: 18px;
    padding: 7px 8px;
    box-shadow: 0 12px 30px rgba(16, 28, 50, .14);
}
.tab-item { color: #7c8799; }
.tab-icon {
    width: 52px; height: 38px; border-radius: 13px;
    color: #7c8799; background: transparent;
    transition: background .2s, color .2s, box-shadow .2s;
}
.tab-text { color: #8d98aa; }
.tab-item.active .tab-icon {
    background: #eef4ff; color: #1f4fd8;
    border-radius: 13px;
    box-shadow: inset 0 0 0 1px #dce7ff;
}
.tab-item.active .tab-text { color: #10131a; font-weight: 700; }

/* 1.0 下单游戏昵称 / 订单结单 */
.checkout-tip { color: #96a1b3; font-size: 12px; margin: 8px 0 0; }
.order-extra { color: #8792a6; font-size: 12px; margin: 2px 0 8px; line-height: 1.6; }
.order-settle {
    width: 100%; height: 38px; margin-top: 10px; border: 0; border-radius: 10px;
    background: linear-gradient(135deg,#2f6bff,#1f4fd8); color: #fff; font-size: 13px; font-weight: 700; font-family: inherit; box-shadow: 0 8px 18px rgba(47,107,255,.22);
}

/* 1.0 易支付：在线支付按钮 / 未配置状态 */
a.pay-method { text-decoration: none; color: inherit; }
.pay-method-disabled { opacity: .55; pointer-events: none; }

/* ================= 老板端五栏导航 ================= */
.tabbar { padding: 7px 6px; }
.tab-item { gap: 3px; }
.tab-icon { width: 44px; height: 36px; border-radius: 12px; }
.tab-icon svg { width: 20px; height: 20px; }
.tab-text { font-size: 10.5px; letter-spacing: .3px; }

/* ================= 打手浏览 ================= */
.booster-tabs {
    display: flex; gap: 10px; margin: 14px 16px 6px;
}
.booster-tab {
    flex: 1; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f4fa; color: #6d788c; font-size: 15px; font-weight: 700;
    text-decoration: none; border: 1px solid #e6ebf5;
}
.booster-tab.active {
    color: #1f4fd8; background: #eaf1ff; border-color: #cddcff;
    box-shadow: 0 7px 16px rgba(31,79,216,.10);
}
.booster-tab small { font-size: 11px; font-weight: 500; margin-left: 5px; opacity: .8; }
.booster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px 24px; }
.booster-card {
    background: #fff; border-radius: 16px; padding: 18px 10px 15px;
    box-shadow: 0 6px 18px rgba(26,44,80,.07); text-align: center;
}
.booster-avatar {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: linear-gradient(135deg,#3d7bff,#1f4fd8); color: #fff; font-size: 20px; font-weight: 700;
}
.booster-avatar img { width: 100%; height: 100%; object-fit: cover; }
.booster-card strong { display: block; font-size: 15px; color: #1a2232; }
.booster-gender {
    display: inline-block; margin-top: 7px; padding: 3px 9px; border-radius: 999px;
    font-size: 11px; color: #4d6fa8; background: #edf3ff;
}
.booster-gender.female { color: #a24d77; background: #fff0f6; }

/* ================= 消息页 ================= */
.msg-hero { margin: 18px 16px 0; }
.msg-official {
    width: 100%; border: 0; font-family: inherit; text-align: left;
    border-radius: 16px; padding: 18px 18px; color: #fff;
    background: linear-gradient(135deg,#2f6bff,#1747c8);
    box-shadow: 0 12px 26px rgba(31,79,216,.24);
    display: flex; align-items: center; gap: 14px;
}
.msg-official-icon {
    width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.2); font-size: 20px;
}
.msg-official-text { flex: 1; }
.msg-official-text b { display: block; font-size: 16px; }
.msg-official-text small { display: block; margin-top: 5px; font-size: 12px; opacity: .8; }
.msg-official-arrow { font-size: 22px; opacity: .85; }

.msg-service {
    margin: 14px 16px 0; width: calc(100% - 32px); border: 1px solid #e7ecf6; font-family: inherit;
    border-radius: 16px; padding: 17px 18px; background: #fff; color: #1a2232;
    box-shadow: 0 6px 18px rgba(26,44,80,.06);
    display: flex; align-items: center; gap: 14px; text-align: left;
}
.msg-service-icon {
    width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px;
    display: flex; align-items: center; justify-content: center;
    background: #fff0f4; font-size: 20px;
}
.msg-service-text { flex: 1; }
.msg-service-text b { display: block; font-size: 15px; }
.msg-service-text small { display: block; margin-top: 4px; font-size: 12px; color: #96a1b3; }
.msg-service-arrow { color: #aeb8c8; font-size: 22px; }

.official-list { max-height: 52vh; overflow: auto; margin-top: 14px; }
.official-item { padding: 13px 0; border-bottom: 1px solid #eef2f8; }
.official-item:last-child { border-bottom: 0; }
.official-item p { margin: 0; color: #2b3445; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.official-item small { display: block; margin-top: 6px; color: #a2adbd; font-size: 11px; }

/* 消息页订单聊天 */
.chat-list { margin: 14px 14px 0; padding: 0 14px 6px; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(22,40,78,.06); }
.chat-list h3 { margin: 0; padding: 14px 0 10px; font-size: 14px; color: #26334a; }
.chat-list-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f1f4f9; text-decoration: none; color: #1b2433; }
.chat-peer-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: #e9eff9; display: flex; align-items: center; justify-content: center; color: #36598f; font-size: 13px; font-weight: 700; }
.chat-peer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-peer-main { flex: 1; min-width: 0; }
.chat-peer-main b { display: block; font-size: 14px; margin-bottom: 3px; }
.chat-peer-main small { display: block; color: #8f9aac; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-peer-time { flex: none; color: #a2adbd; font-size: 10px; }
.chat-peer-arrow { flex: none; color: #c4cbd7; font-size: 15px; }

/* 全部订单：状态与操作 */
.order-status.doing { background: #fff4e5; color: #a86600; }
.order-status.review { background: #eef4ff; color: #2459c9; }
.order-status.done { background: #e8f8ef; color: #0b8a52; }
.order-review-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; background: #fff1f1; color: #b92f2f; font-size: 12px; line-height: 1.6; }
.order-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.order-chat, .order-settle { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 38px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; font-family: inherit; }
.order-chat { color: #2f65d6; background: #eff4ff; border: 1px solid #dfe8ff; }
.order-settle { color: #fff; background: #2f6fef; border: 0; box-shadow: 0 6px 14px rgba(47,111,239,.2); }

/* 底部导航最终样式：接近微信小程序，白底整条 + 细分割线 + 线性图标 */
.phone { padding-bottom: 68px; }
.tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; z-index: 30;
    display: flex; align-items: stretch;
    margin: 0; padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
    background: #ffffff; border-top: 1px solid #e4e8ee;
    border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; color: #7d8592; text-decoration: none; }
.tab-icon {
    width: 30px; height: 28px; border-radius: 0; background: transparent;
    display: flex; align-items: center; justify-content: center; color: #7d8592;
    transition: color .15s;
}
.tab-icon svg { width: 22px; height: 22px; }
.tab-text { font-size: 11px; line-height: 15px; color: #7d8592; letter-spacing: .1px; font-weight: 400; transition: color .15s; }
.tab-item.active .tab-icon { background: transparent; color: #1a1f29; box-shadow: none; border-radius: 0; }
.tab-item.active .tab-icon svg { stroke-width: 1.95; }
.tab-item.active .tab-text { color: #1a1f29; font-weight: 600; }

/* ================= 1.0 前台视觉收口：更接近日常小程序 ================= */
body.front { background: #edf0f4; }
.page-head h2 { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.home-switch { padding: 10px 14px 6px; background: transparent; }
.switch-btn { border-radius: 7px; padding: 7px 16px; background: #e8ecf2; box-shadow: none; }
.switch-btn.active { background: #1f2937; box-shadow: none; }
.carousel { border-radius: 10px; margin: 8px 12px 0; width: calc(100% - 24px); height: 208px; box-shadow: none; }
.notice-bar { margin: 10px 14px 0; border-radius: 7px; box-shadow: none; }
.cat-tabs { padding: 12px 14px 10px; }
.cat-tab { border-radius: 6px; box-shadow: none; border: 1px solid #e7ebf1; }
.cat-tab.active { background: #1f2937; color: #fff; border-color: #1f2937; box-shadow: none; }
.product-grid { padding: 2px 14px 22px; gap: 9px; }
.product-card { border-radius: 9px; box-shadow: none; border: 1px solid #eceff3; }
.product-cover { aspect-ratio: 1 / 0.88; }
.product-body { padding: 9px 9px 10px; }
.product-body h3 { font-size: 13px; }
.msg-page-head { padding-bottom: 10px; }

/* 消息页：三张同尺寸、同底色卡片 */
.msg-list { padding: 0 14px; display: flex; flex-direction: column; gap: 9px; }
.msg-row {
    width: 100%; height: 72px; border: 1px solid #e8ecf1; border-radius: 9px;
    background: #fff; display: flex; align-items: center; gap: 12px; padding: 0 13px;
    color: #192231; font-family: inherit; text-align: left; cursor: pointer;
    box-shadow: none;
}
.msg-row:active { background: #fbfcfd; }
.msg-row-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.msg-row-icon svg { width: 22px; height: 22px; }
.msg-row-icon.blue { background: #edf3ff; color: #2463c9; }
.msg-row-icon.amber { background: #fff3df; color: #b06a08; }
.msg-row-icon.rose { background: #fff0f2; color: #c65267; }
.msg-row-text { flex: 1; min-width: 0; }
.msg-row-text b { display: block; font-size: 15px; line-height: 1.3; color: #192231; }
.msg-row-text small { display: block; margin-top: 4px; font-size: 11.5px; color: #939dad; }
.msg-row-arrow { flex: none; color: #b9c1cc; font-size: 21px; }
.msg-badge {
    flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #e33b45; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}
.chat-list { border-radius: 9px; box-shadow: none; border: 1px solid #e8ecf1; }
.system-msg-list { max-height: 52vh; overflow: auto; }
.system-msg-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.system-msg-item:last-child { border-bottom: 0; }
.system-msg-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 6px; border-radius: 50%; background: #e33b45; }
.system-msg-item p { margin: 0; color: #2b3445; font-size: 13px; line-height: 1.65; }
.system-msg-item small { display: block; margin-top: 5px; color: #a0a9b6; font-size: 11px; }

/* 系统模板2：搜索框 + 公告下两张功能图 */
.home-search { display: flex; gap: 8px; margin: 10px 14px 0; }
.home-search input {
    flex: 1; min-width: 0; height: 40px; border: 1px solid #f2c9d5; border-radius: 7px;
    background: #fff; padding: 0 12px; font-size: 13px; color: #3f2830; outline: none;
}
.home-search input::placeholder { color: #b78b98; }
.home-search button {
    flex: none; width: 62px; height: 40px; border: 0; border-radius: 7px;
    background: #e9557c; color: #fff; font-size: 13px; font-weight: 600; font-family: inherit;
}
.home-feature-row { display: flex; gap: 9px; margin: 10px 14px 0; }
.home-feature-btn {
    flex: 1; min-width: 0; display: block; border-radius: 8px; overflow: hidden;
    background: #fff; border: 1px solid #f6d4de;
}
.home-feature-btn img { width: 100%; height: 101px; object-fit: cover; }
.home-pink .carousel { margin-top: 10px; }
.home-pink .notice-bar { margin-top: 16px; }
.home-pink .cat-tabs { padding-top: 16px; }

/* 下单说明页 */
.notice-page { padding: 2px 14px 26px; }
.notice-card { background: #fff; border: 1px solid #e9edf2; border-radius: 9px; padding: 18px 15px; }
.notice-card h1 { margin: 0 0 12px; font-size: 18px; color: #1d2635; }
.notice-card p { margin: 0; color: #4b576a; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }

/* 粉色主题：所有老板端页面背景、分类高亮、消息图标 */
body.theme-pink { background: #f9e9ee; }
.theme-pink .phone { background: #fff5f7; box-shadow: none; }
.theme-pink .home-switch { background: transparent; }
.theme-pink .switch-btn { background: #f8dde6; color: #8a5365; }
.theme-pink .switch-btn.active { background: #e9557c; color: #fff; }
.theme-pink .cat-tab { background: #fff; color: #7e5966; border-color: #f4d7df; }
.theme-pink .cat-tab.active { background: #e9557c; color: #fff; border-color: #e9557c; }
.theme-pink .page-head h2 { color: #482b34; }
.theme-pink .page-head p { color: #a97b8a; }
.theme-pink .msg-row { border-color: #f2d8df; }
.theme-pink .msg-row-icon.blue, .theme-pink .msg-row-icon.rose { background: #ffe5ec; color: #d84670; }
.theme-pink .msg-row-text b { color: #40262f; }
.theme-pink .msg-row-arrow { color: #d9a6b6; }
.theme-pink .chat-list { border-color: #f2d8df; background: #fff; }
.theme-pink .product-card { border-color: #f5dce4; }
.theme-pink .notice-card { border-color: #f3d5de; }
.theme-pink .tabbar { background: #fff; border-top-color: #f0d9e1; }
.theme-pink #officialMsgBtn,
.theme-pink #serviceBtn { background: #fff1f5; border-color: #f2c8d6; }
.theme-pink #officialMsgBtn .msg-row-text b,
.theme-pink #serviceBtn .msg-row-text b { color: #a62f51; }

/* ============ 系统模板2：全站粉色 + 白色底栏 / 粉色图标 ============ */
body.theme-pink { background: #f7e2e9; }
.theme-pink .phone { background: #fff2f6; }
.theme-pink .tabbar {
    background: #ffffff;
    border-top: 1px solid #f0d9e1;
}
.theme-pink .tab-item { color: #c45170; }
.theme-pink .tab-icon { color: #e9557c; }
.theme-pink .tab-text { color: #b04562; }
.theme-pink .tab-item.active .tab-icon { color: #d62f5c; }
.theme-pink .tab-item.active .tab-text { color: #9e2748; }
.theme-pink .brand-mark { background: linear-gradient(135deg, #f07a9c, #d63c68); box-shadow: 0 6px 14px rgba(214, 60, 104, .24); }
.theme-pink .online { background: #fff0d8; color: #a56c00; }
.theme-pink .online i { background: #e9557c; }
.theme-pink .me-head { background: linear-gradient(135deg, #f27b9d 0%, #d63c68 100%); }
.theme-pink .me-head::after { background: rgba(255, 255, 255, .16); }
.theme-pink .me-head::before { background: rgba(255, 255, 255, .10); }
.theme-pink .wallet-card b, .theme-pink .wallet-card:nth-child(2) b { color: #c02d55; }
.theme-pink .wallet-ico.balance { background: #ffe6ee; color: #d63c68; }
.theme-pink .dot.active { background: #e9557c; }
.theme-pink .auth-tab.active { color: #c02d55; }
.theme-pink .upload-btn { background: #ffe6ee; color: #c02d55; }
.theme-pink .fill-link, .theme-pink .saved-tip b { color: #c02d55; }
.theme-pink .btn-primary,
.theme-pink .btn-buy,
.theme-pink .dialog-btn.primary,
.theme-pink .modal-btn.primary,
.theme-pink .order-settle {
    background: linear-gradient(135deg, #ee6b90 0%, #d63c68 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(214, 60, 104, .22);
}
.theme-pink .order-chat { color: #b83058; background: #ffeaf0; border-color: #f4c4d3; }
.theme-pink .detail-tags span, .theme-pink .order-status-tag { color: #b83058; background: #ffeaf0; }
.theme-pink .region-chip input:checked + span { border-color: #e9557c; background: #ffeaf0; color: #b83058; }
.theme-pink .checkout-bottom { background: #fff5f8; border-top-color: #f2d2dc; }
.theme-pink .detail-bottom { background: #fff5f8; }
.theme-pink .pay-head { background: #fff5f8; }
.theme-pink .edit-chip { color: #b83058; box-shadow: 0 4px 12px rgba(190, 55, 92, .18); }
.theme-pink .tech-support { background: #ffeaf0; color: #a82b4c; }

/* ================= v1.0.24：抽奖横幅 / 我的页工具 / 订单详情 / 指定打手 ================= */

/* 抽奖横幅 */
.lottery-banner {
    display: block; width: calc(100% - 28px); margin: 10px 14px 0; padding: 0;
    border: 0; background: transparent; border-radius: 10px; overflow: hidden;
    cursor: pointer; box-shadow: 0 6px 16px rgba(30, 22, 6, .12);
    -webkit-tap-highlight-color: transparent;
}
.lottery-banner img { display: block; width: 100%; height: auto; aspect-ratio: 750 / 153; object-fit: cover; }
.lottery-banner:active { transform: scale(.99); }

/* 我的页：全部订单按钮 */
.me-all-orders {
    display: flex; align-items: center; gap: 12px; width: calc(100% - 32px);
    margin: 16px 16px 0; padding: 14px 15px; border: 0; border-radius: 16px;
    background: #fff; color: #202b40; text-align: left; font-family: inherit; cursor: pointer;
    box-shadow: 0 8px 22px rgba(23, 43, 88, .08);
}
.me-all-orders-icon {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #edf2fb; color: #33527e;
}
.me-all-orders-icon svg { width: 22px; height: 22px; }
.me-all-orders-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.me-all-orders-text b { font-size: 15px; font-weight: 700; }
.me-all-orders-text small { font-size: 11px; color: #8b96a8; }
.me-all-orders-arrow { margin-left: auto; color: #b8c1d0; font-size: 19px; }
.me-all-orders:active { transform: scale(.99); }

/* 余额 / 客服下移一点 */
.wallet-row { margin-top: 12px; }

/* 小功能：高圆角卡片，五列，小图标+文字，不是一排长方形 */
.me-tools {
    margin: 16px 16px 0; padding: 14px 7px 10px; background: #fff;
    border-radius: 20px; box-shadow: 0 8px 24px rgba(23, 43, 88, .07);
}
.me-tools-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 15px; column-gap: 1px;
}
.me-tool {
    min-width: 0; border: 0; background: transparent; padding: 1px 0;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    color: #4d586b; font-size: 10.5px; font-family: inherit; text-decoration: none;
    line-height: 1.25; cursor: pointer; text-align: center;
}
.me-tool-icon {
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: #f4f6fa; color: #35425a;
}
.me-tool-icon svg { width: 21px; height: 21px; }
.me-tool-icon.logo { background: #fff; box-shadow: inset 0 0 0 1px #edf0f5; }
.me-tool-icon.logo img { width: 29px; height: 29px; object-fit: contain; border-radius: 7px; }
.me-tool span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-tool:active .me-tool-icon { transform: scale(.94); background: #eef2f8; }

/* 订单完整详情弹窗 */
.order-detail-mask { align-items: flex-end; padding: 0; }
.order-detail-modal {
    width: 100%; max-width: 480px; height: 84vh; max-height: 84vh;
    display: flex; flex-direction: column; padding: 0;
    border-radius: 22px 22px 0 0; overflow: hidden;
}
.order-detail-head {
    flex: none; display: flex; align-items: center; justify-content: space-between;
    padding: 18px 18px 12px; border-bottom: 1px solid #f0f3f8;
}
.order-detail-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.order-detail-close {
    width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3f5fa;
    color: #6b7789; font-size: 20px; line-height: 1; cursor: pointer;
}
.order-detail-scroll {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 16px 18px calc(22px + env(safe-area-inset-bottom));
}
.order-detail-card { border-radius: 16px; background: #f9fafd; border: 1px solid #eef1f6; padding: 15px; margin-bottom: 12px; }
.order-detail-status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.order-detail-status-row .order-status,
.order-detail-status-row .order-status { font-size: 12px; }
.order-detail-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #202b40; }
.order-detail-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 12.5px; color: #6f7b90; line-height: 1.6; }
.order-detail-row span:first-child { flex: none; color: #98a2b3; }
.order-detail-row span:last-child { text-align: right; color: #344054; word-break: break-all; }
.order-detail-note { margin: 9px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff; color: #4b5565; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.order-detail-note b { color: #9a6a13; font-size: 11px; display: block; margin-bottom: 4px; }
.order-detail-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.order-detail-actions .order-action {
    flex: 1 1 auto; min-width: 110px; height: 42px; border-radius: 11px; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer;
}
.order-action.chat { background: #eef3ff; color: #2455bb; }
.order-action.confirm { background: #eaf7ef; color: #137a3d; }
.order-action.refund { background: #fff1f3; color: #c0264c; }
.order-action.disabled { background: #f3f5f8; color: #97a2b3; }
.order-detail-refund-tip { margin: 8px 0 0; font-size: 11px; color: #a06a1e; line-height: 1.6; }

/* 下单：备注 / 接单方式 / 指定打手 */
.required-optional { font-size: 10px; font-weight: 400; color: #9aa5b5; margin-left: 4px; }
#orderNote {
    width: 100%; min-height: 80px; border: 1px solid #e2e8f2; border-radius: 12px;
    padding: 11px 12px; font-family: inherit; font-size: 14px; color: #233047;
    resize: vertical; outline: none; background: #fff; line-height: 1.6;
}
#orderNote:focus { border-color: #2f74ff; box-shadow: 0 0 0 3px rgba(47,116,255,.10); }
.assign-row { display: flex; gap: 10px; }
.assign-chip {
    flex: 1; height: 42px; border: 1px solid #e2e8f2; border-radius: 10px;
    background: #fff; color: #5d6a80; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer;
}
.assign-chip.active { border-color: #2f74ff; color: #1e50d0; background: #eef3ff; box-shadow: inset 0 0 0 1px #2f74ff; }
.designated-box { margin-top: 10px; }
.designated-select {
    width: 100%; height: 42px; border: 1px dashed #dbe4f0; border-radius: 10px;
    background: #fbfcfe; color: #44536a; font-size: 13px; font-family: inherit;
    display: flex; align-items: center; justify-content: space-between; padding: 0 12px; cursor: pointer;
}
.designated-select i { font-style: normal; color: #a4afbe; }

/* 指定打手选择弹窗 */
.booster-pick-mask { align-items: flex-end; padding: 0; }
.booster-pick-modal {
    width: 100%; max-width: 480px; height: auto; max-height: 82vh;
    padding: 0; display: flex; flex-direction: column; overflow: hidden;
}
.booster-pick-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.booster-pick-head h3 { margin: 0; font-size: 17px; }
.booster-pick-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3f5fa; color: #6b7789; font-size: 20px; line-height: 1; }
.booster-search {
    flex: none; display: flex; gap: 8px; padding: 8px 16px 12px;
    background: #fff; border-bottom: 1px solid #f0f3f8;
}
.booster-search input {
    flex: 1; height: 40px; border: 1px solid #e2e8f2; border-radius: 10px;
    background: #f8fafc; padding: 0 11px; font-size: 13px; font-family: inherit; outline: none;
}
.booster-search input:focus { border-color: #2f74ff; background: #fff; }
.booster-search button {
    width: 60px; flex: none; border: 0; border-radius: 10px;
    background: #1f4fd8; color: #fff; font-size: 13px; font-weight: 600; font-family: inherit;
}
.booster-pick-list { flex: 0 1 auto; max-height: 54vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); }
.booster-pick-row {
    width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 8px;
    border: 0; border-bottom: 1px solid #f1f3f8; background: transparent;
    text-align: left; font-family: inherit; color: #26324a; cursor: pointer;
}
.booster-pick-row.selected { background: #f1f5ff; }
.booster-pick-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden; background: #eef2f8; display: flex; align-items: center; justify-content: center; color: #6c7890; font-weight: 700; }
.booster-pick-avatar img { width: 100%; height: 100%; object-fit: cover; }
.booster-pick-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.booster-pick-info b { font-size: 14px; font-weight: 700; }
.booster-pick-info small { font-size: 11px; color: #8b96a8; }
.booster-pick-go { flex: none; font-size: 12px; color: #2455bb; font-weight: 600; }
.booster-pick-empty { padding: 40px 0; text-align: center; color: #97a2b3; font-size: 13px; }

/* 模板2粉色适配 */
.theme-pink .me-all-orders { background: #fff; box-shadow: 0 8px 22px rgba(173, 80, 108, .10); }
.theme-pink .me-all-orders-icon,
.theme-pink .me-tool-icon { background: #fff0f4; color: #b83058; }
.theme-pink .me-tool { color: #8b5363; }
.theme-pink .me-tool-icon.logo { background: #fff; }
.theme-pink .me-tools { box-shadow: 0 8px 24px rgba(173, 80, 108, .10); }
.theme-pink .assign-chip.active { border-color: #e9557c; color: #b83058; background: #fff3f6; box-shadow: inset 0 0 0 1px #e9557c; }
.theme-pink .designated-select { border-color: #f0d5de; background: #fff8fa; color: #91495f; }
.theme-pink .booster-search button { background: linear-gradient(135deg, #ee6b90, #d63c68); }
.theme-pink .booster-search input:focus { border-color: #ee8aa7; background: #fff; }
.theme-pink .booster-pick-go { color: #bb3a5f; }
.theme-pink .booster-pick-row.selected { background: #fff2f6; }
.theme-pink .boost-selected,
.theme-pink .order-action.chat { background: #fff1f5; color: #b83058; }
.theme-pink .order-detail-head { border-bottom-color: #f3dde4; }

.order-note-preview { margin: 0 0 8px; padding: 7px 9px; border-radius: 8px; background: #fff9ed; color: #7a5a1e; font-size: 11.5px; line-height: 1.55; word-break: break-word; }
.order-detail-hint { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #eef1f6; text-align: right; color: #9aa5b6; font-size: 11px; }
.order-detail-hint i { font-style: normal; margin-left: 4px; color: #b9c2d1; }
.order-item { cursor: pointer; }

/* 下单页：底部两栏固定，给内容留出完整滚动空间 */
.checkout-page .phone { padding-bottom: 210px; }
