/* ===============================
   Apple-style Minimal Preloader
=============================== */

.preloader{
    position: fixed;
    inset: 0;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

    transition: opacity .4s ease, visibility .4s ease;
}

/* 点容器 */
.apple-loader{
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 三个点 */
.apple-loader span{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #111;

    opacity: 0.2;
    transform: scale(0.8);

    animation: apple-breathe 1.2s infinite ease-in-out;
}

/* 错峰动画（关键 Apple 感） */
.apple-loader span:nth-child(1){
    animation-delay: 0s;
}
.apple-loader span:nth-child(2){
    animation-delay: 0.15s;
}
.apple-loader span:nth-child(3){
    animation-delay: 0.3s;
}

/* 呼吸动画 */
@keyframes apple-breathe{
    0%{
        opacity: 0.2;
        transform: scale(0.8);
    }
    50%{
        opacity: 1;
        transform: scale(1.2);
    }
    100%{
        opacity: 0.2;
        transform: scale(0.8);
    }
}

/* 关闭状态 */
.preloader.preloader-deactivate{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}