/* 文章页面样式 */

.article-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    direction: rtl;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.article-meta a {
    color: #007bff;
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-body h2 {
    font-size: 22px;
    margin: 30px 0 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: #007bff;
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    margin: 25px 0;
    background-color: #f8f9fa;
    color: #666;
    font-style: italic;
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags .tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background-color: #007bff;
    color: white;
}

/* 文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.article-navigation a {
    color: #007bff;
    text-decoration: none;
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.article-navigation a:hover {
    background-color: #f8f9fa;
}

.prev-article {
    text-align: left;
}

.next-article {
    text-align: right;
}

/* 相关文章模块 */
.related-articles {
    background: #fff;                    /* 白色背景，与页面其他模块保持一致 */
    border-radius: 8px;                  /* 8像素圆角，与页面整体风格一致 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  /* 轻微阴影，增强卡片式设计感 */
    padding: 30px;                       /* 内边距，提供内容与边框的间距 */
    margin-top: 30px;                    /* 与上方内容的间距 */
    direction: rtl;
}

.related-articles h3 {
    font-size: 20px;                     /* 标题字体大小 */
    margin-bottom: 20px;                 /* 标题下方间距 */
    padding-bottom: 15px;                /* 底部内边距 */
    border-bottom: 1px solid #eee;       /* 底部分隔线 */
    color: #333;                         /* 标题颜色 */
}

.related-articles-list {
    display: flex;                       /* 使用弹性布局 */
    flex-direction: column;              /* 垂直方向排列 */
    gap: 15px;                           /* 列表项之间间距 */
}

.related-article-item {
    padding: 15px 0;                     /* 上下内边距，左右为0 */
    border-bottom: 1px solid #f5f5f5;    /* 底部分隔线，区分各个文章项 */
}

.related-article-item:last-child {
    border-bottom: none;                 /* 最后一个项目不需要底部分隔线 */
}

.related-article-item h4 {
    margin-bottom: 8px;                  /* 标题下方间距 */
}

.related-article-item h4 a {
    color: #333;                         /* 链接颜色 */
    font-size: 16px;                     /* 字体大小 */
    transition: color 0.3s;              /* 悬停颜色变化的过渡效果 */
}

.related-article-item h4 a:hover {
    color: #007bff;                      /* 悬停时的主题蓝色 */
}

.related-article-item .article-meta {
    font-size: 13px;                     /* 元数据字体较小 */
    color: #888;                         /* 较浅的颜色，降低重要性 */
}

.related-article-item .article-meta a {
    color: #007bff;                      /* 元数据中的链接使用主题色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-content {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        gap: 10px;
        font-size: 13px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-body h2 {
        font-size: 20px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .prev-article,
    .next-article {
        text-align: center;
    }
}