/* ============================================================
   小念云盘 · 页面加载动画（独立文件，可缓存、不阻塞首屏）
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #ffedd5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden,
.page-loader.hidden-dom {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pl-box {
    text-align: center;
    padding: 8px;
}
.pl-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb923c, #f97316);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, .35);
    animation: pl-float 2.4s ease-in-out infinite;
}
.pl-logo svg {
    width: 40px;
    height: 40px;
}
.pl-title {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: 3px;
}
.pl-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: .5px;
}
.pl-progress {
    width: 190px;
    height: 5px;
    margin: 22px auto 0;
    border-radius: 99px;
    background: #fed7aa;
    overflow: hidden;
}
.pl-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #fb923c, #f97316);
    animation: pl-prog 2.2s ease-in-out forwards;
}
.pl-tip {
    margin-top: 14px;
    font-size: 12px;
    color: #f97316;
    animation: pl-breathe 2s ease-in-out infinite;
}
@keyframes pl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pl-prog {
    /* 只前进不倒退：单调递增到 92% 后保持 */
    0% { width: 6%; opacity: .55; }
    35% { width: 34%; opacity: 1; }
    60% { width: 58%; opacity: 1; }
    80% { width: 74%; opacity: 1; }
    100% { width: 92%; opacity: 1; }
}
@keyframes pl-breathe {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-logo, .pl-progress-fill, .pl-tip { animation: none; }
}
