.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 固定每行 3 个 */
  gap: 30px; /* 方框间距 */
  max-width: 1100px; /* 限制整体宽度 */
  margin: 0 auto; /* 居中 */
}

.product-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;     /* 垂直布局 */
  justify-content: space-between; /* 上下分散，按钮固定到底部 */
  transition: transform 0.2s ease;
  height: 80%;               /* 保证高度撑满 */
}

.product-card:hover {
  transform: translateY(-5px);
}

/* 标题靠上居中 */
.product-card h3 {
  text-align: center;
  margin-bottom: 12px;
}

/* 描述文字居左 */
.product-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
  text-align: left;
  flex-grow: 1;    /* 占据剩余空间，按钮被推到底 */
  line-height: 1.8; /* 1.8倍行距 */
}
/* 信息区域可选：靠上或跟随描述 */
.product-info {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  text-align: left;
}
/* 按钮永远靠下居中 */
.product-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto; /* 把按钮推到底部 */
}

.product-card .btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.product-card .btn:hover {
  background: #0056b3;
}

.product-card .btn-outline {
  background: #fff;
  border: 1px solid #007bff;
  color: #007bff;
}

.product-card .btn-outline:hover {
  background: #007bff;
  color: #fff;
}
.product-list {
  padding: 60px 0;   /* 上下都加 60px 间距 */
  margin-top: 40px;  /* 顶部和导航栏之间再拉开 */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 每行固定 3 个 */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 平板：2个 */
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr; /* 手机：1个 */
  }
}
