* {
    box-sizing: border-box;
}

:root {
    --line: #e7eef8;
    --blue: #2563eb;
    --deep-blue: #0f4fd6;
    --text: #1e293b;
    --muted: #64748b;
    --bg-soft: #f4f8ff;
    --shadow: 0 20px 44px rgba(18, 56, 124, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background: #fff;
    --scroll-progress: 0%;
}

body.is-scrolled .help-header {
    box-shadow: 0 18px 34px rgba(16, 42, 95, 0.08);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.help-topbar {
    background: #f5f7fb;
    border-bottom: 1px solid #edf2fb;
    font-size: 12px;
    color: #70809b;
}

.help-topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.help-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.help-topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #24406f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.help-topbar-actions a.action-demo {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.16);
}

.help-topbar-actions a.action-admin {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0f766e;
    border-color: rgba(13, 148, 136, 0.16);
}

.help-topbar-actions a.action-register {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.help-topbar-actions a.action-login {
    background: rgba(255, 255, 255, 0.96);
    color: #173463;
}

.help-topbar .help-topbar-actions a:hover {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: transparent;
    transform: translateY(-2px);
    text-shadow: none;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.help-topbar .help-topbar-actions a.action-register:hover {
    color: #fff;
}

.help-topbar-inner > a:not(.help-topbar-notice) {
    display: none;
}

.help-topbar-notice,
.help-topbar-notice:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    color: #ca8a04;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-topbar-notice::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 13.25V10.75C4 9.78 4.78 9 5.75 9H8.08L13.66 5.28C14.82 4.5 16.38 5.33 16.38 6.73V17.27C16.38 18.67 14.82 19.5 13.66 18.72L8.08 15H5.75C4.78 15 4 14.22 4 13.25Z' fill='%23facc15'/%3E%3Cpath d='M18.2 8.4C19.61 10.28 19.61 13.72 18.2 15.6' stroke='%23facc15' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M20.75 6C23.08 8.78 23.08 15.22 20.75 18' stroke='%23facc15' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.help-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.help-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--scroll-progress);
    height: 2px;
    background: linear-gradient(90deg, #3cc4ff 0%, #316dff 50%, #ffcc68 100%);
    box-shadow: 0 0 12px rgba(49, 109, 255, 0.36);
    transition: width .12s linear;
}

.help-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.help-brand {
    flex: 0 0 auto;
    font-size: 30px;
    font-weight: 700;
    color: #1261ff;
    letter-spacing: 1px;
}

.help-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    color: #24364d;
}

.help-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 2px 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
}

.help-nav a::before {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: 2px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
    opacity: 0;
    transform: translateY(8px) scale(.92);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}

.help-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f8dff, #1261ff);
    box-shadow: 0 10px 18px rgba(18, 97, 255, 0.22);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .24s ease, transform .24s ease;
}

.help-nav a.active,
.help-nav a:hover,
.help-topbar a:hover,
.help-footer-grid a:hover {
    color: var(--blue);
}

.help-nav a.active,
.help-nav a:hover {
    transform: translateY(-2px);
    text-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.help-nav a.active::before,
.help-nav a:hover::before,
.help-nav a.active::after,
.help-nav a:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.help-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #2c74ff 0%, #1050dc 100%);
    box-shadow: 0 14px 28px rgba(16, 80, 220, 0.24);
}

.ghost-btn {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.help-hero {
    padding: 34px 0 24px;
    background:
        radial-gradient(circle at left top, rgba(103, 184, 255, 0.18) 0%, rgba(103, 184, 255, 0) 24%),
        radial-gradient(circle at right top, rgba(118, 119, 255, 0.16) 0%, rgba(118, 119, 255, 0) 28%),
        linear-gradient(180deg, #eef4ff 0%, #f7faff 100%);
}

.help-banner {
    position: relative;
    padding: 36px;
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--mx, 22%) var(--my, 26%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 26%),
        linear-gradient(135deg, #0f64ff 0%, #3e9dff 52%, #85c7ff 100%);
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .28s ease, box-shadow .28s ease;
    will-change: transform;
}

.help-banner::before,
.help-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.help-banner::before {
    top: -72px;
    right: 12%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation: glowFloat 9s ease-in-out infinite;
}

.help-banner::after {
    left: -36px;
    bottom: -96px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(117, 236, 255, 0.24) 0%, rgba(117, 236, 255, 0) 72%);
    animation: glowFloat 12s ease-in-out infinite reverse;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
}

.help-copy h1 {
    margin: 16px 0 10px;
    max-width: 900px;
    font-size: 42px;
    line-height: 1.2;
}

.help-copy p {
    margin: 0;
    max-width: 840px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.9;
}

.help-search-form {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.help-search-form input[type="text"] {
    flex: 1 1 360px;
    min-width: 240px;
    height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    font-size: 15px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.help-search-form button {
    height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--deep-blue);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(9, 35, 97, 0.18);
    transition: transform .24s ease, box-shadow .24s ease;
}

.help-search-form button:hover {
    transform: translateY(-2px);
}

.hero-stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-stat {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat strong {
    display: block;
    font-size: 26px;
}

.hero-stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.help-main {
    padding: 6px 0 56px;
    background:
        radial-gradient(circle at top left, rgba(79, 144, 255, 0.08) 0%, rgba(79, 144, 255, 0) 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

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

.sidebar-card,
.article-card,
.related-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.sidebar-card {
    padding: 24px;
}

.sidebar-card + .sidebar-card {
    margin-top: 20px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.section-head a {
    color: var(--blue);
    font-size: 14px;
    white-space: nowrap;
}

.section-head.compact h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.help-doc-list {
    display: grid;
    gap: 12px;
}

.help-doc-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fe 100%);
    border: 1px solid #e6eefb;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.help-doc-item:hover,
.help-doc-item.active {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.help-doc-item.active {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.help-doc-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.6;
}

.help-doc-item span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.mini-title {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
}

.quick-links {
    display: grid;
    gap: 10px;
}

.quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--bg-soft);
    color: #244783;
    transition: transform .2s ease, background .2s ease;
}

.quick-links a::after {
    content: ">";
    opacity: .55;
}

.quick-links a:hover {
    transform: translateX(4px);
    background: #edf4ff;
}

.article-card {
    overflow: hidden;
}

.article-cover {
    position: relative;
    min-height: 240px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.article-cover img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.article-header {
    padding: 30px 34px 10px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.article-header h2 {
    margin: 16px 0 10px;
    font-size: 34px;
    line-height: 1.25;
}

.article-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.article-prose {
    padding: 10px 34px 36px;
    color: #334155;
    font-size: 15px;
    line-height: 1.95;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
    color: #102a5f;
    line-height: 1.4;
}

.article-prose h1,
.article-prose h2 {
    margin: 28px 0 12px;
    font-size: 28px;
}

.article-prose h3 {
    margin: 24px 0 10px;
    font-size: 22px;
}

.article-prose p,
.article-prose li,
.article-prose blockquote {
    margin: 0 0 14px;
}

.article-prose ul,
.article-prose ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

.article-prose img {
    margin: 18px auto;
    border-radius: 18px;
    border: 1px solid #e5edf8;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.article-prose pre,
.article-prose code {
    font-family: Consolas, "Courier New", monospace;
}

.article-prose pre {
    overflow: auto;
    padding: 18px 20px;
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
}

.article-prose blockquote {
    padding: 16px 18px;
    border-left: 4px solid #60a5fa;
    border-radius: 0 16px 16px 0;
    background: #f8fbff;
    color: #475569;
}

.related-section {
    margin-top: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    padding: 24px;
    transition: transform .24s ease, box-shadow .24s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(20, 58, 130, 0.1);
}

.related-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #4f8fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.related-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.45;
}

.related-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.related-card a {
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.help-footer {
    padding: 18px 0 34px;
    background: #f8fbff;
    border-top: 1px solid #edf2fb;
}

.help-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.help-footer-grid h4 {
    margin: 0 0 14px;
    font-size: 16px;
}

.help-footer-grid a,
.footer-contact span,
.footer-contact em,
.footer-contact p {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 14px;
}

.footer-contact strong {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 28px;
}

.reveal,
.reveal-card {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible,
.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes glowFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 12px, 0) scale(1.03);
    }
}

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

    .help-sidebar {
        order: 2;
    }
}

@media (max-width: 900px) {
    .help-header-inner {
        min-height: auto;
        padding: 18px 0;
        flex-wrap: wrap;
    }

    .help-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .help-copy h1 {
        font-size: 34px;
    }

    .hero-stats,
    .related-grid,
    .help-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-wrap {
        width: min(100% - 20px, 1200px);
    }

    .help-topbar-actions {
        width: 100%;
        gap: 12px;
    }

    .help-topbar-actions a {
        width: 100%;
        min-height: 40px;
    }

    .help-banner,
    .sidebar-card,
    .article-card,
    .related-card {
        border-radius: 22px;
    }

    .help-banner {
        padding: 24px 18px;
    }

    .help-copy h1 {
        font-size: 28px;
    }

    .article-header,
    .article-prose {
        padding-left: 18px;
        padding-right: 18px;
    }

    .help-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .help-search-form input[type="text"],
    .help-search-form button {
        width: 100%;
    }
}
