/* MIH: shared outer horizontal spacing for every page. */
@media (min-width: 1001px) {
  :root {
    --mih-equal-gutter: max(clamp(32px, 5vw, 100px), calc((100vw - 1800px) / 2));
  }
  .container,
  main > .hero .hero-grid {
    width: calc(100% - var(--mih-equal-gutter) * 2);
    margin-inline: auto;
  }
  main > .hero .hero-copy {
    padding-left: 0;
  }
}

/* MIH 2026-11-22: 核心理念页手机端横向溢出修复（只作用于 ≤760px，电脑端不变） */
@media (max-width: 760px) {
  .philosophy-section-head.compact { grid-template-columns: 1fr !important; gap: 20px !important; }
  .philosophy-section-head h2 { white-space: normal !important; }
}
/* MIH 2026-11-22: 手机菜单展开后高度超过屏幕时可以滚动，避免底部栏目无法点击 */
@media (max-width: 1000px) {
  .nav.open .navlinks { max-height: calc(100vh - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
@media (max-width: 680px) {
  .nav.open .navlinks { max-height: calc(100vh - 70px); }
}
