:root {
  --sa-product-tabs-height: 58px;
  --sa-mobile-sticky-total: calc(var(--sa-header-height) + var(--sa-product-tabs-height));
}

.sa-process-detail__grid,
.sa-contact-workflow__grid,
.sa-timeline__list {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.sa-section-intro h2,
.section-head h2,
.sa-solution-detail h2,
.sa-resource-paths h2,
.sa-capability-lab h2 {
  text-wrap: balance;
}

.capability-item p,
.sa-process-detail li p,
.sa-evidence article p,
.sa-specialty-products article p,
.sa-contact-workflow__grid p {
  color: var(--sa-text-2);
  font-size: 14px;
  line-height: 1.62;
}

.sa-resource-card {
  min-height: 0;
  padding: 24px;
}

.sa-resource-card h3 {
  text-wrap: balance;
}

.spec-table tr {
  min-height: 58px;
}

.sa-related-products .sa-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.sa-factory-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sa-factory-gallery > .container > .section-head .text-link {
  min-height: 44px;
  gap: 12px;
}

.sa-factory-gallery > .container > .section-head .text-link .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  transform: none;
}

.sa-factory-gallery__grid:has(figure:nth-child(2):last-child) {
  grid-template-rows: 360px;
}

.sa-factory-gallery__grid:has(figure:nth-child(2):last-child) figure:first-child {
  grid-row: auto;
}

.product-tabs-section {
  min-height: var(--sa-product-tabs-height);
  isolation: isolate;
}

.product-tabs-section::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 76%);
  content: "";
}

.product-tabs {
  min-height: var(--sa-product-tabs-height);
  padding-right: 42px;
}

.product-tabs .tab {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

[data-product-section] {
  scroll-margin-top: calc(var(--sa-product-tabs-height) + var(--sa-header-height) + 16px);
}

/* 产品详情页：上面的 scroll-margin 已全额补偿吸顶栈（header+tabs），
   这里归零 html 的全局 scroll-padding，避免同一栈被补两次、锚点落点偏低。 */
html:has(.sa-compression-detail) {
  scroll-padding-top: 0;
}

.site-header {
  background: rgba(255, 255, 255, .985);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.js [data-reveal],
.js [data-reveal-group] > * {
  transform: translateY(14px);
}

.js [data-reveal="left"] {
  transform: translateX(16px);
}

.js [data-reveal].is-visible,
.js [data-reveal-group].is-visible > * {
  transition-duration: .36s;
}

.js [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 35ms; }
.js [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 70ms; }
.js [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 105ms; }
.js [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 140ms; }
.js [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 175ms; }

.support-widget.is-suppressed .support-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.support-launcher {
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

@media (max-width: 700px) {
  .section {
    padding-block: 44px;
  }

  .section-head.row-between,
  .sa-route-home .section-head,
  .sa-home-products .section-head,
  .sa-factory-gallery .section-head,
  .sa-related-products .section-head,
  .featured-section .section-head {
    display: flex;
    grid-template-columns: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head.row-between > .text-link,
  .sa-route-home .section-head > .text-link {
    min-height: 44px;
  }

  .sa-section-intro {
    width: 100%;
    max-width: none;
  }

  .sa-section-intro h2,
  .section-head h2,
  .sa-solution-detail h2,
  .sa-resource-paths h2,
  .sa-capability-lab h2 {
    max-width: none;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.12;
    text-wrap: balance;
  }

  .inner-hero .display,
  .display-home {
    max-width: none;
    font-size: clamp(36px, 9.5vw, 38px);
    line-height: 1.08;
  }

  .capability-item p,
  .sa-process-detail li p,
  .sa-evidence article p,
  .sa-specialty-products article p,
  .sa-contact-workflow__grid p,
  .sa-resource-card > p:not(.section-kicker),
  .solution-meta small {
    font-size: 15px;
    line-height: 1.55;
  }

  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sa-product-grid,
  .sa-product-grid.sa-product-grid--three,
  .sa-specialty-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-product-card__media {
    height: 150px;
    aspect-ratio: auto;
  }

  .sa-product-card__media img {
    padding: 8px;
  }

  .sa-product-card__body {
    padding: 16px;
  }

  .sa-product-card h3 {
    font-size: 16px;
    line-height: 1.28;
  }

  .sa-product-card p {
    display: -webkit-box;
    margin: 9px 0 14px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .sa-product-card .text-link {
    gap: 8px;
    font-size: 12px;
  }

  .solution-card {
    border: 1px solid var(--sa-border);
  }

  .solution-media {
    aspect-ratio: 16 / 10;
  }

  .solution-meta {
    min-height: 68px;
    padding: 12px 16px;
  }

  .solutions-grid {
    gap: 14px;
  }

  .sa-resource-grid {
    gap: 14px;
  }

  .sa-resource-card {
    padding: 22px;
  }

  .sa-resource-card h3 {
    margin-top: 14px;
    font-size: 20px;
  }

  .sa-resource-card > p:not(.section-kicker) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .sa-resource-card details {
    margin-top: 16px;
    padding-top: 14px;
  }

  .product-tabs-section {
    top: var(--sa-header-height);
    min-height: var(--sa-product-tabs-height);
  }

  .product-tabs {
    min-height: var(--sa-product-tabs-height);
    padding-inline: 16px 42px;
    gap: 24px;
  }

  .product-tabs .tab {
    padding-block: 7px;
    font-size: 13px;
  }

  .sa-factory-gallery__grid:has(figure:nth-child(2):last-child) {
    grid-template-rows: none;
  }
}

@media (max-width: 359px) {
  .sa-product-grid,
  .sa-product-grid.sa-product-grid--three,
  .sa-specialty-products__grid {
    grid-template-columns: 1fr;
  }
}

/* Touch devices: keep the card hover elevation, drop the lift so a tap
   doesn't leave the card visually displaced. */
@media (hover: none) {
  .pillar-card:hover,
  .stat-item:hover,
  .industry-row span:hover,
  .sa-product-card:hover,
  .sa-resource-card:hover,
  .sa-evidence article:hover,
  .sa-specialty-products article:hover,
  .sa-capability-metrics article:hover,
  .sa-contact-workflow__grid li:hover,
  .sa-resource-paths article:hover,
  .sa-application-examples__grid span:hover,
  .sa-product-quality-documents__evidence article:hover {
    transform: none;
  }

  .sa-factory-gallery figure:hover img {
    transform: none;
  }
}
