/* 官网首页动效：视差、光效卡片、网格背景、滚动出现、数字递增、跑马灯等 */

@media (prefers-reduced-motion: reduce) {
  .hero-parallax__img,
  .marquee-track,
  .grid-pattern,
  .magic-card::before,
  .floating-inquiry__pulse,
  .process-preview__slide,
  .process-timeline__item,
  .cta-banner__shine,
  .cta-banner__btn,
  .nav-reveal,
  .team-card__avatar-img,
  .team-card__status,
  .team-card__social,
  .team-card__social-link,
  [data-strength-stat],
  .product-tabs,
  .faq-tabs,
  .faq-tab-panel,
  .product-tab-grid__item,
  [data-animate],
  [data-hero-title],
  [data-hero-subtitle],
  [data-hero-cta],
  [data-hero-image] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---- Navbar reveal ---- */
.nav-reveal {
  opacity: 0;
}

.nav-reveal.is-visible,
body:has(.home-first-screen) .ud-header {
  opacity: 1;
}

/* ---- Hero entrance ---- */
[data-hero-title],
[data-hero-subtitle],
[data-hero-cta],
[data-hero-image] {
  opacity: 0;
}

/* ---- Hero Parallax ---- */
.hero-parallax {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero-parallax__img {
  will-change: transform;
  transition: transform 0.12s linear;
}

/* ---- Animated Grid Pattern ---- */
.grid-pattern {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(48, 86, 211, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 86, 211, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: grid-drift 18s linear infinite;
}

.dark .grid-pattern {
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

@keyframes grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 40px 40px, 40px 40px;
  }
}

/* ---- Magic / Glowing Card ---- */
.magic-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.magic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(48, 86, 211, 0.18),
    transparent 40%
  );
  z-index: 0;
}

.magic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(48, 86, 211, 0.35),
    rgba(48, 86, 211, 0.05) 40%,
    rgba(48, 86, 211, 0.25)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.magic-card:hover::before,
.magic-card:hover::after {
  opacity: 1;
}

.magic-card > * {
  position: relative;
  z-index: 1;
}

/* ---- AOS-like scroll reveal ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"].is-visible {
  transform: translateY(0);
}

/* ---- Number counter ---- */
.stat-counter {
  font-variant-numeric: tabular-nums;
}

.stat-counter__suffix {
  font-size: 0.55em;
  vertical-align: super;
}

/* ---- Infinite marquee ---- */
.marquee-row--full {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

.marquee-row {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee-track--reverse {
  animation-direction: reverse;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-card {
  flex-shrink: 0;
  padding: 1.25rem 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(48, 86, 211, 0.15);
  background: #fff;
  min-width: 220px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.dark .marquee-card {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Certificate marquee ---- */
.cert-marquee-wrap {
  position: relative;
}

.cert-marquee-wrap.is-paused .marquee-track {
  animation-play-state: paused;
}

.cert-marquee-row {
  padding: 0.75rem 0 1.75rem;
}

.cert-marquee-row .marquee-track {
  gap: 1.75rem;
}

.cert-marquee-card {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  /* 等比例放大：192×270 → 250×352（约 1.3 倍） */
  width: 250px;
  min-width: 250px;
  height: 352px;
  padding: 0.875rem;
  border: 1px solid rgba(48, 86, 211, 0.15);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cert-marquee-card:hover,
.cert-marquee-card:focus-visible {
  border-color: rgba(48, 86, 211, 0.35);
  box-shadow: 0 10px 28px rgba(48, 86, 211, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.dark .cert-marquee-card {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
}

.cert-marquee-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- 产品汇总：自动跑马灯 + 放大卡片 + 悬停参数遮罩 ---- */
.product-home-showcase__panels {
  width: 100%;
  overflow: visible;
}

.product-catalog-marquee {
  --catalog-card-width: 20rem;
  --catalog-media-height: 14rem;
  padding: 0.75rem 0 1.25rem;
}

@media (min-width: 768px) {
  .product-catalog-marquee {
    --catalog-card-width: 22rem;
    --catalog-media-height: 16rem;
  }
}

@media (min-width: 1280px) {
  .product-catalog-marquee {
    --catalog-card-width: 24rem;
    --catalog-media-height: 18rem;
  }
}

.product-catalog-marquee .marquee-track {
  gap: 1.75rem;
}

.product-catalog-marquee .marquee-track > .product-catalog-marquee-card {
  flex: 0 0 var(--catalog-card-width);
  width: var(--catalog-card-width);
  min-width: var(--catalog-card-width);
  max-width: var(--catalog-card-width);
}

.product-catalog-marquee-card {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
  padding: 1.125rem;
  border: 1px solid rgba(48, 86, 211, 0.15);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.dark .product-catalog-marquee-card {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
}

.product-catalog-marquee-card:hover {
  border-color: rgba(48, 86, 211, 0.35);
  box-shadow: 0 12px 28px rgba(48, 86, 211, 0.14);
  transform: translateY(-2px);
}

.product-catalog-marquee-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--catalog-media-height, 14rem);
  margin-bottom: 0.875rem;
}

/* 跑马灯克隆：background 铺在固定高度 media 容器上 */
.product-catalog-marquee-card__media[style*="background-image"] {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.product-marquee-card[style*="background-image"],
.cert-marquee-card[style*="background-image"] {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.product-catalog-marquee-card__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-catalog-marquee-card:hover .product-catalog-marquee-card__img {
  transform: scale(1.04);
}

.product-catalog-marquee-card__title {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--color-dark, #111928);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dark .product-catalog-marquee-card__title {
  color: #fff;
}

.product-catalog-marquee-card:hover .product-catalog-marquee-card__title {
  color: var(--color-primary, #3056d3);
}

/* 悬停遮罩：展示产品参数/简介 */
.product-catalog-marquee-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.375rem;
  padding: 1rem;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(17, 25, 40, 0.08) 0%,
    rgba(17, 25, 40, 0.72) 48%,
    rgba(17, 25, 40, 0.94) 100%
  );
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.product-catalog-marquee-card:hover .product-catalog-marquee-card__overlay,
.product-catalog-marquee-card:focus-visible .product-catalog-marquee-card__overlay {
  opacity: 1;
}

.product-catalog-marquee-card__overlay-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-catalog-marquee-card__overlay-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.product-catalog-marquee-card__overlay-text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.product-catalog-marquee-card__overlay-text--hint {
  font-weight: 500;
  -webkit-line-clamp: 2;
}

@media (max-width: 639px) {
  .product-catalog-marquee {
    --catalog-card-width: 18.5rem;
    --catalog-media-height: 13rem;
  }
}

.cert-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  /* 随证书比例收缩，限制尺寸避免超出视口被裁切 */
  width: fit-content;
  max-width: min(90vw, 400px);
  max-height: min(70vh, 520px);
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.cert-marquee-wrap.is-preview-active .cert-preview {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.dark .cert-preview {
  background: #1f2937;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.cert-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(88vw, 380px);
  max-height: min(66vh, 480px);
  object-fit: contain;
}

/* ---- 产品展示区：纯白底（无 Hero 渐变衔接） ---- */
.product-showcase-gradient {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background-color: #fff;
}

.dark .product-showcase-gradient {
  background-color: var(--color-dark);
}

.product-showcase-gradient--no-marquee {
  padding-top: 4rem;
}

.product-showcase-gradient--no-marquee .product-features-section__intro {
  padding-top: 0;
}

/* 跑马灯：白底上展示产品图 */
.product-marquee-bridge {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 1rem;
  scroll-margin-top: 5.5rem;
}

#features,
#about,
#pricing,
#team,
#contact,
#news {
  scroll-margin-top: 5.5rem;
}

/* 产品跑马灯：贴边滚动，两侧不留空白 */
.product-marquee-row.marquee-row {
  mask-image: none;
}

.product-marquee-bridge,
.product-marquee-bridge__content {
  padding-left: 0;
  padding-right: 0;
}

.product-marquee-bridge__content {
  position: relative;
  z-index: 2;
}

.product-marquee-row .marquee-track {
  gap: 1.25rem;
}

.product-marquee-card {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-width: 150px;
  height: 130px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.product-marquee-card:hover[style*="background-image"] {
  transform: scale(1.06) translateY(-4px);
}

.product-marquee-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgb(15 23 42 / 14%));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.product-marquee-card:hover .product-marquee-card__img {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 16px 28px rgb(15 23 42 / 20%));
}

.dark .product-marquee-card__img {
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 35%));
}

/* features 标题与 tabs 均在白底上 */
.product-features-section {
  position: relative;
  z-index: 2;
}

.product-features-section__intro {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.product-features-section__body {
  position: relative;
  z-index: 2;
  overflow-x: clip;
  background-color: #fff;
}

.dark .product-features-section__body {
  background-color: var(--color-dark);
}

@media (width >= 1024px) {
  .product-marquee-bridge {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }

  .product-marquee-card {
    width: 168px;
    min-width: 168px;
    height: 148px;
  }

  .product-showcase-gradient--no-marquee {
    padding-top: 6rem;
  }
}

/* 客户评价跑马灯卡片：更宽以容纳评价正文 */
.testimonial-marquee-card {
  min-width: 320px;
  max-width: 360px;
  text-align: left;
}

.floating-inquiry__btn--whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.floating-inquiry__btn--whatsapp:hover {
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---- Hot product hover zoom ---- */
.product-hover-card {
  overflow: hidden;
}

/* 右侧竖排「推荐」角标：不用 rotate 偏移，避免 overflow 裁掉文字 */
.product-hover-card__badge {
  position: absolute;
  top: 1.75rem;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.625rem 0.375rem;
  border-radius: 0.375rem 0 0 0.375rem;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}

.product-hover-card__media {
  overflow: hidden;
  border-radius: 0.5rem;
}

.product-hover-card__media img {
  transition: transform 0.45s ease;
}

.product-hover-card:hover .product-hover-card__media img {
  transform: scale(1.08);
}

.product-hover-card__action {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-hover-card:hover .product-hover-card__action {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hot products：三大组 Tab + 紧凑网格，避免多分类竖向堆叠 ---- */
.hot-product-tabs {
  opacity: 0;
  transform: translateY(12px);
  padding: 0.375rem;
  border-radius: 9999px;
  background: #f1f5f9;
  gap: 0.375rem;
  max-width: 32rem;
}

.dark .hot-product-tabs {
  background: rgba(255, 255, 255, 0.06);
}

.hot-product-tabs.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hot-product-tab {
  min-width: 5.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: #637381;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .hot-product-tab {
  color: #9ca3af;
}

.hot-product-tab:hover {
  color: #111928;
  background: rgba(255, 255, 255, 0.72);
}

.dark .hot-product-tab:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
}

.hot-product-tab.is-active {
  border-color: #dfe4ea;
  background: #fff;
  color: #111928;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.dark .hot-product-tab.is-active {
  border-color: #4b5563;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hot-product-tab.is-active::after {
  display: none;
}

/* 产品汇总区：4 个大类 Tab 需更宽容器 */
.hot-product-tabs--catalog {
  max-width: none;
  flex: 1 1 auto;
}

/* Tab 栏右侧：查看全部分类 / 查看全部产品 */
.product-catalog-tabs-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-catalog-tabs-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.product-catalog-tabs-bar__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.product-catalog-tabs-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary, #3056d3);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.product-catalog-tabs-bar__link:hover {
  color: var(--color-blue-dark, #1b44bc);
}

.product-catalog-tabs-bar__link--all {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-primary, #3056d3);
  border-radius: 9999px;
  background: var(--color-primary, #3056d3);
  color: #fff;
}

.product-catalog-tabs-bar__link--all:hover {
  background: var(--color-blue-dark, #1b44bc);
  border-color: var(--color-blue-dark, #1b44bc);
  color: #fff;
}

.dark .product-catalog-tabs-bar__link--all {
  background: var(--color-primary, #3056d3);
  border-color: var(--color-primary, #3056d3);
  color: #fff;
}

.hot-product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .hot-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hot-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.hot-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.dark .hot-product-card {
  background: var(--color-dark-2, #1f2937);
}

.hot-product-card__category {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #3056d3);
}

.hot-product-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-dark, #111928);
}

.dark .hot-product-card__title {
  color: #fff;
}

.hot-product-card__media {
  margin-bottom: 1rem;
  aspect-ratio: 4 / 3;
}

.hot-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hot-product-card__action {
  display: inline-block;
  width: 100%;
  margin-top: auto;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  background: var(--color-primary, #3056d3);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: background-color 0.2s ease;
}

.hot-product-card__action:hover {
  background: var(--color-blue-dark, #1b44c8);
  color: #fff;
}

.hot-product-card:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

.hot-product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hot-product-card .product-hover-card__badge {
  top: 1rem;
}

/* ---- Floating inquiry ---- */
.floating-inquiry {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: flex-end;
}

.floating-inquiry__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  background: #fff;
  color: #3056d3;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(48, 86, 211, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-inquiry__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(48, 86, 211, 0.25);
}

.floating-inquiry__btn--primary {
  background: #3056d3;
  color: #fff;
  border-color: #3056d3;
}

.floating-inquiry__pulse {
  position: relative;
}

.floating-inquiry__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(48, 86, 211, 0.45);
  animation: inquiry-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes inquiry-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .floating-inquiry {
    right: 0;
    left: 0;
    bottom: 0;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0));
    max-width: none;
    background: color-mix(in oklab, #fff 92%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(48, 86, 211, 0.12);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  }

  .dark .floating-inquiry--mobile-bar {
    background: color-mix(in oklab, #1f2937 92%, transparent);
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .floating-inquiry--mobile-bar .floating-inquiry__label {
    display: none;
  }

  .floating-inquiry--mobile-bar .floating-inquiry__btn {
    flex: 1;
    justify-content: center;
    padding: 0.65rem;
    border-radius: 0.5rem;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .floating-inquiry--mobile-bar .floating-inquiry__btn--primary {
    background: #3056d3;
  }

  .floating-inquiry--mobile-bar .floating-inquiry__btn--whatsapp {
    background: #25d366;
    color: #fff;
  }

  body:has(.floating-inquiry--mobile-bar) {
    padding-bottom: 4.5rem;
  }
}

/* ---- CTA banner ---- */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner__shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
}

.cta-banner.is-active .cta-banner__shine {
  opacity: 1;
  animation: cta-shine 4s ease-in-out infinite;
}

@keyframes cta-shine {
  0%,
  100% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(120%);
  }
}

.cta-banner.is-active .cta-banner__btn {
  animation: cta-breathe 2.5s ease-in-out infinite;
}

@keyframes cta-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* ---- FAQ 分类 Tab + 手风琴 ---- */
.faq-tabs {
  opacity: 0;
  transform: translateY(12px);
  padding: 0.375rem;
  border-radius: 9999px;
  background: #f1f5f9;
  gap: 0.375rem;
  max-width: 52rem;
}

.dark .faq-tabs {
  background: rgba(255, 255, 255, 0.06);
}

.faq-tabs.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.faq-tab {
  min-width: 4.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: #637381;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .faq-tab {
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
  }
}

.dark .faq-tab {
  color: #9ca3af;
}

.faq-tab:hover {
  color: #111928;
  background: rgba(255, 255, 255, 0.72);
}

.dark .faq-tab:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
}

.faq-tab.is-active {
  border-color: #dfe4ea;
  background: #fff;
  color: #111928;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.dark .faq-tab.is-active {
  border-color: #4b5563;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.faq-tab-panels {
  min-height: 0;
}

.faq-tab-panel.hidden {
  display: none;
}

/* ---- FAQ accordion ---- */
.faq-accordion__item {
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(48, 86, 211, 0.12);
  background: #fff;
  overflow: hidden;
}

.dark .faq-accordion__item {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-accordion__trigger h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111928;
}

.dark .faq-accordion__trigger h3 {
  color: #fff;
}

.faq-accordion__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.faq-accordion__icon::before,
.faq-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #3056d3;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion__item.is-open .faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-accordion__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.faq-accordion__content {
  padding: 0 1.5rem 1.25rem;
}

/* ---- About intro：固定高度全宽背景（无 ScrollTrigger pin-spacer） ---- */
.about-intro {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: flex;
  align-items: center;
  /* 固定视窗高度，不再随全景图拉长滚动区 */
  min-height: clamp(520px, 72vh, 680px);
  padding: 3rem 0;
  overflow: hidden;
}

.about-intro__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #1e293b;
  pointer-events: none;
}

.about-intro__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* 左深右浅渐变蒙版：左侧加深以保证白字可读 */
.about-intro__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 68%) 0%,
    rgb(0 0 0 / 48%) 32%,
    rgb(0 0 0 / 22%) 58%,
    rgb(0 0 0 / 0%) 100%
  );
  pointer-events: none;
}

.about-intro__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* 大屏：网格顶对齐，标题与视频上沿在同一水平线 */
@media (width >= 1024px) {
  .about-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: start;
    column-gap: 2.5rem;
  }
}

.about-intro__layout {
  align-items: flex-start;
}

/* 左侧文案直排，无半透明底盒 */
.about-intro__copy {
  width: 100%;
  max-width: 34rem;
  padding: 0;
  color: #fff;
}

.about-intro__copy h2,
.about-intro__copy p {
  color: #fff;
  text-shadow:
    0 1px 2px rgb(0 0 0 / 40%),
    0 2px 16px rgb(0 0 0 / 28%);
}

.about-intro [data-about-left],
.about-intro [data-about-media] {
  display: flex;
  align-items: flex-start;
}

.about-intro [data-about-left] {
  justify-content: flex-start;
}

.about-intro [data-about-media] {
  justify-content: center;
}

/* 右侧视频：圆角与分层投影，背景透明由占位图/视频自身填充 */
.about-intro__video-card {
  position: relative;
  width: 100%;
  max-width: min(26rem, 88%);
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 2px 4px rgb(0 0 0 / 8%),
    0 10px 24px rgb(0 0 0 / 14%),
    0 22px 44px rgb(0 0 0 / 18%),
    0 36px 72px rgb(0 0 0 / 10%);
}

/* 视频/占位图固定 16:9 窗口 */
.about-intro .about-media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* 公司简介区内占位图略透明，减轻「黑块」压迫感 */
.about-intro .about-video-placeholder__bg {
  background: linear-gradient(
    145deg,
    rgb(26 39 68 / 78%) 0%,
    rgb(15 23 42 / 82%) 42%,
    rgb(17 24 39 / 85%) 100%
  );
}

@media (width < 1024px) {
  .about-intro [data-about-media] {
    margin-top: 2.5rem;
  }
}

@media (width >= 768px) {
  .about-intro__video-card {
    max-width: min(24rem, 82%);
    margin-right: 0.75rem;
  }
}

@media (width >= 1024px) {
  .about-intro {
    padding: 3.5rem 0;
  }

  .about-intro [data-about-media] {
    justify-content: flex-end;
  }

  .about-intro__video-card {
    max-width: 22.5rem;
    margin-right: 0;
  }
}

/* ---- About split ---- */
[data-about-left],
[data-about-media] {
  opacity: 0;
}

[data-about-left].is-visible,
[data-about-media].is-visible {
  opacity: 1;
}

/* 公司简介媒体区：固定 16:9，不依赖未编译的 aspect-video */
.about-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.about-video-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.about-video-placeholder__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(145deg, #1a2744 0%, #0f172a 42%, #111827 100%);
}

.dark .about-video-placeholder__bg {
  background:
    linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #020617 100%);
}

.about-video-placeholder__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.about-video-placeholder__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    rgba(48, 86, 211, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.about-video-placeholder__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.about-video-placeholder__play {
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

/* ---- Team card ---- */
.team-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(48, 86, 211, 0.12);
}

@keyframes team-avatar-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes team-dot-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(19, 194, 150, 0.55);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(19, 194, 150, 0);
  }
}

@keyframes team-icon-breathe {
  0%,
  100% {
    transform: scale(1);
    color: var(--team-icon-rest, #959cb1);
  }
  50% {
    transform: scale(1.12);
    color: var(--team-icon-accent, #3056d3);
  }
}

/* 社交图标整组容器：持续呼吸 */
@keyframes team-social-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.team-card__avatar-img {
  animation: team-avatar-breathe 3.2s ease-in-out infinite;
  transform-origin: center center;
}

.team-card__status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #13c296;
  border: 2px solid #fff;
  animation: team-dot-breathe 2.2s ease-in-out infinite;
}

.dark .team-card__status {
  border-color: #1f2937;
}

.team-card__social {
  animation: team-social-breathe 2.8s ease-in-out infinite;
  transform-origin: center center;
}

.team-card__social-link {
  display: inline-flex;
  /* 静止时为灰色，呼吸放大峰值时切换为各平台品牌色 */
  --team-icon-rest: #959cb1;
  --team-icon-accent: #3056d3;
  color: var(--team-icon-rest);
  animation: team-icon-breathe 2.6s ease-in-out infinite;
  transform-origin: center center;
  transition: color 0.2s ease;
}

.team-card__social-link:nth-child(1) {
  --team-icon-accent: #1877f2;
}

.team-card__social-link:nth-child(2) {
  --team-icon-accent: #1da1f2;
  animation-delay: 0.35s;
}

.team-card__social-link:nth-child(3) {
  --team-icon-accent: #25d366;
  animation-delay: 0.7s;
}

.team-card__social-link:nth-child(4) {
  --team-icon-accent: #25d366;
  animation-delay: 1.05s;
}

.team-card__social:hover,
.team-card__social-link:hover {
  animation-play-state: paused;
}

.team-card__social-link:hover {
  color: var(--team-icon-accent);
}

/* ---- Team edge rail：宽屏右缘常驻，垂直居中吸附 ---- */
.team-edge-rail {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  top: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.team-edge-rail__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-edge-rail__item {
  margin: 0;
}

.team-edge-rail__btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 9999px;
}

.team-edge-rail__avatar-wrap {
  position: relative;
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  border: 3px solid #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark .team-edge-rail__avatar-wrap {
  border-color: #1f2937;
}

.team-edge-rail__btn:hover .team-edge-rail__avatar-wrap,
.team-edge-rail__btn:focus-visible .team-edge-rail__avatar-wrap {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(48, 86, 211, 0.28);
}

.team-edge-rail__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: team-avatar-breathe 3.2s ease-in-out infinite;
}

.team-edge-rail__item:nth-child(2) .team-edge-rail__avatar {
  animation-delay: 0.4s;
}

.team-edge-rail__item:nth-child(3) .team-edge-rail__avatar {
  animation-delay: 0.8s;
}

.team-edge-rail__item:nth-child(4) .team-edge-rail__avatar {
  animation-delay: 1.2s;
}

.team-edge-rail__status {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #22c55e;
  border: 2px solid #fff;
  animation: team-dot-breathe 2.2s ease-in-out infinite;
}

.dark .team-edge-rail__status {
  border-color: #1f2937;
}

.team-card.is-highlighted {
  box-shadow:
    0 0 0 3px rgba(48, 86, 211, 0.45),
    0 16px 40px rgba(48, 86, 211, 0.15);
}

@media (max-width: 1279px) {
  .team-edge-rail {
    display: none;
  }
}

@media (max-height: 640px) {
  .team-edge-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-edge-rail__avatar,
  .team-edge-rail__status {
    animation: none;
  }
}

/* ---- News section & card ---- */
.news-grid {
  display: grid;
  gap: 2rem;
}

.news-grid--cols-1 {
  grid-template-columns: minmax(0, 1fr);
}

.news-grid--cols-2 {
  grid-template-columns: minmax(0, 1fr);
}

.news-grid--cols-3 {
  grid-template-columns: minmax(0, 1fr);
}

.news-grid--cols-4 {
  grid-template-columns: minmax(0, 1fr);
}

@media (width >= 768px) {
  .news-grid--cols-2,
  .news-grid--cols-3,
  .news-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 1024px) {
  .news-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(48, 86, 211, 0.12);
}

.dark .news-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.news-card__media {
  aspect-ratio: 16 / 9;
}

.news-card__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* 资讯配图去重镜像：与 .news-card__media-img 同尺寸 */
.news-card__media [data-news-img-mirror] {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-card__media-img,
.news-card:hover .news-card__media [data-news-img-mirror] {
  transform: scale(1.05);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

@media (width >= 1024px) {
  .news-card__body {
    padding: 1.75rem;
  }
}

.news-card__date {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #637381;
}

.dark .news-card__date {
  color: #959cb1;
}

.news-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}

@media (width >= 640px) {
  .news-card__title {
    font-size: 1.25rem;
  }
}

.news-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card__title a:hover {
  color: var(--color-primary, #3056d3);
}

.dark .news-card__title a {
  color: #fff;
}

.dark .news-card__title a:hover {
  color: var(--color-primary, #3056d3);
}

.news-card__summary {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #637381;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dark .news-card__summary {
  color: #959cb1;
}

.news-card__more {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary, #3056d3);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-card__more:hover {
  color: var(--color-blue-dark, #1b44c8);
}

.news-card__more::after {
  content: " →";
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-card__media-img,
  .news-card__more {
    transition: none;
  }

  .news-card:hover {
    transform: none;
  }

  .news-card:hover .news-card__media-img {
    transform: none;
  }
}

/* ---- Factory strength stats ---- */
[data-strength-stat] {
  opacity: 0;
  transform: translateY(24px);
}

[data-strength-stat].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---- 工厂实力：生产场景 Tab + 画册主图 ---- */
.factory-scene-tabs {
  opacity: 0;
  transform: translateY(12px);
  padding: 0.375rem;
  border-radius: 9999px;
  background: #f1f5f9;
  gap: 0.375rem;
  max-width: 44rem;
}

.dark .factory-scene-tabs {
  background: rgba(255, 255, 255, 0.06);
}

.factory-scene-tabs.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.factory-scene-tab {
  min-width: 5rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: #637381;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .factory-scene-tab {
  color: #9ca3af;
}

.factory-scene-tab:hover {
  color: #111928;
  background: rgba(255, 255, 255, 0.72);
}

.dark .factory-scene-tab:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
}

.factory-scene-tab.is-active {
  border-color: #dfe4ea;
  background: #fff;
  color: #111928;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.dark .factory-scene-tab.is-active {
  border-color: #4b5563;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.factory-scene__grid--showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .factory-scene__grid--showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    grid-auto-rows: minmax(0, 1fr);
  }

  /* 画册主图：左侧大图占 2×2，右侧叠放辅图 */
  .factory-scene__item--hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .factory-scene__item--span-row {
    grid-column: 1 / -1;
  }
}

.factory-scene__item {
  min-width: 0;
}

.factory-scene__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.factory-scene__card:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.25rem);
}

.factory-scene__card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.dark .factory-scene__card {
  background: var(--color-dark-2, #1f2937);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.factory-scene__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-gray-1, #f9fafb);
}

.factory-scene__item--hero .factory-scene__media {
  aspect-ratio: auto;
  min-height: 12.5rem;
  height: 100%;
}

@media (min-width: 768px) {
  .factory-scene__item--hero .factory-scene__media {
    min-height: 18rem;
  }
}

/* 厂房/案例等全景图使用更宽比例 */
.factory-scene-panel--landscape .factory-scene__media {
  aspect-ratio: 16 / 10;
}

.factory-scene-panel--landscape .factory-scene__item--hero .factory-scene__media {
  aspect-ratio: auto;
  min-height: 14rem;
}

.factory-scene-panel--landscape .factory-scene__item--span-row .factory-scene__media {
  aspect-ratio: 21 / 9;
  max-height: 15rem;
}

.dark .factory-scene__media {
  background: var(--color-dark-3, #374151);
}

.factory-scene__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.factory-scene__card:hover .factory-scene__media img,
.factory-scene__card:focus-within .factory-scene__media img {
  transform: scale(1.05);
}

.factory-scene__caption {
  padding: 0.75rem 0.875rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-dark, #111928);
}

.dark .factory-scene__caption {
  color: #fff;
}

/* 首页产品分类 Tab：颜色与下划线不依赖 JS 切换 Tailwind 工具类 */
.product-tab-btn {
  color: var(--color-body-color, #637381);
}

.dark .product-tab-btn {
  color: var(--color-dark-6, #9ca3af);
}

.product-tab-btn.is-active {
  color: var(--color-primary, #3056d3);
}

/* ---- Product tab stagger ---- */
.product-tabs {
  opacity: 0;
  transform: translateY(16px);
}

.product-tabs.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.product-tab-grid__item:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.product-tab-grid__item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ---- Form focus & loading ---- */
.official-field-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f1f1f1;
  background: transparent;
  padding-bottom: 0.75rem;
  color: inherit;
  outline: none;
}

.official-field-input::placeholder {
  color: rgba(99, 115, 129, 0.6);
}

.official-field-input:focus {
  border-color: #3056d3;
}

.dark .official-field-input {
  border-bottom-color: #374151;
  color: #9ca3af;
}

#official-contact-form input.is-focused,
#official-contact-form textarea.is-focused {
  border-color: #3056d3 !important;
  box-shadow: 0 1px 0 0 #3056d3;
}

#official-contact-form button[type="submit"].is-loading {
  opacity: 0.75;
  pointer-events: none;
  position: relative;
}

#official-contact-form button[type="submit"].is-loading::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Product tab grid（从 index 内联样式迁出） ---- */
.product-tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #3056d3;
}

.product-tab-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

.product-tab-grid__item {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 1.5rem;
}

@media (width >= 540px) {
  .product-tab-grid__item {
    width: 50%;
  }
}

@media (width >= 960px) {
  .product-tab-grid__item {
    width: 25%;
  }
}

/* features 产品卡片：固定图片区域，保证同行尺寸一致 */
.product-tab-grid__media {
  height: 160px;
}

.product-tab-grid__media--fit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-tab-grid__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---- 首页产品三大组卡片 + 精选网格 ---- */
.product-home-groups {
  opacity: 0;
  transform: translateY(16px);
}

.product-home-groups.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.product-home-group-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-stroke, #dfe4ea);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 6%);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.dark .product-home-group-card {
  border-color: var(--color-dark-3, #374151);
  background: var(--color-dark-2, #1f2937);
}

.product-home-group-card:hover {
  border-color: color-mix(in oklab, var(--color-primary, #3056d3) 35%, var(--color-stroke, #dfe4ea));
  box-shadow: 0 10px 24px rgb(48 86 211 / 10%);
}

.product-home-group-card.is-active {
  border-color: var(--color-primary, #3056d3);
  box-shadow: 0 12px 28px rgb(48 86 211 / 14%);
}

.product-home-group-card.is-active::after {
  content: none;
}

.product-home-group-card__media {
  display: flex;
  flex: 0 0 88px;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 0.875rem;
  background: var(--color-gray-1, #f9fafb);
  overflow: hidden;
}

.dark .product-home-group-card__media {
  background: var(--color-dark-3, #374151);
}

.product-home-group-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-home-group-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.product-home-group-card__title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark, #111928);
}

.dark .product-home-group-card__title {
  color: #fff;
}

.product-home-group-card.is-active .product-home-group-card__title {
  color: var(--color-primary, #3056d3);
}

.product-home-group-card__meta {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary, #3056d3);
}

.product-home-group-card__summary {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-body-color, #637381);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dark .product-home-group-card__summary {
  color: var(--color-dark-6, #9ca3af);
}

.product-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (width >= 768px) {
  .product-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (width >= 1024px) {
  .product-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-home-grid__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-stroke, #dfe4ea);
  border-radius: 1rem;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.dark .product-home-grid__item {
  border-color: var(--color-dark-3, #374151);
  background: var(--color-dark-2, #1f2937);
}

.product-home-grid__item:hover {
  border-color: var(--color-primary, #3056d3);
  box-shadow: 0 12px 28px rgb(48 86 211 / 12%);
  transform: translateY(-2px);
}

.product-home-grid__item:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.product-home-grid__item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-home-grid__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  padding: 1rem;
  background: var(--color-gray-1, #f9fafb);
}

.dark .product-home-grid__media {
  background: var(--color-dark-3, #374151);
}

.product-home-grid__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-home-grid__item:hover .product-home-grid__photo {
  transform: scale(1.05);
}

.product-home-grid__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
}

.product-home-grid__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-dark, #111928);
  text-align: center;
}

.dark .product-home-grid__title {
  color: #fff;
}

.product-home-grid__item:hover .product-home-grid__title {
  color: var(--color-primary, #3056d3);
}

.product-home-grid__summary {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-body-color, #637381);
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

