/* 新闻详情页样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6c757d;
}

/* 新闻详情页面 */
.news-detail {
    padding: 60px 0;
    background: #fff;
}

.news-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 新闻头部 */
.news-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.news-title {
    font-size: 32px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta-icon {
    color: var(--primary-color);
}

.news-category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 新闻封面图 */
.news-cover {
    margin-bottom: 40px;
    text-align: center;
}

.news-cover img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 新闻正文 */
.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.news-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin: 25px 0 15px 0;
}

.news-content p {
    margin-bottom: 20px;
    text-align: justify;
}

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

.news-content li {
    margin-bottom: 10px;
}

.news-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #666;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 新闻标签 */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.news-tags h4 {
    color: #666;
    font-size: 14px;
    margin: 0;
    margin-right: 10px;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 分享按钮 */
.news-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.news-share h4 {
    color: #333;
    font-size: 16px;
    margin: 0;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 相关文章 */
.related-news {
    background: #f8f9fa;
    padding: 40px 0;
}

.related-news h3 {
    text-align: center;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

.related-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.related-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 返回按钮 */
.back-to-news {
    text-align: center;
    margin: 40px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-title {
        font-size: 24px;
    }
    
    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .news-content {
        font-size: 15px;
    }
    
    .news-content h2 {
        font-size: 20px;
    }
    
    .news-content h3 {
        font-size: 18px;
    }
    
    .news-share {
        flex-wrap: wrap;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-detail {
        padding: 40px 0;
    }
    
    .news-detail-container {
        padding: 0 15px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-content {
        font-size: 14px;
    }
    
    .news-content ul, .news-content ol {
        padding-left: 20px;
    }
    
    .news-share {
        padding: 15px;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .related-content {
        padding: 15px;
    }
}