* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f5f9ff;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ========== 头部与导航 ========== */
header {
    background: #1a56a8;  /* 这里是背景色*/
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.8rem;
    opacity: 0.85;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-block;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #7ab7e0;
}

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a56a8;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: white;
    padding: 0.6rem 1rem;
    display: block;
    text-align: left;
    border-bottom: 1px solid #2c6ca0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #2c7cb6;
    color: white;
    border-radius: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ========== 移动端响应式 ========== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: #0a2b4e;
        padding: 1rem 0;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    .dropdown-content {
        position: static;
        background: #1a4a7a;
        width: 100%;
        box-shadow: none;
        margin-top: 0.5rem;
    }
    .dropdown:hover .dropdown-content {
        display: none;
    }
    .dropdown.open .dropdown-content {
        display: block;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1.2rem;
        right: 1.5rem;
    }
}

/* ========== Hero 横幅 ========== */
.hero {
   /* background: #2c7cb6; */
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56a8 100%);
    color: white;
    text-align: center;
    padding: 1.5em 1rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    background: white;
    color: #0a2b4e;
    transform: translateY(-2px);
}

/* ========== 通用卡片与列表 ========== */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    color: #0a2b4e;
    border-bottom: 2px solid #2c7cb6;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.title-wrap {
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-left: 5px solid #2c7cb6;
}

.card h3 {
    margin-bottom: 0.8rem;
    color: #0a2b4e;
}

.card p {
    color: #4a5568;
}

.list-group {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.list-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;      /* 日期和标题之间的固定间距，可自行调整 */
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.list-item .date {
    color: #2c7cb6;
    font-weight: bold;
    min-width: 100px;
}

.list-item a {
    color: #2c3e50;
    text-decoration: none;
}

.list-item a:hover {
    color: #2c7cb6;
    text-decoration: underline;
}

.more-link {
    text-align: right;
    margin-top: 1rem;
}

.more-link a {
    color: #2c7cb6;
    text-decoration: none;
    font-weight: 500;
}

.more-link a:hover {
    text-decoration: underline;
}

/* ========== 页面内容通用 ========== */
.page-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.page-content h1 {
    color: #0a2b4e;
    margin-bottom: 1.5rem;
    margin-top: 1rem;         /* 新增，增加与导航的间距 */
    border-left: 6px solid #2c7cb6;
    padding-left: 1rem;
}

.subpage-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.subpage-list li {
    background: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.subpage-list li a {
    text-decoration: none;
    color: #0a2b4e;
    font-weight: 500;
    display: block;
}

.subpage-list li a:hover {
    color: #2c7cb6;
}

/* 详情页：发布时间与正文间距 */
.article-meta {
    margin-bottom: 2rem;  /* 增加与正文的间距 */
}

/* 详情页：正文段落首行缩进两字 */
.article-content p {
    text-indent: 2em;       /* 首行缩进两个汉字字符 */
    margin-bottom: 1rem;    /* 可选：段落之间增加间距 */
}

/* 详情页：发布时间与来源间距 */
.article-meta span {
    margin-right: 2rem;  
}

/* ========== 分页样式（间距加大） ========== */
.pagination-container {
    margin-top: 2rem;
    text-align: center;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;    /* 增大页码间距 */
    flex-wrap: wrap;
}

.page-btn {
    background: white;
    border: 1px solid #2c7cb6;
    color: #2c7cb6;
    padding: 0.5rem 1.1rem;   /* 按钮稍大 */
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.page-btn:hover {
    background: #2c7cb6;
    color: white;
}

.page-btn.active {
    background: #2c7cb6;
    color: white;
    border-color: #2c7cb6;
}

/* ========== 页脚 ========== */
footer {
    background: #0a2b4e;
    color: #cbd5e1;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: #7ab7e0;
}

/* ========== 辅助工具 ========== */
.text-center {
    text-align: center;
}


/* 详情页图片样式 */
.article-image {
    text-align: center;
    margin: 1.5rem 0;
}
.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.image-caption {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: center;
}
.article-content ul {
    margin: 1rem 0 1rem 2rem;
}
.article-content li {
    margin-bottom: 0.3rem;
}

/* 名单样式 */
.member-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem 2rem;   /* 垂直间距0.8rem，水平间距2rem */
        margin: 1rem 0;
        padding: 0;
        list-style: none;
    }
    .member-list li {
        font-size: 1rem;
    }