/* 视频轮播容器 */
.video-carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.video-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播项 */
.video-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.video-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 视频样式 */
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    border: none;
}

.video-poster {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* 导航箭头 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* 分页点 */
.carousel-pagination {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    /* 增大点击区域 */
    position: relative;
}

.pagination-dot::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
}

.pagination-dot.active,
.pagination-dot:hover {
    background: #fff;
    transform: scale(1.3);
}

/* 滑动时禁止选择文本 */
.video-carousel-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y pinch-zoom;
}

/* 下滑按钮 - 参照图片样式 */
.scroll-down-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 25px;
}

.scroll-down-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) translateY(5px);
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 1;
}

.scroll-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

.scroll-icon svg {
    opacity: 0.9;
    margin: -8px 0;
    transition: opacity 0.3s ease;
}

.scroll-icon svg:first-child {
    opacity: 0.5;
    animation: fadeArrow 1.5s ease-in-out infinite;
}

.scroll-icon svg:last-child {
    animation: fadeArrow 1.5s ease-in-out infinite 0.2s;
}

/* 下滑动画 - 更明显的弹跳效果 */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

/* 箭头渐变动画 */
@keyframes fadeArrow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-pagination {
        bottom: 80px;
    }
    
    .scroll-down-btn {
        bottom: 30px;
    }
    
    .scroll-text {
        font-size: 10px;
    }
}
