body {
  overflow-y: scroll; /* 强制显示滚动条占位 */
  margin-right: calc(-1 * (100vw - 100%)); /* 隐藏滚动条 */
}

body::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge 隐藏滚动条 */
}

.section {
  position: static;
}

.product-bg {
  background-image: url("../assets/product/BG1@2x.png");
  background-size: cover;
  background-position: center;
  height: 110%;
}
.products-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  overflow: auto;
  scrollbar-width: none; /* Firefox 兼容 */
  -ms-overflow-style: none; /* IE/Edge 兼容 */
}
.products-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge 隐藏滚动条 */
}
.products-container .card_title {
  flex-shrink: 0;
  margin-top: 4.97vw;
  background-image: url("../assets/product/products_word_tcg@2x.png");
  height: 5vw;
  width: 100%;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center center;
}
.card-swiper {
  position: relative;
  margin-top: 2.65vw;
}
.swiper-container {
  width: 42.97vw;
  height: 5.47vw;
}
.swiper-slide {
  width: 5.63vw;
  height: 5.47vw;
  opacity: 0.7;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: 0.3s;
}
.swiper-item-img {
  transition: 0.3s;
  height: 4.22vw;
  width: 5.63vw;
}
.swiper-button-prev {
  top: 3.5vw;
  left: -5.78vw;
  width: 2.5vw;
  height: 2.5vw;
  background-image: url("../assets/product/products_icon_left_pressed@2x.png");
  background-size: contain;
}
.swiper-button-next {
  top: 3.5vw;
  right: -5.78vw;
  width: 2.5vw;
  height: 2.5vw;
  background-image: url("../assets/product/products_icon_right_pressed@2x.png");
  background-size: contain;
}
.swiper-button-prev:active {
  transition: all 0.3s ease;
   background-image: url("../assets/product/products_icon_left_default@2x.png");
}
.swiper-button-next:active {
  transition: all 0.3s ease;
   background-image: url("../assets/product/products_icon_right_default@2x.png");
}
.swiper-slide-active {
  /* height: 5.47vw; */
  opacity: 1;
}
.swiper-slide-active .swiper-item-img {
  width: 7.35vw;
  height: 5.47vw;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(5, 14.07vw);
  grid-gap: 0.78vw;
  /* width: 76.56vw; */
  margin-top: 4.218vw;
  padding-bottom: 4.218vw;
  box-sizing: border-box;
}
.card-item {
  width: 14.07vw;
  height: 18.75vw;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  box-shadow: 1px 1px 6px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-item .card-item-img {
  width: 14.06vw;
  height: 14.06vw;
}
.card-item .card-item-details {
  flex: 1;
  width: 14.06vw;
  background: rgba(242, 243, 245, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.46vw;
  box-sizing: border-box;
}
.card-item .card-item-details .product-name {
  max-width: 11.25vw;
  color: rgba(43, 43, 43, 1);
  font-size: 1.09vw;
  font-family: PingFangSC-Regular;
  text-align: center;
  white-space: nowrap;
  line-height: 2.04vw;
}
.card-item .card-item-details .product-series {
  max-width: 11.25vw;
  margin-top: -0.15vw;
  color: rgba(43, 43, 43, 0.5);
  font-size: 0.93vw;
  font-family: PingFangSC-Regular;
  font-weight: normal;
  text-align: center;
  line-height: 2.04vw;
}

.footer {
  position: static;
  background-color: #2B2B2B;
  transform: translateY(0);
  padding-top: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .products-container .card_title {
    margin-top: 100px;
    height: 68px;
  }
  .swiper-container {
    width: 320px;
    height: 56px;
  }
  .swiper-slide { 
    width: 57.6px;
    height: 56px;
  }
  .swiper-item-img {
    width: 57.6px;
    height: 43.2px;
  }
  .swiper-slide-active {
    width: 75.2px;
  }
  .swiper-slide-active .swiper-item-img {
    width: 75.2px;
    height: 56px;
  }
  .swiper-button-next, .swiper-button-prev {
    top: 42px;
    width: 24px;
    height: 24px;
  }
  .swiper-button-next {
    right: -38px;
  }
  .swiper-button-prev {
    left: -38px;
  }
  .card-list {
    width: 80%;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .card-item {
    width: 100%;
    height: auto;
  }
  .card-item .card-item-img {
    width: 100%;
    height: 100%;
  }
  .card-item .card-item-details {
    width: 100%;
    padding-top: 6px;
  }
  .card-item .card-item-details .product-name {
    max-width: 80%;
    font-size: 14px;
    line-height: 24px;
  }
  .card-item .card-item-details .product-series {
    max-width: 80%;
    font-size: 12px;
    line-height: 24px;
  }
}

/* 小屏幕手机特别适配 */
@media (max-width: 480px) {}