:root {
    --help-main-color: #5D3FD3;
    --help-light-purple: #f0edff;
    --help-dark-purple: #4a2fb8;
    --help-gradient: linear-gradient(135deg, #5D3FD3 0%, #8D71FF 100%);
}

/* 帮助中心容器 */
.help-center-container {
    max-width: 1200px;
    width: 100%;
    margin: 15px auto 60px;
    padding: 0 20px 60px 20px;
    box-sizing: border-box;
}

/* 页面头部 */
.help-center-header {
    background: var(--help-gradient);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 30px rgba(93, 63, 211, 0.2);
}

.help-center-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 12px;
}

.help-center-header p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 搜索框 */
.help-center-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 确保内部元素不会超出圆角边界 */
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 0; /* 移除独立圆角，使用父容器的圆角 */
    background: transparent;
}

.search-button {
    background: var(--help-main-color);
    color: white;
    border: none;
    border-radius: 50px; /* 按钮保持圆角 */
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.search-button:hover {
    background: var(--help-dark-purple);
}

/* 内容布局 */
.help-center-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.help-center-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.section-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.section-title {
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.section-title p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 专题卡片网格 */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.topic-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(93, 63, 211, 0.15);
}

.topic-icon {
    width: 60px;
    height: 60px;
    background: var(--help-light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.topic-icon i {
    font-size: 28px;
    color: var(--help-main-color);
}

.topic-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.topic-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 热门问题 */
.popular-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-articles-list li {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px 14px;
    transition: box-shadow 0.3s, transform 0.3s;
    background: #fafafa;
}

.popular-articles-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 10px;
}

.popular-articles-list li:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-title {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.article-meta {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    white-space: nowrap;
}

/* 空状态 */
.empty-state {
    padding: 16px;
    border-radius: 12px;
    background: #f9f6ff;
    color: #7a5af5;
    text-align: center;
    border: 1px dashed #e2d9ff;
}

/* 布局 */
.help-center-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.help-center-sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.category-tree {
    list-style: none;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.category-item.active .category-link,
.category-link:hover {
    background: var(--help-light-purple);
    color: var(--help-main-color);
}

.article-count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.sub-categories {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.sub-categories li {
    margin-bottom: 5px;
}

.sub-categories a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.sub-categories li.active a,
.sub-categories a:hover {
    background: var(--help-light-purple);
    color: var(--help-main-color);
}

/* 主内容区 */
.help-center-main {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.help-center-main h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.topic-summary,
.category-summary {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 文章列表 */
.articles-list {
    margin-top: 20px;
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.article-item h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-item h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-item h2 a:hover {
    color: var(--help-main-color);
}

.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.article-meta i {
    margin-right: 5px;
}

/* 文章详情 */
.article-detail {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-content h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-top: 30px;
}

.article-body h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
}

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

.article-body ul,
.article-body ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag {
    background: var(--help-light-purple);
    color: var(--help-main-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* 文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    max-width: 45%;
}

.article-navigation .nav-link:hover {
    background: var(--help-light-purple);
    color: var(--help-main-color);
}

.article-navigation .nav-link.prev {
    text-align: left;
}

.article-navigation .nav-link.next {
    text-align: right;
    margin-left: auto;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-articles h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

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

.related-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.related-list a:hover {
    color: var(--help-main-color);
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: var(--help-main-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 搜索结果 */
.search-results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.search-results h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.search-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}