/* 加载指示器 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
}

.loading-bar {
    height: 100%;
    width: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载状态样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-text {
    margin-left: 10px;
    color: var(--primary-color);
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg,
        var(--background-color) 25%,
        rgba(255,255,255,0.5) 50%,
        var(--background-color) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin: 0.5em 0;
    border-radius: 4px;
}

.skeleton-title {
    width: 70%;
    height: 1.5em;
}

.skeleton-card {
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
} 