/* 空状态组件样式 */

.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 200px;
}

.empty-state-icon {
    /* margin-bottom: 1.5rem; */
    opacity: 0.6;
}

.empty-state-icon i {
    font-size: 4rem;
    color: #9ca3af;
    /* 移除过渡动画：transition: color 0.2s ease; */
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
    /* 移除过渡动画：transition: color 0.2s ease; */
}

.empty-state-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
    /* 移除过渡动画：transition: color 0.2s ease; */
}

/* 暗色模式支持 */
[data-theme="dark"] .empty-state-icon i,
.theme-dark .empty-state-icon i,
html[data-theme="dark"] .empty-state-icon i,
html.theme-dark .empty-state-icon i {
    color: #6b7280;
}

[data-theme="dark"] .empty-state-title,
.theme-dark .empty-state-title,
html[data-theme="dark"] .empty-state-title,
html.theme-dark .empty-state-title {
    color: #f9fafb;
}

[data-theme="dark"] .empty-state-description,
.theme-dark .empty-state-description,
html[data-theme="dark"] .empty-state-description,
html.theme-dark .empty-state-description {
    color: #9ca3af;
}

/* 不同类型的空状态样式变化 */

/* 知识库列表空状态 */
.knowledge-list-empty .empty-state-icon i {
    color: #3b82f6;
}

.knowledge-list-empty .empty-state-title {
    color: #1e40af;
}

[data-theme="dark"] .knowledge-list-empty .empty-state-icon i,
.theme-dark .knowledge-list-empty .empty-state-icon i {
    color: #60a5fa;
}

[data-theme="dark"] .knowledge-list-empty .empty-state-title,
.theme-dark .knowledge-list-empty .empty-state-title {
    color: #93c5fd;
}

/* 知识库详情空状态 */
.knowledge-detail-empty .empty-state-icon i {
    color: #10b981;
}

.knowledge-detail-empty .empty-state-title {
    color: #047857;
}

[data-theme="dark"] .knowledge-detail-empty .empty-state-icon i,
.theme-dark .knowledge-detail-empty .empty-state-icon i {
    color: #34d399;
}

[data-theme="dark"] .knowledge-detail-empty .empty-state-title,
.theme-dark .knowledge-detail-empty .empty-state-title {
    color: #6ee7b7;
}

/* 搜索空状态 */
.search-empty .empty-state-icon i {
    color: #f59e0b;
}

.search-empty .empty-state-title {
    color: #d97706;
}

[data-theme="dark"] .search-empty .empty-state-icon i,
.theme-dark .search-empty .empty-state-icon i {
    color: #fbbf24;
}

[data-theme="dark"] .search-empty .empty-state-title,
.theme-dark .search-empty .empty-state-title {
    color: #fcd34d;
}

/* 标签空状态 */
.category-empty .empty-state-icon i {
    color: #8b5cf6;
}

.category-empty .empty-state-title {
    color: #7c3aed;
}

[data-theme="dark"] .category-empty .empty-state-icon i,
.theme-dark .category-empty .empty-state-icon i {
    color: #a78bfa;
}

[data-theme="dark"] .category-empty .empty-state-title,
.theme-dark .category-empty .empty-state-title {
    color: #c4b5fd;
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .empty-state-container {
        padding: 2rem 1rem;
        min-height: 150px;
    }

    .empty-state-icon i {
        font-size: 3rem;
    }

    .empty-state-title {
        font-size: 1.125rem;
    }

    .empty-state-description {
        font-size: 0.8125rem;
        max-width: 280px;
    }
}

/* 移除动画效果，避免页面刷新时的抖动 */
.empty-state-container {
    /* 移除动画：animation: fadeInUp 0.3s ease-out; */
    animation: none;
}

/* 禁用fadeInUp动画 */
@keyframes fadeInUp {
    from, to {
        opacity: 1;
        transform: none;
    }
}

/* 与现有empty-state样式兼容 */
.empty-state {
    /* 保持现有样式不变，但添加一些补充样式 */
}

.empty-state .empty-icon {
    /* 保持现有样式不变 */
}

/* 确保新的empty-state-container在知识详情区域正确显示 */
.detail-content .empty-state-container {
    height: 100%;
    min-height: 300px;
}

/* 错误状态样式 */
.error-empty .empty-state-icon i {
    color: #ef4444;
}

.error-empty .empty-state-title {
    color: #dc2626;
}

[data-theme="dark"] .error-empty .empty-state-icon i,
.theme-dark .error-empty .empty-state-icon i {
    color: #f87171;
}

[data-theme="dark"] .error-empty .empty-state-title,
.theme-dark .error-empty .empty-state-title {
    color: #fca5a5;
} 