/*产品展示页面详情内容中的图片放大轮播功能*/
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.image-zoom-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.close-zoom-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
}

.close-zoom-modal:hover {
    color: #f1f1f1;
    background: rgba(0,0,0,0.8);
}

.prev-zoom-modal,
.next-zoom-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    user-select: none;
}

.prev-zoom-modal {
    left: 20px;
}

.next-zoom-modal {
    right: 20px;
}

.prev-zoom-modal:hover,
.next-zoom-modal:hover {
    color: #f1f1f1;
    background: rgba(0,0,0,0.8);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10001;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.zoomable-image {
    cursor: pointer;
    transition: 0.3s;
    max-width: 100%;
}

.zoomable-image:hover {
    opacity: 0.9;
    box-shadow: 0 0 8px rgba(84, 183, 44, 0.6);
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
}

.STYLE2 {font-size: 30px}

/* 隐藏左右箭头按钮在小屏幕上 */
@media (max-width: 768px) {
    .prev-zoom-modal,
    .next-zoom-modal {
        width: 40px;
        height: 40px;
        font-size: 30px;
        line-height: 35px;
    }
}
