/**
 * 页面加载动画样式
 * 用于站内跳转时的预加载loading效果
 */

/* Loading遮罩层 */
#page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#page-loading-overlay.show {
    display: flex;
    opacity: 1;
}

/* Loading容器 */
.loading-container {
    text-align: center;
    color: #fff;
}

/* 转圈动画 */
.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading文字 */
.loading-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 500;
}

/* 进度提示 */
.loading-progress {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* 白色主题适配 */
[data-theme="light"] #page-loading-overlay {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .loading-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: #ff6b6b;
}

[data-theme="light"] .loading-text {
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .loading-progress {
    color: rgba(0, 0, 0, 0.6);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .loading-spinner {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: 14px;
    }

    .loading-progress {
        font-size: 12px;
    }
}
