/* Catalog: list + detail */
.catalog-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 28px 96px;
}

/*
  Product list enter — Apple product-page style:
  soft rise + fade only (no blur/clip — those feel sticky).
*/
.catalog-fan {
  /* Start already fairly bright — long opacity made tiles look dim mid-enter */
  opacity: 0.2;
  transform: translate3d(0, 36px, 0) scale(0.96);
  transform-origin: 50% 100%;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fan-delay, 0ms);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.catalog-fan.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.catalog-fan.is-in.is-fan-settled,
.gallery.catalog-fan.is-in.is-fan-settled,
.product-info.catalog-fan.is-in.is-fan-settled,
.scene-matrix-cell.catalog-fan.is-in.is-fan-settled {
  will-change: auto;
  /* Clear transform so sticky gallery / sibling stacking stay correct */
  transform: none;
}

/* Product media: soft rise without scale (keeps video paints cheap) */
.scene-matrix-cell.catalog-fan,
.gallery.catalog-fan,
.product-info.catalog-fan {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transform-origin: 50% 90%;
}

.scene-matrix-cell.catalog-fan.is-in,
.gallery.catalog-fan.is-in,
.product-info.catalog-fan.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Portrait / landscape — long fade the user can see while scrolling */
.video-group-title.catalog-fan,
.video-card.catalog-fan {
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  transform-origin: 50% 85%;
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fan-delay, 0ms);
  will-change: opacity, transform;
}

.video-group-title.catalog-fan.is-in,
.video-card.catalog-fan.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.video-group-title.catalog-fan.is-in.is-fan-settled,
.video-card.catalog-fan.is-in.is-fan-settled {
  will-change: auto;
}

.scene-matrix-intro.catalog-fan,
.scene-matrix-bridge.catalog-fan,
.breadcrumbs.catalog-fan {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.scene-matrix-intro.catalog-fan.is-in,
.scene-matrix-bridge.catalog-fan.is-in,
.breadcrumbs.catalog-fan.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Soft product enter — top-left → bottom-right expand */
#productRoot[data-soft-enter-pending="1"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

.product-enter-fan {
  opacity: 0;
  transform: translate3d(-72px, -80px, 0) scale(0.78);
  transform-origin: 0% 0%;
  filter: blur(14px);
  clip-path: inset(0 55% 55% 0);
  transition:
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fan-delay, 0ms);
  will-change: transform, opacity, filter, clip-path;
}

.product-enter-fan.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

.product-enter-fan.is-in.is-fan-settled {
  will-change: auto;
  filter: none;
  transform: none;
  clip-path: none;
}



@media (prefers-reduced-motion: reduce) {
  .product-enter-fan,
  .product-enter-fan.is-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

.page-hero.catalog-fan {
  animation: none;
}

/* Tiles: enter uses long spring; hover lift only after settle */
.product-tile.catalog-fan {
  transform-origin: 50% 60%;
}

.product-tile.catalog-fan:not(.is-fan-settled) {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s var(--ease);
  transition-delay: var(--fan-delay, 0ms), var(--fan-delay, 0ms), 0ms;
}

.product-tile.catalog-fan.is-fan-settled:hover,
.product-tile.catalog-fan.is-fan-settled:focus-visible {
  transform: translate3d(0, -3px, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .catalog-fan,
  .catalog-fan.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: rgba(243, 245, 247, 0.82);
  transition: color 0.2s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.crumb-sep {
  opacity: 0.45;
  color: var(--text-muted);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: start;
  margin-bottom: 20px;
  animation: fadeUp 0.6s var(--ease) both;
}

.page-hero-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: none;
}

.series-nav[hidden] {
  display: none !important;
}

.series-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  justify-self: end;
  width: min(600px, 56vw);
  max-width: min(600px, 56vw);
  padding-top: 2px;
}

.series-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}

.series-nav-item {
  min-width: 0;
}

.series-nav-item--track {
  /* marker for track card column */
}

.series-nav-card.dropdown-card {
  min-height: 0;
  height: 100%;
  padding: 10px 10px;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
}

.series-nav-card .dropdown-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.series-nav-card .dropdown-card-icon svg {
  width: 20px;
  height: 20px;
}

.series-nav-card .dropdown-en {
  font-size: 0.78rem;
  white-space: normal;
  line-height: 1.2;
}

.series-nav-card .dropdown-zh {
  font-size: 0.7rem;
  line-height: 1.2;
}

.series-nav-card.dropdown-card.is-current {
  background: var(--bg-hover);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 0 12px 2px rgba(var(--accent-rgb), 0.35),
    0 0 28px 6px rgba(var(--accent-rgb), 0.18);
}

/* Tertiary under the card row, aligned to the Track card (first column) */
.series-nav > .sub-chips-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  visibility: hidden;
  pointer-events: none;
}

.series-nav > .sub-chips-track.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Commercial: 3 cards in one row */
.series-nav--commercial {
  width: min(480px, 52vw);
  max-width: min(480px, 52vw);
}

.series-nav--commercial .series-nav-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

  .series-nav,
  .series-nav--commercial {
    justify-self: stretch;
    width: auto;
    max-width: none;
  }

  .series-nav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .series-nav--commercial .series-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .series-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .series-nav--commercial .series-nav-grid {
    grid-template-columns: 1fr;
  }
}

.page-title-en,
.page-title-zh {
  display: block;
}

.page-hero h1,
#productName {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
}

.page-title-en {
  font-size: clamp(1.15rem, 2.8vw, 2.6rem);
  white-space: nowrap;
}

.page-title-zh {
  margin-top: 8px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.page-blurb,
.product-tagline {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Soft sub-chip switch: wipe OUT L→R, then wipe IN L→R (strictly sequential).
   Default transition is OFF — only out/in phases animate, so enter snap never fights. */
.category-copy {
  clip-path: inset(0 0 0 0);
  transition: none;
  will-change: clip-path;
}

.category-copy.is-copy-out {
  /* Old copy: vanish left → right */
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-copy.is-copy-enter {
  /* New copy parked fully hidden (clipped from right), no transition */
  clip-path: inset(0 100% 0 0);
  transition: none !important;
}

.category-copy.is-copy-in {
  /* New copy: reveal left → right */
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .category-copy,
  .category-copy.is-copy-out,
  .category-copy.is-copy-enter,
  .category-copy.is-copy-in {
    clip-path: none !important;
    transition: none !important;
  }
}

.search-query-glow {
  color: var(--accent);
  font-weight: 700;
}

.category-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  min-height: 1.2em;
}

.category-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

/* Tertiary track chips sit under the series cards */
.sub-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-chips-break {
  flex: 0 0 100%;
  height: 0;
  margin: 2px 0;
}

.page-title-static {
  display: inline;
}

.page-title-sep {
  display: inline;
}

.page-title-leaf {
  display: inline-block;
  vertical-align: baseline;
  max-width: 100%;
}

.crumb-tail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumb-tail:empty {
  display: none;
}

.crumb-track-hub {
  display: inline;
}

.sub-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    color 0.25s var(--ease);
}

.sub-chip-en {
  font-size: 0.88rem;
  font-weight: 600;
}

.sub-chip-zh {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
}

html[data-lang="zh"] .sub-chip-zh {
  font-size: 0.88rem;
  font-weight: 600;
  color: inherit;
}

.sub-chip:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
}

.sub-chip.is-current {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 0 12px 2px rgba(var(--accent-rgb), 0.35),
    0 0 28px 6px rgba(var(--accent-rgb), 0.18);
}

.sub-chip.is-current .sub-chip-zh {
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-results {
  position: relative;
  /* min-height set by JS to the tallest series in the soft family */
}

/* Soft-switch exit: fade cards out (must beat catalog-fan / hover rules) */
.product-tile.is-soft-out,
.scene-gallery-item.is-soft-out,
.scene-gallery-head.is-soft-out,
.series-nav-item.is-soft-out {
  opacity: 0 !important;
  transform: translate3d(0, 18px, 0) scale(0.98) !important;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .product-tile.is-soft-out,
  .scene-gallery-item.is-soft-out,
  .scene-gallery-head.is-soft-out,
  .series-nav-item.is-soft-out {
    transition: none !important;
  }
}

.scene-gallery {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.6s var(--ease) both;
}

.scene-gallery-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.scene-gallery-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.scene-gallery-blurb {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.scene-gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scene-gallery-item {
  margin: 0;
  display: grid;
  gap: 8px;
}

.scene-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.scene-gallery-item figcaption {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .scene-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .scene-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.product-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.product-tile:hover,
.product-tile:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-3px);
}

.product-tile-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.gallery-main img,
.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease), opacity 0.25s var(--ease);
}

.gallery-main img.is-media-loading,
.gallery-thumb img.is-media-loading,
.product-tile-media img.is-media-loading,
.related-media img.is-media-loading {
  opacity: 0;
}

.product-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease);
}

.product-tile:hover .product-tile-media img.has-real-media,
.product-tile:focus-visible .product-tile-media img.has-real-media {
  transform: scale(1.04);
}

.product-tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 16px 16px;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 13, 0) 0%,
    rgba(8, 10, 13, 0.55) 28%,
    rgba(8, 10, 13, 0.82) 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transform: translateY(0);
  transition:
    transform 0.45s var(--ease),
    padding 0.45s var(--ease),
    background 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
}

.product-tile:hover .product-tile-body,
.product-tile:focus-visible .product-tile-body {
  transform: translateY(100%);
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.product-tile-sku {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.product-tile-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.product-tile-en {
  display: block;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.product-tile-zh {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-tile-summary {
  margin: 2px 0 0;
  color: rgba(154, 163, 173, 0.95);
  font-size: 0.84rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tile-cta {
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}

.empty-state,
.not-found {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
}

/* Detail */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 48px;
  align-items: start;
  animation: fadeUp 0.6s var(--ease) both;
}

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  z-index: 3;
  isolation: isolate;
}

/* Zoom panel sits over product copy — keep gallery above sibling text */
.gallery.is-zooming {
  z-index: 20;
}

.product-info {
  position: relative;
  z-index: 1;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.gallery-main.is-zoom-on {
  cursor: zoom-out;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: none;
  pointer-events: none;
  user-select: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  min-width: 56px;
  min-height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(18, 21, 10, 0.72);
  font-size: 5.4rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  transition:
    opacity 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.gallery-main:hover .gallery-nav,
.gallery-main:focus-within .gallery-nav,
.gallery-nav:focus-visible {
  opacity: 1;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: transparent;
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.gallery-nav--prev {
  left: 10px;
}

.gallery-nav--next {
  right: 10px;
}

.gallery-nav[hidden] {
  display: none !important;
}

@media (hover: none) {
  .gallery-nav {
    opacity: 0.92;
  }
}

.gallery-zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(var(--accent-rgb), 0.85);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
}

.gallery-zoom-result {
  position: absolute;
  left: calc(100% + 18px);
  top: 0;
  width: min(440px, 38vw);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 0 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}

.gallery.is-zooming .gallery-zoom-lens,
.gallery.is-zooming .gallery-zoom-result {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1100px) {
  .gallery-zoom-lens,
  .gallery-zoom-result {
    display: none !important;
  }

  .gallery-main {
    cursor: default;
  }

  .gallery-main.is-zoom-on {
    cursor: default;
  }

  .gallery.is-zooming .gallery-zoom-lens,
  .gallery.is-zooming .gallery-zoom-result {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

.gallery-thumbs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 96px));
  gap: 10px;
  justify-content: start;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  /* Keep button opaque so page text never shows through */
  opacity: 1;
  transition: border-color 0.2s var(--ease);
  display: grid;
  place-items: center;
}

.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  opacity: 0.72;
  transition: opacity 0.2s var(--ease), transform 0.5s var(--ease);
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.gallery-thumb:hover img,
.gallery-thumb.is-active img {
  opacity: 1;
}

.product-info .product-sku {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-info #productName {
  margin-bottom: 12px;
}

.product-summary {
  margin: 16px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 0 18px rgba(var(--accent-rgb), 0.55),
    0 0 40px rgba(var(--accent-rgb), 0.35);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: none;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.45),
    0 0 18px rgba(var(--accent-rgb), 0.5),
    0 0 40px rgba(var(--accent-rgb), 0.28);
  filter: brightness(1.05);
}

.specs {
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.spec-row dd {
  margin: 0;
  font-weight: 500;
}

.detail-block {
  margin-top: 28px;
}

.detail-block h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.detail-block p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.bom-system {
  margin: 0 0 14px !important;
  font-weight: 600;
  color: var(--text) !important;
}

.bom-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bom-table th,
.bom-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.bom-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.bom-table tr:last-child td {
  border-bottom: 0;
}

.bom-table td:nth-child(2) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.bom-footnote {
  margin-top: 12px !important;
  font-size: 0.86rem;
  line-height: 1.55;
}

.process-blurb {
  margin: 0 !important;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.process-modal {
  position: fixed;
  inset: 0;
  z-index: 1320;
  display: grid;
  place-items: center;
  padding: 24px;
}

.process-modal[hidden] {
  display: none !important;
}

.process-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(6, 8, 12, 0.78);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.process-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 100%);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #12161c;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: 50% 50%;
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.process-modal.is-open .process-modal-backdrop {
  opacity: 1;
}

.process-modal.is-open .process-modal-dialog {
  opacity: 1;
  transform: scale(1);
}

.process-enter-item {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--process-delay, 0ms);
}

.process-modal.is-open .process-enter-item.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .process-modal-backdrop,
  .process-modal-dialog,
  .process-enter-item {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.process-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.process-modal-head-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.process-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.process-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #1a1f27;
  color: var(--text);
  font-size: 2.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.process-modal-close span {
  display: block;
  transform: translateY(-1px);
  font-weight: 300;
}

.process-modal-close:hover,
.process-modal-close:focus-visible {
  background: rgba(var(--accent-rgb), 0.9);
  color: #fff;
}

.process-modal-body {
  padding: 18px 22px 24px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.06);
}

.process-modal-body::-webkit-scrollbar {
  width: 8px;
}

.process-modal-body::-webkit-scrollbar-track {
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.process-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}

.process-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.65);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.process-modal-body::-webkit-scrollbar-corner {
  background: transparent;
}

.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.process-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.process-step p {
  margin: 0 0 12px !important;
  color: var(--text-muted);
  line-height: 1.65;
}

.process-step-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.process-step-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0c10;
  aspect-ratio: 4 / 3;
}

.process-step-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lock page scroll; pad body so layout width stays put when the scrollbar hides */
html:has(body.process-modal-open),
html:has(body.comments-modal-open),
html:has(body.comment-lightbox-open),
html:has(body.video-lightbox-open),
html:has(body.news-lightbox-open) {
  overflow: hidden;
}

body.process-modal-open,
body.comments-modal-open,
body.comment-lightbox-open,
body.video-lightbox-open,
body.news-lightbox-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

.comments-section {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.comments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin-bottom: 22px;
}

.comments-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.comments-count {
  font-family: var(--font-body);
  font-size: 0.92em;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.comments-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: start;
}

.comments-feed {
  flex: 0 1 720px;
  min-width: 0;
  max-width: 720px;
  /* 约等于上方「留言区」三字宽度 */
  padding-left: calc(1.35rem * 3);
}

.comments-aside {
  position: sticky;
  top: calc(var(--header-h, 72px) + 20px);
  z-index: 5;
  flex: 0 0 420px;
  width: 420px;
  max-width: 100%;
  align-self: start;
}

.comment-composer,
.comment-reply-drawer:not(.is-floating) {
  position: relative;
  width: 100%;
}

.comments-list {
  max-width: none;
}

.comment-form {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
  max-width: none;
}

.comment-form--panel {
  padding: 16px 18px 22px;
}

.comment-image-field {
  display: grid;
  gap: 10px;
}

.comment-image-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.comment-image-pick:hover,
.comment-image-pick:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.comment-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-image-preview[hidden] {
  display: none !important;
}

.comment-image-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.comment-image-preview-btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.comment-image-preview-btn img,
.comment-image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.78);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.comment-image-remove:hover,
.comment-image-remove:focus-visible {
  background: rgba(var(--accent-rgb), 0.9);
}

.comment-form-row {
  display: grid;
  gap: 8px;
}

.comment-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--text-dim);
}

.comment-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.comments-empty {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.comments-list,
.comment-replies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.comment-replies {
  margin-top: 14px;
  margin-left: 18px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  gap: 14px;
}

.comment-replies--flat {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.comment-reply-to {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
}

.comment-reply-to strong {
  color: var(--text-muted);
  font-weight: 600;
}

.comment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
}

.comment-lead {
  display: contents;
}

.comment-avatar {
  --comment-avatar-size: calc(0.82rem * 1.35 + 6px + 1.02rem * 1.65);
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  width: var(--comment-avatar-size);
  height: var(--comment-avatar-size);
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: hsl(var(--avatar-hue, 210) 42% 38%);
  color: #fff;
  font-family: var(--font-display);
  font-size: calc(var(--comment-avatar-size) * 0.37);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}

.comment-lead-main {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.comment-rest {
  grid-column: 2;
  display: grid;
  gap: 10px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  line-height: 1.35;
}

.comment-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.comment-time {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.comment-body {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.comment-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-image-btn {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
}

.comment-image-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-like-btn,
.comment-reply-btn {
  justify-self: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-like-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.7;
}

.comment-like-btn.is-liked,
.comment-like-btn.is-liked .comment-like-icon {
  color: var(--accent);
  opacity: 1;
}

.comment-like-btn:hover,
.comment-like-btn:focus-visible,
.comment-reply-btn:hover,
.comment-reply-btn:focus-visible {
  color: var(--accent);
}

.comment-reply-btn:hover,
.comment-reply-btn:focus-visible {
  text-decoration: underline;
}

.comments-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin-top: 22px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.comments-more-btn:hover,
.comments-more-btn:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.comments-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.comments-modal[hidden] {
  display: none !important;
}

.comments-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
}

.comments-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(82vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #14171c;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: translateX(-110px);
}

.comments-modal-dialog.is-shifted {
  transition: transform 0.24s var(--ease);
}

.comments-modal-head {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 52px 16px 20px;
  border-bottom: 1px solid var(--line);
}

.comments-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.comments-modal-count {
  font-family: var(--font-body);
  font-size: 0.92em;
  font-weight: 600;
  color: var(--text-dim);
}

.comments-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.comments-modal-close:hover,
.comments-modal-close:focus-visible {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
}

.comments-modal-body {
  overflow: auto;
  padding: 18px 20px 22px;
}

.comments-list--modal {
  gap: 18px;
}

.comments-modal-empty {
  list-style: none;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.comment-item.is-pinned > .comment-card {
  border-radius: 12px;
  outline: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
  padding: 10px 12px;
}

.comment-side-panel {
  position: relative;
  width: 100%;
  max-height: calc(100vh - var(--header-h, 72px) - 40px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(18, 21, 28, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: auto;
}

.comment-reply-drawer {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.comment-reply-drawer.is-floating {
  position: fixed !important;
  z-index: 1210;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  visibility: hidden;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.comment-reply-drawer.is-floating.is-placed {
  visibility: visible;
}

.comment-side-panel[hidden] {
  display: none !important;
}

.comment-side-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.comment-side-panel-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.comment-reply-drawer-hint {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.comment-reply-drawer-hint strong {
  color: var(--accent);
  font-weight: 700;
}

.comment-reply-drawer-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.comment-reply-drawer-close:hover,
.comment-reply-drawer-close:focus-visible {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
}

.comment-reply-drawer-quote {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.comment-reply-drawer-quote[hidden] {
  display: none !important;
}

.comment-reply-quote-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.comment-reply-quote-card .comment-avatar {
  --comment-avatar-size: 36px;
  flex: 0 0 auto;
  width: var(--comment-avatar-size);
  height: var(--comment-avatar-size);
  font-size: calc(var(--comment-avatar-size) * 0.37);
}

.comment-reply-quote-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.comment-reply-quote-author {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.comment-reply-quote-body {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.comment-lightbox[hidden] {
  display: none !important;
}

.comment-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(6, 8, 12, 0.82);
  cursor: zoom-out;
}

.comment-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(920px, 100%);
  max-height: min(88vh, 100%);
}

.comment-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 100%);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.comment-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #1a1f27;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.comment-lightbox-close:hover,
.comment-lightbox-close:focus-visible {
  background: rgba(var(--accent-rgb), 0.9);
  color: #fff;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1310;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-lightbox[hidden] {
  display: none !important;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(6, 8, 12, 0.86);
  cursor: zoom-out;
}

.video-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(1080px, 100%);
  max-height: min(88vh, 100%);
}

.video-lightbox-stage {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: min(88vh, 100%);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.video-lightbox-stage video,
.video-lightbox-stage iframe {
  display: block;
  width: 100%;
  max-height: min(88vh, 100%);
  border: 0;
  background: #000;
}

.video-lightbox-stage iframe {
  aspect-ratio: 16 / 9;
  min-height: min(56vw, 480px);
}

.video-lightbox-stage video.is-portrait {
  width: auto;
  max-width: 100%;
  height: min(88vh, 100%);
  margin: 0 auto;
}

.video-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #1a1f27;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.video-lightbox-close:hover,
.video-lightbox-close:focus-visible {
  background: rgba(var(--accent-rgb), 0.9);
  color: #fff;
}

.scene-matrix-cell::after,
.video-frame::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 7.5v9l8-4.5-8-4.5z'/%3E%3C/svg%3E")
    center / 16px 16px no-repeat;
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.scene-matrix-cell:hover::after,
.video-card:hover .video-frame::after,
.scene-matrix-cell:focus-visible::after,
.video-card:focus-visible .video-frame::after {
  opacity: 1;
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .comments-layout {
    flex-direction: column;
  }

  .comments-feed {
    max-width: none;
    padding-left: 0;
  }

  .comments-aside {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    order: -1;
  }

  .comment-reply-drawer.is-floating {
    width: min(360px, calc(100vw - 32px));
  }
}

@media (max-width: 560px) {
  .comment-replies {
    margin-left: 8px;
    padding-left: 12px;
  }

  .comment-replies--flat {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .comment-form-actions {
    justify-content: stretch;
  }

  .comment-form-actions .btn {
    flex: 1 1 auto;
  }

  .comment-image-btn {
    width: 80px;
    height: 80px;
  }

  .comments-modal {
    padding: 12px;
  }

  .comments-modal-dialog {
    max-height: 88vh;
    transform: none;
  }
}

.related-section {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

body.is-solo-product .related-section {
  display: none;
}

.related-section h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.related-section .product-grid {
  gap: 20px;
}

.related-item {
  position: relative;
  z-index: 1;
  list-style: none;
}

.related-item:hover,
.related-item:focus-within {
  z-index: 6;
}

.related-card {
  position: relative;
  display: block;
  color: inherit;
}

.related-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.28s var(--ease);
}

.related-card:hover .related-visual,
.related-card:focus-visible .related-visual {
  border-color: rgba(var(--accent-rgb), 0.35);
}

.related-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.related-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8%;
  box-sizing: border-box;
  display: block;
  transition: transform 0.5s var(--ease);
}

.related-card:hover .related-media img.has-real-media,
.related-card:focus-visible .related-media img.has-real-media {
  transform: scale(1.04);
}

.related-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 14px 14px;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 13, 0) 0%,
    rgba(8, 10, 13, 0.55) 28%,
    rgba(8, 10, 13, 0.82) 100%
  );
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.45s var(--ease),
    opacity 0.28s var(--ease);
}

.related-card:hover .related-caption,
.related-card:focus-visible .related-caption {
  transform: translateY(100%);
  opacity: 0;
}

.related-sku {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.related-caption .product-tile-title {
  margin: 0;
}

.related-caption .product-tile-en {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-caption .product-tile-zh {
  font-size: 0.86rem;
}

.related-info {
  position: absolute;
  left: calc(100% + 12px);
  top: 0;
  z-index: 8;
  width: min(280px, 40vw);
  min-height: 100%;
  max-height: none;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #12151a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}

.related-card:hover .related-info,
.related-card:focus-visible .related-info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.related-item:nth-child(3n) .related-info {
  left: auto;
  right: calc(100% + 12px);
}

.related-info-line {
  margin: 0;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.38s var(--ease),
    transform 0.38s var(--ease);
  transition-delay: 0s;
}

.related-item:nth-child(3n) .related-info-line {
  transform: translateX(18px);
}

.related-card:hover .related-info-line,
.related-card:focus-visible .related-info-line {
  opacity: 1;
  transform: translateX(0);
}

.related-card:hover .related-info-line:nth-child(1),
.related-card:focus-visible .related-info-line:nth-child(1) {
  transition-delay: 0.04s;
}
.related-card:hover .related-info-line:nth-child(2),
.related-card:focus-visible .related-info-line:nth-child(2) {
  transition-delay: 0.1s;
}
.related-card:hover .related-info-line:nth-child(3),
.related-card:focus-visible .related-info-line:nth-child(3) {
  transition-delay: 0.16s;
}
.related-card:hover .related-info-line:nth-child(4),
.related-card:focus-visible .related-info-line:nth-child(4) {
  transition-delay: 0.22s;
}
.related-card:hover .related-info-line:nth-child(5),
.related-card:focus-visible .related-info-line:nth-child(5) {
  transition-delay: 0.28s;
}
.related-card:hover .related-info-line:nth-child(6),
.related-card:focus-visible .related-info-line:nth-child(6) {
  transition-delay: 0.34s;
}
.related-card:hover .related-info-line:nth-child(7),
.related-card:focus-visible .related-info-line:nth-child(7) {
  transition-delay: 0.4s;
}
.related-card:hover .related-info-line:nth-child(8),
.related-card:focus-visible .related-info-line:nth-child(8) {
  transition-delay: 0.46s;
}
.related-card:hover .related-info-line:nth-child(9),
.related-card:focus-visible .related-info-line:nth-child(9) {
  transition-delay: 0.52s;
}
.related-card:hover .related-info-line:nth-child(10),
.related-card:focus-visible .related-info-line:nth-child(10) {
  transition-delay: 0.58s;
}

.related-info-sku {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.related-info-name {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.related-info-tagline {
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}

.related-info-summary {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.related-info-spec {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.4;
}

.related-info-spec-key {
  color: var(--text-dim);
}

.related-info-spec-val {
  color: var(--text);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-info-cta {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.scene-story {
  margin: 8px 0 48px;
}

.scene-story[hidden] {
  display: none !important;
}

.video-section {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.video-section h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.video-section-blurb {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Matrix product story — above the 2x2 scene grid */
.scene-matrix-intro {
  max-width: 52rem;
  margin: 0 auto 28px;
  text-align: center;
}

.scene-matrix-intro[hidden] {
  display: none !important;
}

.scene-matrix-intro-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--accent);
}

.scene-matrix-intro-tagline {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 650;
  line-height: 1.4;
  color: var(--text);
}

.scene-matrix-intro-body {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-muted);
}

.scene-matrix-bridge {
  max-width: 40rem;
  margin: 36px auto 0;
  text-align: center;
}

.scene-matrix-bridge[hidden] {
  display: none !important;
}

.scene-matrix-bridge-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.scene-matrix-bridge-line--soft {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-muted);
}

.scene-matrix {
  --matrix-gap: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "tl tl tr tr tr"
    "bl bl bl br br";
  gap: var(--matrix-gap);
  width: 100%;
  aspect-ratio: 16 / 11;
  margin: 0;
}

.scene-matrix[hidden] {
  display: none !important;
}

.scene-matrix-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050607;
  cursor: pointer;
}

.scene-matrix-cell--tl { grid-area: tl; }
.scene-matrix-cell--tr { grid-area: tr; }
.scene-matrix-cell--bl { grid-area: bl; }
.scene-matrix-cell--br { grid-area: br; }

.scene-matrix-cell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}

.scene-matrix-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 13, 0) 0%,
    rgba(8, 10, 13, 0.78) 100%
  );
  pointer-events: none;
}

.scene-matrix-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.scene-matrix-cell--tl .scene-matrix-label {
  top: 0;
  bottom: auto;
  padding: 12px 14px 32px;
  background: linear-gradient(
    0deg,
    rgba(8, 10, 13, 0) 0%,
    rgba(8, 10, 13, 0.78) 100%
  );
}

.video-group + .video-group {
  margin-top: 40px;
}

.video-group-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
}

.video-grid--landscape {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-grid--portrait {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
}

.video-card {
  min-width: 0;
  width: 100%;
  cursor: pointer;
}

.video-card--portrait {
  max-width: none;
  width: 100%;
}

.video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050607;
}

.video-card--landscape .video-frame {
  aspect-ratio: 16 / 9;
}

.video-card--portrait .video-frame {
  aspect-ratio: 9 / 16;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  pointer-events: none;
}

.video-title {
  margin: 12px 4px 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}

.video-title-en {
  display: block;
  font-size: 1rem;
}

.video-title-zh {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-item:nth-child(3n) .related-info {
    left: calc(100% + 12px);
    right: auto;
  }

  .related-item:nth-child(2n) .related-info {
    left: auto;
    right: calc(100% + 12px);
  }

  .related-item:nth-child(2n) .related-info-line {
    transform: translateX(18px);
  }

  .related-item:nth-child(2n) .related-card:hover .related-info-line,
  .related-item:nth-child(2n) .related-card:focus-visible .related-info-line {
    transform: translateX(0);
  }

  .related-item:nth-child(3n) .related-info-line {
    transform: translateX(-18px);
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery {
    position: static;
  }

  .video-grid--portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .scene-matrix {
    --matrix-gap: 8px;
  }

  .scene-matrix-label {
    padding: 18px 8px 8px;
  }

  .scene-matrix-cell--tl .scene-matrix-label {
    padding: 8px 8px 18px;
  }

  .scene-matrix-title {
    font-size: 0.8rem;
  }

  .scene-matrix-caption {
    font-size: 0.68rem;
  }

  .video-grid--landscape,
  .video-grid--portrait {
    grid-template-columns: 1fr;
  }

  .video-card--portrait {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .catalog-main {
    padding: 24px 16px 72px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(72px, 80px));
  }
}

/* 仅桌面悬停时下缩信息栏；触屏保持信息可见 */
@media (hover: none) {
  .product-tile:hover .product-tile-body,
  .product-tile:focus-visible .product-tile-body {
    transform: none;
    padding-top: 28px;
    padding-bottom: 16px;
    background: linear-gradient(
      180deg,
      rgba(8, 10, 13, 0) 0%,
      rgba(8, 10, 13, 0.55) 28%,
      rgba(8, 10, 13, 0.82) 100%
    );
    backdrop-filter: none;
    pointer-events: auto;
  }

  .related-card:hover .related-caption,
  .related-card:focus-visible .related-caption {
    transform: none;
    opacity: 1;
  }

  .related-info {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-tile,
  .product-tile-body,
  .product-tile-media img,
  .related-media img,
  .related-caption,
  .related-info,
  .related-info-line {
    transition: none;
  }

  .related-info-line {
    opacity: 1;
    transform: none;
  }
}

html[data-lang="zh"] .page-title-zh {
  margin-top: 0;
  font-size: clamp(1.15rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

html[data-lang="zh"] .product-tile-zh {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

html[data-lang="zh"] .related-caption .product-tile-zh {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

html[data-lang="zh"] .sub-chip.is-current .sub-chip-zh {
  color: inherit;
}

/* Back to top — list pages */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 21, 26, 0.88);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  box-shadow: none;
  transition:
    opacity 1.5s ease,
    visibility 0s linear 1.5s,
    transform 1.5s ease,
    border-color 1.5s ease,
    border-width 1.5s ease,
    box-shadow 1.5s ease,
    color 1.5s ease,
    background 1.5s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.3s var(--ease),
    visibility 0s,
    transform 0.3s var(--ease),
    border-color 0.25s var(--ease),
    border-width 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-width: 2px;
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent);
  background: rgba(18, 21, 26, 0.96);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 0 12px 2px rgba(var(--accent-rgb), 0.35),
    0 0 28px 6px rgba(var(--accent-rgb), 0.18);
}

.back-to-top.is-ascending {
  border-width: 3px;
  border-color: rgba(var(--accent-rgb), 0.9);
  color: var(--accent);
  background: rgba(18, 21, 26, 0.98);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.35),
    0 0 16px 4px rgba(var(--accent-rgb), 0.7),
    0 0 36px 10px rgba(var(--accent-rgb), 0.4),
    0 0 60px 16px rgba(var(--accent-rgb), 0.22);
}

/* 到达顶部后：光晕与本体一起慢慢暗淡消散 */
.back-to-top.is-fading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  border-width: 1px;
  border-color: rgba(var(--accent-rgb), 0.08);
  color: rgba(var(--accent-rgb), 0.25);
  background: rgba(18, 21, 26, 0.35);
  box-shadow:
    0 0 10px 2px rgba(var(--accent-rgb), 0.12),
    0 0 24px 6px rgba(var(--accent-rgb), 0.06);
  transition:
    opacity 1.5s ease,
    visibility 0s linear 1.5s,
    transform 1.5s ease,
    border-color 1.5s ease,
    border-width 1.5s ease,
    box-shadow 1.5s ease,
    color 1.5s ease,
    background 1.5s ease;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 52px;
    height: 52px;
  }
}

/* Contact — one-viewport B2B inquiry */
body.is-contact {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.is-contact .site-header {
  flex: 0 0 auto;
}

.contact-main {
  max-width: 1280px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(12px, 1.8vh, 20px) clamp(20px, 2.5vw, 28px) clamp(12px, 1.6vh, 18px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.contact-main .page-hero {
  animation: none;
  margin-bottom: 0;
  /* Category heroes are title | series-nav; contact is title + blurb stacked */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  grid-template-columns: none;
}

.contact-hero .page-title-en {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  white-space: normal;
}

.contact-hero .page-title-zh {
  margin-top: 2px;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
}

/* ZH-only: Chinese title is the primary heading, not a subtitle */
html[data-lang="zh"] .contact-hero .page-title-zh {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.contact-hero .page-blurb {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 28em;
}

.contact-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 0.78fr) minmax(0, 1.65fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: stretch;
}

.contact-aside {
  position: static;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 14px);
  padding: 2px 0;
  min-height: 0;
  overflow: auto;
}

.contact-aside-block {
  display: grid;
  gap: 4px;
}

.contact-aside-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.contact-aside-link {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.contact-aside-link:hover {
  color: var(--accent-bright);
}

.contact-aside-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-aside-meta {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-chip-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-chip-sku {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.contact-aside-note {
  margin: auto 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.contact-form-card {
  min-height: 0;
  overflow: auto;
  padding: clamp(16px, 2vh, 24px) clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 48%),
    rgba(18, 21, 28, 0.88);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

#inquiryFormWrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.contact-form-head {
  margin-bottom: clamp(8px, 1.2vh, 12px);
  flex: 0 0 auto;
}

.contact-form-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.contact-form-head p {
  display: none;
}

.inquiry-form {
  display: grid;
  gap: clamp(8px, 1.2vh, 12px);
  flex: 1 1 auto;
  align-content: start;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.1vh, 12px) 14px;
}

@media (min-width: 1100px) and (min-height: 760px) {
  .inquiry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.inquiry-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inquiry-field--full {
  grid-column: 1 / -1;
}

.inquiry-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.inquiry-req {
  margin-left: 3px;
  color: var(--accent);
}

.inquiry-optional {
  font-weight: 500;
  color: var(--text-dim);
}

.inquiry-field input,
.inquiry-field select,
.inquiry-field textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f5f7;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.inquiry-field select {
  appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a8b0ba' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Native dropdown list: black text on white (system popup) */
.inquiry-field select option,
.inquiry-field select optgroup {
  color: #111111;
  background-color: #ffffff;
}

.inquiry-field select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inquiry-field textarea {
  resize: vertical;
  min-height: 64px;
  max-height: 120px;
}

.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-field textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.65);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.inquiry-field input::placeholder,
.inquiry-field textarea::placeholder {
  color: var(--text-dim);
}

.inquiry-verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.inquiry-captcha {
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #1a1f27;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
}

.inquiry-captcha:hover,
.inquiry-captcha:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.5);
  outline: none;
}

.inquiry-captcha canvas {
  display: block;
  width: 128px;
  height: 44px;
}

.inquiry-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
}

.inquiry-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.inquiry-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inquiry-consent a:hover {
  color: #fff;
}

.inquiry-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 90, 90, 0.45);
  background: rgba(255, 70, 70, 0.08);
  color: #ffb4b4;
  font-size: 0.9rem;
}

.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 2px;
}

.inquiry-actions .btn {
  padding: 11px 20px;
  font-size: 0.92rem;
  border-radius: 8px;
}

.inquiry-success {
  display: grid;
  gap: 14px;
  padding: 8px 0;
}

.inquiry-success[hidden],
.inquiry-error[hidden],
#inquiryFormWrap[hidden] {
  display: none !important;
}

.inquiry-success-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.95);
  font-weight: 600;
}

.inquiry-success h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.inquiry-success p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.legal-main {
  max-width: 760px;
}

.legal-body {
  display: grid;
  gap: 22px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.legal-body p {
  margin: 0;
}

.legal-body ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  body.is-contact {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .contact-main {
    overflow: visible;
    height: auto;
    padding-bottom: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .contact-aside {
    position: static;
    overflow: visible;
  }

  .contact-form-card {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .inquiry-grid,
  .inquiry-verify {
    grid-template-columns: 1fr;
  }

  .inquiry-captcha {
    justify-self: start;
  }

  .contact-form-card {
    padding: 18px 16px;
  }
}
