/* Help Center - Documentation Style */
.help-page {
    min-height: 100vh;
    background: #f5f6f8;
}

/* Banner */
.help-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.help-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.help-banner .banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 27, 51, 0.9), rgba(36, 111, 243, 0.7));
}

.help-banner .banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.help-banner .banner-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

/* ============================================
   Layout
   ============================================ */
.help-doc-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: flex;
    gap: 28px;
}

/* ============================================
   Sidebar
   ============================================ */
.help-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.help-sidebar::-webkit-scrollbar {
    width: 3px;
}

.help-sidebar::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 2px;
}

/* Sidebar Search */
.help-sidebar-search {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.help-sidebar-search-wrap {
    position: relative;
}

.help-sidebar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}

.help-sidebar-search-input {
    width: 100%;
    height: 34px;
    padding: 0 12px 0 32px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    outline: none;
    background: #fafafa;
}

.help-sidebar-search-input:focus {
    border-color: #409eff;
    background: #fff;
}

.help-sidebar-search-input::placeholder {
    color: #bbb;
}

/* Sidebar Category */
.help-sidebar-category {
    border-bottom: 1px solid #f0f0f0;
}

.help-sidebar-category:last-child {
    border-bottom: none;
}

.help-sidebar-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
}

.help-sidebar-category-header:hover {
    background: #f0f2f5;
}

.help-sidebar-category-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #e6f1fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #409eff;
    flex-shrink: 0;
}

.help-sidebar-category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.help-sidebar-category-count {
    font-size: 12px;
    color: #999;
}

.help-sidebar-category-arrow {
    font-size: 10px;
    color: #ccc;
    transition: transform 0.2s;
}

.help-sidebar-category.expanded .help-sidebar-category-arrow {
    transform: rotate(90deg);
}

/* Sidebar Articles */
.help-sidebar-articles {
    display: none;
    padding: 4px 0;
}

.help-sidebar-category.expanded .help-sidebar-articles {
    display: block;
}

.help-sidebar-article {
    display: block;
    padding: 8px 16px 8px 48px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.6;
    position: relative;
}

.help-sidebar-article::before {
    content: '';
    position: absolute;
    left: 34px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #d9d9d9;
    border-radius: 50%;
}

.help-sidebar-article:hover {
    color: #409eff;
    background: #f5f7fa;
}

.help-sidebar-article:hover::before {
    background: #409eff;
}

.help-sidebar-article.active {
    color: #409eff;
    background: #ecf5ff;
    font-weight: 500;
}

.help-sidebar-article.active::before {
    background: #409eff;
}

/* Search Results */
.help-sidebar-search-results {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.help-sidebar-search-result {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.help-sidebar-search-result:hover {
    background: #f5f7fa;
    color: #409eff;
}

/* ============================================
   Content
   ============================================ */
.help-content {
    flex: 1;
    min-width: 0;
}

/* Welcome */
.help-welcome {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 60px 40px;
    text-align: center;
}

.help-welcome-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #999;
}

.help-welcome-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.help-welcome-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
}

.help-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

.help-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.help-quick-link:hover {
    border-color: #409eff;
    background: #f5f7fa;
}

.help-quick-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #e6f1fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #409eff;
    flex-shrink: 0;
}

.help-quick-link-text {
    text-align: left;
}

.help-quick-link-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.help-quick-link-count {
    font-size: 12px;
    color: #999;
}

/* Article Detail */
.help-article-detail {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.help-article-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
}

.help-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.help-article-breadcrumb span {
    cursor: pointer;
}

.help-article-breadcrumb span:hover {
    color: #409eff;
}

.help-article-breadcrumb i {
    font-size: 10px;
    color: #ccc;
}

.help-article-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.help-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

.help-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.help-article-body {
    padding: 28px;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
}

.help-article-body h1,
.help-article-body h2,
.help-article-body h3,
.help-article-body h4 {
    color: #1a1a1a;
    margin: 24px 0 12px;
}

.help-article-body h1 { font-size: 20px; }
.help-article-body h2 { font-size: 17px; }
.help-article-body h3 { font-size: 15px; }

.help-article-body p {
    margin-bottom: 12px;
}

.help-article-body ul,
.help-article-body ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.help-article-body li {
    margin-bottom: 6px;
}

.help-article-body img {
    max-width: 100%;
    margin: 12px 0;
}

.help-article-body code {
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 13px;
    color: #d56161;
}

.help-article-body pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 12px 0;
}

.help-article-body pre code {
    background: none;
    padding: 0;
    color: #333;
}

.help-article-body blockquote {
    border-left: 3px solid #409eff;
    padding: 10px 16px;
    margin: 12px 0;
    background: #f9fafc;
    color: #666;
}

.help-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.help-article-body th,
.help-article-body td {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.help-article-body th {
    background: #fafafa;
    font-weight: 500;
    color: #333;
}

/* Article Footer Nav */
.help-article-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 28px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.help-article-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.help-article-nav:hover {
    border-color: #409eff;
    color: #409eff;
}

.help-article-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.help-article-nav.disabled:hover {
    border-color: #e8e8e8;
    color: #666;
}

/* Loading / Empty */
.help-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

.help-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .help-page {
        padding-top: 60px;
    }

    .help-banner {
        height: 200px;
    }

    .help-banner .banner-text {
        font-size: 1.8rem;
    }

    .help-doc-layout {
        flex-direction: column;
        padding: 16px;
    }

    .help-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .help-article-header {
        padding: 20px;
    }

    .help-article-title {
        font-size: 17px;
    }

    .help-article-body {
        padding: 20px;
    }

    .help-article-footer {
        padding: 12px 20px;
    }

    .help-welcome {
        padding: 40px 20px;
    }

    .help-quick-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .help-banner {
        height: 160px;
    }

    .help-banner .banner-text {
        font-size: 1.4rem;
    }

    .help-article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .help-article-footer {
        flex-direction: column;
        gap: 8px;
    }

    .help-article-nav {
        width: 100%;
        justify-content: center;
    }
}
