@media (min-width: 800px) {
    .detail-flex {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }
    .detail-flex .img_detail {
        flex: 1;
        min-width: 350px;
    }
    .img_wrap {
        cursor: zoom-in;
    }
}
@media (max-width: 799px) {
    .img_wrap {
        cursor: pointer;
    }
    .image-viewer {
        display: none !important;
    }
}
.img_wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
/* 弹窗外层：全局居中 */
.image-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
/* 图片容器：作为拖拽/缩放载体 */
.img-container {
    position: relative;
}
.viewer-img {
    cursor: grab;
    user-select: none;
    max-width: none;
    max-height: none;
}
.viewer-img.grabbing {
    cursor: grabbing;
}
/* 右上角 重置/关闭 */
.viewer-toolbar {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 100;
}
/* 右下角 放大缩小按钮组 */
.zoom-toolbar {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 100;
}
.viewer-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    background: #666;
    user-select: none;
}
