html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 强制隐藏所有错误弹层 */
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;
}

/* 启动画面样式 */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Logo 样式 */
#splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: logoFadeIn 0.8s ease-out;
}

/* Logo 动画 */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 应用名称 */
#splash-title {
    color: #333333;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    animation: titleSlideUp 0.8s ease-out 0.2s both;
}

@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;
}
