.elementor-swiper-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    box-sizing: border-box;
}

.elementor-swiper-carousel-wrapper .swiper-container {
    width: 100%;
    height: 100%;
    overflow: visible !important; /* 重要：允许放大的slide可见 */
}

.elementor-swiper-carousel-wrapper .swiper-wrapper {
    display: flex;
    align-items: center;
    min-height: 400px;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.elementor-swiper-carousel-wrapper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease, opacity 0.6s ease !important;
    opacity: 0.6;
    transform: scale(1);
    z-index: 0;
    transform-origin: center center; /* 确保缩放从中心开始 */
    will-change: transform, opacity; /* 优化性能 */
}

/* 活动slide */
.elementor-swiper-carousel-wrapper .swiper-slide-active {
    opacity: 1;
    z-index: 2;
}

/* 前后slide */
.elementor-swiper-carousel-wrapper .swiper-slide-prev,
.elementor-swiper-carousel-wrapper .swiper-slide-next {
    opacity: 0.8;
    z-index: 1;
}

/* slide内部容器 */
.elementor-swiper-carousel-wrapper .swiper-slide-inner {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateZ(0);
    position: relative;
}

/* 确保放大的slide不会覆盖邻居 */
.elementor-swiper-carousel-wrapper .swiper-slide[style*="scale(1.5)"] {
    margin: 0 -15px; /* 为放大留出空间 */
}

.elementor-swiper-carousel-wrapper .swiper-slide[style*="scale(0.95)"] {
    margin: 0 5px; /* 为缩小留出空间 */
}

/* 图片容器 */
.elementor-swiper-carousel-wrapper .swiper-slide-image {
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
    position: relative;
}

.elementor-swiper-carousel-wrapper .swiper-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.elementor-swiper-carousel-wrapper .swiper-slide:hover .swiper-slide-image img {
    transform: scale(1.05);
}

/* 内容区域 */
.elementor-swiper-carousel-wrapper .swiper-slide-content {
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.elementor-swiper-carousel-wrapper .slide-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.elementor-swiper-carousel-wrapper .slide-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* 导航箭头 */
.elementor-swiper-carousel-wrapper .esc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20; /* 确保箭头在slide之上 */
    transition: all 0.3s ease;
    border: none;
    opacity: 1;
    visibility: visible;
}

.elementor-swiper-carousel-wrapper .esc-arrow:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.elementor-swiper-carousel-wrapper .esc-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.elementor-swiper-carousel-wrapper .esc-arrow svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.elementor-swiper-carousel-wrapper .esc-arrow-prev {
    left: 20px;
}

.elementor-swiper-carousel-wrapper .esc-arrow-next {
    right: 20px;
}

/* 分页器 */
.elementor-swiper-carousel-wrapper .swiper-pagination {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: all 0.3s ease;
}

/* 分页器位置 - 顶部 */
.elementor-swiper-carousel-wrapper .esc-pagination-top {
    top: 0;
    bottom: auto !important;
}

/* 分页器位置 - 底部 */
.elementor-swiper-carousel-wrapper .esc-pagination-bottom {
    bottom: 0;
    top: auto !important;
}

.elementor-swiper-carousel-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin: 0 4px;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.elementor-swiper-carousel-wrapper .swiper-pagination-bullet-active {
    background: #0073aa;
    width: 30px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .elementor-swiper-carousel-wrapper {
        padding: 40px 0;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide[style*="scale(1.5)"] {
        margin: 0 -10px;
    }
}

@media (max-width: 767px) {
    .elementor-swiper-carousel-wrapper {
        padding: 30px 0;
    }
    
    /* 手机端禁用缩放 */
    .elementor-swiper-carousel-wrapper .swiper-slide {
        transform: scale(1) !important;
    }
    
    .elementor-swiper-carousel-wrapper .esc-arrow {
        display: none;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide {
        opacity: 0.7;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide-active {
        opacity: 1;
    }
    
    .elementor-swiper-carousel-wrapper .swiper-slide[style*="scale(1.5)"] {
        margin: 0 -5px;
    }
}

/* 编辑器模式特殊样式 */
.elementor-editor-active .elementor-swiper-carousel-wrapper {
    pointer-events: auto !important;
}

/* 编辑模式下的预览样式 */
.elementor-editor-preview .elementor-swiper-carousel-wrapper {
    pointer-events: auto !important;
}

/* 修复Swiper默认样式冲突 */
.elementor-swiper-carousel-wrapper .swiper-slide.swiper-slide-duplicate {
    display: flex;
}

/* 确保slide之间有间距且不覆盖 */
.elementor-swiper-carousel-wrapper .swiper-wrapper::before,
.elementor-swiper-carousel-wrapper .swiper-wrapper::after {
    content: '';
    flex: 0 0 1px;
    width: 1px;
}
/* 确保将 ID 或类名替换为你实际使用的父级类名 */
.elementor-swiper-carousel-wrapper .esc-arrow-prev,
.elementor-swiper-carousel-wrapper .esc-arrow-next {
    z-index: 50 !important; /* 必须大于 JS 中设置的 2 */
}