/* 移动端图片轮播样式 */
.mobile-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#posterCarousel {
    position: relative;
}

#posterCarousel .carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

#posterCarousel .carousel-item {
    transition: opacity 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
}

#posterCarousel .carousel-item.active {
    position: relative;
    opacity: 1;
}

#posterCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: none;
}

/* 轮播控制按钮样式 */
#posterCarousel .carousel-control-prev,
#posterCarousel .carousel-control-next {
    width: 15%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#posterCarousel .carousel-control-prev:hover,
#posterCarousel .carousel-control-next:hover {
    opacity: 1;
}

#posterCarousel .carousel-control-prev-icon,
#posterCarousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    background-size: 50% 50%;
}

/* 轮播指示器样式 */
#posterCarousel .carousel-indicators {
    bottom: -30px;
}

#posterCarousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    margin: 0 4px;
    transition: all 0.3s ease;
}

#posterCarousel .carousel-indicators li.active {
    background-color: rgba(0, 0, 0, 0.8);
    width: 12px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .mobile-gallery {
        margin-bottom: 30px;
    }
    
    #posterCarousel .carousel-item img {
        width: 100%;
        height: auto;
    }
    
    #posterCarousel .carousel-control-prev-icon,
    #posterCarousel .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
    
    #posterCarousel .carousel-indicators {
        bottom: -25px;
    }
    
    #posterCarousel .carousel-indicators li {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
    
    #posterCarousel .carousel-indicators li.active {
        width: 10px;
    }
}

/* 轮播计数器样式 */
.carousel-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #333;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-counter .current-slide,
.carousel-counter .total-slides {
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.carousel-counter .current-slide {
    font-weight: 600;
    color: #000;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .carousel-counter {
        bottom: -45px;
        font-size: 12px;
        padding: 4px 12px;
    }
}

/* 加载动画 */
.mobile-gallery {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}