.top-m {
    height: 78px;
    /* 【关键修改1】：暂时将 overflow: hidden 改为 visible，防止导航换行后被截断看不见。
       如果确认布局没问题后，可以改回 hidden，但通常头部不需要 hidden。 */
    overflow: visible; 
    background-color: #fff; 
}

/* 内部容器 */
.con-in1 {
    max-width: 1200px; 
    width: 100%; /* 【关键修改2】：确保容器占满父级宽度 */
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; /* 增加左右内边距，防止小屏幕下贴边 */
    box-sizing: border-box; /* 确保 padding 不会撑破宽度 */
}

/* Logo 区域 */
.top-m h1.logo {
    margin: 0; 
    flex-shrink: 0; /* 【关键修改3】：防止 Logo 在空间不足时被压缩变形 */
}

.top-m h1.logo a {
    display: block;
    width: 212px;
    height: 34px;
    background: url(/images/logo2026.png) no-repeat center;
    background-size: contain; 
    font-size: 0;
    color: transparent;
    overflow: hidden; 
}

/* 【关键修改4】：给 .nav 外层也加上 flex 布局，并让它占据剩余空间 */
.nav {
    flex: 1; 
    display: flex;
    justify-content: flex-end; /* 让导航菜单靠右对齐 */
}

/* 导航菜单区域 */
.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3px; 
    flex-shrink: 0; /* 【关键修改5】：绝对禁止 ul 被压缩，保证导航项完整显示 */
    flex-wrap: nowrap; /* 【关键修改6】：强制导航不换行 */
}

/* 导航项 */
.nav ul .nLi a {
    display: block;
    padding: 0 16px; /* 左右各留 16px 的内边距（数值越小，模块越窄） */
    min-width: 60px; /* 设置一个最小宽度，防止文字太少时模块过窄 */
    box-sizing: border-box; /* 确保 padding 不会撑破设定的高度 */
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止文字本身换行 */
}

/* 导航悬停和选中状态 */
.nav ul .nLi a:hover,
.nav ul .nLi.on a {
    background-color: #ae0b2a;
    color: #fff;
}

#cd-menu-trigger {
  text-align:right;
  display: none;
  z-index: 100;

}
#cd-menu-trigger .cd-menu-text {
  height: 100%;
  text-transform: uppercase;
  color: #FFF;
  font-weight: 600;
  display: none;
 
}
#cd-menu-trigger .cd-menu-icon {
  /* this span is the central line in the menu menu */
  display: inline-block;
  bottom: auto;
  right: auto;
  margin-right: -13px;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width:24px;
  height:2px;
  background-color: #333;
  /* these are the upper and lower lines in the menu menu */
}
#cd-menu-trigger .cd-menu-icon::before, #cd-menu-trigger .cd-menu-icon:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: inherit;
  left: 0;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
}
#cd-menu-trigger .cd-menu-icon::before {
  bottom: 5px;
}
#cd-menu-trigger .cd-menu-icon::after {
  top: 5px;
}
#cd-menu-trigger.is-clicked .cd-menu-icon {
  background-color: rgba(255, 255, 255, 0);
}
#cd-menu-trigger.is-clicked .cd-menu-icon::before, #cd-menu-trigger.is-clicked .cd-menu-icon::after {
  background-color: #333;
}
#cd-menu-trigger.is-clicked .cd-menu-icon::before {
  bottom: 0;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
#cd-menu-trigger.is-clicked .cd-menu-icon::after {
  top: 0;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#cd-lateral-nav {
  position: fixed;
  height: 100%;
  right:-66%;
  top: 0;
  /* the secondary navigation is covered by the main element */
  z-index: 10;
  width:66%;
  background-color: #fff;
  overflow-y: auto;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
 transition:all 0.4s ease 0s;
  /* this creates the subtle slide in animation of the navigation */
  -webkit-transform: translateX(0px);
  -moz-transform: translateX(0px);
  -ms-transform: translateX(0px);
  -o-transform: translateX(0px);
  transform: translateX(0px);
}
#cd-lateral-nav .cd-navigation {
  margin: 10px 0 16px;
}

#cd-lateral-nav.lateral-menu-is-open {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
   transition:all 0.4s ease 0s;
  right:0%;
  /* smooth the scrolling on touch devices - webkit browsers */
  -webkit-overflow-scrolling: touch;
}

.accordion {
 	width: 100%;
 	margin: 0px auto;
 	background: #FFF;
 	-webkit-border-radius: 4px;
 	-moz-border-radius: 4px;
 	border-radius: 4px;
 }

.accordion .link {
	cursor: pointer;
	display: block;
	padding: 15px 29px 15px 20px;
	color: #333;
	font-size: 14px;
	border-bottom: 1px solid #CCC;
	position: relative;
	-webkit-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
}
.accordion .link a{color:#333; width: 100%; height: 100%; display: block;}

.accordion li:last-child .link {
	border-bottom: 0;
}

.accordion li i {
	position: absolute;
	top: 18px;
	right: 12px;
	width:16px;
	height:16px;
	font-size: 18px;
	color: #595959;
	-webkit-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

/* .accordion li i.fa-chevron-down {
	right: 12px;
	left: auto;
	font-size: 16px;
	background:url(../images/subnavjia.png) no-repeat right;
	background-size:90%;
} */

/* .accordion li.open i.fa-chevron-right {
	right: 12px;
	left: auto;
	font-size: 16px;
	background:url(../images/subnavjian.png) no-repeat right;
	background-size:90%;
} */

/* .accordion li i.fa-chevron-up {
	right: 12px;
	left: auto;
	font-size: 16px;
	background:url(../images/sub-next.png) no-repeat right;
	background-size:55%;
} */

.accordion li.open .link {
	color: #0063ae;
}

.accordion li.open i {
	color: #0063ae;
}
.accordion li.open i.fa-chevron-right {
	-webkit-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	transform: rotate(180deg);
}

/**
 * Submenu
 -----------------------------*/
 .submenu {
 	display: none;
 	background: #eee;
 	font-size: 14px;
 }

 .submenu a {
 	display: block;
 	text-decoration: none;
 	color: #333;
 	padding: 12px;
 	padding-left: 20px;
 	-webkit-transition: all 0.25s ease;
 	-o-transition: all 0.25s ease;
 	transition: all 0.25s ease;
 }

 .submenu a:hover {
  color: #0063ae;
 }