/* 新闻详情页样式 */

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    background-color: #ffffff
   
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8B4513;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* 新闻详情 */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

/* 顶部操作栏 */
.news-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #8B4513;
}

.news-share {
    display: flex;
    gap: 15px;
}

.share-btn, .like-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover, .like-btn:hover {
    background: #8B4513;
    color: #fff;
    transform: translateY(-3px);
}

/* 新闻标题 */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f8f5f0;
    color: #8B4513;
    font-size: 11px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.news-meta i {
    margin-right: 5px;
    color: #8B4513;
}

/* 新闻图片 */
.news-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.news-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #333;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #333;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

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

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

/* 相关推荐 */
.related-news {
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

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

.related-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.related-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-news-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
    flex: 1;
}

.related-date {
    font-size: 12px;
    color: #999;
    align-self: flex-start;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-title {
        font-size: 24px;
    }
    
    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .news-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .related-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .news-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-content {
        font-size: 14px;
    }
    
    .related-image {
        height: 150px;
    }
}