#new-carousel {
    /* 移除高度限制以解决轮播图显示问题 */
    height: auto !important;
    max-height: none !important;
    overflow: visible;
}



.product-carousel {
    padding: 1rem 0 !important; /* 减少整体轮播区域的上下内边距 */
}

.product-card {
    margin-bottom: 0.1rem !important;
    padding-bottom: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
}

#new-carousel .slick-slide .bg-white {
    max-height: 430px !important;
    overflow: hidden;
}
#new-carousel .slick-slide > div > img {
    /* 移除固定高度设置，允许自适应高度 */
    object-fit: cover !important;
    display: block;
    aspect-ratio: auto !important;
    max-height: 230px !important;
}

/* 模态框样式修复 */
#product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* 移除条件显示类，通过JavaScript直接控制样式 */

#product-modal > div {
    transition: transform 0.3s ease-in-out;
    transform: scale(0.95);
}

#product-modal > div.scale-95 {
    transform: scale(0.95);
}

#product-modal > div.scale-100 {
    transform: scale(1);
}/* 减少产品图片高度 */

.product-info {
    padding: 0.5rem !important; /* 减少产品信息区域内边距 */
    padding-bottom: 0.1rem !important;
}

.product-description {
    margin-bottom: 0.2rem !important;
    line-height: 1.15 !important;
}

.slick-prev, .slick-next {
    top: 20% !important; /* 将按钮向上调整，默认通常为50% */
}

.slick-dots {
    bottom: 260px !important;
    left: 5px !important;
    margin-top: 0 !important;
}

.product-title,
.product-price {
    margin-bottom: 0.2rem !important;
}

.product-price {
    margin-bottom: 0.25rem !important;
}