/* 仅 article.html / channel.html 引入：正文内图片可点击放大 */
#newsContext img,
#channel-single-page img {
  cursor: zoom-in;
}

.hnbq-img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}

.hnbq-img-lightbox.is-open {
  display: flex;
}

.hnbq-img-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.hnbq-img-lightbox-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  pointer-events: none;
}

.hnbq-img-lightbox-inner {
  position: relative;
  transform-origin: center center;
  will-change: transform;
  pointer-events: auto;
}

.hnbq-img-lightbox-inner img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  cursor: grab;
}

.hnbq-img-lightbox-inner.is-dragging img {
  cursor: grabbing;
}

.hnbq-img-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

.hnbq-img-lightbox-toolbar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
}

.hnbq-img-lightbox-toolbar button {
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hnbq-img-lightbox-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hnbq-img-lightbox-hint {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  white-space: nowrap;
}
