/* ============================================
   文章详情页样式 - 主流电商风格
   与帮助中心共用
   ============================================ */

   .article-container {
    padding: 30px 0 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 0 20px;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #DD302D;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 两列布局 */
.article-layout {
    display: flex;
    gap: 40px;
}

/* 左侧主内容区 */
.article-main {
    flex: 1;
    min-width: 0;
}

/* 文章头部 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.article-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    font-size: 14px;
}

/* 文章正文 - 同时支持 .article-body (帮助中心) 和 .article-content (文章详情页) */
.article-body,
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-body p,
.article-content p {
    margin-bottom: 20px;
}

.article-body h2,
.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.article-body h3,
.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 12px;
}

.article-body h4,
.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 10px;
}

.article-body ul,
.article-content ul,
.article-body ol,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-body li,
.article-content li {
    margin-bottom: 8px;
}

/* 文章内图片 - 限制大小，防止撑破容器 */
.article-body img,
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    object-fit: contain;
}

/* 如果图片有内联宽度样式，强制覆盖 */
.article-body img[style*="width"],
.article-content img[style*="width"] {
    max-width: 100% !important;
    height: auto !important;
}

/* 响应式表格和iframe */
.article-body table,
.article-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-body iframe,
.article-content iframe,
.article-body video,
.article-content video {
    max-width: 100%;
    height: auto;
}

.article-body th,
.article-content th,
.article-body td,
.article-content td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.article-body th,
.article-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.article-body a,
.article-content a {
    color: #DD302D;
    text-decoration: none;
}

.article-body a:hover,
.article-content a:hover {
    text-decoration: underline;
}

.article-body blockquote,
.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #DD302D;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.article-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: #e9ecef;
    border-color: #DD302D;
    color: #DD302D;
}

.back-btn {
    background: #f8f9fa;
}

/* 右侧边栏 */
.article-sidebar {
    flex: 0 0 280px;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* 相关文章列表 */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 12px;
}

.related-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}

.related-list a:hover {
    color: #DD302D;
}

/* 联系信息框 */
.contact-box p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 16px;
    width: 24px;
}

.contact-item a {
    color: #DD302D;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 快速链接 */
.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.2s;
}

.quick-links a:hover {
    color: #DD302D;
}

/* ========== 帮助中心页面共用样式 ========== */
/* 帮助中心容器 */
.help-container {
    padding: 30px 0 50px;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: #666;
}

/* 帮助中心布局 */
.help-layout {
    display: flex;
    gap: 40px;
}

/* 左侧边栏 */
.help-sidebar {
    flex: 0 0 280px;
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 6px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.category-list a:hover,
.category-list a.active {
    color: #DD302D;
}

.category-list .count {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

/* 热门文章列表 */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    margin-bottom: 12px;
}

.popular-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.popular-list a:hover {
    color: #DD302D;
}

/* 文章卡片列表 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    color: #DD302D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.read-more:hover {
    color: #b02623;
    transform: translateX(3px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* FAQ 区域 */
.faq-section {
    background: #f8f9fa;
    padding: 50px 0;
    margin-top: 30px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.faq-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.faq-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.faq-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.faq-card a {
    color: #DD302D;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* 无结果 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

/* ========== 新增：文章列表页样式 ========== */
.articles-list-page {
    padding: 30px 0 60px;
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.articles-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.articles-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.articles-layout {
    display: flex;
    gap: 40px;
}

.articles-main {
    flex: 1;
}

.articles-sidebar {
    flex: 0 0 280px;
}

/* 侧边栏组件（文章列表页） */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DD302D;
}

/* 热门文章列表（文章列表页） */
.popular-list-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-list-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-list-widget a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s;
}

.popular-list-widget a:hover {
    color: #DD302D;
}

.popular-list-widget .views {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    display: block;
}

/* 分类列表（文章列表页） */
.category-list-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list-widget li {
    margin-bottom: 10px;
}

.category-list-widget a {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.category-list-widget a:hover {
    color: #DD302D;
}

.category-list-widget span {
    color: #999;
    font-size: 12px;
}

/* 文章卡片（文章列表页） */
.article-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #DD302D;
    margin-bottom: 12px;
}

.article-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.article-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h2 a:hover {
    color: #DD302D;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #DD302D;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.read-more-btn:hover {
    gap: 10px;
    color: #b02623;
}

/* 分页链接样式增强 */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f5f5f5;
    border-color: #DD302D;
    color: #DD302D;
}

.page-link.current {
    background: #DD302D;
    border-color: #DD302D;
    color: white;
}

.page-dots {
    color: #999;
    padding: 0 4px;
}

/* ========== 新增：文章详情页增强样式 ========== */
.article-detail-page {
    padding: 30px 0 60px;
}

.article-detail-wrapper {
    display: flex;
    gap: 40px;
}

.article-detail-main {
    flex: 1;
    min-width: 0;
}

.article-detail-sidebar {
    flex: 0 0 280px;
}

/* 文章详情页元数据 */
.article-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

/* 分享按钮 */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-label {
    font-size: 13px;
    color: #666;
}

.share-link {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 30px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.share-link:hover {
    background: #DD302D;
    color: white;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.back-link:hover {
    color: #DD302D;
    gap: 10px;
}

/* 联系信息组件 */
.contact-info-widget p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.contact-info-widget div {
    margin-bottom: 8px;
    font-size: 13px;
}

.contact-info-widget a {
    color: #DD302D;
    text-decoration: none;
}

.contact-info-widget a:hover {
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .article-layout,
    .articles-layout,
    .article-detail-wrapper,
    .help-layout {
        flex-direction: column;
    }
    
    .article-sidebar,
    .articles-sidebar,
    .article-detail-sidebar,
    .help-sidebar {
        flex: auto;
    }
    
    .help-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-container,
    .articles-list-page,
    .article-detail-page,
    .help-container {
        padding: 20px 0 40px;
    }
    
    .article-header h1,
    .articles-header h1,
    .page-header h1,
    .article-title {
        font-size: 26px;
    }
    
    .articles-header p {
        font-size: 14px;
    }
    
    .article-body,
    .article-content {
        font-size: 16px;
    }
    
    .article-body h2,
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-body h3,
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-card {
        padding: 18px;
    }
    
    .article-card h2 {
        font-size: 18px;
    }
    
    .article-meta,
    .article-meta-detail {
        flex-direction: column;
        gap: 6px;
    }
    
    .help-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-header h2 {
        font-size: 22px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .article-header h1,
    .article-title {
        font-size: 22px;
    }
    
    .article-meta,
    .article-meta-detail {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-body,
    .article-content {
        font-size: 15px;
    }
    
    .article-body h2,
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-body h3,
    .article-content h3 {
        font-size: 18px;
    }
    
    .share-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}