/* 

===== heade、foooter公共样式 ===== 

*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* ===== 导航栏 ===== */
.header {
    width: 100%;
    z-index: 99;
    position: relative;
    background: transparent;
    transition: background 0.9s ease;
    /* 确保没有 will-change, transform, opacity 等干扰属性 */
}

.header:hover {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 83.3333vw;          /* 最大宽度1600，小于则占满 */
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.0417vw;                  /* 左右间距 */
    /* 移除固定高度，由内容撑开 */
}

.logo {
    flex-shrink: 0;             /* 防止被压缩 */
                  /* 固定高度，让图片自适应 */
    display: flex;
    align-items: center;
}
.logo img {
    
    width: 100%;
    height: 100%;          /* 防止过大 */
    display: block;
}

.right-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.0417vw;
    flex-shrink: 1;             /* 允许收缩 */
    min-width: 0;               /* 防止溢出 */
}



/* ================= 一级导航样式 ================= */
/* 1. 导航整体布局 */
.nav {
    display: flex;
    gap: 4.1667vw;                  
    flex-wrap: wrap;            
    justify-content: flex-end;  
    align-items: center; /* 新增：保证菜单垂直对齐 */
}

/* 2. 一级菜单基础样式 */
.nav li a {
    text-decoration: none;
    color: #333333;
    font-size: 1.0417vw;
    transition: color 0.3s;
    white-space: nowrap;
    margin-bottom: 1.3021vw;
    display: block;
}

.nav li a:hover {
    color: #084c99;
    font-weight: bold;
}

/* 3. 一级菜单高亮（当前处于该栏目或其子栏目） */
.nav > li.on > a {
    color: #084c99; 
    font-weight: bold;
}

/* 4. 一级菜单悬停下划线动画 */
.nav > li.nav-item-has-submenu {
    position: relative; 
}

.nav > li.nav-item-has-submenu > a::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 50%;
    width: 0; 
    height: 2px; 
    background-color: #084c99; 
    transform: translateX(-50%); 
    transition: width 0.3s ease; 
}

.nav > li.nav-item-has-submenu:hover > a::after {
    width: 100%; 
}

/* ================= 5. 二级导航样式（核心优化） ================= */
/* 二级菜单容器：增加阴影、圆角、初始透明隐藏 */
.nav-submenu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 初始状态稍微往下偏移 */
    background-color: #fff;
    border: 1px solid #e8e8e8; /* 边框改用标准像素，避免极小分辨率下看不见 */
    border-radius: 8px; /* 增加圆角，更现代 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* 更柔和的阴影 */
    padding: 8px 0; /* 上下留出呼吸空间 */
    min-width: 117px; /* 保证最小宽度 */
    z-index: 1000;
    list-style: none;
    margin: 0;
    text-align: center;
    
    /* 核心：动画过渡属性 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* 二级菜单项：优化内边距和悬停效果 */
.nav-submenu li a {
    display: block;
    padding: 10px 0px; /* 增加左右内边距 */
    font-size: 17px; /* 二级菜单字号固定为14px，避免vw在极端屏幕下过小 */
    color: #555; /* 默认颜色稍浅 */
    font-weight: normal; 
    white-space: nowrap;
    transition: all 0.2s ease; 
    margin-bottom: 0;
}

/* 二级菜单悬停状态：增加背景色 */
.nav-submenu li a:hover {
    background-color: #f0f7ff; /* 极浅的蓝色背景，呼应主题色 */
    color: #084c99;
}

/* 二级菜单选中状态 */
.nav-submenu li a.active {
    color: #084c99 !important; 
    background-color: #e6f2ff;
    font-weight: bold !important; 
}

/* 鼠标悬停一级菜单时，显示二级菜单 */
.nav > li.nav-item-has-submenu:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 回到原位 */
}

/* 隐藏移动端菜单（如需要） */
.header-mobile {
    display: none;
}




/* ========================背景========================== */
.banner{
    width: 100%;
    height: 42.7083vw;
}
.banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 底部 */


.base{
    width: 100%;
    background-color: #084c99;
    display: flex;
    height: 9.8958vw;
    justify-content: center;
}
.base_left{
    width: 41.6667vw;
    font-size: 0.7813vw;
    color: #e2e2e2;
}
.base_nav{
    margin-top: 3.6458vw;
}
.base_nav_ul{
    display: flex;
    align-items: center;
}
.base_nav_ul span{
    margin: 0px 0.5208vw;
}

.base_message{
    margin-top: 1.0417vw;
    gap: 1.5625vw;
    display: flex;
}

.base_right{
    width: 41.6667vw;
    display: flex;
    justify-content: space-between;
    font-size: 0.7813vw;
    color: #e2e2e2;
}
.base_copyright1{
    margin-top: 3.6458vw;
}
.base_copyright2{
    margin-top: 1.0417vw;
    display: flex;
    
}
.base_copyright2 img{
    width: 1.0417vw;
    height: 1.0417vw;
    margin-left: 0.5208vw;
    margin-right: 0.2604vw;
}
.base_copyright2 p:last-child{
    margin-left: 0.5208vw;
}
.base_code1{
    margin-top: 1.5625vw;
    display: flex;
    padding-top: 0.167vw;
    justify-content: center;
    width: 5.2083vw;
    height: 5.7292vw;
    background-size: cover;
    background-image: url(../images/baseBag.png);
}
.base_code img{
    width: 4.9479vw;
    height: 4.9479vw;
}
.base_code2{
    text-align: center;
}
.base_mobile{
    display: none;
}
