/* V5 — diagonal, cross-screen DNA image (lighter blue, transparent bg) */
.hero {
  display: grid !important;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: stretch;
  column-gap: clamp(0.5rem, 1.5vw, 1.2rem);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  align-self: center;
  width: 100%;
}
/* 与 .hero h1 同字号/字重/行高；用柔化径向底遮住 DNA 直角，避免实心矩形补丁感 */
.hero-slogan {
  position: absolute;
  top: clamp(72px, 9.2vw, 118px);
  right: clamp(52px, 5.8vw, 132px);
  z-index: 3;
  max-width: min(94vw, 40rem);
  margin: 0;
  padding: 0.15rem 0.25rem 0.35rem 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: normal;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
  isolation: isolate;
}
.hero-slogan::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -0.5em;
  right: -0.65em;
  bottom: -0.45em;
  left: -1.35em;
  background: radial-gradient(
    ellipse 100% 145% at 100% 45%,
    rgba(227, 240, 255, 0.93) 0%,
    rgba(240, 247, 255, 0.62) 42%,
    rgba(224, 245, 241, 0.22) 62%,
    rgba(224, 245, 241, 0) 82%
  );
  pointer-events: none;
}
.hero-slogan .hl {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-dna-wrap {
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  min-height: min(62vh, 620px);
  height: 100%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
.dna-v5-stack {
  position: absolute;
  inset: 0;
}
.dna-helix-img--v5,
.dna-helix-img {
  position: absolute;
  left: 58%;
  top: 64%;
  width: min(102%, 792px);
  max-width: none;
  height: auto;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(-31deg) scale(0.81);
  opacity: 0.9;
  filter: saturate(0.98) brightness(1.03) contrast(0.98);
  will-change: transform;
  animation: dnaDiagonalFloat 8.8s ease-in-out infinite;
}
@keyframes dnaDiagonalFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-31deg) scale(0.81) translateY(0);
  }
  30% {
    transform: translate(-50%, -50%) rotate(-30.4deg) scale(0.83) translateY(-8px);
  }
  60% {
    transform: translate(-50%, -50%) rotate(-31.8deg) scale(0.84) translateY(-13px);
  }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-slogan {
    top: 48px;
    right: clamp(32px, 7vw, 72px);
    max-width: min(96vw, 100%);
    padding: 0.1rem 0.15rem 0.28rem 0.5rem;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.3;
    letter-spacing: normal;
  }
  .hero-slogan::before {
    top: -0.45em;
    right: -0.5em;
    bottom: -0.4em;
    left: -0.85em;
  }
  .hero-dna-wrap {
    order: 0;
    min-height: min(38vh, 360px) !important;
  }
  .dna-helix-img--v5,
  .dna-helix-img {
    left: 54%;
    top: 62%;
    width: min(90%, 612px);
    transform: translate(-50%, -50%) rotate(-29deg) scale(0.74);
  }
  .hero .hero-content { order: 1; }
}
@media (min-width: 1101px) {
  .hero .hero-badges { max-width: 100%; }
}

.hero-with-dna {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 40vh;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.hero-with-dna__text {
  flex: 1 1 20rem;
  min-width: 0;
  max-width: 40rem;
  z-index: 1;
  align-self: center;
}
.hero-dna-wrap--sub {
  flex: 1 1 20rem;
  min-width: 16rem;
  max-width: none;
  min-height: min(42vh, 420px) !important;
  margin: 0;
  background: transparent;
}
.hero-dna-wrap--sub .dna-helix-img--v5,
.hero-dna-wrap--sub .dna-helix-img {
  width: min(64%, 416px);
  transform: translate(-50%, -50%) rotate(-25deg) scale(0.59);
}
@media (min-width: 1000px) {
  .hero-dna-wrap--sub { flex: 0 0 calc(50% - 0.5rem); min-width: 22rem; }
  .hero-with-dna__text { flex: 0 0 calc(50% - 0.5rem); }
}
@media (max-width: 900px) {
  .hero-dna-wrap--sub { flex: 1 1 100%; min-width: 100%; min-height: 250px !important; order: 0; }
  .hero-with-dna__text { order: 1; }
  .hero-with-dna { flex-direction: column; }
}
.dna-hero-minimal {
  min-height: 150px;
  max-width: 100%;
  margin: 0 auto 1.1rem;
  background: transparent;
}
.dna-hero-minimal .dna-helix-img--v5,
.dna-hero-minimal .dna-helix-img {
  left: 61%;
  top: 52%;
  width: min(63%, 318px);
  transform: translate(-50%, -50%) rotate(-25deg) scale(0.51);
}
