/* ===================================
   Video Carousel Styles
   @version 1.0.1
   @updated 2026-01-16
   =================================== */

.vpw-carousel-wrapper {
    width: 100%;
    margin: 40px 0;
    padding: 0; /* 移除左右padding实现全宽 */
}

.vpw-carousel-header {
    text-align: center;
    margin-bottom: 30px;
}

.vpw-carousel-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.vpw-carousel-title::before {
    content: "Over";
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #718096;
    margin-bottom: 8px;
}

.vpw-carousel-container {
    position: relative;
    max-width: 100%; /* 改为100%实现全宽 */
    margin: 0; /* 移除auto居中 */
    width: 100%;
}

/* Swiper 自定义 */
.vpw-carousel-container .swiper {
    padding: 10px 0 20px;
}

.vpw-carousel-container .swiper-wrapper {
    align-items: center;
}

/* 视频幻灯片 */
.vpw-video-slide {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vpw-video-slide:hover {
    transform: translateY(-5px);
}

.vpw-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vpw-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vpw-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vpw-video-placeholder .dashicons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

/* 播放按钮 */
.vpw-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
}

.vpw-video-slide:hover .vpw-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.vpw-play-button svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* 视频标识徽章 */
.vpw-video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 6px 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vpw-video-badge svg {
    width: 20px;
    height: 20px;
}

/* Swiper 导航按钮 */
.vpw-carousel-container .swiper-button-prev,
.vpw-carousel-container .swiper-button-next {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #2d3748;
}

.vpw-carousel-container .swiper-button-prev:after,
.vpw-carousel-container .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.vpw-carousel-container .swiper-button-prev:hover,
.vpw-carousel-container .swiper-button-next:hover {
    background: #f7fafc;
}

.vpw-carousel-container .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Swiper 分页器 */
.vpw-carousel-container .swiper-pagination {
    bottom: 0;
}

.vpw-carousel-container .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    opacity: 1;
    transition: all 0.3s ease;
}

.vpw-carousel-container .swiper-pagination-bullet-active {
    background: #4299e1;
    width: 24px;
    border-radius: 4px;
}
