/* ==========================================================
   pinpaifang/assets/brand.css — 品牌方服务站样式
   在主站 style.css 基础上补充（深色主题一致）
   ========================================================== */

body.bp-mode { background: #0d1020; min-height: 100vh; display: flex; flex-direction: column; }

/* 顶栏 */
.bp-topbar {
    position: sticky; top: 0; z-index: 60;
    background: rgba(13, 16, 32, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.bp-topbar-inner {
    max-width: 1100px; margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.bp-logo { font-size: 18px; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; }
.bp-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.bp-nav::-webkit-scrollbar { display: none; }
.bp-nav a {
    color: var(--text-dim); text-decoration: none; font-size: 14px; white-space: nowrap;
    padding: 8px 13px; border-radius: 10px; transition: .2s;
}
.bp-nav a:hover { color: var(--text); background: var(--bg-soft); }
.bp-nav a.active { color: #fff; background: var(--primary); }

.bp-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.bp-footer {
    text-align: center; color: var(--text-dim); font-size: 12px;
    padding: 20px 12px calc(20px + var(--safe-bottom));
    border-top: 1px solid var(--border);
}

/* 首页 Hero */
.bp-hero {
    text-align: center; padding: 46px 20px 34px;
    background: linear-gradient(160deg, rgba(108, 123, 255, .16), rgba(108, 123, 255, .03));
    border: 1px solid var(--border); border-radius: 20px; margin-bottom: 18px;
}
.bp-hero h1 { font-size: 28px; margin-bottom: 10px; }
.bp-hero p { color: var(--text-dim); font-size: 15px; }
.bp-hero .btn { margin-top: 20px; padding: 13px 34px; font-size: 16px; }

/* 首页区块 */
.bp-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.bp-card h2 { font-size: 17px; margin-bottom: 14px; }
.bp-steps { counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.bp-steps li {
    list-style: none; position: relative; padding-left: 42px;
    color: var(--text-dim); font-size: 14px; line-height: 1.7;
}
.bp-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(108, 123, 255, .18); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.bp-notice li { list-style: none; padding-left: 20px; position: relative; color: var(--text-dim); font-size: 14px; line-height: 1.9; }
.bp-notice li::before { content: '•'; position: absolute; left: 4px; color: var(--orange); }

/* 功能入口网格 */
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bp-grid a {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 22px 10px; text-decoration: none; color: var(--text);
    font-size: 14px; transition: .2s;
}
.bp-grid a:hover { border-color: var(--primary); transform: translateY(-2px); }
.bp-grid a .ic { font-size: 26px; }

/* 页头 */
.bp-page-head { margin-bottom: 18px; }
.bp-page-head h1 { font-size: 22px; }
.bp-page-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* 键值信息卡（寄样地址 / 账号资料 / 客服通用） */
.bp-kv { display: flex; flex-direction: column; gap: 10px; }
.bp-kv-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 10px; padding: 13px 16px; font-size: 14px;
}
.bp-kv-row .k { color: var(--text-dim); flex-shrink: 0; }
.bp-kv-row .v { font-weight: 600; text-align: right; word-break: break-all; }

/* 复制按钮 */
.bp-copy-btn { flex-shrink: 0; }

/* 二维码 */
.bp-qr { text-align: center; margin: 6px 0 14px; }
.bp-qr img {
    width: 220px; height: 220px; object-fit: cover;
    border-radius: 14px; border: 1px solid var(--border); background: #fff;
    cursor: zoom-in;
    display: block; margin-left: auto; margin-right: auto; /* 二维码始终水平居中 */
}
.bp-qr .no-qr {
    width: 220px; height: 220px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed var(--border); border-radius: 14px;
    color: var(--text-dim); font-size: 13px; padding: 20px; text-align: center;
}

/* 登记弹窗 */
.bp-modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; overflow-y: auto;
}
.bp-modal-box { width: 100%; max-width: 420px; padding: 26px 24px; }
.bp-modal-title { font-size: 18px; margin-bottom: 6px; }
.bp-modal-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; line-height: 1.6; }
.bp-modal-err { color: #ff8f9b; font-size: 13px; min-height: 20px; margin: 4px 0 8px; }
.bp-modal-btn { width: 100%; padding: 13px; font-size: 15px; }
.req { color: #ff8f9b; font-style: normal; }

/* 商品列表（商品查询页）：搜索栏美化（胶囊 + 放大镜图标 + focus 发光） */
.bp-list-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bp-list-bar input[type="search"] {
    flex: 1; min-width: 180px;
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
    padding: 11px 16px 11px 40px; border-radius: 999px; font-size: 14px; font-family: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b93b0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 15px center;
    transition: border-color .18s, box-shadow .18s, background .18s;
    appearance: none; -webkit-appearance: none;
}
.bp-list-bar input[type="search"]::-webkit-search-cancel-button { display: none; }
.bp-list-bar input[type="search"]::placeholder { color: var(--text-dim); opacity: .75; }
.bp-list-bar input[type="search"]:hover { border-color: rgba(108, 123, 255, .45); }
.bp-list-bar input[type="search"]:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 123, 255, .18);
    background-color: var(--card);
}
.bp-list-bar .btn { border-radius: 999px; padding-left: 20px; padding-right: 20px; }
.bp-p-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.bp-p-item img.bp-p-img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex-shrink: 0; cursor: zoom-in; }
.bp-p-info { flex: 1; min-width: 0; }
.bp-p-info h3 { font-size: 15px; margin-bottom: 4px; }
.bp-p-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.bp-p-price { color: var(--orange); font-weight: 800; font-size: 17px; }
.bp-p-sub { color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.bp-p-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.bp-badge-collected { background: rgba(46, 204, 113, .14); color: #7ce8a8; border: 1px solid rgba(46, 204, 113, .35); padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.bp-badge-wait { background: rgba(255, 169, 64, .12); color: #ffc178; border: 1px solid rgba(255, 169, 64, .35); padding: 3px 10px; border-radius: 20px; font-size: 12px; }

/* 当前存档提示条 */
.bp-contact-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: rgba(108, 123, 255, .1); border: 1px solid rgba(108, 123, 255, .3);
    border-radius: 12px; padding: 11px 16px; font-size: 13px; margin-bottom: 16px;
}
.bp-contact-bar b { color: var(--primary); }
.bp-contact-bar .grow { flex: 1; }

/* 空状态 */
.bp-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.bp-empty .big { font-size: 40px; margin-bottom: 12px; }

@media (max-width: 640px) {
    .bp-hero h1 { font-size: 22px; }
    /* 手机端商品卡：图片绝对定位在左上，文字块右侧排列，按钮底部一整排，简单大方不错乱 */
    .bp-p-item { display: block; position: relative; padding: 14px 14px 14px 110px; min-height: 116px; text-align: left; }
    .bp-p-item img.bp-p-img { position: absolute; left: 14px; top: 14px; width: 84px; height: 84px; margin: 0; }
    .bp-p-info { text-align: left; }
    .bp-p-info h3 { font-size: 15px; line-height: 1.5; margin: 0 0 6px; text-align: left; word-break: break-all; }
    .bp-p-meta { margin: 4px 0; justify-content: flex-start; }
    .bp-p-sub { text-align: left; }
    .bp-p-actions {
        display: flex; flex-direction: row; gap: 8px; margin-top: 12px;
        position: relative; left: -96px; width: calc(100% + 96px);
    }
    .bp-p-actions .btn { flex: 1; justify-content: center; }
    .bp-p-actions form { flex: 1; display: block; margin: 0; }
    .bp-p-actions form .btn { width: 100%; }
}


/* ========== 表单（field / grid-2 / grid-3，品牌站专用） ========== */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; }
.field input[type="text"], .field input[type="tel"], .field input[type="url"],
.field input[type="number"], .field input[type="password"], .field input[type="file"],
.field textarea, .field select {
    width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
    color: var(--text); padding: 11px 13px; border-radius: 10px;
    font-size: 15px; font-family: inherit; line-height: 1.6;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); opacity: .7; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(108, 123, 255, .45); }
.field input[type="file"] { padding: 9px 13px; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 123, 255, .18);
    background: var(--card);
}
.field textarea { resize: vertical; }
.grid-2, .grid-3 { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ==========================================================
   在线客服 · 企业微信一键添加按钮
   ========================================================== */
.bp-wework-btn {
    display: flex; align-items: center; gap: 14px;
    width: 100%; margin-bottom: 18px; padding: 16px 18px;
    background: linear-gradient(135deg, #2b7de9, #1b5fc0);
    border: none; border-radius: 16px;
    color: #fff; text-align: left; text-decoration: none;
    font-family: inherit; font-size: 15px; cursor: pointer;
    box-shadow: 0 8px 22px rgba(43, 125, 233, .35);
    transition: transform .18s, box-shadow .18s;
}
.bp-wework-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43, 125, 233, .45); }
.bp-wework-btn:active { transform: translateY(0); }
.bp-wework-btn .ww-ic {
    width: 46px; height: 46px; flex-shrink: 0;
    background: rgba(255, 255, 255, .18); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.bp-wework-btn .ww-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bp-wework-btn .ww-txt b { font-size: 16px; font-weight: 700; }
.bp-wework-btn .ww-txt small { font-size: 12px; opacity: .85; font-weight: 400; }
.bp-wework-btn .ww-arrow { flex-shrink: 0; font-size: 18px; font-weight: 700; }

/* ==========================================================
   团队介绍 · 视频展示区（竖屏，一行 3 个，超出左右滑动）
   ========================================================== */
.bp-media-head {
    font-size: 16px; font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.bp-media-head small { font-size: 12px; font-weight: 400; color: var(--text-dim); }
.bp-video-strip {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.bp-video-strip::-webkit-scrollbar { height: 6px; }
.bp-video-strip::-webkit-scrollbar-track { background: transparent; }
.bp-video-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.bp-video-item {
    position: relative; flex: 0 0 calc((100% - 20px) / 3);
    aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
    background: #0b0d16; border: 1px solid var(--border);
    cursor: pointer; scroll-snap-align: start;
    transition: border-color .18s, transform .18s;
}
.bp-video-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.bp-video-item video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    pointer-events: none;
}
.bp-video-item .bp-video-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.42));
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
    transition: background .18s;
}
.bp-video-item:hover .bp-video-play { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.3)); }

/* 视频放大播放遮罩 */
.bp-video-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, .92);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.bp-video-modal.show { display: flex; }
.bp-video-modal video {
    max-width: 100%; max-height: 100%;
    width: auto; height: 100%;
    border-radius: 12px;
}
.bp-video-close {
    position: absolute; top: calc(16px + var(--safe-bottom)); right: 16px; z-index: 1001;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* ==========================================================
   团队介绍 · 图片展示区（每行 3 张，多出依次换行）
   ========================================================== */
.bp-image-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.bp-image-item {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 12px; border: 1px solid var(--border);
    cursor: zoom-in; display: block;
    transition: border-color .18s, transform .18s;
}
.bp-image-item:hover { border-color: var(--primary); transform: translateY(-2px); }

/* 详情弹窗 · 链接行可点击复制 */
.bp-link-row { cursor: pointer; }
.bp-link-row:hover { border-color: var(--primary); }

@media (max-width: 640px) {
    .bp-wework-btn { padding: 14px 15px; gap: 12px; }
    .bp-wework-btn .ww-ic { width: 40px; height: 40px; font-size: 19px; }
    .bp-video-item { flex-basis: calc((100% - 20px) / 3); border-radius: 12px; }
}

/* ==========================================================
   商务邀请 · 入口验证门（未绑定商务时）
   ========================================================== */
.bp-gate { display: flex; justify-content: center; padding: 12px 0 28px; }
.bp-gate-card {
    width: 100%; max-width: 460px; text-align: center;
    background: linear-gradient(160deg, rgba(124, 58, 237, .12), rgba(91, 108, 255, .06)), var(--card, #17171f);
    border: 1px solid var(--border); border-radius: 20px; padding: 30px 24px 24px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}
.bp-gate-ico { font-size: 44px; margin-bottom: 8px; }
.bp-gate-card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.bp-gate-tip { margin: 0 0 18px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.bp-gate-form { display: flex; gap: 8px; }
.bp-gate-form input {
    flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; font-size: .95rem;
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    letter-spacing: .08em; text-align: center;
}
.bp-gate-form input:focus { outline: none; border-color: var(--primary); }
.bp-gate-form .btn { white-space: nowrap; }
.bp-gate-or {
    display: flex; align-items: center; gap: 12px; margin: 16px 0;
    color: var(--muted); font-size: .8rem;
}
.bp-gate-or::before, .bp-gate-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.bp-gate-none { display: block; width: 100%; padding: 13px; font-size: .95rem; }
.bp-gate-hint {
    margin-top: 14px; padding: 10px 12px; border-radius: 10px;
    background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3);
    color: #fbbf24; font-size: .78rem; line-height: 1.6; text-align: left;
}
html.light .bp-gate-hint { color: #b45309; }

/* 绑定条 · 更换通道 / 错误态 */
.bp-sw-change { margin-left: 10px; font-size: .75rem; color: var(--muted); text-decoration: underline; }
.bp-sw-banner-err { background: linear-gradient(135deg, rgba(239, 68, 68, .14), rgba(239, 68, 68, .06)); border-color: rgba(239, 68, 68, .4); color: #fca5a5; }

/* ==========================================================
   商务信息卡（品牌方浏览页同步展示）
   ========================================================== */
.sw-card {
    margin: 0 0 16px; border-radius: 18px; overflow: hidden;
    background: linear-gradient(160deg, rgba(124, 58, 237, .1), rgba(91, 108, 255, .04)), var(--card, #17171f);
    border: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .26);
}
.sw-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.sw-card-avatar {
    width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid rgba(195, 155, 255, .5);
}
.sw-card-avatar-ph {
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    background: rgba(124, 58, 237, .18);
}
.sw-card-id { flex: 1; min-width: 0; }
.sw-card-name { font-size: 1.08rem; font-weight: 700; }
.sw-card-gender { font-size: .85rem; color: #7dd3fc; }
.sw-card-sub { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.sw-card-inv {
    flex-shrink: 0; padding: 7px 12px; border-radius: 10px; font-size: .74rem;
    background: rgba(124, 58, 237, .16); border: 1px solid rgba(124, 58, 237, .4); color: #c39bff;
}
.sw-card-inv b { letter-spacing: .1em; }
.sw-card-sec { padding: 10px 16px 12px; border-top: 1px dashed var(--border); }
.sw-card-sec-t { font-size: .8rem; font-weight: 700; margin-bottom: 5px; }
.sw-card-sec-b { font-size: .84rem; color: var(--text); line-height: 1.7; word-break: break-all; }
.sw-card-note {
    margin-top: 7px; padding: 8px 10px; border-radius: 8px; font-size: .74rem; line-height: 1.6;
    background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .28); color: #fbbf24;
}
html.light .sw-card-note { color: #b45309; }
.sw-card-kf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw-card-qr { padding: 10px 0 2px; text-align: center; }
.sw-card-qr img {
    width: 132px; height: 132px; object-fit: cover; border-radius: 12px;
    border: 1px solid var(--border); background: #fff; padding: 5px;
}
.sw-card-qr span { display: block; margin-top: 5px; font-size: .72rem; color: var(--muted); }

@media (max-width: 640px) {
    .bp-gate-card { padding: 24px 16px 18px; }
    .bp-gate-form { flex-direction: column; }
    .sw-card-head { flex-wrap: wrap; }
}

/* 静态弹窗默认隐藏（JS 动态创建的 .bp-modal 自带 .show，不受影响） */
.bp-modal:not(.show) { display: none; }

/* 修正：全站 style.css 的 .bp-modal 卡片样式会污染品牌方弹窗遮罩，这里还原遮罩属性 */
.bp-modal { max-width: none; border: none; border-radius: 0; box-shadow: none; animation: none; width: auto; }

/* ---------- 推荐给朋友 · 分享卡片 ---------- */
.bp-share-card { text-align: center; }
.bp-share-card h2 { font-size: 16px; margin: 0 0 8px; }
.bp-share-tip { color: var(--text-dim); font-size: 12.5px; margin: 0 0 12px; line-height: 1.7; }
.bp-share-link { margin-bottom: 12px; }
.bp-share-link input {
    width: 100%; box-sizing: border-box; text-align: center;
    background: var(--bg-soft); border: 1px dashed var(--border); color: var(--text);
    border-radius: 10px; padding: 10px 12px; font-size: 12.5px;
}
.bp-share-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bp-share-btns .btn { flex: 1; min-width: 150px; }

/* ========== 顶栏优化：不换行、右侧给悬浮主题按钮让位、手机端 logo 只留图标 ========== */
.bp-topbar-inner { flex-wrap: nowrap; padding-right: 58px; }
.bp-topbar-inner .bp-logo { flex-shrink: 0; }
.bp-topbar-inner .bp-nav { min-width: 0; }
@media (max-width: 640px) { .bp-logo-text { display: none; } }

/* ==========================================================
   v13 品牌站：手机标题栏规范 + 首页宫格卡片布局
   ========================================================== */
@media (max-width: 760px) {
    /* 标题栏：文字标签一排横滑；选中下划线不满充；不带图标省空间；左右留给悬浮钮 */
    .bp-topbar-inner { padding: 6px 48px; gap: 6px; min-height: 46px; flex-wrap: nowrap; }
    .bp-logo { display: none; }
    .bp-nav { gap: 0; }
    .bp-nav a { padding: 9px 10px; font-size: 13px; border-radius: 0; border-bottom: 2px solid transparent; }
    .bp-nav a:hover { background: none; }
    .bp-nav a.active { color: var(--primary); background: none; border-bottom-color: var(--primary); }
    .bp-nav-ic { display: none; }
}

/* —— 首页宫格：3 张图文大卡（左一高 + 右二矮）+ 4 个小图标入口 ——
   图片后期替换：把 home_add.jpg / home_list.jpg / home_addr.jpg 放进
   pinpaifang/assets/img/ 即自动生效（缺图时显示渐变底） */
.bh-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bh-big {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
    padding: 16px 14px; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff;
    min-height: 132px; box-shadow: 0 6px 18px rgba(2, 6, 23, .25); transition: transform .18s;
    background:
        linear-gradient(180deg, rgba(0,0,0,.02) 42%, rgba(0,0,0,.52) 100%),
        var(--bh-img, none),
        var(--bh-bg, linear-gradient(135deg, #667eea, #764ba2));
    background-size: cover; background-position: center;
}
.bh-big:active { transform: scale(.98); }
.bh-b1 { grid-row: 1 / 3; min-height: 278px; --bh-img: url('img/home_add.jpg'); --bh-bg: linear-gradient(160deg, #f78fb3 0%, #c44569 100%); }
.bh-b2 { --bh-img: url('img/home_list.jpg'); --bh-bg: linear-gradient(160deg, #63a4ff 0%, #5f6cf1 100%); }
.bh-b3 { --bh-img: url('img/home_addr.jpg'); --bh-bg: linear-gradient(160deg, #f6b76c 0%, #e8724a 100%); }
.bh-t { font-size: 19px; font-weight: 800; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.bh-s { font-size: 12px; opacity: .93; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.bh-go { display: inline-flex; align-items: center; gap: 3px; margin-top: 7px; width: fit-content; background: rgba(255, 255, 255, .94); color: #c2453f; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 11px; }
.bh-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.bh-mini a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--text); font-size: 12px; font-weight: 600; }
.bh-mini .bh-ic { width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; box-shadow: 0 5px 14px rgba(2, 6, 23, .22); }
.bh-m1 .bh-ic { background: linear-gradient(150deg, #f7c56b, #e8963c); }
.bh-m2 .bh-ic { background: linear-gradient(150deg, #6aa9ff, #3f6df1); }
.bh-m3 .bh-ic { background: linear-gradient(150deg, #f76d6d, #e03e3e); }
.bh-m4 .bh-ic { background: linear-gradient(150deg, #a06bff, #7547e8); }
@media (max-width: 640px) {
    .bh-grid { gap: 8px; }
    .bh-b1 { min-height: 238px; }
    .bh-t { font-size: 17px; }
    .bh-mini .bh-ic { width: 50px; height: 50px; font-size: 21px; }
}

/* ---------- 录入页 · 当前上传通道标识（云仓 ⇄ 商务 可切换） ---------- */
.bp-sw-cloud, .bp-sw-merchant {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px;
}
.bp-sw-cloud {
    background: linear-gradient(135deg, rgba(255,171,64,.22), rgba(255,120,60,.12));
    border: 2px solid rgba(255,171,64,.65); color: #ffd9a3;
    box-shadow: 0 6px 20px rgba(255,150,60,.18);
}
.bp-sw-cloud b { color: #ffc266; }
.bp-sw-merchant {
    background: linear-gradient(135deg, rgba(46,204,113,.14), rgba(46,204,113,.06));
    border: 1px solid rgba(46,204,113,.45); color: #a9f0c6;
}
.bp-sw-merchant b { color: #7ce8a8; }
.bp-sw-cloud-ico { font-size: 30px; line-height: 1; flex: 0 0 auto; }
.bp-sw-cloud-info { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-sw-cloud-info b { font-size: 15px; }
.bp-sw-cloud-info span { font-size: 12px; opacity: .85; }
.bp-sw-switch-btn {
    flex: 0 0 auto; display: inline-block; padding: 10px 18px; border-radius: 12px;
    background: linear-gradient(135deg, #ffab40, #ff7848); color: #fff !important;
    font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255,140,60,.4); transition: transform .15s, box-shadow .15s;
}
.bp-sw-switch-btn:active { transform: scale(.96); }
.bp-sw-switch-ghost {
    background: transparent; border: 1px solid rgba(46,204,113,.55); color: #7ce8a8 !important;
    box-shadow: none; font-weight: 600; padding: 8px 14px; font-size: 13px;
}
html.light .bp-sw-cloud { color: #92400e; box-shadow: 0 6px 18px rgba(240,160,60,.16); }
html.light .bp-sw-cloud b { color: #ad6800; }
html.light .bp-sw-merchant { color: #166534; }
html.light .bp-sw-merchant b { color: #15803d; }
html.light .bp-sw-switch-ghost { color: #15803d !important; border-color: rgba(21,128,61,.45); }
@media (max-width: 420px) {
    .bp-sw-switch-btn { width: 100%; text-align: center; }
}

/* ---------- 模版页公共组件（_chrome.php）：铃铛角标 / 开发中提示 / 主题切换 ---------- */
.bp-bell { position: relative; }
.bp-notice-badge {
    position: absolute; top: 8px; right: 2px;
    min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; box-sizing: border-box;
    border-radius: 999px; background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 700; text-align: center; font-style: normal;
    box-shadow: 0 0 0 2px #fff;
}
html:not(.light) .bp-notice-badge { box-shadow: 0 0 0 2px #171a26; }
/* 已登录绿点：头部个人中心图标右上方高亮绿点（未登录不显示；与未读红角标同位，红角标优先盖住它） */
.bp-online-dot {
    position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 2px #fff, 0 0 8px 2px rgba(34,197,94,.75);
    pointer-events: none;
}
html:not(.light) .bp-online-dot { box-shadow: 0 0 0 2px #171a26, 0 0 8px 2px rgba(34,197,94,.75); }
/* 白天 / 黑夜切换：头部标题最右、向下一点悬浮（无边框透明；PC 与手机同一位置） */
.bp-theme-float {
    position: fixed; top: 54px; right: max(8px, calc(50% - 442px)); z-index: 900;
    border: none; background: transparent; box-shadow: none;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    -webkit-tap-highlight-color: transparent;
}
.bp-logo-link { display: inline-block; line-height: 0; }
/* 头部铃铛：靠最右边，未读数字与图标紧靠不分离 */
.bp-bell.aui-navBar-item {
    -webkit-box-flex: 0; -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto;
    min-width: 0; padding-left: 6px; padding-right: 12px;
    margin-left: auto;
}
.bp-bell .bp-notice-badge { top: 6px; right: 4px; }
.bp-dev-mask {
    position: fixed; inset: 0; z-index: 2000; display: none;
    background: rgba(0,0,0,.45);
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
}
.bp-dev-mask.show { display: -webkit-box; display: -webkit-flex; display: flex; }
.bp-dev-box {
    width: 78%; max-width: 320px; background: var(--card, #fff); border: 1px solid var(--border, #eee);
    border-radius: 16px; padding: 28px 20px 20px; text-align: center;
    animation: bpDevPop .18s ease-out;
}
@keyframes bpDevPop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bp-dev-ico { font-size: 40px; margin-bottom: 8px; }
.bp-dev-name { font-size: 16px; font-weight: 700; color: var(--text, #333); margin-bottom: 6px; }
.bp-dev-tip { font-size: 13.5px; color: var(--text-dim, #999); margin-bottom: 18px; }
.bp-dev-ok {
    border: none; border-radius: 10px; padding: 10px 0; width: 100%;
    background: #15bebb; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.bp-dev-ok:active { opacity: .85; }

/* ---------- 「我的」个人信息卡（头像可上传，存腾讯云 COS） ---------- */
.bp-me-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 22px 18px 16px; margin-bottom: 14px; text-align: center;
}
.bp-me-ava-wrap { position: relative; width: 84px; height: 84px; margin: 0 auto 12px; }
.bp-me-ava, .bp-me-ava-img {
    width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, #15bebb, #0d9d8f); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700;
}
.bp-me-ava-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-me-ava-cam {
    position: absolute; right: -2px; bottom: -2px;
    width: 28px; height: 28px; border-radius: 50%;
    background: #15bebb; color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--card); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.bp-me-name { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bp-me-phone { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.bp-me-rows { text-align: left; }
.bp-me-row {
    display: flex; align-items: center; padding: 12px 2px;
    border-top: 1px solid var(--border); font-size: 14px;
}
.bp-me-row .k { flex: 0 0 96px; color: var(--text-dim); }
.bp-me-row .v { flex: 1; min-width: 0; color: var(--text); font-weight: 600; word-break: break-all; text-align: right; }
.bp-me-row .v.empty { color: var(--text-dim); font-weight: 400; }
.bp-me-actions { display: flex; gap: 10px; margin-top: 16px; }
.bp-me-actions .btn { flex: 1; }

/* ---------- 消息提醒列表 / 详情 ---------- */
.bp-nt-item {
    display: block; text-decoration: none;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 16px; margin-bottom: 10px; position: relative;
}
.bp-nt-item:active { opacity: .8; }
.bp-nt-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; padding-right: 14px; }
.bp-nt-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 6px;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bp-nt-time { font-size: 12px; color: var(--text-dim); opacity: .8; }
.bp-nt-dot { position: absolute; top: 16px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; }
.bp-nt-item.read .bp-nt-title { color: var(--text-dim); font-weight: 600; }
.bp-nt-view { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px; }
.bp-nt-view h2 { font-size: 18px; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.bp-nt-view .bp-nt-time { margin-bottom: 14px; }
.bp-nt-view .bp-nt-body { font-size: 14.5px; color: var(--text); line-height: 1.9; white-space: pre-wrap; word-break: break-word; }

/* ---------- 商品详情页（独立页面，非弹窗） ---------- */
.bp-pd-back {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; color: var(--text-dim); text-decoration: none;
    padding: 4px 0; margin-bottom: 10px;
}
.bp-pd-back:active { opacity: .7; }
.bp-pd-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bp-pd-imgs img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; cursor: zoom-in; border: 1px solid var(--border); }
.bp-pd-name { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 12px; }

/* ========== 第 8 轮：通道标识（头部头像+名称）与通道管理弹窗 ========== */
/* 头部通道标识 */
.bp-ch-chip { display: flex !important; align-items: center; gap: 6px; max-width: 42%; text-decoration: none; }
.bp-ch-ava {
    width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px;
    background: linear-gradient(135deg, #15bebb, #0e9a97); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.bp-ch-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-ch-name {
    font-size: 13.5px; font-weight: 600; color: inherit;
    max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html:not(.light) .bp-ch-name { color: #e6eaf2; }

/* 录入页横幅：商务头像 */
.bp-sw-ava { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 20px; padding: 0; overflow: hidden; background: linear-gradient(135deg, #15bebb, #0e9a97) !important; color: #fff; font-weight: 700; }
.bp-sw-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 通道弹窗（查看 / 切换 / 删除 / 邀请码添加；X 或点遮罩关闭不影响当前通道） */
.bp-ch-mask {
    position: fixed; inset: 0; z-index: 1200; display: none;
    background: rgba(8, 10, 18, .55); backdrop-filter: blur(2px);
    align-items: flex-end; justify-content: center;
}
.bp-ch-mask.show { display: flex; }
.bp-ch-box {
    position: relative; width: 100%; max-width: 430px; max-height: 82vh; overflow-y: auto;
    background: var(--card, #fff); color: var(--text, #1a1d29);
    border-radius: 18px 18px 0 0; padding: 20px 16px 26px; box-sizing: border-box;
    box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.bp-ch-x {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--bg-soft, #f1f3f8); color: var(--text-dim, #8b93a7);
    font-size: 14px; cursor: pointer;
}
.bp-ch-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.bp-ch-tip { font-size: 12px; color: var(--text-dim, #8b93a7); line-height: 1.6; margin-bottom: 12px; }
.bp-ch-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--border, #e5e8f0); border-radius: 12px; margin-bottom: 8px;
    background: var(--bg-soft, #f7f8fc);
}
.bp-ch-row.cur { border-color: #15bebb; background: rgba(21,190,187,.08); }
.bp-ch-row-ava {
    width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px; overflow: hidden;
    background: linear-gradient(135deg, #15bebb, #0e9a97); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700;
}
.bp-ch-row-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-ch-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-ch-row-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.bp-ch-row-idt {
    font-style: normal; font-size: 10.5px; font-weight: 500; color: #0e9a97;
    background: rgba(21,190,187,.12); border-radius: 20px; padding: 1px 8px;
}
.bp-ch-row-sub { font-size: 11.5px; color: var(--text-dim, #8b93a7); }
.bp-ch-cur { font-size: 11.5px; font-weight: 700; color: #0e9a97; flex: 0 0 auto; }
.bp-ch-use {
    flex: 0 0 auto; border: none; border-radius: 20px; padding: 6px 14px; cursor: pointer;
    background: #15bebb; color: #fff; font-size: 12.5px; font-weight: 600;
}
.bp-ch-del {
    flex: 0 0 auto; border: none; background: none; cursor: pointer; font-size: 15px; opacity: .55; padding: 4px;
}
.bp-ch-del:active { opacity: 1; }
.bp-ch-addrow { display: flex; gap: 8px; margin-top: 12px; }
.bp-ch-addrow input {
    flex: 1; min-width: 0; border: 1px solid var(--border, #e5e8f0); border-radius: 10px;
    background: var(--bg, #fff); color: var(--text, #1a1d29); padding: 9px 12px; font-size: 13.5px;
}
.bp-ch-addrow button {
    border: none; border-radius: 10px; padding: 0 16px; cursor: pointer;
    background: var(--bg-soft, #f1f3f8); color: var(--text, #1a1d29); font-size: 13px; font-weight: 600;
}

/* 更换对接确认弹窗 */
.bp-ch-cf { text-align: center; padding-top: 28px; }
.bp-ch-cf-ico { font-size: 40px; margin-bottom: 10px; }
.bp-ch-cf-text { font-size: 14px; line-height: 2; margin-bottom: 18px; }
.bp-ch-cf-text b { color: #0e9a97; }
.bp-ch-cf-btns { display: flex; gap: 10px; }
.bp-ch-cf-btns button { flex: 1; border: none; border-radius: 12px; padding: 12px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.bp-ch-cf-ok { background: #15bebb; color: #fff; }
.bp-ch-cf-no { background: var(--bg-soft, #f1f3f8); color: var(--text-dim, #8b93a7); }

/* 白天模式微调 */
html.light .bp-ch-mask, .bp-ch-mask { }
html.light .bp-ch-box { background: #fff; color: #1a1d29; }
html.light .bp-ch-row { background: #f7f8fc; border-color: #e5e8f0; }
html.light .bp-ch-x { background: #f1f3f8; color: #8b93a7; }
html.light .bp-ch-addrow input { background: #fff; }
@media (min-width: 901px) {
    .bp-ch-mask { align-items: center; }
    .bp-ch-box { border-radius: 18px; }
}

/* ==========================================================
   首页「全部商品」空态提示（后台设置可改，支持 HTML 直接渲染）
   ========================================================== */
.bp-empty-tip {
    padding: 30px 18px 36px; text-align: left;
    color: var(--text, #333); font-size: 14px; line-height: 1.9;
    /* 超长内容（长链接/无空格英文数字串）自动换行，不溢出屏幕 */
    overflow-wrap: anywhere; word-break: break-word;
}
/* 粘贴的富文本常带居中内联样式：前台统一靠左对齐 */
.bp-empty-tip, .bp-empty-tip * { text-align: left !important; }
.bp-empty-tip p { margin: 0 0 6px; }
.bp-empty-tip a { color: #08acee; text-decoration: none; overflow-wrap: anywhere; }
/* 黑夜模式：容器与内部所有文字元素统一换浅色（!important 压住后台 HTML 里的内联深色），链接换亮青，图片不受影响 */
html:not(.light) .bp-empty-tip { color: #e5e7eb; background: #171a26; }
html:not(.light) .bp-empty-tip :not(a):not(img) { color: #e5e7eb !important; }
html:not(.light) .bp-empty-tip a { color: #2dd4bf !important; }

/* ==========================================================
   录入页通道横幅 · 简化版（头像 + 一句文案 + 右侧圆形转换图标）
   ========================================================== */
.bp-sw-mini {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 14px; padding: 10px 14px;
    border-radius: 14px; border: 1px solid rgba(21, 190, 187, .35);
    background: linear-gradient(135deg, rgba(21, 190, 187, .10), rgba(21, 190, 187, .04));
}
html.light .bp-sw-mini { background: linear-gradient(135deg, #eefcfb, #f7fffe); border-color: #bcebe8; }
.bp-sw-mini-ava {
    width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, #15bebb, #0e9a97);
}
.bp-sw-mini-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-sw-mini-text { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--text, #333); }
html:not(.light) .bp-sw-mini-text { color: #e5e7eb; }
.bp-sw-mini-text b { color: #0e9a97; }
html:not(.light) .bp-sw-mini-text b { color: #2dd4bf; }
.bp-sw-mini-btn {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(21, 190, 187, .5); background: transparent;
    font-size: 15px; color: #0e9a97; cursor: pointer; padding: 0;
    transition: background .15s, transform .15s;
}
.bp-sw-mini-btn:active { transform: scale(.92); background: rgba(21, 190, 187, .15); }
html:not(.light) .bp-sw-mini-btn { color: #2dd4bf; border-color: rgba(45, 212, 191, .45); }

/* ==========================================================
   分享引导浮层（微信内置浏览器无法直接调起分享，引导点右上角）
   ========================================================== */
.bp-share-guide {
    position: fixed; inset: 0; z-index: 3000; display: none;
    background: rgba(0, 0, 0, .72);
}
.bp-share-guide.show { display: block; }
.bp-share-guide-arrow {
    position: absolute; top: 10px; right: 18px;
    font-size: 46px; line-height: 1; color: #fff;
    animation: bpShareBounce 1s ease-in-out infinite;
}
.bp-share-guide-text {
    position: absolute; top: 66px; right: 16px; max-width: 240px;
    padding: 12px 16px; border-radius: 12px;
    background: #fff; color: #222; font-size: 14.5px; line-height: 1.7; text-align: left;
}
.bp-share-guide-text b { color: #07c160; }
@keyframes bpShareBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 列表页「全部商品」旁的 ✚ 继续录入按钮（无底色素图标） */
.bp-add-btn {
    flex: 0 0 auto; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: none; color: #15bebb !important;
    font-size: 24px; font-weight: 700; text-decoration: none; margin-right: 6px;
}
.bp-add-btn:active { transform: scale(.9); }
html:not(.light) .bp-add-btn { color: #2dd4bf !important; }

/* 列表/详情页「分享」图标按钮（无底色素图标） */
.bp-share-btn {
    flex: 0 0 auto; width: 34px; height: 34px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; color: #15bebb; font-size: 19px; padding: 0; margin-right: 6px;
}
.bp-share-btn:active { transform: scale(.9); }
html:not(.light) .bp-share-btn { color: #2dd4bf; }

/* 分享弹窗提示文字 */
.bp-share-tip2 { font-size: 12.5px; color: var(--text-dim); line-height: 1.8; margin: 0 0 12px; }
.bp-share-note { font-size: 11.5px; color: var(--text-dim); text-align: center; margin: 10px 0 0; opacity: .85; }
.bp-share-copy { background: none !important; border: 1px solid var(--border, #e5e7eb) !important; color: var(--text, #333) !important; margin-top: 8px; }

/* 游客分享页底部广告图 */
.bp-guest-ad { width: 92%; margin: 18px auto 24px; }
.bp-guest-ad a { display: block; }
.bp-guest-ad img { width: 100%; display: block; border-radius: 12px; }
/* 游客模式：无底部菜单，内容区底部留白 */
.bp-guest-pad { height: 24px; }

/* —— 首页「对接商务 · 名下主播」信息卡 —— */
.bp-mch-card { width: 92%; margin: 10px auto 4px; background: linear-gradient(135deg, #ffffff, #f7f9ff); border: 1px solid #e3e8f7; border-radius: 14px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(63, 84, 160, .08); box-sizing: border-box; }
.bp-mch-head { display: flex; align-items: center; gap: 10px; }
.bp-mch-ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.bp-mch-ava-ph { display: flex; align-items: center; justify-content: center; background: #eef1fb; font-size: 22px; }
.bp-mch-id { flex: 1; min-width: 0; line-height: 1.4; }
.bp-mch-id b { font-size: 16px; color: #1f2a4a; display: block; }
.bp-mch-id span { font-size: 12px; color: #7a86a8; }
.bp-mch-count { flex: 0 0 auto; text-align: center; font-size: 11px; color: #7a86a8; line-height: 1.5; }
.bp-mch-count b { font-size: 20px; color: #4f6ef7; }
.bp-mch-anchors { margin-top: 12px; border-top: 1px dashed #e3e8f7; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.bp-mch-anchor { background: #f4f6fd; border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #33415e; line-height: 1.7; }
.bp-mch-anchor-name { font-weight: 700; }
.bp-mch-anchor-acc { font-size: 12px; color: #7a86a8; }
.bp-mch-anchor-empty { text-align: center; color: #98a2c0; font-size: 12.5px; }
html:not(.light) .bp-mch-card { background: linear-gradient(135deg, #1a2033, #161b2c); border-color: #2a3350; box-shadow: none; }
html:not(.light) .bp-mch-id b { color: #e8ecf8; }
html:not(.light) .bp-mch-id span, html:not(.light) .bp-mch-count { color: #8a94b8; }
html:not(.light) .bp-mch-anchors { border-top-color: #2a3350; }
html:not(.light) .bp-mch-anchor { background: #20263d; color: #cdd5ec; }
html:not(.light) .bp-mch-anchor-acc { color: #8a94b8; }
html:not(.light) .bp-mch-ava-ph { background: #20263d; }

/* 验证/存档弹窗右上角关闭钮（不验证也可关闭） */
.bp-modal-box { position: relative; }
.bp-modal-x {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	width: 32px; height: 32px; border-radius: 50%;
	border: none; background: rgba(0,0,0,.06); color: var(--text-dim, #888);
	font-size: 15px; line-height: 32px; text-align: center; cursor: pointer;
	transition: background .2s, color .2s;
}
.bp-modal-x:hover { background: rgba(0,0,0,.12); color: var(--text, #333); }
html:not(.light) .bp-modal-x { background: rgba(255,255,255,.1); color: rgba(255,255,255,.65); }
html:not(.light) .bp-modal-x:hover { background: rgba(255,255,255,.2); color: #fff; }

/* 空态提示语富文本：粘贴的大图自适应宽度 */
.bp-empty-tip img { max-width: 100%; }

/* 微信内分享引导层：盖住所有弹窗，引导点右上角菜单 */
.bp-wx-guide {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, .85);
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bp-wx-guide-arrow {
    position: absolute; top: calc(8px + var(--safe-bottom)); right: 18px;
    transform: rotate(-8deg);
}
.bp-wx-guide-txt {
    margin-top: calc(120px + var(--safe-bottom));
    color: #fff; font-size: 19px; line-height: 1.9; text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.bp-wx-guide-txt b { font-size: 24px; letter-spacing: 2px; }
.bp-wx-guide-txt span { font-size: 15px; opacity: .85; }
.bp-wx-guide-ok {
    margin-top: 34px; padding: 10px 42px; border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, .9); color: #fff; font-size: 16px;
}

/* 顶部分享横幅：宽度铺满，高度跟随图片原比例（以图为准，不裁切），点击=打开分享弹窗 */
.bp-share-banner {
    display: block; width: 100%; height: auto;
    margin: 0 0 10px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.bp-share-banner:active { opacity: .85; }

/* 游客分享页底部「分享本页给好友」大按钮：绿色满宽，盖过 .btn 行内样式 */
.bp-guest-share-wrap { padding: 14px 16px 4px; }
.bp-guest-share {
    display: block !important; width: 100%;
    padding: 13px 0; font-size: 16px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #07c160, #05a552); color: #fff;
    box-shadow: 0 4px 14px rgba(7, 193, 96, .28);
}
.bp-guest-share:active { transform: scale(.98); }

/* 商品图集（添加/编辑商品表单）：已传图缩略图 + 勾选保留；新选图预览 */
.bp-gallery-kept { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.bp-gallery-item { position: relative; width: 72px; height: 72px; cursor: pointer; display: block; }
.bp-gallery-item input { position: absolute; top: 3px; left: 3px; z-index: 2; width: 16px; height: 16px; accent-color: #07c160; }
.bp-gallery-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid #07c160; }
.bp-gallery-item input:not(:checked) + img { opacity: .35; filter: grayscale(1); border-color: #d23c3c; }
.bp-gallery-del {
    display: none; position: absolute; right: 3px; bottom: 3px; z-index: 2;
    background: #d23c3c; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px;
}
.bp-gallery-item input:not(:checked) ~ .bp-gallery-del { display: block; }
.bp-gallery-new { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bp-gallery-new img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px dashed #9aa3b2; }

/* 商品主图 / 手卡多图（添加/编辑商品表单）：已传图 + 新选预览，统一方形显示，点图放大，✕ 删除 */
.bp-keep-item { position: relative; width: 72px; height: 72px; display: block; flex-shrink: 0; }
.bp-keep-item img { width: 72px; height: 72px; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; border: 2px solid #07c160; cursor: zoom-in; display: block; }
.bp-keep-item.off img { opacity: .35; filter: grayscale(1); border-color: #d23c3c; }
.bp-keep-del {
    position: absolute; top: -7px; right: -7px; z-index: 2; width: 20px; height: 20px;
    border-radius: 50%; border: none; background: #d23c3c; color: #fff;
    font-size: 11px; line-height: 20px; text-align: center; cursor: pointer; padding: 0;
}
.bp-keep-item.off .bp-keep-del { background: #9aa3b2; }
.bp-new-item { position: relative; width: 72px; height: 72px; display: inline-block; flex-shrink: 0; }
.bp-new-item img { width: 72px; height: 72px; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; border: 1px dashed #9aa3b2; cursor: zoom-in; display: block; }
.bp-gallery-new .bp-new-item { margin-bottom: 0; }

/* ===== 收藏引导弹窗（详情页收藏按钮：登录/注册分步引导） ===== */
.bp-fav-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.bp-fav-box { background: #fff; border-radius: 14px; width: 100%; max-width: 340px; padding: 22px 20px 18px; box-sizing: border-box; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.bp-fav-ico { font-size: 34px; margin-bottom: 6px; }
.bp-fav-title { font-size: 17px; font-weight: 600; color: #222; }
.bp-fav-sub { font-size: 13px; color: #777; line-height: 1.7; margin: 8px 0 14px; }
.bp-fav-input { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 10px; padding: 11px 13px; font-size: 14px; margin-bottom: 10px; background: #f8f9fb; }
.bp-fav-input:focus { outline: none; border-color: #15bebb; background: #fff; }
.bp-fav-err { color: #d23c3c; font-size: 12.5px; min-height: 18px; margin-bottom: 4px; }
.bp-fav-btns { display: flex; gap: 10px; margin-top: 6px; }
.bp-fav-btn { flex: 1; border: none; border-radius: 100px; padding: 11px 0; font-size: 14.5px; background: #15bebb; color: #fff; cursor: pointer; }
.bp-fav-btn.ghost { background: #f0f1f5; color: #555; }
.bp-fav-roles { display: flex; gap: 10px; margin: 4px 0 10px; }
.bp-fav-role { flex: 1; border: 1.5px solid #e3e6ee; background: #fafbfd; border-radius: 12px; padding: 14px 6px; cursor: pointer; font-size: 15px; color: #333; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.bp-fav-role b { font-size: 14.5px; }
.bp-fav-role span { font-size: 11.5px; color: #999; }
.bp-fav-role:active { border-color: #15bebb; background: #eefaf9; }

/* ===== 游客分享页底部悬浮图标（列表页共用：左返回、右分享） ===== */
.bp-guest-float { position: fixed; bottom: 18px; z-index: 98; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); text-decoration: none; }
.bp-guest-float .icon { width: 24px; height: 24px; filter: invert(1); display: block; float: none; background-size: 24px; background-repeat: no-repeat; background-position: center; }
.bp-guest-float.left { left: 14px; }
.bp-guest-float.right { right: 14px; }
@media (min-width: 901px) {
    .bp-guest-float.left { left: calc(50% - 450px + 14px); }
    .bp-guest-float.right { right: calc(50% - 450px + 14px); }
}

/* ===== 我的收藏夹（account.php） ===== */
.bp-fav-list { width: 92%; margin: 18px auto 0; }
.bp-fav-item { display: flex; gap: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 10px; align-items: center; }
.bp-fav-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #eee; }
.bp-fav-item .bp-fav-info { flex: 1; min-width: 0; }
.bp-fav-item .bp-fav-name { font-size: 14px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-fav-item .bp-fav-meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.bp-fav-item .bp-fav-time { font-size: 11px; color: var(--text-dim); margin-top: 3px; opacity: .8; }
.bp-fav-item .bp-fav-open { flex-shrink: 0; background: #15bebb; color: #fff; border-radius: 100px; padding: 7px 14px; font-size: 12.5px; text-decoration: none; }
.bp-fav-item .bp-fav-del { flex-shrink: 0; background: none; border: none; color: #d23c3c; font-size: 12px; cursor: pointer; padding: 6px 2px; }
.bp-fav-empty { text-align: center; color: var(--text-dim); font-size: 13px; padding: 22px 0 10px; }

/* 分享页悬浮图标图形（与新版详情页一致的返回/分享图标） */
.bp-guest-float .icon-return { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAADyUlEQVRoQ+3a34sWVRgH8O+zLxuLF4IXEkEXoV50L0h40YXQxV7sMs8ss6+9au5KlFQUFWupCCEaFSpFmsZiK67YLu2eMy9LRBQREdsvwj+gwhCJWCSUkEV8nScGzsUG71nW95yZOfuu7/Wcw/czz5kzzzszhDX2ozXmxQNwt1c86Aoz8ygRNURkCxGNZ1k2n6bpty5FCRYcRdFRIjqyFCciH6Vp+mLXgZn5OIBDbWALWuuHuwocx/G7InLAgvpMaz3cNWBmPgngtWVA27XWP3QFmJnfB/CKBSNENKyUmnHB5mOD2LSY+TQA22Z0T0TqaZrOumKDADPzOQDPWzB3iaiulNI+sJWDmXkcwLMWzB0Ada110xe2UnAcxxMiMmLBLGZZVm82m3M+sZWBmXkSwO52GCK6nVdWKfW5b2wlYGb+FMBOC+Zfs0F9UQS2VHCSJLVWq5VjEwvmVk9PT312dvbLorClgZMkeajVak0BYAvmJoBhrfVXRWJLAQ8MDKzr7e2dEpEBC+Yfs0F9XTS2cHB/f//6vr6+vLL9FswNc+v5pgxsoeBGo7FhcXFxGsBTFsyC2aCc/t/e74kqpLVMkmSjuWZ3WAL9bTqo7+43sOvx3sFxHD8iIvkyftIS7i+zjL93Dd/JeK/gOI4fBTAtItstYa7XarX6zMzMfCdhfYzxBo6i6DEiyq/ZbZYO6prpoH70EbzTObyABwcHt9RqtXwZb7UE+TPLsp3NZvOnToP6GucMHhoaejzLsrzv3dQulIhczTsopdQvvkK7zOMMZuZbANZbQvxhbj2/uoT0OdYJHEXRCBFNWAL9ZnrjKz4Du87lCr5IRHssIca01idcA/oe7wreTES/W0J5e/DmE+0EzoMwc/4IZnC1oJ3BObTda5ElJyCoSnsBm0ofA3A49Ep7A+fQOI7fFpGDIaO9gk2l3wHwRqho72CDfg/AWIjoQsBmIztBRK+Hhi4MbCp9CsCrIaELBRt0KW8FV9qcFA426A8AvBxCpUsBm1vWhyLyUtXo0sBmIztDRC9UiS4VbJb3WQD7q0KXDjbL+2MRea4KdCVgU+nlXoYX9oejMrBBnwewr8xKVwo26E8AjJaFrhxs0BcA7C0DHQTY3LKWez7m7ZoOBmwqfQnALlulReSJNE1/Xmkb2e64oMAGfRnA0xbUJa217Snpis5DcGCDbvvhCxFNKqWeWZHMclCQYIPOX8z978tZItqllMpXQMe/YMEG/SaABoD8E8Q5pdRbHUvNwKDBrrhVsWkVgVw654MKF32Gq55/zVX4P73+dUy+MwyoAAAAAElFTkSuQmCC'); }
.bp-guest-float .icon-share { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAIyUlEQVRoQ+VbDYxcVRU+572niT+lWFJBGn/AEEWjEdTGFsRWSxGQmXvvOvjHChpZgQTUKBSqkZIoTdHQnxiVFgOxVYjTvefO1LoatfbHn8Z/TGg0aupfbbHqGlubrs57x5zJzDr79r2ZNzN3N028yWSymXO+c75337vv/C3C/9nCueRbqVSeEcfxZcx8LgA8N/X5PQDsI6LqXPqQxvZO2BhzaZIkVyDi1QCwuheZ06dPL5yYmPhnLzlfv3shXKlUnh3H8R3MfAMAXNyPc8y8zjl3Xz86w8gOTVgpNYaIdwDAywdw5B9BEFw+Pj7+5AC6A6kMTFhrbQBAiL5hIMsAX2Vm55z7woD6A6kNRNgY8xAzjxWweBoA9iPiXgD4EwAcRcSjSZIcI6K/FdD3LtIXYWPMhcwsp+qleZ4w888AYA8iHpicnNy9d+/ehnevhwAsTFgppRCRutg6BgCboijaWK1W/z2ET3OqWoiw1vrjANDtJN3MzJucc7+bU29b4FprOTfuZeYtcgj0Y7Mn4VKp9JowDH+UA/pbALiViL7Zj9FhZEdGRq5KkuTrHRhfIaK3FcXsSlhrLdHRUzlgYvSG+T58tNaPAcDbUz4VJt2LsNwu5VnhGeJnrLW3F72qPuWMMRuZ+YMZmIVI5xLWWj8IAB/KAH6ciN7hk0Q/WEqpqxHxazk6PUlnEm4FFeMZoE8Q0av6cbBfWaXU2UEQXCLxOACcjYgL5bv16YRbmYXNzNudc+/Os5tHWAKFdAT1VBRFS6vV6h/6JVFEXmt9IwDcDADLAaDnYdoD8/q8LGwWcCs2fijjuS1ba+tFnO9HplwuXxcEgZwHV/aj1022W0Iyg7BkPY1G42A6EUDETdbarOd5KB+11rcAwOeGAslWLrbDxpi1zPzJFMZRZl7uO6jIseWD+w4iGi30DGutfwkAL0kJ301EG3x40sYYGRm5JkmS3blOIcrr8AmpiCDiX5IkOU5Ex9vyWus9ALAiQ38nEV0PANyTcLlcXh4Ewfc6BSURmJqaWjYxMTHli/CKFSuiRYsW7ZO7JgNzWxzHW+v1+o/z7BljbpeQchCyojP9DCul7kXEdZ1AiLjeWrvWF1nBybLTwh8jom29bCmlHkfEdCjZc2fbuNOEtdb7AeD1KYOrfcfJWmu5VV+ZsnMnEX26F1n5XWv9ZgCY6JAtTHZ6h0dHR5918uTJkymDpyYnJxf6zGeNMSVmrqXs7CGiNxUh25YxxqxkZrkjN1tr5XnPfWbTuM0dzrhqgIi7rLWlfhzpJau1fhQAJMDoXJKAfKmXrq/fm4SVUrci4mc7QZl5rXNuvS9DrQv7GwB4cSdmFEXnVKvVv/u00w2rvcMPAMCdKcEbieiLvhwplUrnh2F4JIW3l4gyY2JfdjNvaWPMTmYeSe3wKufct30ZzkjcBdoS0Qy7vuwJjjHmhUmS3DQ1NbWxXexv7/BP0oW5IAguHh8fl0DEy9JafwQAPpUCe5iIJGHwvowxtwGARI5LWuDNs6JNWJ6h53RajeP4rHq9fsKXJ8aYDcx8V+ouesA5t8aXjU4crfV3OqMxRHzUWvueeSOstZYkQZKF6YWIa6y1cn54XVrrcwDgrynQ3UT0lvm8pXcAwLtShG+21j7sla3UpMrlVwRB8IsU7iNE9N4m4fk4tJRSdUS8LuXECBFZ34SVUqsR8Rsp3A1EdHd7h+UwkUOlc3l9LaWfKTHEzCudc1Jd8bqUUjch4iMp0A8T0YPzFnhkhJWHiGiQjmPPi6OUugcR708dkKPOuR25oSUz73LOeQ0tjTHvY+arEPFJZj5IRJ0F9Z5EigrkPD7NRKhJuFXaSb+CTkVRdFa1Wo2LGjoT5CqVSthoNGSi4Jmd/kRRtKBarZ7smh4i4pXW2m+dCUSK+mCMWcXM6dbPASKSsu//CgDGmHWScqXu+/XOOa8FgKKODyqnlLofEe9Jvf7us9Y2ixvTO5xV4gGAn0ZRtOxMbn92EqtUKk9vNBo/SIfJSZJcVqvVvj+DsPyRVcRj5jXOOe/R0KA72E1PKXUXIqYLjr8iope29WbUpbXWHwWAT6RAZUxhmbVW5qrO2CWZETPL7j4v5eTHiGi69DyDcKlUWhAEwUFEfFnqWZZmt/dCvM+rp5TaiIgzuorMfChJktd1JkGzWi3GmPcz8+fTziRJUqrVart8OukLq9WumdUGQsRbrLUz2kZ5zbR9ANA8xjvWsSRJltZqtT/6ctQHTrlcfn4QBD8EgPNSePuJaNZIVSZhpdQIIu7McOjnRHSJD0d9YWitZWpoVguXmd/qnJvV8s1tS2Y9Ey0nHyOid/pyeBgcrfWXAWBWc741YJN55vQaeZAaclY8vYWIPjCMs8Pqaq03tyYB01B1Ipo1ppH5Wkprlkqlc8MwlPmrWUvGDsIwHJ3PEqs4UalUFsVxvJ2Zr8nyK47j8+r1et4gTu9OuzHmtcwsh0LW+nWSJLfVarV5ibfL5fKqIAikfn5RziYstdbmjVg1VQqNFmTF2R0Gpc0hE3ib5mocolKpvKDRaMg7Vj6ZPiPidLzc7XEpRFgAjDGambuVY/4sxBcvXrxp69at/xn2GRX9sbGxpx0/frxN9Pw8TEQ01tpuY5HTqoUJi4ZSStokVUTs9mqSGrcMl343DMPd/ebTks/GcXwtM18OAG8EgFfnEW0NslacczIRWGj1RbiNqLXe2pq46WXklIwPtzr5R5j5SBRF0m5ptlympqaWhGG4BBGXtArmEihIwDMjec8xso2Iiowwz1AfiHBrtyU4kQHxdETW6yIM+/v+1lBp1hxZT+yBCbeRW7G3EJ+RcPS03L/AIUTcko6N+4UZmrAYlCwrDEMhLf/kMZ179utMjrz0t3bEcbzFR+vHC+FOR1vjxjI6If/GM+iwmdSkJuI4PtBtwGWQC+qdcKcTMkpx4sSJK4IguCBJkgsR8QIAeBEAyLesw4h4mJmb30mSHF6wYMH+7du3/2sQMkV05pRwEQfmW+a/UQiiajK7BCwAAAAASUVORK5CYII='); }

/* ===== 列表页排序栏（综合 / 价格 / 佣金） ===== */
.bp-sort-bar { width: 92%; margin: 8px auto 2px; display: flex; gap: 8px; }
.bp-sort-bar a { flex: 1; text-align: center; font-size: 13.5px; color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 100px; padding: 7px 0; text-decoration: none; }
.bp-sort-bar a.on { color: #fff; background: #15bebb; border-color: #15bebb; font-weight: 500; }
.bp-sort-bar a:active { opacity: .8; }

/* ===== 分享列表页顶部 3px 固定悬浮分享图（点击=分享；图片自适应等比显示） ===== */
.bp-float-share-img { position: fixed; top: 3px; left: 0; right: 0; z-index: 97; display: flex; justify-content: center; pointer-events: none; }
.bp-float-share-img img { pointer-events: auto; max-width: 92%; max-height: 88px; width: auto; height: auto; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.18); cursor: pointer; }
@media (min-width: 901px) { .bp-float-share-img img { max-width: 500px; } }

/* ===== 复制成功轻提示（自动消失，不用点确定）：详情页不加载主站样式，这里自带 ===== */
#toast.toast {
    position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
    background: rgba(0,0,0,.82); color: #fff; padding: 10px 20px; border-radius: 100px;
    font-size: 14px; line-height: 1.4; z-index: 99999; max-width: 86%; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.3); width: auto;
}
#toast.toast.show { opacity: 1; }


/* ===== 📦 快递快捷弹窗 ===== */
.bp-ship-box .bp-ship-pname { font-size: 13px; color: var(--text-dim); margin: -4px 0 12px; }
.bp-ship-box .field { margin-bottom: 12px; text-align: left; }
.bp-ship-box .field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.bp-ship-box .field input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); color: var(--text); font-size: 14.5px; outline: none; }
.bp-ship-box .field input:focus { border-color: #15bebb; }
.bp-modal-err { color: #e45656; font-size: 13px; min-height: 18px; margin-bottom: 8px; text-align: left; }

/* ===== 分享弹窗：强制白底深字（电脑端黑夜模式下原文案太暗看不清）+ 二维码/卡片示例 ===== */
.bp-modal-box.bp-share-box { background: #fff !important; color: #333 !important; border: 1px solid #e8e8e8 !important; }
.bp-share-box .bp-modal-title { color: #222 !important; }
.bp-share-box .bp-share-tip2 { color: #555 !important; font-size: 13.5px; line-height: 1.7; text-align: left; margin: 0 0 14px; }
.bp-share-box .bp-share-tip2 b { color: #e2543a !important; }
.bp-share-box .bp-share-note { color: #999 !important; font-size: 12px; margin-top: 10px; }
.bp-share-box .field label { color: #666 !important; }
.bp-share-box .field input { background: #f7f8fa !important; color: #333 !important; border-color: #ddd !important; }
.bp-share-pc { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; padding: 12px; background: #f7f8fa; border-radius: 12px; }
.bp-share-qr { flex-shrink: 0; width: 150px; height: 150px; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid #e5e5e5; }
.bp-share-qr img, .bp-share-qr canvas { display: block; width: 150px !important; height: 150px !important; }
.bp-share-pc-side { flex: 1; min-width: 0; text-align: left; }
.bp-share-pc-side > b { display: block; color: #07c160 !important; font-size: 14px; margin-bottom: 6px; }
.bp-share-pc-side > p { color: #666 !important; font-size: 12.5px; line-height: 1.7; margin: 0; }
/* 卡片样式示例图：通栏显示在「二维码 + 说明」整行下方 */
.bp-share-demo { width: 100%; max-width: none; border-radius: 10px; border: 1px solid #e5e5e5; display: block; margin: 0 0 14px; }

/* ============ 录入表单：商品图片 + 商品手卡 同一行两列（手机竖排） ============ */
.bp-up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bp-up-cell { min-width: 0; }
.bp-up-cell > label { display: block; margin-bottom: 8px; }
.bp-up-cell .upload-zone { padding: 18px 12px; }
.bp-up-cell .upload-zone .preview { max-width: 160px; max-height: 130px; }
@media (max-width: 640px) {
    .bp-up-grid { grid-template-columns: 1fr; }
    .bp-up-cell + .bp-up-cell { margin-top: 18px; }
}

/* ===== 顶栏左上角「返回上一页」按钮（bp_tpl_header $with_back=true 时输出）=====
   绝对定位悬浮在最左侧，通道名片右移避让，不改动 navBar 原有 flex 布局 */
.bp-back-bar{position:absolute;left:4px;top:50%;transform:translateY(-50%);z-index:6;width:34px;height:34px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#6a6a6a;border-radius:50%}
.bp-back-bar:active{background:rgba(0,0,0,.06)}
.bp-back-bar svg{display:block}
.aui-navBar .bp-back-bar ~ .bp-ch-chip{margin-left:34px}
html:not(.light) .bp-back-bar{color:#e6eaf2}
html:not(.light) .bp-back-bar:active{background:rgba(255,255,255,.08)}
