.ripig-screenshot-gallery {
    margin: 20px 0;
    max-width: 100%;
    position: relative; /* 关键：设置相对定位 */
    padding-bottom: 40px; /* 为滑动条预留空间 */
}
.swiper {
    width: 100%;
    height: auto;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px; /* 新增 */
}
.swiper-button-prev,
.swiper-button-next {
    color: #333;
}
.swiper-pagination-bullet-active {
    background-color: #333;
}
.swiper-scrollbar {
    background: rgba(0, 0, 0, 0.1);
    position: absolute; /* 关键：绝对定位到容器内 */
    bottom: 0; /* 靠容器底部显示 */
    left: 0;
    width: 100%; /* 与容器同宽 */
    height: 6px;
}

/* 手机端滑动条设置 */
@media (max-width: 767px) {
    .ripig-screenshot-gallery {
        padding-bottom: 20px; /* 手机端预留更多空间 */
    }
    .swiper-scrollbar {
        height: 8px; /* 手机端滑动条更高，便于触摸 */
        display: block !important; /* 确保显示 */
    }
}
    /* 图片放大模态框 */
.ripig-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ripig-modal.active {
    display: flex;
}

.ripig-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.ripig-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripig-modal-close:hover {
    color: #ddd;
}