/* AutoBuddy 操作文档站 · 图片点击放大（灯箱） */
figure img { cursor: zoom-in; transition: border-color .18s, box-shadow .18s; }
figure img:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(22, 163, 74, .20); }

[hidden] { display: none !important; }

#lbMask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(14, 20, 17, .88);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px;
}
#lbMask.on { display: flex; }
#lbImg {
  display: block;
  max-width: 94vw; max-height: 80vh;
  border-radius: 8px; background: #fff;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .55);
  object-fit: contain;
}
#lbCap { margin-top: 14px; max-width: 720px; text-align: center; font-size: 13px; color: #e6ece9; line-height: 1.6; }
#lbTip { margin-top: 6px; font-size: 12px; color: #9fb0a8; letter-spacing: .3px; }
#lbClose {
  position: fixed; top: 22px; right: 26px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .10); color: #fff;
  font-size: 20px; line-height: 1; font-weight: 300;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#lbClose:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 900px) {
  #lbImg { max-width: 96vw; max-height: 68vh; }
  [hidden] { display: none !important; }

#lbMask { padding: 16px; }
  #lbClose { top: 12px; right: 14px; }
}
