/* ── Certifications Overview Page ── */

[data-certifications-page] .image-text-card-media {
  background: #ffffff;
}

/* 证书 logo 使用完整展示，避免被卡片比例裁切。 */
[data-certifications-page] .image-text-card-media img {
  object-fit: contain;
  padding: 20px;
}

[data-led-solution-page] .image-text-card-media {
  background: #ffffff;
}

[data-led-solution-page] .image-text-card-media img {
  object-fit: contain;
  padding: 20px;
}

[data-certifications-page] .image-text-card-body p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ── Cert Detail Page (ACS / WaterSense / NSF / KTW) ── */

.cert-detail-page {
  width: 100%;
}

/* ── Cert Intro (logo + title + desc) ── */

.cert-intro-section {
  padding-top: 120px;
}

.cert-intro-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.cert-intro-logo {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-intro-logo img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

.cert-intro-content {
  flex: 1;
  min-width: 0;
}

.cert-intro-content h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.cert-intro-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Cert Product List ── */

.cert-product-list-section {
  padding-top: 64px;
}

.cert-product-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.cert-product-group {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--line-light);
  background: #ffffff;
}

.cert-product-image {
  flex-shrink: 0;
  width: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--canvas-soft);
}

.cert-product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.cert-product-body {
  flex: 1;
  min-width: 0;
}

.cert-product-body h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.cert-product-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.cert-product-body h3 a:hover {
  color: var(--ink-muted);
}

.cert-model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-model-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--canvas-soft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cert-model-tag-linked {
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.cert-model-tag-linked:hover {
  background: var(--primary);
}

.cert-model-tag small {
  color: var(--ink-muted);
  font-weight: 400;
}

/* ── Responsive ── */

@media (max-width: 820px) {
  .cert-intro-section {
    padding-top: 100px;
  }

  .cert-intro-inner {
    flex-direction: column;
    gap: 24px;
  }

  .cert-intro-logo {
    width: 100px;
  }

  .cert-product-group {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .cert-product-image {
    width: 100%;
  }

  .cert-product-image img {
    aspect-ratio: 16 / 10;
  }
}

/* ── Legacy: Certified Product Sub-pages (still use .certifications-page-shell) ── */

.certifications-page-shell .split-header-media {
  align-items: center;
  background:
    radial-gradient(circle at 24% 20%, rgba(113, 176, 149, 0.22), transparent 34%),
    linear-gradient(135deg, #f6f8f7 0%, #e9efec 100%);
  display: flex;
  justify-content: center;
  min-height: 360px;
  padding: 42px;
}

.certifications-page-shell .split-header-media img {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 47, 39, 0.12);
  box-shadow: 0 24px 70px rgba(19, 41, 34, 0.16);
  height: auto;
  max-height: 240px;
  max-width: min(320px, 80%);
  object-fit: contain;
  padding: 34px;
}

.certifications-page-shell .comparison-table-shell {
  overflow-x: auto;
}

.certifications-page-shell .comparison-table,
.certifications-page-shell .spec-table {
  min-width: 820px;
}

.certifications-page-shell .comparison-table th,
.certifications-page-shell .comparison-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.certifications-page-shell .comparison-table td:first-child,
.certifications-page-shell .comparison-table th:first-child {
  font-weight: 700;
  min-width: 140px;
}

.certifications-page-shell .table-note {
  color: #53645d;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 980px;
}

@media (max-width: 860px) {
  .certifications-page-shell .split-header-media {
    min-height: 260px;
    padding: 28px;
  }

  .certifications-page-shell .split-header-media img {
    max-height: 180px;
    padding: 24px;
  }

  .certifications-page-shell .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certifications-page-shell .process-step-wrapper:nth-child(2n) .process-step-arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  .certifications-page-shell .comparison-table,
  .certifications-page-shell .spec-table {
    min-width: 720px;
  }

  .certifications-page-shell .process-flow {
    grid-template-columns: 1fr;
  }

  .certifications-page-shell .process-step-arrow {
    top: auto;
    bottom: -20px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .certifications-page-shell .process-step-wrapper {
    padding-bottom: 12px;
  }
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.timeline-item {
  padding: 32px;
  border-radius: 20px;
  background: var(--canvas-soft);
}

.timeline-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--on-primary);
  background: var(--primary);
}

.timeline-item-icon svg {
  width: 24px;
  height: 24px;
}

.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.market-body {
  margin-top: 32px;
  /* max-width: 960px; */
}

.market-body p {
  color: var(--ink-muted);
  line-height: 1.8;
}

.market-banner {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
}

.market-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 21 / 9;
  border-radius: 20px;
}

@media (max-width: 820px) {
  .timeline-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .market-banner img {
    aspect-ratio: 16 / 9;
  }
}

[data-bathroom-page] #balance .card-grid-item-icon {
  background: var(--green-lime);
}
