/* 内容页 / 帮助中心 */

.content-page {
    background: var(--bg);
}

.content-hero {
    padding: 42px 0 30px;
    background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.content-hero .breadcrumb {
    margin-bottom: 14px;
}

.content-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.content-lead {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
}

.content-updated {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.content-body {
    padding: 36px 0 72px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 38px;
}

.prose {
    color: var(--text);
    font-size: 15px;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
    margin: 28px 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.prose h2 {
    font-size: 22px;
}

.prose h3 {
    font-size: 18px;
}

.prose h4 {
    font-size: 16px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
    margin: 0 0 14px;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose li {
    margin: 0 0 6px;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--primary-dark);
}

.prose blockquote {
    margin-left: 0;
    padding: 12px 18px;
    border-left: 3px solid var(--primary);
    background: #f4f7ff;
    border-radius: 8px;
    color: var(--text-muted);
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.content-aside {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

.aside-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.aside-card h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.aside-links {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.aside-links li {
    margin: 0 0 8px;
}

.aside-links a {
    color: var(--text);
    font-size: 14px;
}

.aside-links a:hover {
    color: var(--primary);
}

.aside-all {
    font-size: 13px;
    color: var(--primary);
}

.aside-contact p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Help Center ---------- */

.help-page [hidden] {
    display: none !important;
}

.help-hero {
    padding: 46px 0 38px;
    background:
        radial-gradient(900px 220px at 15% -20%, rgba(47, 107, 255, 0.14), transparent 60%),
        linear-gradient(180deg, #f2f7ff 0%, var(--bg) 100%);
}

.help-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.help-hero h1 {
    margin-bottom: 10px;
}

.help-hero .content-lead {
    max-width: 640px;
}

.help-search {
    position: relative;
    max-width: 580px;
    margin-top: 22px;
}

.help-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.help-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(24, 48, 96, 0.08);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

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

.help-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.help-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 20px;
}

.help-nav > h2 {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.help-nav-group {
    margin-bottom: 18px;
}

.help-nav-group:last-child {
    margin-bottom: 0;
}

.help-nav-group h3 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.help-nav-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-nav-group li {
    margin: 0 0 2px;
}

.help-nav-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.12s ease, color 0.12s ease;
}

.help-nav-group a:hover {
    background: #f2f6ff;
    color: var(--primary);
}

.help-side-card {
    background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.help-side-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.help-side-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.help-side-link {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary);
}

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

.help-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 0 2px;
}

.help-count {
    font-size: 13px;
    color: var(--text-muted);
}

.help-toolbar-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.help-group {
    margin-bottom: 34px;
}

.help-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.help-group-head h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.help-group-head span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.help-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(24, 48, 96, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.help-card:hover {
    transform: translateY(-2px);
    border-color: #cfdcf7;
    box-shadow: 0 14px 30px rgba(24, 48, 96, 0.12);
}

.help-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.help-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.help-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.help-empty {
    padding: 48px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.help-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.help-empty p {
    margin: 0;
    color: var(--text-muted);
}

.help-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 30px;
}

.help-contact h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.help-contact p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.help-contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-aside {
        position: static;
    }

    .content-card {
        padding: 24px 20px;
    }

    .content-hero {
        padding: 30px 0 22px;
    }
}

/* Help Center responsive */
@media (max-width: 980px) {
    .help-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .help-sidebar {
        position: static;
        order: 2;
    }

    .help-main {
        order: 1;
    }

    .help-nav {
        display: none;
    }

    .help-hero {
        padding: 34px 0 28px;
    }

    .help-search {
        max-width: none;
    }
}

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

    .help-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .help-group-head {
        flex-direction: column;
        gap: 4px;
    }
}

/* ---------- External jump page ---------- */

.jump-page {
    display: flex;
    align-items: center;
    min-height: 62vh;
    padding: 64px 0 80px;
    background:
        radial-gradient(800px 260px at 50% -10%, rgba(47, 107, 255, 0.12), transparent 60%),
        var(--bg);
}

.jump-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 42px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.jump-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.jump-card h1 {
    margin: 10px 0 12px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.02em;
}

.jump-lead {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.jump-lead strong {
    color: var(--primary);
    font-size: 18px;
}

.jump-target {
    padding: 14px 16px;
    text-align: left;
    background: #f7f9ff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.jump-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.jump-host {
    display: inline-block;
    margin: 0 8px 4px 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8efff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.jump-target a {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
}

.jump-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0 16px;
}

.jump-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .jump-page {
        padding: 36px 0 56px;
    }

    .jump-card {
        padding: 28px 20px;
    }
}
