/* 全局页面加载动画 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.page-loading .spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #005BAC;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载中样式优化 */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    margin: 10px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.loading-placeholder img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.loading-placeholder p {
    font-size: 14px;
    color: #666;
}

/* 数据项加载中动画 */
.skeleton-text {
    display: inline-block;
    height: 1em;
    position: relative;
    overflow: hidden;
    background-color: #EDEDED;
    border-radius: 3px;
    width: 100%;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.6;
    }
} 