/* 图片灯箱（Lightbox）— 新闻详情页及后续页面通用
   样式与首页内联灯箱保持一致：深色遮罩 + 蓝色强调。
   关闭方式：右上角关闭按钮 / 点击遮罩空白处 / Esc 键。
   引用方式：<link rel="stylesheet" href="assets/lightbox.css?v=20261111a"> */

.lb-overlay {
    position: fixed; inset: 0; z-index: 100;
    display: none; align-items: center; justify-content: center;
    background: rgba(10, 15, 26, .93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
}
.lb-overlay.is-open { display: flex; animation: lbFade .22s ease; }
@keyframes lbFade { from { opacity: 0 } to { opacity: 1 } }

.lb-stage { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100%; }

.lb-image {
    max-width: 92vw; max-height: 80vh;
    object-fit: contain; border-radius: 12px;
    background: #fff;
    box-shadow: 0 30px 80px -20px rgba(0, 102, 255, .45);
    animation: lbPop .22s cubic-bezier(.4, 0, .2, 1);
}
@keyframes lbPop { from { transform: scale(.96); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.lb-caption {
    margin-top: 16px; color: #e5e7eb; font-size: 14px; text-align: center;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.lb-counter { color: #9ca3af; font-size: 13px; font-variant-numeric: tabular-nums; }

.lb-btn {
    position: absolute; display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 9999px; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
    transition: all .3s ease;
}
.lb-btn:hover { background: rgba(0, 102, 255, .85); border-color: #0066ff; transform: translateY(-1px); }
.lb-btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev  { left: 18px;  top: 50%; margin-top: -23px; }
.lb-next  { right: 18px; top: 50%; margin-top: -23px; }
.lb-btn[disabled] { opacity: .3; pointer-events: none; }

@media (max-width: 640px) {
    .lb-image { max-height: 68vh; }
    .lb-prev { left: 6px; } .lb-next { right: 6px; }
    .lb-btn { width: 38px; height: 38px; }
    .lb-prev, .lb-next { margin-top: -19px; }
}
