/* ============ 资质图片灯箱 Lightbox ============ */
/* 仅 about.html 引用；独立于全局 style.css，便于隔离改动与回滚 */

/* 可点击暗示：资质图 hover 时轻微提亮 + 信号蓝描边 */
.cert-item { cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; }
.cert-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14, 28, 46, .12); }
.cert-item:hover img { outline: 2px solid var(--blue-deep); outline-offset: -2px; }
.cert-item:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 8px; }

/* 遮罩层：高于咨询浮层(900)，锁滚 + 深蓝半透明 + 模糊 */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 27, 46, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
}
.lb-overlay.is-open { display: flex; animation: lbFade .18s ease-out; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

/* 舞台：承载图片 */
.lb-stage {
  position: relative;
  z-index: 1;
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图片本体：contain 完整显示 + 可缩放/拖拽 */
.lb-img {
  max-width: 100%;
  max-height: 94vh;
  object-fit: contain;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.lb-img.grabbing { cursor: grabbing; }

/* 关闭按钮：固定在视口右上角，不随图片缩放/拖拽移动，不压住图片内容 */
.lb-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(18, 38, 60, .92);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.lb-close:hover { background: var(--blue-deep); transform: scale(1.06); }
.lb-close:active { transform: scale(.94); }
.lb-close svg { width: 22px; height: 22px; }

/* 底部操作提示 */
.lb-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(143, 163, 188, .92);
  letter-spacing: .2px;
  pointer-events: none;
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
  .lb-overlay { padding: 14px; }
  .lb-stage { max-width: 98vw; max-height: 90vh; }
  .lb-img { max-height: 90vh; }
  .lb-close {
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
  }
  .lb-close svg { width: 24px; height: 24px; }
  .lb-hint { bottom: 10px; font-size: 11.5px; }
}

@media (max-width: 480px) {
  .lb-stage { max-width: 100vw; max-height: 78vh; }
  .lb-img { max-height: 78vh; }
}
