/*
 * Global CSS
 */
/* ===== 顶部导航栏 ===== */
body{
    margin: 0;
    font-family: Source Han Sans SC, Source Han Sans SC;
}
a{
    text-decoration: none;
}
.blur-div {
    /* 默认透明背景 */
    /*background: rgb(23, 62, 143, 0) !important;*/
    /* 滚动后添加的样式：backdrop-filter: blur(15px) !important; */
    /* 滚动后添加的样式：-webkit-backdrop-filter: blur(15px) !important; */
    .search-box:hover {
        border-color: #ffffff;
        border-radius: 18px;
        background: rgba(255,255,255,0.25);
    }
    .search-box .text {
       color: white!important;
    }
    .nav>li>a {
            color: white;
            text-decoration: none;
    }
    .search-wrap{
        border-color: #FFFFFF;
    }
}
.header {
    width: 100%;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    /*border-bottom: 1px solid #eee;*/
}

.nav-container {
    width: 80%;
    /*right: 125px;*/
    margin: auto;
    display: flex;
    align-items: center;
    height: 125px;
}

.logo {
    margin-right: 60px;
    height: 55px;
    width: auto;
}

.nav {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav>li{
    cursor: pointer;
    position: relative;
    height: 110px;
    padding-bottom: 15px;
    width: 136px;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    a{
        color: #173E8F;
    }
}


.nav>li:hover{

    .nav-a{
        color: #ffffff!important;
    }
    background-color: #173E8F;
}
.nav-active {
    .nav-a{
        color: #FFFFFF!important;
    }
    background-color: #173E8F;
}
/* 搜索 */
.search-box{
    margin-left: 20px;
    margin-top: 60px;
}

/* 父容器：控制整体样式，Flex布局确保同行 */
.search-wrap {
    display: flex;
    align-items: center; /* 强制子元素垂直居中 */
    width: 160px;
    height: 30px;
    border: 1px solid #173E8F;
    border-radius: 18px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 12px;
}

/* 搜索图标：固定大小，仅留右侧间距 */
.search-wrap img {
    width: 16px;
    height: 16px;
    margin-right: 6px; /* 缩小间距，适配小宽度容器 */
    display: block; /* 避免图标底部多余空白 */
}

/* 搜索按钮样式 */
.search-btn {
    background-color: #173E8F;
    color: white;
    border: none;
    padding: 0 10px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 5px;
    height: 26px;
}

.search-btn:hover {
    background-color: #0d2c58;
}

/* 输入框：完全适配父容器，无多余样式 */
.search-wrap .text { /* 直接匹配input的class="text" */
    flex: 1; /* 占满剩余所有宽度 */
    height: 26px; /* 略小于父容器高度，避免溢出 */
    border: none; /* 去掉默认边框 */
    margin: 0; /* 清除所有外边距 */
    padding: 0; /* 清除内边距 */
    outline: none; /* 去掉聚焦轮廓 */
    font-size: 13px; /* 适配小容器的字体大小 */
    background: transparent; /* 透明背景 */
    width: 108px;
}

/* 占位符样式（可选优化） */
.search-wrap .text::placeholder {
    color: #999;
    opacity: 1; /* 解决部分浏览器占位符透明问题 */
}
/* 导航整体右对齐 */
.right-nav {
    margin-left: auto;
    display: flex;
}
/* =================横向二级菜单============== */
.sub-nav-horizontal {
    /*width: 278px;*/
    height: 62px;
    line-height: 62px;
    background: #FFFFFF;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.25);
    position: absolute;
    left: 0;
    top: 125px;
    white-space: nowrap;
    display: none;
    padding: 0 10px;
    gap: 30px;
}

.sub-nav-horizontal li
 {

    max-width: 150px;
    width: auto;
    padding:0 10px ;
    display: inline-block;
    font-size: 16px;
    height: 40px;
    position: relative; /* 给伪元素定位参考 */
    text-decoration: none;
    a{
        color: #173E8F;
    }
}

.sub-nav-horizontal li:hover ,
.sub-nav-active{
    color: #173E8F;
    background-color: #FFFFFF;
}
/* 伪元素模拟下划线（仅水平居中） */
.sub-nav-horizontal li:hover::after,
.sub-nav-active::after{
    content: '';
    position: absolute;
    /* 水平居中关键：left: 50% + transform: translateX(-50%) */
    left: 50%;
    transform: translateX(-50%); /* 向左偏移自身50%，实现水平居中 */
    top: 42px; /* 保留你原有的垂直距离（下划线与文字的距离） */
    width: 25px; /* 下划线固定长度 */
    height: 2px;
    background-color: #173E8F;
    border-radius: 2px;
}
/* hover 显示 */
.has-sub:hover .sub-nav-horizontal {
    display: block;
    animation: fade 0.15s ease-out;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 页脚 ===== */
.footer {
    height: 220px;
    background: linear-gradient( 180deg, #173E8F 4%, #123574 28%, #0D2C58 57%, #0B294D 74%);
    color: #fff;
    padding: 50px 0;
    a{
        color: #ffffff;
    }
}
.footer-cols {
    width: var(--footer-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 200px;
}
.footer .col{
    padding:0 25px;
}
.footer .col h4 {
    margin-bottom: 20px;
}
.footer .col p {
    margin: 4px 0;
    cursor: pointer;
    line-height: 2;
    display: flex;
    align-items: center;
}
.footer .col a{
    color: #AAAAAA;
}
.footer .col .icon{
    display: inline-block;
    width: 22px;
    margin-right: 8px;
    vertical-align: middle;
}
.footer .qr {
    width: 32px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin: 2px 10px 0 10px;
}

.footer .qr:last-child {
    margin-right: 0;
}

/* 二维码弹窗样式 */
.qr-container {
    display: inline-block;
    position: relative;
}

.qr-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    display: none;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.qr-popup img {
    width: 120px;
    height: 120px;
    display: block;
}

.qr-popup::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.qr-container:hover .qr-popup {
    display: block;
}

.footer .qr_down {
    width: 80px;
    margin-top: 15px;
    display: inline-block;
    margin-right: 8px;
}

.footer .qr_down:last-child {
    margin-right: 0;
}

.footer .qr_down {
    width: 80px;
    margin-top: 15px;
    display: inline-block;
    margin-right: 8px;
}

.footer .qr_down:last-child {
    margin-right: 0;
}

.copyright {
    /* 实现内容同一行 + 水平居中 */
    display: flex;
    align-items: center; /* 垂直居中对齐（文字与图片对齐） */
    justify-content: center; /* 水平居中 */
    gap: 8px; /* 文字、图片之间的间距（避免拥挤） */
    /* 可选：添加上下内边距，优化布局 */
    padding: 10px 0;
    /* 可选：设置文字样式 */
    font-size: 14px;
    color: #F3F3F3; /* 灰色文字更符合版权页风格 */
}

/* 图片样式优化（保持原尺寸，避免变形） */
.copyright img {
    height: 17px;
    width: 17px;
    vertical-align: middle; /* 兼容部分浏览器的垂直对齐 */
}


/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 10px;
}

.page-btn {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #dfe0e5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #535862;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn img {
    width: 16px;
    height: 16px;
}

.rotate-180 {
    transform: rotate(180deg);
}

.page-btn.active {
    background: #1e4fae;
    color: #fff;
    border-color: #1e4fae;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-total {
    margin-left: 10px;
    font-size: 14px;
    color: #414651;
}

.page-size {
    margin-left: 10px;
    padding: 6px 8px;
    font-size: 14px;
    outline: none;
}

/*-----------end 分页---------------- */
/* 通用字号大小 */
.font18{
    font-size: 18px;
}.font16{
    font-size: 16px;
}.font16{
    font-size: 14px;
}
.font24{
    font-size: 24px;
}
.font36{
    font-size: 36px;
}

/* 通用背景颜色 */
.bgf6{
    background-color: #f6f6f6;
}
.bgf3{
    background-color: #F3F3F3;
}

/* 通用字体颜色 */
.font-blue{
    color: #173E8F;
}

/* 宽度变量 */
:root {
    --width-main:  var(--width-main);
    --footer-width:  var(--footer-width);
}

/* 在不同屏幕尺寸下设置不同的主宽度 */
@media screen and (min-width: 1440px) {
    :root {
        --width-main: 1400px;
        --footer-width:80%;
   }
}

@media screen and (max-width: 1439px) and (min-width: 1366px) {
    :root {
        --width-main: 1200px;
        --footer-width:100%;
    }
}

@media screen and (max-width: 1365px) {
    :root {
        --width-main:  var(--width-main);
        --footer-width:100%;
    }
}
/* ============媒体查询兼容性================ */
@media screen and (max-width: 1400px) {
    .blur-div .nav-container{
        width: 100%!important;
        /* 搜索 */
        .search-box{
            margin-right: 20px;
        }
        .logo{
            margin-left: 20px;
            height: 50px;
        }
    }
    /*.footer-cols{*/
    /*    width: 100%!important;*/
    /*}*/

    /*  banner  */
    .banner-title{
        left:10%!important;
    }
}