/* 新闻中心横幅图样式 - 建议使用1920x500像素的图片 */
.news-banner {
    width: 100%;
    height: 0;
    padding-bottom: 25%; /* 4:1 比例 (450/1800≈25%)，可根据实际图片比例调整 */
    overflow: hidden;
    position: relative;
}

.news-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* 图片完全拉伸填充，不保持比例 */
    object-position: center;
}

/* 新闻内容容器样式 */
.news-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* 新闻标题和分类样式 */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 36px;
    color: #163762;
    margin-bottom: 20px;
    font-weight: normal;
}

.news-categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.news-categories a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.news-categories a.active,
.news-categories a:hover {
    color: #163762;
    border-bottom: 2px solid #163762;
}

/* 新闻列表样式 */
.news-list {
    margin-bottom: 50px;
}

/* 单个新闻条目样式 */
.news-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

/* 新闻日期样式 */
.news-date {
    min-width: 100px;
    text-align: center;
    margin-right: 30px;
    color: #163762;
}

.date-day {
    display: block;
    font-size: 36px;
    line-height: 1;
    font-weight: bold;
}

.date-month {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

/* 新闻内容样式 */
.news-content {
    flex: 1;
}

.news-content h2 {
    font-size: 22px;
    margin: 0 0 15px 0;
    font-weight: normal;
}

.news-content h2 a {
    color: #163762;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h2 a:hover {
    color: #df0c0c;
}

.news-summary {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    color: #ffffff;
    background-color: #163762;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: normal;
}

.pagination a:hover {
    background-color: #163762;
    color: white;
    border-color: #163762;
}

.page-current {
    background-color: #163762;
    color: white;
    border-color: #163762;
    font-weight: bold;
}

/* 响应式设计 - 平板和手机端 */
@media (max-width: 1024px) {
    .news-banner {
        padding-bottom: 30%; /* 在较小屏幕上调整比例 */
    }
    
    .news-header h1 {
        font-size: 32px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        display: flex;
        align-items: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .date-day {
        font-size: 28px;
        margin-right: 10px;
    }
    
    .date-month {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .news-banner {
        padding-bottom: 35%;
    }
    
    .news-header h1 {
        font-size: 28px;
    }
    
    .news-categories {
        gap: 15px;
    }
    
    .news-content h2 {
        font-size: 20px;
    }
    
    .pagination {
        gap: 10px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    .news-banner {
        padding-bottom: 40%;
    }
    
    .news-header h1 {
        font-size: 24px;
    }
    
    .news-categories {
        flex-wrap: wrap;
    }
    
    .news-categories a {
        font-size: 14px;
    }
    
    .news-content h2 {
        font-size: 18px;
    }
    
    .news-summary {
        font-size: 14px;
    }
    
    .pagination a,
    .pagination span {
        padding: 5px 12px;
        font-size: 14px;
    }
}