/* ========================================
   产品中心页面 - Figma node 1:1025
   ======================================== */

.products-section {
  padding: 48px 0 80px;
  background: var(--white);
}
.products-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 48px;
  padding-bottom: 0;
}

.products-tab {
  display: inline-block;
  padding: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  color: #4a5565;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.products-tab:hover {
  color: var(--primary);
}

.products-tab.active {
  font-weight: 600;
  color: var(--primary);
}

.products-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.product-card.hidden {
  display: none !important;
}

.product-img-link {
  display: block;
  text-decoration: none;
}

.product-img {
  height: 288px;
  background: #f3f4f6;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 24px;
}

.product-cat {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 16px;
  line-height: 1.4;
}

.product-desc {
  font-size: 16px;
  color: #4a5565;
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-spec {
  font-size: 14px;
  color: #6a7282;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .products-tabs {
    flex-wrap: wrap;
    gap: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-img {
    height: 220px;
  }
}
