/* ==========================================================================
   滚动修正（2026-11-21 第二轮）
   用户反馈：① 手机滑动时整页会左右串 ② 首屏轮播卡在两页之间
   ==========================================================================
   ① 根因：html/body 的 overflow-x 是 visible，iOS 上内层横向滚动容器划到尽头后
      会把整页的 visual viewport 一起横向拖走（橡皮筋），看起来像"页面左右乱串"。
      修法：页面本身不允许横向滚动 + 关掉横向 overscroll 传递。
   ② 根因：scroll-snap-type 写的是 `x proximity` —— proximity 只在"够近"时吸附，
      所以经常停在两张卡片中间。必须 `mandatory`。
   ========================================================================== */

html,
body {
  overflow-x: clip;            /* clip 不像 hidden 那样新建滚动容器，不影响 sticky */
  overscroll-behavior-x: none;  /* 横向到边不往上层传 */
  max-width: 100%;
}

/* 轮播：强制一屏一张，划一下就整张对齐 */
.hero-track {
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

/* 每张卡片都要"必须停" */
.hero-track > .hero {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex: 0 0 100%;
}

/* 手机上把轮播的悬浮白圆按钮收掉——手指滑就是翻页，不需要那个球 */
@media (max-width: 900px) {
  .hero-go { display: none !important; }
  /* 点卡片本身也能进 */
  .hero { cursor: pointer; }
}

/* 分类条/标签条：同样不许纵向滚（防止斜划时上下跳） */
.subnav-inner,
.tagbar {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
}
