/* === 页面基础配置 === */
body {
    background-color: #f9f9f9;
}

/* 浅灰底色，突显中间白纸感 */

/* === 文章容器 === */
.article-container {
    max-width: 1600px;
    /* 限制宽度，阅读体验最佳 */
    margin: 0 auto 80px;
    /* 居中 + 底部留白 */
    background: #fff;
    padding: 60px 80px;
    /* 内部大留白 */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* === 文章头部 === */
.article-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.article-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    /* 间距 */
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 6px;
    font-size: 16px;
    color: #ccc;
}

/* === 文章正文 (核心) === */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    /* 黄金阅读行高 */
    color: #444;
    overflow-wrap: break-word;
    /* 防止长单词撑破 */
}

/* 正文段落 */
.article-content p {
    margin-bottom: 0px;
    text-align: justify;
}

/* 正文图片自适应 - 关键代码 */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0px auto;
    /* 图片居中 */
    /* border-radius: 4px; */
}

/* 正文视频/iframe自适应 */
.article-content iframe,
.article-content video {
    max-width: 100%;
    margin: 20px auto;
    display: block;
}

/* === 底部切换 (上一篇/下一篇) === */
.article-nav {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.nav-link-item {
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    display: flex;
    align-items: center;
}

.nav-link-item:hover {
    color: var(--brand-color);
}

.nav-link-item i {
    font-size: 12px;
    margin: 0 5px;
}

/* === 响应式适配 === */
@media (max-width: 991.98px) {
    .article-container {
        margin: 0 15px 40px;
        /* 手机端左右留点缝 */
        padding: 30px 20px;
        /* 减小内边距 */
    }

    .article-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .article-meta {
        gap: 15px;
        font-size: 12px;
        flex-wrap: wrap;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-link-item {
        max-width: 100%;
    }
}