/* 知识库管理样式 */
.knowledge-container {
    max-width: 100%;
    padding: 1rem;
}

.upload-section {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: #e3f2fd;
    border-color: #0056b3;
}

.upload-area.dragover {
    background: #e3f2fd;
    border-color: #0056b3;
    transform: scale(1.02);
}

.category-tree {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    min-height: 300px;
    font-size: 0.9rem;
}

.category-tree h5 {
    font-size: 1.1rem;
}

.document-list {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.category-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0.25rem 0;
}

.category-tree .list-group-item {
    padding: 0.5rem 0.75rem;
}

.category-item:hover {
    background: #f8f9fa;
}

.category-item.active {
    background: #007bff;
    color: white;
}

.document-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.file-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.category-selector,
.tag-selector {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.category-level-1,
.category-level-2,
.tag-level-1,
.tag-level-2 {
    margin-bottom: 0.5rem;
}

.category-confirm,
.tag-confirm {
    text-align: center;
    margin-top: 0.5rem;
}

.selected-tags-display {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    min-height: 60px;
    background: white;
}

.selected-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.875rem;
    position: relative;
}

.selected-tag .remove-tag {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

.selected-tag .remove-tag:hover {
    color: #ff6b6b;
}

.search-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.progress-bar-container {
    margin-top: 1rem;
    display: none;
}

.file-type-pdf {
    color: #dc3545;
}

.file-type-word {
    color: #2b579a;
}

.file-type-excel {
    color: #217346;
}

.file-type-image {
    color: #28a745;
}

.file-type-text {
    color: #6c757d;
}

/* FAQ Management Styles */
.faq-list {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.faq-card {
    border-left: 4px solid #007bff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #666;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    background: none;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}