/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* ===== 固定头部 ===== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    background: rgba(0, 74, 158, 0.9);
    color: white;
    padding: 8px 100px;
    font-size: 14px;
}

.top-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* 可根据实际情况调整 */
    margin: 0 auto;
}


header {
    padding: 15px 100px;
    border-bottom: 1px solid rgba(238, 238, 238, 0.2);
}

.header-placeholder {
    height: 160px; /* 与固定头高度匹配 */
    visibility: hidden;
}

.fixed-header {
    z-index: 10000; /* 提升层级 */
    top: 0;
    left: 0;
    right: 0;
}

.main-content {
    position: relative;
    z-index: 500;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 20px;
}

/* ===== 导航菜单 ===== */
nav {
    display: flex;
    justify-content: space-between; /* 平均分配每一项 */
    align-items: center; /* 垂直居中 */
    padding: 10px 20px; /* 左右两边留出间距 */
    background: rgba(248, 249, 250, 0.9);
}

nav a {
    flex: 1; /* 每一项平均分配剩余空间 */
    text-align: center; /* 文字居中 */
    padding: 12px 0; /* 调整内边距 */
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止文字换行 */
}

nav a:hover {
    background: rgba(0, 74, 158, 0.9);
    color: white;
}

nav a.active {
    background: #004a9e !important;
    color: white !important;
    position: relative;
    transform: scale(1.05);
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 60%;
    height: 3px;
    background: #004a9e;
    transform: translateX(-50%);
    animation: underline 0.3s ease-out;
}

/* ===== 轮播图 ===== */
.fullscreen-swiper {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 900;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.swiper-pagination {
    bottom: 80px !important;
}

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
    transition: 0.3s;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
    transform: scale(1.2);
}

/* ===== 主要内容 ===== */
.main-content {
    position: relative;
    z-index: 1000;
    background: white;
    padding: 60px 100px 40px;
    margin-top: -60px;
}

.section-title {
    color: #004a9e;
    border-left: 4px solid #004a9e;
    padding-left: 15px;
    margin: 30px 0;
}

/* ===== 底部样式 ===== */
.footer {
    background: #2d3e50;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}   

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.statement {
    margin: 25px 0; /* 增加整体外间距 */
}

.secondary-info {
    margin-top: 1.5em; /* 增加顶部间距 */
    padding-top: 1.2em; /* 添加顶部内边距 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 可选的分隔线 */
}

.another_link {
    margin-bottom: 1.2em; /* 增加下方链接模块的底部间距 */
}
/* 弹性布局实现水平排列 */
.primary-links, .secondary-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* 控制间距 */
.primary-links { gap: 15px 30px; }
.secondary-info { gap: 15px 25px; }

/* 移动端分隔线 */
@media (max-width: 768px) {
    .secondary-info li:not(:last-child)::after {
        content: "|";
        margin-left: 15px;
    }
}

/* ===== 友情链接 ===== */
.friendlyLink ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 20px;
    }
    
    .top-info-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    header,

    nav {
        flex-wrap: wrap; /* 允许换行 */
        gap: 10px; /* 减少项与项之间的间距 */
    }

    nav a {
        flex: 1 1 45%; /* 每项占45%宽度，确保每行显示两项 */
    }

    .logo img {
        height: 40px;
    }

    .main-content {
        padding: 40px 20px;
        margin-top: -40px;
    }

    .swiper-pagination {
        bottom: 40px !important;
    }

    .footer {
        padding: 30px 15px;
    }
}

@keyframes underline {
    from { width: 0 }
    to { width: 60% }
}