/* FAQ7777 文章样式文件 */

/* 文章页面主要布局样式 */
#main {
    width: 100%;
    margin: 0 auto;
    padding: 100px 0 20px; /* 调整顶部内边距 */
}

/* 确保文章容器有足够的顶部间距 */
.s-article {
    max-width: 1200px; /* 新增最大宽度限制 */
    margin: 80px auto 30px; /* 调整顶部间距 */
    overflow: hidden; /* 防止内容溢出 */
}
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 文章内容容器样式 */
.content {
    margin: 30px 0;
}

.content_left {
    width: 100%;
}

/* 文章元信息样式 */
.article-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-meta .item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.article-meta .item i {
    margin-right: 5px;
}

.article-meta a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-meta a:hover {
    color: #007bff;
}

/* 文章标签样式 */
.post-tags {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.post-tags .label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.tag-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background-color: #007bff;
    color: #fff;
}

/* 文章页脚样式 */
.entry-footer {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prev-post, .next-post {
    flex: 1;
}

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

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

.prev-post a, .next-post a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.prev-post a:hover, .next-post a:hover {
    color: #007bff;
}

/* 作者信息卡片样式 */
.author-info-card {
    position: relative; /* 新增定位上下文 */
    padding: 25px; /* 调整内边距 */
    gap: 15px; /* 元素间距 */
}

.author-avatar {
    position: absolute;
    left: -120px; /* 头像左浮动 */
    top: 20px;
}
    margin: 0 auto 20px; /* 头像居中 */
}
.content::after {
    content: '';
    display: table;
    clear: both;
}