/**
 * 课程总目录 + 各讲 index.html 统一缩放（与 L00-主谓宾 index 一致：161%）
 */
:root {
  --g-index-zoom: 1.61;
}

html.g-index-scaled,
html.l00-course {
  overflow-x: hidden;
  zoom: var(--g-index-zoom) !important;
}

@media (min-width: 640px) {
  html.g-index-scaled,
  html.l00-course {
    width: min(920px, calc(100vw / var(--g-index-zoom))) !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

body.g-index-scaled,
body.l00-course {
  margin: 0;
  min-height: 100vh;
}

body.g-index-scaled main.g-index,
body.l00-course main.g-index {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* 总目录与分讲目录卡片同宽 */
body.g-index-scaled main.g-index.g-index--home,
body.l00-course main.g-index.g-index--home {
  max-width: 920px;
}

@supports not (zoom: 1) {
  html.g-index-scaled,
  html.l00-course {
    zoom: unset !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.g-index-scaled,
  body.l00-course {
    transform: scale(var(--g-index-zoom));
    transform-origin: top center;
    width: calc(100% / var(--g-index-zoom));
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}
