/* V3.22: reference-led split hero. Shared page styles remain independent. */
.hero.hero-showcase {
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  padding: calc(var(--header-height) + 38px) var(--page-pad) 38px;
}

.hero-showcase .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 96px);
  row-gap: 24px;
  width: 100%;
  max-width: 1800px;
  height: 100%;
  text-align: left;
}

.hero-heading { grid-area: 1 / 1; align-self: start; margin-top: clamp(28px, 5svh, 64px); }
.hero-showcase .eyebrow { letter-spacing: .14em; }
.hero-showcase h1 {
  margin-top: 16px;
  font-size: clamp(64px, min(6.9vw, 11svh), 126px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.055em;
}
.hero-showcase .hero-kicker {
  margin-top: 22px;
  font-size: clamp(27px, min(3.1vw, 4.6svh), 54px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.035em;
}
.hero-summary { grid-area: 2 / 1; align-self: start; }
.hero-showcase .hero-actions {
  justify-content: flex-start;
  flex-direction: row;
  gap: 24px;
  margin-top: 0;
}
.hero-showcase .hero-proof {
  margin: 12px 0 0;
  max-width: none;
  font-size: 11px;
  color: rgba(255, 255, 255, .48);
}

.hero-feature-nav {
  grid-area: 3 / 1;
  align-self: start;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-feature-tabs { display: grid; min-width: 0; }
.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  padding: 0 4px;
  color: rgba(255, 255, 255, .5);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}
.hero-feature strong { font-size: 17px; font-weight: 600; white-space: nowrap; }
.hero-feature-mark {
  width: 16px;
  height: 2px;
  flex: 0 0 16px;
  background: currentColor;
  opacity: .38;
  transform: scaleX(.4);
  transform-origin: left center;
  transition: transform .4s var(--ease), opacity .4s ease;
}
.hero-feature-detail {
  font-size: 12px;
  color: rgba(255, 255, 255, .56);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.hero-feature:hover { color: var(--brand-white); }
.hero-feature.is-active { color: var(--brand-white); }
.hero-feature.is-active .hero-feature-mark { background: var(--brand-cyan); opacity: 1; transform: scaleX(1); }
.hero-feature.is-active .hero-feature-detail { opacity: 1; transform: none; }
.hero-carousel-meta { display: grid; gap: 12px; justify-items: end; padding-bottom: 4px; }
.hero-carousel-count { display: flex; align-items: baseline; gap: 8px; font-family: "SFMono-Regular", monospace; }
.hero-carousel-count b { font-size: 22px; font-weight: 400; }
.hero-carousel-count > span { font-size: 11px; color: rgba(255, 255, 255, .4); }
.hero-feature:focus-visible, .hero-slide:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 4px; }

.hero-gallery {
  grid-area: 1 / 2 / 4 / 3;
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  container-type: size;
  isolation: isolate;
  /* 横向手势交给脚本处理，纵向仍由页面滚动 */
  touch-action: pan-y;
  transform: translateX(var(--hero-drag, 0px));
  transition: transform .3s var(--ease);
}

.hero-gallery.is-dragging { transition: none; }
.hero-slide-panel { display: contents; }
.hero-slide {
  position: absolute;
  top: 0;
  left: 55%;
  width: 66%;
  width: min(66%, 68cqh);
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(161, 209, 238, .16);
  border-radius: 12px;
  background: #0c1722;
  color: var(--brand-white);
  text-align: left;
  cursor: pointer;
  box-shadow: -16px 8px 45px rgba(0, 0, 0, .25);
  transition: transform .85s var(--ease), filter .85s ease, opacity .85s ease;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.hero-slide[data-position="active"] { z-index: 4; transform: translateX(-50%); filter: brightness(1); opacity: 1; }
.hero-slide[data-position="previous"] { z-index: 3; transform: translateX(-72%) scale(.94); filter: brightness(.45) saturate(.65); opacity: .95; }
.hero-slide[data-position="next"] { z-index: 2; transform: translateX(-30%) scale(.94); filter: brightness(.45) saturate(.65); opacity: .95; }
.hero-slide[data-position="back"] { z-index: 1; transform: translateX(-90%) scale(.88); filter: brightness(.3) saturate(.6); opacity: .8; }
.hero-slide:not([data-position="active"]):hover { filter: brightness(.65); }
.hero-slide-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 80px clamp(18px, 2.2vw, 36px) 30px;
  background: linear-gradient(transparent, rgba(8, 11, 16, .85) 70%, rgba(8, 11, 16, .95));
  transition: opacity .35s ease;
}
.hero-slide-caption small { font-family: "SFMono-Regular", monospace; font-size: 10px; letter-spacing: .13em; color: #a4d5eb; }
.hero-slide-caption strong { font-size: clamp(25px, 2.5vw, 38px); font-weight: 500; line-height: 1.2; }
.hero-slide-caption > span { font-size: 13px; color: rgba(255, 255, 255, .67); }
.hero-slide:not([data-position="active"]) .hero-slide-caption { opacity: 0; }
.hero-showcase .hero-backdrop { opacity: .52; }
.hero-showcase .hero-wordmark { top: 35%; left: -40%; opacity: .5; }
.hero-showcase .hero-logo { left: 27%; top: 24%; opacity: .22; }
.hero-showcase .hero-perspective-grid { opacity: .26; }

@media (min-width: 821px) and (min-height: 901px) {
  .hero-feature-nav { align-self: end; }
}

@media (min-width: 821px) and (max-height: 800px) {
  .hero.hero-showcase { padding-top: calc(var(--header-height) + 22px); padding-bottom: 24px; }
  .hero-showcase .hero-layout { row-gap: 16px; }
  .hero-heading { margin-top: clamp(12px, 3svh, 24px); }
  .hero-showcase h1 { font-size: clamp(60px, 6vw, 90px); margin-top: 10px; }
  .hero-showcase .hero-kicker { font-size: clamp(26px, 2.8vw, 38px); margin-top: 14px; }
  .hero-feature-nav { padding-top: 10px; }
}

@media (min-width: 821px) and (max-height: 680px) {
  .hero-heading { margin-top: 8px; }
  .hero-showcase .hero-layout { row-gap: 12px; }
  .hero-showcase h1 { font-size: clamp(56px, 5.2vw, 72px); }
  .hero-showcase .hero-kicker { font-size: clamp(26px, 2.8vw, 30px); }
  .hero-feature { min-height: 36px; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .hero-showcase .hero-layout { column-gap: 24px; }
  .hero-feature-detail { display: none; }
  .hero-showcase .hero-actions { gap: 16px; font-size: 13px; }
  .hero-showcase .hero-proof { font-size: 10px; }
}

@media (max-width: 820px) {
  .hero.hero-showcase { min-height: 640px; padding: calc(var(--header-height) + 28px) var(--page-pad) 20px; }
  .hero-showcase .hero-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(180px, 1fr) auto; gap: 18px; }
  .hero-heading { grid-area: 1 / 1; margin-top: 0; text-align: center; }
  .hero-showcase h1 { margin-top: 8px; font-size: 50px; }
  .hero-showcase .hero-kicker { margin-top: 10px; font-size: 23px; }
  .hero-showcase .hero-kicker br { display: none; }
  .hero-summary { grid-area: 2 / 1; text-align: center; }
  .hero-showcase .hero-actions { justify-content: center; gap: 18px; font-size: 13px; }
  .hero-showcase .hero-actions .button { width: auto; min-height: 42px; padding: 10px 16px; }
  .hero-showcase .hero-proof { margin-top: 7px; font-size: 10px; }
  .hero-gallery { grid-area: 3 / 1; margin-inline: 8px; }
  .hero-slide { width: 64%; width: min(66%, 82cqh); border-radius: 9px; }
  .hero-slide-caption { gap: 4px; padding: 40px 18px 16px; }
  .hero-slide-caption small { font-size: 8px; }
  .hero-slide-caption strong { font-size: 23px; }
  .hero-slide-caption > span { display: none; }
  .hero-feature-nav { grid-area: 4 / 1; display: grid; grid-template-columns: 1fr; gap: 2px; padding-top: 8px; }
  .hero-feature-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .hero-feature { flex-direction: column; justify-content: center; gap: 7px; padding: 4px 0; }
  .hero-feature strong { font-size: 14px; }
  .hero-feature-mark { width: 18px; height: 2px; flex-basis: 2px; transform-origin: center; }
  .hero-feature-detail { display: none; }
  .hero-carousel-meta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0; }
  .hero-carousel-count b { font-size: 15px; }
  .hero-showcase .hero-logo { left: auto; right: 4%; top: 12%; }
  .hero-showcase .hero-wordmark { left: -15%; }
}

@media (max-width: 820px) and (max-height: 740px) {
  .hero.hero-showcase { min-height: 560px; padding-top: calc(var(--header-height) + 24px); padding-bottom: 12px; }
  .hero-showcase .hero-layout { gap: 10px; grid-template-rows: auto auto minmax(140px, 1fr) auto; }
  .hero-showcase h1 { font-size: 39px; margin-top: 5px; }
  .hero-showcase .hero-kicker { font-size: 19px; margin-top: 7px; }
  .hero-showcase .hero-proof { display: none; }
  .hero-slide-caption { padding-bottom: 12px; }
  .hero-slide-caption strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-feature-mark, .hero-feature-detail, .hero-slide-caption, .hero-gallery { transition: none; }
}
