/* 集梦影视 · 图片灯箱 */

.jm-lb-mask {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,.92);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.jm-lb-mask.on { opacity: 1; pointer-events: auto; }

.jm-lb {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.jm-lb.on { opacity: 1; pointer-events: auto; }

/* 头部 */
.jm-lb .jm-lb-hd {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; flex-shrink: 0;
  background: rgba(0,0,0,.4);
}
.jm-lb .lb-num {
  color: #34e0ff; font-size: 13px; font-weight: 900;
  font-family: Consolas, monospace;
}
.jm-lb .lb-tip { color: #6b7899; font-size: 11px; }
.jm-lb .lb-x {
  margin-left: auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0;
  color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s; font-family: inherit;
}
.jm-lb .lb-x:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }

/* 主体 */
.jm-lb .jm-lb-body {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; min-height: 0; overflow: hidden;
}
.jm-lb .lb-img {
  max-width: 92vw; max-height: calc(100vh - 150px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.7);
  transition: transform .15s;
  cursor: zoom-out;
}

/* 导航 */
.jm-lb .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s; font-family: inherit; z-index: 2;
}
.jm-lb .lb-nav:hover { background: rgba(52,224,255,.3); border-color: #34e0ff; }
.jm-lb .lb-prev { left: 20px; }
.jm-lb .lb-next { right: 20px; }

/* 底部 */
.jm-lb .jm-lb-ft {
  padding: 14px 20px; text-align: center; flex-shrink: 0;
  background: rgba(0,0,0,.4);
}
.jm-lb .lb-open {
  color: #34e0ff !important; font-size: 12.5px; font-weight: 800;
  text-decoration: none !important;
  padding: 9px 22px; border-radius: 9px;
  background: rgba(52,224,255,.12);
  border: 1px solid rgba(52,224,255,.4);
  display: inline-block; transition: .15s;
}
.jm-lb .lb-open:hover { background: rgba(52,224,255,.25); }

/* 主图可点击提示 */
img.jm-zoomable, #jmBigImg { cursor: zoom-in; }

@media (max-width: 900px) {
  .jm-lb .jm-lb-hd { padding: 10px 14px; gap: 10px; }
  .jm-lb .lb-tip { display: none; }
  .jm-lb .lb-nav { width: 40px; height: 40px; font-size: 22px; }
  .jm-lb .lb-prev { left: 8px; }
  .jm-lb .lb-next { right: 8px; }
  .jm-lb .lb-img { max-width: 98vw; max-height: calc(100vh - 120px); }
  .jm-lb .jm-lb-ft { padding: 10px 14px; }
}
