.swiper-manager-container.swiper-style4 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.swiper-manager-container.swiper-style4 {
    width: 100%;
    position: relative;
    perspective: 1200px; /* 为coverflow效果提供透视效果 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Coverflow Effect Specific Styles */
.swiper-manager-container.swiper-style4 .main-swiper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* 保持3D变换风格 */
}

.swiper-manager-container.swiper-style4 .swiper-slide {
    position: relative;
    overflow: hidden;
    min-height: 350px; /* 为coverflow效果设置合适的最小高度 */
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
}

/* Background Image and Video Styles */
.swiper-manager-container.swiper-style4 .slide-background-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.swiper-manager-container.swiper-style4 .fixedheight .slide-background-img {
        height: 100%;
        }



.swiper-manager-container.swiper-style4 .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.swiper-manager-container.swiper-style4 .video-container iframe,
.swiper-manager-container.swiper-style4 .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Container Styles */
.swiper-manager-container.swiper-style4 .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    color: white;
    padding: 2em 4em;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    transform-style: preserve-3d; /* 确保内容在3D空间中正确显示 */
    transform: translateZ(50px); /* 将内容向前移动以在3D空间中突出显示 */
}

/* Text Styles */
.swiper-manager-container.swiper-style4 .slide-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #fff;
}

.swiper-manager-container.swiper-style4 .slide-subtitle {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #fff;
}

.swiper-manager-container.swiper-style4 .slide-description {
    font-size: 12px;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    color: #fff;
}

/* Link Button Styles */
.swiper-manager-container.swiper-style4 .slide-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255,255,255,0.9);
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center;
    z-index: 100; /* 确保在3D空间中可以点击 */
    position: relative;
    transform: translateZ(100px); /* 使按钮在3D空间中更靠前 */
}

.swiper-manager-container.swiper-style4 .slide-link:hover {
    background-color: white;
    transform: translateY(-2px) translateZ(100px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Overlay to make text clearer */
.swiper-manager-container.swiper-style4 .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 3;
}

/* Navigation Button Styles */
.swiper-manager-container.swiper-style4 .swiper-button-prev,
.swiper-manager-container.swiper-style4 .swiper-button-next {
    display: block !important;
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    z-index: 1000; /* 提高z-index确保在3D空间中显示在最上层 */
    cursor: pointer;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 32px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: translateZ(200px); /* 将按钮向前移动以在3D空间中突出显示 */
    will-change: transform, z-index; /* 优化浏览器渲染性能 */
}

.swiper-manager-container.swiper-style4 .swiper-button-prev::after {
    content: '<';
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.swiper-manager-container.swiper-style4 .swiper-button-next::after {
    content: '>';
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.swiper-manager-container.swiper-style4 .swiper-button-next svg,
.swiper-manager-container.swiper-style4 .swiper-button-prev svg {
    display: none; /* 隐藏默认SVG，使用CSS伪元素替代 */
}

.swiper-manager-container.swiper-style4 .swiper-button-prev {
    left: 8px;
}

.swiper-manager-container.swiper-style4 .swiper-button-next {
    right: 8px;
}

.swiper-manager-container.swiper-style4 .swiper-button-prev:hover,
.swiper-manager-container.swiper-style4 .swiper-button-next:hover {
    background-color: rgba(0,0,0,0.75);
    transform: scale(1.1) translateZ(100px);
}

/* Pagination Indicator Styles */
.swiper-manager-container.swiper-style4 .swiper-pagination {
    display: block;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1000; /* 提高z-index确保在3D空间中显示在最上层 */
    transform-style: preserve-3d;
    transform: translateZ(200px); /* 将分页器向前移动以在3D空间中突出显示 */
    will-change: transform, z-index; /* 优化浏览器渲染性能 */
}

.swiper-manager-container.swiper-style4 .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
}

.swiper-manager-container.swiper-style4 .swiper-pagination-bullet-active {
    background: white;
    width: 12px;
    height: 12px;
}

/* Thumbnail Slider Styles */
.swiper-manager-container.swiper-style4 .swiper-thumbs-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.swiper-manager-container.swiper-style4 .thumbs-swiper {
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.swiper-manager-container.swiper-style4 .thumbs-swiper .thumb-title {
    display:none;
}

.swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-slide {
    width: auto;
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
    min-height: auto;
    transform-style: flat; /* 缩略图不使用3D变换 */
    margin: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #fff;
}

.swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-slide img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper-manager-container.swiper-style4 .slide-title {
        font-size: 2rem;
    }
    
    /* Mobile 1:1 aspect ratio for background images and videos */
    .swiper-manager-container.swiper-style4 img.md-squre,
    .swiper-manager-container.swiper-style4 iframe.md-squre,
    .swiper-manager-container.swiper-style4 video.md-squre {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover !important;
    }
    
    .swiper-manager-container.swiper-style4 iframe.md-squre { border: none; }
    
    .swiper-manager-container.swiper-style4 .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .swiper-manager-container.swiper-style4 .swiper-button-prev,
    .swiper-manager-container.swiper-style4 .swiper-button-next {
        width: 24px;
        height: 24px;
        margin-top: -12px;
        line-height: 24px;
    }
    
    .swiper-manager-container.swiper-style4 .swiper-button-prev::after,
    .swiper-manager-container.swiper-style4 .swiper-button-next::after {
        font-size: 14px; /* 在移动设备上使用较小的字体大小 */
    }
    
    .swiper-manager-container.swiper-style4 .swiper-thumbs .swiper-slide {
        height: 60px;
    }
}