/* 视频轮播容器 */
.video-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    overflow: hidden;
}

/* 视频轮播轨道 */
.video-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

/* 视频轮播项 */
.video-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.video-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* 视频卡片 */
.video-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 1rem 0;
}

/* 视频包装器 */
.video-wrapper {
    position: relative;
    width: 50%;
    min-height: 320px;
    background: #000;
    overflow: hidden;
}

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

/* 视频播放覆盖层 */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-icon:hover {
    transform: scale(1.1);
    background: #fff;
}

.video-wrapper.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-wrapper.playing:hover .video-play-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* 视频内容区域 */
.video-content {
    width: 50%;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-size: 28px;
    font-weight: 600;
    color: #1E2329;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.video-desc {
    font-size: 14px;
    color: #707A8A;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* 观看完整视频按钮 */
.watch-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0ECB81;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.watch-full-btn:hover {
    background: #0BA86A;
    transform: translateY(-2px);
}

.watch-full-btn:active {
    transform: translateY(0);
}

/* 导航按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #EAECEF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E2329;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: -24px;
}

.next-btn {
    right: -24px;
}

/* 指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EAECEF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background: #0ECB81;
}

.indicator:hover {
    background: #B7BDC0;
}

.indicator.active:hover {
    background: #0BA86A;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .video-carousel-container {
        padding: 0 0.5rem;
    }
    
    .video-card {
        flex-direction: column;
    }
    
    .video-wrapper {
        width: 100%;
        min-height: 240px;
    }
    
    .video-content {
        width: 100%;
        padding: 1.5rem 2rem;
    }
    
    .video-title {
        font-size: 24px;
    }
    
    .prev-btn {
        left: 8px;
    }
    
    .next-btn {
        right: 8px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 640px) {
    .video-carousel-container {
        margin: 1rem auto;
    }
    
    .video-card {
        border-radius: 12px;
        margin: 0.5rem 0;
    }
    
    .video-wrapper {
        min-height: 180px;
    }
    
    .video-content {
        padding: 1rem 1.5rem;
    }
    
    .video-title {
        font-size: 18px;
        margin-bottom: 0.5rem;
    }
    
    .video-desc {
        font-size: 12px;
        margin-bottom: 1rem;
    }
    
    .watch-full-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .play-icon {
        width: 48px;
        height: 48px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .prev-btn {
        left: 4px;
    }
    
    .next-btn {
        right: 4px;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .video-card {
        background: #1E2329;
    }
    
    .video-title {
        color: #EAECEF;
    }
    
    .video-desc {
        color: #848E9C;
    }
    
    .carousel-nav {
        background: rgba(30, 35, 41, 0.9);
        border-color: #2B3139;
        color: #EAECEF;
    }
    
    .carousel-nav:hover {
        background: #2B3139;
    }
    
    .indicator {
        background: #2B3139;
    }
    
    .indicator:hover {
        background: #474D57;
    }
}
