/* iPhone Safari / 微信内置浏览器滚动稳定补丁。独立加载，便于热修复与回退。 */
@media (max-width: 980px) {
  html {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body {
    max-width: 100% !important;
    overflow: visible !important;
  }

  main {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .course-index-list article,
  .course-index-list .index-main,
  .course-index-list .index-main aside {
    min-width: 0;
  }

  .course-index-list .index-main aside a {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 44px;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(217, 237, 140, 0.35);
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 760px) {
    .content-page,
    .assessment-page {
      padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    .course-index-list {
      padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
    }
  }
}
