/* 图片查看器样式 */
#imageViewer {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: opacity 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#imageViewer[style*="display: flex"] {
    display: flex !important;
}

#currentImage {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.3s ease;
    cursor: grab;
}

#currentImage:active {
    cursor: grabbing;
}

#imageCounter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* 控制按钮样式 */
#imageViewer button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    outline: none;
    top: 13px;
    right: 35px;
}

#imageViewer button:hover {
    background: rgba(0, 0, 0, 0.7);
}

#imageViewer button i {
    pointer-events: none;
}

/* 控制栏样式 */
#imageViewer .controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.justify-center {
    justify-content: center;
}

.flex {
    display: flex;
}

.right-0 {
    right: 0px;
}

.left-0 {
    left: 0px;
}

.bottom-8 {
    bottom: 2rem;
}

.absolute {
    position: absolute;
}

.py-2 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.px-4 {
    padding-left: 30px;
    padding-right: 30px;
}

.top-4 {
    top: 4rem
}

.right-4 {
    right: 4rem
}

.bg-black\/70 {
    background-color: rgb(0 0 0 / 0.7);
}

.z-10 {
    z-index: 10;
}
.z-50 {
    z-index: 50;
}
.items-center {
    align-items: center;
}
.w-full {
    width: 100%;
}
.h-full {
    height: 100%;
}
.flex {
    display: flex
;
}
.relative {
    position: relative;
}
.p-4 {
    padding: 1rem;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    #imageViewer button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    #imageCounter {
        top: 15px;
        font-size: 12px;
    }

    #imageViewer .controls {
        bottom: 15px;
        padding: 8px 15px;
        gap: 8px;
    }
}