/* ===== 静态文章页样式 ===== */
/* 只定义文章相关样式，页头/页尾直接继承 style.css */

/* 文章标题区（全宽设计，渐变铺满屏幕） */
.article-page-header {
    background: linear-gradient(135deg, #1e293b 0%, #020617 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.article-page-header .container {
    max-width: 800px;
    margin: 0 auto;
}

.article-page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-page-header .article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #94a3b8;
}

.article-page-header .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   【系统固定样式 · 请勿修改】
   文章正文中的摘要框（位于正文开头，引语前面）
   - 所有文章正文开头的摘要统一使用此样式
   - 由 generate_static_articles.py 自动生成
   - 全局生效，修改前需确认所有文章显示效果
   ============================================================ */
.article-excerpt {
    background: #f8fafc;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 8px;
    color: #334155;
    line-height: 1.7;
}

/* 文章容器 */
.article-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-detail {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 返回链接 */
.article-back-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.article-back-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 文章元信息（在标题下方） */
.article-detail .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    color: #64748b;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.article-detail .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 文章标题（h1已在标题区显示，正文中不再显示） */

/* 文章正文 */
.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: #1e293b;
}

/* 段落 */
.article-body p {
    margin-bottom: 24px;
    text-align: justify;
}

/* 段落标题（h2） */
.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1f36;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
}

/* 子标题（h3） */
.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3348;
    margin-top: 32px;
    margin-bottom: 12px;
}

/* ============================================================
   【系统固定样式 · 请勿修改】
   引语（文章开头的摘要段）
   - 所有文章的引语区块统一使用此样式
   - 不受文章内容修改影响，全局生效
   - 修改此区块前需确认所有117篇文章的显示效果
   ============================================================ */
/* ============================================================
   【系统固定样式 · 请勿修改】
   正文开头摘要区块（与引语 blockquote 样式区分）
   - 所有文章正文开头的摘要统一使用此样式
   - 灰色背景框，与引语（左边框+斜体）视觉区分
   - 修改前需确认所有文章显示效果
   ============================================================ */
.article-body blockquote.article-excerpt-blockquote {
    background: #f8fafc;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 8px;
    color: #475569;
    border-left: none;
    font-style: normal;
}

/* ============================================================
   【系统固定样式 · 请勿修改】
   引语（正文中的引用区块）
   - 与普通正文样式一致，无特殊视觉装饰
   - 无边框、非斜体，自然融入正文流
   ============================================================ */
.article-body blockquote {
    border-left: none;
    padding: 0;
    margin: 16px 0;
    background: none;
    color: #334155;
    font-style: normal;
    border-radius: 0;
}

/* 代码块 */
.article-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* 表格 */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.article-body table thead {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.article-body table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.article-body table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-body table tbody tr:hover {
    background: #eff6ff;
}

.article-body table td {
    padding: 12px 16px;
    color: #1e293b;
}

/* ============================================ */
/* 文章页尾整体区域                           */
/* ============================================ */

/* 水平线 - 正文与页尾的分隔 */
.article-body hr {
    display: none;
}

/* ============================================================
   【系统固定样式 · 请勿修改】
   信息来源区（页尾灰色背景框）
   - 所有页尾的"信息来源"卡片统一使用此样式
   - 由 generate_static_articles.py 自动生成，全局生效
   - 修改此区块前需确认所有117篇文章的页尾显示效果
   ============================================================ */
.article-source-box {
    margin-top: 48px;
    padding: 16px 24px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.source-box-icon {
    flex-shrink: 0;
    color: #3b82f6;
    display: flex;
    align-items: center;
}

.source-box-label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 1px solid #cbd5e1;
}

.source-box-text {
    flex: 1;
    min-width: 0;
    color: #475569;
}

.source-box-text strong {
    color: #1e293b;
    font-weight: 600;
}

.source-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: #3b82f6;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.source-box-btn:hover {
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* ============================================================
   【系统固定样式 · 请勿修改】
   页尾导航区（返回首页 + 查看更多案例）
   - 所有文章页尾导航统一使用此样式
   - 由 generate_static_articles.py 自动生成，全局生效
   - 修改此区块前需确认所有117篇文章的页尾显示效果
   ============================================================ */
.article-footer-nav {
    margin-top: 32px;
    padding: 0 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 6px;
}

/* 返回首页 - 文字链 */
.article-footer-nav .nav-back {
    color: #64748b;
    padding: 8px 0;
}

.article-footer-nav .nav-back:hover {
    color: #3b82f6;
}

/* 查看更多案例 - 品牌蓝按钮（适中重量） */
.article-footer-nav .nav-cta {
    padding: 9px 18px;
    background: #3b82f6;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.article-footer-nav .nav-cta:hover {
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.article-nav a:last-child:hover {
    background: #334155;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-page-header {
        padding: 40px 16px;
    }
    
    .article-page-header h1 {
        font-size: 24px;
    }
    
    .article-detail {
        margin: 20px;
        padding: 24px;
    }
    
    .article-body {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .article-body h2 {
        font-size: 20px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
    
    .article-page-header .article-meta {
        font-size: 13px;
    }
}
