/* 帮助中心 — 版心与 task / 派单等列表页一致（xgt-profile-wrap 1800px） */

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

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

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

.help-sidebar-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    overflow: hidden;
    margin-bottom: 16px;
}

.help-sidebar-card .card-head {
    padding: 12px 16px;
    border-bottom: 1px solid #e8edf3;
    font-size: 14px;
    font-weight: 600;
    color: #091d2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-sidebar-card .card-head .fa {
    color: #409eff;
}

.help-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.help-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 45px;
    padding: 12px 24px;
    margin: 2px 0;
    border-radius: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.help-menu li a:hover,
.help-menu li a.active {
    color: #fff;
    background: #409eff;
    font-weight: 500;
}

.help-contact {
    background: #f8fafc;
    padding: 16px 18px;
}

.help-contact h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #091d2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-contact h4 .fa {
    color: #409eff;
}

.help-contact p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 14px;
}

.help-contact .help-contact-qrcode {
    text-align: center;
}

.help-contact .help-contact-qrcode img {
    display: block;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    background: #fff;
}

.help-contact .help-contact-qrcode-tip {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.help-content-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    overflow: hidden;
}

.help-content-head {
    padding: 14px 20px;
    border-bottom: 1px solid #e8edf3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.help-content-head-detail {
    align-items: flex-start;
}

.help-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #091d2e;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.help-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.help-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

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

.help-breadcrumb .current {
    color: #409eff;
}

.help-content-body {
    padding: 16px 20px 28px;
}

.help-article-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-left: 3px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-article-item:hover {
    background: #fff;
    border-left-color: #409eff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.help-article-item a.title-link {
    text-decoration: none;
    color: #091d2e;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 6px;
}

.help-article-item a.title-link:hover {
    color: #409eff;
}

.help-article-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #ecf5ff;
    color: #409eff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    padding: 0 8px;
    flex-shrink: 0;
}

.help-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
    margin-left: 32px;
}

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

.help-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
}

.help-empty .fa {
    font-size: 40px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.help-empty-page {
    padding: 60px 20px 80px;
}

.help-empty-page .xgt-btn {
    margin-top: 16px;
}

.help-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.help-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.help-pagination a,
.help-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.help-pagination a:hover,
.help-pagination span.cur {
    background: #409eff;
    border-color: #409eff;
    color: #fff;
}

.help-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e8edf3;
    font-size: 13px;
    color: #64748b;
}

.help-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-detail-meta .meta-item i {
    color: #409eff;
}

.help-article-content {
    line-height: 1.9;
    color: #1e293b;
    font-size: 15px;
    padding: 8px 0 0;
    overflow-wrap: break-word;
}

.help-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
}

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

.help-article-content table td,
.help-article-content table th {
    border: 1px solid #e8edf3;
    padding: 10px 12px;
}

.help-article-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #409eff;
    background: #ecf5ff;
    border-radius: 0 6px 6px 0;
}

.help-divider {
    height: 1px;
    background: #e8edf3;
    margin: 24px 0;
}

.help-nav-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.help-nav-prev-next > div {
    flex: 1;
    min-width: 200px;
}

.help-nav-next-col {
    text-align: right;
}

.help-nav-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.help-nav-link {
    color: #409eff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
}

.help-nav-link:hover {
    text-decoration: underline;
}

.help-nav-empty {
    color: #94a3b8;
    font-size: 14px;
}

.help-related {
    margin-top: 28px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    padding: 18px 20px;
}

.help-related h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #091d2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-related h3 .fa {
    color: #409eff;
}

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

.help-related li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #334155;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.help-related li a:hover {
    background: #ecf5ff;
    color: #409eff;
}

.help-related li a .fa {
    color: #409eff;
    flex-shrink: 0;
}

.btn-back-list {
    flex-shrink: 0;
}

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

@media (max-width: 768px) {
    .help-article-meta {
        margin-left: 0;
    }

    .help-nav-next-col {
        text-align: left;
    }

    .help-content-head-detail {
        flex-direction: column;
        align-items: stretch;
    }
}
