/* video-showcase.css - 视频展示区样式 */

/* 视频区主容器 */
.video-showcase {
    padding: 3rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.video-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(118, 75, 162, 0.05), rgba(102, 126, 234, 0.05));
    z-index: 0;
}

.video-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 主视频 */
.main-video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #000;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    text-align: center;
    color: #1A202C;
}

.video-description {
    text-align: center;
    color: #4A5568;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* 视频控制 */
.video-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-video-wrapper:hover .video-controls {
    opacity: 1;
}

.video-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.video-control-btn i {
    color: white;
    font-size: 1.2rem;
}

/* 缩略图轮播 */
.thumbnail-carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.thumbnail-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #764ba2 #f1f1f1;
    scroll-behavior: smooth;
}

.thumbnail-carousel::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.thumbnail-carousel::-webkit-scrollbar-thumb {
    background: #764ba2;
    border-radius: 4px;
}

.video-thumbnail {
    flex: 0 0 auto;
    width: 220px;
    height: 124px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.video-thumbnail.active {
    border: 3px solid #764ba2;
    transform: translateY(-5px);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 32, 44, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.play-icon {
    color: white;
    font-size: 2rem;
}

.thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 轮播控制按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background-color: #764ba2;
}

.carousel-nav:hover i {
    color: white;
}

.carousel-nav i {
    color: #1A202C;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-video-wrapper {
        max-width: 100%;
    }
    
    .video-thumbnail {
        width: 180px;
        height: 100px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .video-thumbnail {
        width: 150px;
        height: 85px;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
}
