/* 图片预览样式 */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.image-viewer-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1002;
    height: 80px;
}

.image-viewer-close {
    color: white;
    font-size: 40px;
    padding-bottom: 5px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    width: 50px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.image-viewer-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: 1;
}

.image-viewer-content {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    overflow: auto;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
    align-self: stretch;
}

.preview-image:active {
    cursor: grabbing;
}

.image-viewer-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    padding: 0 100px 0 20px;
    box-sizing: border-box;
}

.viewer-prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 45px;
    padding-bottom: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.viewer-next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 45px;
    padding-bottom: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.image-viewer-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.image-viewer-toolbar {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px 6px 10px;
    border-radius: 16px;
}

@media (max-width: 770px) {
    .image-viewer-toolbar {
        padding: 0 10px 2px 0 !important;
    }
}

.viewer-tool {
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 3px 2px 3px;
    border-radius: 6px;
    transition: all 0.3s;
    user-select: none;
    min-width: 32px;
    text-align: center;
}

.viewer-tool:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-actual-size {
    font-size: 95%;
    padding-top: 2px;
}

.image-counter {
    color: white;
    margin-left: 10px;
    font-size: 18px;
    min-width: 80px;
    text-align: center;
}
