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

/* 页面头部 */
.help-header {
    background: linear-gradient(135deg, #0052d9 0%, #1890ff 50%, #40a9ff 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.help-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.help-header .page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.help-header .section-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.help-header .section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* 搜索区域 */
.help-search {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #f2f3f5;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: 2px solid #dcdcdc;
    border-radius: 6px;
    font-size: 16px;
    color: #1f2329;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

.search-form .btn-primary {
    height: 48px;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}

/* 热门关键词 */
.hot-keywords {
    margin-top: 24px;
    text-align: center;
}

.keywords-label {
    font-size: 14px;
    color: #86909c;
    margin-right: 12px;
}

.keywords-list {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f5f7fa;
    color: #4e5969;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background-color: #e6f4ff;
    color: #0052d9;
    transform: translateY(-1px);
}

/* 常用自助服务 */
.help-services {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.help-services .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2329;
    text-align: center;
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 82, 217, 0.06);
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 82, 217, 0.16);
    border-color: rgba(0, 82, 217, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #0052d9;
    background: linear-gradient(135deg, #e6f4ff 0%, #f0f5ff 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, #0052d9 0%, #1890ff 100%);
    color: #fff;
    transform: scale(1.1);
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
    margin: 0;
    text-align: center;
}

/* 帮助问题分类 */
.help-categories {
    padding: 80px 0;
    background-color: #fff;
}

.help-categories .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2329;
    text-align: center;
    margin-bottom: 48px;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    background: #fff;
    border: 1px solid rgba(0, 82, 217, 0.06);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 82, 217, 0.12);
    border-color: rgba(0, 82, 217, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f3f5;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0052d9;
    background: linear-gradient(135deg, #e6f4ff 0%, #f0f5ff 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2329;
    margin: 0 0 4px 0;
}

.category-description {
    font-size: 14px;
    color: #86909c;
    margin: 0;
    line-height: 1.5;
}

.category-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-child {
    margin-bottom: 8px;
}

.category-child:last-child {
    margin-bottom: 0;
}

.child-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: #4e5969;
    transition: all 0.3s ease;
}

.child-link:hover {
    background-color: #e6f4ff;
    color: #0052d9;
    transform: translateX(4px);
}

.child-name {
    font-size: 14px;
    font-weight: 500;
}

.child-count {
    font-size: 12px;
    color: #86909c;
    margin-left: auto;
    margin-right: 12px;
}

.child-link svg {
    color: #86909c;
    transition: transform 0.3s ease;
}

.child-link:hover svg {
    transform: translateX(4px);
    color: #0052d9;
}

/* 文档列表样式（用于docs页面） */
.category-docs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-item {
    margin-bottom: 12px;
}

.doc-item:last-child {
    margin-bottom: 0;
}

.doc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.doc-link:hover {
    background-color: #e6f4ff;
    transform: translateX(4px);
}

.doc-info {
    flex: 1;
}

.doc-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
    margin: 0 0 6px 0;
}

.doc-link:hover .doc-title {
    color: #0052d9;
}

.doc-description {
    font-size: 13px;
    color: #86909c;
    margin: 0;
    line-height: 1.5;
}

.doc-link svg {
    color: #86909c;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.doc-link:hover svg {
    transform: translateX(4px);
    color: #0052d9;
}

/* 面包屑导航 */
.help-breadcrumb {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #f2f3f5;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #0052d9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #0034a5;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #86909c;
}

.breadcrumb-current {
    color: #4e5969;
}

/* 文档列表页 */
.help-articles {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.articles-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.articles-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
}

.articles-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2329;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f2f3f5;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f2f3f5;
    transition: all 0.3s ease;
}

.article-item:hover {
    background: #fff;
    border-color: rgba(0, 82, 217, 0.2);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.1);
    transform: translateX(4px);
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    margin: 0 0 12px 0;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.article-description {
    font-size: 14px;
    color: #86909c;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #86909c;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: #86909c;
}

.meta-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e6f4ff;
    color: #0052d9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.article-action {
    flex-shrink: 0;
    margin-left: 24px;
}

/* 文档详情页 */
.help-detail {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.detail-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f2f3f5;
}

.article-detail .article-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2329;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #4e5969;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2329;
    margin: 32px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f3f5;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2329;
    margin: 24px 0 12px 0;
}

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

.article-body ul,
.article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-body code {
    background-color: #f5f7fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e34d59;
}

.article-body pre {
    background-color: #f5f7fa;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #4e5969;
}

.article-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f2f3f5;
}

.article-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.article-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-actions .btn-outline {
    background: #fff;
    border: 1px solid #dcdcdc;
    color: #4e5969;
}

.article-actions .btn-outline:hover {
    border-color: #0052d9;
    color: #0052d9;
    background: #f0f5ff;
}

.article-actions .btn-default {
    background: #f5f7fa;
    border: 1px solid #dcdcdc;
    color: #4e5969;
}

.article-actions .btn-default:hover {
    background: #e6f4ff;
    border-color: #0052d9;
    color: #0052d9;
}

/* 相关文档 */
.related-articles {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2f3f5;
}

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

.related-item {
    margin-bottom: 12px;
}

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

.related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: #4e5969;
    transition: all 0.3s ease;
}

.related-link:hover {
    background-color: #e6f4ff;
    color: #0052d9;
    transform: translateX(4px);
}

.related-link svg {
    flex-shrink: 0;
    color: #86909c;
    transition: transform 0.3s ease;
}

.related-link:hover svg {
    transform: translateX(4px);
    color: #0052d9;
}

/* 搜索结果页 */
.help-search-results {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.results-header {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2329;
    margin-bottom: 12px;
}

.keyword-highlight {
    color: #0052d9;
}

.results-count {
    font-size: 14px;
    color: #86909c;
    margin: 0;
}

.results-count strong {
    color: #0052d9;
    font-weight: 600;
}

.results-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.result-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 8px 24px rgba(0, 82, 217, 0.12);
    transform: translateY(-2px);
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    margin: 0 0 12px 0;
}

.result-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #0052d9;
}

.result-description {
    font-size: 14px;
    color: #86909c;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.result-action {
    flex-shrink: 0;
}

/* 热点文档 */
.help-hot-articles {
    padding: 80px 0;
    background-color: #fff;
}

.help-hot-articles .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2329;
    text-align: center;
    margin-bottom: 48px;
}

.hot-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hot-article-item {
    position: relative;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0, 82, 217, 0.06);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hot-article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 82, 217, 0.12);
    border-color: rgba(0, 82, 217, 0.2);
}

.hot-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-radius: 50%;
}

.hot-article-info {
    padding-right: 40px;
}

.hot-article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    margin: 0 0 12px 0;
}

.hot-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.hot-article-summary {
    font-size: 14px;
    color: #86909c;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-count {
    display: inline-block;
    font-size: 12px;
    color: #86909c;
    margin-top: 8px;
}

.category-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f2f3f5;
}

.category-action .btn {
    width: 100%;
}

/* 用户反馈 */
.article-feedback {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
    margin-top: 24px;
}

.feedback-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2f3f5;
}

.feedback-form {
    margin-top: 20px;
}

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

.feedback-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2329;
    margin-bottom: 8px;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2329;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 82, 217, 0.08);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 14px;
    color: #86909c;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-text strong {
    color: #0052d9;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .categories-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .help-header {
        padding: 60px 0 40px;
    }
    
    .help-header .section-title {
        font-size: 32px;
    }
    
    .help-header .section-description {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-form .btn-primary {
        width: 100%;
    }
    
    .categories-list {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-action {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }
    
    .article-action .btn {
        width: 100%;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-action {
        width: 100%;
    }
    
    .result-action .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .help-header .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-content,
    .article-detail {
        padding: 24px 16px;
    }
    
    .article-detail .article-title {
        font-size: 24px;
    }
}
