/* 新闻详情页样式优化 */
/* 解决发表时间与正文之间横线间距太小的问题 */

/* 新闻详情头部区域 - 包含标题和发布时间 */
.news-detail-header {
    height: auto;
    text-align: center;
    padding: 20px 10px 15px 10px; /* 增加上下内边距，特别是顶部增加空间 */
    background-color: #FFFFFF;
    box-sizing: border-box;
    font-size: 12px;
    color: #000000;
    line-height: 1.6;
    position: relative; /* 为装饰元素定位 */
}

/* 新闻标题样式 - 增加上边距 */
.news-detail-header h1,
.news-detail-header h2,
.news-detail-header h3,
.news-detail-header strong {
    display: block;
    margin-bottom: 8px; /* 标题与发布时间之间的间距加大 */
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

/* 发表时间样式 - 调整位置和间距 */
.news-publish-time {
    display: block;
    margin-top: 10px; /* 上移并增加间距 */
    font-size: 12px;
    color: #666666;
    text-align: center;
}

/* 新闻详情分隔线 - 标题与正文之间的横线 */
.news-detail-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0d0b8, transparent);
    margin: 25px 0; /* 增加分隔线的上下间距，使与正文距离更大 */
    padding: 0;
    position: relative;
}

/* 分隔线装饰元素 */
.news-detail-divider::before,
.news-detail-divider::after {
    content: '';
    display: inline-block;
    width: 25px; /* 增加装饰点大小 */
    height: 3px; /* 增加装饰线高度 */
    background-color: #7f5022;
    vertical-align: middle;
}

.news-detail-divider::before {
    margin-right: 20px; /* 增加左边装饰点的间距 */
}

.news-detail-divider::after {
    margin-left: 20px; /* 增加右边装饰点的间距 */
}

/* 新闻内容区域 - 与分隔线保持适当距离 */
.news-detail-content {
    width: 100%;
    text-align: left;
    vertical-align: top;
    background-color: #FFFFFF;
    box-sizing: border-box;
    padding-top: 20px; /* 在内容顶部增加间距，与分隔线保持距离 */
}

/* 新闻内容内层 - 确保适当的边距 */
.news-detail-inner {
    width: 98%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.8;
}

/* 新闻内容段落美化 - 确保合适的段落间距 */
.news-detail-inner p {
    margin: 15px 0; /* 增加段落间距 */
    line-height: 1.8;
    text-indent: 2em;
    word-wrap: break-word;
    word-break: break-word;
    color: #333333;
    font-size: 14px;
}

/* 对于新闻标题和时间在同一行的情况 */
.news-detail-header .news-title-and-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* 标题和时间之间的间距 */
}

/* 如果标题和时间需要水平排列 */
.news-detail-header .news-title-time-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px; /* 与下面元素的间距 */
}

/* 装饰性元素 */
.news-detail-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #7f5022, transparent);
    margin: 10px auto 5px auto; /* 在标题下方添加装饰线 */
}

/* 针对包含标题和发布时间的容器 */
.news-detail-header .news-info-container {
    margin-top: -10px; /* 微调位置 */
    padding: 8px 0; /* 增加发布时间区域的内边距 */
}