/* 视频模块样式 */
.home-video-module {
    position: relative;
}

.home-video-module > .container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-video-module > .container-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* 修复全宽布局 - 确保容器占满全宽 */
.home-video-module .container-full {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
}

.home-video-module .widget-slider {
    position: relative;
}

/* 修复全宽时视频靠左问题 */
.home-video-module .container-full .widget-slider {
    width: 100%;
    border-radius: 0;
}

.home-video-module .widget-slider-item {
    position: relative;
    text-align: center;
    height: 500px;
    overflow: hidden;
}

/* 确保视频占满整个容器 */
.home-video-module .widget-slider-item .slider-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.home-video-module .widget-slider-item .slider-warp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.home-video-module .u-permalink {
    position: absolute;
    bottom: 0;
    left: 0;
    outline: 0;
    right: 0;
    top: 0;
    z-index: 1;
}

/* Owl Carousel 修复 - 防止重复显示 */
.home-video-module .owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.home-video-module .owl-carousel .owl-stage {
    display: flex;
}

.home-video-module .owl-carousel .item {
    width: 100%;
}

/* 当只有一个视频时，禁用循环和克隆 */
.home-video-module .owl-carousel.single-item .owl-item {
    width: 100% !important;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .home-video-module .widget-slider-item {
        height: 300px;
    }
}
