.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.article-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2f3d;
}

.article-meta {
    color: #8a99aa;
    font-size: 13px;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.article-category {
    margin-bottom: 30px;
}

.category-label {
    font-weight: 500;
    color: #4e5969;
    margin-right: 12px;
}

.category-list {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-item {
    background: #f0f2f5;
    padding: 4px 14px;
    border-radius: 20px;
    color: #165dff;
    font-size: 13px;
}

.post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #2c3e4e;
}

.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 消除 Halo 编辑器自动注入的 figure 包裹元素的间距 */
.post-content figure {
    margin: 0 !important;
    padding: 0 !important;
}

.post-content figure[data-content-type="image"] {
    display: block !important;
}

/* 手动换行时产生的空段落作为间距信号 */
.post-content p:has(br:only-child) {
    height: 20px;
    margin: 0;
}

.post-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
}

.post-nav a {
    color: #165dff;
    text-decoration: none;
}

.post-nav a:hover {
    text-decoration: underline;
}

/* 文章底部分类标签区域 */
.post-footer {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: right;
}

.post-categories-tags {
    display: inline-block;
}

.category-tag,
.tag-tag {
    display: inline-block;
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 20px;
    color: #165dff;
    font-size: 12px;
    margin-left: 10px;
}

/* 标签使用不同颜色 */
.tag-tag {
    color: #00a870;
}

/* 上一篇/下一篇导航 */
.post-nav {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
}

.post-nav a {
    color: #165dff;
    text-decoration: none;
}

.post-nav a:hover {
    text-decoration: underline;
}

.back-to-list {
    color: #165dff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .article-wrapper {
        padding: 20px;
    }

    .article-title {
        font-size: 22px;
    }
}