/* Force H5 page shell to fill the viewport (no letterboxed / max-width column). */
html,
body {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

#app,
uni-app,
uni-page,
uni-page-wrapper,
uni-page-body {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

#app,
uni-app,
uni-page {
  height: 100% !important;
  min-height: 100% !important;
}

/* Non-tab (二级/三级) pages: fill full height; do not leave a phantom tab-bar gap. */
uni-app:not(.uni-app--showtabbar) uni-page-wrapper,
uni-page[data-type] uni-page-wrapper {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

uni-page-body {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

/* Common page root used across sub packages */
.page,
.qixi-page {
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  box-sizing: border-box;
}

/* Hide native scrollbars on horizontal rails (H5). */
.live-rail-viewport,
.hot-rail-viewport {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.live-rail-viewport::-webkit-scrollbar,
.hot-rail-viewport::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
