/* 产品中心 — 对齐参考截图，主色 #00A85A */
.product-page {
  --product-primary: #00a85a;
  --product-primary-dark: #008a4a;
  --product-dark: #101828;
  --product-text: #4b5563;
  --product-muted: #9ca3af;
  --product-border: #e5e7eb;
  --product-head-bg: #f5f6f8;
  --product-shell: min(1200px, calc(100% - 48px));
}

/* 顶栏叠放样式见 product-banner.css */

.product-main {
  background: #fff;
  padding-top: 0;
}

.product-shell {
  width: var(--product-shell);
  margin: 0 auto;
}

/* 分类 Tab 栏 — Banner 下方 */
.product-tabs-bar {
  background: #fff;
  padding: 20px 0 0;
}

/* Tab — 下划线样式，左对齐 */
.product-catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--product-border);
}

.product-catalog-tab {
  position: relative;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--product-text);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s;
}

.product-catalog-tab:hover {
  color: var(--product-primary);
}

.product-catalog-tab.is-active {
  color: var(--product-primary);
  font-weight: 500;
  background: transparent;
}

.product-catalog-tab.is-active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--product-primary);
  border-radius: 2px 2px 0 0;
}

/* 二级分类 Tab — 胶囊样式，缩进于一级下方 */
.product-tabs-bar--sub {
  padding-top: 12px;
  padding-bottom: 4px;
}

.product-catalog-tabs--sub {
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 0;
}

.product-catalog-tab--sub {
  padding: 8px 16px;
  border: 1px solid var(--product-border);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  background: #fff;
}

.product-catalog-tab--sub:hover {
  border-color: var(--product-primary);
  color: var(--product-primary);
}

.product-catalog-tab--sub.is-active {
  border-color: var(--product-primary);
  color: #fff;
  background: var(--product-primary);
  font-weight: 500;
}

.product-catalog-tab--sub.is-active::after {
  display: none;
}

/* 产品列表区 */
.product-page-body {
  padding: 36px 0 80px;
  background: var(--product-head-bg);
}

.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

/* 卡片 — 白底圆角 + 模块阴影 */
.product-catalog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-catalog-card:hover .product-card-inner {
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.product-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 0;
  background: #eef0f2;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-catalog-card:hover .product-card-media img {
  transform: scale(1.02);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 20px;
}

.product-card-series {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--product-primary);
}

.product-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--product-dark);
}

.product-card-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--product-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 0 18px;
  padding: 0;
}

.product-card-metric {
  margin: 0;
  min-width: 72px;
}

.product-card-metric dt {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--product-primary);
}

.product-card-metric dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--product-muted);
}

.product-card-foot {
  margin-top: auto;
  text-align: right;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--product-primary);
  text-decoration: none;
}

.product-card-link:hover {
  color: var(--product-primary-dark);
}

.product-card-link-icon {
  width: 10px;
  height: 10px;
}

.product-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--product-muted);
}

.product-empty--error {
  color: #b42318;
}

.product-card-enter {
  animation: productCardIn 0.4s ease both;
}

@keyframes productCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式见 public/css/site-responsive.css */
