/* ============================================================
   使用说明 · 帮助中心样式（字体加大版）
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    padding: 0;
    color: #1e293b;
    height: auto;
    overflow: visible;
}

.help-container {
    max-width: 100%;
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: auto;
    max-height: none;
    height: auto;
}

/* ===== 搜索栏 ===== */
.help-search-bar {
    flex-shrink: 0;
    padding: 8px 14px;
    background: #f8faff;
    border-bottom: 1px solid #eef2f9;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.help-search-bar .search-box {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e2e9f2;
    border-radius: 6px;
    padding: 4px 12px;
}

.help-search-bar .search-box:focus-within {
    border-color: #ff6fae;
    box-shadow: 0 0 0 3px rgba(255, 107, 174, 0.08);
}

.help-search-bar .search-box .search-icon {
    color: #7a94ad;
    font-size: 14px;
    margin-right: 8px;
}

.help-search-bar .search-box input {
    border: none;
    background: transparent;
    padding: 5px 0;
    font-size: 14px;
    width: 100%;
    outline: none;
    color: #1e293b;
}

.help-search-bar .search-box input::placeholder {
    color: #94a9be;
}

.help-search-bar .search-box .clear-btn {
    background: none;
    border: none;
    color: #94a9be;
    cursor: pointer;
    font-size: 15px;
    padding: 0 4px;
    display: none;
}

.help-search-bar .search-box .clear-btn.visible { display: block; }
.help-search-bar .search-box .clear-btn:hover { color: #4f6f8a; }

.help-search-bar .search-status {
    font-size: 12px;
    color: #617b95;
    white-space: nowrap;
}

/* ===== 主体 ===== */
.help-body {
    display: flex;
    flex: 1;
    overflow: visible;
    min-height: 400px;
    height: auto;
}

/* ===== 左侧分类 ===== */
.help-sidebar {
    width: 180px;
    min-width: 140px;
    background: #fafcff;
    border-right: 1px solid #eef2f9;
    padding: 8px 6px 8px 8px;
    overflow-y: auto;
    flex-shrink: 0;
    height: auto;
}

.help-sidebar .sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f3a57;
    padding: 0 6px 8px 6px;
    border-bottom: 1px solid #eef2f9;
    margin-bottom: 6px;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1f3a57;
    transition: background 0.12s;
}

.category-list li:hover {
    background: #e9f0f8;
}

.category-list li.active {
    background: #d4e2f5;
    font-weight: 600;
    color: #0b2b47;
}

/* ===== 右侧内容 ===== */
.help-content {
    flex: 1;
    padding: 8px 14px 12px;
    background: #fff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: auto;
}

.content-header {
    border-bottom: 1px solid #eff3f8;
    padding-bottom: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.content-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #0a2942;
}

.content-header .count {
    background: #eef3f9;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 11px;
    color: #2b4f6e;
    font-weight: 500;
}

/* ===== 文章列表 ===== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.article-item {
    display: block;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #1d3b5c;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.12s;
}

.article-item:hover {
    background: #f3f8fe;
    border-color: #dce6f0;
}

.article-item .tag {
    background: #e4edf6;
    color: #1f5580;
    font-size: 10px;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 30px;
    margin-left: 6px;
}

.empty-state {
    color: #6b7f94;
    padding: 14px 0;
    text-align: center;
    font-style: italic;
    font-size: 13px;
}

/* ===== 文章详情 ===== */
.article-detail {
    flex: 1;
    display: none;
    flex-direction: column;
    height: auto;
}

.article-detail.visible {
    display: flex;
}

.article-list.hidden {
    display: none;
}

.back-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: #1f5580;
    cursor: pointer;
    font-size: 13px;
    padding: 3px 0;
    margin-bottom: 6px;
    text-decoration: none;
}

.back-btn:hover {
    text-decoration: underline;
}

.article-detail h2 {
    font-size: 17px;
    color: #0a2942;
    margin-bottom: 3px;
}

.detail-meta {
    font-size: 12px;
    color: #617b95;
    border-bottom: 1px solid #eff3f8;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
    overflow: visible;
}

.detail-content p {
    margin-bottom: 8px;
}

/* ===== 图片自适应 ===== */
.detail-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
}

.detail-content table {
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.detail-content video,
.detail-content iframe {
    max-width: 100% !important;
    height: auto !important;
}

.detail-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== 文章内容样式 ===== */
.detail-content .alert-card {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid;
}

.detail-content .alert-critical {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.detail-content .alert-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.detail-content .alert-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.detail-content .alert-tip {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.detail-content .badge-group {
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
    margin: 6px 0;
}

.detail-content .img-showcase {
    margin: 12px 0;
    text-align: center;
}

.detail-content .img-showcase img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.detail-content .img-caption {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== 滚动条 ===== */
.help-sidebar::-webkit-scrollbar,
.help-content::-webkit-scrollbar {
    width: 3px;
}

.help-sidebar::-webkit-scrollbar-track {
    background: #f0f4fa;
}

.help-sidebar::-webkit-scrollbar-thumb {
    background: #cbd8e8;
    border-radius: 10px;
}

/* ===== 响应式 ===== */
@media (max-width: 820px) {
    .help-sidebar {
        width: 100%;
        max-height: 140px;
        border-right: none;
        border-bottom: 1px solid #eef2f9;
        padding: 6px 10px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .category-list li {
        padding: 4px 12px;
        background: #f0f4fa;
        border-radius: 30px;
        font-size: 13px;
    }

    .category-list li.active {
        background: #d4e2f5;
    }

    .help-body {
        flex-direction: column;
        height: auto;
    }

    .help-content {
        padding: 6px 12px 10px;
    }
}

@media (max-width: 480px) {
    .help-search-bar {
        padding: 5px 10px;
    }

    .help-search-bar .search-box {
        padding: 2px 10px;
    }

    .help-search-bar .search-box input {
        font-size: 13px;
    }

    .help-sidebar {
        max-height: 120px;
        padding: 5px 8px;
    }

    .category-list li {
        font-size: 12px;
        padding: 3px 10px;
    }

    .content-header h2 {
        font-size: 14px;
    }

    .article-item {
        font-size: 13px;
        padding: 5px 10px;
    }

    .article-detail h2 {
        font-size: 15px;
    }

    .detail-content {
        font-size: 14px;
    }
}