/* ===========================================
   帮助中心 — Bento 卡片主题
   =========================================== */

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

/* ===========================================
   页面头部
   =========================================== */

.page-header--docs {
    padding: 64px 0 56px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-header--docs::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 640px 280px at 50% 100%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}

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

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

.search-box-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box-card:focus-within {
    border-color: var(--accent-start);
    box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md);
}

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

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

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

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

.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: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.help-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
    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;
}

.sidebar-group {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.sidebar-group:hover {
    box-shadow: var(--shadow-lg);
}

.sidebar-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-group-title i {
    font-size: 13px;
    color: var(--accent-start);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 12px;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
    transition: color 0.2s ease;
}

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

.sidebar-link:hover i {
    color: var(--accent-start);
}

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

.help-main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.help-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.help-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.help-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.help-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--accent-start);
}

.help-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.help-card p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-secondary);
    padding-left: 60px;
}

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

.help-cta-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.help-cta-card p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.help-cta-card .btn {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.help-cta-card .btn:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

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

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

    .help-card {
        padding: 28px;
    }

    .help-card p {
        padding-left: 0;
        margin-top: 12px;
    }
}

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

    .help-sidebar {
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 28px;
    }

    .sidebar-group {
        padding: 16px;
    }
}

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

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

    .help-card {
        padding: 24px;
    }

    .help-card h2 {
        font-size: 18px;
    }

    .help-card-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

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

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

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

    .search-box-card {
        padding: 13px 18px;
    }

    .search-box-card input {
        font-size: 14px;
    }

    .help-card {
        padding: 20px;
    }

    .help-card h2 {
        font-size: 16px;
    }

    .help-card p {
        font-size: 13.5px;
    }

    .help-card-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}
