﻿/* 新闻详情页面特定样式 */
.news-detail-section {
    padding: 80px 0;
    background-color: white;
}

/* 新闻标题样式 */
.news-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
}

/* 新闻元信息样式 */
.news-meta {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
    color: #999;
    font-size: 14px;
}

.news-date {
    margin-right: 20px;
    font-weight: bold;
}

.news-category {
    background-color: #1890ff;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* 新闻正文样式 */
.news-content {
    font-size: 16px;
    color: #666;
    line-height: 2.0;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.news-content p {
    margin-bottom: 25px;
    text-indent: 2em;
}

.news-content h2 {
    font-size: 24px;
    color: #333;
    margin: 40px 0 20px;
    font-weight: bold;
    text-indent: 0;
}

.news-content h2:first-of-type {
    margin-top: 0;
}

/* 分享按钮样式 */
.share-section {
    margin-bottom: 60px;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.share-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    background-color: white;
    color: #666;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.share-btn:hover {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 144, 255, 0.3);
}

/* 上一篇/下一篇导航样式 */
.news-nav {
    margin-bottom: 60px;
    padding: 25px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.news-nav-item {
    margin: 15px 0;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-nav-item .nav-label {
    font-size: 14px;
    color: #999;
    font-weight: bold;
    margin-bottom: 5px;
}

.news-nav-item .nav-link,
.news-nav-item a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-nav-item .nav-link:hover,
.news-nav-item a:hover {
    color: #1890ff;
    text-decoration: underline;
}

/* 相关推荐样式 */
.related-news {
    margin-bottom: 40px;
}

.related-news h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

.related-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-news-item {
    display: block;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
    color: inherit;
    text-decoration: none;
}

.related-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #1890ff;
}

.related-news-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.5;
    transition: color 0.3s;
}

.related-news-item:hover h4 {
    color: #1890ff;
}

.related-news-date {
    font-size: 14px;
    color: #999;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-detail-section {
        padding: 60px 0;
    }
    
    .news-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .news-meta {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .news-content {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 40px;
    }
    
    .news-content p {
        margin-bottom: 20px;
        text-indent: 1.5em;
    }
    
    .news-content h2 {
        font-size: 20px;
        margin: 30px 0 15px;
    }
    
    .share-section {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .share-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .related-news h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .related-news-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-news-item {
        padding: 20px;
    }
    
    .related-news-item h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    /* 上一篇/下一篇导航响应式 */
    .news-nav {
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    .news-nav-item {
        margin: 10px 0;
        padding: 8px 0;
    }
    
    .news-nav-item .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-detail-section {
        padding: 40px 0;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .news-content p {
        text-indent: 0;
    }
    
    .news-content h2 {
        font-size: 18px;
    }
    
    .related-news-item h4 {
        font-size: 15px;
    }
}