/**
 * hzaac 顶栏 top-bar 美化（深色工具条 · 品牌橙 #ff6a00）
 * 压过旧壳 float / margin:0 auto / 灰底
 */
.top-bar,
.top-bar * {
	box-sizing: border-box;
}

.top-bar {
	background: #1f2328 !important;
	color: rgba(255, 255, 255, 0.78) !important;
	padding: 0 !important;
	clear: both;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 12px;
	letter-spacing: 0.02em;
	line-height: 1;
}

.top-bar .inner {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 15px;
}

.top-bar .top-bar-lt,
.top-bar .top-bar-rt {
	float: none !important;
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 !important;
	clear: none !important;
	line-height: 1 !important;
}

.top-bar .top-bar-lt {
	justify-content: flex-start;
	min-width: 0;
}

.top-bar .top-bar-rt {
	justify-content: flex-end;
	margin-left: auto !important;
}

.top-bar a,
.top-bar a:link,
.top-bar a:visited {
	color: rgba(255, 255, 255, 0.82) !important;
	text-decoration: none !important;
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.top-bar a:hover,
.top-bar a:active {
	color: #ff6a00 !important;
}

/* 联系方式 */
.top-bar .top-bar-contact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 4px 0;
	white-space: nowrap;
}

.top-bar .top-bar-contact > .fa {
	color: #ff6a00;
	font-size: 12px;
	width: 14px;
	text-align: center;
}

.top-bar .top-bar-label {
	display: none !important;
}

.top-bar .top-bar-value {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
}

.top-bar .top-bar-contact:hover .top-bar-value {
	color: #ff6a00;
}

/* 快捷链接 */
.top-bar .top-bar-links {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
}

.top-bar .top-bar-links > a {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-weight: 500;
	font-size: 12px;
}

.top-bar .top-bar-links > a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff !important;
}

.top-bar .top-bar-links > a.top-bar-quote {
	margin-left: 4px;
	padding: 5px 12px;
	background: #ff6a00;
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(255, 106, 0, 0.28);
}

.top-bar .top-bar-links > a.top-bar-quote:hover {
	background: #e85d00;
	color: #fff !important;
}

/* 会员 / 购物车 */
.top-bar .xy-header-extra-nav {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	margin: 0 0 0 4px !important;
	padding: 0;
	list-style: none;
}

.top-bar .xy-header-extra-nav > li {
	display: inline-flex;
	align-items: center;
	margin: 0 !important;
	padding: 0;
}

.top-bar .xy-header-extra-nav .xy-member-nav,
.top-bar .xy-header-extra-nav .xy-basket-nav,
.top-bar .xy-header-extra-nav .xy-wishlist-nav {
	color: rgba(255, 255, 255, 0.85);
	opacity: 1;
}

.top-bar .xy-header-extra-nav a,
.top-bar .xy-header-extra-nav a:link,
.top-bar .xy-header-extra-nav a:visited {
	color: rgba(255, 255, 255, 0.88) !important;
}

.top-bar .xy-header-extra-nav a:hover {
	color: #ff6a00 !important;
}

/* 社交图标 */
.top-bar .social-container,
.top-bar .social-network-container,
.top-bar .frt {
	float: none !important;
	display: inline-flex !important;
	margin: 0 0 0 2px !important;
	vertical-align: middle;
}

.top-bar .social-container .flex {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	margin: 0 !important;
}

.top-bar .social-container a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.8) !important;
}

.top-bar .social-container a:hover {
	background: #ff6a00;
	color: #fff !important;
}

.top-bar .social-container svg,
.top-bar .social-container .icon-socialmedia {
	width: 14px !important;
	height: 14px !important;
	fill: currentColor !important;
}

@media only screen and (max-width: 900px) {
	.top-bar .top-bar-label {
		display: none;
	}

	.top-bar .inner {
		min-height: 36px;
		gap: 10px;
	}

	/* 手机顶栏：About / Contact / Get a Quote 不显示（保留会员/购物车） */
	.top-bar .top-bar-links {
		display: none !important;
	}
}

@media only screen and (max-width: 640px) {
	.top-bar .inner {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		padding: 6px 12px !important;
		gap: 8px !important;
		min-height: 36px;
	}

	.top-bar .top-bar-lt,
	.top-bar .top-bar-rt {
		display: flex !important;
		align-items: center !important;
		width: auto !important;
		flex: 0 1 auto;
		margin: 0 !important;
	}

	.top-bar .top-bar-lt {
		justify-content: flex-start !important;
		min-width: 0;
		flex: 1 1 auto;
	}

	.top-bar .top-bar-rt {
		justify-content: flex-end !important;
		flex: 0 0 auto;
		margin-left: 0 !important;
	}

	/* 手机不显示电话，只留邮箱 */
	.top-bar .top-bar-lt > a.top-bar-contact[href^="tel"] {
		display: none !important;
	}

	.top-bar .top-bar-lt > a.top-bar-contact[href^="mailto"] {
		display: inline-flex !important;
		align-items: center;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
	}

	.top-bar .top-bar-lt .top-bar-value {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 58vw;
	}
}
