
* {
    box-sizing: border-box;
}

body.video-modal-open {
    overflow: hidden;
}

.slt1 img {
    width: 100%;
    height: 214px;
}
/* =========================
   主轮播
========================= */

.video-banner {
    width: 100%;
    background: #111;
}

.video-banner-main {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 3;
    min-height: 320px;
    overflow: hidden;
    background: #111;
}

.video-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    overflow: hidden;
    background: transparent;
}

.video-banner-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.14) 0%,
            rgba(0, 0, 0, 0) 45%,
            rgba(0, 0, 0, 0.08) 100%
        );
    pointer-events: none;
}

.video-banner-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition:
        opacity 0.35s ease,
        transform 6s ease;
}

.video-banner-image:hover img {
    transform: scale(1.025);
}

/* =========================
   中间播放按钮
========================= */

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(5px);
    transform: translate(-50%, -50%);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.video-banner-image:hover .video-play-button {
    background: rgba(255, 255, 255, 0.36);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-play-triangle {
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #fff;
}

/* =========================
   缩略图
========================= */

.video-banner-thumbs {
    position: absolute;
    bottom: 28px;
    left: 28px;
    z-index: 5;
    display: flex;
    gap: 12px;
    max-width: calc(100% - 56px);
    overflow-x: auto;
    scrollbar-width: none;
}

.video-banner-thumbs::-webkit-scrollbar {
    display: none;
}

.video-banner-thumb {
    position: relative;
    flex: 0 0 205px;
    width: 205px;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 3px solid transparent;
    background: #222;
    cursor: pointer;
    opacity: 0.72;
    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.video-banner-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.video-banner-thumb.active {
    border-color: #fff;
    opacity: 1;
}

.video-banner-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-banner-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
}

.thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}

.thumb-play span {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
}

/* =========================
   左右箭头
========================= */

.banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 48px;
    height: 70px;
    border: 0;
    color: #fff;
    font-size: 46px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition:
        opacity 0.25s ease,
        background 0.25s ease;
}

.video-banner-main:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.banner-arrow-prev {
    left: 0;
}

.banner-arrow-next {
    right: 0;
}

/* =========================
   视频弹窗
========================= */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.video-modal.open {
    visibility: visible;
    opacity: 1;
}

.video-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 92vw);
    background: #000;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
    transform: scale(0.94);
    transition: transform 0.25s ease;
}

.video-modal.open .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    display: block;
    width: 100%;
    max-height: 82vh;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    line-height: 38px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* =========================
   平板适配
========================= */

@media (max-width: 1024px) {
    .video-banner-main {
        aspect-ratio: 16 / 7;
        min-height: 340px;
    }

    .video-banner-thumb {
        flex-basis: 160px;
        width: 160px;
    }

    .video-play-button {
        width: 66px;
        height: 66px;
    }
}

/* =========================
   手机适配
========================= */

@media (max-width: 767px) {
    .video-banner-main {
        aspect-ratio: 16 / 10;
        min-height: 300px;
    }

    .video-banner-image img {
        object-position: center;
    }

    .video-banner-thumbs {
        right: 12px;
        bottom: 12px;
        left: 12px;
        gap: 8px;
        max-width: none;
    }

    .video-banner-thumb {
        flex-basis: 112px;
        width: 112px;
        border-width: 2px;
    }

    .video-play-button {
        width: 58px;
        height: 58px;
    }

    .video-play-triangle {
        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 18px;
    }

    .banner-arrow {
        display: none;
    }

    .thumb-play {
        width: 30px;
        height: 30px;
    }

    .video-modal {
        padding: 15px;
    }

    .video-modal-content {
        width: 100%;
    }
}


