html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position:fixed;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  max-width: none;
  overflow-x: hidden;
  webkit-overflow-scrolling: touch;
  border: 1px solid #e0e0e0;
  max-width: 428px;
  margin: 0 auto;
  /* 优化滚动行为：允许下拉刷新，但防止过度滚动传递 */
  overscroll-behavior-y: auto;
  overscroll-behavior-x: none;
  @media screen and (max-width: 900px) {
    max-width: 428px;
    margin: 0 auto;
  }
  @media screen and (max-width: 480px) {
    max-width: unset;
    margin: 0 auto;
  }
}



/* 强制隐藏所有错误弹层 */
iframe[id*="webpack"],
iframe[id*="error"],
[id*="error-overlay"],
[class*="error-overlay"],
[class*="ErrorOverlay"],
#webpack-dev-server-client-overlay,
#webpack-dev-server-client-overlay-div {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: -9999 !important;
}


@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 应用内容初始隐藏 */
body > :not(#splash-screen) {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.app-ready > :not(#splash-screen) {
    opacity: 1;
}

/* 浏览器不兼容错误页面 - 极简版 */
#browser-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-text {
    color: #333;
    font-size: 16px;
    text-align: center;
    line-height: 1.8;
    padding: 0 30px;
    max-width: 400px;
}
