/* ============ 启动加载画面（使用主题CSS变量） ============ */
#__startup_overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 35%,
        var(--bg-card, #131a2e) 0%,
        var(--bg-secondary, #0a0e17) 60%,
        var(--bg-primary, #060810) 100%);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary, #e0e6f0);
    transition: opacity 0.6s ease, visibility 0.6s ease;
    -webkit-user-select: none;
    user-select: none;
}
#__startup_overlay.__hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* logo 区域 */
.__su-logo {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 36px;
}
.__su-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent, #00d4aa);
    border-right-color: var(--accent-glow, rgba(0, 212, 170, 0.3));
    animation: __su-spin 1.1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
.__su-logo-ring:nth-child(2) {
    inset: 8px;
    border-top-color: var(--accent-light, #4fc3f7);
    border-right-color: color-mix(in srgb, var(--accent-light, #4fc3f7) 20%, transparent);
    animation-duration: 1.6s;
    animation-direction: reverse;
}
.__su-logo-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--accent-gradient, linear-gradient(135deg, #00d4aa, #4fc3f7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes __su-spin {
    to { transform: rotate(360deg); }
}

/* 标题 */
.__su-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.__su-subtitle {
    font-size: 12px;
    color: var(--text-muted, #6b7591);
    margin-bottom: 32px;
    letter-spacing: 2px;
}

/* 进度条 */
.__su-bar-wrap {
    width: 320px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}
.__su-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: var(--accent-gradient-h, linear-gradient(90deg, #00d4aa 0%, #4fc3f7 100%));
    box-shadow: 0 0 12px var(--accent-glow, rgba(0, 212, 170, 0.5));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 状态文字 */
.__su-status {
    font-size: 13px;
    color: var(--text-secondary, #8892b0);
    min-height: 18px;
    text-align: center;
}

/* 底部版本号 */
.__su-version {
    position: absolute;
    bottom: 28px;
    font-size: 11px;
    color: var(--text-muted, #3d4866);
    letter-spacing: 1px;
    opacity: 0.7;
}

/* 装饰光点 */
.__su-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow, rgba(0, 212, 170, 0.06)) 0%, transparent 70%);
    pointer-events: none;
    animation: __su-pulse 3s ease-in-out infinite;
}
@keyframes __su-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}
