﻿/* 文章标题 */
.article-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 10px;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 元信息（来源、时间、人气） */
.article-meta {
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #b35c3a; /* 分隔线 */
}

.article-meta span {
    margin: 0 10px;
}

/* 文章正文 */
.article-content {
    font-size: 16px;
    line-height: 2; /* 较大的行高，便于阅读 */
    color: #333;
    text-align: justify; /* 两端对齐 */
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em; /* 首行缩进两个字符 */
}

.article-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /* 图片不需要首行缩进，所以如果它在p标签外，text-center即可 */
}

/* 底部导航（上一篇/下一篇） */
.article-nav {
    border-top: 3px solid var(--primary-color); /* 加粗红棕色顶边框 */
    border-bottom: 3px solid var(--primary-color); /* 加粗红棕色底边框 */
    padding: 15px 0; /* 增加内边距 */
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: center; /* 居中对齐 */
    align-items: center;
    margin-top: 40px;
}

.article-nav span {
    margin: 0 20px; /* 给左右两项都加点间距，或者只用gap */
}

.article-nav a {
    color: #333;
    text-decoration: none;
    margin-left: 5px;
}

.article-nav a:hover {
    color: #b35c3a;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-title {
        font-size: 22px;
    }
    
    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .article-meta span {
        display: inline-block;
        margin: 2px 5px;
    }
    
    .article-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-nav .float-end {
        float: none !important;
        display: block;
        margin-top: 5px;
    }
}