/*
 * 2026-07-14 首页 Hero 新图专项覆盖。
 * 只调整首屏图片、遮罩和文字安全区，不影响首页其他模块。
 */

.home-redesign .hero-image {
  z-index: 0;
  object-position: 50% 42%;
  filter: saturate(0.98) contrast(1.04) brightness(1.02);
  transform: none;
}

.home-redesign .hero-gradient {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 16, 28, 0.94) 0%,
      rgba(5, 25, 42, 0.78) 25%,
      rgba(6, 31, 51, 0.34) 36%,
      rgba(6, 31, 51, 0.04) 46%,
      rgba(6, 31, 51, 0.08) 100%
    ),
    linear-gradient(0deg, rgba(3, 17, 29, 0.48) 0%, transparent 46%);
}

.home-redesign .hero-content-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: 24px;
  padding-left: clamp(72px, 7.5vw, 150px);
}

.home-redesign .hero-content {
  width: min(500px, 29vw);
}

.home-redesign .hero-title {
  font-size: clamp(3.1rem, 4vw, 4.35rem);
  letter-spacing: -0.055em;
}

.home-redesign .hero-subtitle {
  max-width: 420px;
}

/* 平板：保留左侧矿洞文字区，并把人物完整推向右侧。 */
@media (min-width: 701px) and (max-width: 1279px) {
  .home-redesign .hero-image {
    object-position: 20% 42%;
  }

  .home-redesign .hero-content-container {
    align-items: center;
    padding-top: 90px;
    padding-right: 24px;
    padding-bottom: 60px;
    padding-left: clamp(32px, 4.5vw, 54px);
  }

  .home-redesign .hero-content {
    width: clamp(280px, 32vw, 380px);
  }

  .home-redesign .hero-title {
    font-size: clamp(2.5rem, 4.3vw, 3.375rem) !important;
  }

  .home-redesign .hero-subtitle {
    max-width: 94%;
    font-size: 1rem;
  }

  .home-redesign .hero-gradient {
    background:
      linear-gradient(
        90deg,
        rgba(3, 16, 28, 0.96) 0%,
        rgba(5, 25, 42, 0.82) 28%,
        rgba(6, 31, 51, 0.28) 47%,
        rgba(6, 31, 51, 0.04) 62%,
        rgba(6, 31, 51, 0.08) 100%
      ),
      linear-gradient(0deg, rgba(3, 17, 29, 0.42) 0%, transparent 46%);
  }
}

@media (min-width: 701px) and (max-width: 840px) {
  .home-redesign .hero-buttons {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .home-redesign .hero-button-primary,
  .home-redesign .hero-button-secondary {
    width: 100%;
    min-width: 0;
    flex: none;
  }
}

/*
 * 手机竖屏没有足够横向空间同时容纳完整文字和人物。
 * 将图片与文字上下分区，确保人物始终无遮挡。
 */
@media (max-width: 700px) {
  .home-redesign .home-hero-section {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 72px;
    background: #081a2c;
  }

  .home-redesign .hero-overlay {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .home-redesign .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    filter: saturate(0.98) contrast(1.04) brightness(0.98);
  }

  .home-redesign .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 26, 44, 0.02) 55%, #081a2c 100%);
  }

  .home-redesign .hero-content-container {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding: 20px 20px 42px;
    background: #081a2c;
  }

  .home-redesign .hero-content {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .home-redesign .hero-eyebrow {
    margin-bottom: 14px;
  }

  .home-redesign .hero-title {
    font-size: clamp(2.3rem, 10vw, 2.75rem) !important;
    line-height: 1.05;
  }

  .home-redesign .hero-subtitle {
    max-width: none;
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .home-redesign .hero-buttons {
    gap: 10px;
    margin-top: 24px;
  }
}
