/**
 * 首屏关键样式（在 JS / UnoCSS 注入前由 index.html 同步加载）
 * 避免 Vite 将样式作为异步 chunk 时出现 FOUC（无样式闪屏、布局错乱）
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --app-shell-bg: #f4f6f9;
    --app-shell-text: rgba(0, 0, 0, 0.88);
}

html.dark {
    color-scheme: dark;
    --app-shell-bg: #0d0f14;
    --app-shell-text: rgba(255, 255, 255, 0.88);
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--app-shell-bg);
    color: var(--app-shell-text);
    font-family:
        "Noto Sans SC",
        system-ui,
        -apple-system,
        sans-serif;
    line-height: 1.7;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100%;
}

/* 登录页：不依赖原子类即可居中，避免 Uno 未生效时块状堆叠 */
.app-login-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: var(--app-shell-bg);
}

/* 主内容区：与 content-layout 中 h-screen + flex-col 一致 */
.app-content-shell {
    display: flex;
    height: 100vh;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--app-shell-bg);
}
