.collection__item__image {
  position: relative;
}
.collection__item__image img {
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.collection__item__image svg {
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.collection__item__name {
  margin-top: 8px;
}

.collection__scroll__item {
  width: 100%;
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */
.collection-item .card .card__content{
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        left: 50%;
        z-index: 2;
        background: #fff;
        padding: 4px 12px;
        white-space: nowrap;
        margin-top: 0;
        font-size: 20px;
        font-family: Poppins,sans-serif;
}
.collection__item__name{
    margin-top: 0;
}
.collection-item.col.shopline-element-collection-item.card-shadow-pb{
    position: relative;
    padding: 0;
    margin-top: 0;
    border-radius: none;
}
.card.collection-card-wrapper .card__inner .card__media{
    border-radius: 0;
}
.collection-item .card__inner--wrapper{
    border-radius: 0;
}
.collection-item.col.shopline-element-collection-item.card-shadow-pb::before {
    content: "";
    /* 伪元素的内容为空 */
    position: absolute;
    /* 绝对定位 */
    top: 0;
    /* 遮罩层从顶部开始 */
    left: 0;
    /* 遮罩层从左侧开始 */
    width: 100%;
    /* 遮罩层覆盖整个盒子 */
    height: 100%;
    /* 遮罩层覆盖整个盒子 */
    background-color: rgba(0, 0, 0, 0.1);
    /* 半透明的黑色遮罩层 */
    opacity: 0;
    /* 初始透明度为 0，隐藏遮罩层 */
    transition: opacity 0.3s ease;
    /* 设置过渡效果 */
    pointer-events: none;
    /* 遮罩层不影响鼠标事件 */
    z-index: 1;
}

.collection-item.col.shopline-element-collection-item.card-shadow-pb:hover::before {
    opacity: 1;
    /* 鼠标经过时显示遮罩层 */
}
@media (max-width:959px) {
    .collection-item .card .card__content {
        font-size: 16px;
    }
}