/* ========== 图片画廊样式 ========== */

/* 重置列表项样式 - 移除原有的样式 */
.pro-list.image-gallery li {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: none !important;
  margin-bottom: 30px;
  border: none !important;
}

.pro-list.image-gallery li:hover {
  transform: none !important;
  margin-bottom: 30px !important;
}

/* 图片容器样式 - 边框和效果只在这里 */
.pro-list.image-gallery .pro-img {
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
}

.pro-list.image-gallery .lazy-wrap {
  position: relative;
  display: block;
}

.pro-list.image-gallery .lazy-wrap::after {
  padding-bottom: 0 !important;
}

.pro-list.image-gallery .pro-img:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.pro-list.image-gallery .pro-img:hover img {
  transform: scale(1.1);
}

.pro-list.image-gallery .pro-img img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

/* 标题样式 */
.pro-list.image-gallery .pro-info {
  text-align: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.pro-list.image-gallery .pro-info .title {
  cursor: default;
  text-decoration: none;
  display: block;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--fontcolor);
  line-height: 1.5;
}

.pro-list.image-gallery .pro-info .title:hover {
  color: var(--fontcolor);
}

/* 隐藏不需要的元素 */
.pro-list.image-gallery .pro-btn,
.pro-list.image-gallery .text {
  display: none;
}

/* ========== 图片弹层样式 ========== */

/* 遮罩层 - 全屏黑色背景 */
.image-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-lightbox-overlay.show {
  display: block;
  opacity: 1;
}

/* 弹层容器 - 全屏模式 */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-lightbox.show {
  display: block;
  opacity: 1;
}

/* 弹层内容 - 全屏 */
.image-lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 头部标题栏 */
.image-lightbox-header {
  padding: 20px 80px 20px 30px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.image-lightbox-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 关闭按钮 - 右上角 */
.image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 11;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 图片显示区域 - 全屏居中 */
.image-lightbox-body {
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.image-lightbox-body img {
  display: block;
  max-width: 95%;
  max-height: 95vh;
  width: auto;
  height: auto;
  cursor: zoom-out;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

/* 加载动画 */
.image-lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .pro-list.image-gallery .pro-info .title {
    font-size: 14px;
    padding: 10px 0;
  }

  .image-lightbox-header {
    padding: 15px 70px 15px 15px;
  }

  .image-lightbox-title {
    font-size: 14px;
  }

  .image-lightbox-close {
    width: 44px;
    height: 44px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }

  .image-lightbox-body img {
    max-width: 98%;
    max-height: 92vh;
  }
}

/* ========== 小屏幕优化 ========== */
@media (max-width: 480px) {
  .image-lightbox-header {
    padding: 12px 60px 12px 12px;
  }

  .image-lightbox-title {
    font-size: 13px;
  }

  .image-lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }

  .image-lightbox-body img {
    max-width: 98%;
    max-height: 90vh;
  }
}

