/* PurePoint 太阳能站 — 全站透明顶栏，随页滚动（无 fixed / sticky / 白底遮掩） */
:root {
	--pp-gold: #f0b429;
	--pp-gold-hover: #ffc940;
	--pp-navy: #0c1424;
	--pp-shell: 1480px;
	--pp-gutter: 40px;
	--pp-header-clearance: 100px;
	--pp-nav-text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.68),
		0 2px 8px rgba(0, 0, 0, 0.48),
		0 4px 18px rgba(0, 0, 0, 0.34);
}

.pp-shell {
	width: 100%;
	max-width: var(--pp-shell);
	margin-inline: auto;
	padding-inline: var(--pp-gutter);
}

.pp-header {
	position: relative;
	z-index: 100;
	padding: 14px 0;
}

.pp-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.pp-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: -6px;
	text-decoration: none;
	color: var(--pp-navy);
	flex-shrink: 0;
}

.pp-brand__mark {
	height: 52px;
	width: auto;
	max-width: min(220px, 42vw);
	flex-shrink: 0;
	object-fit: contain;
	display: block;
}

.pp-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.pp-nav li {
	display: flex;
	align-items: center;
}

.pp-nav a {
	display: flex;
	align-items: center;
	min-height: 38px;
	padding: 0 12px;
	font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	color: rgba(12, 20, 36, 0.78);
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.pp-nav a:hover {
	color: var(--pp-navy);
	background: rgba(12, 20, 36, 0.05);
}

.pp-nav a.is-active {
	color: var(--pp-gold);
}

.pp-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	flex-shrink: 0;
}

.pp-tool {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: rgba(12, 20, 36, 0.75);
	text-decoration: none;
	border: 1px solid rgba(12, 20, 36, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s, color 0.2s;
}

.pp-tool:hover {
	color: var(--pp-gold);
	border-color: rgba(240, 180, 41, 0.45);
}

.pp-tool svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pp-tools .lang-switcher__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(12, 20, 36, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(12, 20, 36, 0.75);
}

.pp-tools .lang-switcher__label,
.pp-tools .lang-switcher__chevron,
.pp-tools .lang-switcher__globe {
	display: none;
}

.pp-tools .lang-switcher__trigger-flag {
	width: 20px;
	height: 20px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body:not(.pp-homepage) .pp-main-offset {
	padding-top: 0;
}

/* —— PurePoint 全站：透明顶栏叠在首屏深色区（与首页一致） —— */
body.pp-purepoint-site {
	position: relative;
}

body.pp-purepoint-site .site-view {
	position: relative;
	isolation: isolate;
}

/* 独立层叠上下文，避免 PageHero 负 margin 盖住顶栏 */
body.pp-purepoint-site .pp-header-layer {
	position: relative;
	z-index: 1100;
	width: 100%;
	pointer-events: none;
}

body.pp-purepoint-site .pp-header-layer .pp-header {
	pointer-events: auto;
}

body.pp-purepoint-site .pp-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1100;
	padding: 22px 0;
	background: transparent;
	border-bottom: none;
	box-shadow: none;
}

/* 与首页 pp-hero 一致：不用负 margin 上拉，顶栏叠在 Hero 之上 */
body.pp-purepoint-site main > .page-hero {
	margin-top: 0;
}

body.pp-purepoint-site .pp-brand {
	color: #fff;
}

body.pp-purepoint-site .pp-nav a {
	color: rgba(255, 255, 255, 0.88);
	text-shadow: var(--pp-nav-text-shadow);
}

body.pp-purepoint-site .pp-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

body.pp-purepoint-site .pp-nav a.is-active {
	color: var(--pp-gold);
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.72),
		0 2px 10px rgba(0, 0, 0, 0.55),
		0 4px 22px rgba(0, 0, 0, 0.4);
}

body.pp-purepoint-site .pp-tool,
body.pp-purepoint-site .pp-tools .lang-switcher__trigger {
	color: rgba(255, 255, 255, 0.85);
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
}

body.pp-purepoint-site .pp-tool:hover {
	color: var(--pp-gold);
	border-color: rgba(240, 180, 41, 0.45);
}

@media (max-width: 1024px) {
	.pp-nav {
		display: none;
	}
}

@media (max-width: 640px) {
	:root {
		--pp-gutter: 20px;
		--pp-header-clearance: 88px;
	}
	.pp-brand__mark {
		height: 44px;
		max-width: min(180px, 48vw);
	}
	.pp-tools {
		gap: 6px;
	}
	.pp-tool {
		width: 34px;
		height: 34px;
	}
	.pp-tools .lang-switcher__trigger {
		width: 34px;
		height: 34px;
	}
}
