/* 原有的Gallery样式 */
.video-gallery { 
    margin-top: 30px; 
    margin-bottom: 50px; 
    position: relative;
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 40px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%; /* 3个页面 */
}

.carousel-slide {
    width: 33.333%; /* 每个slide占1/3 */
    flex-shrink: 0;
}

.gallery-row { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 40px; 
    align-items: stretch; 
    padding: 0 20px;
}

.ref-video { 
    flex: 0 0 25%; 
    min-width: 0; 
}

.style-videos { 
    flex: 1; 
    display: flex; 
    gap: 15px; 
    min-width: 0; 
}

.style-videos .video-wrapper { 
    flex: 1; 
    min-width: 0; 
}

.video-wrapper { 
    position: relative; 
    width: 100%; 
    height: 200px; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    background: #f0f0f0; 
}

.video-wrapper:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2); 
}

.video-wrapper video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 12px; 
    outline: none; 
}

.video-label { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); 
    color: white; 
    padding: 15px 12px 8px; 
    font-size: 14px; 
    font-weight: 600; 
    text-align: center; 
    border-radius: 0 0 12px 12px; 
    backdrop-filter: blur(5px); 
    z-index: 3; 
}

.ref-video .video-label { 
    background: linear-gradient(transparent, rgba(147, 112, 219, 0.9)); 
    color: white; 
}

/* 进度条样式 */
.video-progress-container {
    position: absolute;
    bottom: 35px;
    left: 12px;
    right: 12px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.video-wrapper:hover .video-progress-container {
    opacity: 1;
}

.video-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #9370db, #ba55d3);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.video-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-progress-bar::after {
    opacity: 1;
}

.ref-video .video-progress-bar {
    background: linear-gradient(90deg, #9370db, #dda0dd);
}

/* 时间显示 */
.video-time {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.video-wrapper:hover .video-time {
    opacity: 1;
}

/* 播放/暂停按钮 */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper:hover .video-play-btn {
    opacity: 1;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 轮播导航按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(147, 112, 219, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(147, 112, 219, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.4);
}

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

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

/* 页面指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(147, 112, 219, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: rgba(147, 112, 219, 1);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(147, 112, 219, 0.7);
}

/* 轮播标题样式 */
.carousel-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #333333;
    padding-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-row {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .ref-video {
        flex: none;
    }
    
    .style-videos {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-wrapper {
        height: 150px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text-header {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.title {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
}

.body-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.resource-button-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #9370db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 5px;
}

.resource-button-video:hover {
    background: #7b68ee;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 112, 219, 0.3);
    color: white;
    text-decoration: none;
}

.list-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.list-inline-item {
    display: inline-block;
}


.carousel-wrapper.four-slides {
    width: 400%; /* 4个页面 */
}

.carousel-wrapper.four-slides .carousel-slide {
    width: 25%; /* 每个slide占1/4 */
}



li {
    font-size: 18px;
}