/* Microi 星空加载界面 */
#microi_loading {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1040 40%, #0d1f4a 70%, #0a0e27 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    transition: opacity 0.5s ease;
}
#microi_loading.fade-out { opacity: 0; pointer-events: none; }

/* 星空 */
#microi_loading .ml-stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
#microi_loading .ml-star {
    position: absolute; background: #fff; border-radius: 50%;
    animation: ml-twinkle var(--dur) ease-in-out infinite alternate;
}
@keyframes ml-twinkle {
    0% { opacity: 0.15; transform: scale(0.8); }
    100% { opacity: 0.9; transform: scale(1.2); }
}

/* 主容器 */
#microi_loading .ml-splash {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; width: 100%; 
    padding: 0px;
}

/* Logo */
#microi_loading .ml-logo-ring { position: relative; width: 96px; height: 96px; margin-bottom: 32px; }
#microi_loading .ml-logo-ring::before,
#microi_loading .ml-logo-ring::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 96px; height: 96px; border-radius: 50%; transform: translate(-50%, -50%);
}
#microi_loading .ml-logo-ring::before {
    border: 2px solid rgba(99, 145, 255, 0.3); animation: ml-ringPulse 2s ease-out infinite;
}
#microi_loading .ml-logo-ring::after {
    border: 1.5px solid rgba(99, 145, 255, 0.15); animation: ml-ringPulse 2s ease-out infinite 0.6s;
}
@keyframes ml-ringPulse {
    0% { width: 96px; height: 96px; opacity: 1; }
    100% { width: 160px; height: 160px; opacity: 0; }
}
#microi_loading .ml-logo-core {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #4f7bf7 0%, #7c5cfc 50%, #a855f7 100%);
    border-radius: 24px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(79, 123, 247, 0.4), 0 0 60px rgba(124, 92, 252, 0.2);
    animation: ml-logoFloat 3s ease-in-out infinite;
}
@keyframes ml-logoFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-6px); }
}
#microi_loading .ml-logo-core svg { width: 40px; height: 40px; fill: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }

/* 标题 */
#microi_loading .ml-title {
    font-size: 26px; font-weight: 700; color: #fff; letter-spacing: 2px;
    margin-bottom: 8px; text-shadow: 0 2px 20px rgba(99, 145, 255, 0.5);
}
#microi_loading .ml-subtitle {
    font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; letter-spacing: 1px;
}

/* 百分比 */
#microi_loading .ml-percent {
    font-size: 42px; font-weight: 700; color: #fff; letter-spacing: 4px;
    margin-bottom: 12px; text-shadow: 0 2px 20px rgba(99, 145, 255, 0.5);
    animation: ml-percentPulse 1.5s ease-in-out infinite; min-height: 52px; line-height: 52px;
}
@keyframes ml-percentPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}

/* 进度条 */
#microi_loading .ml-progress-wrap {
    width: 220px; height: 3px; background: rgba(255,255,255,0.08);
    border-radius: 4px; overflow: hidden; margin-bottom: 16px;
}
#microi_loading .ml-progress-bar {
    height: 100%; width: 0%; background: linear-gradient(90deg, #4f7bf7, #a855f7);
    border-radius: 4px; transition: width 0.3s ease;
}

/* 信息 */
#microi_loading .ml-info {
    font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 4px;
    letter-spacing: 0.5px; min-height: 20px; line-height: 20px; text-align: center;
}
#microi_loading .ml-info.speed { font-size: 13px; color: rgba(255,255,255,0.55); }

/* 圆点 */
#microi_loading .ml-dots {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 12px;
}
#microi_loading .ml-dots .dot {
    width: 10px; height: 10px; background: rgba(255,255,255,0.8); border-radius: 50%;
    animation: ml-dotBounce 1.4s ease-in-out infinite both;
    box-shadow: 0 1px 4px rgba(99, 145, 255, 0.3);
}
#microi_loading .ml-dots .dot:nth-child(1) { animation-delay: -0.32s; }
#microi_loading .ml-dots .dot:nth-child(2) { animation-delay: -0.16s; }
#microi_loading .ml-dots .dot:nth-child(3) { animation-delay: 0s; }
#microi_loading .ml-dots .dot:nth-child(4) { animation-delay: 0.16s; }
#microi_loading .ml-dots .dot:nth-child(5) { animation-delay: 0.32s; }
@keyframes ml-dotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* 水印 */
#microi_loading .ml-watermark {
    position: absolute; bottom: 20px; left: 0; right: 0;
    text-align: center; font-size: 10px; color: rgba(255,255,255,0.12);
}