.hz-preview-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  object-fit: contain;
  display: block;
}

.hz-preview-video-wrapper {
  margin-top: 16px;
}

.hz-preview-video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #000000;
}

.hz-image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hz-image-lightbox.is-open {
  display: flex;
}

.hz-image-lightbox-inner {
  max-width: 1400px;
  max-height: 90vh;
  width: min(1400px, 96vw);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hz-image-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hz-image-lightbox-title {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.hz-image-lightbox-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 22px;
  cursor: pointer;
}

.hz-image-lightbox-body {
  margin-top: 10px;
  overflow: hidden;
}

.hz-image-zoom-container {
  max-height: calc(90vh - 80px);
  overflow: hidden;
  cursor: grab;
}

.hz-image-lightbox-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  display: block;
}

/* 放大预览左右切换按钮 */
.hz-image-lightbox-nav {
  position: absolute;
  top: 50%;
  left: -52px;
  right: -52px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none; /* 只让按钮响应 */
}

.hz-image-lightbox-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #e5e7eb;
  cursor: pointer;
  pointer-events: auto;
}

.hz-image-lightbox-nav-btn:hover:not([disabled]) {
  background: #2563eb;
  color: #ffffff;
}

.hz-image-lightbox-nav-btn[disabled] {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

/* 缩略图横向滚动条（多图场景） */
.hz-preview-strip {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hz-preview-strip-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.hz-preview-strip-track {
  display: flex;
  gap: 12px;
}

.hz-preview-grid .hz-preview-img,
.hz-preview-strip-track .hz-preview-img {
  height: 200px;
}

.hz-preview-strip-track .hz-preview-img {
  width: 350px;
  max-width: 100%;
}

.hz-preview-strip-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #6b7280;
  cursor: pointer;
}

.hz-preview-strip-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 768px) {
  .hz-preview-strip-btn {
    display: none;
  }

  .hz-preview-strip-track-wrapper {
    overflow-x: auto;
  }
}
