/* ============================================================
   banner.css — 广告位（顶部 / 中部 / 底部 + 轮播）
   来源：109014 旧站 z-top.php / z-middle.php / z-bottom.php 里的内联样式，
   原样搬出来，只把颜色值统一。
   ============================================================ */

/* ===== 单张整宽广告：高度按图片比例自动 ===== */
.top-ad {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 3px;
    cursor: pointer;
    display: block;
}

.top-ad-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #ffffff;
}

/* ===== 轮播：宽度跟随页面，高度按 750:220 比例 ===== */
.ad-container {
    position: relative;
    width: 100%;
    aspect-ratio: 750 / 220;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 2px;
    cursor: pointer;
    background: #ffffff;
}

.ad-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 6px;
}

.ad-image.active {
    display: block;
}

.ad-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.ad-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.ad-dot.active {
    width: 14px;
    border-radius: 3px;
    background: #ffffff;
}

/* 中部/底部广告与上下内容之间留一点缝（旧站是靠 margin-top:10px 做的） */
.top-ad + .ad-container,
.ad-container + .top-ad {
    margin-top: 6px;
}
