/* ==========================================================================
   拼搏在线 · 首页 banner 轮播（4 张自动切换）
   --------------------------------------------------------------------------
   结构：.hp-banner > .hp-banner-track > .hp-banner-slide(picture) + .hp-banner-dots
   ========================================================================== */

.hp-banner-track {
    position: relative;
    display: block;
    /* 轮播高度由第一张图撑开；深色图与页面浅底之间不留缝 */
    background: #14162B;
}

.hp-banner-slide {
    display: block;
    margin: 0;
    /* 绝对定位叠放：只有第一张在文档流里撑开高度，其余覆盖在上面 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}

/* 第一张留在文档流，负责撑开轮播区高度 */
.hp-banner-slide:first-child {
    position: relative;
}

.hp-banner-slide.is-on {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hp-banner-slide .hp-banner-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* 指示点：底部渐变遮罩 + 白点，深色图上也看得清 */
.hp-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 0 10px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0));
}

.hp-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    transition: background .2s, width .2s;
}

.hp-banner-dot.is-on {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 移动端（与 app.css 的 rem 基准一致） */
@media (max-width: 768px) {
    .hp-banner-dots { padding: .12rem 0 .07rem; gap: .05rem; }
    .hp-banner-dot { width: .06rem; height: .06rem; }
    .hp-banner-dot.is-on { width: .13rem; }
}
