/* Products 试点图片反馈：独立于 GSAP 入场和卡片原有上浮。 */
/* Product filters show all groups or one group in place. */
.ff-site main.products-hero #product-browser .product-group[hidden] {
  display: none;
}
.ff-site main.products-hero #product-browser.is-filtered .product-group {
  margin-top: 0;
}
.ff-site main.products-hero #product-browser [data-product-filters] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-2);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: var(--ds-space-8);
}
.ff-site main.products-hero #product-browser [data-product-filters] > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-navy);
  background: var(--ds-paper);
  box-shadow: none;
  font: 600 var(--ds-text-sm)/1.5 var(--ds-font);
  text-align: center;
  text-decoration: none;
  transition: color var(--ff-ease), background-color var(--ff-ease), border-color var(--ff-ease);
}
.ff-site main.products-hero #product-browser [data-product-filters] > a:hover {
  border-color: var(--ds-navy);
  background: var(--ds-mist);
}
.ff-site main.products-hero #product-browser [data-product-filters] > a[aria-pressed="true"],
.ff-site main.products-hero #product-browser [data-product-filters] > a[aria-pressed="true"]:hover {
  border-color: var(--ds-navy);
  background: var(--ds-navy);
  color: var(--ds-paper);
}
.ff-site main.products-hero #product-browser [data-product-filters] > a:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) {
  .ff-site main.products-hero #product-browser [data-product-filters] {
    grid-template-columns: minmax(72px, .45fr) repeat(4, minmax(0, 1fr));
  }
  .ff-site main.products-hero #product-browser [data-product-filters] > a:first-child {
    grid-column: auto;
  }
}
.ff-site main.products-hero .world-card__visual,
.ff-site main.products-hero .product-card__image,
.ff-site main.products-hero .image-story__media,
.ff-site main.products-hero .visual-band__item,
.ff-site main.products-hero .transition-band__figure,
.ff-site main.pf-page .pf-product-image,
.ff-site main.pf-page .pf-editorial-band,
.ff-site main.pf-page .pf-manufacturing-grid figure {
  overflow: hidden;
}

.ff-site main.products-hero .world-card__visual img,
.ff-site main.products-hero .product-card__image img,
.ff-site main.products-hero .image-story__media img,
.ff-site main.products-hero .visual-band__item img,
.ff-site main.products-hero .transition-band__figure img,
.ff-site main.pf-page .pf-editorial-band img,
.ff-site main.pf-page .pf-manufacturing-grid figure img {
  scale: 1;
  transition: scale 400ms cubic-bezier(.22, 1, .36, 1);
}

.ff-site main.pf-page .pf-product-image img {
  scale: 1;
  transition: scale 400ms cubic-bezier(.22, 1, .36, 1);
}

/* 有实际链接的卡片：外层上浮与图片缩放同步；键盘聚焦同样给出反馈。 */
.ff-site main.products-hero .world-card,
.ff-site main.products-hero .product-card,
.ff-site main.products-hero .direction-grid .ff-card,
.ff-site main.pf-page .pf-decision-grid article,
.ff-site main.pf-page .pf-product-card,
.ff-site main.pf-page .pf-route-grid article {
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 360ms cubic-bezier(.22, 1, .36, 1),
    border-color 360ms cubic-bezier(.22, 1, .36, 1),
    background-color 360ms cubic-bezier(.22, 1, .36, 1);
}

/* 无整卡操作的说明卡只改变表面，不使用 pointer 或整卡焦点。 */
.ff-site main.products-hero .customization-grid .ff-card,
.ff-site main.pf-page .pf-technical-grid article,
.ff-site main.pf-page .pf-scent-grid article,
.ff-site main.pf-page .pf-development-options article {
  transition: box-shadow 360ms cubic-bezier(.22, 1, .36, 1),
    border-color 360ms cubic-bezier(.22, 1, .36, 1),
    background-color 360ms cubic-bezier(.22, 1, .36, 1);
}

.ff-site main.products-hero .image-story__media,
.ff-site main.products-hero .visual-band__item,
.ff-site main.products-hero .transition-band__figure,
.ff-site main.pf-page .pf-editorial-band,
.ff-site main.pf-page .pf-manufacturing-grid figure {
  transition: box-shadow 360ms cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .ff-site main.products-hero .world-card:hover,
.ff-site main.products-hero .product-card:hover,
.ff-site main.products-hero .direction-grid .ff-card:hover,
.ff-site main.pf-page .pf-decision-grid article:hover,
.ff-site main.pf-page .pf-route-grid article:hover {
    border-color: #85a7ba;
    box-shadow: 0 15px 30px rgba(16, 47, 66, .16), inset 0 0 0 1px rgba(97, 146, 169, .12);
  }
  .ff-site main.pf-page .pf-product-card:hover {
    border-color: #85a7ba;
    box-shadow: var(--ds-shadow-card);
  }

  .ff-site main.products-hero :is(.world-card, .product-card, .direction-grid .ff-card):hover,
  .ff-site main.pf-page :is(.pf-decision-grid article, .pf-product-card,
    .pf-route-grid article:has(a[href])):hover { transform: translateY(-3px); }

  .ff-site main.pf-page .pf-decision-grid article:hover { border-top-color: #efbe80; }
  .ff-site main.pf-page .pf-route-grid article:hover {
    background-color: #254c61;
    border-color: #9fc2d2;
    box-shadow: 0 14px 30px rgba(3, 19, 30, .23);
  }

  .ff-site main.products-hero .customization-grid .ff-card:hover,
  .ff-site main.pf-page .pf-technical-grid article:hover,
  .ff-site main.pf-page .pf-scent-grid article:hover,
  .ff-site main.pf-page .pf-development-options article:hover {
    border-color: #85a7ba;
    box-shadow: 0 12px 26px rgba(16, 47, 66, .14);
  }

  .ff-site main.pf-page .pf-development-options article:hover {
    border-top-color: #102f42;
  }

  .ff-site main.products-hero .image-story__media:hover,
  .ff-site main.products-hero .visual-band__item:hover,
  .ff-site main.products-hero .transition-band__figure:hover,
  .ff-site main.pf-page .pf-editorial-band:hover,
  .ff-site main.pf-page .pf-manufacturing-grid figure:hover {
    box-shadow: 0 14px 28px rgba(16, 47, 66, .15);
  }
}

.ff-site main.products-hero .world-card:focus-within,
.ff-site main.products-hero .product-card:focus-within,
.ff-site main.products-hero .direction-grid .ff-card:focus-within,
.ff-site main.pf-page .pf-decision-grid article:focus-within,
.ff-site main.pf-page .pf-route-grid article:focus-within {
  border-color: #85a7ba;
  box-shadow: 0 15px 30px rgba(16, 47, 66, .16), inset 0 0 0 1px rgba(97, 146, 169, .12);
}

.ff-site main.pf-page .pf-product-card:focus-within {
  border-color: #85a7ba;
  box-shadow: var(--ds-shadow-card);
}
.ff-site main.products-hero :is(.world-card, .product-card, .direction-grid .ff-card):focus-within,
.ff-site main.pf-page :is(.pf-decision-grid article, .pf-product-card,
  .pf-route-grid article:has(a[href])):focus-within { transform: translateY(-3px); }
.ff-site main.pf-page .pf-decision-grid article:focus-within { border-top-color: #efbe80; }
.ff-site main.pf-page .pf-route-grid article:focus-within {
  background-color: #254c61;
  border-color: #9fc2d2;
  box-shadow: 0 14px 30px rgba(3, 19, 30, .23);
}

@media (hover: hover) and (pointer: fine) {
  .ff-site main.products-hero .world-card:hover .world-card__visual img,
  .ff-site main.products-hero .product-card:hover .product-card__image img {
    scale: 1.04;
  }

  .ff-site main.products-hero .image-story__media:hover img,
  .ff-site main.products-hero .visual-band__item:hover img,
  .ff-site main.products-hero .transition-band__figure:hover img,
  .ff-site main.pf-page .pf-editorial-band:hover img,
  .ff-site main.pf-page .pf-manufacturing-grid figure:hover img {
    scale: 1.03;
  }

  .ff-site main.pf-page .pf-product-card:hover .pf-product-image img {
    scale: 1.04;
  }
}

.ff-site main.products-hero .world-card:focus-within .world-card__visual img,
.ff-site main.products-hero .product-card:focus-within .product-card__image img {
  scale: 1.04;
}
.ff-site main.pf-page .pf-product-card:focus-within .pf-product-image img {
  scale: 1.04;
}

@media (prefers-reduced-motion: reduce) {
  .ff-site main.products-hero .world-card,
  .ff-site main.products-hero .product-card,
  .ff-site main.products-hero .direction-grid .ff-card,
  .ff-site main.products-hero .customization-grid .ff-card,
  .ff-site main.products-hero .image-story__media,
  .ff-site main.products-hero .visual-band__item,
  .ff-site main.products-hero .transition-band__figure,
  .ff-site main.pf-page .pf-decision-grid article,
  .ff-site main.pf-page .pf-product-card,
  .ff-site main.pf-page .pf-route-grid article,
  .ff-site main.pf-page .pf-technical-grid article,
  .ff-site main.pf-page .pf-scent-grid article,
  .ff-site main.pf-page .pf-development-options article,
  .ff-site main.pf-page .pf-editorial-band,
  .ff-site main.pf-page .pf-manufacturing-grid figure {
    transition: none;
  }

  .ff-site main.products-hero .world-card:hover,
  .ff-site main.products-hero .product-card:hover,
  .ff-site main.products-hero .direction-grid .ff-card:hover,
  .ff-site main.products-hero .world-card:focus-within,
  .ff-site main.products-hero .product-card:focus-within,
  .ff-site main.products-hero .direction-grid .ff-card:focus-within,
  .ff-site main.pf-page .pf-decision-grid article:hover,
  .ff-site main.pf-page .pf-product-card:hover,
  .ff-site main.pf-page .pf-route-grid article:hover,
  .ff-site main.pf-page .pf-decision-grid article:focus-within,
  .ff-site main.pf-page .pf-product-card:focus-within,
  .ff-site main.pf-page .pf-route-grid article:focus-within {
    transform: none !important;
  }

  .ff-site main.products-hero .world-card__visual img,
  .ff-site main.products-hero .product-card__image img,
  .ff-site main.products-hero .image-story__media img,
  .ff-site main.products-hero .visual-band__item img,
  .ff-site main.products-hero .transition-band__figure img,
  .ff-site main.pf-page .pf-product-image img,
  .ff-site main.pf-page .pf-editorial-band img,
  .ff-site main.pf-page .pf-manufacturing-grid figure img {
    transition: none;
  }

  .ff-site main.products-hero .world-card:hover .world-card__visual img,
  .ff-site main.products-hero .product-card:hover .product-card__image img,
  .ff-site main.products-hero .world-card:focus-within .world-card__visual img,
  .ff-site main.products-hero .product-card:focus-within .product-card__image img,
  .ff-site main.products-hero .image-story__media:hover img,
  .ff-site main.products-hero .visual-band__item:hover img,
  .ff-site main.products-hero .transition-band__figure:hover img,
  .ff-site main.pf-page .pf-editorial-band:hover img,
  .ff-site main.pf-page .pf-manufacturing-grid figure:hover img {
    scale: 1;
  }

  .ff-site main.pf-page .pf-product-card:hover .pf-product-image img,
  .ff-site main.pf-page .pf-product-card:focus-within .pf-product-image img {
    scale: 1;
  }
}

/* 六个类别页：卡片表面与图片反馈只作用于本轮页面。 */
.ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
  :is(.hc-product-photo, .bb-family-lead, .hf-product-image, .fl-product-image,
    .cr-product-media, .hc-technical-grid figure, .hc-test-head figure,
    .hc-proof-layout figure, .bb-manufacturing figure, .fl-proof-grid figure,
    .cr-manufacture-intro figure, .cr-proof-grid figure) {
  overflow: hidden;
}

.ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
  :is(.hc-product-photo, .bb-family-lead, .hf-product-image, .fl-product-image,
    .cr-product-media, .hc-technical-grid figure, .hc-test-head figure,
    .hc-proof-layout figure, .bb-manufacturing figure, .fl-proof-grid figure,
    .cr-manufacture-intro figure, .cr-proof-grid figure) img {
  scale: 1;
  transition: scale 400ms cubic-bezier(.22, 1, .36, 1);
}

.ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
  :is(.hc-buyer, .hc-product-card, .hc-scent-card, .hc-route-grid > article,
    .hc-technical-columns > article, .hc-insight-grid > article, .hc-test-grid > article,
    .bb-buyer-grid > article, .bb-product, .bb-routes > article, .bb-tech-grid > article,
    .bb-scent-grid > article, .bb-dev > div:last-child > article, .bb-test-grid > article,
    .fr-problem, .fr-choice, .fr-product, .fr-route, .fr-claim-items > article,
    .fr-gate-grid > article, .fr-zone, .fr-scent, .fr-development-options > article,
    .fr-testing-grid > article, .fr-trust-grid > article,
    .hf-decision-grid > article, .hf-product-card, .hf-system-grid > article,
    .hf-tech-grid > article, .hf-routes > article, .hf-tests > article,
    .hf-proof-grid > article,
    .fl-decision-card, .fl-product-card, .fl-route, .fl-technical-list > article,
    .fl-scope-grid > article, .fl-scent-grid > article, .fl-development-options > article,
    .cr-decision, .cr-product, .cr-route-grid > article, .cr-tech-list > article,
    .cr-scope-cards > article, .cr-two-notes > article, .cr-scent-grid > article,
    .cr-dev-rows > article) {
  transition: border-color 320ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 320ms cubic-bezier(.22, 1, .36, 1),
    background-color 320ms cubic-bezier(.22, 1, .36, 1),
    transform 320ms cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    :is(.hc-buyer, .hc-scent-card, .hc-route-grid > article,
      .hc-technical-columns > article, .hc-insight-grid > article, .hc-test-grid > article,
      .bb-buyer-grid > article, .bb-routes > article, .bb-tech-grid > article,
      .bb-scent-grid > article, .bb-dev > div:last-child > article, .bb-test-grid > article,
      .fr-problem, .fr-choice, .fr-route, .fr-claim-items > article,
      .fr-gate-grid > article, .fr-zone, .fr-scent, .fr-development-options > article,
      .fr-testing-grid > article, .fr-trust-grid > article,
      .hf-decision-grid > article, .hf-product-card, .hf-system-grid > article,
      .hf-tech-grid > article, .hf-routes > article, .hf-tests > article,
      .hf-proof-grid > article,
      .fl-decision-card, .fl-product-card, .fl-route, .fl-technical-list > article,
      .fl-scope-grid > article, .fl-scent-grid > article, .fl-development-options > article,
      .cr-decision, .cr-product, .cr-route-grid > article, .cr-tech-list > article,
      .cr-scope-cards > article, .cr-two-notes > article, .cr-scent-grid > article,
      .cr-dev-rows > article):hover {
    border-color: #85a7ba;
    box-shadow: 0 15px 30px rgba(16, 47, 66, .16), inset 0 0 0 1px rgba(97, 146, 169, .12);
  }
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness) :is(.hc-product-card, .bb-product, .fr-product):hover {
    border-color: #85a7ba;
    box-shadow: var(--ds-shadow-card);
  }

  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    :is(.hc-buyer, .hc-product-card, .bb-buyer-grid > article, .bb-product,
      .fr-problem, .fr-product, .hf-decision-grid > article, .hf-product-card,
      .fl-decision-card, .fl-product-card, .cr-decision, .cr-product):hover:has(a[href]) {
    transform: translateY(-3px);
  }

  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    .hf-product-card:hover img,
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    :is(.hc-technical-grid figure, .hc-test-head figure, .hc-proof-layout figure,
      .bb-family-lead, .bb-manufacturing figure, .fl-proof-grid figure,
      .cr-manufacture-intro figure, .cr-proof-grid figure):hover img {
    scale: 1.04;
  }
}

.ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
  :is(.hc-buyer, .bb-buyer-grid > article, .fr-problem, .hf-decision-grid > article, .hf-product-card,
    .fl-decision-card, .fl-product-card, .cr-decision, .cr-product):focus-within {
  transform: translateY(-3px);
  border-color: #85a7ba;
  box-shadow: 0 15px 30px rgba(16, 47, 66, .16), inset 0 0 0 1px rgba(97, 146, 169, .12);
}

.ff-site main:is(.ff-hair, .bb-page, .ff-freshness) :is(.hc-product-card, .bb-product, .fr-product):focus-within {
  transform: translateY(-3px);
  border-color: #85a7ba;
  box-shadow: var(--ds-shadow-card);
}

/* 暗色区需要可见的表面变化；说明卡仍保持普通光标。 */
@media (hover: hover) and (pointer: fine) {
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    :is(.hc-technical, .bb-dark, .fr-system, .hf-system, .fl-system, .cr-system)
    article:hover {
    background-color: #254c61;
    border-color: #9fc2d2;
    box-shadow: 0 14px 30px rgba(3, 19, 30, .23);
  }
}

.ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
  :is(.hc-technical, .bb-dark, .fr-system, .hf-system, .fl-system, .cr-system)
  article:focus-within {
  background-color: #254c61;
  border-color: #9fc2d2;
  box-shadow: 0 14px 30px rgba(3, 19, 30, .23);
}

/* 展示图与外层容器一起响应，尤其是沐浴页编辑图。 */
.ff-site main:is(.ff-hair, .bb-page, .ff-fabric, .ff-car)
  :is(.hc-technical-grid figure, .hc-test-head figure, .hc-proof-layout figure,
    .bb-family-lead, .bb-manufacturing figure, .fl-proof-grid figure,
    .cr-manufacture-intro figure, .cr-proof-grid figure) {
  transition: border-color 320ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 320ms cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .ff-site main:is(.ff-hair, .bb-page, .ff-fabric, .ff-car)
    :is(.hc-technical-grid figure, .hc-test-head figure, .hc-proof-layout figure,
      .bb-family-lead, .bb-manufacturing figure, .fl-proof-grid figure,
      .cr-manufacture-intro figure, .cr-proof-grid figure):hover {
    border-color: #95b4c4;
    box-shadow: 0 14px 28px rgba(16, 47, 66, .15);
  }
}

.ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
  section:not(#buyer-questions):not(:last-child) article:has(a[href]):focus-within {
  border-color: #85a7ba;
  box-shadow: 0 15px 30px rgba(16, 47, 66, .16), inset 0 0 0 1px rgba(97, 146, 169, .12);
}

.ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
  :is(.hc-product-card, .hf-product-card, .fl-product-card, .cr-product):focus-within img {
  scale: 1.04;
}

@media (prefers-reduced-motion: reduce) {
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    :is(article, figure, img, .bb-family-lead) { transition: none !important; }
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    :is(article, figure):hover img,
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    article:focus-within img { scale: 1 !important; }
  .ff-site main:is(.ff-hair, .bb-page, .ff-freshness, .hf-home, .ff-fabric, .ff-car)
    article:is(:hover, :focus-within) { transform: none !important; }
  .ff-site main:is(.ff-hair, .ff-fabric, .ff-car)
    :is(.hc-product-card, .fl-product-card, .cr-product):hover img { transform: none !important; }
}

/* Products Hub V2.1: approved Hero and category composition. */
body.laiyue-page-products.ff-site main.products-hero :is(section.products-hero,#product-worlds) > .ff-shell {
  width: min(calc(100% - clamp(20px, 4vw, 48px) * 2), 1240px);
  margin-inline: auto;
}
body.laiyue-page-products.ff-site main.products-hero section.products-hero .products-hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--ff-gap);
  margin: 0;
}
body.laiyue-page-products.ff-site main.products-hero section.products-hero .products-hero__grid > * {
  width: 100%;
  max-width: none;
  padding-inline: 0;
  margin: 0;
  min-width: 0;
}
body.laiyue-page-products.ff-site main.products-hero section.products-hero h1 {
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.12;
}
body.laiyue-page-products.ff-site main.products-hero section.products-hero .products-hero__visual {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}
body.laiyue-page-products.ff-site main.products-hero section.products-hero .products-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds {
  background: var(--ff-paper);
  padding-block: var(--ff-section);
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ff-gap);
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-grid > article {
  grid-column: auto;
  min-width: 0;
  box-shadow: var(--ds-shadow-card);
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-card__visual {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-card__image-link:focus-visible { outline-offset: -4px; }
body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds .ff-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}
body.laiyue-page-products.ff-site main.products-hero #product-worlds :is(.ff-card__title, .ff-card__description) { margin: 0; }
@media (max-width: 1100px) {
  body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.laiyue-page-products.ff-site main.products-hero section.products-hero .products-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.laiyue-page-products.ff-site main.products-hero #product-worlds .world-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Products Hub V2.1: one catalogue track, equal cards and existing design tokens. */
body.laiyue-page-products.ff-site #product-browser[data-product-explorer] {
  padding-block: var(--ff-section);
  background: var(--ff-soft);
}
body.laiyue-page-products.ff-site #product-browser[data-product-explorer] > .ff-shell {
  width: min(calc(100% - clamp(20px, 4vw, 48px) * 2), 1240px);
  margin-inline: auto;
}
body.laiyue-page-products.ff-site #product-browser .explorer-heading {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  margin-bottom: var(--ds-space-6);
}
body.laiyue-page-products.ff-site #product-browser .explorer-tab-short { display: none; }
body.laiyue-page-products.ff-site #product-browser .explorer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-6);
}
body.laiyue-page-products.ff-site #product-browser .explorer-tabs a {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 10px 16px;
  font-size: var(--ds-text-sm);
  line-height: 1.5;
}
body.laiyue-page-products.ff-site #product-browser .explorer-tabs a.is-active {
  background: var(--ds-navy);
  color: white;
  border-color: var(--ds-navy);
}
body.laiyue-page-products.ff-site #product-browser .explorer-carousel { position: relative; }
body.laiyue-page-products.ff-site #product-browser .explorer-track {
  --explorer-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--explorer-columns), minmax(0, 1fr));
  gap: var(--ff-gap);
  align-items: stretch;
}
body.laiyue-page-products.ff-site #product-browser.is-explorer-enhanced .explorer-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--explorer-columns) - 1) * var(--ff-gap)) / var(--explorer-columns));
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  padding-block: 2px var(--ds-space-3);
}
body.laiyue-page-products.ff-site #product-browser .explorer-track.is-marquee:not(:focus-within) {
  mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
body.laiyue-page-products.ff-site #product-browser.is-explorer-enhanced .explorer-track::-webkit-scrollbar { display: none; }
body.laiyue-page-products.ff-site #product-browser .explorer-track > article {
  min-width: 0;
  width: 100%;
  margin: 0;
  position: relative;
  box-shadow: var(--ds-shadow-card);
}
body.laiyue-page-products.ff-site #product-browser .explorer-track .ff-media {
  aspect-ratio: 3 / 4;
  min-height: 0;
  height: auto;
  background: var(--ff-paper);
}
body.laiyue-page-products.ff-site #product-browser .explorer-track .ff-media a {
  display: block;
  width: 100%;
  height: 100%;
}
body.laiyue-page-products.ff-site #product-browser .explorer-track .ff-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body.laiyue-page-products.ff-site #product-browser .explorer-track .ff-card__title {
  margin: 0;
  font-size: clamp(var(--ds-text-base), 1.25vw, var(--ds-text-lg));
  line-height: 1.4;
}
body.laiyue-page-products.ff-site #product-browser .explorer-track .ff-card__body {
  min-height: 0;
  padding: var(--ds-space-4);
}
body.laiyue-page-products.ff-site #product-browser [hidden] { display: none !important; }
body.laiyue-page-products.ff-site #product-browser .explorer-anchor { position: absolute; top: 0; }
body.laiyue-page-products.ff-site #product-browser .explorer-empty { margin-block: var(--ds-space-4) 0; }
@media (max-width: 1100px) {
  body.laiyue-page-products.ff-site #product-browser .explorer-track { --explorer-columns: 2; }
}
@media (max-width: 767px) {
  body.laiyue-page-products.ff-site #product-browser .explorer-heading { margin-bottom: var(--ds-space-4); }
  body.laiyue-page-products.ff-site #product-browser .explorer-tabs { margin-bottom: var(--ds-space-4); }
  body.laiyue-page-products.ff-site #product-browser .explorer-tabs a { padding: 8px 12px; }
  body.laiyue-page-products.ff-site #product-browser .explorer-tab-full { display: none; }
  body.laiyue-page-products.ff-site #product-browser .explorer-tab-short { display: inline; }
  body.laiyue-page-products.ff-site #product-browser .explorer-track { --ff-gap: var(--ds-space-3); }
  body.laiyue-page-products.ff-site #product-browser .explorer-track .ff-card__title {
    font-size: var(--ds-text-base);
    line-height: 1.4;
  }
  body.laiyue-page-products.ff-site #product-browser .explorer-track .ff-card__body { padding: var(--ds-space-3); }
  body.laiyue-page-products.ff-site #product-browser .explorer-track.is-marquee:not(:focus-within) {
    mask-image: linear-gradient(to right, transparent, #000 6px, #000 calc(100% - 6px), transparent);
  }
}

/* Products Hub V2.1: approved buyer conversation and collection diagram. */
body.laiyue-page-products.ff-site main.products-hero #starting-point { background: var(--ff-paper); }
body.laiyue-page-products.ff-site main.products-hero #starting-point > .ff-shell { width: min(calc(100% - clamp(20px, 4vw, 48px) * 2), 1240px); margin-inline: auto; }
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-dialogue {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:start;gap:var(--ff-gap);padding-block:var(--ds-space-5);border-top:1px solid var(--ds-line)}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-dialogue h3 {margin:0;font-size:var(--ds-text-lg);line-height:1.45}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-dialogue p {margin:0;color:var(--ff-muted)}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-collection {margin-top:var(--ds-space-8);padding:clamp(20px,3vw,40px);border-radius:var(--ds-radius-card);color:white}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-collection h3 {margin:0 0 var(--ds-space-4);font-size:clamp(1.35rem,2vw,1.85rem);color:white}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-route {display:grid;grid-template-columns:140px 30px minmax(0,1fr);align-items:center;gap:12px;padding-block:16px;border-top:1px solid rgba(255,255,255,.2)}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-origin {border-right:1px solid rgba(255,255,255,.2);padding-right:12px}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-expansion {display:flex;justify-content:space-evenly;gap:12px;flex-wrap:wrap}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-node {display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:flex-start;gap:8px;min-width:80px;max-width:140px;flex:1;font-size:14px;line-height:1.4;color:inherit}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-origin .selection-node {font-weight:600;color:white}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-node svg {height:76px;width:54px;display:block;flex:none}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-origin svg {height:90px;width:62px}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-arrow {text-align:center;font-size:24px;color:white}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-technical {margin:12px 0 0;color:rgba(255,255,255,.82);font-size:var(--ds-text-sm);max-width:100ch}
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-discuss {margin-top:var(--ds-space-6)}
@media (max-width: 767px) {
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-dialogue { grid-template-columns: 1fr; gap: var(--ds-space-3); }
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-route { grid-template-columns: 1fr; gap: var(--ds-space-3); }
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-origin { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding: 0 0 var(--ds-space-3); display: flex; justify-content: center; }
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-arrow { display: none; }
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-node { flex: 0 1 44%; max-width: 120px; }
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-origin .selection-node { flex: 1; }
body.laiyue-page-products.ff-site main.products-hero #starting-point .selection-expansion { justify-content: center; }
}

/* Products Hub V2.1: approved development and verification, using homepage editorial composition. */
body.laiyue-page-products.ff-site main.products-hero #development-verification { background: var(--ff-warm); }
body.laiyue-page-products.ff-site main.products-hero #development-verification > .ff-shell { width: min(calc(100% - clamp(20px, 4vw, 48px) * 2), 1240px); margin-inline: auto; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phases { list-style: none; margin: 0; padding: 0; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.45fr); gap: clamp(28px,5vw,72px); align-items: center; padding-block: clamp(24px,3vw,40px); border-top: 1px solid var(--ff-line); margin-block: 0; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase:nth-child(even) { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase:nth-child(even) > figure { grid-column: 2; grid-row: 1; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase:nth-child(even) > .manufacturing-phase__body { grid-column: 1; grid-row: 1; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase > figure { aspect-ratio: 16 / 10; max-height: 330px; min-height: 0; margin: 0; position: relative; min-width: 0; border-radius: var(--ds-radius-card); overflow: hidden; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase figure img { object-fit: cover; width: 100%; height: 100%; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase__body { min-width: 0; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase__body > p { margin-top: var(--ds-space-3); max-width: 56ch; }
body.laiyue-page-products.ff-site main.products-hero #development-verification .development-proof-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-2); }
@media (max-width: 767px) {
  body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase,
  body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase:nth-child(even) { grid-template-columns: minmax(0,1fr); gap: var(--ds-space-6); }
  body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase:nth-child(even) > figure,
  body.laiyue-page-products.ff-site main.products-hero #development-verification .manufacturing-phase:nth-child(even) > .manufacturing-phase__body { grid-column: auto; grid-row: auto; }
}


/* Family catalogue V2. Reuse the Products Hub card markup and site tokens. */
body.ff-site .ff-family-catalog .family-catalog__filters {
  display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin-bottom: var(--ds-space-4);
}
body.ff-site .ff-family-catalog [hidden] { display: none !important; }
body.ff-site .ff-family-catalog .family-catalog__filters button {
  min-height: 42px; padding: 9px 16px; background: var(--ff-paper); color: var(--ff-ink);
  border: 1px solid var(--ff-line); border-radius: var(--ds-radius-control);
  font-size: var(--ds-text-sm); font-weight: 500; cursor: pointer;
}
body.ff-site .ff-family-catalog .family-catalog__filters button.is-active {
  background: var(--ff-brand); border-color: var(--ff-brand); color: var(--ff-paper);
}
body.ff-site .ff-family-catalog .family-catalog__count { margin: 0 0 var(--ds-space-4); font-size: var(--ds-text-sm); }
body.ff-site .ff-family-catalog .family-catalog__grid {
  display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: var(--ds-space-6);
}
body.ff-site .ff-family-catalog .family-catalog__grid > .product-card {
  grid-column: span 2; min-width: 0; overflow: hidden;
}
body.ff-site .ff-family-catalog .product-card__image {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 0; overflow: hidden;
}
body.ff-site .ff-family-catalog .product-card__image a,
body.ff-site .ff-family-catalog .product-card__image img {
  display: block; width: 100%; height: 100%; margin: 0; padding: 0;
}
body.ff-site .ff-family-catalog .product-card__image img { object-fit: cover; object-position: center; }
body.ff-site .ff-family-catalog .product-card .ff-card__body { padding: var(--ds-space-4); }
body.ff-site .ff-family-catalog .product-card .ff-card__title {
  margin: 0; font-size: var(--ds-text-base); line-height: 1.45; overflow-wrap: anywhere;
}
@media (min-width: 1025px) {
  /* Keep the same card width, center incomplete rows, and turn 4+1 into 3+2. */
  body.ff-site .ff-family-catalog .family-catalog__grid > .product-card:nth-child(4n+1 of .product-card:not([hidden])):nth-last-child(1 of .product-card:not([hidden])) { grid-column: 4 / span 2; }
  body.ff-site .ff-family-catalog .family-catalog__grid > .product-card:nth-child(4n+1 of .product-card:not([hidden])):nth-last-child(2 of .product-card:not([hidden])) { grid-column: 3 / span 2; }
  body.ff-site .ff-family-catalog .family-catalog__grid > .product-card:nth-child(4n+1 of .product-card:not([hidden])):nth-last-child(3 of .product-card:not([hidden])) { grid-column: 2 / span 2; }
  body.ff-site .ff-family-catalog .family-catalog__grid > .product-card:nth-child(4n+1 of .product-card:not([hidden])):nth-last-child(5 of .product-card:not([hidden])) { grid-column: 2 / span 2; }
  body.ff-site .ff-family-catalog .family-catalog__grid > .product-card:nth-child(4n of .product-card:not([hidden])):nth-last-child(2 of .product-card:not([hidden])) { grid-column: 3 / span 2; }
  body.ff-site .ff-family-catalog .family-catalog__grid > .product-card:nth-child(4n+5 of .product-card:not([hidden])):nth-last-child(1 of .product-card:not([hidden])) { grid-column: 5 / span 2; }
}
@media (max-width: 1024px) {
  body.ff-site .ff-family-catalog .family-catalog__grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body.ff-site .ff-family-catalog .family-catalog__grid > .product-card:nth-child(odd of .product-card:not([hidden])):nth-last-child(1 of .product-card:not([hidden])) { grid-column: 2 / span 2; }
}
@media (max-width: 767px) {
  body.ff-site .ff-family-catalog .family-catalog__grid { gap: var(--ds-space-3); }
  body.ff-site .ff-family-catalog .product-card .ff-card__body { padding: var(--ds-space-3); }
  body.ff-site .ff-family-catalog .product-card .ff-card__title { font-size: var(--ds-text-sm); }
  body.ff-site .ff-family-catalog .family-catalog__filters button { padding: 8px 12px; }
}
