/* FloatBanner - 底部悬浮图片横幅样式 */
#zbFloatBanner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    transform: translateY(120%);
    -webkit-transform: translateY(120%);
    transition: transform .35s ease;
    -webkit-transition: -webkit-transform .35s ease;
    background: transparent;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

#zbFloatBanner.zbfb-show {
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

/* 内容容器：固定 760×90 白框，底部居中，直角 */
.zbfb-inner {
    width: 760px;
    max-width: 100%;
    height: 90px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
    padding: 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* 图片链接：填满容器 */
.zbfb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* 图片强制填满容器，无上下白边 */
.zbfb-inner img,
.zbfb-inner .zbfb-link img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    border: 0;
    border-radius: 0;
    vertical-align: bottom;
}

/* 关闭按钮：白底圆圈 + 两条交叉细线（SVG 级居中，不会歪） */
.zbfb-close {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #555;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    display: block;
}

.zbfb-close::before,
.zbfb-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform-origin: center;
}

.zbfb-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.zbfb-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.zbfb-close:hover,
.zbfb-close:focus {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

/* 窄屏适配：按宽度等比例缩小 */
@media (max-width: 780px) {
    .zbfb-inner {
        height: auto;
        aspect-ratio: 760 / 90;
        border-radius: 0;
        padding: 2px;
    }

    .zbfb-inner img,
    .zbfb-inner .zbfb-link img {
        border-radius: 0;
    }

    .zbfb-close {
        top: 2px;
        right: 2px;
        width: 18px;
        height: 18px;
    }

    .zbfb-close::before,
    .zbfb-close::after {
        width: 9px;
        height: 1.5px;
    }
}
