/* ============================================================
   商品详情图「点开看大图」（2026-11-23）
   业主口径：图片可以点开，在当下这块屏幕上放大显示，
             但绝不能撑破页面排版 —— 所以只叠一层浮层，不动文档流。
   电脑端 / 手机端 / 微信端 / 平板端共用这一份。
   ============================================================ */
.wy-zoom-mask{
    position:fixed; inset:0; z-index:99999;
    display:none; align-items:center; justify-content:center;
    background:rgba(8,12,18,.93);
    padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}
.wy-zoom-mask.on{display:flex;}

/* 关键：宽高都用视口单位封顶，横图竖图都不会超出屏幕，也不会被裁掉 */
.wy-zoom-mask img{
    display:block;
    max-width:94vw; max-height:88vh;
    width:auto; height:auto;
    object-fit:contain;
    border-radius:6px;
    box-shadow:0 12px 48px rgba(0,0,0,.55);
    cursor:zoom-out;
    touch-action:pinch-zoom;
    -webkit-user-select:none; user-select:none;
}

.wy-zoom-close{
    position:absolute;
    top:calc(10px + env(safe-area-inset-top,0px));
    right:calc(12px + env(safe-area-inset-right,0px));
    width:38px; height:38px; padding:0;
    display:flex; align-items:center; justify-content:center;
    border:0; border-radius:50%;
    background:rgba(255,255,255,.18); color:#fff;
    font-size:22px; line-height:1; font-family:Arial,sans-serif;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}
.wy-zoom-close:hover{background:rgba(255,255,255,.3);}

.wy-zoom-tip{
    position:absolute;
    left:0; right:0;
    bottom:calc(14px + env(safe-area-inset-bottom,0px));
    text-align:center;
    color:rgba(255,255,255,.7);
    font-size:12px; line-height:1.4;
    pointer-events:none;
}

/* 浮层打开时锁住页面滚动，避免背后页面跟着动 */
body.wy-zoom-lock{overflow:hidden !important;}
