/* 引入Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');

/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 体裁和字体 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 头部样式 */
.header {
    background-color: #004080;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .logo h1 {
    font-size: 24px;
    font-weight: 700;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: #ffcc00;
}

/* 汉堡菜单样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* 主体内容样式 */
.section {
    background-color: #fff;
    padding: 40px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    float: none;
}

.section h2 {
    margin-bottom: 20px;
    color: #004080;
    font-size: 28px;
    position: relative;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: #ffcc00;
    position: absolute;
    bottom: -10px;
    left: 0;
}

/* 文章样式 */
.article {
    padding-top: 5px;
    padding-bottom: 5px;

}

.article:hover {
    transform: translateY(-5px);
}

.article-image {
    flex: 1;
    margin-right: 20px;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    max-width: 800px;
    left: auto;
    right: auto;
    text-align: center;
}

.article-image img:hover {
    transform: scale(1.02);
}

.article-text {
    flex: 2;
    margin-bottom: 10px;
    border-left: medium solid #109FE8;
}

.article-text h3 {
    margin-bottom: 10px;
    color: #0066cc;
    font-size: 22px;
}

.article-text p {
    text-align: justify;
    color: #555;
    line-height: 2em;
    padding-left: 5px;
    margin-bottom: 30px;
}

/* 页脚样式 */
footer {
    background-color: #004080;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: relative;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article {
        flex-direction: column;
    }

    .article-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #004080;
        display: none;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid #0059b3;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px 10px;
    }

    .section h2 {
        font-size: 24px;
    }

    .article-text h3 {
        font-size: 20px;
    }
}
