/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  padding: 30px;
  background: #f5f5f5;
  font-family: "微软雅黑", sans-serif;
} */

.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 产品卡片链接 整块可点击 */
.product-item {
  width: calc((100% - 60px) / 4);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  position: relative;
  text-decoration: none;
  display: block;
}
.product-item:hover {
  transform: translateY(-5px);
}

/* 右上角标签 */
.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 9;
}

/* 不同标签颜色 */
.product-tag.new {
  background: #4299e1;
}
.product-tag.hot {
  background: #e53e3e;
}
.product-tag.pop {
  background: #38c172;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 15px;
}
.product-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}
.product-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-sales {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}
.product-price {
  font-size: 19px;
  color: #e53e3e;
  font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .product-item {
    width: calc((100% - 20px) / 2);
  }
}
@media (max-width: 576px) {
  .product-item {
    width: 100%;
  }
}


/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination button,
.pagination a {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.pagination button:hover,
.pagination a:hover {
  background: #f0f0f0;
}
.pagination .active {
  background: #4299e1;
  color: #fff;
  border-color: #4299e1;
}
.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}