/* 帮助页面通用样式 */
/* 帮助页面特定样式 */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 30px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
}

/* 右侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 右侧帮助列表 */
.related-help {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.related-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

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

.related-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.related-item a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.related-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 常见问题 */
.faq-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-answer {
    color: #718096;
    font-size: 0.95rem;
    margin-left: 30px;
}

/* 帮助详情页面特定样式 */
.help-article-page {
    padding: 60px 0;
}

/* 文章容器 */
.article-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

/* 主要内容区域 */
.article-container {
    flex: 1;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 相关文章列表 */
.related-articles-sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.related-list-sidebar {
    list-style: none;
}

.related-item-sidebar {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.related-item-sidebar:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-title-sidebar {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.related-title-sidebar:hover {
    color: #667eea;
}

.related-meta-sidebar {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    gap: 15px;
}

/* 热门文章 */
.popular-articles {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 文章头部 */
.article-header {
    padding: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.article-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #718096;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章内容 */
.article-content {
    padding: 40px;
    line-height: 1.8;
    color: #4a5568;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 30px 0 15px;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 25px 0 12px;
}

.article-content h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 20px 0 10px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
    color: #4a5568;
}

.article-content code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #742a2a;
}

.article-content pre {
    background: #1a202c;
    color: white;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 文章标签 */
.article-tags {
    padding: 0 40px 40px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #cbd5e0;
    color: #2d3748;
}

/* 文章操作 */
.article-actions {
    padding: 30px 40px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 评论区 */
.comments-section {
    padding: 40px;
}

.comments-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 30px;
}

.comments-count {
    color: #718096;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* 评论表单 */
.comment-form {
    background: #f7fafc;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* 评论列表 */
.comments-list {
    margin-bottom: 40px;
}

.comment-item {
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h5 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

.comment-content {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #718096;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: #667eea;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 面包屑导航样式 */
.breadcrumb {
    font-size: 0.95rem;
    color: #718096;
    padding: 20px 40px 0;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 0.85rem;
}

.breadcrumb span {
    color: #2d3748;
    font-weight: 500;
}

/* 帮助文章列表页面样式 */
.help-articles-page {
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
}

/* 搜索和筛选区域 */
.search-filter {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 1.1rem;
}

.filter-options {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 文章列表样式 */
.articles-list {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.article-item {
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.article-item:hover {
    background: #f7fafc;
    padding-left: 15px;
}

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

.article-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.article-title:hover {
    color: #667eea;
}

.article-excerpt {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover:not(.active):not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 文章统计 */
.article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

.stats-info {
    color: #718096;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .help-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .article-wrapper {
        flex-direction: column;
    }
    
    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .related-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .related-image {
        width: 100%;
        height: 150px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .breadcrumb {
        padding: 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .help-container {
        padding: 20px 15px;
    }
    
    .help-header h1 {
        font-size: 2rem;
    }
    
    .help-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .support-options {
        flex-direction: column;
        gap: 20px;
    }
    
    .help-article-page {
        padding: 20px 0;
    }
    
    .article-header,
    .article-content,
    .article-tags,
    .article-actions,
    .related-articles,
    .comments-section {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
}
