
/* 懒加载图片 */
.lazy-image {
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
    .lazy-image.loaded {
        opacity: 1;
    }

/* 核心样式：固定尺寸容器 */
.image-box {
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    /* 关键属性：Flexbox居中 */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 核心样式：图片缩放（微信朋友圈方式） */
.wechat-image {
    /* 关键属性：完全填充容器 */
    width: 100%;
    height: 100%;
    /* 关键属性：保持宽高比并居中裁剪 */
    object-fit: cover;
    object-position: center;
    /* 可选：过渡效果 */
    transition: transform 0.2s ease;
}

    .wechat-image:hover {
        transform: scale(1.05);
    }
