html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  /* 禁止撑满 iframe 视口，否则 scrollHeight 会等于窗口高度，父页下方出现大空隙 */
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  background: transparent;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft YaHei',
    'Noto Sans SC',
    sans-serif;
  overflow-x: hidden;
}

#app {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box;
}

/* embed 页不滚动；历史独立页（.kj-history-page）在 history-page.css 里用 !important 锁视口并内部滚动 */
body:has(.lottery-plugin) {
  overflow-y: hidden;
}
