/* ========== 遮罩层 ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ========== 加载动画容器 ========== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========== 进度条样式 ========== */
.loader {
    width: 240px;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background-color: #1e80ff;
    animation: loading 1.2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

/* ========== 文案 ========== */
.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .loader {
        width: 180px;
    }
    .loading-text {
        font-size: 13px;
    }
}
