nav {
	position: relative;
	width: 100%;
	background-color: #eaeaea;
}

.menu {
	list-style-type: none;
	display: flex;
	justify-content: center;
	padding: 10px 0;
    padding-right: 10%;
}

.menu>.menu-item {
	margin: 0 15px;
}

.menu>.menu-item>a {
	display: block;
	padding: 15px 20px;
	text-decoration: none;
	transition: background-color 0.3s;
	color: #333;
}

.menu>.menu-item:hover>a {
	background-color: #e2e2e2;
	border-radius: 5px;
}

.submenu {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #e2e2e2;
	list-style-type: none;
	width: 100%;
	height: 0;
	opacity: 0;
	transition: all .3s ease; /* 这个里修改过渡速度 */
	z-index: 1000;
	box-sizing: border-box;
	overflow: hidden;
}

.flex-layout {
	display: flex;
	justify-content: space-between;
}

.menu>.menu-item:hover .submenu {
	height: auto;
	opacity: 1;
	padding: 1em 1.25em;
}

.submenu .submenu-title {
	font-size: 1.75em;
	color: #333;
	font-weight: 400;
	margin-bottom: 1em;
}

.submenu .left-box {
	gap: 2em;
}

.submenu .left-box .submenu-list {
	gap: .85em;
	justify-content: flex-start;
	flex-direction: column;
}

.submenu .left-box .submenu-list>li>a {
	position: relative;
	display: block;
	color: #333;
	font-weight: 300;
	font-size: .9em;
	width: 280px;
	padding-bottom: .35em;
}

.submenu .left-box .submenu-list>li>a::before {
	position: absolute;
	left: 0;
	bottom: 0;
	content: '';
	width: 100%;
	height: 1px;
	background-color: #ccc;
}

.submenu .left-box .submenu-list>li>a::after {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	content: '>';
	color: #666;
	font-weight: 300;
}

.submenu .right-img {
	max-width: 40%;
	display: block;
}

.submenu .right-img img {
	width: 100%;
	height: auto;
}

/*语言栏*/
.language {
	display: inline;
	position: relative;
	right: 105px;
	bottom: 25px;
	width: 110px;
	background-color: #e2e2e2;
	height: 0;
}

.language-submenu {
	display: inline;
	position: absolute;
	position: relative;
	top: 100%;
	left: 0;
	right: 105px;
	background-color: #e2e2e2;
	list-style-type: none;
	width: 110px;
	height: 0;
	opacity: 0;
	transition: all .3s ease; /* 这个里修改过渡速度 */
	z-index: 1000;
	box-sizing: border-box;
	overflow: hidden;
}

.language-menu-item:hover .language-submenu {
	height: auto;
	opacity: 1;
	padding: 1em 1.25em;
	width: 110px;
}

/* 添加导航栏固定样式 */
#navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: #eaeaea;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* 当导航栏固定时的样式 */
#navbar.fixed {
  position: fixed;
  width: 100%;
  animation: slideDown 0.3s ease;
}

/* 导航栏下滑动画 */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-placeholder {
	padding: 0;
	margin: 0;
}

/*Logo*/
.logo {
    display: inline;
    float: left;
    padding-left: 10%;
}

/*顶部欢迎语及ICON*/
.mail-top-icon {
    width: 15px;
}

.textTop {
    padding: 7px;
	background-color: #e2e2e2;
}

.text01 {
    padding-left: 3%;
}

.text02 {
    float: right;
    padding-right: 3%;
}

.text02 a {
	color: black;
}

.text02 a:hover {
	color: black;
	text-decoration: underline;
}

/*轮播图*/
.banner {
    background-image: url('https://x-res.hdnbe.com/banner03.jpg');
    background-size: cover;
	padding-bottom: 30%;
	margin-top: -20px;
	position: relative;
}

.banner p,.banner b {
	color: white;
}

.banner-h1 {
	font-weight: 650;
	font-size: 33px;
	position: relative;
	top: 350px;
	left: 380px;
	text-shadow: 1px 1px 2px dodgerblue;
}

.banner-hr {
	padding: 1px;
	background-color: white;
	width: 80px;
	margin-left: 15%;
	position: relative;
	top: 350px;
}

.banner-title {
	font-weight: 590;
	font-size: 40px;
	padding-left: 15%;
	position: relative;
	top: 350px;
	text-shadow: 1px 1px 2px dodgerblue;
}

.banner-p {
	padding-left: 15%;
	position: relative;
	top: 350px;
	font-size: 18px;
	text-shadow: 1px 1px 2px dodgerblue;
}

.banner-button {
	outline: none;
	border: dodgerblue;
	background-color: dodgerblue;
	color: white;
	/*font-weight: 500;*/
	font-size: 14px;
	width: 110px;
	height: 40px;
	border-radius: 25px 25px 25px 25px;
	transition: all .3s ease;
	margin-left: 15%;
	position: relative;
	top: 370px;
}

.banner-button:hover {
	background-color: white;
	border: white;
	color: dodgerblue;
	transition: all .3s ease;
}

@media screen and (max-width:1920px) {
	.banner-h1 {
		margin: -5%;
	}
}

.language1 {
	display: inline;
	float: right;
	position: relative;
	bottom: 70px;
	padding-right: 5%;
}

/* 搜索容器 */
.search-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* 弹出搜索框 - 修改为原位显示 */
.search-expanded {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  padding: 5px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  
  /* 初始状态 - 宽度为0 */
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 搜索框激活状态 - 从右往左展开 */
.search-expanded.active {
  opacity: 1;
  width: 230px; /* 根据内容调整宽度 */
}

/* 输入框 */
.search-expanded .query {
  flex: 1;
  min-width: 0; /* 允许缩小 */
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* 按钮样式 */
.search-expanded .search-button,
.search-expanded .close-search {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0; /* 防止按钮被压缩 */
}

/* 移除旧样式 */
.query-top-button {
  display: inline-block;
  position: relative;
  bottom: 2px;
  border: none;
  outline: none;
  background-color: #eaeaea;
}

.query-top-button:focus {
	outline: none;
	border: none;
}

/* 语言菜单容器 */
.language-toggle-container {
  position: relative;
  display: inline-block;
  background-color: #eaeaea;
}

/* 语言菜单样式 - 添加整体位移动画 */
.language-icon {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY( 20px); /* 初始位置向上偏移20px */
  background: #eaeaea;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  /*border-radius: 4px;*/
  padding: 8px 0; /* 保持内边距 */
  min-width: 110px;
  z-index: 1000;
  margin-top: 5px;
  opacity: 0; /* 初始透明 */
  visibility: hidden; /* 初始隐藏 */
  transition: all 0.3s ease-out; /* 统一过渡效果 */
}

/* 添加小三角指示器 */
.language-icon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #eaeaea;
}

.language-toggle-container img:hover {
	cursor: pointer;
}

/* 悬停时显示菜单 */
.language-toggle-container:hover .language-icon {
  opacity: 1; /* 完全显示 */
  visibility: visible; /* 显示元素 */
  transform: translateX(-50%) translateY(0); /* 移动到正常位置 */
}

/* 菜单项样式 */
.language-icon li {
  padding: 6px 15px;
  cursor: pointer;
  transition: background 0.2s;
  list-style: none;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
}

/* 菜单项悬停效果 */
.language-icon li:hover {
  background: #eaeaea;
}

.kefu-button-top,.kefu-button-top img {
	margin-left: 5px;
	margin-right: 10.3px;
	outline: none;
	border: none;
	background-color: #eaeaea;
}

.kefu-button-top:focus {
	outline: none;
	border: none;
}