.b2-lightbox-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    transition: opacity 0.3s;
}
.b2-lightbox-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s;
}
.b2-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    cursor: pointer;
}
.lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    color: #fff;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}
.header-actions {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}
.action-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.current-info {
    font-size: 14px;
}

.lightbox-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    touch-action: none;
}
.swiper-container {
    width: 100%;
    height: 100%;
}
.swiper-wrapper {
    display: flex;
    height: 100%;
    will-change: transform;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease-in-out;
}
/* PC端导航按钮样式 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease-in-out;
    opacity: 0.7;
}
.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.prev-btn {
    left: 20px;
}
.next-btn {
    right: 20px;
}
/* PC端特定样式 */
@media (min-width: 769px) {
    .nav-btn {
        display: flex;
    }
    
    .lightbox-content:hover .nav-btn {
        opacity: 0.7;
    }
    
    .lightbox-header {
        height: 60px;
        padding: 0 20px;
    }
    
    .current-info {
        font-size: 16px;
    }
}
/* 移动端隐藏导航按钮 */
@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
}