/* ============================================
   逗号CMS - 手册 & 帮助中心样式
============================================ */

/* ============================================
   一、手册布局
============================================ */
.manual-layout {
    display: flex;
    max-width: 1320px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    gap: 28px;
    align-items: flex-start;
}
.manual-layoutt {
    display: flex;
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    gap: 28px;
    align-items: flex-start;
}
.manual-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    z-index: 10;
}
.manual-sidebar::-webkit-scrollbar { width: 4px; }
.manual-sidebar::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 4px; }

.manual-sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #eef0f2;
}
.manual-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 16px;
    border-bottom: 1px solid #eef0f2;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity .2s;
}
.manual-sidebar-brand:hover { opacity: 0.85; }
.manual-sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.manual-sidebar-brand .brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0px;
}
.manual-sidebar-brand:hover .brand-name { color: #FF6B35; }
.manual-sidebar-brand .brand-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.manual-sidebar-nav a {
    display: block;
    padding: 9px 14px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all .2s;
}
.manual-sidebar-nav a:hover,
.manual-sidebar-nav a.active {
    background: #fff5f0;
    color: #FF6B35;
    font-weight: 700;
}
.manual-sidebar-nav a i {
    width: 18px;
    margin-right: 8px;
    text-align: center;
    font-size: 13px;
    opacity: .8;
}
.manual-sidebar-nav a:hover i,
.manual-sidebar-nav a.active i {
    opacity: 1;
}
.manual-sidebar-nav a.manual-faq-search-btn {
    margin-top: 10px;
    padding-top: 12px;
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 100%);
    color: #fff !important;
    border-top: none;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.manual-sidebar-nav a.manual-faq-search-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d35400 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.4);
}
.manual-sidebar-nav a.manual-faq-search-btn i {
    color: #fff;
    opacity: 1;
}

.manual-main {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

/* ============================================
   二、手册内容
============================================ */
.manual-hero {
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 100%);
    border-radius: 18px;
    padding: 40px 36px;
    color: #fff;
    margin-bottom: 26px;
    box-shadow: 0 8px 30px rgba(255,107,53,0.25);
}
.manual-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.manual-hero .subtitle { font-size: 15px; opacity: 0.95; line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-meta .tag {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 16px;
}
.manual-heroo {
    border-radius: 18px;
    padding: 40px 36px;
    color: #000;
    margin-bottom: 26px;
    box-shadow: 0 2px 12px #e0e0e0;
    border: 1px solid #ddd;
    scroll-margin-top: 90px;
}
.manual-heroo h1 { font-size: 23px; font-weight: 800; margin-bottom: 12px; }
.manual-heroo .subtitle { font-size: 15px; opacity: 0.95; line-height: 1.7; }
.hero-metao { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-metao .tag {
    border: 1px solid #666;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 16px;
}
.manual-section {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eef0f2;
    margin-bottom: 22px;
    scroll-margin-top: 90px;
}
.manual-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef0f2;
    display: flex;
    align-items: center;
    gap: 10px;
}
.manual-section h2 i { color: #FF6B35; font-size: 18px; }

.manual-content {
    font-size: 16px;
    color: #444;
    line-height: 1.85;
    word-break: break-word;
    overflow-wrap: break-word;
}
.manual-content p { margin-bottom: 12px; }
.manual-content ul,
.manual-content ol { margin: 10px 0 14px 22px; }
.manual-content li { margin-bottom: 6px; }
.manual-content img { max-width: 100%; height: auto; border-radius: 8px; }
.manual-content a { color: #FF6B35; }

.manual-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 22px 0 12px;
}
.manual-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 22px 0 10px;
    padding-left: 12px;
    border-left: 4px solid #FF6B35;
}
.manual-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 16px 0 8px;
}
.manual-content strong { color: #222; }

.manual-content code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #d43a2a;
    font-family: 'SF Mono', 'Consolas', monospace;
    border: 1px solid #e8eaed;
}

.manual-content pre {
    background: #2d2d3a;
    color: #e0e0e0;
    padding: 16px 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.7;
    font-family: 'SF Mono', 'Consolas', monospace;
}
.manual-content pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.manual-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eef0f2;
}
.manual-content th,
.manual-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f2;
    text-align: left;
}
.manual-content th {
    background: #fafbfc;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}
.manual-content tr:last-child td { border-bottom: none; }
.manual-content tr:hover td { background: #fafbfc; }

/* 提示框 */
.manual-content .tip,
.manual-content .warn,
.manual-content .success {
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 15px;
    color: #1a1a1a;
    display: flex;
    gap: 10px;
    line-height: 1.7;
}
.manual-content .tip {
    background: #f4f9ff;
    border-left: 4px solid #5b9bd5;
}
.manual-content .tip::before {
    content: '💡';
    flex-shrink: 0;
    font-size: 16px;
}
.manual-content .warn {
    background: #fff9f0;
    border-left: 4px solid #e0a030;
}
.manual-content .warn::before {
    content: '⚠️';
    flex-shrink: 0;
    font-size: 16px;
}
.manual-content .success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}
.manual-content .success::before {
    content: '✅';
    flex-shrink: 0;
    font-size: 16px;
}

/* 功能特色卡片 */
.manual-content .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.manual-content .feature-item {
    padding: 20px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf5, #fff5f0);
    border: 1px solid #ffe5d5;
    transition: all .3s;
}
.manual-content .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.12);
    border-color: #ffcdb0;
}
.manual-content .feature-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(255,107,53,0.25);
}
.manual-content .feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}
.manual-content .feature-item p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* 重要步骤提示框 */
.manual-content .step-important {
    background: linear-gradient(135deg, #fff5f0, #ffece0);
    border: 2px dashed #FF6B35;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
}
.manual-content .step-important .step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #FF6B35;
    margin-bottom: 12px;
}
.manual-content .step-important .step-title .badge {
    background: #FF6B35;
    color: #fff;
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.manual-content .step-important ol {
    margin: 0 0 0 20px;
    color: #333;
}
.manual-content .step-important li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* 手动 HTML 内容里的截图 */
.manual-content .screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.manual-content .screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f6f8;
    border: 1px solid #eef0f2;
    transition: all .3s;
    cursor: pointer;
    position: relative;
}
.manual-content .screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255,107,53,0.15);
    border-color: #ffcdb0;
}
.manual-content .screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #f0f0f0;
}
.manual-content .screenshot-item .screenshot-label {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    background: #fff;
    border-top: 1px solid #eef0f2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.manual-content .screenshot-item .screenshot-label i {
    color: #FF6B35;
    font-size: 14px;
}
.manual-content .modal-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}
.manual-content .modal-preview.active { display: flex; }
.manual-content .modal-preview img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* 代码块复制按钮 */
.code-block-wrap {
    position: relative;
    margin: 14px 0;
}
.code-block-wrap pre {
    margin: 0;
    max-height: 600px;
    overflow-y: auto;
}
.code-block-wrap .code-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,107,53,0.95);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}
.code-block-wrap .code-copy-btn:hover {
    background: #FF6B35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.5);
}
.code-block-wrap .code-copy-btn.copied { background: #4caf50; }

/* 自动渲染的截图区 */
.manual-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.manual-screenshots .screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f6f8;
    border: 1px solid #eef0f2;
    cursor: pointer;
    transition: all .3s;
}
.manual-screenshots .screenshot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,107,53,0.15);
    border-color: #ffcdb0;
}
.manual-screenshots .screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.manual-screenshots .screenshot-label {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border-top: 1px solid #eef0f2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.manual-screenshots .screenshot-label i {
    color: #FF6B35;
    font-size: 14px;
}

/* 更新日志 */
.manual-changelog { font-size: 14px; color: #444; }
.changelog-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.changelog-item:last-child { border-bottom: none; }
.changelog-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.changelog-version {
    background: #FF6B35;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}
.changelog-name { font-size: 15px; font-weight: 600; color: #333; }
.changelog-date { font-size: 12px; color: #999; margin-left: auto; }
.changelog-desc { color: #666; line-height: 1.7; }

/* 常见问题 */
.manual-faq .faq-item {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}
.manual-faq .faq-item:hover {
    background: #fff2ee;
}
.manual-faq .faq-item:last-child { border-bottom: none; }
.manual-faq .faq-title {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.manual-faq .faq-title i { color: #FF6B35; margin-right: 6px; }
.manual-faq .faq-content { color: #555; line-height: 1.8; }

/* 图片预览弹窗 */
.manual-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}
.manual-preview-modal.active { display: flex; }
.manual-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.manual-preview-modal .preview-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity .3s;
}
.manual-preview-modal .preview-close:hover { opacity: 1; }

/* ============================================
   三、问题搜索弹窗
============================================ */
.faq-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    backdrop-filter: blur(4px);
}
.faq-search-modal.active { display: flex; }

.faq-search-box {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    height: 700px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.faq-search-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
.faq-search-close:hover { color: #FF6B35; }

.faq-search-header {
    padding: 24px 28px 18px;
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 60%, #d35400 100%);
    color: #fff;
}
.faq-search-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.faq-search-header h3 i { color: #fff; margin-right: 8px; }
.faq-search-header p { font-size: 13px; color: rgba(255,255,255,0.9); }

.faq-search-input-wrap {
    padding: 16px 28px;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    background: #fafbfc;
}
.faq-search-icon {
    position: absolute;
    left: 42px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
}
.faq-search-input {
    flex: 1;
    padding: 12px 16px 12px 42px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all .25s;
    background: #fff;
}
.faq-search-input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.faq-search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.faq-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,107,53,0.45);
}

.faq-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 28px;
    right: 28px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #eef0f2;
    max-height: 500px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 4px;
}
.faq-suggest-dropdown.active { display: block; }
.faq-suggest-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background .2s;
}
.faq-suggest-item:last-child { border-bottom: none; }
.faq-suggest-item:hover,
.faq-suggest-item.active {
    background: #fff5f0;
}
.faq-suggest-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.faq-suggest-item-title i {
    color: #FF6B35;
    font-size: 13px;
    flex-shrink: 0;
}
.faq-suggest-item-title .faq-suggest-highlight {
    color: #FF6B35;
    font-weight: 700;
}
.faq-suggest-item-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.faq-suggest-theme-tag {
    display: inline-block;
    padding: 1px 8px;
    background: #fff5f0;
    color: #FF6B35;
    border-radius: 8px;
    font-size: 11px;
}
.faq-suggest-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.faq-search-result {
    flex: 1;
    overflow-y: auto;
    padding: 16px 28px 24px;
}
.faq-search-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}
.faq-search-empty i {
    font-size: 40px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}
.faq-search-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 15px;
}
.faq-search-loading i { margin-right: 8px; color: #FF6B35; }

.faq-search-count {
    font-size: 13px;
    color: #999;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.faq-search-count strong { color: #FF6B35; font-size: 15px; }

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

.faq-search-item {
    background: #fafbfc;
    border-radius: 10px;
    padding: 14px 18px;
    border: 1px solid #f0f0f0;
    transition: all .25s;
    cursor: pointer;
}
.faq-search-item:hover {
    background: #fff;
    border-color: #FFD5C0;
    box-shadow: 0 4px 12px rgba(255,107,53,0.08);
    transform: translateY(-1px);
}
.faq-search-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.5;
}
.faq-search-item-title i {
    color: #FF6B35;
    margin-right: 6px;
}
.faq-search-theme-tag {
    display: inline-block;
    padding: 1px 8px;
    background: #fff5f0;
    color: #FF6B35;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
    vertical-align: middle;
}
.faq-search-item-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
.faq-search-item-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 6px 0;
}
.faq-search-item-content p { margin-bottom: 6px; }
.faq-search-item-content p:last-child { margin-bottom: 0; }

.faq-search-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0 8px;
}
.faq-pager-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 2px 8px rgba(255,107,53,0.25);
}
.faq-pager-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}
.faq-pager-info {
    font-size: 13px;
    color: #999;
}

/* ============================================
   四、问答详情页
============================================ */
.faq-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    display: flex;
    gap: 26px;
    align-items: flex-start;
}
.faq-detail-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid #eef0f2;
}
.faq-detail-side {
    width: 300px;
    flex-shrink: 0;
}
.faq-detail-head {
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 22px;
}
.faq-detail-head h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.faq-detail-head h1 i {
    color: #FF6B35;
    font-size: 22px;
    margin-top: 4px;
    flex-shrink: 0;
}
.faq-detail-head h1 span {
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}
.faq-detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}
.faq-detail-meta .theme-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #fff5f0;
    color: #FF6B35;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}
.faq-detail-meta .theme-tag:hover {
    background: #FF6B35;
    color: #fff;
}

/* 详情页正文：答圆标 + 正文并列 */
.faq-detail-content {
    font-size: 16px;
    color: #333;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: break-word;
}
.faq-detail-content::before {
    content: '答';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
    float: left;
    margin-top: 4px;
}
.faq-detail-content::after {
    content: '';
    display: block;
    clear: both;
}
.faq-detail-content p,
.faq-detail-content span,
.faq-detail-content div,
.faq-detail-content a,
.faq-detail-content strong,
.faq-detail-content em {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}
.faq-detail-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
}
.faq-detail-content p { margin-bottom: 12px; }
.faq-detail-content pre {
    background: #2d2d3a;
    color: #e0e0e0;
    padding: 14px 18px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
}
.faq-detail-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #d43a2a;
}
.faq-detail-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.faq-detail-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    border-collapse: collapse;
}
.faq-detail-content iframe,
.faq-detail-content video {
    max-width: 100%;
}
.faq-detail-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.faq-detail-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all .25s;
}
.faq-detail-btn-back {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}
.faq-detail-btn-back:hover {
    background: #e8e8e8;
    color: #333;
}
.faq-detail-btn-theme {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
}
.faq-detail-btn-theme:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}
.faq-detail-btn-all {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
}
.faq-detail-btn-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}
.faq-side-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #eef0f2;
    margin-bottom: 16px;
}
.faq-side-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B35;
    margin-bottom: 10px;
}
.faq-side-card h3 i {
    color: #FF6B35;
    margin-right: 6px;
}
.faq-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-side-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.faq-side-list li:last-child { border-bottom: none; }
.faq-side-list a {
    display: block;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.faq-side-list a:hover { color: #FF6B35; }
.faq-side-list .faq-side-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.faq-side-list .faq-side-title i {
    color: #FF6B35;
    font-size: 12px;
    flex-shrink: 0;
}

/* 详情页底部大搜索框 */
.faq-detail-search {
    margin-top: 28px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #fffaf5, #fff5f0);
    border-radius: 14px;
    border: 1px solid #ffe5d5;
}
.faq-detail-search-head {
    margin-bottom: 14px;
}
.faq-detail-search-head h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.faq-detail-search-head h3 i {
    color: #FF6B35;
    margin-right: 8px;
}
.faq-detail-search-head p {
    font-size: 13px;
    color: #999;
    margin: 0;
}
.faq-detail-search-box {
    position: relative;
    display: flex;
    gap: 10px;
}
.faq-detail-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}
.faq-detail-search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px 14px 14px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all .25s;
    background: #fff;
}
.faq-detail-search-input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.faq-detail-search-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
    flex-shrink: 0;
}
.faq-detail-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,107,53,0.45);
}
.faq-detail-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #eef0f2;
    max-height: 340px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 6px;
}
.faq-detail-suggest.active { display: block; }
.faq-detail-suggest-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background .2s;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.faq-detail-suggest-item:last-child { border-bottom: none; }
.faq-detail-suggest-item:hover,
.faq-detail-suggest-item.active {
    background: #fff5f0;
    color: #FF6B35;
}
.faq-detail-suggest-item i {
    color: #FF6B35;
    margin-right: 8px;
    font-size: 13px;
}
.faq-detail-suggest-item .kw {
    color: #FF6B35;
    font-weight: 700;
}
.faq-detail-suggest-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* ============================================
   五、问答列表页（faq.php）
============================================ */
.faq-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    display: flex;
    gap: 26px;
    align-items: flex-start;
}
.faq-page-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
.faq-page-sidebar::-webkit-scrollbar { width: 4px; }
.faq-page-sidebar::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 4px; }
.faq-page-sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #eef0f2;
}
.faq-page-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 4px 12px 12px;
    border-bottom: 1px solid #eef0f2;
    margin-bottom: 8px;
}
.faq-page-sidebar-title i {
    color: #FF6B35;
    margin-right: 6px;
}
.faq-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 9px 12px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all .2s;
}
.faq-cat-list a:hover {
    background: #fff5f0;
    color: #FF6B35;
}
.faq-cat-list a.active {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}
.faq-cat-list a .cat-icon {
    width: 18px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}
.faq-cat-list a .cat-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.faq-cat-list a .cat-count {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #999;
    flex-shrink: 0;
}
.faq-cat-list a.active .cat-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.faq-page-main {
    flex: 1;
    min-width: 0;
}
.faq-page-search {
    background: #fffdfd;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0f2;
    margin-bottom: 20px;
}
.faq-page-search h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.faq-page-search h1 i {
    color: #FF6B35;
    margin-right: 8px;
}
.faq-page-search .sub {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}
.faq-page-search-box {
    display: flex;
    gap: 10px;
    position: relative;
}
.faq-page-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}
.faq-page-search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px 14px 44px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all .25s;
    background: #fff;
}
.faq-page-search-input:focus {
    border-color: #FF6B35;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.faq-page-search-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
    flex-shrink: 0;
}
.faq-page-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,107,53,0.45);
}

.faq-page-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-page-item {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    border: 1px solid #eef0f2;
    transition: all .25s;
}
.faq-page-item:hover {
    border-color: #ffcdb0;
    box-shadow: 0 4px 16px rgba(255,107,53,0.08);
    transform: translateY(-1px);
}

/* ---- 标题行：问 + 标题（左）+ 分类标签（右）---- */
.faq-page-item-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}
.faq-page-item-head .faq-page-item-icon {
    flex-shrink: 0;
}
.faq-page-item-head .faq-page-item-title {
    flex: 1;
    min-width: 0;
}
.faq-page-item-head .faq-page-item-meta {
    flex-shrink: 0;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* 问题图标 / 回答图标 通用样式 */
.faq-page-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-page-item-icon.ask {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}
.faq-page-item-icon.answer {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}

.faq-page-item-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
}
.faq-page-item-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color .2s;
}
.faq-page-item-title a:hover {
    color: #FF6B35;
}

/* 分类标签（标题右侧） */
.faq-page-item-meta .theme-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.faq-page-item-meta .theme-tag.official {
    background: #fff5f0;
    color: #e65100;
}
.faq-page-item-meta .theme-tag.theme {
    background: #e8f4fd;
    color: #1976d2;
}

/* ---- 回答行：答 + 正文 ----
   注意：取消原先的 padding-left: 40px，改为 flex 布局 */
.faq-page-item-content-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.faq-page-item-content-wrap .faq-page-item-icon {
    flex-shrink: 0;
}
.faq-page-item-content-wrap .faq-page-item-content {
    flex: 1;
    min-width: 0;
    padding-left: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
}
.faq-page-item-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}
.faq-page-item-content p {
    margin-bottom: 8px;
}
.faq-page-item-content p:last-child {
    margin-bottom: 0;
}
.faq-page-item-more {
    padding-left: 40px;
    margin-top: 10px;
}
.faq-page-item-more a {
    font-size: 13px;
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}
.faq-page-item-more a:hover {
    color: #e55a2b;
}

.faq-page-empty {
    background: #fff;
    border-radius: 14px;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    border: 1px solid #eef0f2;
}
.faq-page-empty i {
    font-size: 48px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}
.faq-page-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}
.faq-page-loading i {
    color: #FF6B35;
    margin-right: 8px;
}

.faq-page-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 25px 0;
}
.faq-page-pager-btn {
    padding: 9px 20px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}
.faq-page-pager-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255,107,53,0.45);
}
.faq-page-pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.faq-page-pager-info {
    font-size: 14px;
    color: #999;
}
.faq-page-pager-info strong {
    color: #FF6B35;
    font-size: 16px;
}

/* ============================================
   六、提问弹窗
============================================ */
.faq-ask-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.faq-ask-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,107,53,0.45);
}
.faq-ask-btn-large {
    padding: 14px 24px;
    font-size: 15px;
    margin-bottom: 0;
}
.faq-ask-empty {
    text-align: center;
    padding: 20px 0;
}
.faq-ask-empty .faq-ask-btn {
    display: inline-flex;
    width: auto;
    padding: 12px 32px;
}

.faq-ask-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.faq-ask-modal.active { display: flex; }
.faq-ask-box {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.faq-ask-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    opacity: 0.85;
}
.faq-ask-close:hover { opacity: 1; }
.faq-ask-header {
    padding: 22px 26px 16px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
}
.faq-ask-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.faq-ask-header h3 i { margin-right: 6px; }
.faq-ask-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}
.faq-ask-body {
    padding: 22px 26px 24px;
}
.faq-ask-field {
    margin-bottom: 14px;
}
.faq-ask-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.faq-ask-input,
.faq-ask-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all .25s;
    background: #fff;
    box-sizing: border-box;
}
.faq-ask-select {
    font-size: 14px;
    cursor: pointer;
}
.faq-ask-input:focus,
.faq-ask-select:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.faq-ask-tip {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}
.faq-ask-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.faq-ask-submit {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
}
.faq-ask-submit:hover {
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}
.faq-ask-cancel {
    padding: 12px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s;
}
.faq-ask-cancel:hover { background: #e8e8e8; }

/* ============================================
   七、移动端自适应
============================================ */
@media (max-width: 900px) {
    /* ---- 手册布局 ---- */
    .manual-layout {
        flex-direction: column;
        padding: 60px 12px 40px;
        gap: 0;
        overflow-x: hidden;
    }
    .manual-layoutt {
        flex-direction: column;
        padding: 20px 12px 40px;
        gap: 0;
        overflow-x: hidden;
    }
    .manual-sidebar {
        position: sticky;
        top: 60px;
        width: 100%;
        max-height: none;
        margin-bottom: 16px;
        z-index: 50;
        overflow: visible;
    }
    .manual-sidebar-card {
        padding: 0;
        border-radius: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: none;
        border-bottom: 1px solid #eef0f2;
        background: #fff;
    }
    .manual-sidebar-brand {
        padding: 10px 14px 8px;
        margin-bottom: 0;
        border-bottom: none;
        justify-content: center;
        text-align: center;
    }
    .manual-sidebar-brand .brand-info {
        text-align: center;
    }
    .manual-sidebar-brand .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
        border-radius: 8px;
    }
    .manual-sidebar-brand .brand-name { font-size: 14px; }
    .manual-sidebar-brand .brand-sub { font-size: 11px; }

    .manual-sidebar-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        padding: 6px 12px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .manual-sidebar-nav::-webkit-scrollbar { display: none; }
    .manual-sidebar-nav a {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 14px;
        background: #f5f5f5;
        color: #555;
        border-radius: 18px;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 0;
        white-space: nowrap;
        transition: all .2s;
    }
    .manual-sidebar-nav a i {
        width: auto;
        margin-right: 0;
        font-size: 12px;
    }
    .manual-sidebar-nav a:hover,
    .manual-sidebar-nav a.active {
        background: linear-gradient(135deg, #FF6B35, #e55a2b);
        color: #fff;
        font-weight: 600;
    }
    .manual-sidebar-nav a:hover i,
    .manual-sidebar-nav a.active i {
        color: #fff;
    }
    .manual-sidebar-nav a.manual-faq-search-btn {
        margin-top: 0;
        padding: 7px 14px;
        background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 100%);
        color: #fff !important;
        border-top: none;
        box-shadow: 0 2px 8px rgba(255,107,53,0.3);
    }
    .manual-sidebar-nav a.manual-faq-search-btn i {
        color: #fff;
        opacity: 1;
    }

    .manual-main { width: 100%; }

    .manual-hero {
        padding: 24px 20px;
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .manual-hero h1 { font-size: 20px; }
    .manual-hero .subtitle { font-size: 13px; }
    
    .manual-heroo {
        padding: 24px 20px;
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .manual-heroo h1 { font-size: 20px; }
    .manual-heroo .subtitle { font-size: 13px; }

    .manual-section {
        padding: 20px 18px;
        border-radius: 12px;
        margin-bottom: 16px;
        scroll-margin-top: 130px;
    }
    .manual-section h2 {
        font-size: 17px;
        margin-bottom: 14px;
    }
    .manual-section h2 i { font-size: 16px; }

    .manual-content {
        font-size: 15px;
        line-height: 1.8;
    }
    .manual-content h3 { font-size: 15px; }
    .manual-content pre {
        font-size: 12px;
        padding: 12px 14px;
        border-radius: 8px;
    }
    .manual-content .feature-grid { grid-template-columns: 1fr; }
    .manual-content .screenshot-grid { grid-template-columns: 1fr; }
    .manual-content table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    .manual-content th,
    .manual-content td { padding: 8px 10px; }

    .manual-screenshots {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ---- 问题搜索弹窗 ---- */
    .faq-search-modal { padding-top: 30px; }
    .faq-search-box { width: 94%; max-height: 88vh; }
    .faq-search-header { padding: 18px 18px 12px; }
    .faq-search-header h3 { font-size: 16px; }
    .faq-search-header p { font-size: 12px; }
    .faq-search-input-wrap {
        padding: 12px 14px;
        flex-wrap: wrap;
    }
    .faq-search-icon {
        left: 26px;
        font-size: 14px;
    }
    .faq-search-input {
        width: 100%;
        padding: 10px 14px 10px 38px;
        font-size: 14px;
    }
    .faq-search-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }
    .faq-suggest-dropdown {
        left: 14px;
        right: 14px;
    }
    .faq-search-result { padding: 12px 14px 18px; }
    .faq-search-item { padding: 12px 14px; }
    .faq-search-item-title { font-size: 14px; }
    .faq-search-item-content { font-size: 13px; }
    .faq-search-pager { gap: 10px; }
    .faq-pager-btn { padding: 7px 14px; font-size: 12px; }

    .manual-preview-modal .preview-close {
        top: 12px;
        right: 18px;
        font-size: 32px;
    }

    /* ---- 问答详情页 ---- */
    .faq-detail-page {
        flex-direction: column;
        padding: 80px 12px 30px;
        gap: 16px;
        overflow-x: hidden;
    }
    .faq-detail-side { width: 100%; }
    .faq-detail-main {
        padding: 22px 18px;
        border-radius: 12px;
        overflow-x: hidden;
    }
    .faq-detail-head h1 { font-size: 19px; }
    .faq-detail-head h1 i { font-size: 18px; }
    .faq-detail-content {
        font-size: 15px;
        line-height: 1.8;
    }
    .faq-detail-actions a {
        padding: 8px 16px;
        font-size: 13px;
    }
    .faq-side-card { padding: 14px; }
    .faq-side-card h3 { font-size: 14px; }
    .faq-detail-search {
        margin-top: 20px;
        padding: 18px 16px;
    }
    .faq-detail-search-head h3 {
        font-size: 15px;
    }
    .faq-detail-search-box {
        flex-direction: column;
    }
    .faq-detail-search-icon {
        top: 22px;
    }
    .faq-detail-search-btn {
        width: 100%;
    }

    /* ---- 问答列表页 ---- */
    .faq-page {
        flex-direction: column;
        padding: 20px 12px 30px;
        gap: 0;
        overflow-x: hidden;
    }
    .faq-page-sidebar {
        width: 100%;
        position: sticky;
        top: 60px;
        max-height: none;
        margin-bottom: 14px;
        z-index: 50;
        overflow: visible;
    }
    .faq-page-sidebar-card {
        padding: 0;
        border-radius: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: none;
        border-bottom: 1px solid #eef0f2;
        background: #fff;
    }
    .faq-page-sidebar-title {
        display: none;
    }
    .faq-cat-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 10px 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .faq-cat-list::-webkit-scrollbar {
        display: none;
    }
    .faq-cat-list li {
        flex-shrink: 0;
    }
    .faq-cat-list a {
        display: inline-flex;
        padding: 7px 14px;
        background: #f5f5f5;
        border-radius: 18px;
        font-size: 13px;
        margin-bottom: 0;
        white-space: nowrap;
        gap: 5px;
    }
    .faq-cat-list a:hover {
        background: #fff5f0;
    }
    .faq-cat-list a.active {
        background: linear-gradient(135deg, #FF6B35, #e55a2b);
        color: #fff;
    }
    .faq-cat-list a .cat-count {
        background: rgba(0,0,0,0.08);
    }
    .faq-cat-list a.active .cat-count {
        background: rgba(255,255,255,0.25);
    }

    .faq-page-search { padding: 18px 16px; }
    .faq-page-search h1 { font-size: 17px; }
    .faq-page-search-box { flex-direction: column; }
    .faq-page-search-btn { width: 100%; }
    .faq-page-item { padding: 16px 16px; }
    .faq-page-item-title { font-size: 15px; }
    .faq-page-item-head { flex-wrap: wrap; }
    .faq-page-item-head .faq-page-item-meta {
        width: 100%;
        padding-left: 40px;
        margin-top: -4px;
    }
    .faq-page-item-content-wrap .faq-page-item-content {
        font-size: 14px;
    }
    .faq-page-item-more {
        padding-left: 40px;
    }

    /* ---- 提问弹窗 ---- */
    .faq-ask-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    .faq-ask-modal {
        padding: 0 10px;
    }
    .faq-ask-box {
        width: 100%;
        max-width: 100%;
    }
    .faq-ask-header { padding: 18px 18px 12px; }
    .faq-ask-header h3 { font-size: 16px; }
    .faq-ask-body { padding: 18px 18px 20px; }
    .faq-ask-actions { flex-direction: column; }
    .faq-ask-submit,
    .faq-ask-cancel { width: 100%; }
}

@media (max-width: 480px) {
    .manual-layout { padding: 60px 8px 30px; }
    .manual-layoutt { padding: 20px 8px 30px; }
    .manual-section { padding: 16px 14px; }
    .manual-section h2 { font-size: 16px; }
    .manual-hero { padding: 60px 16px; }
    .manual-hero h1 { font-size: 18px; }
    .manual-heroo { padding: 20px 16px; }
    .manual-heroo h1 { font-size: 18px; }
    .manual-sidebar-nav a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ============================================
   全屏截图查看器
============================================ */
.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.screenshot-lightbox.show {
    display: block;
}

.screenshot-lightbox .lb-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.screenshot-lightbox .lb-title {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.screenshot-lightbox .lb-count {
    font-size: 13px;
    opacity: 0.75;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}
.screenshot-lightbox .lb-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.screenshot-lightbox .lb-close:hover { opacity: 1; }

.screenshot-lightbox .lb-scroll {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.screenshot-lightbox .lb-scroll img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.screenshot-lightbox .lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffd5c6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.screenshot-lightbox .lb-arrow:hover {
    background: rgba(255, 107, 53, 0.85);
    border-color: #FF6B35;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
}
.screenshot-lightbox .lb-prev { left: 20px; }
.screenshot-lightbox .lb-next { right: 20px; }

@media (max-width: 768px) {
    .screenshot-lightbox .lb-topbar {
        height: 50px;
        padding: 0 12px;
        gap: 8px;
    }
    .screenshot-lightbox .lb-title { font-size: 13px; }
    .screenshot-lightbox .lb-count {
        font-size: 11px;
        padding: 2px 8px;
    }
    .screenshot-lightbox .lb-close { font-size: 26px; }
    .screenshot-lightbox .lb-scroll { top: 50px; }
    .screenshot-lightbox .lb-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .screenshot-lightbox .lb-prev { left: 8px; }
    .screenshot-lightbox .lb-next { right: 8px; }
}

.faq-ask-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.faq-ask-btn-group .faq-ask-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    line-height: 1;
    box-sizing: border-box;
    text-decoration: none;
    vertical-align: middle;
}
.faq-ask-btn-group .faq-ask-btn-large i {
    line-height: 1;
}

.manual-code-wrap {
    margin: 0;
}
.manual-code-block {
    background: #2d2d3a;
    color: #e0e0e0;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.75;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
    white-space: pre;
    word-break: normal;
    tab-size: 4;
    margin: 0;
}
.manual-code-block code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    white-space: pre;
}
@media (max-width: 768px) {
    .manual-code-block {
        padding: 14px 16px;
        font-size: 12px;
        border-radius: 8px;
    }
}

.manual-code-wrap {
    margin: 0;
    position: relative;
}
.manual-code-block {
    background: #2d2d3a;
    color: #e0e0e0;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.75;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
    white-space: pre;
    word-break: normal;
    tab-size: 4;
    margin: 0;
}
.manual-code-block code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    white-space: pre;
}
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(255, 107, 53, 0.9);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-family: inherit;
}
.code-copy-btn:hover {
    background: #FF6B35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
}
.code-copy-btn.copied {
    background: #27ae60;
}
.code-copy-btn i {
    font-size: 12px;
}
@media (max-width: 768px) {
    .manual-code-block {
        padding: 42px 16px 14px;
        font-size: 12px;
        border-radius: 8px;
    }
    .code-copy-btn {
        top: 8px;
        right: 8px;
        padding: 5px 12px;
        font-size: 12px;
    }
}