/* =====================================================
   products.css — 产品中心页样式
   星时寻迹 | 深圳市玉山源科技有限公司
   公共样式（page-banner、breadcrumb、cta）在 public.css
===================================================== */

/* =====================================================
   产品卡片宫格
===================================================== */
.products-list {
  padding: 80px 0;
}

.products-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  border-radius: 12px;
  border: 1.5px solid #e8ecf5;
  overflow: hidden;
  background-color: #ffffff;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 16px 48px rgba(0, 60, 120, 0.1);
  transform: translateY(-6px);
  border-color: #b8cfe8;
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #f8f9fc;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-info {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f3f8;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: 0.01em;
}

.product-card-arrow {
  font-size: 0.82rem;
  color: #0066cc;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-card:hover .product-card-arrow {
  transform: translateX(5px);
}

/* =====================================================
   响应式
===================================================== */
@media (max-width: 900px) {
  .products-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .products-list {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .products-card-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}
