/**
 * 高级轮播图组件样式
 * 基于Swiper库的轮播图样式定制
 */

/* 轮播图容器 */
.aee-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Swiper容器 */
.aee-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1;
}

/* Swiper包装器 */
.aee-carousel .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

/* 幻灯片 */
.aee-carousel .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 幻灯片内容 */
.aee-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* 轮播图幻灯片容器 */
.aee-carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 图片容器 */
.aee-carousel-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 基础图片样式 */
.aee-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 全宽图片 */
.aee-carousel-image.full-width {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    margin-left: calc(-50vw + 50%);
}

/* 图片剪裁模式 */
.aee-carousel-image.crop-cover img {
    object-fit: cover;
}

.aee-carousel-image.crop-contain img {
    object-fit: contain;
}

.aee-carousel-image.crop-fill img {
    object-fit: fill;
}

.aee-carousel-image.crop-none img {
    object-fit: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* 背景覆盖 */
.aee-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 渐变色覆盖特殊样式 */
.aee-carousel-overlay[style*="linear-gradient"] {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: local;
}

/* 确保渐变色覆盖在不同混合模式下的兼容性 */
.aee-carousel-overlay[style*="mix-blend-mode"] {
    isolation: isolate;
}

/* 渐变色覆盖的动画效果 */
.aee-carousel-slide:hover .aee-carousel-overlay {
    opacity: 0.9;
}

/* 渐变色覆盖在移动设备上的优化 */
@media (max-width: 768px) {
    .aee-carousel-overlay[style*="linear-gradient"] {
        background-attachment: scroll;
    }
}

/* 轮播图幻灯片容器 - 使用flexbox布局 */
.aee-carousel-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

/* 内容容器 - 基于flexbox的布局系统 */
.aee-carousel-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: var(--content-padding-top, 20px) var(--content-padding-right, 20px) var(--content-padding-bottom, 20px) var(--content-padding-left, 20px);
    box-sizing: border-box;
    background: none;
    /* 应用偏移量 */
    margin-top: var(--content-offset-y, 0);
    margin-left: var(--content-offset-x, 0);
    text-align: center;
}

/* 基于flexbox的九宫格位置系统 */

/* 顶部位置 */
.aee-carousel-wrapper.position-top-left .aee-carousel-slide,
.aee-carousel-wrapper.position-top-center .aee-carousel-slide,
.aee-carousel-wrapper.position-top-right .aee-carousel-slide {
    align-items: flex-start;
    padding-top: 20px;
}

/* 中部位置（默认） */
.aee-carousel-wrapper.position-center-left .aee-carousel-slide,
.aee-carousel-wrapper.position-center .aee-carousel-slide,
.aee-carousel-wrapper.position-center-right .aee-carousel-slide {
    align-items: center;
}

/* 底部位置 */
.aee-carousel-wrapper.position-bottom-left .aee-carousel-slide,
.aee-carousel-wrapper.position-bottom-center .aee-carousel-slide,
.aee-carousel-wrapper.position-bottom-right .aee-carousel-slide {
    align-items: flex-end;
    padding-bottom: 20px;
}

/* 左侧位置 */
.aee-carousel-wrapper.position-top-left .aee-carousel-slide,
.aee-carousel-wrapper.position-center-left .aee-carousel-slide,
.aee-carousel-wrapper.position-bottom-left .aee-carousel-slide {
    justify-content: flex-start;
    padding-left: 20px;
}

/* 中央位置（默认） */
.aee-carousel-wrapper.position-top-center .aee-carousel-slide,
.aee-carousel-wrapper.position-center .aee-carousel-slide,
.aee-carousel-wrapper.position-bottom-center .aee-carousel-slide {
    justify-content: center;
}

/* 右侧位置 */
.aee-carousel-wrapper.position-top-right .aee-carousel-slide,
.aee-carousel-wrapper.position-center-right .aee-carousel-slide,
.aee-carousel-wrapper.position-bottom-right .aee-carousel-slide {
    justify-content: flex-end;
    padding-right: 20px;
}

/* 布局模式 - 盒模式 */
.elementor-widget-aee-carousel .aee-carousel-wrapper.layout-box .aee-carousel-content {
    max-width: var(--content-width, 90%) !important;
    width: var(--content-width, 90%) !important;
    flex-shrink: 0;
}

/* 盒模式下的位置定位 - 重写Flexbox定位，让内容在盒子内部对齐 */
.aee-carousel-wrapper.layout-box .aee-carousel-slide {
    justify-content: center !important;
    padding: 0 !important;
}

/* 盒模式下的左侧位置 */
.aee-carousel-wrapper.layout-box.position-top-left .aee-carousel-content,
.aee-carousel-wrapper.layout-box.position-center-left .aee-carousel-content,
.aee-carousel-wrapper.layout-box.position-bottom-left .aee-carousel-content {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 盒模式下的中央位置 */
.aee-carousel-wrapper.layout-box.position-top-center .aee-carousel-content,
.aee-carousel-wrapper.layout-box.position-center .aee-carousel-content,
.aee-carousel-wrapper.layout-box.position-bottom-center .aee-carousel-content {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 盒模式下的右侧位置 */
.aee-carousel-wrapper.layout-box.position-top-right .aee-carousel-content,
.aee-carousel-wrapper.layout-box.position-center-right .aee-carousel-content,
.aee-carousel-wrapper.layout-box.position-bottom-right .aee-carousel-content {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 布局模式 - 全宽模式 */
.elementor-widget-aee-carousel .aee-carousel-wrapper.layout-full_width .aee-carousel-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: var(--content-padding-left, 20px);
    padding-right: var(--content-padding-right, 20px);
    padding-top: var(--content-padding-top, 20px);
    padding-bottom: var(--content-padding-bottom, 20px);
}

/* 全宽模式下重置容器的padding，因为内容自己有padding */
.aee-carousel-wrapper.layout-full_width .aee-carousel-slide {
    padding: 0;
}

/* 文本对齐方式 */
.aee-carousel-wrapper.position-top-left .aee-carousel-content,
.aee-carousel-wrapper.position-center-left .aee-carousel-content,
.aee-carousel-wrapper.position-bottom-left .aee-carousel-content {
    text-align: left;
}

.aee-carousel-wrapper.position-top-center .aee-carousel-content,
.aee-carousel-wrapper.position-center .aee-carousel-content,
.aee-carousel-wrapper.position-bottom-center .aee-carousel-content {
    text-align: center;
}

.aee-carousel-wrapper.position-top-right .aee-carousel-content,
.aee-carousel-wrapper.position-center-right .aee-carousel-content,
.aee-carousel-wrapper.position-bottom-right .aee-carousel-content {
    text-align: right;
}

/* 基于flexbox的布局系统已经替代了上述复杂的绝对定位 */

/* 响应式设计 - 移动设备优化 */
@media (max-width: 768px) {
    /* 移动设备上减少padding */
    .aee-carousel-wrapper.position-top-left .aee-carousel-slide,
    .aee-carousel-wrapper.position-top-center .aee-carousel-slide,
    .aee-carousel-wrapper.position-top-right .aee-carousel-slide {
        padding-top: 10px;
    }
    
    .aee-carousel-wrapper.position-bottom-left .aee-carousel-slide,
    .aee-carousel-wrapper.position-bottom-center .aee-carousel-slide,
    .aee-carousel-wrapper.position-bottom-right .aee-carousel-slide {
        padding-bottom: 10px;
    }
    
    .aee-carousel-wrapper.position-top-left .aee-carousel-slide,
    .aee-carousel-wrapper.position-center-left .aee-carousel-slide,
    .aee-carousel-wrapper.position-bottom-left .aee-carousel-slide {
        padding-left: 10px;
    }
    
    .aee-carousel-wrapper.position-top-right .aee-carousel-slide,
    .aee-carousel-wrapper.position-center-right .aee-carousel-slide,
    .aee-carousel-wrapper.position-bottom-right .aee-carousel-slide {
        padding-right: 10px;
    }
    
    /* 移动设备上的内容宽度调整 */
    .aee-carousel-wrapper.layout-box .aee-carousel-content {
        max-width: var(--content-width, 95%);
    }
    
    /* 移动设备上的内边距调整 */
    .aee-carousel-content {
        padding: var(--content-padding-top, 10px) var(--content-padding-right, 10px) var(--content-padding-bottom, 10px) var(--content-padding-left, 10px);
    }
}

/* 全宽模式下的文本对齐 */
.aee-carousel-wrapper.layout-full_width.position-top-left .aee-carousel-content,
.aee-carousel-wrapper.layout-full_width.position-center-left .aee-carousel-content,
.aee-carousel-wrapper.layout-full_width.position-bottom-left .aee-carousel-content {
    text-align: left;
}

.aee-carousel-wrapper.layout-full_width.position-top-center .aee-carousel-content,
.aee-carousel-wrapper.layout-full_width.position-center .aee-carousel-content,
.aee-carousel-wrapper.layout-full_width.position-bottom-center .aee-carousel-content {
    text-align: center;
}

.aee-carousel-wrapper.layout-full_width.position-top-right .aee-carousel-content,
.aee-carousel-wrapper.layout-full_width.position-center-right .aee-carousel-content,
.aee-carousel-wrapper.layout-full_width.position-bottom-right .aee-carousel-content {
    text-align: right;
}

/* 标题样式 */
.aee-carousel-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: none;
    color: inherit;
}

/* 描述样式 */
.aee-carousel-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: none;
    color: inherit;
    opacity: 0.9;
}

/* 自定义内容 */
.aee-carousel-custom-content {
    color: inherit;
}

.aee-carousel-custom-content * {
    color: inherit;
    text-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aee-carousel-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .aee-carousel-description {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .aee-carousel-content {
        padding: 15px;
        max-width: 95%;
    }
    
    /* 移动设备上的布局调整 */
    .aee-carousel-wrapper.layout-box .aee-carousel-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .aee-carousel-wrapper.layout-full_width .aee-carousel-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 移动设备上的位置调整 */
    .aee-carousel-wrapper.position-top-left .aee-carousel-content,
    .aee-carousel-wrapper.position-center-left .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-left .aee-carousel-content {
        left: 15px;
    }
    
    .aee-carousel-wrapper.position-top-right .aee-carousel-content,
    .aee-carousel-wrapper.position-center-right .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-right .aee-carousel-content {
        right: 15px;
    }
    
    .aee-carousel-wrapper.position-top-left .aee-carousel-content,
    .aee-carousel-wrapper.position-top-center .aee-carousel-content,
    .aee-carousel-wrapper.position-top-right .aee-carousel-content {
        top: 15px;
    }
    
    .aee-carousel-wrapper.position-bottom-left .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-center .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-right .aee-carousel-content {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .aee-carousel-title {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .aee-carousel-description {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    .aee-carousel-content {
        padding: 10px;
    }
    
    /* 小屏幕设备上的布局调整 */
    .aee-carousel-wrapper.layout-box .aee-carousel-content {
        max-width: 98%;
        padding: 10px;
    }
    
    .aee-carousel-wrapper.layout-full_width .aee-carousel-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 小屏幕设备上的位置调整 */
    .aee-carousel-wrapper.position-top-left .aee-carousel-content,
    .aee-carousel-wrapper.position-center-left .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-left .aee-carousel-content {
        left: 0;
    }
    
    .aee-carousel-wrapper.position-top-right .aee-carousel-content,
    .aee-carousel-wrapper.position-center-right .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-right .aee-carousel-content {
        right: 0;
    }
    
    .aee-carousel-wrapper.position-top-left .aee-carousel-content,
    .aee-carousel-wrapper.position-top-center .aee-carousel-content,
    .aee-carousel-wrapper.position-top-right .aee-carousel-content {
        top: 0;
    }
    
    .aee-carousel-wrapper.position-bottom-left .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-center .aee-carousel-content,
    .aee-carousel-wrapper.position-bottom-right .aee-carousel-content {
        bottom: 0;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .aee-carousel-title,
    .aee-carousel-description {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    
    .aee-carousel-overlay {
        opacity: 0.8;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .aee-carousel-image img {
        transition: none;
    }
    
    /* 移除旧的transform定位，现在使用flexbox布局 */
}

/* 内容在图片上的层级确保 */
.aee-carousel-slide {
    isolation: isolate;
}

.aee-carousel-image {
    z-index: 0;
}

.aee-carousel-overlay {
    z-index: 1;
}

.aee-carousel-content {
    z-index: 2;
    position: relative;
}

/* 当没有背景覆盖时，确保文字可读性 */
.aee-carousel-slide:not(.has-overlay) .aee-carousel-content {
    background: none;
    border-radius: 0;
    backdrop-filter: none;
}

/* 链接样式 */
.aee-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.aee-carousel-slide a:hover .aee-carousel-image img {
    transform: scale(1.05);
}

.aee-carousel-slide a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* 自定义内容幻灯片 */
.aee-slide-custom {
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aee-slide-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.2;
}

.aee-slide-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    max-width: 80%;
}

.aee-slide-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.aee-slide-button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

/* 导航箭头 */
.aee-carousel .swiper-button-next,
.aee-carousel .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007cba;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.aee-carousel .swiper-button-next:hover,
.aee-carousel .swiper-button-prev:hover {
    background: #fff;
    color: #005a87;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.aee-carousel .swiper-button-next {
    right: 10px;
}

.aee-carousel .swiper-button-prev {
    left: 10px;
}

.aee-carousel .swiper-button-next:after,
.aee-carousel .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    font-variant: initial;
    line-height: 1;
}

.aee-carousel .swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* 分页器 */
.aee-carousel .swiper-pagination {
    position: absolute;
    text-align: center;
    transition: 0.3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

/* 分页器位置样式 */
/* 底部位置（默认） */
.aee-carousel .swiper-pagination.position-bottom {
    bottom: 10px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

/* 顶部位置 */
.aee-carousel .swiper-pagination.position-top {
    top: 10px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

/* 左侧位置 */
.aee-carousel .swiper-pagination.position-left {
    left: 10px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

/* 右侧位置 */
.aee-carousel .swiper-pagination.position-right {
    right: 10px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

/* 左右位置的圆点样式调整 */
.aee-carousel .swiper-pagination.position-left .swiper-pagination-bullet,
.aee-carousel .swiper-pagination.position-right .swiper-pagination-bullet {
    display: block;
    margin: 4px 0;
}

/* 圆点分页器 */
.aee-carousel .swiper-pagination-bullets {
    bottom: 10px;
    left: 0;
    width: 100%;
}

/* 圆点分页器位置重写 */
.aee-carousel .swiper-pagination-bullets.position-bottom {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.aee-carousel .swiper-pagination-bullets.position-top {
    top: 10px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.aee-carousel .swiper-pagination-bullets.position-left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

.aee-carousel .swiper-pagination-bullets.position-right {
    right: 10px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

.aee-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.aee-carousel .swiper-pagination-bullet-active {
    background: #007cba;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.aee-carousel .swiper-pagination-bullet:hover {
    background: rgba(0, 124, 186, 0.8);
    transform: scale(1.1);
}

/* 分数分页器 */
.aee-carousel .swiper-pagination-fraction {
    bottom: 10px;
    left: 0;
    width: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 进度条分页器 */
.aee-carousel .swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.25);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.aee-carousel .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #007cba;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: left top;
}

/* 效果样式 */

/* 淡入淡出效果 */
.aee-carousel.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.aee-carousel.swiper-fade .swiper-slide .swiper-slide {
    pointer-events: none;
}

.aee-carousel.swiper-fade .swiper-slide-active,
.aee-carousel.swiper-fade .swiper-slide-active .swiper-slide-active {
    pointer-events: auto;
}

/* 立方体效果 */
.aee-carousel.swiper-cube {
    overflow: visible;
}

.aee-carousel.swiper-cube .swiper-slide {
    pointer-events: none;
    backface-visibility: hidden;
    z-index: 1;
    visibility: hidden;
    transform-origin: 0 0;
    width: 100%;
    height: 100%;
}

.aee-carousel.swiper-cube .swiper-slide .swiper-slide {
    pointer-events: none;
}

.aee-carousel.swiper-cube.swiper-rtl .swiper-slide {
    transform-origin: 100% 0;
}

.aee-carousel.swiper-cube .swiper-slide-active,
.aee-carousel.swiper-cube .swiper-slide-active .swiper-slide-active {
    pointer-events: auto;
}

.aee-carousel.swiper-cube .swiper-slide-active,
.aee-carousel.swiper-cube .swiper-slide-next,
.aee-carousel.swiper-cube .swiper-slide-prev,
.aee-carousel.swiper-cube .swiper-slide-next + .swiper-slide {
    pointer-events: auto;
    visibility: visible;
}

/* 覆盖流效果 */
.aee-carousel.swiper-coverflow .swiper-slide {
    backface-visibility: hidden;
}

/* 翻转效果 */
.aee-carousel.swiper-flip {
    overflow: visible;
}

.aee-carousel.swiper-flip .swiper-slide {
    pointer-events: none;
    backface-visibility: hidden;
    z-index: 1;
}

.aee-carousel.swiper-flip .swiper-slide .swiper-slide {
    pointer-events: none;
}

.aee-carousel.swiper-flip .swiper-slide-active,
.aee-carousel.swiper-flip .swiper-slide-active .swiper-slide-active {
    pointer-events: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aee-carousel .swiper-button-next,
    .aee-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .aee-carousel .swiper-button-next:after,
    .aee-carousel .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .aee-carousel .swiper-button-next {
        right: 5px;
    }
    
    .aee-carousel .swiper-button-prev {
        left: 5px;
    }
    
    .aee-slide-title {
        font-size: 1.5em;
    }
    
    .aee-slide-description {
        font-size: 1em;
        max-width: 90%;
    }
    
    .aee-slide-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .aee-slide-custom {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .aee-carousel .swiper-button-next,
    .aee-carousel .swiper-button-prev {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
    
    .aee-carousel .swiper-button-next:after,
    .aee-carousel .swiper-button-prev:after {
        font-size: 12px;
    }
    
    .aee-slide-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .aee-slide-description {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .aee-slide-button {
        padding: 8px 16px;
        font-size: 0.85em;
    }
    
    .aee-slide-custom {
        padding: 10px;
    }
}

/* 加载状态 */
.aee-carousel-loading {
    position: relative;
    min-height: 200px;
}

.aee-carousel-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: aee-carousel-spin 1s linear infinite;
    z-index: 10;
}

@keyframes aee-carousel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 自动播放指示器 */
.aee-carousel-autoplay-active .aee-carousel::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #007cba;
    border-radius: 50%;
    z-index: 11;
    animation: aee-carousel-pulse 2s infinite;
}

@keyframes aee-carousel-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 124, 186, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0);
    }
}

/* 无障碍支持 */
.aee-carousel [aria-hidden="true"] {
    display: none;
}

.aee-carousel .swiper-button-next:focus,
.aee-carousel .swiper-button-prev:focus,
.aee-carousel .swiper-pagination-bullet:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .aee-carousel .swiper-button-next,
    .aee-carousel .swiper-button-prev {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .aee-carousel .swiper-pagination-bullet {
        background: #000;
        border: 2px solid #fff;
    }
    
    .aee-carousel .swiper-pagination-bullet-active {
        background: #fff;
        border-color: #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .aee-carousel .swiper-wrapper,
    .aee-carousel .swiper-slide,
    .aee-carousel .swiper-button-next,
    .aee-carousel .swiper-button-prev,
    .aee-carousel .swiper-pagination-bullet,
    .aee-slide-button {
        transition: none;
        animation: none;
    }
    
    .aee-carousel-loading::before {
        animation: none;
        border: 3px solid #007cba;
    }
    
    .aee-carousel-autoplay-active .aee-carousel::after {
        animation: none;
    }
}

/* 按钮样式 - 继承Elementor全局按钮样式 */
.aee-carousel-button {
    /* 基础布局样式 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 20px;
    white-space: nowrap;
    box-sizing: border-box;
    
    /* 继承Elementor全局按钮样式的默认值 */
    background-color: var(--e-global-color-accent, #007cba);
    color: var(--e-global-color-text, #ffffff);
    border: var(--e-global-border-width, 0) solid var(--e-global-color-accent, #007cba);
    border-radius: var(--e-global-border-radius, 4px);
    padding: var(--e-global-spacing-sm, 12px) var(--e-global-spacing-md, 24px);
    font-size: var(--e-global-typography-text-font-size, 14px);
    font-weight: var(--e-global-typography-text-font-weight, 500);
    line-height: var(--e-global-typography-text-line-height, 1.4);
    font-family: var(--e-global-typography-text-font-family, inherit);
    transition: all 0.3s ease;
}

.aee-carousel-button:hover {
    background-color: var(--e-global-color-accent-hover, #005a87);
    color: var(--e-global-color-text-hover, #ffffff);
    border-color: var(--e-global-color-accent-hover, #005a87);
}

.aee-carousel-button:active {
    background-color: var(--e-global-color-accent-hover, #005a87);
    color: var(--e-global-color-text-hover, #ffffff);
    border-color: var(--e-global-color-accent-hover, #005a87);
}

/* 按钮图标样式 */
.aee-carousel-button .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aee-carousel-button .button-icon svg {
    width: 14px;
    height: auto;
    fill: currentColor;
}

/* 图标位置 */
.aee-carousel-button.icon-left .button-icon {
    margin-right: 8px;
}

.aee-carousel-button.icon-right .button-icon {
    margin-left: 8px;
}

/* 按钮文本 */
.aee-carousel-button .button-text {
    flex: 1;
}

/* 响应式按钮样式 */
@media (max-width: 768px) {
    .aee-carousel-button.icon-left .button-icon {
        margin-right: 6px;
    }
    
    .aee-carousel-button.icon-right .button-icon {
        margin-left: 6px;
    }
}

@media (max-width: 480px) {    
    .aee-carousel-button.icon-left .button-icon {
        margin-right: 4px;
    }
    
    .aee-carousel-button.icon-right .button-icon {
        margin-left: 4px;
    }
}