/* 新闻页面样式 */

.news-section {
    padding: 30px 0;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* 添加左侧边距，与页面其他部分对齐 */
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.news-main {
    flex: 2;
    min-width: 300px;
}

.news-sidebar {
    flex: 1;
    min-width: 300px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

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

.breadcrumb span {
    color: #95a5a6;
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* 增加边框 */
}

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

.news-image {
    flex: 0 0 200px;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-content {
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.news-category {
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.news-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.news-title {
    margin: 10px 0;
    font-size: 1.4rem;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #3498db;
}

.news-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
	height: 3rem;
    overflow: hidden;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e8f4fc;
    color: #3498db;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #3498db;
    color: white;
}

/* 侧边栏样式 */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0; /* 增加边框 */
}

.widget-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* 标签云样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    background: #f1f1f1;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    background: #3498db;
    color: white;
}

/* 热门新闻样式 */
.popular-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-news-image {
    flex: 0 0 80px;
}

.popular-news-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.popular-news-content {
    flex: 1;
}

.popular-news-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.popular-news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-news-title a:hover {
    color: #3498db;
}

.popular-news-date {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* 相关推荐样式 */
.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.related-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-links a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 新闻详情样式 */
.article-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-category {
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
}

.article-image {
    margin-bottom: 30px;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-image-caption {
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-content {
    line-height: 1.8;
    color: #333;
}
.article-content img{max-width:100%;}
.article-content h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 30px 0 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 25px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

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

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

.article-content blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 25px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.info-box {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.info-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tag-label {
    font-weight: bold;
    color: #2c3e50;
}

/* 上下篇文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.prev-article,
.next-article {
    flex: 1;
}

.next-article {
    text-align: right;
}

.article-navigation a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-navigation a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
}

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

.related-article-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0; /* 增加边框 */
}

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

.related-article-image {
    flex: 0 0 100px;
}

.related-article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.related-article-content {
    flex: 1;
}

.related-article-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.related-article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-title a:hover {
    color: #3498db;
}

.related-article-date {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 auto;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .next-article {
        text-align: left;
    }
    
    .related-articles-list {
        grid-template-columns: 1fr;
    }
    
    .related-article-item {
        flex-direction: column;
    }
    
    .related-article-image {
        flex: 0 0 auto;
    }
    
    .popular-news-item {
        flex-direction: column;
    }
    
    .popular-news-image {
        flex: 0 0 auto;
    }
}