/* 基础样式 */
.header {
	height: 9.375rem;
	color: #fff;
	padding: 10px 0;
}
button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 10;
}

.navbar {
	background-color: #fff;
	display: flex;
	justify-content: flex-start; /* 更改为 flex-start 使 logo 靠左 */
	align-items: center;
	margin: 0 auto;
	padding: 10px 20px;
	flex-wrap: wrap; /* 添加此行 */
}
.logo{
	padding-right: 170px;
	margin-left: 200px;
}
.logo img{
	width: 80px;/* 使 logo 靠左并与其他元素分开 */
	height: auto;
}
.top_ul {
	list-style-type: none;
	margin: 0;
	padding: 0; /* 修正为 0 */
	display: flex;
	flex-grow: 1; /* 使 top_ul 可以在空余空间中居中显示 */
	justify-content: center; /* 确保 menu 居中显示 */
	flex-wrap: wrap; /* 添加此行 */
}
.top_ul li {
	margin-left: 0px;
	margin-right: 0px;
	position: relative;
	 white-space: nowrap;
}
.top_ul a {
	text-decoration: none;
	color: #333;
	padding: 10px;
	display: block;
	font-size: 14pt;
}

.top_ul_ul a {
	font-size: 12pt;
	color: #aaaaaa;
}

/* 子菜单样式 */
.top_ul_ul {
    list-style-type: none;
    display: none;
    position: absolute;
    background-color: #fff;
    width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
    z-index: 3; /* 确保子菜单显示在其他内容之上 */
	text-align: center;
}

.top_ul li:hover .top_ul_ul {
    display: block;
}

.top_ul a.active {
    color: #b51b21;
	background-color: rgba(0,0, 0,0);
	border-radius: 0.3125rem;
}

.top_ul_ul a:hover {
    background-color: #b51b21 ;
    color: #fff;
}
.top_ul > li > a {
	text-decoration: none;
	color: #333;
	padding: 10px 30px;
	display: block;
}
.top_ul > li:hover > a {
	color: #b51b21;
	font-weight: bold;
	cursor: pointer;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: background-color 0.6s ease; /* 修改了过渡效果属性 */
    border-radius: 0 3px 3px 0;
    user-select: none;
}
/*搜索栏*/
/* 搜索框容器 */
.search-container {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    position: relative;
    float: right;
	margin-right: 300px;
}
.search-input::placeholder {
    color: #333; /* 将提示文字颜色设置为红色 */
}
/* 搜索框样式 */
.search-input {
    padding: 0.625rem;
    width: 5.1rem;
    height: 2rem;
    font-size: 14pt;
    border: 0rem solid #000;
    outline: none;
    /* border-left: none; 去除左侧边框 */
    background-color: rgba(0,0, 0,0);
    margin-left: 30px;
	
}

/* 搜索按钮样式 */
.search-button {
    background-color: rgba(0,0, 0,0);
    /*border: 0.0625rem solid #000;*/
    padding: 0.625rem 1rem ;
    cursor: pointer;
    display: flex;
    align-items: center; /* 垂直居中图标 */
    justify-content: center; /* 水平居中图标 */
    height: 2rem;
    /*border-right: none;  去除右侧边框 */
    background-image: url("../../img/search.png"); /* 使用你的图标图片 */
    background-size: 1.25rem; /* 调整图标大小 */
    background-repeat: no-repeat; /* 不重复 */
    background-position: center; /* 图标居中显示 */
}

/* 搜索按钮悬停样式 */
.search-button:hover {
    background-color: #ddd;
}
@media screen and (max-width: 1680px){
	
	.logo{
		padding-right: 0px;
		margin-left: 0px;
	}
	.search-container {
	    
		margin-right: 0;
	}
}
@media screen and (max-width: 1450px){
	.logo{
		
		
	}
	.search-container {
	    
		
	}
}

@media screen and (max-width: 1200px){
	.logo{
		padding-right: 0px;
		margin-left: 0px;
	}
	.search-container {
	    
		margin-right: 0;
	}
	.top_ul a {
		font-size: 10pt;
	}
	.logo img{
		transform: scale(0.7);
	}
	.search-container{
		transform: scale(0.7);
	}
	.top_ul > li > a {
		text-decoration: none;
		color: #333;
		padding: 5px 15px;
		display: block;
	}
	.top_ul_ul {
	  
	    width: 120px;
	    
	}
}
@media screen and (max-width: 900px){
	.logo{
		padding-right: 0px;
		margin-left: 0px;
	}
	.search-container {
	    
		margin-right: 0;
	}
	.top_ul a {
		font-size: 8pt;
	}
	.logo img{
		transform: scale(0.6);
	}
	.search-container{
		transform: scale(0.6);
	}
	.top_ul > li > a {
		text-decoration: none;
		color: #333;
		padding: 5px 15px;
		display: block;
	}
	.top_ul_ul {
	  
	    width: 120px;
	    
	}
}
@media screen and (max-width: 768px) {
	.top_ul a {
		font-size: 14pt;
	}
	.search-container{
		display: none;
		margin-right: 0;
	}
	.logo img{
		transform: scale(1);
	}
	.navbar{
		
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0 auto;
		padding: 0 20px;
		z-index: 2;
	}
	.logo{
		padding-right: 100px;
		margin-left: 0;
	}
	.top_ul {
	    flex-direction: column;
	    position: fixed;
	    top: 0;
	    left: -100%;
	    width: 80%;
	    height: 100vh;
	    background-color: #f8f8f8;
	    z-index: 1000;
	    overflow-y: auto;
	    transition: all 0.3s ease;
	}
	
	.top_ul.active {
	    left: 0;
		z-index: 1000;
	}
	.top_ul > li.active {
	    background-color: #f0f0f0; /* 选中菜单项的背景颜色 */
	    color: #333; /* 选中菜单项的文字颜色 */
	}
	.top_ul > li {
	    width: 100%;
	    text-align: left;
		justify-content: center;
	    border-bottom: 0.5px solid #ccc;
	}
	.top_ul_ul {
	    position: static;
	    display: block;
	    width: 100%;
	    box-shadow: none;
	}
	.top_ul_ul li {
	    border-bottom: 0.5px solid #ccc; /* 每个子菜单项的下边框线 */
		
	}
	.top_ul_ul li:last-child {
	    border-bottom: none; /* 去除最后一个子菜单项的下边框线 */
	}
	.top_ul_ul li:first-child {
	    margin-top: 10px;
	}
	.hamburger {
	    display: block;
	    cursor: pointer;
	    padding: 10px;
	    background-color: white;
	}
	.bar {
	    display: block;
	    width: 25px;
	    height: 3px;
	    background-color: #fff;
	    margin: 5px auto;
	    transition: all 0.3s ease;
	    background-color: rgb(0, 0, 0);
	}
	.hamburger.active .bar:nth-child(2) {
	    opacity: 0;
	}
	.hamburger.active .bar:nth-child(1) {
	    transform: translateY(8px) rotate(45deg);
	}
	.hamburger.active .bar:nth-child(3) {
	    transform: translateY(-8px) rotate(-45deg);
	}
	.hamburger.active  {
	    background-color: #fff; /* 更改颜色 */
	}
	.top_ul_ul {
	    display: none; /* 默认隐藏子菜单 */
	}
	.top_ul_liansuo.active .top_ul_ul,
	.top_ul_pinpai.active .top_ul_ul,
	.top_ul_zhongyiguan.active .top_ul_ul,
	.top_ul_pifa.active .top_ul_ul,
	.top_ul_dajiankang.active .top_ul_ul,
	.top_ul_rencai.active .top_ul_ul {
	    display: block; /* 激活状态下显示子菜单 */
		text-align: left;
		justify-content: center;
		padding-left: 5%;
		padding-right: 5%;
	}
	.top_ul.active {
	    background-color: #f8f8f8; /* 展开后菜单的背景颜色 */
	    /* 其他样式 */
	}
	.top_ul a.active {
		color: #333;
		font-weight: normal;
	}
	
}
/*菜单栏默认选中样式*/
.top_ul_link.active {
    color: #b51b21; /* 被选中时的文字颜色 */
    /*pointer-events: none; /* 不可选中 */
}
