/**
 * 产品图片放大镜效果 - CSS样式
 * 添加到页面的CSS文件中或<style>标签内
 */

/* 放大镜容器 */
.list_img {
    position: relative;
}

/* 镜片样式 */
.zoom-lens {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 放大区域容器 */
.zoom-container {
    position: absolute;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    z-index: 999;
}

/* 放大后的图片 */
.zoom-img {
    position: absolute;
    max-width: none;
    cursor: crosshair;
}

/* 大图区域样式增强 */
.big_img {
    position: relative;
    cursor: crosshair;
    overflow: visible;
}

.big_img ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.big_img ul li {
    display: none;
}

.big_img ul li.active,
.big_img ul li:first-child {
    display: block;
}

.big_img ul li img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .zoom-container {
        display: none !important;
    }
    
    .zoom-lens {
        display: none !important;
    }
}

/* 放大镜提示图标（可选） */
.zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    pointer-events: none;
}

.zoom-icon::before {
    content: '+';
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* 加载中样式 */
.zoom-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: zoom-spin 1s linear infinite;
}

@keyframes zoom-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
