@charset "utf-8";

/* 帮助文档页面样式 - 仿腾讯云风格 */

/* 纯色Banner - 撑满到导航栏下方 */
.help-hero-banner {
    background: linear-gradient(135deg, #0052d9 0%, #003bb3 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.help-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.help-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.help-hero-title {
    font-size: 36px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 16px;
}

.help-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.help-hero-search {
    display: flex;
    max-width: 560px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.help-hero-search input {
    flex: 1;
    height: 50px;
    border: none;
    padding: 0 20px;
    font-size: 15px;
    outline: none;
}

.help-hero-search input::placeholder {
    color: #999;
}

.help-hero-search button {
    width: 100px;
    height: 50px;
    background: #00a4ff;
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.help-hero-search button:hover {
    background: #0092ee;
}

.help-hero-tags {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.help-hero-tag-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.help-hero-tag {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: color 0.2s;
}

.help-hero-tag:hover {
    color: #fff;
    text-decoration: underline;
}

/* Banner背景 */
.banner-bg {
    height: 360px;
    background: url('/web/jinglisafe/assets/images/help-document/top-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 0;
}

/* 主内容区域 */
.help-document {
    background: #f5f7fa;
    min-height: calc(100vh - 300px);
    padding: 0 0 60px;
}

.help-document-inner {
    max-width: 1200px;
    margin: -260px auto 0;
    display: flex;
    gap: 24px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 左侧边栏 */
.help-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #0052d9;
    border-radius: 0;
}

/* 更多栏目 - 一行展示3个 */
.category-list {
    display: flex;
    flex-wrap: nowrap;
    padding: 16px 12px;
    gap: 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 16px 4px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s;
    margin: 0 4px;
}

.category-item:hover {
    background: #f5f7fa;
}

.category-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.category-name {
    font-size: 12px;
    color: #666;
}

.category-item:hover .category-name {
    color: #0052d9;
}

/* 热门文章 */
.hot-articles {
    padding: 8px 0;
}

.hot-article-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.hot-article-item:hover {
    background: #f5f7fa;
}

.hot-article-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    margin-right: 12px;
    flex-shrink: 0;
    font-weight: 500;
}

.hot-article-rank.top {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #fff;
    border-radius: 0;
}

.hot-article-rank.top2 {
    background: linear-gradient(135deg, #ffa94d 0%, #ffc078 100%);
    color: #fff;
    border-radius: 0;
}

.hot-article-rank.top3 {
    background: linear-gradient(135deg, #ffd43b 0%, #ffe066 100%);
    color: #333;
    border-radius: 0;
}

.hot-article-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-article-item:hover .hot-article-title {
    color: #0052d9;
}

/* 最新活动 */
.activity-list {
    padding: 8px 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-item:hover {
    background: #f5f7fa;
}

.activity-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-item:hover .activity-title {
    color: #0052d9;
}

/* 右侧内容区 */
.help-main {
    flex: 1;
    min-width: 0;
}

/* 分类标签 */
.help-tabs {
    background: #fff;
    border-radius: 0;
    padding: 0 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tab-list {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item {
    padding: 18px 24px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    font-weight: 400;
}

.tab-item:hover {
    color: #0052d9;
}

.tab-item.active {
    color: #0052d9;
    font-weight: 500;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: #0052d9;
    border-radius: 0;
}

/* 文章列表 */
.article-list {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.article-item {
    padding: 24px 30px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 20px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: #fafbfc;
}

.article-icon {
    display: none;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-item:hover .article-title {
    color: #0052d9;
}

.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

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

.article-category {
    color: #0052d9;
    background: #e8f4ff;
    padding: 2px 10px;
    border-radius: 0;
    font-size: 12px;
}

.pin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #fff;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 500;
}

/* 分页 - 在文章列表内部 */
.pagination-inner {
    border-top: 1px solid #f0f0f0;
    padding: 20px 30px;
    background: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.page-item:hover {
    border-color: #0052d9;
    color: #0052d9;
}

.page-item.active {
    background: #0052d9;
    border-color: #0052d9;
    color: #fff;
}

.page-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    border-color: #e0e0e0;
    color: #ccc;
}

/* 帮助中心横幅 */
.help-banner {
    height: 150px;
    background: url('/web/jinglisafe/assets/images/help-document/bg.png') no-repeat center center;
    background-size: cover;
    border-radius: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.help-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.help-banner-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-banner-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.help-banner-hot-words {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.help-banner-hot-words #hotWordsContainer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.help-banner-hot-words .tag-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

.help-banner-hot-words .tag-item {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: color 0.2s;
}

.help-banner-hot-words .tag-item:hover {
    color: #fff;
    text-decoration: underline;
}

.help-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.help-banner-search {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.help-banner-search input {
    width: 280px;
    height: 44px;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
}

.help-banner-search input::placeholder {
    color: #999;
}

.help-banner-search button {
    width: 80px;
    height: 44px;
    background: #0052d9;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.help-banner-search button:hover {
    background: #0043b5;
}

/* 响应式 */
@media (max-width: 1200px) {
    .help-banner-search input {
        width: 220px;
    }
}

@media (max-width: 992px) {
    .help-document-inner {
        flex-direction: column;
    }
    
    .help-sidebar {
        width: 100%;
    }
    
    .category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .category-item {
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .help-hero-banner {
        padding: 40px 0 35px;
    }

    .help-hero-title {
        font-size: 26px;
    }

    .help-hero-desc {
        font-size: 14px;
    }

    .help-hero-tags {
        flex-wrap: wrap;
    }

    .tab-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tab-list::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        white-space: nowrap;
        padding: 14px 16px;
        font-size: 14px;
    }

    .tab-item.active::after {
        left: 16px;
        right: 16px;
    }

    .article-item {
        padding: 16px;
        gap: 12px;
    }

    .article-title {
        font-size: 15px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 8px 16px;
        font-size: 12px;
    }

    .article-meta span {
        gap: 4px;
    }

    .article-meta img {
        width: 12px !important;
        height: 12px !important;
    }

    .pin-badge {
        font-size: 11px;
        padding: 1px 6px;
        margin-left: 4px;
    }

    .pagination-inner {
        padding: 16px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .page-item {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }

    .help-banner {
        height: auto;
        padding: 24px 20px;
    }

    .help-banner-content {
        flex-direction: column;
        gap: 20px;
    }

    .help-banner-left {
        align-items: center;
    }

    .help-banner-title {
        font-size: 22px;
    }

    .help-banner-hot-words {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .help-banner-search input {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .help-document-inner {
        padding: 0 12px;
    }

    .help-tabs {
        padding: 0 16px;
    }

    .tab-item {
        padding: 12px 14px;
        font-size: 13px;
    }

    .tab-item.active::after {
        left: 14px;
        right: 14px;
        height: 2px;
    }

    .article-item {
        padding: 14px;
    }

    .article-title {
        font-size: 14px;
    }

    .article-meta {
        gap: 6px 12px;
    }

    .pagination {
        gap: 4px;
    }

    .page-item {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }

}
