/* 使用帮助中心 /page/help：标题区与站点地图同构（first-level-btn），
   本文件仅负责主体内容：分类锚点 + 折叠式问答 */

.help-center {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 64px;
}

/* ===== 分类锚点导航 ===== */
.help-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
}
.help-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #3c4658;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
}
.help-nav a i {
    font-size: 0.7rem;
    color: #6366f1;
}
/* 小屏空间不足时允许换行 */
@media (max-width: 767.98px) {
    .help-nav {
        flex-wrap: wrap;
    }
}
.help-nav a:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
    text-decoration: none;
}

/* ===== 关键词过滤 ===== */
.help-filter {
    position: relative;
    max-width: 420px;
    margin: 0 auto 30px;
}
.help-filter input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: #fff;
    font-size: 0.9rem;
    color: #152033;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.help-filter input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.help-filter i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0ac;
    font-size: 0.85rem;
    pointer-events: none;
}

/* ===== 分类区块 ===== */
.help-section {
    margin-bottom: 34px;
    scroll-margin-top: 80px;
}
.help-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #07438a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(7, 67, 138, 0.12);
}
.help-section-title i {
    width: 1.9rem;
    height: 1.9rem;
    line-height: 1.9rem;
    text-align: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.07));
    color: #6366f1;
    font-size: 0.88rem;
    flex: 0 0 auto;
}
.help-section-title .help-count {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9aa0ac;
    background: #f1f3f5;
    padding: 2px 10px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}
.help-section-title .help-count:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
}

/* ===== 折叠问题（+/– 风格，参考 dossier-fold） ===== */
.help-fold {
    background: #fff;
    border: 1px solid rgba(7, 67, 138, 0.09);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.help-fold > .help-fold-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    list-style: none;
    user-select: none;
    transition: background 0.18s ease;
}
.help-fold > .help-fold-summary::-webkit-details-marker {
    display: none;
}
.help-fold > .help-fold-summary::marker {
    content: "";
    display: none;
}
.help-fold > .help-fold-summary:hover {
    background: rgba(99, 102, 241, 0.04);
}
.help-fold > .help-fold-summary .help-q-mark {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    border-radius: 6px;
    background: #eef2ff;
    color: #6366f1;
    font-size: 0.72rem;
    font-weight: 700;
}
.help-fold > .help-fold-summary::after {
    content: "+";
    margin-left: auto;
    flex: 0 0 auto;
    color: #9aa0ac;
    font-weight: 400;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}
.help-fold[open] > .help-fold-summary::after {
    content: "–";
}
.help-fold[open] > .help-fold-summary {
    border-bottom: 1px solid rgba(7, 67, 138, 0.07);
    color: #07438a;
}
.help-fold[open] > .help-fold-summary .help-q-mark {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
}

/* ===== 答案内容 ===== */
.help-fold-body {
    padding: 14px 18px 18px;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #374151;
}
.help-fold-body :first-child {
    margin-top: 0;
}
.help-fold-body :last-child {
    margin-bottom: 0;
}
.help-fold-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
}
.help-fold-body a {
    color: #015ac1;
    word-break: break-all;
}
.help-fold-body ul,
.help-fold-body ol {
    padding-left: 1.4em;
}
.help-fold-body table {
    max-width: 100%;
    border-collapse: collapse;
}
.help-fold-body table td,
.help-fold-body table th {
    border: 1px solid #e5e9f0;
    padding: 6px 10px;
}

/* ===== 空状态 / 无匹配 ===== */
.help-empty {
    text-align: center;
    color: #9aa0ac;
    padding: 48px 0;
}
.help-empty i {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}

/* 关键词过滤命中/未命中 */
.help-fold.is-filtered-out {
    display: none;
}
.help-section.is-filtered-out {
    display: none;
}
