/* ========================================
   大成焊接 - 文章页面通用样式
   版本: 1.0
   路径: F:\dianhanji.com\templates\article-style.css
   使用方式: <link rel="stylesheet" href="../templates/article-style.css">
   ======================================== */

/* CSS变量 - 主题色（橙色深色风格） */
:root {
    --primary: #E65C00;
    --primary-dark: #CC5200;
    --primary-light: rgba(230,92,0,0.15);
    --bg-white: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-gradient: linear-gradient(135deg, #0A0510 0%, #0F0F1A 100%);
    --bg-dark: #0F0F1A;
    --text-dark: #1a1a1a;
    --text-main: #E8E8E8;
    --text-muted: #9A9AAF;
    --text-light: #9A9AAF;
    --border-color: #2A2A40;
    --border-light: #3A3A50;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --orange: #E65C00;
    --orange-light: rgba(230,92,0,0.15);
    --accent: #FF8C42;
    --secondary: #1A1A2E;
    --bg-card: #16162A;
    --red: #cc0000;
    --red-light: #ffe6e6;
    --green: #009933;
    --green-light: #e6fff0;
}

/* 重置样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    background: var(--bg-dark);
}

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏（深色背景，与首页一致） ===== */
#navbar {
    background: #0F0F1A;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li { margin: 0; }

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    padding: 10px 16px;
    transition: color 0.3s;
    display: block;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
    background: #ff6b35;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s !important;
}

.nav-cta:hover { background: #e55a2b !important; }

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

/* 移动端响应式 */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #0F0F1A;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-150%);
        transition: transform 0.3s;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }
    
    .nav-links.active { transform: translateY(0); }
    
    .nav-links a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-cta {
        margin-top: 10px;
        text-align: center;
    }
}

/* ===== 文章页面主体 ===== */
.article-page { background: var(--bg-dark); min-height: 100vh; padding-bottom: 60px; }
.main-content { max-width: 860px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.article-detail { background: transparent; }

/* 面包屑导航 */
.breadcrumb { padding: 1rem 0; margin-bottom: 1rem; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { margin: 0 0.5rem; }
.breadcrumb .current { color: var(--text-main); }

/* 文章头部 */
.article-header { background: linear-gradient(135deg, #0A0510 0%, #0F0F1A 100%); padding: 2rem 0; color: white; text-align: center; border-bottom: 1px solid var(--border-color); border-radius: 12px 12px 0 0; }

.article-header-inner { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.article-tag { display: inline-block; background: rgba(255,255,255,0.2); color: white; padding: 4px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; }

.article-title { font-size: 1.8rem; font-weight: bold; line-height: 1.4; margin-bottom: 1rem; color: #fff; }

.article-meta { display: flex; justify-content: center; gap: 1.5rem; font-size: 0.88rem; color: var(--text-muted); flex-wrap: wrap; }
.article-meta .meta-item { display: flex; align-items: center; gap: 0.4rem; }
.article-meta .tag { background: rgba(230,92,0,0.15); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 12px; }

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

/* 文章正文 */
.article-content { max-width: 860px; margin: 0 auto; padding: 40px 20px; }

.article-content a { color: var(--primary); text-decoration: none; }
.article-content a:hover { text-decoration: underline; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14px; margin-bottom: 24px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.article-content p { margin-bottom: 16px; color: var(--text-main); }

.article-content h2 { font-size: 20px; font-weight: bold; color: var(--text-dark); margin: 32px 0 16px; padding-left: 12px; border-left: 4px solid var(--primary); }

.article-content h3 { font-size: 17px; font-weight: bold; color: var(--text-dark); margin: 24px 0 12px; }

.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }

/* 故障信息框 */
.fault-info { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.2rem; margin: 1rem 0; }
.fault-info .info-item { display: flex; align-items: center; margin-bottom: 0.8rem; gap: 1rem; }
.fault-info .info-item:last-child { margin-bottom: 0; }
.fault-info .info-label { background: rgba(230,92,0,0.15); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.82rem; font-weight: 600; min-width: 80px; text-align: center; }
.fault-info .info-value { color: var(--text-main); font-size: 0.92rem; }

/* 组件标签 */
.component-tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.82rem; margin: 0.2rem; }

/* 关键点框 */
.key-point { background: rgba(233,30,99,0.1); border: 1px solid rgba(233,30,99,0.3); border-left: 4px solid #e91e63; padding: 1rem 1.2rem; margin: 1rem 0; border-radius: 0 8px 8px 0; }

/* 维修步骤框 */
.repair-step { background: rgba(0,153,51,0.1); border: 1px solid rgba(0,153,51,0.3); border-left: 4px solid var(--green); padding: 1rem 1.2rem; margin: 1rem 0; border-radius: 0 8px 8px 0; }

/* 故障卡片 */
.fault-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; margin: 20px 0; }
.fault-card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: bold; color: #fff; margin-bottom: 12px; }

/* 步骤列表 */
.step-list { list-style: none; padding: 0; margin: 20px 0; counter-reset: step; }
.step-list li { position: relative; padding-left: 36px; margin-bottom: 16px; counter-increment: step; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; }

/* 提示框 */
.tip-box { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; margin: 20px 0; }
.tip-box-title { display: flex; align-items: center; gap: 8px; font-weight: bold; color: var(--primary); margin-bottom: 8px; }
.tip-box p { margin: 0; color: var(--text-main); }

/* 警告框 */
.warning-box { background: var(--orange-light); border-left: 4px solid var(--orange); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; margin: 20px 0; }
.warning-box-title { display: flex; align-items: center; gap: 8px; font-weight: bold; color: var(--orange); margin-bottom: 8px; }
.warning-box p { margin: 0; color: var(--text-main); }

/* 点评框 */
.review-box { background: var(--green-light); border-left: 4px solid var(--green); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; margin: 20px 0; }
.review-box-title { display: flex; align-items: center; gap: 8px; font-weight: bold; color: var(--green); margin-bottom: 8px; }
.review-box p { margin: 0; color: var(--text-main); }

/* 内容区块 */
.content-section { margin-bottom: 2rem; }
.content-section h2 { font-size: 20px; font-weight: bold; color: #fff; margin: 0 0 1rem; padding-left: 12px; border-left: 4px solid var(--primary); }
.content-section h3 { font-size: 16px; font-weight: bold; color: var(--accent); margin: 1.5rem 0 0.8rem; }
.content-section p { margin-bottom: 1rem; color: var(--text-main); }
.content-section ul, .content-section ol { margin: 0.8rem 0 1.2rem 1.5rem; color: var(--text-main); }
.content-section li { margin-bottom: 0.5rem; }

/* 高亮提示框 */
.highlight-box { background: rgba(230,92,0,0.1); border: 1px solid rgba(230,92,0,0.3); border-left: 4px solid var(--primary); border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.highlight-box strong { color: var(--accent); }
.highlight-box p { margin: 0 0 0.5rem; color: var(--text-main); }
.highlight-box ul { margin: 0.5rem 0 0; padding-left: 1.5rem; color: var(--text-main); }

/* 成功提示框 */
.success-box { background: rgba(0,153,51,0.1); border: 1px solid rgba(0,153,51,0.3); border-left: 4px solid var(--green); border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.success-box strong { color: #4CAF50; }
.success-box p { margin: 0; color: var(--text-main); }

/* FAQ样式（新文章结构） */
.faq-section h3 { font-weight: bold; color: #fff; font-size: 1rem; margin: 0; }
.faq-section .faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-section .faq-item p { margin: 0; padding: 1rem 1.2rem; color: var(--text-muted); line-height: 1.7; }
.faq-section .faq-item p:first-child { color: #fff; font-weight: 500; }
.faq-section .faq-item p:last-child { color: var(--text-muted); padding-top: 0.5rem; }

/* ===== FAQ区块 ===== */
.faq-section { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }

.faq-title { font-size: 22px; font-weight: bold; color: #fff; text-align: center; margin-bottom: 32px; }

.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }

.faq-question { width: 100%; background: none; border: none; padding: 16px 20px; font-size: 15px; font-weight: bold; color: #fff; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-question:hover { background: rgba(255,255,255,0.05); }

.faq-icon { font-size: 18px; color: var(--primary); transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer { display: none; padding: 0 20px 16px; color: var(--text-muted); line-height: 1.8; }
.faq-item.active .faq-answer { display: block; }

/* 旧文章使用的FAQ类名 */
.faq-q { padding: 1rem 1.2rem; color: #fff; font-weight: 600; font-size: 0.98rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.faq-q::before { content: 'Q'; flex-shrink: 0; width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; margin-top: 2px; }
.faq-a { padding: 0 1.2rem 1rem 3.2rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; }

/* ===== 相关推荐 ===== */
.related-section { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.related-section h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 1.2rem; padding-left: 0.8rem; border-left: 4px solid var(--primary); }

.related-list { display: flex; flex-direction: column; gap: 0.8rem; }
.related-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; text-decoration: none; transition: all 0.2s; color: inherit; }
.related-item:hover { border-color: var(--primary); background: rgba(230,92,0,0.1); text-decoration: none; }
.related-q { color: var(--text-main); font-size: 0.95rem; }
.related-arrow { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }

.related-title { font-size: 20px; font-weight: bold; color: var(--text-dark); margin-bottom: 20px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.related-card { background: var(--bg-gray); border-radius: var(--radius-md); padding: 16px; text-decoration: none; transition: all 0.2s; }
.related-card:hover { background: var(--primary-light); transform: translateX(4px); }

.related-card-title { font-size: 14px; color: var(--text-main); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 相关推荐（新文章结构） ===== */
.related-articles { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.related-articles h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 1.2rem; padding-left: 0.8rem; border-left: 4px solid var(--primary); }
.related-articles .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-articles .related-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; text-decoration: none; transition: all 0.2s; display: flex; flex-direction: column; }
.related-articles .related-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.related-articles .card-tag { display: inline-block; background: rgba(230,92,0,0.15); color: var(--primary); border: 1px solid rgba(230,92,0,0.3); border-radius: 20px; padding: 0.2rem 0.6rem; font-size: 0.75rem; margin-bottom: 0.5rem; width: fit-content; }
.related-articles .related-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-main); margin: 0 0 0.3rem; }
.related-articles .related-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ===== 作者简介（新文章结构） ===== */
.author-box { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.author-box .author-info { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); border: 1px solid var(--border-color); border-radius: 12px; }
.author-box .author-avatar { width: 52px; height: 52px; min-width: 52px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; }
.author-box .author-details { flex: 1; }
.author-box .author-details h4 { font-weight: 700; font-size: 1rem; color: var(--text-main); margin: 0 0 0.3rem; }
.author-box .author-details p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 0.5rem; }
.author-box .author-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.author-box .tag { background: rgba(230,92,0,.15); color: var(--primary); font-size: .75rem; padding: .15rem .5rem; border-radius: 20px; }
.author-box .author-link { display: inline-block; padding: .6rem 1.2rem; background: rgba(255,255,255,0.1); color: var(--text-main)!important; border-radius: 6px; font-size: .9rem; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background .2s; flex-shrink: 0; }
.author-box .author-link:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.author-box .contact-btn { display: inline-block; padding: .6rem 1.2rem; background: var(--primary); color: #fff!important; border-radius: 6px; font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .2s; flex-shrink: 0; }
.author-box .contact-btn:hover { background: var(--primary-dark); text-decoration: none; }

/* ===== 作者简介（旧文章结构） ===== */
.author-section { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }

.author-card { background: var(--bg-gradient); border-radius: var(--radius-lg); padding: 24px; color: white; display: flex; gap: 20px; }

.author-avatar { width: 64px; height: 64px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }

.author-info { flex: 1; }
.author-name { font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.author-desc { font-size: 14px; opacity: 0.9; line-height: 1.6; margin-bottom: 12px; }
.author-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.author-tag { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 16px; font-size: 12px; }

.author-links { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

.author-link { display: inline-flex; align-items: center; gap: 6px; color: white; text-decoration: none; font-size: 14px; padding: 8px 16px; background: rgba(255,255,255,0.2); border-radius: var(--radius-sm); transition: background 0.2s; }
.author-link:hover { background: rgba(255,255,255,0.3); }

.author-btn { display: inline-flex; align-items: center; gap: 6px; color: white; text-decoration: none; font-size: 14px; padding: 8px 16px; background: var(--orange); border-radius: var(--radius-sm); transition: background 0.2s; }
.author-btn:hover { background: #e55a00; }

/* ===== 底部（与首页一致） ===== */
.site-footer {
    background: #0F0F1A;
    color: #999;
    padding: 50px 20px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 44px;
}

.footer-logo-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #888;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.footer-contact-item strong {
    color: #fff;
    font-weight: 500;
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.footer-copyright a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-copyright a:hover { color: #999; }

.footer-icp {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== 在线客服 ===== */
.customer-service { position: fixed; right: 20px; bottom: 100px; z-index: 99; }

.cs-btn { width: 50px; height: 50px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); cursor: pointer; transition: transform 0.2s, background 0.2s; }
.cs-btn:hover { transform: scale(1.1); background: #e55a00; }
.cs-btn svg { width: 24px; height: 24px; fill: white; }

.cs-tooltip { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); background: white; padding: 12px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.customer-service:hover .cs-tooltip { opacity: 1; visibility: visible; }
.cs-tooltip p { margin: 0; font-size: 14px; color: var(--text-dark); }
.cs-tooltip strong { color: var(--orange); }

/* ===== 返回顶部 ===== */
.back-to-top { position: fixed; right: 20px; bottom: 30px; width: 44px; height: 44px; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 98; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--bg-gray); }
.back-to-top svg { width: 20px; height: 20px; fill: var(--text-muted); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .article-header { padding: 30px 0; }
    .article-title { font-size: 22px; }
    .article-meta { flex-direction: column; gap: 8px; }
    .related-grid { grid-template-columns: 1fr; }
    .author-card { flex-direction: column; text-align: center; }
    .author-avatar { margin: 0 auto; }
    .author-tags { justify-content: center; }
    .author-links { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { justify-content: center; }
}

/* ===== 内容样式 ===== */
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0; }
.article-content figure { margin: 20px 0; }
.article-content figcaption { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--border-color); text-align: left; color: var(--text-main); }
.article-content th { background: var(--bg-card); font-weight: bold; color: #fff; }
.article-content tr:nth-child(even) { background: rgba(255,255,255,0.03); }

.article-content code { background: var(--bg-gray); padding: 2px 6px; border-radius: 4px; font-family: "Consolas", "Monaco", monospace; font-size: 14px; }
.article-content pre { background: #1a1a1a; color: #e0e0e0; padding: 16px; border-radius: var(--radius-md); overflow-x: auto; margin: 20px 0; }
.article-content pre code { background: none; padding: 0; color: inherit; }

/* ===== 文章页底部三列样式（与article/index.html一致） ===== */
site-footer { display: block; }
.site-footer {
  background: #16162A;
  border-top: 1px solid #2A2A40;
  padding: 2rem 2rem;
}
.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-footer .footer-logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
}
.site-footer .footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #E8E8E8;
}
.site-footer .footer-copy {
  color: #9A9AAF;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.8;
}
.site-footer .footer-copy a {
  color: #9A9AAF;
  text-decoration: none;
  transition: color 0.3s;
}
.site-footer .footer-copy a:hover { color: #E65C00; }
.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  color: #9A9AAF;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}
.site-footer .footer-links a:hover { color: #E65C00; }
.site-footer .footer-links a.active { color: #E65C00; }
@media(max-width:768px){
  .site-footer .footer-content{flex-direction:column;text-align:center}
  .site-footer .footer-brand{justify-content:center}
  .site-footer .footer-links{justify-content:center}
}

/* ===== 旧版footer结构兼容性（在.site-footer内） ===== */
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.site-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.site-footer .footer-logo img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}
.site-footer .footer-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #E8E8E8;
}
.site-footer .footer-desc {
    font-size: 0.85rem;
    color: #9A9AAF;
    line-height: 1.6;
    margin-top: 0.5rem;
}
.site-footer .footer-nav {
    text-align: center;
}
.site-footer .footer-title {
    color: #E8E8E8;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.site-footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.site-footer .footer-links li { margin: 0; }
.site-footer .footer-links a {
    color: #8892A4;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: #E65C00; text-decoration: none; }
.site-footer .footer-contact {
    text-align: center;
}
.site-footer .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #9A9AAF;
    justify-content: center;
}
.site-footer .footer-contact-item strong { color: #E8E8E8; }
.site-footer .footer-copyright {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #2A2A40;
    text-align: center;
    font-size: 0.82rem;
    color: #9A9AAF;
}
.site-footer .footer-copyright a { color: #9A9AAF; }
.site-footer .footer-copyright a:hover { color: #E65C00; }
@media(max-width:768px){
    .site-footer .footer-inner { flex-direction: column; text-align: center; }
    .site-footer .footer-logo { justify-content: center; }
    .site-footer .footer-contact { margin-top: 1rem; }
}
