/* 内容区图片点击放大预览
 *
 * 约定：
 * - 给需要可放大的图片加 class：cil-zoomable
 * - JS 会创建 #cil-lightbox 作为全屏预览容器
 */

/* 只在 JS 标记为可用时显示放大光标，避免首页出现误导 */
.cil-lightbox-enabled .cil-zoomable {
  cursor: zoom-in;
}

#cil-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  z-index: 99999;
}

#cil-lightbox.active {
  display: flex;
}

#cil-lightbox .cil-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

#cil-lightbox .cil-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}

#cil-lightbox .cil-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

#cil-lightbox .cil-open {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
}

#cil-lightbox .cil-open:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

#cil-lightbox .cil-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  user-select: none;
  text-align: center;
  padding: 0 12px;
}

@media (max-width: 768px) {
  #cil-lightbox {
    padding: 12px;
  }
  #cil-lightbox .cil-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 36px;
  }
}

