/* Python 二开层：只做设备适配兜底，不覆盖原站视觉主题。 */
html {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
#app {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  max-width: 100%;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
  html,
  body,
  #app {
    min-width: 0 !important;
    max-width: 100vw;
  }

  body {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 768px) {
  body,
  #app {
    min-width: 768px;
  }
}
