/* 产品中心列表（卡片大小/样式与首页产品一致） */

.products-main {
  padding: calc(70 * var(--px)) 0 calc(131 * var(--px));
  background: #ffffff;
}

.products-main .pagination {
  display: flex;
  justify-content: center;
  width: 100%;
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(4, calc(340 * var(--px)));
  justify-content: space-between;
  gap: calc(40 * var(--px)) 0;
}

.product-list-card {
  width: calc(340 * var(--px));
  background: transparent;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-list-card:hover {
  transform: translateY(calc(-6 * var(--px)));
}

.product-list-card .pic {
  width: calc(340 * var(--px));
  height: calc(340 * var(--px));
  border-radius: calc(8 * var(--px));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.product-list-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-card .name {
  margin-top: calc(31 * var(--px));
  padding: 0;
  font-family: var(--font);
  font-size: max(14px, calc(16 * var(--px)));
  font-weight: 400;
  font-style: normal;
  color: #333333;
  text-align: center;
  text-transform: none;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .product-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(28 * var(--px)) calc(20 * var(--px));
    justify-content: stretch;
  }

  .product-list-card,
  .product-list-card .pic {
    width: 100%;
  }

  .product-list-card .pic {
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 768px) {
  .products-main {
    padding: 40px 0;
  }

  .product-list-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: stretch;
  }

  .product-list-card,
  .product-list-card .pic {
    width: 100%;
  }

  .product-list-card .pic {
    height: auto;
    aspect-ratio: 1;
    border-radius: 8px;
  }

  .product-list-card .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-list-card .name {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.45;
  }

  .product-list-card:hover {
    transform: none;
  }
}
