/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1620px;
    margin: 0 auto;
}

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

a:hover {
    color: #5d99d2;
}

/* 顶部区域样式 */
.header-top {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    gap: 20px;
}

.header-left a, .header-right a {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: #fff;
    font-size: 16px;
}

/* 移动菜单图标 */
.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 主导航样式 */
.header-main {
    padding: 15px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    /* height: 50px; */
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: bold;
    position: relative;
}

.main-nav a.active, 
.main-nav a:hover {
    color: #5d99d2;
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #5d99d2;
    bottom: -17px;
    left: 0;
}

.search-lang {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 横幅区域样式 */
.banner {
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-align: left;
}

.banner-content {
    padding-left: 80px;
}

.banner h1 {
    font-size: 48px;
    margin: 0;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
}

/* 侧边栏样式 */
.sidebar {
    width: 22%;
}

.sidebar-header {
    background-color: #5d99d2;
    color: #fff;
    padding: 10px 20px;
    font-size: 30px;
}

.sidebar-nav {
    border: 1px solid #ddd;
}

.sidebar-nav a {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 20px;
}

.sidebar-nav a:last-child {
    border-bottom: none;
}

.sidebar-nav a.active, 
.sidebar-nav a:hover {
    background-color: #f8f9fa;
    color: #5d99d2;
}

/* 新闻内容区域 */
.news-content {
    width: 75%;
}

.news-item {
    display: flex;

    margin-bottom: 20px;
    overflow: hidden;
}

.news-image {
    width: 36%;
    overflow: hidden;
    margin-right: 40px;
}

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

.news-item:hover .news-image img {
    transform: none;
}

.news-text {
    width: 70%;
    padding: 20px 0 40px 0;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column; 
    border-bottom: 1px solid #ddd;
}

.news-text h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 25px;
}

.news-text p {
    color: #666;
    margin-bottom: 37px;
    flex-grow: 1;
    font-size: 18px;
}

.news-date {
    color: #000;
    font-size: 17px;
    margin-top: auto;
}

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

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    color: #333;
    background-color: #e6e6e6;
}

.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    color: #333;
    background-color: #e6e6e6;
}

.pagination a.active,
.pagination a:hover {
    background-color: #5d99d2;
    color: #fff;
    border-color: #5d99d2;
}
.pagination .current
{
    background-color: #5d99d2;
    color: #fff;
    border-color: #5d99d2;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 170px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.footer-section a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p {
    color: #aaa;
    margin: 5px 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    color: #fff;
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .banner h1 {
        font-size: 42px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image, .news-text {
        width: 100%;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-text {
        min-height: auto;
        padding: 15px;
    }
    
    .news-text h2 {
        font-size: 16px;
    }
    
    .news-date {
        position: static;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .header-top-content, .header-main-content {
        flex-direction: column;
    }
    
    .header-left, .header-right {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
    
    .search-lang {
        margin-top: 10px;
    }
    
    .main-nav.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }
    
    .main-nav.active a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a.active:after {
        display: none;
    }
    
    .banner {
        height: 200px;
    }
    
    .banner-content {
        padding-left: 20px;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar, .news-content {
        width: 100%;
    }
    
    .footer-section {
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner {
        height: 150px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .news-text {
        padding: 12px;
    }
    
    .news-text h2 {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .news-text p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .news-date {
        font-size: 12px;
    }
    

}