/* 图片放大查看模态框 */
.enc-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeInModal 0.3s ease;
}

.enc-image-modal.active {
    display: block;
}

.enc-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.enc-image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease;
    cursor: move;
}

.enc-image-modal-content.dragging {
    cursor: grabbing;
}

.enc-image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.enc-image-modal-close:hover,
.enc-image-modal-close:focus {
    color: #bbb;
}

.enc-image-modal-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 10001;
}

.enc-zoom-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.enc-zoom-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

.enc-zoom-level {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

/* 内容区图片悬停效果（适用于所有内容区域）*/
.enc-solution-content img,
.content img,
article img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enc-solution-content img:hover,
.content img:hover,
article img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 动画 */
@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .enc-image-modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 15px;
    }
    
    .enc-image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
    
    .enc-image-modal-controls {
        bottom: 15px;
        padding: 8px 15px;
        gap: 8px;
    }
    
    .enc-zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .enc-zoom-level {
        font-size: 14px;
        min-width: 50px;
    }
}
