/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

/* 顶部导航 */
.top-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.brand-logo:hover {
    color: #f0f0f0;
}

.system-info {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.version {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.env {
    background: rgba(76, 175, 80, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome {
    font-size: 14px;
}

.user-avatar {
    font-size: 24px;
    cursor: pointer;
}

.admin-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 顶部业务导航 */
.top-nav-bar {
    background: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.business-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
    text-decoration: none;
}

.nav-tab:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.nav-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 主要内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 左侧导航树 */
.nav-tree-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tree-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.tree-header i {
    margin-right: 8px;
    color: #6c757d;
}

.tree-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
}

.tree-search .input-group {
    width: 100%;
}

.tree-search .form-control {
    border-radius: 0 6px 6px 0;
}

.tree-search .input-group-text {
    border-radius: 6px 0 0 6px;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.tree-content {
    padding: 16px;
}

/* 搜索工具栏 */
.search-toolbar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.search-box-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.search-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-item input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #0056b3;
}

.search-btn-group {
    display: flex;
    gap: 8px;
    align-items: end;
}

.btn-reset {
    background: #6c757d;
}

.btn-reset:hover {
    background: #545b62;
}

/* 快速通道 */
.quick-access-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.quick-access-section h3 {
    margin-bottom: 16px;
    color: #495057;
    font-size: 18px;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
}

.quick-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.quick-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.quick-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* 热门问题区块 */
.hot-issues-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
}

.update-time {
    font-size: 12px;
    color: #28a745;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 4px;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.issue-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.issue-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.issue-card .title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 16px;
}

.issue-card .description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.issue-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.issue-tag {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* 最新案例区块 */
.latest-cases-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.latest-cases-section h3 {
    margin-bottom: 16px;
    color: #495057;
    font-size: 18px;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.case-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.case-item .icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #6c757d;
}

.case-item .content {
    flex: 1;
}

.case-item .title {
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
}

.case-item .time {
    font-size: 12px;
    color: #6c757d;
}

/* 详情页面 */
.detail-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.detail-header {
    background: #f8f9fa;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

.detail-content {
    padding: 24px;
}

/* 搜索结果 */
.results-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.results-header {
    background: #f8f9fa;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 16px;
}

.results-content {
    padding: 24px;
}

/* 底部信息 */
.footer-info {
    background: #343a40;
    color: white;
    padding: 16px 0;
    text-align: center;
    margin-top: 40px;
}

.info-text {
    font-size: 14px;
    opacity: 0.9;
}

/* 知识点详情样式 */
.problem-solution {
    line-height: 1.6;
}

.solution-section {
    margin-bottom: 32px;
}

.solution-section h4 {
    color: #495057;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    font-size: 16px;
}

.content-block {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-number {
    min-width: 28px;
    height: 28px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    flex: 1;
}

.cases-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-link-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.case-link-item:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.case-link-item i:first-child {
    color: #6c757d;
}

.case-link-item span {
    flex: 1;
    color: #495057;
    font-weight: 500;
}

.case-link-item i:last-child {
    color: #6c757d;
    font-size: 12px;
}

.image-container {
    text-align: center;
}

.solution-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.solution-tag {
    background: #e7f3ff;
    color: #0056b3;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
}

.meta-item i {
    color: #007bff;
}

/* 知识点树样式 */
.knowledge-tree {
    list-style: none;
    padding-left: 0;
}

.knowledge-tree li {
    margin: 8px 0;
}

.knowledge-tree .tree-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #495057;
    font-size: 14px;
}

.knowledge-tree .tree-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

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

.knowledge-tree .tree-children {
    margin-left: 20px;
    border-left: 2px solid #e9ecef;
    padding-left: 12px;
    margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-btn-group {
        flex-direction: column;
        gap: 8px;
    }

    .date-range-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .date-separator {
        text-align: center;
    }

    .quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .issues-grid {
        grid-template-columns: 1fr;
    }

    .header-right {
        display: none;
    }

    .main-content {
        padding: 0 16px;
    }

    .meta-info {
        flex-direction: column;
        gap: 12px;
    }

    .step-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number {
        align-self: flex-start;
    }
}

/* 分类导航样式 */
.category-nav {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-btn {
    padding: 8px 16px;
    margin: 0 5px 5px 0;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

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

/* 知识点树样式 */
.knowledge-tree {
    list-style: none;
    padding-left: 0;
}

.knowledge-tree li {
    margin: 5px 0;
}

.knowledge-tree .tree-item {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.knowledge-tree .tree-item:hover {
    background-color: #f8f9fa;
}

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

.knowledge-tree .tree-item.search-highlight {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.knowledge-tree .tree-children {
    margin-left: 20px;
    border-left: 1px solid #dee2e6;
    padding-left: 10px;
}

/* 知识点卡片样式 */
.knowledge-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.knowledge-card h6 {
    color: #007bff;
    margin-bottom: 10px;
}

.knowledge-card .badge {
    font-size: 0.75em;
}

/* 知识点详情样式 */
.knowledge-detail {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.knowledge-detail h5 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.knowledge-detail .section {
    margin-bottom: 20px;
}

.knowledge-detail .section h6 {
    color: #495057;
    margin-bottom: 10px;
}

.knowledge-detail .operation-steps {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.knowledge-detail .case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.knowledge-detail .case-link {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.knowledge-detail .case-link:hover {
    background: #0056b3;
    color: white;
}

.knowledge-detail .knowledge-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}

/* 搜索结果样式 */
.search-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-item:hover {
    background-color: #f8f9fa;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item h6 {
    color: #007bff;
    margin-bottom: 8px;
}

.search-item .text-muted {
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-nav {
        padding: 10px;
    }

    .category-btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .knowledge-card {
        padding: 10px;
    }

    .knowledge-detail {
        padding: 15px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.loading i {
    font-size: 2em;
    animation: spin 1s linear infinite;
}

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

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

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-data i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #dee2e6;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    background: #e9ecef;
    border-radius: 10px;
    font-size: 0.8em;
    color: #495057;
}

#knowledgeBreadcrumb {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 20px 10px;
}

#knowledgeBreadcrumb .breadcrumb-item {
    background: #f0f4fa;
    border-radius: 4px;
    padding: 2px 10px;
    margin-right: 6px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    font-weight: 500;
}

#knowledgeBreadcrumb .breadcrumb-item.active {
    color: #fff;
    background: #0D6ECF;
    cursor: default;
}

#knowledgeBreadcrumb .mx-1 {
    color: #adb5bd;
    font-size: 1.1em;
    margin: 0 2px;
}

#knowledgeBreadcrumb .breadcrumb-item:not(.active):hover {
    background: #e2e6ea;
    color: #0a58ca;
}

.gallery-image {
    width: 100%;
}

/* 日期范围输入框样式 */
.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-inputs input {
    flex: 1;
    min-width: 120px;
}

.date-separator {
    margin: 0 8px;
    color: #666;
}

/* 富文本内容样式 */
.rich-content {
    line-height: 1.6;
    color: #333;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #2c3e50;
    font-weight: 600;
}

.rich-content h1 {
    font-size: 1.8em;
}

.rich-content h2 {
    font-size: 1.6em;
}

.rich-content h3 {
    font-size: 1.4em;
}

.rich-content h4 {
    font-size: 1.2em;
}

.rich-content h5 {
    font-size: 1.1em;
}

.rich-content h6 {
    font-size: 1em;
}

.rich-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.rich-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.rich-content blockquote {
    border-left: 4px solid #3498db;
    margin: 1em 0;
    padding: 0.5em 1em;
    background-color: #f8f9fa;
    color: #555;
}

.rich-content code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.rich-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

.rich-content pre code {
    background: none;
    padding: 0;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.rich-content table th,
.rich-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.rich-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.rich-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.rich-content a {
    color: #3498db;
    text-decoration: none;
}

.rich-content a:hover {
    text-decoration: underline;
}

.rich-content strong,
.rich-content b {
    font-weight: 600;
}

.rich-content em,
.rich-content i {
    font-style: italic;
}

.rich-content u {
    text-decoration: underline;
}

.rich-content s,
.rich-content strike {
    text-decoration: line-through;
}

.rich-content .mce-content-body {
    font-family: inherit;
}

/* 富文本编辑器在模态框中的样式 */
.modal-dialog .tox-tinymce {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-dialog .tox .tox-toolbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.modal-dialog .tox .tox-toolbar__group {
    padding: 0 4px;
}

.modal-dialog .tox .tox-tbtn {
    margin: 2px;
}

.modal-dialog .tox .tox-tbtn:hover {
    background-color: #e9ecef;
}

.modal-dialog .tox .tox-edit-area {
    border: none;
}

.modal-dialog .tox .tox-edit-area__iframe {
    background-color: white;
}

/* 图片上传进度条样式 */
.tox .tox-progress-bar {
    background-color: #007cba;
}

.tox .tox-progress-bar__bar {
    background-color: #007cba;
}

/* 富文本编辑器容器样式 */
.rich-editor-container {
    position: relative;
}

/* 全屏模式样式 - 只针对编辑器 */
.tox.tox-tinymce.tox-fullscreen {
    z-index: 9999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
}

.tox.tox-tinymce.tox-fullscreen .tox-edit-area {
    height: calc(100vh - 40px) !important;
}

.tox.tox-tinymce.tox-fullscreen .tox-edit-area__iframe {
    height: 100% !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .rich-editor-container {
        height: 400px;
    }
}

/* 子知识点面包屑样式 */
.sub-knowledge-breadcrumb {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.breadcrumb-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    white-space: nowrap;
}

.sub-knowledge-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.sub-knowledge-breadcrumb-item {
    color: #007bff;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 14px;
    text-decoration: none;
}

.sub-knowledge-breadcrumb-item:hover {
    background: #e3f2fd;
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #6c757d;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 400;
}

/* 响应式子知识点面包屑样式 */
@media (max-width: 768px) {
    .sub-knowledge-breadcrumb {
        padding: 6px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .breadcrumb-label {
        font-size: 13px;
        margin-right: 0;
        margin-bottom: 2px;
    }

    .sub-knowledge-breadcrumb-item {
        font-size: 13px;
        padding: 1px 4px;
    }

    .breadcrumb-separator {
        font-size: 11px;
    }
}

/* ========== 登录提示 ========== */
.auth-overlay.auth-overlay-brief {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.auth-overlay-box {
    text-align: center;
    color: #4a5568;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.auth-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    color: #856404;
    border-bottom: 1px solid #ffeeba;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* ========== 首页门户 ========== */
.home-portal {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}
.portal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
}
.portal-subtitle {
    font-size: 1.1rem;
}
.portal-card {
    display: block;
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
}
.portal-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.portal-card-work .portal-card-icon { color: #e53e3e; }
.portal-card-business .portal-card-icon { color: #3182ce; }
.portal-card-knowledge .portal-card-icon { color: #38a169; }
.portal-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.portal-card p {
    color: #718096;
    font-size: 0.95rem;
    min-height: 3rem;
}
.portal-card-link {
    color: #3182ce;
    font-weight: 500;
}

/* ========== 文档指引页 ========== */
.document-list .document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
}
.document-list .document-item:hover {
    background: #f7fafc;
}
.doc-icon {
    font-size: 2rem;
    width: 48px;
    text-align: center;
}
.doc-info { flex: 1; min-width: 0; }
.doc-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.doc-meta {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.doc-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.doc-preview-frame {
    width: 100%;
    height: 70vh;
    border: none;
}
.doc-text-preview {
    max-height: 70vh;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    margin: 0;
    font-size: 0.9rem;
}

/* ========== 知识库分栏布局 ========== */
.knowledge-workspace {
    min-height: calc(100vh - 220px);
}
.kb-layout {
    display: flex;
    align-items: stretch;
    min-height: 560px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.kb-sidebar {
    width: 280px;
    min-width: 200px;
    max-width: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.kb-sidebar .nav-tree-container {
    border: none;
    border-radius: 0;
    height: 100%;
}
.kb-sidebar .tree-content {
    flex: 1;
    overflow-y: auto;
}
.kb-resizer {
    width: 6px;
    cursor: col-resize;
    background: #e2e8f0;
    flex-shrink: 0;
    transition: background 0.15s;
}
.kb-resizer:hover {
    background: #3182ce;
}
.kb-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}
.kb-placeholder {
    text-align: center;
    color: #a0aec0;
    padding: 4rem 2rem;
}
.kb-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.kb-path-bar {
    font-size: 0.95rem;
    color: #4a5568;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.kb-path-bar .path-item {
    color: #3182ce;
    cursor: pointer;
}
.kb-path-bar .path-item.active {
    color: #2d3748;
    font-weight: 600;
    cursor: default;
}
.kb-path-bar .path-sep {
    color: #a0aec0;
    margin: 0 4px;
}
.kb-children-bar {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: #ebf8ff;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.kb-section-label {
    font-weight: 600;
    color: #2c5282;
    white-space: nowrap;
    font-size: 0.9rem;
}
.kb-children-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.kb-child-chip {
    border: 1px solid #90cdf4;
    background: #fff;
    color: #2b6cb0;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
}
.kb-child-chip:hover {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
}
.kb-detail-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.kb-jump-bar {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #cbd5e0;
}
.kb-jump-bar .result-jump-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}