.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
}

.blog-posts {
    margin-bottom: 50px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}



/* 文章 */

.article-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 20px 20px;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: var(--article-light-color);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.article-meta span {
    margin: 0 10px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    background-color: var(--blockquote-bg);
    border-left: 4px solid var(--blockquote-border);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
}

.article-content code {
    background-color: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: var(--code-bg);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

.back-to-home {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.back-to-home:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }


    .article-title {
        font-size: 1.8rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-home {
        margin-top: 20px;
    }
}