/* snsek 顶栏 + 主导航美化 */

/* 顶栏 / 导航共用同一内容栏，并去掉 BS clearfix 伪元素干扰 flex */
.top_menu > .container,
#top_nav > .container {
	width: 100%;
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}
.top_menu > .container:before,
.top_menu > .container:after,
#top_nav > .container:before,
#top_nav > .container:after {
	display: none !important;
	content: none !important;
}

.top_menu {
	width: 100%;
	min-height: 40px;
	background: linear-gradient(90deg, #5f9a35 0%, #72AE44 55%, #7bb84f 100%);
	color: #fff;
	font-size: 13px;
	border: none;
	box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.top_menu_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	padding-top: 0;
	padding-bottom: 0;
}
.top_menu_left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	min-width: 0;
}
.top_name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	color: rgba(255,255,255,.95);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 420px;
}
.top_name i {
	opacity: .9;
}
.top_name strong {
	font-weight: 600;
	letter-spacing: .01em;
}
.top_menu_divider {
	width: 1px;
	height: 14px;
	background: rgba(255,255,255,.35);
}
.top_menu_link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255,255,255,.92) !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: color .2s ease, opacity .2s ease;
}
.top_menu_link:hover,
.top_menu_link:focus {
	color: #fff !important;
	opacity: 1;
}
.top_menu_right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.top_menu_right .xy-sns {
	gap: 8px;
}
.top_menu .nav_icons .xy-sns-btn {
	width: 26px;
	height: 26px;
	border-color: rgba(255,255,255,.55);
	color: #fff !important;
}
.top_menu .nav_icons .xy-sns-btn:hover,
.top_menu .nav_icons .xy-sns-btn:focus {
	background: rgba(255,255,255,.16);
	border-color: #fff;
	color: #fff !important;
}
.top_menu .nav_icons .xy-sns-btn svg {
	width: 12px;
	height: 12px;
}

/* 主导航 */
#top_nav.navbar {
	margin: 0;
	border: none;
	border-bottom: 1px solid #ececec;
	background: #fff;
	min-height: 78px;
	box-shadow: 0 6px 18px rgba(22,32,44,.04);
}
#top_nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#top_nav .navbar-header {
	float: none;
	margin: 0;
	padding: 10px 0;
}
#top_nav .logo {
	display: block;
	margin: 0;
	max-height: 58px;
	max-width: 260px;
	width: auto;
	height: auto;
}
#top_nav .navbar-collapse {
	float: none;
	padding: 0;
	border: none;
	box-shadow: none;
}
#top_nav .navbar-nav {
	float: none;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	justify-content: flex-end;
	margin: 0;
}
#top_nav .navbar-nav > li {
	float: none;
	white-space: nowrap;
}
#top_nav .navbar-default .navbar-nav > li > a {
	position: relative;
	padding: 28px 12px;
	color: #2b2b2b;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.2;
	background: transparent;
	transition: color .2s ease;
}
#top_nav .navbar-default .navbar-nav > li > a:hover,
#top_nav .navbar-default .navbar-nav > li > a:focus,
#top_nav .navbar-default .navbar-nav > .open > a,
#top_nav .navbar-default .navbar-nav > .open > a:hover,
#top_nav .navbar-default .navbar-nav > .open > a:focus,
#top_nav .navbar-default .navbar-nav > .active > a,
#top_nav .navbar-default .navbar-nav > .active > a:hover,
#top_nav .navbar-default .navbar-nav > li > a.active {
	color: #72AE44;
	background: transparent;
}
#top_nav .navbar-default .navbar-nav > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 18px;
	height: 2px;
	background: #72AE44;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .22s ease;
}
#top_nav .navbar-default .navbar-nav > li > a:hover::after,
#top_nav .navbar-default .navbar-nav > li > a:focus::after,
#top_nav .navbar-default .navbar-nav > .open > a::after,
#top_nav .navbar-default .navbar-nav > .active > a::after,
#top_nav .navbar-default .navbar-nav > li > a.active::after {
	transform: scaleX(1);
}
#top_nav .navbar-nav > li > a .fa-angle-down {
	margin-left: 4px;
	font-size: 12px;
	opacity: .7;
}
#top_nav #app_menudown {
	display: none;
}
#top_nav .dropdown-menu {
	min-width: 220px;
	padding: 8px 0;
	margin-top: 0;
	border: 1px solid #ececec;
	border-radius: 6px;
	box-shadow: 0 12px 28px rgba(22,32,44,.1);
}
#top_nav .dropdown-menu > li > a {
	padding: 9px 18px;
	color: #333;
	font-size: 14px;
	line-height: 1.4;
}
#top_nav .dropdown-menu > li > a:hover,
#top_nav .dropdown-menu > li > a:focus {
	background: #f5faf1;
	color: #72AE44;
}
#top_nav .dropdown-menu2 {
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 24px rgba(22,32,44,.12);
}
#top_nav .dropdown-menu2 li {
	background: #fff;
	height: auto;
	line-height: 1.4;
	padding: 0;
	border-bottom: 1px solid #f0f0f0;
}
#top_nav .dropdown-menu2 li a {
	color: #333;
	padding: 9px 14px;
	font-size: 13px;
}
#top_nav .dropdown-menu2 li:hover {
	background: #f5faf1;
}
#top_nav .dropdown-menu2 li:hover a {
	color: #72AE44;
}
/* 导航同行：仅搜索图标按钮 */
#top_nav .nav-search {
	position: relative;
	display: flex;
	align-items: center;
	margin-left: 4px;
	padding: 0 0 0 6px;
}
#top_nav .nav-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid #e4e4e4;
	border-radius: 50%;
	background: #fff;
	color: #333;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
#top_nav .nav-search-toggle:hover,
#top_nav .nav-search-toggle:focus,
#top_nav .nav-search.is-open .nav-search-toggle {
	color: #72AE44;
	border-color: #72AE44;
	background: #f5faf1;
	outline: none;
}
#top_nav .nav-search-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1030;
	width: 260px;
	padding: 8px;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(22,32,44,.12);
}
#top_nav .nav-search-panel[hidden] {
	display: none !important;
}
#top_nav .nav-search-panel form {
	display: flex;
	align-items: center;
	height: 38px;
	border: 1px solid #e2e2e2;
	border-radius: 19px;
	overflow: hidden;
	background: #fafafa;
}
#top_nav .nav-search-panel form:focus-within {
	border-color: #72AE44;
	box-shadow: 0 0 0 3px rgba(114,174,68,.12);
	background: #fff;
}
#top_nav .nav-search-panel .search-ipt {
	float: none !important;
	position: static !important;
	flex: 1;
	width: auto !important;
	height: 38px !important;
	line-height: 38px !important;
	margin: 0;
	padding: 0 14px !important;
	border: none !important;
	background: transparent !important;
	font-size: 13px;
	color: #333;
	outline: none;
	box-shadow: none;
}
#top_nav .nav-search-panel .search-btn {
	float: none !important;
	position: static !important;
	left: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px !important;
	height: 38px !important;
	margin: 0;
	padding: 0;
	border: none !important;
	background: transparent !important;
	background-image: none !important;
	color: #555;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
#top_nav .nav-search-panel .search-btn:hover,
#top_nav .nav-search-panel .search-btn:focus {
	color: #72AE44;
	outline: none;
}

@media (max-width: 991px) {
	.top_menu_inner {
		justify-content: center;
		min-height: 36px;
	}
	.top_menu_left {
		justify-content: center;
		align-items: center;
		flex-wrap: nowrap;
		width: 100%;
		gap: 6px 10px;
		overflow: hidden;
	}
	.top_name,
	.top_menu_divider,
	.top_menu_right {
		display: none !important;
	}
	.top_menu_email,
	.top_menu_wa {
		display: inline-flex !important;
		align-items: center;
		flex: 0 1 auto;
		max-width: none;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 12px;
		line-height: 1.2;
	}
	.top_menu {
		min-height: 36px;
	}
	#top_nav .container {
		display: block;
	}
	#top_nav.navbar {
		min-height: 56px;
	}
	#top_nav .navbar-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		float: none;
		width: 100%;
		padding: 6px 0;
		min-height: 56px;
	}
	#top_nav .navbar-header:before,
	#top_nav .navbar-header:after {
		display: none !important;
		content: none !important;
	}
	#top_nav .navbar-header > a {
		display: flex;
		align-items: center;
		flex: 1;
		min-width: 0;
		margin: 0 12px 0 0;
		order: 1;
	}
	#top_nav .logo {
		display: block !important;
		margin: 0 !important;
		max-height: 36px !important;
		max-width: 170px !important;
		width: auto !important;
		height: auto !important;
		object-fit: contain;
	}
	#top_nav .navbar-toggle {
		order: 2;
		float: none !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 5px;
		width: 40px;
		height: 40px;
		margin: 0 0 0 auto !important;
		padding: 0;
		border: 1px solid #d8d8d8 !important;
		border-radius: 8px;
		background: #fff !important;
		box-shadow: none;
	}
	#top_nav .navbar-default .navbar-toggle:hover,
	#top_nav .navbar-default .navbar-toggle:focus,
	#top_nav .navbar-default .navbar-toggle:not(.collapsed) {
		background: #f5faf1 !important;
		border-color: #72AE44 !important;
	}
	#top_nav .navbar-toggle .icon-bar {
		display: block;
		width: 18px;
		height: 2px;
		margin: 0 !important;
		border-radius: 1px;
		background-color: #555 !important;
	}
	#top_nav .navbar-default .navbar-toggle:hover .icon-bar,
	#top_nav .navbar-default .navbar-toggle:focus .icon-bar,
	#top_nav .navbar-default .navbar-toggle:not(.collapsed) .icon-bar {
		background-color: #72AE44 !important;
	}
	#top_nav .navbar-nav {
		display: block;
		flex-wrap: wrap;
	}
	#top_nav .navbar-default .navbar-nav > li > a {
		padding: 12px 0;
		text-align: left;
	}
	#top_nav .navbar-default .navbar-nav > li > a::after {
		display: none;
	}
	#top_nav #app_menudown {
		display: inline-block;
	}
	/* 手机端只保留右侧箭头，隐藏文字旁内联箭头 */
	#top_nav #app_menudown1,
	#top_nav .navbar-nav > li.dropdown > a > b.dropdown-toggle {
		display: none !important;
	}
	#top_nav .nav-search {
		display: none !important;
	}
	#top_nav .nav-search-panel {
		display: none !important;
	}
}
@media (max-width: 767px) {
	/* 手机端隐藏左侧分类栏 */
	.xy-page-left {
		display: none !important;
	}
}
