/* 文章专属样式 (配合 style.css 使用) */
.seo-article {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 3rem 4rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-hairline);
}

.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.article-meta {
    font-family: var(--font-mono);
    color: var(--text-accent);
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
}

/* 目录 TOC */
.toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}
[data-theme="light"] .toc { background: rgba(0, 0, 0, 0.02); }

.toc h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 0.8rem;
}

.toc ul li a {
    color: var(--primary);
    text-decoration: none;
}
.toc ul li a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* 正文 */
.article-body h2 {
    font-size: 1.6rem;
    margin: 3rem 0 1.2rem;
    font-weight: 600;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-main);
    opacity: 0.9;
    font-size: 1.05rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    color: var(--text-main);
    font-weight: 600;
}

.article-body a {
    color: var(--dot-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-accent);
}

/* FAQ */
.article-faq {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-hairline);
}
.article-faq h2 { margin-bottom: 2rem; font-size: 1.6rem; }
.faq-q { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-main); }
.faq-a { color: var(--text-accent); margin-bottom: 1.5rem; line-height: 1.7; }

/* 相关阅读 */
.article-related {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-hover-bg);
    border-radius: 12px;
}
.article-related h2 { margin-top: 0; font-size: 1.4rem; margin-bottom: 1.5rem; }
.article-related ul { list-style: none; padding: 0; }
.article-related li { margin-bottom: 1rem; }
.article-related a { color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.article-related a::before { content: "→"; color: var(--primary); }
.article-related a:hover { color: var(--dot-green); }

@media (max-width: 768px) {
    .seo-article { padding: 2rem 1.5rem; margin: 100px 1rem 40px; }
}
