@keyframes skeleton-loading {
  /* 骨架屏动画 */
  0% {
    background-position: 0% 50%;
    /* 渐变起始位置（左侧超出） */
  }
  100% {
    background-position: 200% 50%;
    /* 渐变结束位置（右侧超出） */
  }
}
.__product__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 9px;
  background: #fff;
  transition: 0.5s;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.06);
}
.__product__card:hover {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
}
.__product__card .__product__card__top {
  position: relative;
  width: 100%;
  padding: 30px 0;
}
.__product__card .__product__card__top .__product__card__top__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.__product__card .__product__card__top .__product__card__top__tag .__product__card__top__new {
  display: none;
  font-size: 14px;
  color: #FF9D3B;
  background-color: #FFF2E6;
  padding: 4px 15px;
  border-radius: 30px;
  border: 1px solid #FF9D3B;
}
.__product__card .__product__card__top .__product__card__top__tag .__product__card__top__new.visible {
  display: block;
}
.__product__card .__product__card__top .__product__card__top__tag .__product__card__top__discount {
  display: none;
  font-size: 14px;
  color: #A5D63F;
  background-color: #f9fff0;
  border: 1px solid #A5D63F;
  padding: 4px 15px;
  border-radius: 30px;
}
.__product__card .__product__card__top .__product__card__top__tag .__product__card__top__discount.visible {
  display: block;
}
.__product__card .__product__card__top .__product__card__top__like img {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  transition: 0.3s;
  transform: scale(1.1);
}
.__product__card .__product__card__top .__product__card__top__like img:hover {
  transform: scale(0.9);
}
.__product__card .__product__card__top .__product__card__top__like img:first-child {
  display: none;
}
.__product__card .__product__card__top .__product__card__top__like img:last-child {
  display: block;
}
.__product__card .__product__card__top .__product__card__top__like.liked img:first-child {
  display: block;
}
.__product__card .__product__card__top .__product__card__top__like.liked img:last-child {
  display: none;
}
.__product__card .__product__card__body {
  width: 100%;
}
.__product__card .__product__card__body .__product__card__body__imgContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 20px 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.__product__card .__product__card__body .__product__card__body__imgContainer img {
  transition: 0.4s;
  width: 85%;
  cursor: pointer;
  aspect-ratio: 2 / 1;
  height: auto;
}
.__product__card .__product__card__body .__product__card__body__imgContainer img:last-child {
  max-width: 0;
}
.__product__card .__product__card__body .__product__card__body__imgContainer.hover img:first-child {
  max-width: 0;
}
.__product__card .__product__card__body .__product__card__body__imgContainer.hover img:last-child {
  max-width: 100%;
  transform: scale(1.1);
}
.__product__card .__product__card__body .__product__card__body__imgContainer.disable {
  display: none;
}
.__product__card .__product__card__body .__product__card__body__txtContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}
.__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__name {
  font-size: 18px;
  display: flex;
  align-items: end;
  gap: 6px;
}
.__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__name p:last-child {
  font-size: 12px;
  color: #999;
}
.__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__priceBox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__priceBox .__product__card__body__currentPrice {
  font-size: 20px;
  font-weight: bold;
  color: #FFAE00;
}
.__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__priceBox .__product__card__body__originalPrice {
  display: none;
  font-size: 14px;
  color: #999;
  text-decoration-line: line-through;
}
.__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__priceBox .__product__card__body__originalPrice.visible {
  display: block;
}
.__product__card .__product__card__bottom {
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 10px;
  overflow: auto;
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox */
  padding: 10px 15px;
}
.__product__card .__product__card__bottom a {
  display: contents;
}
.__product__card .__product__card__bottom img {
  width: 60px;
  height: 30px;
  aspect-ratio: 2 / 1;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.__product__card .__product__card__bottom img.selected {
  border: 1px solid #fff7e0;
  box-shadow: 0 2px 4px rgba(255, 195, 0, 0.25);
  border-radius: 4px;
}
.__product__card .__product__card__bottom::-webkit-scrollbar {
  display: none;
  /* Safari 和 Chrome */
}
.skeleton {
  background: linear-gradient(90deg, #ffffff, rgba(244, 244, 244, 0.8), #ffffff);
  background-size: 200% 100%;
  animation: skeleton-loading 1s infinite linear;
}
@media screen and (max-width: 768px) {
  .__product__card .__product__card__top .__product__card__top__tag .__product__card__top__new,
  .__product__card .__product__card__top .__product__card__top__tag .__product__card__top__discount {
    font-size: 10px;
    padding: 0 8px;
    line-height: 16px;
  }
  .__product__card .__product__card__top .__product__card__top__like img {
    width: 20px;
  }
  .__product__card .__product__card__body .__product__card__body__txtContainer {
    gap: 3px;
  }
  .__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__name p:first-child {
    font-size: 14px;
  }
  .__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__name p:last-child {
    font-size: 10px;
  }
  .__product__card .__product__card__body .__product__card__body__txtContainer .__product__card__body__priceBox .__product__card__body__currentPrice {
    font-size: 18px;
  }
  .__product__card .__product__card__bottom {
    padding: 10px 5px;
  }
  .__product__card .__product__card__bottom img {
    width: 40px;
    object-fit: contain;
  }
}
