/*头部导航城市切换 —— 简洁卡片风*/
.city_hend {
	width: 540px;
	background: #fff;
	border: 1px solid #f0f0f0;
	padding: 18px 22px 22px;
	position: absolute;
	left: -5px;
	top: 63px;
	z-index: 30;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	display: none;
}
.header-city:hover .city_hend {
	display: block;
}
.cityfly:hover .city_hend {
	display: block;
}
/* 顶部小箭头（纯 CSS 三角，去掉图片） */
.city_hend::before {
	content: "";
	position: absolute;
	left: 26px;
	top: -8px;
	width: 14px;
	height: 14px;
	background: #fff;
	border-left: 1px solid #f0f0f0;
	border-top: 1px solid #f0f0f0;
	transform: rotate(45deg);
}
/* 省份切换：扁平文字 tab + 主题色下划线 */
.city_nav {
	border-bottom: 1px solid #eee;
	margin-bottom: 6px;
	padding-bottom: 2px;
}
.city_nav ul {
	display: flex;
	flex-wrap: wrap;
}
.city_nav li {
	position: relative;
	color: #666;
	font-size: 15px;
	line-height: 34px;
	padding: 0 4px;
	margin-right: 22px;
	cursor: pointer;
	white-space: nowrap;
	transition: color .2s;
}
.city_nav li a {
	display: block;
	color: inherit;
	white-space: nowrap;
}
.city_nav li:hover {
	color: #ea3516;
}
.city_nav li.on {
	color: #ea3516;
	font-weight: 600;
}
.city_nav li.on::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 2px;
	background: #ea3516;
	border-radius: 2px;
}
/* 城市列表：圆角胶囊 chip */
.city_main {
	max-height: 260px;
	overflow-y: auto;
}
.city_main ul {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 8px 6px;
	padding-top: 10px;
}
.city_main ul:nth-child(1) {
	display: flex;
}
.city_main li {
	list-style: none;
}
.city_main li a {
	display: inline-block;
	white-space: nowrap;
	font-size: 14px;
	color: #555;
	text-align: center;
	padding: 5px 14px;
	border-radius: 16px;
	transition: background .2s, color .2s;
}
.city_main li a:hover {
	background: #fff1ec;
	color: #ea3516;
}
.city_main li.on a {
	background: #ea3516;
	color: #fff;
}
.syhomeheadce {
	width: 1200px;
	margin: 0 auto;
	position: relative;
}
.eyou_city {
	float: left;
	margin-right: 24px;
}
.cityfly {
	float: right;
	margin-top: 5px;
	position: relative;
	padding-bottom: 14px;
	line-height: 20px;
}
/* 悬停缓冲区：填补触发器与下拉面板之间的空隙，避免鼠标经过时 hover 丢失 */
.cityfly::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 16px;
}
.cityfly:hover::after {
	display: block;
}
.cityfly>a {
	display: block;
	/*border: 1px solid #ea3516;*/
	border-radius: 20px;
	padding: 0px 5px;
}
.cityfly a span {
	color: #969696;
	font-size: 12px;
	background: url(../images/down.png) no-repeat right center, url(../images/tb.png) no-repeat left center;
	padding-right: 20px;
	padding-left: 20px;
}
.city_hend {
	left: -30px;
	top: 34px;
}
.header-city {
	display: none !important;
}
@media screen and (max-width: 767px) {
.header-city {
	display: block !important;
}
}
.header-city {
	position: relative;
	line-height: 26px;
	padding: 0px 15px;
}
.fl {
	float: left;
}
.header-city a {
	display: inline-block;
	color: #575757;
}
.header-city i {
	display: inline-block;
	width: 23px;
	height: 15px;
	background: url(../images/icon-city.png) center center no-repeat;
	background-size: 12px auto;
	position: relative;
	top: 2px;
}
/* 移动端：城市下拉面板固定在视口内，避免横向溢出导致页面可左右拖动 */
@media screen and (max-width: 900px) {
	.city_hend {
		position: fixed;
		left: 10px;
		right: 10px;
		top: 52px;
		width: auto;
		max-width: none;
		margin: 0;
		padding: 14px 16px;
		box-sizing: border-box;
	}
	/* 移动端点击展开：靠 JS 切换 .city-open，不再依赖 hover */
	.cityfly.city-open .city_hend {
		display: block;
	}
	.city_hend::before {
		display: none;
	}
	.city_nav li {
		margin-right: 14px;
		font-size: 14px;
	}
	.city_main li a {
		padding: 5px 11px;
		font-size: 13px;
	}
}
