/* 模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* .modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
} */

/* .modal-image {
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
} */

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* 缩放相关样式 */
.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.zoom-image {
    transform-origin: center center;
    transition: transform 0.25s ease;
}

   /* style.css */
/* 添加以下样式 */
.modal-image {
    max-width: none; /* 移除最大宽度限制 */
    max-height: none; /* 移除最大高度限制 */
    width: auto;
    height: auto;
    /* 保持原有样式 */
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.modal-content {
    /* 添加以下样式 */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}