/* 加载状态样式 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 400px;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top-color: #409eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin: 0;
    font-size: 14px;
    color: #909399;
    line-height: 1.5;
    font-weight: 400;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 暂无数据样式 */
.no-data {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 400px;
    text-align: center;
}

.no-data.show {
    display: flex;
}

.no-data .empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.no-data .empty-icon {
    width: 120px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.no-data .empty-icon svg {
    width: 100%;
    height: 100%;
}

.no-data .empty-text {
    margin: 0;
    font-size: 14px;
    color: #909399;
    line-height: 1.5;
    font-weight: 400;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .loading-state {
        padding: 60px 15px;
        min-height: 300px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .loading-text {
        font-size: 12px;
    }

    .no-data {
        padding: 60px 15px;
        min-height: 300px;
    }

    .no-data .empty {
        gap: 20px;
    }

    .no-data .empty-icon {
        width: 120px;
        height: 120px;
    }

    .no-data .empty-text {
        font-size: 14px;
    }
}