/* =========================================================
 * chuxia-lightbox.css
 * 文章正文图片点击放大 + 幻灯（prev/next）浏览
 * 颜色引用 --c-primary，与全站单色系一致
 * ========================================================= */
.chuxia-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(15, 18, 22, .88);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.chuxia-lb.is-open { display: flex; }

.chuxia-lb__img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .55);
}

.chuxia-lb__close,
.chuxia-lb__nav {
    position: absolute;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transition: background .2s ease, transform .2s ease;
}
.chuxia-lb__close {
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
}
.chuxia-lb__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 50%;
}
.chuxia-lb__prev { left: 18px; }
.chuxia-lb__next { right: 18px; }
.chuxia-lb__close:hover,
.chuxia-lb__nav:hover { background: var(--c-primary); }
.chuxia-lb__nav:hover { transform: translateY(-50%) scale(1.08); }

.chuxia-lb__cap {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    padding: 0 20px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .chuxia-lb { padding: 16px; }
    .chuxia-lb__nav { width: 42px; height: 42px; font-size: 20px; }
    .chuxia-lb__close { top: 12px; right: 14px; width: 40px; height: 40px; font-size: 24px; }
}
