/* ================= 全局重置 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; }
body { background-color: #f5f5f5; color: #333; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
li { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-wrapper { flex: 1; } /* 撑开主体，保证页脚在底部 */

/* 通用标题样式 */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #0d3a6c; margin-bottom: 20px; padding-bottom: 10px; min-height: 40px; }
.section-title { font-size: 22px; color: #0d3a6c; font-weight: bold; margin-bottom: 0; line-height: 1; }
.view-more-btn { font-size: 13px; color: #777; display: inline-flex; align-items: center; transition: color 0.3s; line-height: 1; margin-bottom: 2px; }
.view-more-btn:hover { color: #21599e; }
.view-more-btn::after { content: ''; display: inline-block; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 6px; margin-top: -2px; transition: transform 0.3s; }
.view-more-btn:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ================= 1. 顶部 Header ================= */
.header { background-color: #0d3a6c; height: 100px; display: flex; justify-content: center; align-items: center; position: relative; z-index: 100; }
.header-content { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; color: white; }
.logo-img-left { height: 90px; width: auto; }
.dept-logo-img { height: 90px; width: auto; }
.right-group { display: flex; align-items: center; gap: 30px; }
.slogan { font-size: 20px; letter-spacing: 2px; white-space: nowrap; }
.search-box { display: flex; align-items: center; background-color: #fff; height: 40px; border-radius: 2px; overflow: hidden; }
.search-input { border: none; outline: none; height: 100%; padding: 0 15px; width: 160px; font-size: 14px; }
.search-btn { background-color: #e6a23c; width: 40px; height: 100%; display: flex; justify-content: center; align-items: center; cursor: pointer; border: none; transition: background-color 0.3s; }
.search-btn:hover { background-color: #d18d2b; }
.search-btn svg { width: 18px; height: 18px; fill: white; }
.mobile-menu-btn { display: none; cursor: pointer; padding: 10px; }
.mobile-menu-btn svg { width: 30px; height: 30px; fill: white; }

/* ================= 2. 导航栏 ================= */
.nav-bar { background-color: #ffffff; height: 60px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 99; }
.nav-list { display: flex; height: 100%; justify-content: space-between; }
.nav-item { display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; padding: 0 20px; transition: all 0.3s; white-space: nowrap; }
.nav-item:hover, .nav-item.active { background-color: #21599e; color: #ffffff; } /* 添加了 active 状态 */
.mobile-search-wrapper { display: none; padding: 15px; background-color: #f9f9f9; border-bottom: 1px solid #eee; }

/* ================= 3. 页脚 Footer ================= */
.footer { background-color: #0d3a6c; color: rgba(255, 255, 255, 0.8); text-align: center; padding: 30px 20px; font-size: 14px; line-height: 1.8; margin-top: auto; }
.footer p { margin: 5px 0; }

/* ================= 4. 全局响应式 (头部/导航/页脚) ================= */
@media (max-width: 992px) {
    .slogan { display: none; }
    .right-group .search-box { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-bar { height: auto; position: absolute; top: 100px; left: 0; width: 100%; background-color: #fff; box-shadow: 0 5px 10px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 98; }
    .nav-bar.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .mobile-search-wrapper { display: block; }
    .mobile-search-wrapper .search-box { display: flex; width: 100%; border: 1px solid #ddd; }
    .mobile-search-wrapper .search-input { flex: 1; width: auto; }
    .nav-list { flex-direction: column; padding: 0; }
    .nav-item { padding: 15px 20px; border-bottom: 1px solid #eee; justify-content: flex-start; }
    .nav-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
    .header { height: auto; padding: 15px 0; }
    .header-content { flex-direction: column; gap: 15px; }
    .mobile-menu-btn { position: absolute; right: 20px; top: 25px; }
    .nav-bar { top: 130px; }
    .footer { font-size: 13px; padding: 20px 15px; }
}