.block-collection-card {
  width: 100%;
  height: 100%;
  background-color: rgb(var(--color-background));
}

.block-collection-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: var(--aspect-ratio);
  padding: var(--padding);
  overflow: hidden;
  background-color: rgb(243 243 243 / 100%);
}

.block-collection-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: var(--fit-type);
}

.block-collection-card__image-wrapper svg {
  width: 100%;
  height: 100%;
}

.block-collection-card__image-title-wrapper {
  position: absolute;
  inset: 0;
  padding: 10px 20px;
}

.block-collection-card__title {
  color: rgb(var(--color-text));
}

/* 图片外部容器样式 - 宽度固定，3:4比例 */
.img-box {
    width: 100%;
    /* 固定宽度，可根据需求调整 */
    position: relative;
    overflow: hidden;
    /* 超出容器的图片部分隐藏 */
}

/* 使用伪元素创建3:4的宽高比 */
.img-box::after {
    content: '';
    display: block;
    padding-bottom: 150%;
    /* 4/3 = 1.333...，即3:4比例 */
}

/* 图片样式 */
.img-box img {
    width: 100%;
    /* 图片宽度充满容器 */
    height: 100%;
    /* 图片高度充满容器 */
    position: absolute;
    /* 绝对定位，使图片覆盖容器 */
    top: 0;
    left: 0;
    object-fit: cover;
    /* 保持比例并覆盖容器，超出部分裁剪 */
}

/* 可选：添加hover效果 */
.img-box:hover img {
    transform: scale(1.05);
    /* 轻微放大效果 */
    transition: transform 0.3s ease;
    /* 平滑过渡 */
}