/* 新闻中心页面样式 - 使用特殊类名避免冲突 */

/* 引入AOS动画库CSS */
@import url('https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css');

/* Banner样式 */
.news_pg_banner {
    position: relative;
    height: 400px;
    background-image: url('../images/news-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.news_pg_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 49, 143, 0.3);
}

.news_pg_banner_content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
}

.news_pg_title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0;
    animation: news_pg_fadeInUp 1s forwards 0.3s;
}

.news_pg_subtitle {
    font-size: 20px;
    opacity: 0;
    animation: news_pg_fadeInUp 1s forwards 0.6s;
}

@keyframes news_pg_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新闻导航 */
.news_pg_nav {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.news_pg_nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.news_pg_tabs {
    display: flex;
    gap: 15px;
}

.news_pg_tab {
    padding: 8px 25px;
    border: 2px solid #f1f1f1;
    border-radius: 30px;
    font-size: 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news_pg_tab.active {
    background-color: #03318f;
    color: #fff;
    border-color: #03318f;
}

.news_pg_tab:hover:not(.active) {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.news_pg_search {
    display: flex;
    position: relative;
    width: 300px;
}

.news_pg_search input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.news_pg_search input:focus {
    border-color: #03318f;
    box-shadow: 0 0 5px rgba(3, 49, 143, 0.2);
}

.news_pg_search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #03318f;
    font-size: 16px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news_pg_search button:hover {
    color: #022677;
}

/* 新闻部分公共样式 */
.news_pg_section_header {
    text-align: center;
    margin-bottom: 50px;
}

.news_pg_section_header h2 {
    font-size: 32px;
    color: #03318f;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.news_pg_section_header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #03318f;
}

.news_pg_section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news_pg_section.hidden {
    display: none;
}

/* 特色新闻样式 */
.news_pg_featured {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

.news_pg_featured:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.news_pg_featured_image {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.news_pg_featured_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news_pg_featured:hover .news_pg_featured_image img {
    transform: scale(1.05);
}

.news_pg_date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #03318f;
    color: #fff;
    border-radius: 5px;
    padding: 8px 12px;
    text-align: center;
    width: 50px;
    z-index: 5;
}

.news_pg_day {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    font-weight: bold;
}

.news_pg_month,
.news_pg_year {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    opacity: 0.8;
}

.news_pg_featured_content {
    width: 60%;
    padding: 40px;
}

.news_pg_featured_content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news_pg_excerpt {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.news_pg_meta {
    margin-bottom: 25px;
}

.news_pg_meta span {
    display: inline-block;
    margin-right: 20px;
    color: #888;
    font-size: 14px;
}

.news_pg_meta i {
    margin-right: 5px;
    color: #03318f;
}

.news_pg_read_more {
    display: inline-block;
    padding: 10px 25px;
    background-color: #03318f;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.news_pg_read_more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.news_pg_read_more:hover {
    background-color: #022677;
}

.news_pg_read_more:hover i {
    transform: translateX(5px);
}

/* 新闻列表样式 */
.news_pg_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news_pg_item {
    width: 48%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

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

.news_pg_item_image {
    height: 230px;
    position: relative;
    overflow: hidden;
}

.news_pg_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news_pg_item:hover .news_pg_item_image img {
    transform: scale(1.05);
}

.news_pg_item_content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news_pg_item_content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news_pg_item_content h3 a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news_pg_item_content h3 a:hover {
    color: #03318f;
}

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

/* 分页样式 */
.news_pg_pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.news_pg_pagination a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news_pg_pagination a.active {
    background-color: #03318f;
    color: #fff;
}

.news_pg_pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}

.news_pg_pagination a.next {
    width: auto;
    padding: 0 15px;
}

/* 消息提示样式 */
.news_pg_message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.news_pg_message.show {
    transform: translateX(0);
    opacity: 1;
}

.news_pg_message.success {
    background-color: #28a745;
}

.news_pg_message.error {
    background-color: #dc3545;
}

.news_pg_message.info {
    background-color: #17a2b8;
}

/* 关键词高亮 */
.news_pg_highlight {
    background-color: rgba(3, 49, 143, 0.2);
    font-weight: bold;
    padding: 2px 0;
}

/* 响应式样式 */
@media screen and (max-width: 992px) {
    .news_pg_banner {
        height: 350px;
    }

    .news_pg_featured {
        flex-direction: column;
    }

    .news_pg_featured_image,
    .news_pg_featured_content {
        width: 100%;
    }

    .news_pg_featured_image {
        height: 300px;
    }

    .news_pg_featured_content {
        padding: 30px;
    }

    .news_pg_item {
        width: 100%;
        min-height: auto;
    }
    
    .news_pg_item_image {
        height: 200px;
    }
}

@media screen and (max-width: 768px) {
    .news_pg_banner {
        height: 280px;
    }

    .news_pg_title {
        font-size: 32px;
    }

    .news_pg_subtitle {
        font-size: 16px;
    }

    .news_pg_nav .container {
        flex-direction: column;
        gap: 15px;
    }

    .news_pg_search {
        width: 100%;
    }

    .news_pg_featured_content {
        padding: 25px;
    }

    .news_pg_featured_content h3 {
        font-size: 20px;
    }
}

@media screen and (max-width: 576px) {
    .news_pg_banner {
        height: 250px;
    }

    .news_pg_title {
        font-size: 28px;
    }

    .news_pg_tabs {
        width: 100%;
        justify-content: center;
    }

    .news_pg_tab {
        padding: 8px 15px;
        font-size: 14px;
    }

    .news_pg_featured_image {
        height: 220px;
    }

    .news_pg_date {
        padding: 5px 10px;
    }

    .news_pg_day {
        font-size: 18px;
    }

    .news_pg_featured_content h3 {
        font-size: 18px;
    }
}