/* 图片容器样式 */
#images_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1600px; /* 最大宽度 */
    margin: 0 auto; /* 水平居中 */
}

.add-card {
    text-align: center;
    align-items: center;
    width: 300px;
    height: 300px;
}

/* 图片的基本样式 */
#images_container img {
    width: 300px;
    height: 300px;
    object-fit: cover;      /* 关键点：居中裁剪 */
    object-position: center;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover 时放大 + 阴影 */
#images_container img:hover,
.add-card:hover {
    cursor: pointer;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 放大后的全屏遮罩 */
#image_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* 放大的图片 */
#image_modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* 关闭按钮 */
#image_modal .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
