/* 博客文章页面样式 */

/* 文章容器宽度 - 覆盖内联样式 */
article.container {
    max-width: 900px !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 100%;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    background: var(--background-card);
    border-radius: 8px;
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    border-left: 3px solid var(--primary-color);
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content li:last-child {
    margin-bottom: 0;
}

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

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

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

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    color: white;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    margin-bottom: 1.5rem;
}

.related-article-card {
    padding: 1rem;
    background: var(--background-card);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

.related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-article-card .title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.related-article-card .desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
}
