/* 页脚 + 右侧悬浮栏（参考 jm-footer / float-side 结构，适配白嫖导航） */

.bp-footer {
    --bp-foot-bg: #1f2026;
    --bp-foot-ink: rgba(255, 255, 255, 0.6);
    --bp-foot-mute: rgba(255, 255, 255, 0.45);
    --bp-foot-line: rgba(255, 255, 255, 0.08);
    --bp-foot-accent: var(--bp-blue, #1890ff);
    background: var(--bp-foot-bg);
    color: var(--bp-foot-ink);
    margin-top: 56px;
    padding-top: 0;
}

.bp-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bp-footer .bp-foot-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 特性条 */
.bp-foot-feats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 28px 0;
    border-bottom: 1px solid var(--bp-foot-line);
}

.bp-foot-feats > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-foot-feats > div:first-child {
    border-left: none;
    padding-left: 0;
}

.bp-foot-feats .bp-foot-ic {
    width: 28px;
    height: 28px;
    color: var(--bp-foot-accent);
    flex: 0 0 auto;
}

.bp-foot-feats b {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.bp-foot-feats span {
    display: block;
    font-size: 12px;
    color: var(--bp-foot-mute);
    margin-top: 2px;
}

/* 多栏 */
.bp-foot-cols {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr 1fr 1.15fr;
    gap: 36px;
    padding: 44px 0 36px;
}

.bp-foot-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.bp-foot-brand-name img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.bp-foot-brand-desc {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

.bp-foot-col h4,
.bp-foot-contact h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: 0.06em;
}

.bp-foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-foot-col li {
    margin-bottom: 10px;
}

.bp-foot-col a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.bp-foot-col a:hover {
    color: #fff;
}

.bp-foot-contact p {
    font-size: 12px;
    line-height: 1.9;
    margin: 0 0 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
}

.bp-foot-contact .bp-foot-ic {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    color: var(--bp-sky, #40a9ff);
    flex: 0 0 auto;
}

.bp-foot-hotline {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.bp-foot-hotline a {
    color: #fff;
}

.bp-foot-qr {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.bp-foot-qr-item {
    text-align: center;
}

.bp-foot-qr-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.35);
}

.bp-foot-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-foot-qr-item span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

/* 友链 */
.bp-foot-friend {
    padding: 16px 0;
    border-top: 1px solid var(--bp-foot-line);
    font-size: 12px;
}

.bp-foot-friend > span {
    color: rgba(255, 255, 255, 0.35);
    margin-right: 8px;
}

.bp-foot-friend a {
    color: rgba(255, 255, 255, 0.4);
    margin-right: 16px;
    line-height: 2.4;
}

.bp-foot-friend a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 统计挂件（深色底适配） */
.bp-footer .footer-hang-stats {
    margin: 14px 0 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.9;
}

.bp-footer .footer-hang-stats .item {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.bp-footer .footer-hang-stats .item:first-child {
    padding-left: 0;
}

.bp-footer .footer-hang-stats .item:last-child {
    border-right: none;
}

.bp-footer .footer-hang-stats .value {
    margin-left: 4px;
    color: var(--bp-sky, #40a9ff);
    font-weight: 700;
}

/* 版权条 */
.bp-foot-bottom {
    background: rgba(0, 0, 0, 0.22);
}

.bp-foot-bottom-in {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.bp-foot-bottom-in a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ========== 右侧悬浮栏（仅桌面） ========== */
.bp-float-side {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 90;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.bp-float-side a,
.bp-float-side button {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid rgba(24, 144, 255, 0.14);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.1);
    transition: all 0.18s ease;
    position: relative;
    cursor: pointer;
    padding: 0;
    appearance: none;
    text-decoration: none;
}

.bp-float-side a span,
.bp-float-side button span {
    position: absolute;
    right: 56px;
    white-space: nowrap;
    background: #1f2026;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.bp-float-side a:hover,
.bp-float-side button:hover {
    background: var(--bp-blue, #1890ff);
    color: #fff;
    border-color: var(--bp-blue, #1890ff);
}

.bp-float-side a:hover span,
.bp-float-side button:hover span {
    opacity: 1;
}

.bp-float-side svg {
    width: 20px;
    height: 20px;
    display: block;
}

@media (min-width: 1100px) {
    .bp-float-side {
        display: flex;
    }

    /* 桌面改用右侧悬浮栏回顶，隐藏旧的单独回顶按钮 */
    .back-to-top {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .bp-foot-feats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
    }

    .bp-foot-feats > div {
        border-left: none;
        padding: 0 8px 0 0;
    }

    .bp-foot-cols {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 28px;
    }

    .bp-foot-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .bp-footer {
        margin-top: 32px;
    }

    .bp-foot-feats {
        grid-template-columns: 1fr 1fr;
        padding: 22px 0;
        gap: 14px 10px;
    }

    .bp-foot-feats b {
        font-size: 14px;
    }

    .bp-foot-cols {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
        padding: 28px 0 22px;
    }

    .bp-foot-brand {
        grid-column: 1 / -1;
    }

    .bp-foot-brand-desc {
        max-width: none;
    }

    .bp-foot-friend a {
        margin-right: 12px;
    }

    .bp-foot-bottom-in {
        flex-direction: column;
        gap: 6px;
    }

    .bp-footer .footer-hang-stats {
        display: flex;
        font-size: 11px;
    }

    .bp-footer .footer-hang-stats .item {
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .bp-foot-cols {
        grid-template-columns: 1fr;
    }
}
