/* ============================================================
   文档图片灯箱样式（深色遮罩，与主题无关）
   ============================================================ */

.lb-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 20px;
    background: rgba(9, 14, 24, .92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lb-mask[hidden] {
    display: none !important;
}

.lb-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: min(92vw, 1400px);
    max-height: 92vh;
    min-width: 0;
}

.lb-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 40px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
    background: #fff;
}

.lb-cap {
    color: #cbd5e1;
    font-size: 12.5px;
    text-align: center;
    line-height: 1.5;
}

.lb-close,
.lb-nav {
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, transform .2s;
}

.lb-close:hover,
.lb-nav:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-1px);
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 40px;
    height: 40px;
    padding: 10px;
}

.lb-nav {
    width: 44px;
    height: 44px;
    padding: 11px;
}

.lb-nav[hidden] {
    display: none;
}

@media (max-width: 620px) {
    .lb-mask {
        gap: 6px;
        padding: 20px 8px;
    }

    .lb-nav {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .lb-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        padding: 8px;
    }

    .lb-stage img {
        max-height: calc(92vh - 56px);
    }
}
