/* ============================================================
   🚀 极奇策 RPA - 文档与帮助中心专属样式库 (Doc & Help Center CSS)
   涵盖：帮助首页、文档分类页、文档详情页、搜索结果页
   ============================================================ */

/* ============================================================
   0. 全局重置与基础底座 (Reset & Base)
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: #ffffff;
    color: #202124;
    font-family: Inter, system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* 选中色 */
::selection {
    background: #1967d2;
    color: #ffffff;
}
/* 滚动条全局美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f3f4; }
::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #bdc1c6; }

/* ============================================================
   0.1 全局组件：按钮跟随鼠标光晕特效 (Mouse Glow Spotlight)
   ============================================================ */
.mouse-glow, .mouse-glow-blue {
    position: relative;
    overflow: hidden;
}
.mouse-glow::before, .mouse-glow-blue::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}
/* 深色/渐变按钮使用白色光晕 */
.mouse-glow::before {
    background: radial-gradient(circle 90px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}
/* 浅色/白色按钮使用蓝色光晕 */
.mouse-glow-blue::before {
    background: radial-gradient(circle 90px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.25) 0%, transparent 100%);
}
.mouse-glow:hover::before, .mouse-glow-blue:hover::before {
    opacity: 1;
}
/* 确保按钮内的图标和文字在光晕的上方 */
.mouse-glow > *, .mouse-glow-blue > * {
    position: relative;
    z-index: 10;
}

/* ============================================================
   1. 基础布局与公共骨架 (Global Layout)
   ============================================================ */
.help-page, .doc-page, .search-page-bg {
    background-color: #ffffff;
    min-height: calc(100vh - 64px);
    font-family: Inter, system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}
.doc-layout {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 64px);
}
.doc-main-area {
    flex: 1;
    min-width: 0;
    padding: 0 56px;
    background: #ffffff;
    min-height: calc(100vh);
}
.doc-article {
    margin: 0 auto;
    padding: 70px 0 100px;
}

/* ============================================================
   2. 顶部巨型沉浸搜索区 (Search Hero)
   ============================================================ */
.search-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    padding: 100px 0 40px 0;
    text-align: center;
}
.search-input-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    transition: all 0.3s ease;
}
.search-input-wrapper:focus-within { transform: translateY(-2px); }
.search-input-wrapper input {
    width: 100%;
    padding: 18px 120px 18px 56px; 
    font-size: 16px; color: #1e293b; background: #ffffff;
    border: 2px solid #e2e8f0; border-radius: 16px; outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); transition: all 0.3s ease;
}
.search-input-wrapper input:focus { border-color: #2563EB; box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12); }
.search-input-wrapper .search-icon {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; width: 20px; height: 20px; transition: color 0.3s;
}
.search-input-wrapper:focus-within .search-icon { color: #2563EB; }
.clear-btn {
    position: absolute; right: 90px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%; background-color: #e2e8f0;
    color: #64748b; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.2s;
}
.clear-btn:hover { background-color: #cbd5e1; color: #1e293b; }
.clear-btn i { width: 14px; height: 14px; }
.search-input-wrapper.has-val .clear-btn { opacity: 1; visibility: visible; }
.search-suggest { margin-top: 16px; font-size: 13px; color: #5f6368; }
.search-suggest a { color: #1967d2; text-decoration: none; margin: 0 6px; }
.search-suggest a:hover { text-decoration: underline; }

/* ============================================================
   3. 左侧目录树与右侧大纲 (Sidebar & Tree)
   ============================================================ */
.doc-sidebar-left, .doc-sidebar-right {
    position: sticky;
    top: 64px;
    flex-shrink: 0;
    height: calc(100vh - 64px);
    overflow-y: auto; overflow-x: hidden;
    z-index: 10;
}
.doc-sidebar-left {
    width: 280px; min-width: 200px; max-width: 420px;
    background: #fafbfc; border-right: 1px solid #e8eaed;
    display: flex; flex-direction: column;
}
.doc-sidebar-right {
    width: 240px; min-width: 180px; max-width: 360px;
    background: #ffffff; border-left: 1px solid #e8eaed;
}
.resize-handle-left, .resize-handle-right {
    position: absolute; top: 0; width: 6px; height: 100%;
    cursor: col-resize; z-index: 20; background: transparent; transition: background 0.15s;
}
.resize-handle-left { right: -3px; }
.resize-handle-right { left: -3px; }
.resize-handle-left:hover, .resize-handle-left.active, 
.resize-handle-right:hover, .resize-handle-right.active { background: #1967d2; }

/* 目录搜索 */
.sidebar-search-wrap {
    padding: 14px 14px 10px; border-bottom: 1px solid #e8eaed;
    background: #fafbfc; position: sticky; top: 0; z-index: 5; flex-shrink: 0;
}
.sidebar-search { position: relative; width: 100%; }
.sidebar-search .search-icon {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px; color: #9aa0a6; pointer-events: none; z-index: 1;
}
.sidebar-search input {
    width: 100%; padding: 7px 30px; font-size: 13px; color: #3c4043;
    background: #ffffff; border: 1px solid #dadce0; border-radius: 6px;
    outline: none; transition: all 0.15s; box-sizing: border-box; display: block;
}
.sidebar-search input::placeholder { color: #9aa0a6; }
.sidebar-search input:focus { border-color: #1967d2; box-shadow: 0 0 0 2px rgba(25,103,210,0.12); }
.sidebar-search-clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; display: none; align-items: center; justify-content: center;
    border: none; background: #e8eaed; border-radius: 50%; cursor: pointer; color: #5f6368; z-index: 1;
}
.sidebar-search-clear.show { display: flex; }
.sidebar-search-clear:hover { background: #dadce0; }
.sidebar-search-clear svg { width: 12px; height: 12px; }
.sidebar-title, .toc-title {
    padding: 12px 16px 8px; font-size: 11px; font-weight: 700; color: #9aa0a6;
    text-transform: uppercase; letter-spacing: 0.08em; flex-shrink: 0;
}
.toc-title { padding: 16px 20px 12px; }

/* 目录树项 */
.doc-tree { padding: 0 8px 20px; flex: 1; }
.doc-tree-item { margin: 1px 0; }
.doc-tree-row { display: flex; align-items: center; justify-content: space-between; border-radius: 6px; transition: background 0.12s; padding-right: 4px; }
.doc-tree-row:hover { background: #f0f2f5; }
.doc-tree-link, .doc-tree-article {
    flex: 1; min-width: 0; padding: 7px 8px; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; line-height: 1.4;
}
.doc-tree-article { display: flex; align-items: center; padding: 6px 8px; }
.doc-tree-link.level-0 { font-size: 14.5px; font-weight: 600; color: #202124; }
.doc-tree-link.level-1 { font-size: 13.5px; font-weight: 500; color: #3c4043; padding-left: 24px; }
.doc-tree-link.level-2 { font-size: 12.5px; font-weight: 400; color: #5f6368; padding-left: 44px; }
.doc-tree-link.level-3 { font-size: 12px; font-weight: 400; color: #80868b; padding-left: 64px; }
.doc-tree-article.level-1 { font-size: 13px; color: #5f6368; padding-left: 24px; }
.doc-tree-article.level-2 { font-size: 12.5px; color: #80868b; padding-left: 44px; }
.doc-tree-article.level-3 { font-size: 12px; color: #9aa0a6; padding-left: 64px; }
.doc-tree-link.active, .doc-tree-article.active { background: #e8f0fe; color: #1967d2 !important; font-weight: 600; }
.doc-tree-article:hover { color: #1967d2; background: #f0f6ff; }
.doc-tree-article svg { width: 13px; height: 13px; margin-right: 6px; flex-shrink: 0; color: #9aa0a6; }
.doc-tree-article.active svg { color: #1967d2; }
.doc-tree-toggle {
    flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
    background: transparent; cursor: pointer; border-radius: 4px; color: #9aa0a6;
    transition: transform 0.15s, background 0.12s; order: 2; border: none;
}
.doc-tree-toggle:hover { background: #e8eaed; color: #5f6368; }
.doc-tree-toggle.expanded { transform: rotate(90deg); }
.doc-tree-toggle svg { width: 14px; height: 14px; }
.doc-tree-empty { padding: 24px 16px; text-align: center; font-size: 12.5px; color: #9aa0a6; }

/* 右侧大纲项 */
.toc-link {
    display: block; padding: 5px 20px 5px 24px; font-size: 12.5px; color: #5f6368;
    text-decoration: none; transition: all 0.12s; line-height: 1.5;
    border-left: 2px solid transparent; margin: 1px 0;
}
.toc-link.level-1, .toc-link.level-3 { padding-left: 40px; font-size: 12px; color: #80868b; }
.toc-link:hover { color: #1967d2; background: #f0f6ff; }
.toc-link.active { color: #1967d2; font-weight: 600; background: #e8f0fe; border-left-color: #1967d2; }

/* 侧边栏滚动条 */
.doc-sidebar-left::-webkit-scrollbar, .doc-sidebar-right::-webkit-scrollbar { width: 6px; }
.doc-sidebar-left::-webkit-scrollbar-track, .doc-sidebar-right::-webkit-scrollbar-track { background: transparent; }
.doc-sidebar-left::-webkit-scrollbar-thumb, .doc-sidebar-right::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 3px; }
.doc-sidebar-left::-webkit-scrollbar-thumb:hover, .doc-sidebar-right::-webkit-scrollbar-thumb:hover { background: #bdc1c6; }

/* ============================================================
   4. 面包屑与通用排版 (Breadcrumbs)
   ============================================================ */
.doc-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; padding: 10px 0;
    margin-bottom: 28px; font-size: 13px;
}
.doc-breadcrumb a { display: inline-flex; align-items: center; color: #5f6368; text-decoration: none; padding: 3px 8px; border-radius: 4px; transition: all 0.12s; font-weight: 400; }
.doc-breadcrumb a:hover { color: #1967d2; background: #e8f0fe; }
.doc-breadcrumb a svg { width: 14px; height: 14px; margin-right: 4px; }
.doc-breadcrumb .sep { color: #dadce0; font-size: 12px; margin: 0 2px; display: inline-flex; align-items: center; }
.doc-breadcrumb .sep svg { width: 12px; height: 12px; }
.doc-breadcrumb .current { color: #202124; font-weight: 600; padding: 3px 8px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   5. 帮助首页专属 (help.html)
   ============================================================ */
.help-container { max-width: 1140px; margin: 0 auto; padding: 48px 24px 80px; }
.section-header { font-size: 20px; font-weight: 600; color: #202124; margin-bottom: 24px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; margin-bottom: 64px; }
.qa-card { background: #ffffff; border-radius: 12px; padding: 24px; border: 1px solid #e8eaed; transition: all 0.3s ease; display: flex; flex-direction: column; }
.qa-card:hover { box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.12); border-color: #3b82f6; transform: translateY(-4px); }
.qa-card-header { display: flex; align-items: center; margin-bottom: 16px; }
.qa-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 12px; }
.qa-card-icon i { width: 20px; height: 20px; }
.qa-card-title { font-size: 18px; font-weight: 700; color: #1e293b; text-decoration: none; transition: color 0.2s; }
.qa-card-title:hover { color: #3b82f6; }
.qa-card-list { list-style: none; padding: 0; margin: 0 0 20px 0; flex-grow: 1; }
.qa-card-list li { margin-bottom: 14px; padding-left: 0; }
.qa-card-list a { color: #64748b; font-size: 14px; text-decoration: none; transition: color 0.2s; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-card-list a:hover { color: #3b82f6; }
.qa-card-more { font-size: 13px; color: #3b82f6; text-decoration: none; font-weight: 600; margin-top: auto; display: inline-block; }
.qa-card-more:hover { color: #2563eb; text-decoration: underline; }
.support-banner { background: #f0f6ff; border: 1px solid #d2e3fc; border-radius: 12px; padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.support-banner h3 { font-size: 20px; font-weight: 600; color: #1967d2; margin: 0 0 8px 0; }
.support-banner p { font-size: 14px; color: #3c4043; margin: 0 0 24px 0; }
.support-btn { display: inline-flex; align-items: center; gap: 8px; background: #1967d2; color: #ffffff; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.support-btn:hover { background: #1557b0; }
.support-btn i { width: 16px; height: 16px; }

/* ============================================================
   6. 栏目分类页专属 (Category)
   ============================================================ */
.category-title, .doc-title { font-size: 34px; font-weight: 700; color: #202124; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 16px; }
.category-description { font-size: 15px; color: #5f6368; line-height: 1.8; margin-bottom: 32px; }
.content-list { display: flex; flex-direction: column; gap: 4px; }
.content-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #3c4043; transition: all 0.15s; }
.content-list-item:hover { background: #f0f6ff; color: #1967d2; }
.content-list-item i { width: 18px; height: 18px; color: #9aa0a6; flex-shrink: 0; }
.content-list-item:hover i { color: #1967d2; }
.content-list-item .item-text { flex: 1; font-size: 14px; font-weight: 500; }
.content-list-item .item-badge { font-size: 12px; color: #9aa0a6; }

/* ============================================================
   7. 详情页专属与富文本排版 (Article Content)
   ============================================================ */
img.jqc-lazyload { opacity: 1; filter: blur(8px); transform: scale(0.98); background-color: #f1f5f9; min-height: 100px; transition: filter 0.6s ease, transform 0.6s ease; }
img.jqc-loaded { opacity: 1; filter: blur(0); transform: scale(1); transition: filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

.doc-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 0 18px 0; margin-bottom: 36px; border-bottom: 1px solid #e8eaed; background: transparent; }
.doc-meta-left { display: flex; align-items: center; gap: 24px; font-size: 13px; color: #5f6368; flex-wrap: wrap; }
.doc-meta-left span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.doc-meta-left svg { width: 15px; height: 15px; color: #9aa0a6; flex-shrink: 0; }
.doc-meta-right { display: flex; align-items: center; gap: 8px; }
.doc-meta-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dadce0; background: #ffffff; cursor: pointer; border-radius: 50%; color: #5f6368; transition: all 0.15s ease; }
.doc-meta-btn:hover { background: #f0f6ff; border-color: #1967d2; color: #1967d2; box-shadow: 0 2px 8px rgba(25, 103, 210, 0.12); }
.doc-meta-btn:active { transform: scale(0.95); }
.doc-meta-btn svg { width: 16px; height: 16px; }

.doc-content h2, .doc-content h3, .doc-content h4 { scroll-margin-top: 80px; }
.doc-content h2 { font-size: 24px; font-weight: 700; color: #202124; margin-top: 40px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #e8eaed; letter-spacing: -0.01em; }
.doc-content h3 { font-size: 19px; font-weight: 600; color: #202124; margin-top: 30px; margin-bottom: 12px; }
.doc-content h4 { font-size: 16px; font-weight: 600; color: #3c4043; margin-top: 24px; margin-bottom: 10px; }
.doc-content p { font-size: 15px; color: #3c4043; line-height: 1.85; margin-bottom: 16px; }
.doc-content ul, .doc-content ol { font-size: 15px; color: #3c4043; line-height: 1.85; margin-bottom: 16px; padding-left: 24px; }
.doc-content li { margin-bottom: 8px; }
.doc-content a { color: #1967d2; text-decoration: none; border-bottom: 1px solid rgba(25,103,210,0.3); transition: all 0.15s; }
.doc-content a:hover { color: #1557b0; border-bottom-color: #1557b0; background: #f0f6ff; }
.doc-content pre { background: #f6f8fa; color: #24292e; padding: 18px 22px; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.7; overflow-x: auto; margin: 20px 0; border: 1px solid #e1e4e8; }
.doc-content code { background: #f1f3f4; color: #d93025; padding: 2px 7px; border-radius: 4px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.doc-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.doc-content blockquote { background: #f0f6ff; border-left: 3px solid #1967d2; padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 20px 0; font-size: 14.5px; color: #1967d2; line-height: 1.8; }
.doc-content blockquote p { margin-bottom: 0; color: #1967d2; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; border-radius: 8px; overflow: hidden; border: 1px solid #e8eaed; }
.doc-content th { background: #f8f9fa; color: #202124; font-weight: 600; padding: 12px 16px; text-align: left; border-bottom: 2px solid #e8eaed; }
.doc-content td { padding: 11px 16px; border-bottom: 1px solid #f0f2f5; color: #3c4043; }
.doc-content tr:hover td { background: #f8f9fa; }
.doc-content img { border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); margin: 20px 0; max-width: 100%; }
.doc-content hr { border: none; height: 1px; background: #e8eaed; margin: 32px 0; }

.doc-feedback { margin-top: 64px; padding: 28px 32px; background: #f8f9fa; border: 1px solid #e8eaed; border-radius: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.doc-feedback-text { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.doc-feedback-title { font-size: 15px; font-weight: 600; color: #202124; }
.doc-feedback-desc { font-size: 13px; color: #5f6368; }
.doc-feedback-btns { display: flex; gap: 10px; justify-content: center; }
.doc-feedback-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; font-size: 13px; font-weight: 500; border: 1px solid #dadce0; background: #ffffff; color: #3c4043; border-radius: 6px; cursor: pointer; transition: all 0.12s; }
.doc-feedback-btn:hover { border-color: #1967d2; color: #1967d2; background: #f0f6ff; }
.doc-feedback-btn svg { width: 15px; height: 15px; }

.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.doc-pager-card { padding: 16px 20px; background: #ffffff; border: 1px solid #e8eaed; border-radius: 8px; text-decoration: none; transition: all 0.15s; }
.doc-pager-card:hover { border-color: #1967d2; box-shadow: 0 2px 12px rgba(25,103,210,0.08); }
.doc-pager-label { font-size: 11px; color: #9aa0a6; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.doc-pager-title { font-size: 13.5px; color: #3c4043; font-weight: 500; line-height: 1.4; }
.doc-pager-card:hover .doc-pager-title { color: #1967d2; }
.doc-pager-next { text-align: right; }

/* ============================================================
   8. 搜索结果页专属 (Search Results)
   ============================================================ */
.search-layout {
    max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px;
    display: grid; grid-template-columns: 240px 1fr; gap: 48px;
}
.search-sidebar { position: sticky; top: 100px; height: fit-content; }
.filter-title { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.filter-menu-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; color: #475569; font-size: 14px; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; text-decoration: none; margin-bottom: 4px; }
.filter-menu-item:hover { background: #f1f5f9; color: #1e293b; }
.filter-menu-item.active { background: #eff6ff; color: #2563EB; font-weight: 600; }
.result-stats { font-size: 14px; color: #64748B; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.result-stats strong { color: #1e293b; font-weight: 600; }
.result-stats .kw { color: #2563EB; font-weight: 600; }
.result-list { display: flex; flex-direction: column; gap: 0; }
.result-card { padding: 24px 0; border-bottom: 1px solid #f1f5f9; transition: all 0.3s; }
.result-card:last-child { border-bottom: none; }
.result-path { font-size: 12px; color: #64748B; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.result-path i { width: 14px; height: 14px; color: #94a3b8; }
.result-path a { color: inherit; text-decoration: none; transition: color 0.2s; }
.result-path a:hover { color: #2563EB; }
.result-path .sep { color: #cbd5e1; margin: 0 4px; display: inline-flex; align-items: center; }
.result-path .sep i { width: 12px; height: 12px; }
.result-title { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 8px; line-height: 1.4; text-decoration: none; display: inline-block; transition: color 0.2s; }
.result-title:hover { color: #2563EB; text-decoration: underline; text-underline-offset: 4px; }
.result-excerpt { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.highlight-kw { color: #2563EB; font-weight: 600; background: rgba(37, 99, 235, 0.08); padding: 0 2px; border-radius: 2px; }
.result-meta { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 16px; }
.result-meta span { display: flex; align-items: center; gap: 4px; }

/* 分页器 */
.doc-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; padding-top: 32px; border-top: 1px solid #f1f5f9; }
.page-btn { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: #475569; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.page-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }
.page-btn.active { background: #2563EB; border-color: #2563EB; color: #ffffff; box-shadow: 0 4px 10px rgba(37,99,235,0.2); }
.page-btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.empty-state { text-align: center; padding: 60px 0; }
.empty-icon { width: 64px; height: 64px; color: #cbd5e1; margin: 0 auto 16px; }

/* ============================================================
   9. 响应式与移动端 (Responsive & Mobile)
   ============================================================ */
body.resizing { user-select: none; cursor: col-resize; }
body.resizing * { cursor: col-resize !important; }
.doc-mobile-toggle {
    display: none; position: fixed; top: 72px; left: 12px; z-index: 30;
    width: 36px; height: 36px; background: #ffffff; border: 1px solid #dadce0;
    border-radius: 8px; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer;
}
.doc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 15; top: 64px; }
.doc-overlay.open { display: block; }

@media (max-width: 1280px) { .doc-sidebar-right { display: none; } }
@media (max-width: 1024px) {
    .doc-sidebar-left {
        position: fixed; top: 64px; left: 0; width: 300px !important;
        transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,0.12);
        z-index: 25; transition: transform 0.25s ease;
    }
    .doc-sidebar-left.open { transform: translateX(0); }
    .resize-handle-left { display: none; }
    .doc-mobile-toggle { display: flex; }
    .doc-main-area { padding: 0 24px; }
    .doc-article { max-width: 100%; padding-top: 28px; }
}
@media (max-width: 860px) {
    .search-layout { grid-template-columns: 1fr; gap: 24px; }
    .search-sidebar { display: none; }
}
@media (max-width: 640px) {
    .doc-main-area { padding: 0 16px; }
    .category-title, .doc-title { font-size: 26px; }
    .doc-content h2 { font-size: 21px; }
    .doc-pager { grid-template-columns: 1fr; }
}