/* ========== 产品轮播图样式 ========== */

.biojx-carousel-block {
    width: 100%;
    margin: 0 auto;
}

/* 主图容器 - 无背景 */
.biojx-main-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.biojx-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    /* 新增圆角与阴影 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 导航按钮 */
.biojx-prev,
.biojx-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
}
.biojx-prev { left: 10px; }
.biojx-next { right: 10px; }
.biojx-prev:hover, .biojx-next:hover {
    background: #007cba;
}

/* 缩略图 */
.biojx-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.biojx-thumb {
    width: 80px;
    height: 60px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: none;
    /* 新增阴影 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.biojx-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.biojx-thumb.active {
    opacity: 1;
    border-color: #007cba;
}
.biojx-thumb:hover {
    opacity: 0.9;
}

/* ========== 灯箱 - 全屏，按钮浮动在图片上方 ========== */
.biojx-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.biojx-lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 图片视口 - 铺满整个 lightbox 区域，不预留任何空间 */
.biojx-lightbox-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#biojx-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.05s linear;
}
#biojx-lightbox-img:active {
    cursor: grabbing;
}

/* 关闭按钮 - 改为圆形背景，与左右箭头大小一致 */
.biojx-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s;
}
.biojx-lightbox-close:hover {
    background: #007cba;
}

/* 左右箭头 - 浮动在左右两侧 */
.biojx-lightbox-prev,
.biojx-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
}
.biojx-lightbox-prev { left: 20px; }
.biojx-lightbox-next { right: 20px; }
.biojx-lightbox-prev:hover,
.biojx-lightbox-next:hover {
    background: #007cba;
}

/* 底部控制按钮组 - 浮动在底部中央，不占图片空间 */
.biojx-lightbox-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 40px;
    z-index: 1001;
}
.biojx-lightbox-controls button {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
}
.biojx-lightbox-controls button:hover {
    background: #007cba;
    border-color: #007cba;
}

/* 图片计数器 - 浮在顶部中央 */
.biojx-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-family: monospace;
    z-index: 1001;
    pointer-events: none;
}

body.modal-open {
    overflow: hidden;
}