/**
 * 全站 iOS 滚动强制修复（必须放在页脚、所有业务 CSS 之后）
 * 对齐首页：禁 smooth、禁根节点 overflow-x:hidden、移动端取消入场 transform
 */
@media (max-width: 1024px), (hover: none) {
  html {
    scroll-behavior: auto !important;
  }

  html,
  body {
    height: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 业务页根节点（body/main 上的 *-page） */
  body[class*="page"],
  main[class*="page"],
  [class$="-page"],
  [class*="-page"],
  #container,
  .container-fluid,
  .wrapper,
  .page-wrap {
    overflow-x: visible !important;
    scroll-behavior: auto !important;
  }

  /* 入场动画：避免滚动途中 opacity/transform 触发合成层顿挫 */
  .fade,
  .fade.in,
  [class*="-rise"],
  [class*="-fade"] {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* 菜单打开时仍需锁滚（覆盖上面的 visible） */
html.is-mobile-nav-open,
html.is-mobile-nav-open body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
