﻿.container {
  max-width: 100%;
}
/* 主要内容区 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* 新闻列表 */
/* .news-list {
    flex: 0 0 70%;
    max-width: 70%;
    padding-right: 30px;
} */

.news-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-img {
    flex: 0 0 40%;
    max-width: 40%;
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    flex: 0 0 60%;
    max-width: 100%;
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-title a{
  color: #333;
}

.news-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

/* 侧边栏 */
.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

.widget {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #0a53a1;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
  color: #000;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.category-list li a:hover {
    color: #1e88e5;
}

.category-list li a span {
    background-color: #f5f5f5;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 12px;
}

.hot-news-list {
    list-style: none;
}

.hot-news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.hot-news-list li a {
  color: #000;
}
.hot-news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-news-title {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-date {
    font-size: 12px;
    color: #999;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    margin: 0 5px 5px 0;
    font-size: 12px;
    color: #666;
}

.tag-cloud a:hover {
    background-color: #1e88e5;
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 80px 0;
}

.pagination ul {
    display: flex;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination .page-num {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    color: #000;
}
.pagination .page-num-current {
  background-color: #0a53a1;
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-list, .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .news-list {
        padding-right: 0;
    }
    
}

@media (max-width: 768px) {
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img, .news-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .news-img {
        height: 180px;
    }
    
    .footer-widget {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 80px 15px 15px;
    }
    
    .pagination li a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
}



 /* 详情页 */
        
        /* 新闻详情主体 */
        .news-detail {
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 30px;
            margin-bottom: 40px;
        }
        
        .news-title {
            font-size: 24px;
            font-weight: bold;
            /* text-align: center; */
            margin-bottom: 20px;
            color: #333;
            line-height: 1.4;
        }
        
        .news-meta {
            text-align: center;
            color: #999;
            font-size: 14px;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .news-meta span {
            margin: 0 10px;
        }
        
        .news-content {
            font-size: 16px;
            color: #444;
            line-height: 1.8;
        }
        
        .news-content p {
            /* margin-bottom: 20px; */
            text-align: justify;
        }
        
        .news-content img {
            max-width: 100%;
            height: auto;
            margin: 20px auto;
            border-radius: 3px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .news-content h2, 
        .news-content h3, 
        .news-content h4 {
            margin: 25px 0 15px;
            color: #333;
            font-weight: bold;
        }
        
        .news-content h2 {
            font-size: 20px;
            border-left: 4px solid #1e88e5;
            padding-left: 10px;
        }
        
        .news-content h3 {
            margin: 0;
            font-size: 18px;
        }
        
        .news-content h4 {
            font-size: 16px;
        }
        
        .news-content ul, 
        .news-content ol {
            margin: 15px 0 15px 30px;
        }
        
        .news-content li {
            margin-bottom: 8px;
        }
        
        .news-content blockquote {
            border-left: 4px solid #ddd;
            padding: 10px 15px;
            margin: 20px 0;
            background-color: #f9f9f9;
            color: #666;
            font-style: italic;
        }
        
        /* 上一篇下一篇导航 */
        .news-navigation {
            display: flex;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .prev-news, 
        .next-news {
            flex: 0 0 48%;
            max-width: 48%;
            padding: 15px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
        }
        
        .prev-news:hover, 
        .next-news:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-3px);
        }
        
        .prev-news {
            text-align: left;
        }
        
        .next-news {
            text-align: right;
        }
        
        .nav-label {
            font-size: 14px;
            color: #999;
            margin-bottom: 5px;
        }
        
        .nav-title {
            font-size: 16px;
            color: #333;
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 相关新闻 */
        .related-news {
            padding-bottom:100px;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            color: #333;
        }
        
        .related-list {
            list-style: none;
        }
        
        .related-list li {
            padding: 12px 0;
            border-bottom: 1px dashed #eee;
        }
        
        .related-list li:last-child {
            border-bottom: none;
        }
        
        .related-list a {
            display: flex;
            justify-content: space-between;
            color: #666;
            transition: all 0.3s;
        }
        
        .related-list a:hover {
            color: #1e88e5;
        }
        
        .related-list .date {
            font-size: 14px;
            color: #999;
            flex-shrink: 0;
            margin-left: 15px;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .news-detail {
                padding: 20px;
            }
            
            .news-title {
                font-size: 20px;
            }
            
            .news-meta {
                font-size: 12px;
            }
            
            .news-content {
                font-size: 15px;
            }
            
            .news-navigation {
                flex-direction: column;
            }
            
            .prev-news, 
            .next-news {
                flex: 0 0 100%;
                max-width: 100%;
                margin-bottom: 15px;
            }
        }