/**
 * 图片查看器组件样式
 * 用于移动端产品图片展示
 */

/* 全局去除点击蓝色高亮 */
* {
    -webkit-tap-highlight-color: transparent !important;
}

/* 图片列表容器 */
.gallery-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

/* 单个图片项 */
.gallery-item {
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    display: block;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===== 弹窗样式 (由JS动态创建，此处仅作备用) ===== */
.iv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0,0,0,0.96);
    z-index: 99999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.iv-counter {
    position: fixed;
    top: .5rem;
    left: .3rem;
    color: rgba(255,255,255,0.9);
    font-size: .26rem;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(.1.7rem);
    -webkit-backdrop-filter: blur(6px);
    padding: .1rem .25rem;
    border-radius: .5rem;
    border: 0.02rem solid rgba(255,255,255,0.15);
    z-index: 100001;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0.02rem 0.6rem rgba(0,0,0,0.2);
}

.iv-swipe-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.iv-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.iv-viewer-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    touch-action: none;
    pointer-events: none;
    will-change: transform;
    box-shadow:0 0.04rem 0.5rem rgba(0,0,0,0.3);
    background: #1a1a1a;
    position: absolute;
    transition: none;
    -webkit-tap-highlight-color: transparent;
}

.iv-main-image {
    /* 主图样式 */;
}

.iv-slide-image {
    /* 滑动辅助图样式 */
    opacity: 0;
}