/* 乾上视觉官网 · 图片点击放大灯箱样式
   作用：配合 assets/js/lightbox.js，把页面上的图片点开成全屏大图
   说明：独立文件，不并入 main.css，避免影响既有版式与缓存版本号 */
.qs-lb {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 13, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.qs-lb.on { opacity: 1; visibility: visible; }

.qs-lb img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #0b1020;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  transform: scale(.965);
  transition: transform .22s ease;
  cursor: default;
}
.qs-lb.on img { transform: scale(1); }

.qs-lb-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.qs-lb-close:hover { background: rgba(255, 255, 255, .24); }

.qs-lb-nav {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.qs-lb-nav:hover { background: rgba(255, 255, 255, .24); }
.qs-lb-prev { left: 18px; }
.qs-lb-next { right: 18px; }

.qs-lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  letter-spacing: .5px;
}

.qs-zoomable { cursor: zoom-in; }

@media (max-width: 640px) {
  .qs-lb-close { width: 38px; height: 38px; top: 12px; right: 12px; font-size: 20px; }
  .qs-lb-nav { width: 40px; height: 40px; margin-top: -20px; font-size: 22px; }
  .qs-lb-prev { left: 8px; }
  .qs-lb-next { right: 8px; }
  .qs-lb img { max-width: 94vw; max-height: 82vh; }
}
