/**
 * OfferKuai 帮助中心专用样式
 * 包含：字体 @font-face 声明、帮助中心各页面共享组件样式
 * 所有帮助中心页面（help.php / help-category.php / help-article.php / help-search.php）引入此文件
 * 字体文件路径相对于网站根目录
 */

/* ============================================
   1. 字体定义（与 common.css 合并，避免重复加载）
   已在 common.css 中定义，此处不重复声明
   ============================================ */

/* ============================================
   2. 帮助中心通用关键词列表
   ============================================ */
.help-keyword-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-keyword-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #F9FAFB;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.help-keyword-item:hover {
    background: white;
    border-color: #2563EB;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.help-keyword-text {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

.help-keyword-item:hover .help-keyword-text {
    color: #2563EB;
}

.help-keyword-arrow {
    font-size: 0.8rem;
    color: #9CA3AF;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.help-keyword-item:hover .help-keyword-arrow {
    transform: translateX(2px);
    color: #2563EB;
}

/* 关键词标签（#tag 样式，点击搜索）*/
.help-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.help-tag:hover {
    background: var(--brand, #2563EB);
    color: white;
    transform: translateY(-1px);
}

/* 静态标签（不可点击，无hover效果） */
.help-tag-static {
    cursor: default;
}

.help-tag-static:hover {
    background: #F3F4F6;
    color: #4B5563;
    transform: none;
}

/* 分类页关键词列表（带内容图标） */
.help-keyword-item--category {
    padding: 1.25rem 1.5rem;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F3F4F6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-keyword-item--category:hover {
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
    background: #FFFFFF;
}

.help-keyword-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.help-keyword-icon {
    color: #2563EB;
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.help-keyword-title {
    font-size: 1.0rem;
    color: #1F2937;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-keyword-item--category:hover .help-keyword-title {
    color: #2563EB;
}

.help-keyword-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.help-keyword-meta {
    font-size: 0.85rem;
    color: #9CA3AF;
    flex-shrink: 0;
}

/* ============================================
   3. 侧边栏通用样式（分类页 & 搜索页共用）
   ============================================ */
.help-sidebar {
    position: sticky;
    top: 100px;
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #F3F4F6;
}

.help-sidebar-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
}

.help-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.help-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #4B5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.help-sidebar-item:hover {
    background: #FFFFFF;
    color: #2563EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.help-sidebar-item.active {
    background: #2563EB;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* 侧边栏分类图标色块 */
.help-sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.help-sidebar-item.active .help-sidebar-dot {
    background: white !important;
}

/* ============================================
   4. 分页通用样式
   ============================================ */
.help-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.help-pagination a,
.help-pagination span {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.help-pagination a {
    background: #F9FAFB;
    color: #4B5563;
}

.help-pagination a:hover {
    background: #FFFFFF;
    color: #2563EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.help-pagination .current {
    background: #2563EB;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* ============================================
   5. 首页模块标题
   ============================================ */
.help-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F3F4F6;
}

.help-module-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A0A0A;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.help-module-title i {
    font-size: 1.2rem;
    color: #2563EB;
}

.help-view-all {
    font-size: 0.875rem;
    color: #6B6B6B;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.help-view-all:hover {
    color: #2563EB;
}

/* ============================================
   6. 内容页文章排版
   ============================================ */
.help-article-content {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
}

.help-article-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #F3F4F6;
}

.help-article-content h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.help-article-content p {
    margin-bottom: 1.5rem;
}

.help-article-content ul,
.help-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.help-article-content li {
    margin-bottom: 0.5rem;
}

.help-article-content blockquote {
    border-left: 4px solid #2563EB;
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-radius: 4px;
    margin: 2rem 0;
    font-style: italic;
}

.help-article-content code {
    background: #F3F4F6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.help-article-content pre {
    background: #1F2937;
    color: #F9FAFB;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.help-article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ============================================
   7. 内容页侧边栏
   ============================================ */
.article-sidebar-widget {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #F3F4F6;
    padding: 1.5rem;
}

.article-widget-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* TOC 目录 */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.toc-item a {
    font-size: 0.9rem;
    color: #4B5563;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    line-height: 1.5;
}

.toc-item a:hover {
    color: #2563EB;
    transform: translateX(2px);
}

.toc-item.active a {
    color: #2563EB;
    font-weight: 600;
}

/* 相关问题 */
.help-related-link {
    font-size: 0.9rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    gap: 0.75rem;
    line-height: 1.55;
    padding: 0.4rem 0;
}

.help-related-link i {
    color: #2563EB;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.help-related-link:hover {
    color: #2563EB;
}

/* ============================================
   8. 搜索结果高亮
   ============================================ */
.search-highlight {
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    font-weight: 600;
}

/* ============================================
   9. 首页Hero区域
   ============================================ */
.help-hero {
    background: linear-gradient(135deg, #FAFAFA 0%, #F8F7F4 100%);
    padding-bottom: 4rem;
}

/* Hero文本区域 */
.help-hero-text {
    margin-bottom: 2.5rem;
}

/* Hero搜索框区域 */
.help-hero-search {
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

/* Hero快捷标签区域 */
.help-hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.help-hero-tags-label {
    font-size: 0.875rem;
    color: #6B6B6B;
    font-weight: 500;
}

.help-hero-tag-item {
    font-size: 0.8125rem;
    color: #2563EB;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    background: rgba(37, 99, 235, 0.06);
    transition: all 0.2s ease;
    font-weight: 500;
}

.help-hero-tag-item:hover {
    background: #2563EB;
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .help-hero {
        padding-bottom: 2rem;
    }
    
    .help-hero-text {
        margin-bottom: 1.5rem;
    }
    
    .help-hero-search {
        margin-bottom: 1rem;
    }
    
    .help-hero-tags {
        gap: 0.5rem;
    }
    
    .help-hero-tags-label {
        font-size: 0.8rem;
    }
    
    .help-hero-tag-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   10. 首页分类卡片
   ============================================ */
.help-category-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.help-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.15);
}

.help-category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.help-category-card:hover .help-category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   11. 首页网格布局
   ============================================ */
.help-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

/* ============================================
   12. 分类页布局
   ============================================ */
.category-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================
   13. 排序切换标签
   ============================================ */
.sort-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.sort-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
}

.sort-tab:hover {
    color: #2563EB;
    background: #EFF6FF;
}

.sort-tab.active {
    color: #2563EB;
    background: #EFF6FF;
    font-weight: 600;
}

.sort-tab i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .sort-tabs {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    .sort-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   14. 文章页引导语
   ============================================ */
.article-guiding {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
    border: 1px solid #DBEAFE;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.article-guiding-text {
    font-size: 1rem;
    color: #1E40AF;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   15. 文章页布局
   ============================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

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

.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .article-sidebar {
        position: static;
    }
}

/* ============================================
   16. 文章反馈区域
   ============================================ */
.feedback-section {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 5rem;
    text-align: center;
    border: 1px solid #F3F4F6;
}

/* ============================================
   17. 引导语区域
   ============================================ */
.guiding-section {
    background: #FAFAF9;
    border-left: 3px solid #D4A574;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    position: relative;
}

.guiding-section::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    color: #D4A574;
    opacity: 0.3;
    line-height: 1;
}

.guiding-section p {
    color: #57534E;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}

/* ============================================
   18. 搜索页布局
   ============================================ */
.search-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .search-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================
   19. 搜索文章卡片
   ============================================ */
.help-article-card {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    margin-bottom: 1.25rem;
}

.help-article-card:hover {
    border-color: #2563EB;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.help-article-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.help-article-excerpt {
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.help-article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #9CA3AF;
}

/* ============================================
   20. 搜索页和分类页 Hero 搜索框
   ============================================ */
.help-search-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.help-search-hero-text {
    flex: 1;
    min-width: 0;
}

.help-search-hero-search {
    flex-shrink: 0;
    width: 320px;
}

.help-search-inline {
    position: relative;
    display: flex;
    align-items: center;
}

.help-search-inline-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1F2937;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.help-search-inline-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.help-search-inline-input::placeholder {
    color: #9CA3AF;
}

.help-search-inline-btn {
    position: absolute;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.help-search-inline-btn:hover {
    background: #2563EB;
    color: white;
}

/* 平板设备适配 */
@media (max-width: 1024px) {
    .help-search-hero {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .help-search-hero-search {
        width: 100%;
        max-width: 480px;
    }
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .help-search-hero {
        gap: 1.25rem;
    }
    
    .help-search-hero-search {
        max-width: 100%;
    }
    
    .help-search-inline-input {
        padding: 0.75rem 3rem 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .help-search-inline-btn {
        width: 32px;
        height: 32px;
        right: 0.375rem;
    }
}

/* ============================================
   21. 响应式优化
   ============================================ */

/* 平板设备适配 (1024px以下) */
@media (max-width: 1024px) {
    .help-sidebar {
        position: relative;
        top: 0;
    }

    .help-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .help-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .help-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .article-layout,
    .category-layout,
    .search-layout {
        grid-template-columns: 1fr !important;
    }
    
    .article-sidebar {
        position: static !important;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 移动设备适配 (768px以下) */
@media (max-width: 768px) {
    .help-hero {
        padding-bottom: 3rem;
        padding-top: 8rem;
    }
    
    .page-hero-label {
        font-size: 0.65rem;
        margin-bottom: 1rem;
    }
    
    .page-hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .page-hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .help-categories-section {
        padding: 3rem 0;
    }
    
    .help-categories-header {
        margin-bottom: 2rem;
    }
    
    .help-categories-header h2 {
        font-size: 1.4rem;
    }
    
    .help-categories-header p {
        font-size: 0.9rem;
    }
    
    .help-categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .help-category-card {
        padding: 1.5rem;
    }
    
    .help-list-section {
        padding: 3rem 0;
    }
    
    .help-module-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .help-module-title {
        font-size: 1.2rem;
    }
    
    .help-keyword-item {
        padding: 0.875rem 1rem;
    }
    
    .help-keyword-text {
        font-size: 0.875rem;
    }
    
    .help-cta-section {
        padding: 3rem 0;
    }
    
    .help-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .help-cta-content p {
        font-size: 0.95rem;
    }
    
    .help-cta-btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .help-search-input {
        padding: 1rem 1.25rem 1rem 3rem;
        font-size: 1rem;
    }
    
    .help-search-icon {
        left: 1rem;
        font-size: 1rem;
    }
    
    .article-layout {
        margin-top: 1.5rem;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .feedback-section {
        padding: 1.5rem;
        margin-top: 3rem;
    }
    
    .sort-tabs {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .sort-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .help-pagination {
        margin-top: 2rem;
    }
    
    .help-pagination a,
    .help-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    /* 分类卡片移动端优化 */
    .help-category-card h3 {
        font-size: 1.05rem;
    }
    
    .help-category-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    /* 搜索和分类页侧边栏移动端优化 */
    .help-sidebar {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .help-sidebar-title {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .help-sidebar-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* 小型移动设备适配 (480px以下) */
@media (max-width: 480px) {
    .help-hero {
        padding-top: 7rem;
        padding-bottom: 2.5rem;
    }
    
    .help-categories-section,
    .help-list-section {
        padding: 2.5rem 0;
    }
    
    .help-cta-section {
        padding: 2.5rem 0;
    }
    
    .help-cta-content h2 {
        font-size: 1.3rem;
    }
    
    .help-module-title {
        font-size: 1.1rem;
    }
    
    .help-keyword-item {
        padding: 0.75rem 0.875rem;
    }
    
    .help-category-card {
        padding: 1.25rem;
    }
    
    .help-article-card {
        padding: 1.25rem;
    }
    
    .help-article-title {
        font-size: 1.05rem;
    }
}
.help-categories-section {
    padding: 6rem 0;
    background: white;
}

.help-categories-header {
    margin-bottom: 3.5rem;
}

.help-categories-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 0.75rem;
}

.help-categories-header p {
    color: #6B6B6B;
    font-size: 1rem;
}

.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.help-category-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0A0A0A;
    margin-bottom: 0.75rem;
}

.help-category-card p {
    color: #6B6B6B;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.help-category-card .category-link-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563EB;
    font-size: 0.85rem;
    font-weight: 600;
}

.help-category-card .category-link-text i {
    font-size: 0.7rem;
}

.help-category-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: #F9FAFB;
    border-radius: 20px;
    color: #9CA3AF;
}

.help-category-empty i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

/* ============================================
   22. 首页内容板块
   ============================================ */
.help-list-section {
    background: #FAFAFA;
    border-top: 1px solid #F3F4F6;
    padding: 6rem 0;
}

.help-module-empty {
    color: #9CA3AF;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   23. 首页CTA区域
   ============================================ */
.help-cta-section {
    background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.help-cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 32px 32px;
}

.help-cta-content {
    position: relative;
    z-index: 1;
}

.help-cta-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.help-cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.help-cta-btn {
    background: white;
    color: #2563EB;
    padding: 1.1rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.help-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ============================================
   24. 搜索框组件
   ============================================ */
.help-search-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 9999;
}

.help-search-wrapper.with-dropdown {
    z-index: 9999;
}

.help-search-box {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.help-search-box.active {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.help-search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    font-size: 1.1rem;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: transparent;
    outline: none;
}

.help-search-box.active .help-search-input {
    border-color: #2563EB;
}

.help-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.help-search-box.active .help-search-icon {
    color: #2563EB;
}

.help-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #F3F4F6;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-dropdown-section {
    padding: 1.25rem;
}

.search-dropdown-section:not(:last-child) {
    border-bottom: 1px solid #F3F4F6;
}

.search-dropdown-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.search-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #F3F4F6;
    border-radius: 100px;
    font-size: 0.875rem;
    color: #4B5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #E5E7EB;
    color: #2563EB;
}

.recommend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recommend-item:hover {
    background: #F8FAFF;
    color: #2563EB;
}

.recommend-item i {
    color: #9CA3AF;
}

.recommend-item span {
    font-size: 0.9375rem;
}

.help-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.quick-tags-label {
    font-size: 0.875rem;
    color: #6B6B6B;
}

.quick-tags-list {
    display: flex;
    gap: 0.75rem;
}

.quick-tag {
    font-size: 0.875rem;
    color: #2563EB;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-tag:hover {
    text-decoration: underline;
}

/* ============================================
   25. 全局搜索模态框（覆盖 common.css 样式）
   ============================================ */
.global-search-overlay {
    position: fixed !important;
    inset: 0;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.global-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.global-search-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-search-overlay.active .global-search-modal {
    transform: translateY(0) scale(1);
}

.global-search-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center;
    background: #FAFAFA !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px;
    padding: 0 !important;
    gap: 0 !important;
    min-height: 48px;
}

.global-search-icon {
    position: absolute !important;
    left: 1.25rem !important;
    color: #9CA3AF !important;
    font-size: 0.95rem !important;
    flex-shrink: 0;
    padding: 0 !important;
    pointer-events: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: auto !important;
}

.global-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none;
    font-size: 1rem !important;
    color: #1F2937 !important;
    padding: 0.75rem 4rem 0.75rem 3rem !important;
    width: 100% !important;
    min-width: 0;
    font-family: inherit !important;
    border-radius: 12px !important;
}

.global-search-input::placeholder {
    color: #9CA3AF !important;
}

.global-search-kbd {
    position: absolute !important;
    right: 1rem !important;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6B7280;
    background: #F3F4F6 !important;
    border: none !important;
    flex-shrink: 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.global-search-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: #9CA3AF;
}

.global-search-hint kbd {
    background: #F3F4F6;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.global-search-divider {
    opacity: 0.5;
}

/* 导航栏搜索按钮 */
.nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #4B5563;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    background: #F3F4F6;
    color: #2563EB;
}

@media (max-width: 768px) {
    .global-search-overlay {
        padding-top: 5vh;
    }
    
    .global-search-modal {
        width: 95%;
        border-radius: 14px;
        padding: 1rem 1.25rem;
    }
    
    .global-search-input {
        padding: 0.75rem 3.5rem 0.75rem 2.75rem !important;
        font-size: 1rem !important;
    }
    
    .global-search-hint {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .help-categories-section {
        padding: 4rem 0;
    }
    .help-categories-header {
        margin-bottom: 2.5rem;
    }
    .help-categories-header h2 {
        font-size: 1.5rem;
    }
    .help-list-section {
        padding: 4rem 0;
    }
    .help-cta-section {
        padding: 4rem 0;
    }
    .help-cta-content h2 {
        font-size: 1.75rem;
    }
    .help-cta-content p {
        font-size: 1rem;
    }
    .help-search-input {
        padding: 1rem 1.25rem 1rem 3rem;
        font-size: 1rem;
    }
    .help-search-icon {
        left: 1rem;
        font-size: 1rem;
    }
    .search-dropdown-section {
        padding: 1rem;
    }
    .quick-tags-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   26. 搜索历史记录
   ============================================ */
.help-search-history {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #F3F4F6;
    padding: 1rem;
    z-index: 100;
    animation: slideDown 0.3s ease-out;
}

.help-search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F3F4F6;
}

.help-search-history-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-search-history-clear {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #6B7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.help-search-history-clear:hover {
    background: #F3F4F6;
    color: #EF4444;
}

.help-search-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-search-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    background: #F9FAFB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.help-search-history-item:hover {
    background: #F3F4F6;
}

.help-search-history-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
}

.help-search-history-item a:hover {
    color: #2563EB;
}

.help-search-history-item a i {
    color: #9CA3AF;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.help-search-history-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-search-history-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.help-search-history-delete:hover {
    background: #FEE2E2;
    color: #EF4444;
}

/* 平板设备适配 */
@media (max-width: 1024px) {
    .help-search-history {
        position: relative;
        top: 0;
        margin-top: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .help-search-history {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .help-search-history-header {
        margin-bottom: 0.625rem;
        padding-bottom: 0.625rem;
    }
    
    .help-search-history-item {
        padding: 0.5rem 0.625rem;
    }
    
    .help-search-history-item a {
        font-size: 0.8125rem;
    }
}
