/* 新闻中心页面样式 */
.page-banner {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 70px;
    overflow: hidden;
    background: url('../images/news-banner.jpg') no-repeat center center/cover;
}

.page-banner img {
    display: none; /* 隐藏原有的图片元素 */
}

.page-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.page-title h1 {
    color: #fff;
    font-size: 42px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    position: relative;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: #007bff;
    transform: translateX(-50%);
}

.main {
    padding: 60px 0;
}

/* 新闻分类导航 */
.news-categories {
    margin-bottom: 40px;
}

.category-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.category-nav li {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.category-nav li:hover {
    color: #007bff;
}

.category-nav li.active {
    color: #007bff;
    font-weight: bold;
}

.category-nav li.active:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #007bff;
}

/* 新闻列表 */
.news-container {
    margin-bottom: 40px;
}

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

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

.news-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    flex: 1;
    display: flex;
    padding: 20px;
}
.news-content2 {
    flex: 1;
/*    display: flex;*/
    padding: 20px;
}
.news-date {
    flex: 0 0 80px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.news-date .day {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
}

.news-date .month,
.news-date .year {
    display: block;
    font-size: 14px;
    color: #666;
}

.news-info {
    flex: 1;
    padding-left: 20px;
}

.news-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.news-item:hover .news-info h3 {
    color: #007bff;
}

.news-info p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.btn-more:hover {
    background-color: #0056b3;
}

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

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination a.next {
    padding: 8px 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 auto;
        height: 200px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-date {
        flex: 0 0 60px;
        padding-right: 15px;
    }
    
    .news-info {
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .category-nav {
        flex-wrap: wrap;
    }
    
    .category-nav li {
        margin: 5px;
    }
    
    .news-content {
        flex-direction: column;
    }
    
    .news-date {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0 0 10px 0;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .news-date .day {
        font-size: 24px;
        margin-right: 5px;
    }
    
    .news-date .month,
    .news-date .year {
        font-size: 14px;
        display: inline-block;
        margin-right: 5px;
    }
    
    .news-info {
        padding-left: 0;
    }
    
    .pagination a {
        padding: 6px 12px;
        margin: 0 3px;
    }
} 