/* ===========================================
   帮助中心 — 东方墨韵主题
   =========================================== */

main {
    padding-top: 64px;
    background: var(--bg-ink);
    min-height: 100vh;
}

/* ===========================================
   页面头部：全宽暗幅 + 居中标题 + 搜索框
   =========================================== */

.page-header {
    padding: 72px 0 56px;
    background: var(--bg-paper);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: var(--accent);
}

.page-header--docs {
    padding: 56px 0 48px;
    background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-ink) 100%);
    text-align: center;
}

.page-header-docs-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.page-header-docs-inner > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-breadcrumb {
    margin-bottom: var(--space-md);
}

.docs-eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.page-lead {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 520px;
    margin-top: 14px;
}

/* 搜索框 — 居中，独立行 */
.search-box-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    padding: 13px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box-inline:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-box-inline i {
    font-size: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box-inline input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: transparent;
}

.search-box-inline input::placeholder {
    color: var(--text-muted);
}

.search-box-inline--docs {
    max-width: 480px;
}

/* ===========================================
   容器
   =========================================== */

.page-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===========================================
   侧边栏 + 内容布局
   =========================================== */

.help-content-section {
    padding: 48px 0 96px;
}

.help-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.help-layout--docs {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
}

/* 侧边栏 — sticky + 左侧墨线 */
.help-sidebar {
    position: sticky;
    top: 88px;
    padding: 24px 20px 24px 24px;
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-md);
    max-height: calc(100vh - 112px);
    overflow-y: auto;
}

.help-sidebar::-webkit-scrollbar {
    width: 3px;
}
.help-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.help-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 2px;
}

.help-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.nav-link {
    display: block;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-tertiary);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 500;
}

/* ===========================================
   主内容区
   =========================================== */

.help-main-content {
    min-width: 0;
}

/* 推荐阅读 — 文章卡片 */
.articles-nav {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.articles-nav::after {
    content: '·  ·  ·';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--text-muted);
    background: var(--bg-ink);
    padding: 0 16px;
}

.articles-nav h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
}

.article-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.article-link-card:hover {
    background: var(--bg-panel);
    border-left-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.article-link-card i {
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.article-link-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.article-link-content strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.article-link-content span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ===========================================
   内容块 — 墨线分隔
   =========================================== */

.content-block {
    margin-bottom: 0;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.content-block::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.content-block:last-of-type {
    border-bottom: none;
}

.content-block:last-of-type::before {
    display: none;
}

.content-block:first-of-type {
    padding-top: 0;
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.content-block p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* ===========================================
   底部 CTA
   =========================================== */

.help-cta {
    margin-top: 56px;
    padding: 40px;
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.help-cta p {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

/* ===========================================
   响应式
   =========================================== */

@media (max-width: 1024px) {
    .help-layout,
    .help-layout--docs {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 860px) {
    .help-layout,
    .help-layout--docs {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .help-sidebar {
        position: static;
        margin-bottom: 32px;
        max-height: none;
        border-left-width: 2px;
    }

    .help-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header--docs {
        padding: 44px 0 36px;
    }

    .page-title {
        font-size: 28px;
    }

    .help-content-section {
        padding: 32px 0 64px;
    }

    .content-block {
        padding: 28px 0;
    }

    .content-block h2 {
        font-size: 19px;
    }

    .help-cta {
        padding: 28px 20px;
    }

    .articles-nav {
        margin-bottom: 36px;
        padding-bottom: 36px;
    }
}

@media (max-width: 540px) {
    .help-nav {
        grid-template-columns: 1fr;
    }

    .page-header--docs {
        padding: 36px 0 28px;
    }

    .page-title {
        font-size: 24px;
    }

    .search-box-inline {
        padding: 11px 16px;
    }

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

    .content-block h2 {
        font-size: 17px;
    }

    .content-block p {
        font-size: 13.5px;
    }

    .article-link-card {
        padding: 14px 16px;
    }
}
