
/* Layout */
.help-article-container {
    max-width: 1200px !important;
    padding: 0 20px 60px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.help-layout {
    display: flex;
    gap: 40px;
    flex: 1;
}

/* Sidebar */
.help-sidebar-col {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-search {
    margin-bottom: 20px;
}
.sidebar-search input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.sidebar-search input:focus {
    border-color: #FF6600;
    outline: none;
}

.sidebar-nav {
    background: transparent;
}

.sidebar-group {
    margin-bottom: 10px;
}

.sidebar-group-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.sidebar-group-title .arrow-icon {
    margin-right: 10px;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.sidebar-group.active .sidebar-group-title .arrow-icon {
    transform: rotate(90deg);
    color: #FF6600;
}
.sidebar-group.active .sidebar-group-title span {
    color: #FF6600;
}

.sidebar-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    padding-left: 20px;
}
.sidebar-group.active .sidebar-group-list {
    display: block;
}

.sidebar-group-list li {
    margin-bottom: 10px;
}
.sidebar-group-list li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}
.sidebar-group-list li.active a,
.sidebar-group-list li a:hover {
    color: #FF6600;
}

/* Internal Page Fixed Layout */
body.help-internal-page {
    height: 100vh;
    overflow: auto;
}

body.help-internal-page .help-main-wrapper {
    flex: 1;
    overflow: auto;
    height: 800px;
    min-height: 0; /* Important for nested flex scroll */
}

body.help-internal-page .help-article-container {
    height: 100%;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
}

body.help-internal-page .help-layout {
    height: 100%;
    overflow: hidden;
    padding-bottom: 20px;
    align-items: stretch;
}

body.help-internal-page .help-sidebar-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure sidebar content scrolls within */
}

body.help-internal-page .sidebar-nav {
    flex: 1;
    overflow-y: auto;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ddd #f1f1f1;
}

body.help-internal-page .sidebar-nav::-webkit-scrollbar {
    width: 6px;
}
body.help-internal-page .sidebar-nav::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

body.help-internal-page .help-article-content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.help-internal-page .help-article-content::-webkit-scrollbar {
    display: none;
}

body.help-internal-page .article-body,
body.help-internal-page .article-list-container,
body.help-internal-page .search-results-container {
    flex: 1;
    overflow-y: auto;
    max-height: none; /* Override fixed max-height */
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ddd #f1f1f1;
}

body.help-internal-page .article-body {
    flex: 0 0 auto;
    min-height: 0;
    overflow-y: visible;
}

body.help-internal-page .article-body::-webkit-scrollbar,
body.help-internal-page .article-list-container::-webkit-scrollbar,
body.help-internal-page .search-results-container::-webkit-scrollbar {
    width: 8px;
}
body.help-internal-page .article-body::-webkit-scrollbar-track,
body.help-internal-page .article-list-container::-webkit-scrollbar-track,
body.help-internal-page .search-results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
body.help-internal-page .article-body::-webkit-scrollbar-thumb,
body.help-internal-page .article-list-container::-webkit-scrollbar-thumb,
body.help-internal-page .search-results-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
body.help-internal-page .article-body::-webkit-scrollbar-thumb:hover,
body.help-internal-page .article-list-container::-webkit-scrollbar-thumb:hover,
body.help-internal-page .search-results-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.article-header {
    border-bottom: none;
    margin-bottom: 18px;
    padding-bottom: 0;
    flex-shrink: 0; /* 标题部分不收缩 */
}

.article-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    gap: 30px;
}

.article-meta a {
    color: inherit;
    text-decoration: none;
}

.article-meta a:hover {
    color: #FD710B;
}

.hsz-article-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    margin-bottom: 18px;
    background: #F6F7FA;
    border-radius: 8px;
    flex-shrink: 0;
}

.hsz-article-promo-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.hsz-article-promo-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
}

.hsz-article-promo-info {
    min-width: 0;
}

.hsz-article-promo-name {
    margin-bottom: 10px;
    color: #1F2937;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hsz-article-promo-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4B5563;
    font-size: 14px;
    line-height: 1.4;
}

.hsz-article-promo-stars {
    color: #FFC533;
    font-size: 16px;
    letter-spacing: 2px;
    -webkit-text-stroke: 1px #222;
}

.hsz-article-promo-divider {
    width: 1px;
    height: 18px;
    background: #D5D8E0;
}

.hsz-article-promo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hsz-article-promo-app {
    position: relative;
}

.hsz-article-promo-app-btn,
.hsz-article-promo-free-btn {
    height: 46px;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.hsz-article-promo-app-btn {
    min-width: 148px;
    border: 1px solid #FD710B;
    background: #FFF7F0;
    color: #FD710B;
    transition: all 0.2s ease;
}

.hsz-article-promo-app-btn:hover {
    background: #FFF0E5;
    box-shadow: 0 6px 14px rgba(253, 113, 11, 0.16);
}

.hsz-article-promo-free-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    overflow: hidden;
    border: 0;
    background: linear-gradient(90deg, #FD710B 0%, #FD410B 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(253, 113, 11, 0.22);
    transition: all 0.2s ease;
}

.hsz-article-promo-free-btn:hover {
    color: #fff;
    box-shadow: 0 8px 18px rgba(253, 113, 11, 0.28);
    transform: translateY(-1px);
}

.hsz-article-promo-free-btn > i {
    margin-right: 6px;
    font-size: 18px;
}

.hsz-article-promo-free-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 46px;
    margin-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hsz-article-promo-qrcode {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    width: 150px;
    height: 150px;
    padding: 10px;
    background: #fff;
    border: 1px solid #FFE0CC;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(253, 113, 11, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.hsz-article-promo-qrcode::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #FFE0CC;
    transform: translateX(-50%);
}

.hsz-article-promo-qrcode::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
    transform: translateX(-50%);
}

.hsz-article-promo-qrcode img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hsz-article-promo-app:hover .hsz-article-promo-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hsz-article-brief {
    padding: 20px 24px;
    margin-bottom: 18px;
    background: #F3F5FF;
    border-radius: 8px;
    color: #4B5563;
    flex-shrink: 0;
}

.hsz-article-brief-title {
    margin: 0 0 12px;
    color: #9A6BFF;
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.2;
}

.hsz-article-brief-text {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.7;
}

.hsz-article-brief-note {
    margin-top: 10px;
    color: #8C93A3;
    font-size: 14px;
}

.article-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags {
    align-items: center;
    margin-top: 18px;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

.article-tags-label {
    color: #333;
    font-weight: 600;
}

.article-tag,
.card-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    background: #FFF0E5;
    color: #FF6600;
    font-size: 12px;
    line-height: 1;
}

.article-tag {
    text-decoration: none;
}

.article-tag:hover {
    background: #FFE0CC;
    color: #FF6600;
}

.article-body {
    font-size: 16px;
    line-height: 2;
    color: #333;
    overflow-y: auto; /* 允许垂直滚动 */
    max-height: 600px; /* 默认最大高度 */
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #ddd #f1f1f1;
}

/* Chrome/Safari/Edge 滚动条样式 */
.article-body::-webkit-scrollbar {
    width: 8px;
}
.article-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.article-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
.article-body::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.article-body p {
    margin-bottom: 20px;
}

/* Article links default style override */
.article-body a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: normal;
}

.article-body a:hover {
    color: #FF6600;
    text-decoration: underline;
}

/* Category Title Link Style in Sidebar */
.category-title-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.category-title-link:hover {
    color: #FF6600;
}

.sidebar-group.active .category-title-link {
    color: #FF6600;
    font-weight: bold;
}

.article-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.footer-nav-item a {
    color: #FF6600;
    text-decoration: none;
    font-size: 14px;
}
.footer-nav-item a:hover {
    text-decoration: underline;
}
.footer-nav-item span {
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    .help-article-container {
        max-width: none !important;
        width: 100%;
        padding: 0 16px 32px;
    }

    .help-layout {
        display: block;
        height: auto;
        overflow: visible;
    }

    body.help-internal-page .help-sidebar-col,
    .help-sidebar-col {
        display: none !important;
    }

    .sidebar-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .sidebar-group {
        flex: 0 0 150px;
        margin-bottom: 0;
        padding: 10px;
        border: 1px solid #f5e6dc;
        border-radius: 8px;
        background: #fff;
    }

    .sidebar-group-title {
        padding: 0;
        font-size: 14px;
    }

    .sidebar-group-list {
        max-height: 150px;
        overflow-y: auto;
        padding-left: 0;
        margin-top: 8px;
    }

    .sidebar-group-list li {
        margin-bottom: 6px;
    }

    .sidebar-group-list li a {
        font-size: 12px;
        line-height: 1.4;
    }

    body.help-internal-page {
        height: auto;
        overflow: auto;
    }

    body.help-internal-page .help-main-wrapper,
    body.help-internal-page .help-article-container,
    body.help-internal-page .help-layout,
    body.help-internal-page .help-sidebar-col,
    body.help-internal-page .help-article-content {
        height: auto;
        overflow: visible;
    }

    body.help-internal-page .help-main-wrapper {
        min-height: 0;
    }

    body.help-internal-page .help-layout {
        padding-bottom: 0;
    }

    body.help-internal-page .help-article-content {
        padding-right: 0;
    }

    .article-header {
        margin-bottom: 14px;
    }

    .article-title {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .article-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .hsz-article-promo {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 14px;
        margin-bottom: 14px;
    }

    .hsz-article-promo-product {
        gap: 12px;
    }

    .hsz-article-promo-icon {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .hsz-article-promo-name {
        margin-bottom: 6px;
        font-size: 17px;
    }

    .hsz-article-promo-meta {
        flex-wrap: wrap;
        gap: 6px 10px;
        font-size: 12px;
    }

    .hsz-article-promo-stars {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .hsz-article-promo-divider {
        display: none;
    }

    .hsz-article-promo-actions {
        display: block;
    }

    .hsz-article-promo-app-btn,
    .hsz-article-promo-free-btn {
        width: 100%;
        min-width: 0;
        height: 42px;
        font-size: 14px;
    }

    .hsz-article-promo-app {
        display: none;
    }

    .hsz-article-promo-free-arrow {
        display: none;
    }

    .hsz-article-promo-qrcode {
        left: auto;
        right: 0;
        width: 128px;
        height: 128px;
        transform: translateY(-6px);
    }

    .hsz-article-promo-qrcode::before,
    .hsz-article-promo-qrcode::after {
        left: auto;
        right: 22px;
        transform: none;
    }

    .hsz-article-promo-app:hover .hsz-article-promo-qrcode {
        transform: translateY(0);
    }

    .hsz-article-brief {
        padding: 16px;
        margin-bottom: 16px;
    }

    .hsz-article-brief-title {
        font-size: 18px;
    }

    .hsz-article-brief-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .hsz-article-brief-note {
        font-size: 12px;
    }

    .article-body {
        max-height: none;
        overflow: visible;
        font-size: 15px;
        line-height: 1.8;
    }

    .article-body img {
        height: auto;
        max-width: 100%;
    }

    .article-footer-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
}
