:root {
    --primary-color: #4ea2f5;
    --primary-hover: #2d8be8;
    --primary-light: #f0f7ff;
    --text-main: #333;
    --text-sub: #666;
    --text-light: #999;
    --bg-color: #f5f7fa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 8px 24px rgba(78, 162, 245, 0.15);
    --primary-dark: #3b8ed4;
    --text-normal: #606266;
    --border-color: #e4e7ed;
    --shadow-card: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 6px 18px 0 rgba(0, 0, 0, 0.1);

}
* { box-sizing: border-box; }
body { background-color: var(--bg-color); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text-main); line-height: 1.5; }

/* --- 1. 顶部搜索区域 --- */
.hero-search-section {
    background: linear-gradient(135deg, #4ea2f5 0%, #6fc5f8 100%);
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* 装饰背景圆 */
.hero-search-section::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 600px; height: 600px;
    background: rgba(255,255,255,0.1); border-radius: 50%;
}
.hero-search-section::after {
    content: ''; position: absolute; bottom: -20%; right: -10%; width: 400px; height: 400px;
    background: rgba(255,255,255,0.08); border-radius: 50%;
}

.hero-title { font-size: 36px; color: #fff; margin-bottom: 40px; font-weight: 600; letter-spacing: 1px; position: relative; z-index: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.search-box-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.search-form:focus-within {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.search-form .icon-sousuo { padding: 15px 0 15px 25px; color: var(--primary-color); font-size: 20px; }
.search-form input[type="search"] {
    flex: 1; border: none; outline: none; font-size: 16px; padding: 0 15px; color: var(--text-main); background: transparent;
}
.search-form input[type="search"]::placeholder { color: var(--text-light); }
.search-form input[type="submit"] {
    background: var(--primary-color); color: #fff; border: none;
    padding: 12px 35px; border-radius: 50px; font-size: 16px; cursor: pointer;
    transition: background 0.3s; font-weight: 500;
}
.search-form input[type="submit"]:hover { background: var(--primary-hover); }

/* --- 2. 内容容器 --- */
.main-container {
    max-width: 1200px;
    margin: -60px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* --- 3. 通用卡片容器 --- */
.content-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}
.section-title {
    font-size: 24px;
    color: var(--text-main);
    font-weight: 600;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}
/* 标题装饰线 */
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: var(--primary-color); border-radius: 2px;
}

/* --- 4. 常见问题网格 --- */
.faq-grid {
    display: grid;
    /* 自动填充，最小宽度200px，确保响应式 */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.faq-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-sub);
    transition: all 0.3s ease;
}
.faq-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    color: var(--primary-color);
}
.faq-card .icon {
    font-size: 32px; color: var(--primary-color); margin-bottom: 15px; display: block;
    transition: transform 0.3s;
}
.faq-card:hover .icon { transform: scale(1.2); }
.faq-card p { margin: 0; font-size: 15px; font-weight: 500; }

/* --- 5. 功能介绍 & 公众号列表 --- */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.link-item {
    display: block;
    padding: 15px 20px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-sub);
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.link-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

/* --- 6. 搜索结果页样式 --- */
.search-result-list { list-style: none; padding: 0; margin: 0; }
.search-result-item {
    display: block;
    padding: 20px;
    margin-bottom: 15px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
    border: 1px solid #eee;
}
.search-result-item:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.search-result-item::before {
    content: '\f054'; font-family: FontAwesome; margin-right: 10px; color: var(--primary-color); font-size: 12px;
}



/* --- 响应式调整 --- */
@media (max-width: 768px) {
    .hero-search-section { padding: 60px 20px 80px; }
    .hero-title { font-size: 26px; margin-bottom: 30px; }
    .content-section { padding: 25px 15px; }
    .section-title { font-size: 20px; }
    .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } /* 手机端两列 */
    .link-grid { grid-template-columns: 1fr; }
    .search-form input[type="submit"] { padding: 12px 20px; }
}


/******************************内容页面*************************/
/* 页面容器 */
.help-page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 129px);
}

/* 左侧导航卡片 */
.help-aside-card {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden; /* 关键：让header圆角显示 */
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: calc(100vh - 153px);
    display: flex;
    flex-direction: column;
}

/* 侧边栏头部 */
.aside-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 24px 20px;
    color: #fff;
}

.aside-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.aside-header h2 i { margin-right: 10px; font-size: 22px; }
.aside-header p { margin: 8px 0 0; font-size: 13px; opacity: 0.9; }

/* 导航滚动区域 */
.nav-scroll-wrapper {
    flex: 1;
    overflow-y: hidden; /* 默认隐藏滚动条 */
    overflow-x: hidden;
    position: relative;
    transition: overflow-y 0.3s ease;
}

/* 鼠标悬停时显示滚动条 */
.help-aside-card:hover .nav-scroll-wrapper {
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.nav-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}
.nav-scroll-wrapper::-webkit-scrollbar-thumb {
    background: transparent; /* 默认透明 */
    border-radius: 3px;
    transition: background 0.3s;
}
/* 悬停时滚动条变色 */
.help-aside-card:hover .nav-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(78, 162, 245, 0.4);
}
.help-aside-card:hover .nav-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
.nav-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* 导航菜单 */
.nav-menu-list { padding: 12px 0; }

.nav-group { border-bottom: 1px solid var(--bg-color); }
.nav-group:last-child { border-bottom: none; }

.nav-group-title {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: background 0.2s;
    user-select: none;
}

.nav-group-title:hover { background: var(--primary-light); }

.nav-group-title.active-header {
    background: var(--primary-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}

.nav-group-title h3 { margin: 0; font-size: 15px; display: flex; align-items: center; }
.nav-group-title h3 i { color: var(--primary-color); margin-right: 10px; }
.nav-group-title .arrow { transition: transform 0.3s; color: var(--text-sub); }
.nav-group-title.is-open .arrow { transform: rotate(180deg); }

/* 子菜单 */
.nav-submenu {
    display: none;
    background: #fbfbfb;
    padding: 8px 16px 16px;
}
.nav-submenu.open { display: block; animation: fadeIn 0.3s ease; }

.nav-submenu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-normal);
    font-size: 14px;
    border-radius: 6px;
    margin-top: 4px;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}

.nav-submenu a:hover {
    background: #fff;
    color: var(--primary-color);
    padding-left: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-submenu a.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(78, 162, 245, 0.25);
}

/* 右侧内容卡片 */
.help-content-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 28px 32px;
    color: #fff;
}

.breadcrumb-nav { font-size: 14px; opacity: 0.9; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.breadcrumb-nav a { color: #fff; text-decoration: none; opacity: 0.8; }
.breadcrumb-nav a:hover { opacity: 1; }
.breadcrumb-nav span { opacity: 0.6; }

.content-header h1 { margin: 0; font-size: 26px; font-weight: 600; display: flex; align-items: center; gap: 12px; }

.article-body {
    padding: 32px;
    line-height: 1.8;
    color: var(--text-main);
    flex: 1;
}

.article-body p { margin-bottom: 16px; }

/* 图片样式 */
.article-body img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 20px 0;
    cursor: zoom-in;
    transition: transform 0.3s;
    display: block;
}
.article-body img:hover { transform: scale(1.01); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* Markdown 元素美化 */
.article-body h2, .article-body h3 { color: var(--text-main); margin: 24px 0 16px; font-weight: 600; }
.article-body h2 { font-size: 22px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.article-body code { background: var(--primary-light); color: var(--primary-dark); padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.article-body pre { background: #282c34; color: #abb2bf; padding: 20px; border-radius: 8px; overflow-x: auto; position: relative; }
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--primary-light);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}

/* 返回顶部 */
.back-to-top-btn {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(78, 162, 245, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; }
.back-to-top-btn:hover { background: var(--primary-dark); transform: translateY(-3px); color: #fff; }

/* 图片预览遮罩层样式 */
.img-preview-layer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}
.img-preview-layer.show { opacity: 1; visibility: visible; }

.img-preview-container {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.img-preview-layer.show .img-preview-container { transform: scale(1); }

.img-preview-container img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: contain;
}

.img-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.img-preview-close:hover { opacity: 1; }

.img-preview-info {
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    font-size: 13px;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* 响应式 */
@media (max-width: 992px) {
    .help-page-layout { flex-direction: column; padding: 12px; }
    .help-aside-card { width: 100%; position: static; max-height: none; }
    .nav-scroll-wrapper { overflow-y: auto; } /* 移动端直接显示 */
    .nav-submenu { display: block; }
}