/* 统一站点头部导航：首页与内页共用 */
.compt-site-header {
	/* 导航链接变量：--nav-link-fs 控制字号，--nav-link-pad 控制每项内边距（宽度），≥1200px 生效 */
	--nav-link-fs: 1.18rem;
	--nav-link-pad: 10px 16px;
	position: absolute;
	inset: 0 0 auto;
	z-index: 50;
	width: 100%;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #fff;
}

body.admin-bar .compt-site-header {
	top: 32px;
}

.compt-site-header .site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: var(--compt-content-width);
	min-height: 72px;
	margin-inline: auto;
	padding: 12px 24px;
	border: 1px solid transparent;
	box-sizing: border-box;
}

/* 移动端菜单按钮与子栏目展开按钮，桌面端不显示 */
.compt-site-header .site-header__toggle,
.compt-site-header .site-header__subitem-toggle {
	display: none;
}

.compt-site-header .site-header__brand {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
}

.compt-site-header .site-header__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 180px;
	max-height: 40px;
}

.compt-site-header .site-header__name {
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
	color: #fff;
}

.compt-site-header .site-header__nav {
	min-width: 0;
	max-width: 100%;
}

.compt-site-header .site-header__nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 2px clamp(4px, 1vw, 14px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.compt-site-header .site-header__nav-item {
	position: relative;
}

.compt-site-header .site-header__nav-link {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-bottom: 0;
	border-radius: 2px;
	color: #fff;
	font-size: var(--compt-fs-base);
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 180ms ease, color 180ms ease;
}

/* 鼠标移入导航项：白底黑字 */
.compt-site-header .site-header__nav-item:hover > .site-header__nav-link,
.compt-site-header .site-header__nav-item:focus-within > .site-header__nav-link,
.compt-site-header .site-header__nav-link:hover,
.compt-site-header .site-header__nav-link:focus-visible {
	background: #fff;
	color: var(--compt-color-ink);
	border-bottom-color: transparent;
}

.compt-site-header .site-header__nav-item--current > .site-header__nav-link {
	background: rgba(255, 255, 255, 0.16);
	border-bottom-color: transparent;
}

.compt-site-header .site-header__nav-item--current:hover > .site-header__nav-link {
	background: #fff;
	color: var(--compt-color-ink);
}

/* 子栏目下拉：白底黑字 */
.compt-site-header .site-header__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 190px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.compt-site-header .site-header__nav-item:hover > .site-header__submenu,
.compt-site-header .site-header__nav-item:focus-within > .site-header__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.compt-site-header .site-header__submenu-item {
	margin: 0;
}

.compt-site-header .site-header__submenu-link {
	display: block;
	padding: 10px 18px;
	color: var(--compt-color-text-strong);
	font-size: var(--compt-fs-sm);
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms ease, color 150ms ease;
}

.compt-site-header .site-header__submenu-link:hover,
.compt-site-header .site-header__submenu-link:focus-visible {
	background: #f2f4f7;
	color: #0f172a;
}

.compt-site-header .site-header__brand:focus-visible,
.compt-site-header .site-header__nav-link:focus-visible,
.compt-site-header .site-header__submenu-link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

.compt-site-header .site-header__submenu-link:focus-visible {
	outline: 2px solid var(--compt-color-accent-deep);
	outline-offset: -2px;
}

/* 离开页面顶部后，切换为深色圆角悬浮导航 */
.compt-site-header.is-scrolled {
	position: fixed;
	z-index: 50;
	padding-top: 10px;
	box-sizing: border-box;
}

body.admin-bar .compt-site-header.is-scrolled {
	top: var(--compt-nav-offset, 32px);
}

.compt-site-header.is-scrolled .site-header__inner {
	border-color: rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	background: var(--compt-color-surface-nav);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
}

.compt-site-header.is-scrolled .site-header__brand:focus-visible,
.compt-site-header.is-scrolled .site-header__toggle:focus-visible {
	outline: 2px solid var(--compt-color-accent);
	outline-offset: 4px;
}

@media (min-width: 1025px) {
	.compt-site-header .site-header__nav {
		flex: 1;
	}

	.compt-site-header .site-header__nav-list {
		flex-wrap: nowrap;
		gap: clamp(4px, 0.8vw, 12px);
	}

	.compt-site-header .site-header__nav-item:first-child,
	.compt-site-header .site-header__nav-item--cta {
		margin-left: auto;
	}

	.compt-site-header .site-header__nav-link {
		position: relative;
		padding: 10px 12px;
		background: transparent;
		color: #d6d3ce;
		font-size: var(--compt-fs-sm);
	}

	.compt-site-header .site-header__nav-item:hover > .site-header__nav-link,
	.compt-site-header .site-header__nav-item:focus-within > .site-header__nav-link,
	.compt-site-header .site-header__nav-link:hover,
	.compt-site-header .site-header__nav-link:focus-visible {
		background: rgba(255, 255, 255, 0.06);
		color: var(--compt-color-accent);
	}

	.compt-site-header .site-header__nav-item--current > .site-header__nav-link {
		background: transparent;
		color: var(--compt-color-accent);
	}

	.compt-site-header .site-header__nav-item--current:not(.site-header__nav-item--cta) > .site-header__nav-link::after {
		content: '';
		position: absolute;
		bottom: 4px;
		left: 12px;
		width: 18px;
		height: 2px;
		background: var(--compt-color-accent);
	}

	.compt-site-header .site-header__nav-item--cta > .site-header__nav-link {
		padding: 11px 22px;
		border-radius: 999px;
		background: var(--compt-color-accent);
		color: #fff;
		font-weight: 600;
	}

	.compt-site-header .site-header__nav-item--cta:hover > .site-header__nav-link,
	.compt-site-header .site-header__nav-item--cta:focus-within > .site-header__nav-link {
		background: var(--compt-color-accent-hover);
		color: #fff;
	}
}

/* 桌面大屏（≥1200px）导航链接：参考样式，字号与宽度由变量集中控制，品牌蓝 CTA 按钮除外 */
@media (min-width: 1200px) {
	.compt-site-header .site-header__nav-item:not(.site-header__nav-item--cta) > .site-header__nav-link {
		padding: var(--nav-link-pad);
		font-size: var(--nav-link-fs);
		font-weight: 650;
	}
}

/* 移动端：顶部右侧菜单按钮 + 白色展开面板 + 可展开子栏目 */
@media (max-width: 1024px) {
	.compt-site-header .site-header__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		width: calc(100% - 24px);
		min-height: 64px;
		padding: 10px 14px;
	}

	.compt-site-header.is-scrolled .site-header__inner {
		border-radius: 12px;
	}

	.compt-site-header.is-scrolled .site-header__nav {
		left: 12px;
		right: 12px;
		width: auto;
		max-height: min(calc(100vh - var(--compt-nav-offset, 0px) - 100px), 680px);
		max-height: min(calc(100dvh - var(--compt-nav-offset, 0px) - 100px), 680px);
		margin-top: 8px;
		border-radius: 12px;
	}

	.compt-site-header .site-header__brand {
		justify-content: flex-start;
		text-align: left;
	}

	.compt-site-header .site-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 70;
		flex: 0 0 auto;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.45);
		border-radius: 4px;
		background: transparent;
		cursor: pointer;
	}

	.compt-site-header .site-header__toggle-bar {
		position: absolute;
		left: 50%;
		width: 20px;
		height: 2px;
		margin-left: -10px;
		background: #fff;
		border-radius: 1px;
		transition: transform 200ms ease, opacity 200ms ease;
	}

	.compt-site-header .site-header__toggle-bar:nth-of-type(1) {
		top: calc(50% - 7px);
	}

	.compt-site-header .site-header__toggle-bar:nth-of-type(2) {
		top: calc(50% - 1px);
	}

	.compt-site-header .site-header__toggle-bar:nth-of-type(3) {
		top: calc(50% + 5px);
	}

	.compt-site-header.is-open .site-header__toggle-bar:nth-of-type(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.compt-site-header.is-open .site-header__toggle-bar:nth-of-type(2) {
		opacity: 0;
	}

	.compt-site-header.is-open .site-header__toggle-bar:nth-of-type(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.compt-site-header .site-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 60;
		display: none;
		width: 100%;
		max-width: none;
		max-height: min(78vh, 680px);
		overflow-y: auto;
		background: #fff;
		box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
		overscroll-behavior: contain;
	}

	.compt-site-header.is-open .site-header__nav {
		display: block;
	}

	.compt-site-header .site-header__nav-list {
		display: block;
		margin: 0;
		padding: 0;
	}

	.compt-site-header .site-header__nav-item {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.compt-site-header .site-header__nav-link {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		padding: 15px 20px;
		border-top: 1px solid #eef0f3;
		border-bottom: 0;
		border-radius: 0;
		background: transparent;
		color: #17202a;
		font-size: var(--compt-fs-lg);
		font-weight: 600;
		line-height: 1.45;
		white-space: normal;
	}

	.compt-site-header .site-header__nav-item:hover > .site-header__nav-link,
	.compt-site-header .site-header__nav-item:focus-within > .site-header__nav-link,
	.compt-site-header .site-header__nav-link:hover,
	.compt-site-header .site-header__nav-link:focus-visible {
		background: #f7f8fa;
		color: #17202a;
	}

	.compt-site-header .site-header__nav-item--current > .site-header__nav-link {
		background: #eaf5fd;
		color: var(--compt-color-accent-deep);
		box-shadow: inset 3px 0 0 var(--compt-color-accent-deep);
	}

	.compt-site-header .site-header__nav-item--current:hover > .site-header__nav-link {
		background: #eaf5fd;
		color: var(--compt-color-accent-deep);
	}

	.compt-site-header .site-header__subitem-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 56px;
		width: 56px;
		padding: 0;
		border: 0;
		border-top: 1px solid #eef0f3;
		border-left: 1px solid #eef0f3;
		background: #fff;
		color: #17202a;
		cursor: pointer;
	}

	.compt-site-header .site-header__subitem-toggle:hover {
		background: #f7f8fa;
	}

	.compt-site-header .site-header__caret {
		display: block;
		width: 9px;
		height: 9px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 180ms ease;
	}

	.compt-site-header .site-header__nav-item--expanded .site-header__caret {
		transform: rotate(-135deg);
	}

	.compt-site-header .site-header__submenu {
		position: static;
		order: 3;
		display: none;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: #f7f8fa;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.compt-site-header .site-header__nav-item--expanded > .site-header__submenu {
		display: block;
	}

	.compt-site-header .site-header__submenu-link {
		padding: 12px 20px 12px 34px;
		color: #4b5563;
		font-size: var(--compt-fs-base);
		white-space: normal;
	}

	.compt-site-header .site-header__submenu-link:hover,
	.compt-site-header .site-header__submenu-link:focus-visible {
		background: #eaf5fd;
		color: var(--compt-color-accent-deep);
	}

	/* 获取方案评估：移动端整行品牌蓝按钮 */
	.compt-site-header .site-header__nav-item--cta {
		display: block;
		padding: 16px 20px 20px;
	}

	.compt-site-header .site-header__nav-item--cta .site-header__nav-link {
		display: flex;
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
		border: 0;
		border-radius: 4px;
		background: var(--compt-color-accent);
		color: #fff;
		font-weight: 700;
		text-align: center;
		box-shadow: none;
	}

	.compt-site-header .site-header__nav-item--cta .site-header__nav-link:hover,
	.compt-site-header .site-header__nav-item--cta .site-header__nav-link:focus-visible {
		background: var(--compt-color-accent-hover);
		color: #fff;
	}

	.compt-site-header .site-header__nav-item--cta > .site-header__nav-link:hover {
		background: var(--compt-color-accent-hover);
		color: #fff;
	}
}

@media (max-width: 600px) {
	.compt-site-header .site-header__nav-link {
		padding: 14px 18px;
		font-size: var(--compt-fs-base);
	}

	.compt-site-header .site-header__subitem-toggle {
		flex-basis: 52px;
		width: 52px;
	}

	.compt-site-header .site-header__nav-item--cta {
		padding: 14px 18px 18px;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .compt-site-header {
		top: 46px;
	}
}

/* 产品详情、联系我们无栏目大图：顶部导航浮在白色内容上，切换为深色文字 */
@media (min-width: 1025px) {
	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-link {
		color: #3f3a35;
	}

	/* 白色 Logo 在浅色背景上不可见，反色后保留品牌蓝并露出深色文字 */
	.compt-site-header--over-light:not(.is-scrolled) .site-header__logo {
		filter: invert(1) hue-rotate(180deg);
	}

	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-item:hover > .site-header__nav-link,
	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-item:focus-within > .site-header__nav-link,
	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-link:hover,
	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-link:focus-visible {
		background: rgba(29, 28, 26, 0.05);
		color: var(--compt-color-accent);
	}

	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-item--current:not(.site-header__nav-item--cta) > .site-header__nav-link {
		background: transparent;
		color: var(--compt-color-accent);
	}

	/* 联系我们按钮保持品牌蓝胶囊，不受浅色导航配色影响 */
	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-item--cta > .site-header__nav-link {
		background: var(--compt-color-accent);
		color: #fff;
	}

	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-item--cta:hover > .site-header__nav-link,
	.compt-site-header--over-light:not(.is-scrolled) .site-header__nav-item--cta:focus-within > .site-header__nav-link {
		background: var(--compt-color-accent-hover);
		color: #fff;
	}
}

@media (max-width: 1024px) {
	.compt-site-header--over-light:not(.is-scrolled) .site-header__logo {
		filter: invert(1) hue-rotate(180deg);
	}

	.compt-site-header--over-light:not(.is-scrolled) .site-header__toggle {
		border-color: rgba(29, 28, 26, 0.28);
	}

	.compt-site-header--over-light:not(.is-scrolled) .site-header__toggle-bar {
		background: var(--compt-color-surface-nav);
	}
}

/* 导航中的按钮元素需要重置浏览器默认样式 */
.compt-site-header .site-header__nav-cta {
	border: 0;
	font-family: inherit;
	cursor: pointer;
	appearance: none;
}

/* 「获取方案评估」弹框 */
body.compt-assess-open {
	overflow: hidden;
}

.compt-assess {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.compt-assess[hidden] {
	display: none;
}

.compt-assess__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(12 10 9 / 72%);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.compt-assess__dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(430px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: clamp(24px, 3vw, 30px);
	border: 1px solid #efe7de;
	border-radius: 8px;
	background: #fdf8f2;
	box-shadow: 0 24px 60px rgb(0 0 0 / 32%);
}

.compt-assess__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #e6ddd2;
	border-radius: 50%;
	background: #fff;
	color: var(--compt-color-text-muted);
	font-family: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.compt-assess__close:hover,
.compt-assess__close:focus-visible {
	border-color: var(--compt-color-accent);
	color: var(--compt-color-accent);
}

.compt-assess__eyebrow {
	margin: 0 0 8px;
	color: #e26a0c;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
}

.compt-assess__title {
	margin: 0 0 8px;
	color: #17202a;
	font-size: clamp(20px, 2.4vw, 23px);
	font-weight: 700;
	line-height: 1.35;
}

.compt-assess__desc {
	margin: 0 0 18px;
	color: var(--compt-color-text-muted);
	font-size: 12.5px;
	line-height: 1.75;
}

.compt-assess__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.compt-assess__form[hidden],
.compt-assess__success[hidden],
.compt-assess__error[hidden] {
	display: none;
}

.compt-assess__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.compt-assess__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.compt-assess__field label {
	color: var(--compt-color-text);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}

.compt-assess__field label span {
	color: #e26a0c;
}

.compt-assess__input {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #eadfd3;
	border-radius: 4px;
	background: #fff;
	color: #17202a;
	font-family: inherit;
	font-size: var(--compt-fs-sm);
	line-height: 1.5;
}

.compt-assess__textarea {
	height: auto;
	min-height: 96px;
	padding: 10px 12px;
	resize: vertical;
}

.compt-assess__input:focus {
	border-color: var(--compt-color-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgb(var(--compt-color-accent-rgb) / 12%);
}

.compt-assess__input::placeholder {
	color: #a8a29a;
}

.compt-assess__error {
	margin: 0;
	color: #c0392b;
	font-size: 12.5px;
	line-height: 1.6;
}

.compt-assess__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.compt-assess__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--compt-color-accent);
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.compt-assess__submit:hover,
.compt-assess__submit:focus-visible {
	background: var(--compt-color-accent-hover);
}

.compt-assess__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.compt-assess__note {
	margin: 0;
	color: #9ca3af;
	font-size: 11px;
	line-height: 1.5;
	text-align: right;
}

.compt-assess__success-title {
	margin: 8px 0 6px;
	color: #17202a;
	font-size: 18px;
	font-weight: 700;
}

.compt-assess__success-text {
	margin: 0 0 18px;
	color: var(--compt-color-text-muted);
	font-size: 13px;
	line-height: 1.75;
}

@media (max-width: 520px) {
	.compt-assess {
		padding: 16px;
	}

	.compt-assess__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.compt-assess__footer {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.compt-assess__submit {
		width: 100%;
	}

	.compt-assess__note {
		text-align: left;
	}
}
