/**
 * 加载动画样式
 * 定义网站初始加载时显示的动画组件样式
 */

/* 加载容器 - 占据整个屏幕并居中内容 */
#zyyo-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main_bg_color);
    z-index: 9999;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 加载内容居中容器 */
#zyyo-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 旋转加载图标 */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 0.8s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载文字提示 */
.loading-text {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--main_text_color, #666);
}

/* 深色主题适配 */
html[data-theme="Dark"] .loading-text {
    color: #bbb;
}

html[data-theme="Dark"] .loading-spinner {
    border-color: rgba(255,255,255,0.1);
    border-top-color: #3498db;
} 