/* =====================================
   Lightbox 灯箱样式
   ===================================== */

/* 遮罩层 */
.vi-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* 图片容器 */
.vi-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100% - 68px);
    overflow: hidden;
    cursor: grab;
    z-index: 2;
}

/* 展示图片 */
.vi-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform .2s ease;
    pointer-events: none;
}

/* 页码 */
.vi-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-family: Arial, sans-serif;
    z-index: 10;
    background: rgba(0,0,0,.3);
    padding: 4px 14px;
    border-radius: 12px;
}

/* 关闭按钮 */
.vi-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}
.vi-close-btn:hover {
    background: rgba(0,0,0,.6);
}

/* 底部工具栏 */
.vi-toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    z-index: 5;
}

/* 工具栏圆形按钮 */
.vi-toolbar .vi-round-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    font-size: 22px;
}
.vi-toolbar .vi-round-btn:hover {
    background: rgba(255,255,255,.25);
}

/* 工具栏条形按钮（上一页/下一页） */
.vi-toolbar .vi-nav-btn {
    height: 40px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    font-size: 15px;
    padding: 0 18px;
    gap: 6px;
}
.vi-toolbar .vi-nav-btn:hover {
    background: rgba(255,255,255,.25);
}

/* 缩放比例标签 */
.vi-zoom-label {
    color: rgba(255,255,255,.55);
    font-size: 13px;
    font-family: Arial, sans-serif;
    min-width: 44px;
    text-align: center;
    user-select: none;
}

/* 分隔符 */
.vi-sep {
    color: rgba(255,255,255,.15);
    font-size: 18px;
}
