/* 顶部加载条 + SPA 过渡效果 */
#spa-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2147483647;
    opacity: 0;
    background: linear-gradient(90deg, #0969da 0%, #54aeff 55%, #a5d6ff 100%);
    box-shadow: 0 0 10px rgba(9, 105, 218, 0.55);
    transition: width 0.18s ease-out, opacity 0.28s ease-out;
    pointer-events: none;
}

#spa-progress-bar.active {
    opacity: 1;
}

#spa-progress-bar.done {
    opacity: 0;
}

/* 内容切换时轻微淡入，避免闪烁 */
body.spa-swapping {
    transition: opacity 0.15s ease-out;
    opacity: 0.55;
}
