.product-new-list {
  background-color: #000;
}

.product-new-list .swiper-slide {
  position: relative;
  overflow: hidden;
}

.product-new-list .swiper-slide .p-n-cover {
  transition: all 0.3s ease;
}

.product-new-list .p-n-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: right;
  color: var(--colorAuxiliary);
  padding: 0.8rem 0.4rem;
  transition: all 0.3s ease-in-out;
}

.product-new-list .p-n-desc::before {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: -1rem;
  width: 200%;
  height: 200%;
  background-color: rgba(0, 0, 0, 0.5);
  transform: rotate(-8deg);
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

.product-new-list .p-n-desc p,
.product-new-list .p-n-desc b {
  position: relative;
  z-index: 2;
}

.product-new-list .p-n-desc b {
  font-size: 0.24rem;
  font-weight: 600;
  line-height: 1.8;
  transform: translateY(0.2rem);
}

.product-new-list .p-n-desc p {
  line-height: 2;
  opacity: 0;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .product-new-list {
    background-color: #fff;
  }

  .product-new-list .swiper-slide img {
    width: 100%;
    border-radius: 0.2rem;
  }

  .product-new-list .swiper-slide .p-n-desc p {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1025px) {
  .product-new-list .swiper-slide:hover .p-n-cover {
    transform: scale(0.8);
  }

  .product-new-list .swiper-slide:hover .p-n-desc::before {
    background-color: rgba(0, 0, 0, 1);
  }

  .product-new-list .swiper-slide:hover .p-n-desc {
    transform: translateY(-0.3rem);
  }

  .product-new-list .swiper-slide:hover .p-n-desc p {
    opacity: 1;
    transform: translateY(0);
  }
}
