/* ============================================================
   dy5555.top 微信内置浏览器放大方案样式
   ============================================================ */

/* ---------- 页面被放大时保持正常纵向滚动 ---------- */
html.mv-zoomed,
html.mv-zoomed body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Lightbox 打开时锁定页面滚动 ---------- */
html.mv-lb-open,
html.mv-lb-open body {
  overflow: hidden !important;
}

/* ---------- 点图全屏放大层 ---------- */
#mvLb {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
#mvLb.on {
  display: flex;
}
#mvLb .mv-lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.12s ease-out;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
}
#mvLb .mv-lb-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  line-height: 34px;
  text-align: center;
  font-size: 26px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  z-index: 2;
  cursor: pointer;
}
#mvLb .mv-lb-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* ---------- 整页缩放悬浮按钮 ---------- */
#mvZoomBtn {
  position: fixed;
  right: 12px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147482000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: pointer;
}
#mvZoomBtn.on {
  background: rgba(255, 106, 0, 0.92);
}
#mvZoomBtn:active {
  transform: scale(0.94);
}
