/* 首页首屏：通栏宽屏 banner（华为云风格），文字叠加在视频画面上 */

/* hero 自身留出导航高度，高度由 banner 撑开 */
.hero {
  min-height: 0;
  padding: var(--nav-h) 0 40px;
}
.hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.hero-visual {
  width: 100%;
  padding-right: 0;
}

/* 通栏 banner：突破 wrap 的 1200px 限制，铺满整个视口宽度 */
.hero-video-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(560px, 72vh, 680px);
  border-radius: 0;
  overflow: hidden;
  background: #eef0f8;
  display: flex;
  align-items: center;
}

/* 视频铺满通栏，偏右定位让兔子落在右半屏 */
.hero-video-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

/* 左侧渐隐遮罩：覆盖文字区（约视口左 55%），保证叠加文字清晰 */
.hero-video-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(247,248,253,0.98) 0%,
    rgba(247,248,253,0.96) 26%,
    rgba(247,248,253,0.82) 42%,
    rgba(247,248,253,0.35) 58%,
    rgba(247,248,253,0) 74%);
  pointer-events: none;
}

/* 文案对齐到居中的内容列（与 wrap 1200px 左边缘一致） */
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--maxw), 100%);
  max-width: none;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.hero-copy h1 { font-size: clamp(44px, 5.2vw, 76px); }
.hero-copy .lede { max-width: 560px; }

/* 三个胶囊标签：底部标签条，对齐内容列左边缘 */
.hero-video-banner .hero-badge {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  animation: none;
}
.hero-video-banner .hero-badge.b1 { left: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); }
.hero-video-banner .hero-badge.b2 { left: calc(max(24px, (100vw - var(--maxw)) / 2 + 24px) + 250px); }
.hero-video-banner .hero-badge.b3 { left: calc(max(24px, (100vw - var(--maxw)) / 2 + 24px) + 520px); }

/* 事实条与数据条保持内容列宽度，贴合 banner */
.hero-geo-fact { margin: 22px 0 0; }
.hero-stats { margin-top: 20px; }

/* 移动端：通栏不变，纵向渐隐、隐藏两个标签 */
@media (max-width: 900px) {
  .hero { padding: var(--nav-h) 0 30px; }
  .hero-video-banner {
    min-height: clamp(460px, 60vh, 560px);
    align-items: flex-start;
  }
  .hero-video-banner video { object-position: 60% center; }
  .hero-video-banner::before {
    background: linear-gradient(180deg,
      rgba(247,248,253,0.97) 0%,
      rgba(247,248,253,0.94) 50%,
      rgba(247,248,253,0.6) 76%,
      rgba(247,248,253,0.15) 100%);
  }
  .hero-copy { width: 100%; padding: 40px 24px 150px; }
  .hero-copy h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-copy .lede { font-size: 14px; }
  .hero-video-banner .hero-badge.b2,
  .hero-video-banner .hero-badge.b3 { display: none; }
  .hero-video-banner .hero-badge.b1 { left: 24px; bottom: 20px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}
