/* 基础样式：初始/回到顶部时，header正常在文档流里显示 */
header { 
    display: flex;
    align-items: center;
    /* padding: 15px 0; */
    background-color: #fff;
    position: relative; /* 保持在文档流中 */
    z-index: 999;
    width: 100%;
    /* 初始状态无动画，只在切换粘顶时生效 */
    transition: all 0.3s ease;
}

/* 粘顶状态：滚动后才出现，从上方滑入 */
header.sticky {
    position: fixed; /* 固定在顶部，脱离文档流 */
    top: 0;
    left: 0;
    /* 动画核心：从上方-100%位置滑到0，配合透明度 */
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 非粘顶状态：仅在滚动后隐藏粘顶header，不影响初始显示 */
/* 这里用body的.scrolled类做条件，确保初始时不生效 */
body.scrolled header:not(.sticky) {
    position: fixed; /* 隐藏时用固定定位，避免占位置 */
    top: 0;
    left: 0;
    transform: translateY(-100%); /* 向上滑出视口 */
    opacity: 0; /* 透明，动画更自然 */
}

.logo img {
    height: 80px;
    margin-left: 50px;
    max-width: fit-content;
}

.head-nav {
    width: 100%;
    margin: 0;
    padding: 0 50px 0 10px;
}

.head-nav .txt {
    height: 40px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.head-nav .txt .gs-Name {
    color: #888988;
    font-size: 14px;
    font-weight: 600;
}

.head-nav .txt .icons {
    display: flex;
    height: 100%;
    align-items: center;
}

.head-nav .txt .gs-Email,
.head-nav .txt .gs-Fax {
    text-decoration: none;
    color: #888988;
    font-size: 14px;
    font-weight: 400;
    margin-right: 30px;
    font-weight: 600;
    transition: 0.4s;
}
.head-nav .txt .gs-Email:hover,
.head-nav .txt .gs-Fax:hover{
    color: #004C90;
}


.head-nav .txt .icons p {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: #004d9013;
    padding: 0 80px;
}

.head-nav .txt .icons p a {
    text-decoration: none;
    color: #333;
}

.head-nav .txt .icons p a:not(:last-child) {
    margin-right: 20px;
}

.head-nav .page {
    border-top: 2px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
}

.head-nav .page .menu,
.head-nav .page .lang {
    margin: 0;
    padding: 0;
    height: 60px;
}

.head-nav .page .menu {
    display: flex;

}
.head-nav .page .menu li{
    position: relative;
}

.head-nav .page .menu li .select {
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 2;
    background-color: #fff;
    top: 100%;
    left: -10px;
    box-shadow: 0 8px 10px rgba(0,0,0,0.2);
    border: 1px solid #0000001a;
    height: fit-content;
    padding: 0; /* 清除默认内边距 */
    margin: 0; /* 清除默认外边距 */
    /* 初始状态：沿X轴翻转90度并缩小，视觉上隐藏 */
    transform: rotateX(90deg) scale(0.8);
    transform-origin: top center; /* 翻转原点：顶部中心（从顶部开始翻出） */
    opacity: 0; /* 初始透明 */
    transition: all 0.5s ease; /* 过渡动画：平滑翻转 */
    min-width: 100px; /* 确保ul有足够宽度 */
}
.head-nav .page .menu li:hover .select {
    transform: rotateX(0deg) scale(1); /* 恢复原位和大小 */
    opacity: 1; /* 完全显示 */
}
.head-nav .page .menu li .select ul{
    padding-left: 0 !important;
}
.head-nav .page .menu li .select ul a{
    white-space: nowrap;
    text-decoration: none;
    color: #888988;
    font-weight: 600;
    padding: 8px 15px;
    display: block;
    transition: 0.4s;
}
.head-nav .page .menu li .select ul a:hover{
    background-color: #333;
    color: #fff;
}
.head-nav .page .menu li.menu-li:not(:last-child) {
    margin-right: 50px;
}
.head-nav .page .menu li.menu-li > a{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888988;
    font-weight: 600;
    transition: 0.4s;
    text-transform: uppercase;
}
.head-nav .page .menu li.menu-li > a:hover{
    color: #004C90;
}





.head-nav .page .lang{
    display: flex;
    align-items: center;
}
.head-nav .page .lang .head-lang {
    margin-right: 30px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center; 
}
.head-nav .page .lang .head-lang span  img{
    width: 30px;
}
.head-nav .page .lang .head-lang ul {
    position: absolute;
    z-index: 2;
    background-color: #fff;
    top: 100%;
    left: -10px;
    box-shadow: 0 8px 10px rgba(0,0,0,0.2);
    border: 1px solid #0000001a;
    height: fit-content;
    padding: 0; /* 清除默认内边距 */
    margin: 0; /* 清除默认外边距 */
    /* 初始状态：沿X轴翻转90度并缩小，视觉上隐藏 */
    transform: rotateX(90deg) scale(0.8);
    transform-origin: top center; /* 翻转原点：顶部中心（从顶部开始翻出） */
    opacity: 0; /* 初始透明 */
    transition: all 0.3s ease; /* 过渡动画：平滑翻转 */
    min-width: 100px; /* 确保ul有足够宽度 */
}
.head-nav .page .lang .head-lang:hover ul {
    transform: rotateX(0deg) scale(1); /* 恢复原位和大小 */
    opacity: 1; /* 完全显示 */
}



.head-nav .page .lang .head-lang ul li {
    white-space: nowrap;
    padding: 4px 10px; 
    font-size: 14px;
    transition: 0.4s;
} 
.head-nav .page .lang .head-lang ul li:hover{
    background-color: #333; 
}
.head-nav .page .lang .head-lang ul li:not(:last-child){
    border-bottom: 1px solid #0000001a;
}
.head-nav .page .lang .head-lang ul li a{
    text-decoration: none;
    color: #333;
    transition: 0.4s;
}
.head-nav .page .lang .head-lang ul li:hover a{
    color: #fff;
}
.head-nav .page .lang .head-lang ul li img{
    width: 20px;
}

.head-nav .page .lang .head-search{
    margin-right: 30px;
    position: relative;
}
.head-nav .page .lang .head-search .btn{
    background-color: transparent;
}
.head-nav .page .lang .head-search .btn i{
    color: #004C90;
    font-size: 22px;
}
/* 搜索表单基础样式 */
.head-nav .page .lang .head-search form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    display: none; /* 隐藏时不占位置 */
    align-items: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease; /* 过渡动画 */
    /* 给表单添加一个 tabindex 使其可聚焦（用于:focus-within） */
    z-index: 3;
}
  
  /* 按钮样式：点击后让表单通过:focus-within显示 */
  .head-nav .page .lang .head-search .btn {
    cursor: pointer;
    /* 确保按钮在表单上方，点击时不会被表单遮挡 */
    position: relative;
    z-index: 1;
  }
  
  /* 关键：当按钮或表单内元素被点击（获得焦点关联）时显示表单 */
  .head-nav .page .lang .head-search:focus-within form {
    display: flex; /* 显示表单 */
    opacity: 1; /* 过渡到不透明 */
    transform: translateY(-50%) scale(1); /* 过渡到正常大小 */
  }
  
  /* 表单内的输入框添加焦点样式（可选，增强交互） */
  .head-nav .page .lang .head-search form input {
    outline: none;
    padding: 5px 10px;
  }
.head-nav .page .lang .head-search form input{
    font-size: 14px;
    /* height: 80%;  */
    padding: 10px ;
    border: none;
    outline: none;
}
.head-nav .page .lang .head-search form button{
    background-color: transparent;
    padding: 6px 12px;
    border: none;


}
.head-nav .page .lang .head-search form button i{
    font-size: 22px;
    color: #004C90;
}







.head-nav .page .lang .head-phone{
    display: flex;
    align-items: center;
}
.head-nav .page .lang .head-phone .lt{
    background-color: #004C90;
    width: 42px;
    height: 42px;
    border-radius: 99px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}
.head-nav .page .lang .head-phone .lt i{
    color: white;
    font-size: 22px;
}
.head-nav .page .lang .head-phone div span,
.head-nav .page .lang .head-phone div a{
    display: block;
    color: #888988;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.head-nav .cd {
    display: none;
}

@media screen and (max-width:1440px) {
    .logo img{
        margin-left: 30px;
    }
    .logo img{
        height: 60px;
    }
    
    .head-nav .txt .icons p{
        padding: 0 30px;
    }
    .head-nav{
        padding-right: 30px;
    }
    .head-nav ul{
        padding-left: 10px !important;
    }
    .head-nav .txt .gs-Email, .head-nav .txt .gs-Fax{
        margin-right: 20px;
    }
    
}
@media screen and (max-width:1200px) {
    .head-nav .txt .gs-Name{
        display: none;
    }
    .head-nav .txt .icons{
        justify-content: space-between;
        width: 100%;
    }
    .head-nav .page .lang .head-phone .lt{
        width: 36px;
        height: 36px;
    }
    .head-nav .page .lang .head-phone .lt i{
        font-size: 20px;
    }
    .head-nav .page .lang .head-search{
        margin-right: 20px;
    }
    .head-nav .page .lang .head-lang{
        margin-right: 20px;
    }
    .head-nav .page .menu li.menu-li > a{
        font-size: 15px;
    }
    .head-nav .page .menu li.menu-li:not(:last-child){
        margin-right: 30px;
    }
}
@media screen and (max-width:991px) {
    header{
        padding: 10px 0;
    }
    .head-nav .page,
    .head-nav .txt{
        display: none;
    }
    .head-nav {
        display: flex;
        justify-content: end;
    }
    .head-nav .cd {
        display: block;
        font-size: 30px;
    }
}
@media screen and (max-width:768px) {
    .Page-Banner{height: 350px;}
    .Page-Banner .container-md h1{
        font-size: 45px;
    }
}