/* ===== 通用高清灯箱 view-zoom (全站) ===== */
.vz-zoomable { cursor: zoom-in; }

.vz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 12, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.vz-lightbox.open { opacity: 1; visibility: visible; }

.vz-stage {
    position: relative;
    max-width: 92vw;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vz-media {
    max-width: 92vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: #000;
}

/* ===== 长图滚动查看模式 ===== */
.vz-lightbox.vz-scroll .vz-stage {
    max-width: 96vw;
    max-height: 92vh;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.vz-lightbox.vz-scroll .vz-stage::-webkit-scrollbar { width: 10px; height: 10px; }
.vz-lightbox.vz-scroll .vz-stage::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}
.vz-lightbox.vz-scroll .vz-stage::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

.vz-lightbox.vz-scroll .vz-media {
    max-width: min(1100px, 94vw);
    width: min(1100px, 94vw);
    max-height: none;
    height: auto;
    object-fit: initial;
    cursor: zoom-in;
    border-radius: 6px;
}
/* 点击后：原始像素尺寸，可横向+纵向滚动看清所有细节 */
.vz-lightbox.vz-scroll.vz-fullsize .vz-media {
    max-width: none;
    width: auto;
    cursor: zoom-out;
}

/* ===== 提示条 ===== */
.vz-hint {
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 10001;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e8e8f0;
    font-size: 0.82rem;
    letter-spacing: .5px;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.vz-hint:empty { display: none; }

.vz-close {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 10001;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.vz-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }

.vz-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.vz-nav:hover { background: rgba(255, 255, 255, 0.18); }
.vz-prev { left: 24px; }
.vz-next { right: 24px; }

.vz-caption {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    text-align: center;
    padding: 16px 60px 22px;
    color: #e8e8f0;
    font-size: 0.95rem;
    letter-spacing: .5px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}
.vz-caption:empty { display: none; }

.vz-counter {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 10001;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .vz-nav { width: 42px; height: 42px; font-size: 24px; }
    .vz-prev { left: 10px; }
    .vz-next { right: 10px; }
    .vz-media { max-width: 96vw; max-height: 80vh; }
    .vz-close { top: 14px; right: 14px; }
}
