/* 品牌独立站基础（不依赖原论坛 style.css） */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body.bs-site {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 全页统一内容宽度：广告图、导航、各区块同宽 */
.bs-page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.bs-hero,
.bs-nav,
.bs-section,
.bs-footer {
    width: 100%;
}

.bs-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.bs-topbar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    width: 100%;
}

.bs-topbar__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.bs-topbar__title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bs-topbar__badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.bs-hero__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.bs-nav {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bs-nav__btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.15s, opacity 0.15s;
}

.bs-nav__btn:active { transform: scale(0.97); }

.bs-section {
    padding: 12px;
    margin-bottom: 8px;
}

.bs-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.bs-section__title {
    font-size: 16px;
    font-weight: 700;
}

.bs-section__tag {
    font-size: 11px;
    opacity: 0.85;
}

.bs-draw__frame,
.bs-haoliao__grid,
.bs-forum__mount,
.bp-forum {
    width: 100%;
}

.bs-draw__iframe {
    display: block;
    width: 100%;
    min-height: 200px;
    border: none;
    border-radius: inherit;
}

.bs-footer {
    text-align: center;
    padding: 20px 12px 40px;
    font-size: 12px;
    opacity: 0.75;
}

.bs-footer__line { margin-bottom: 4px; }

.bs-backtop {
    position: fixed;
    right: 14px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 99;
}

.bs-backtop.is-show {
    opacity: 1;
    pointer-events: auto;
}

.bp-loading, .bp-error {
    text-align: center;
    padding: 24px;
    font-size: 14px;
}

/* 好料精选 — 品牌卡片基础 */
.bh-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bh-card {
    display: block;
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 10px;
    transition: transform 0.15s;
}

.bh-card:active { transform: scale(0.98); }

.bh-card__icon {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.bh-card__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.bh-card__tag {
    font-size: 10px;
    opacity: 0.8;
}

@media (max-width: 360px) {
    .bh-grid { grid-template-columns: 1fr; }
}

/* 热门彩图穿插模块 */
.bp-chart {
    margin: 14px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.bp-chart__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(90deg, #ff8f00, #ff6f00);
    color: #fff;
}

.bp-chart__badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.bp-chart__title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
}

.bp-chart__body {
    padding: 8px;
    text-align: center;
    background: #fff;
}

.bp-chart__img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 6px auto;
    border-radius: 6px;
}

.brand-pack-1 .bp-chart__head { background: linear-gradient(90deg, #c62828, #ff8f00); }
.brand-pack-2 .bp-chart__head { background: linear-gradient(90deg, #1b5e20, #00c853); }
.brand-pack-3 .bp-chart__head { background: linear-gradient(90deg, #e65100, #ffca28); color: #4a3000; }
.brand-pack-4 .bp-chart__head { background: linear-gradient(90deg, #4527a0, #0288d1); }
.brand-pack-5 .bp-chart__head { background: #111; border-bottom: 2px solid #ffd700; color: #ffd700; }

.brand-pack-5 .bp-chart {
    border: 1px solid #ffd700;
    border-radius: 0;
    background: #111;
}

.brand-pack-5 .bp-chart__body { background: #0a0a0a; }
