/* ==========================================================================
   imageViewer.css - 自建图片查看器样式
   版本: v=20260731a
   ========================================================================== */

.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.image-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.image-viewer-counter {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.60);
    pointer-events: none;
}

.image-viewer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.15s, transform 0.15s;
}

.image-viewer-close:active {
    background: rgba(255,255,255,0.30);
    transform: scale(0.94);
}

.image-viewer-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-image-wrap {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.image-viewer-image {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.image-viewer-toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
}

.iv-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 22px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.15s, transform 0.15s;
}

.iv-btn:active {
    background: rgba(42,122,229,0.60);
    transform: scale(0.92);
}

.image-viewer-hint {
    position: absolute;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.80);
    font-size: 12px;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.40);
    padding: 6px 14px;
    border-radius: 14px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
