/* ==============================================
   卡片图片轮播 - 景深效果 (近大远小)
   ============================================== */

.lx-card-carousel {
    position: relative;
    --lx-card-carousel-image-width: 45%;
    --lx-card-carousel-image-aspect-ratio: 0;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: clip;
    overflow-y: visible;
    contain: layout;
}

.lx-card-carousel .carousel-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible;
    min-height: 200px;
}

/* --- Slide 卡片 --- */
.lx-card-carousel .carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    cursor: pointer;
    transition:
            transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
            width 600ms cubic-bezier(0.22, 1, 0.36, 1),
            height 600ms cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 600ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, width, height;
    backface-visibility: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.lx-card-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lx-card-carousel .carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- 箭头 --- */
.lx-card-carousel .carousel-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lx-card-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    /* 默认圆形按钮样式 */
    width: 40px;
    height: 40px;
    color: #ffffff;
    background-color: #333333;
    border-radius: 50%;
    font-size: 16px;
}

.lx-card-carousel .carousel-arrow svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.lx-card-carousel .carousel-arrow i {
    font-size: inherit;
    line-height: 1;
}

.lx-card-carousel .carousel-arrow-prev {
    left: 5%;
}

.lx-card-carousel .carousel-arrow-next {
    right: 5%;
}

/* --- 圆点 --- */
.lx-card-carousel .carousel-dots {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 50;
}

.lx-card-carousel .carousel-dot {
    display: block;
    width: 10px;
    height: 10px;
    background-color: #cccccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lx-card-carousel .carousel-dot:hover {
    background-color: #999999;
}

.lx-card-carousel .carousel-dot.active {
    background-color: #333333;
    width: 12px;
    height: 12px;
}
