/* PC 首页一级内容模块的边界间距最终 owner。 */
@media (min-width: 901px) {
  html body.custom-override main.md-home {
    --home-module-gap: 60px;
    --home-feature-module-gap: 80px;
  }

  html body.custom-override main.md-home > .banner,
  html body.custom-override main.md-home > .hm-quick-grid {
    margin-bottom: 0;
  }

  html body.custom-override main.md-home > section.husir-xl.teaser,
  html body.custom-override main.md-home > a.ho_brand.teaser,
  html body.custom-override main.md-home > section.temp-service-section,
  html body.custom-override main.md-home > section.temp-timeline-section,
  html body.custom-override main.md-home > section.ey-video-section,
  html body.custom-override main.md-home > section.ey-about-section,
  html body.custom-override main.md-home > section.home_2--asia,
  html body.custom-override main.md-home > section.modern-partners,
  html body.custom-override main.md-home > div.home_5.teaser {
    margin-top: var(--home-module-gap);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* 标注的重点叙事模块加宽区块间距，其余内容继续沿用全站模块间距。 */
  html body.custom-override main.md-home > section.husir-xl.teaser,
  html body.custom-override main.md-home > section.temp-service-section,
  html body.custom-override main.md-home > section.temp-timeline-section,
  html body.custom-override main.md-home > section.ey-about-section,
  html body.custom-override main.md-home > section.home_2--asia {
    margin-top: var(--home-feature-module-gap);
  }

  html body.custom-override main.md-home > section.temp-timeline-section {
    margin-top: 60px;
    margin-bottom: 0 !important;
  }

  html body.custom-override main.md-home > section.husir-xl.teaser .husir-xl__motto,
  html body.custom-override main.md-home > section.ey-about-section > .ey-container,
  html body.custom-override main.md-home > section.home_2--asia > .ho_title.title,
  html body.custom-override main.md-home > section.home_2--asia #asia-network-title,
  html body.custom-override main.md-home > section.modern-partners .partner-header,
  html body.custom-override main.md-home > div.home_5.teaser > .ho_title {
    margin-top: 0;
  }

  html body.custom-override main.md-home > section.temp-service-section > .section-header,
  html body.custom-override main.md-home > section.temp-timeline-section > .section-header {
    padding-top: 0;
  }

  html body.custom-override main.md-home > section.modern-partners {
    min-height: 0;
  }

  html body.custom-override main.md-home > section.temp-service-section {
    padding-top: 20px;
  }

  html body.custom-override main.md-home > section.ey-video-section > .ey-video-container {
    padding-top: 0;
  }

  html body.custom-override main.md-home > section.ey-about-section > .ey-container {
    padding-top: 60px;
  }

  html body.custom-override main.md-home > section.home_2--asia.teaser {
    padding-top: 0;
  }

  html body.custom-override main.md-home > section.modern-partners > .partner-wrapper {
    padding-top: 40px;
  }

  html body.custom-override main.md-home > div.home_5.teaser.pad160 {
    /* 桌面批注：标题上方呼吸从 40px 收到 20px；手机 10px / 平板不走本条。 */
    padding-top: 20px;
    margin-bottom: var(--home-module-gap);
  }
}

/* 竖屏平板：单独调整首页一级模块边界与标题留白。 */
@media (min-width: 600px) and (max-width: 833px) and (orientation: portrait) {
  html body.custom-override main.md-home > section.temp-service-section {
    margin-top: 40px;
  }

  html body.custom-override main.md-home > section.temp-timeline-section > .section-header {
    padding-top: 40px !important;
  }

  html body.custom-override main.md-home > section.ey-video-section {
    padding-top: 0;
    padding-bottom: 0;
  }

  html body.custom-override main.md-home > section.ey-about-section {
    padding-top: 0;
    padding-bottom: 0 !important;
  }

  html body.custom-override main.md-home > section.ey-about-section > .ey-container {
    margin-top: 40px !important;
    padding-bottom: 0 !important;
  }
}
