/**
 * 产品详情页：根据 [data-anchor] 自动生成的锚点导航 * 高度：设计稿 80px，基准宽度 1920px → vw
 */
.single-product {
	/* 80px @1920 → vw；小屏不低于 44px 触控高度 */
	--hqd-anchor-nav-h: max(4.16666667vw, 44px);
	--hqd-anchor-nav-top: 0px;
}

body.admin-bar.single-product {
	--hqd-anchor-nav-top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.single-product {
		--hqd-anchor-nav-top: 0px;
	}
}

/* 跳转时预留导航条高度（及后台顶栏） */
.single-product .single-product-wrapper [data-anchor] {
	scroll-margin-top: calc(var(--hqd-anchor-nav-h) + var(--hqd-anchor-nav-top));
}

.hqd-product-anchor-nav {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--hqd-anchor-nav-top);
	width: 100%;
	height: var(--hqd-anchor-nav-h);
	min-height: 0;
	box-sizing: border-box;
	/* 高于移动端 .header-main.active（100001），避免锚点条被固定顶栏盖住 */
	z-index: 102000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 1.5625vw; /* ~30px @1920 */
	background: #F7F7F7;
	/* border-bottom: 1px solid rgba(0, 0, 0, 0.06); */
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transform: translateY(-100%);
	visibility: hidden;
	opacity: 0;
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.32s ease,
		visibility 0.38s;
	pointer-events: none;
}

.hqd-product-anchor-nav.is-visible {
	transform: translateY(0);
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.hqd-product-anchor-nav__inner {
	width: 100%;
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

/* 产品名（左） + 间距 + 锚点（右），整行在条内水平居中 */
.hqd-product-anchor-nav__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width:60.9375vw;
	flex-wrap: nowrap;
	/* gap: 18.2292vw; */
	max-width: 100%;
	min-width: 0;
}

.hqd-product-anchor-nav__title {
	flex: 0 1 auto;
	min-width: 0;
	font-size: 1.6667vw; /* 14px @1920，与链接一致 */
	line-height: 1.5;
	font-weight: 600;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.hqd-product-anchor-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: default;
}

.hqd-product-anchor-nav__toggle-arrow {
	display: none;
}

.hqd-product-anchor-nav__menu-wrap {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.hqd-product-anchor-nav--no-title .hqd-product-anchor-nav__title {
	display: none;
}

.hqd-product-anchor-nav--no-title .hqd-product-anchor-nav__toggle {
	display: none;
}

.hqd-product-anchor-nav--no-title .hqd-product-anchor-nav__row {
	gap: 0;
}

.hqd-product-anchor-nav__list {
	font-family:'Roboto';
	font-weight: 500;
	list-style: none;
	color:#000;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 3.3333vw; /* 12 / 30 @1920 */
	min-width: 0;
}

.hqd-product-anchor-nav__link {
	display: inline-block;
	padding: 0.25em 0.35em;
	font-size: 0.9375vw; /* 14px @1920 */
	line-height: 1.5;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
	/* border: none; */
	background: none;
	cursor: pointer;
	font-family: inherit;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.hqd-product-anchor-nav__link:hover,
.hqd-product-anchor-nav__link:focus-visible {
	color: #000 !important;
	opacity: 1;
	outline: none;
}

.hqd-product-anchor-nav__link.is-active {
	font-weight: 600;
	color: #fd5000 !important;
	opacity: 1;
}

a:focus{
	outline: none !important;
	color: #000 !important;
    text-decoration: none !important;
}




@media (max-width: 768px) {
	.single-product {
		--hqd-anchor-nav-h: 15.46667vw;
	}

	.hqd-product-anchor-nav {
		padding: 0 4.26667vw;
		height: 15.46667vw;
		align-items: flex-start;
	}

	.hqd-product-anchor-nav__inner {
		height: 100%;
	}

	.hqd-product-anchor-nav__row {
		position: relative;
		width: 100%;
		height: 100%;
		justify-content: flex-start;
		gap: 0;
	}

	.hqd-product-anchor-nav__toggle {
		height: 15.46667vw;
		max-width: 100%;
		cursor: pointer;
	}

	.hqd-product-anchor-nav__title {
		font-size: 5.33333vw;
		line-height: 1.4;
		max-width: calc(100vw - 19.2vw);
	}

	.hqd-product-anchor-nav__toggle-arrow {
		display: inline-block;
		flex: 0 0 4.26667vw;
		width: 4.26667vw;
		height: 4.26667vw;
		margin-left: 4vw;
		background-image: url('../images/arrow-right.svg');
		background-size: contain;
		background-position: center;
		background-repeat: no-repeat;
		transition: transform 0.25s ease;
	}

	.hqd-product-anchor-nav.is-mobile-open .hqd-product-anchor-nav__toggle-arrow {
		transform: rotate(90deg);
	}

	.hqd-product-anchor-nav__list {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;
		width: 100vw;
		/* padding: 0 4.26667vw 3.2vw; */
		box-sizing: border-box;
	}

	.hqd-product-anchor-nav__list li{
		width: 100%;
	}

	.hqd-product-anchor-nav__menu-wrap {
		position: absolute;
		top: 15.46667vw;
		left: -4.26667vw;
		right: -4.26667vw;
		display: block;
		background: #fff;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		box-shadow: 0 2.13333vw 4.26667vw rgba(0, 0, 0, 0.06);
	}

	.hqd-product-anchor-nav.is-mobile-open .hqd-product-anchor-nav__menu-wrap {
		max-height: 75vh;
		overflow-y: auto;
	}

	.hqd-product-anchor-nav__link {
		display: block;
		width: 100%;
		padding: 2.6667vw 4.8vw;
		font-size: 4.2667vw;
		line-height: 1.4;
		text-align: left;
		white-space: normal;
		border-bottom:1px solid #F7F7F7;
	}

	.hqd-product-anchor-nav--no-title .hqd-product-anchor-nav__menu-wrap {
		position: static;
		max-height: none;
		overflow: visible;
		box-shadow: none;
	}
}
