/* 新闻详情页样式 */

* {
    box-sizing: border-box; /* 确保padding和border不增加元素总宽度 */
}


/* 新闻详情容器 - 最大宽度1200px，居中显示 */
.news-detail-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    opacity: 0; /* 初始透明，通过JS实现渐入效果 */
    transition: opacity 0.5s ease;
}

/* 新闻标题样式 - 使用公司主题色#163762 */
.news-detail-header h1 {
    font-size: 32px;
    color: #163762;
    margin-bottom: 15px;
    font-weight: normal;
    line-height: 1.4;
    text-align: center; /* 添加这行，让标题居中 */
}

/* 新闻元信息样式 - 日期和分类 */
.news-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

/* 新闻内容样式 - 设置合适的行高和字体大小 */
.news-detail-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 20px;
}

/* 新闻图片样式 - 居中显示，最大宽度100% */
.news-image {
    margin: 30px 0;
    text-align: center;
}

.news-image img {
    max-width: 900px; /* 设置最大宽度 */
    width: 100%; /* 保持响应式 */
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 图片说明文字样式 */
.image-caption {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* 新闻导航样式 - 上一篇/下一篇链接 */
.news-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 50px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-navigation a {
    color: #163762;
    text-decoration: none;
    padding: 10px 15px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    text-align: left; /* 确保所有链接文本左对齐 */
}

.news-navigation a:hover {
    color: #df0c0c;
}

.prev-news, .next-news {
    flex: 1;
    min-width: 200px;
}

.back-list {
    text-align: center;
    min-width: 120px;
    text-align: left; /* 手机端所有链接左对齐 */
    padding: 10px 0; /* 调整内边距 */
    margin: 5px 0; /* 调整外边距 */
}

/* 响应式设计 - 平板和手机端 */
@media (max-width: 1024px) {
    .news-detail-header h1 {
        font-size: 28px;
    }
    
    .news-detail-content {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .news-detail-container {
        margin: 30px auto;
    }
    
    .news-detail-header h1 {
        font-size: 24px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-news, .next-news, .back-list {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-detail-header h1 {
        font-size: 22px;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-detail-content {
        font-size: 14px;
    }

    .news-navigation a {
        padding: 8px 0; /* 手机端更紧凑的内边距 */
    }
}