/* -------------------------------------------
   sale 页图片放大弹窗（lightbox）样式
   仅作用于 lb- 前缀类名，不影响页面现有样式
-------------------------------------------- */
.lb-lightbox {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.lb-lightbox.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* 遮罩层（位于图片下方） */
.lb-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

/* 图片舞台（位于遮罩上方） */
.lb-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  max-width: 86vw;
  transition: transform 0.3s ease;
  border: 10px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.lb-lightbox.is-visible .lb-stage {
  transform: translate(-50%, -50%) scale(1);
}

.lb-stage .lb-img {
  display: block;
  max-width: 86vw;
  max-height: 74vh;
  margin: 0 auto;
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* 图片名称 */
.lb-caption {
  margin-top: 0px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  line-height: 52px;
  /* background-color: rgba(255, 255, 255, 0.3); */
  backdrop-filter: blur(10px);
}

/* 关闭按钮 */
.lb-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lb-close::before,
.lb-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #333;
}

.lb-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lb-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 上/下切换按钮（CSS 绘制箭头） */
.lb-arrow {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -30px;
  border-top: 3px solid rgba(255, 255, 255, 0.9);
  border-right: 3px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.lb-arrow:hover {
  border-color: #fff;
}

.lb-prev {
  left: -56px;
  transform: rotate(-135deg);
}

.lb-next {
  right: -56px;
  transform: rotate(45deg);
}

/* 弹窗打开时锁定背景滚动 */
body.lb-no-scroll {
  overflow: hidden;
}

/* 可点击提示 */
.sale_content ul li {
  cursor: zoom-in;
}

/* 小屏：切换按钮向内收 */
@media screen and (max-width: 768px) {
  .lb-prev {
    left: -32px;
  }

  .lb-next {
    right: -32px;
  }
}
