/* 导航、页脚、内页 Banner */

/* ── Header / Nav（对齐 yahe 静态页深色顶栏） ── */
.site-header {
	--nav-ink: #12161b;
	--nav-white: #ffffff;
	--signal: #f2b705;
	--steel-line: rgba(255, 255, 255, 0.12);
	--mono: "IBM Plex Mono", monospace;
	--display: "Oswald", sans-serif;
	--nav-max: 1450px;
}

#nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	height: 82px;
	background: rgba(18, 22, 27, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--steel-line);
	padding: 0;
	transition: box-shadow 0.3s ease, background 0.3s ease, top 0.2s ease;
}

#nav .nav-wrap {
	max-width: var(--nav-max);
	margin: 0 auto;
	padding: 0 40px;
	height: 82px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-sizing: border-box;
}

#nav.scrolled {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* WP 管理黑条：顶栏下移，避免遮住导航 */
body.admin-bar #nav {
	top: 32px;
}

@media screen and (max-width: 782px) {
	/*
	 * 核心默认把手机端管理条设为 absolute，滚动后黑条离开视口，
	 * 而 #nav 仍保留 top:46px，顶部会出现大块空白。强制 fixed 保持吸附。
	 */
	html #wpadminbar {
		position: fixed;
	}

	body.admin-bar #nav {
		top: 46px;
	}
}

/* 内页 banner 延伸至顶栏下（对齐静态页），避免 body 留白在半透明导航下露白缝 */
body:not(.home) {
	padding-top: 0;
}

body.admin-bar:not(.home) {
	padding-top: 0;
}

@media screen and (max-width: 782px) {
	body.admin-bar:not(.home) {
		padding-top: 0;
	}
}

/* PC 内页 Hero：顶部含导航高度（静态页 160px） */
.page-hero {
	/* 各页 CSS 会写完整 padding；此处兜底，防止漏写时标题顶到导航 */
	padding-top: 160px;
}

#page-banner {
	/* 背景顶到视口，标题区仍在下方 */
	box-sizing: border-box;
}

@media (max-width: 680px) {
	#nav .nav-wrap {
		padding: 0 22px;
	}
}

.nav-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
	gap: 12px;
}

.nav-logo img,
.nav-logo-img,
.custom-logo {
	height: 60px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
}

.nav-logo-text {
	font-family: var(--display);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: 0.08em;
	color: var(--nav-white);
	text-transform: uppercase;
}

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

.nav-links li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links > li > a {
	display: block;
	padding: 6px 0;
	height: auto;
	line-height: 1.2;
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.72);
	position: relative;
	transition: color 0.2s;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.nav-links > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--signal);
	transform: none;
	transition: width 0.25s ease;
	pointer-events: none;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li.current-menu-item > a,
.nav-links > li.current-menu-ancestor > a,
.nav-links > li.current_page_item > a {
	color: var(--nav-white);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after,
.nav-links > li.current-menu-item > a::after,
.nav-links > li.current-menu-ancestor > a::after,
.nav-links > li.current_page_item > a::after {
	width: 100%;
	transform: none;
}

/* 下拉子菜单（桌面悬停 / 移动折叠） */
.nav-links .menu-item-has-children {
	position: relative;
}

.nav-links .menu-item-has-children > a {
	padding-right: 16px;
}

.nav-links .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
	pointer-events: none;
	transition: transform 0.2s;
}

.nav-links .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links .sub-menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1101px) {
	.nav-links .sub-menu {
		position: absolute;
		top: calc(100% + 18px);
		left: 0;
		min-width: 240px;
		background: rgba(18, 22, 27, 0.98);
		border: 1px solid var(--steel-line);
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
		padding: 12px 0;
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
		z-index: 520;
	}

	/* 透明悬停桥：填补导航与下拉之间的空隙，鼠标经过不断开 */
	.nav-links > .menu-item-has-children > .sub-menu::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -18px;
		height: 18px;
	}

	.nav-links .menu-item-has-children:hover > .sub-menu,
	.nav-links .menu-item-has-children:focus-within > .sub-menu,
	.nav-links .menu-item-has-children.submenu-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-links .sub-menu .sub-menu {
		top: -12px;
		left: calc(100% - 2px);
	}

	/* 二级飞出菜单左侧悬停桥，斜向移动不易断开 */
	.nav-links .sub-menu .sub-menu::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: -14px;
		width: 16px;
	}

	.nav-links .sub-menu a {
		display: block;
		width: 100%;
		box-sizing: border-box;
		height: auto;
		line-height: 1.45;
		padding: 12px 22px;
		font-family: var(--mono);
		font-size: 12px;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		text-decoration: none;
		border-bottom: none;
		color: rgba(255, 255, 255, 0.72);
		white-space: nowrap;
		position: relative;
	}

	.nav-links .sub-menu a:hover,
	.nav-links .sub-menu .current-menu-item > a {
		color: var(--nav-white);
		background: rgba(255, 255, 255, 0.06);
		text-decoration: none;
	}

	.nav-links .sub-menu a::after {
		content: none !important;
		display: none !important;
		width: 0 !important;
	}

	.nav-links .sub-menu .menu-item-has-children > a {
		padding-right: 40px;
	}

	.nav-links .sub-menu .menu-item-has-children > a::before {
		right: 18px;
		transform: rotate(-45deg);
		margin-top: -2px;
	}

	/* 鼠标设备隐藏展开按钮；触屏宽屏保留按钮供点击展开 */
	@media (hover: hover) and (pointer: fine) {
		.nav-submenu-toggle {
			display: none;
		}
	}

	@media (hover: none) {
		.nav-links .menu-item-has-children > a {
			padding-right: 36px;
		}

		.nav-submenu-toggle {
			display: flex;
			align-items: center;
			justify-content: center;
			position: absolute;
			top: 0;
			right: 0;
			width: 32px;
			height: 100%;
			padding: 0;
			border: none;
			border-left: 1px solid var(--steel-line);
			background: transparent;
			color: rgba(255, 255, 255, 0.72);
			cursor: pointer;
			z-index: 2;
			-webkit-tap-highlight-color: transparent;
		}

		.nav-submenu-toggle span {
			display: block;
			width: 6px;
			height: 6px;
			border-right: 1.5px solid currentColor;
			border-bottom: 1.5px solid currentColor;
			transform: rotate(45deg);
			margin-top: -3px;
			transition: transform 0.2s;
			pointer-events: none;
		}

		.nav-links .submenu-open > .nav-submenu-toggle span {
			transform: rotate(-135deg);
			margin-top: 1px;
		}
	}

	.nav-links .menu-item-has-children.submenu-open > .sub-menu .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-shrink: 0;
}

.langswitch {
	display: flex;
	align-items: center;
	gap: 2px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
}

.langswitch .sep {
	color: rgba(255, 255, 255, 0.25);
	padding-top: 1px;
	line-height: 1;
	user-select: none;
}

.langswitch__item {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.45);
	cursor: default;
	padding: 5px 7px;
	letter-spacing: 0.05em;
	text-decoration: none;
	font-family: inherit;
	font-size: inherit;
	line-height: 1;
	transition: color 0.2s;
	white-space: nowrap;
}

a.langswitch__item {
	cursor: pointer;
}

.langswitch__item:hover,
.langswitch__item.active {
	color: var(--signal);
}

span.langswitch__item:hover {
	color: rgba(255, 255, 255, 0.45);
}

span.langswitch__item.active:hover {
	color: var(--signal);
}

.nav-search-btn {
	width: 34px;
	height: 34px;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s;
	border-radius: 50%;
	padding: 0;
	flex-shrink: 0;
}

.nav-search-btn:hover {
	border-color: var(--signal);
	background: none;
}

.nav-search-btn svg {
	width: 14px;
	height: 14px;
	stroke: var(--nav-white);
}

.nav-search-btn[aria-expanded="true"] {
	border-color: var(--signal);
	background: rgba(255, 255, 255, 0.08);
}

/* 搜索面板 */
.nav-search-panel {
	position: fixed;
	inset: 0;
	z-index: 1100; /* 高于浮动联系栏，避免遮挡搜索框与提交 */
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 100px 20px 40px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

body.nav-search-open .nav-search-panel {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

body.nav-search-open .float-contact {
	visibility: hidden;
	pointer-events: none;
}

.nav-search-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 22, 27, 0.72);
	border: none;
	padding: 0;
	cursor: pointer;
}

.nav-search-panel__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	background: #1a1f26;
	border: 1px solid var(--steel-line);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
	padding: 28px 28px 24px;
	transform: translateY(-12px);
	transition: transform 0.25s ease;
}

body.nav-search-open .nav-search-panel__box {
	transform: translateY(0);
}

.nav-search-panel__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: none;
	color: var(--nav-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: border-color 0.2s, color 0.2s;
}

.nav-search-panel__close:hover {
	border-color: var(--signal);
	color: var(--signal);
}

.nav-search-panel__label {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--signal);
	margin-bottom: 16px;
}

.nav-search-panel__form {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.nav-search-panel__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
	font-family: "Inter", sans-serif;
	font-size: 14px;
	color: var(--nav-white);
	outline: none;
	transition: border-color 0.2s;
	-webkit-appearance: none;
}

.nav-search-panel__input:focus {
	border-color: var(--signal);
}

.nav-search-panel__input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.nav-search-panel__submit {
	flex-shrink: 0;
	height: 48px;
	padding: 0 24px;
	background: transparent;
	color: var(--nav-white);
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.nav-search-panel__submit:hover {
	background: var(--nav-white);
	color: var(--nav-ink);
}

body.nav-search-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.nav-search-panel {
		padding-top: 88px;
		align-items: stretch;
	}

	.nav-search-panel__box {
		max-width: none;
		margin: 0 4px;
	}

	.nav-search-panel__form {
		flex-direction: column;
	}

	.nav-search-panel__submit {
		width: 100%;
	}
}

/* 搜索结果页 */
.site-search {
	padding: 48px 0 80px;
}

.search-results-head {
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.search-results-head h2 {
	font-family: "Oswald", sans-serif;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--navy);
	margin: 0;
}

.search-results-head .s-tag {
	margin-bottom: 8px;
}

.search-results-count {
	font-size: 14px;
	color: var(--gray);
	margin-top: 8px;
}

.search-result-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--border);
}

.search-result-item {
	padding: 22px 24px;
	border-bottom: 1px solid var(--border);
	transition: background 0.2s;
}

.search-result-item:last-child {
	border-bottom: none;
}

.search-result-item:hover {
	background: var(--blue-pale);
}

.search-result-type {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 6px;
}

.search-result-item .entry-title {
	font-family: "Oswald", sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.search-result-item .entry-title a {
	color: var(--navy);
	text-decoration: none;
	transition: color 0.2s;
}

.search-result-item .entry-title a:hover {
	color: var(--blue);
}

.search-result-excerpt {
	font-size: 13px;
	line-height: 1.7;
	color: var(--gray);
}

.search-no-results {
	padding: 40px 0;
	text-align: center;
	color: var(--gray);
}

.search-no-results p {
	margin-bottom: 16px;
}

.search-inline-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin: 0 auto;
}

.search-inline-form input[type="search"] {
	flex: 1;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--border);
	font-size: 14px;
}

.search-inline-form button {
	height: 44px;
	padding: 0 20px;
	background: var(--blue);
	color: #fff;
	border: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.nav-quote {
	display: none !important;
}

.nav-toggle {
	display: none;
	width: 26px;
	height: 20px;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
	padding: 0;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--nav-white);
	transition: transform 0.25s, opacity 0.25s;
	margin: 0;
}

body.nav-menu-open {
	overflow: hidden;
	touch-action: none;
}

/* 打开菜单时高于浮动联系栏，避免挡点击 */
body.nav-menu-open #nav {
	z-index: 1200;
}

body.nav-menu-open .float-contact {
	visibility: hidden;
	pointer-events: none;
}

.nav-drawer {
	display: contents;
}

.nav-drawer-head {
	display: none;
}

.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(18, 22, 27, 0.55);
	z-index: 1150;
	opacity: 0;
	transition: opacity 0.3s;
	border: none;
	padding: 0;
	cursor: pointer;
}

body.nav-menu-open .nav-overlay {
	display: block;
	opacity: 1;
}

.nav-drawer-quote {
	display: none;
}

/* 抽屉内搜索（桌面隐藏，移动端展示） */
.nav-drawer-search {
	display: none;
}

@media (max-width: 1100px) {
	#nav {
		height: 72px;
	}

	#nav .nav-wrap {
		height: 72px;
		padding: 0 22px;
	}

	body:not(.home) {
		padding-top: 0;
	}

	body.admin-bar:not(.home) {
		padding-top: 0;
	}

	@media screen and (max-width: 782px) {
		body.admin-bar:not(.home) {
			padding-top: 0;
		}
	}

	/* 内页 Hero：顶部内边距含导航高度，避免标题被挡住 */
	.page-hero {
		padding-top: calc(72px + 48px) !important;
		padding-bottom: 56px !important;
	}

	#page-banner {
		box-sizing: border-box;
		padding-top: 72px;
		min-height: 280px;
		height: auto;
	}

	.nav-logo img,
	.nav-logo-img {
		height: 48px;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-toggle span {
		transform-origin: center;
	}

	.nav-right > .langswitch,
	.nav-right > .nav-search-btn {
		display: none;
	}

	.nav-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		width: min(320px, 88vw);
		max-width: 100%;
		height: 100vh;
		height: -webkit-fill-available;
		height: 100dvh;
		background: #12161b;
		z-index: 1210;
		padding: 20px 0 calc(24px + env(safe-area-inset-bottom, 0px));
		padding-left: env(safe-area-inset-left, 0px);
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
		transform: translateX(-105%);
		transition: transform 0.3s ease;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		pointer-events: none;
		visibility: hidden;
	}

	body.nav-menu-open .nav-drawer {
		transform: translateX(0);
		pointer-events: auto;
		visibility: visible;
	}

	body.admin-bar .nav-drawer {
		top: 0;
		height: 100vh;
		height: -webkit-fill-available;
		height: 100dvh;
	}

	.nav-drawer-head {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 10px;
		padding: 0 16px 14px;
		margin-bottom: 6px;
		border-bottom: 1px solid var(--steel-line);
		flex-shrink: 0;
	}

	.nav-drawer-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		justify-content: flex-end;
	}

	.langswitch--drawer {
		display: flex;
	}

	.nav-drawer-search {
		display: block;
		padding: 0 16px 14px;
		margin-bottom: 6px;
		border-bottom: 1px solid var(--steel-line);
		flex-shrink: 0;
	}

	.nav-drawer-search__form {
		display: flex;
		gap: 8px;
		align-items: stretch;
	}

	.nav-drawer-search__input {
		flex: 1;
		min-width: 0;
		height: 40px;
		padding: 0 12px;
		border: 1px solid rgba(255, 255, 255, 0.25);
		font-family: "Inter", sans-serif;
		font-size: 14px;
		color: #fff;
		background: rgba(255, 255, 255, 0.06);
		outline: none;
		transition: border-color 0.2s;
		-webkit-appearance: none;
	}

	.nav-drawer-search__input:focus {
		border-color: var(--signal);
	}

	.nav-drawer-search__input::placeholder {
		color: rgba(255, 255, 255, 0.35);
	}

	.nav-drawer-search__submit {
		flex-shrink: 0;
		width: 40px;
		height: 40px;
		padding: 0;
		background: transparent;
		color: #fff;
		border: 1px solid rgba(255, 255, 255, 0.35);
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: background 0.2s, color 0.2s, border-color 0.2s;
	}

	.nav-drawer-search__submit:hover {
		background: var(--signal);
		border-color: var(--signal);
		color: #12161b;
	}

	.nav-drawer-search__submit svg {
		stroke: currentColor;
	}

	.nav-links {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		position: static;
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
		box-shadow: none;
		transform: none;
		overflow: visible;
		flex: 1;
		gap: 0;
	}

	.nav-links li {
		width: 100%;
	}

	.nav-links a,
	.nav-links > li > a {
		height: auto;
		min-height: 52px;
		line-height: 1.35;
		padding: 0 20px;
		font-size: 13px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		white-space: normal;
		word-break: break-word;
		color: rgba(255, 255, 255, 0.78);
		display: flex;
		align-items: center;
		box-sizing: border-box;
		text-decoration: none;
	}

	.nav-links a::after,
	.nav-links > li > a::after {
		display: none !important;
		width: 0 !important;
	}

	/* 有子菜单：链接与展开按钮并排，避免链接盖住按钮 */
	.nav-links .menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.nav-links .menu-item-has-children > a {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		max-width: none;
		padding-right: 12px;
		box-sizing: border-box;
	}

	.nav-links .menu-item-has-children > a::before {
		display: none !important;
	}

	.nav-submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		width: 48px;
		min-height: 52px;
		height: auto;
		padding: 0;
		border: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		background: rgba(255, 255, 255, 0.04);
		color: rgba(255, 255, 255, 0.72);
		cursor: pointer;
		flex: 0 0 48px;
		align-self: stretch;
		box-sizing: border-box;
		-webkit-tap-highlight-color: transparent;
	}

	.nav-submenu-toggle span {
		display: block;
		width: 6px;
		height: 6px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		margin-top: -3px;
		transition: transform 0.2s;
		pointer-events: none;
	}

	.nav-links .submenu-open > .nav-submenu-toggle span {
		transform: rotate(-135deg);
		margin-top: 1px;
	}

	.nav-links .menu-item-has-children > .sub-menu {
		flex: 1 1 100%;
		width: 100%;
	}

	.nav-links .sub-menu {
		display: none;
		background: rgba(0, 0, 0, 0.25);
		border: none;
		box-shadow: none;
		padding: 0;
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav-links .submenu-open > .sub-menu {
		display: block;
	}

	.nav-links .sub-menu a {
		min-height: 52px;
		padding: 0 12px 0 28px;
		font-size: 12px;
		line-height: 1.35;
		border-bottom: none;
		color: rgba(255, 255, 255, 0.65);
		white-space: normal;
		word-break: break-word;
		text-decoration: none !important;
		display: flex;
		align-items: center;
		box-sizing: border-box;
	}

	.nav-links .sub-menu a::after {
		content: none !important;
		display: none !important;
		width: 0 !important;
	}

	.nav-links .sub-menu > .menu-item {
		min-height: 52px;
	}

	.nav-links .sub-menu .menu-item-has-children > a {
		padding-left: 28px;
	}

	.nav-links .sub-menu .nav-submenu-toggle {
		background: rgba(255, 255, 255, 0.04);
		border-bottom: none;
		min-height: 52px;
	}

	.nav-links .sub-menu .sub-menu a {
		padding-left: 40px;
	}

	.nav-links .sub-menu .sub-menu .menu-item-has-children > a {
		padding-left: 40px;
	}

	/* 打开菜单时汉堡按钮变成关闭态，便于一眼看出可关 */
	body.nav-menu-open .nav-toggle span:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}

	body.nav-menu-open .nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	body.nav-menu-open .nav-toggle span:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
	}

	.nav-links a.active,
	.nav-links .current-menu-item > a,
	.nav-links .current-menu-ancestor > a,
	.nav-links .current_page_item > a {
		background: rgba(242, 183, 5, 0.12);
		color: var(--signal);
		font-weight: 500;
	}

	.nav-drawer-quote {
		display: list-item;
		margin-top: 8px;
		padding: 0 28px;
	}

	.nav-drawer-quote a {
		display: block;
		background: transparent;
		color: #fff !important;
		text-align: center;
		font-family: var(--mono);
		font-weight: 500;
		letter-spacing: 0.08em;
		padding: 14px 20px !important;
		border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
		height: auto;
		line-height: 1.4;
	}

	.nav-drawer-quote a:hover {
		background: #fff;
		color: #12161b !important;
		border-color: #fff !important;
	}
}

/* ── Footer（对齐 yahe 静态页共用页尾） ── */
.site-footer {
	--ink: #12161b;
	--signal: #f2b705;
	--steel-line: rgba(255, 255, 255, 0.12);
	--mono: "IBM Plex Mono", monospace;
	background: var(--ink);
	color: #fff;
	padding: 70px 0 26px;
}

.site-footer .wrap {
	max-width: 1450px;
	margin: 0 auto;
	padding: 0 40px;
}

.site-footer .foot-top {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	padding-bottom: 50px;
	border-bottom: 1px solid var(--steel-line);
}

.site-footer .foot-brand,
.site-footer .foot-col {
	padding: 0 40px;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .foot-brand {
	padding-left: 0;
}

.site-footer .foot-top > *:last-child {
	border-right: none;
	padding-right: 0;
}

.site-footer .foot-brand-logo {
	display: inline-block;
	margin-bottom: 16px;
}

.site-footer .foot-brand img {
	height: 80px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
}

.site-footer .foot-brand p {
	color: rgba(255, 255, 255, 0.5);
	font-size: 13.5px;
	line-height: 1.6;
	margin: 0 0 20px;
}

.site-footer .social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.site-footer .social a {
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: 0.3s;
}

.site-footer .social a:hover {
	border-color: var(--signal);
	background: var(--signal);
	color: var(--ink);
}

.site-footer .social svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.site-footer .social img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	display: block;
	filter: brightness(0) invert(1);
}

.site-footer .social a:hover img {
	filter: none;
}

.site-footer .foot-col h5 {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--signal);
	margin: 0 0 18px;
}

/* Sitemap 列：PC 单列；手机端一排 3 个 */
.site-footer .foot-col--sitemap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-content: start;
}

.site-footer .foot-col--sitemap h5 {
	grid-column: 1 / -1;
}

.site-footer .foot-col--sitemap a {
	min-width: 0;
}

@media (max-width: 768px) {
	.site-footer .foot-col--sitemap {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 14px;
	}
}

.site-footer .foot-col a,
.site-footer .foot-col p {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13.5px;
	margin: 0 0 12px;
	text-decoration: none;
	line-height: 1.45;
}

.site-footer .foot-col a:hover {
	color: #fff;
}

.site-footer .foot-col p img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	filter: brightness(0) invert(0.6);
	flex-shrink: 0;
}

.site-footer .foot-col p a {
	margin: 0;
	color: inherit;
}

.site-footer .foot-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 26px;
	font-family: var(--mono);
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.4);
}

.site-footer .foot-bottom-left {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.site-footer .foot-bottom-right {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.site-footer .foot-sitemap {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.site-footer .foot-sitemap:hover {
	color: #fff;
}

.site-footer .foot-beian {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.site-footer .foot-beian:hover {
	color: #fff;
}

.site-footer .foot-beian--gan {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.site-footer .foot-beian-icon {
	width: 14px;
	height: 14px;
	object-fit: contain;
	flex-shrink: 0;
}

@media (max-width: 992px) {
	.site-footer .foot-top {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.site-footer .foot-brand,
	.site-footer .foot-col {
		border-right: none;
		padding-right: 0;
		padding-left: 0;
	}
}

@media (max-width: 680px) {
	.site-footer {
		padding: 56px 0 22px;
	}

	.site-footer .wrap {
		padding: 0 22px;
	}

	.site-footer .foot-top {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.site-footer .foot-bottom {
		flex-direction: column;
		gap: 10px;
	}
}

/* ── Page Banner ── */
#page-banner {
	position: relative;
	height: 420px;
	overflow: hidden;
	background: var(--navy) center center / cover no-repeat;
	display: flex;
	align-items: flex-end;
}

#page-banner .banner-bg {
	position: absolute;
	inset: 0;
	background: inherit;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transition: transform 8s ease;
}

#page-banner .banner-bg.zoomed {
	transform: scale(1.06);
}

#page-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(0, 30, 60, .88) 0%,
		rgba(0, 30, 60, .55) 50%,
		rgba(0, 30, 60, .25) 100%
	);
}

.banner-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 64px 56px;
	max-width: 1400px;
	margin: 0 auto;
}

.breadcrumb-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	flex-wrap: wrap;
}

.breadcrumb-nav a {
	color: rgba(255, 255, 255, .55);
	text-decoration: none;
	transition: color .2s;
}

.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-nav .sep { color: rgba(255, 255, 255, .3); font-size: 10px; }
.breadcrumb-nav .current {
	color: var(--blue);
	max-width: 480px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.banner-title {
	font-family: "Oswald", sans-serif;
	font-weight: 800;
	font-size: clamp(48px, 6vw, 80px);
	color: #fff;
	letter-spacing: 4px;
	text-transform: uppercase;
	line-height: 1;
	margin-bottom: 12px;
}

.banner-desc {
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
	letter-spacing: 1px;
}

.page-banner--post .banner-title {
	font-size: clamp(28px, 3.4vw, 46px);
	letter-spacing: 1px;
	line-height: 1.15;
	max-width: 920px;
	margin-bottom: 18px;
	text-transform: none;
}

.page-banner--product .banner-title {
	font-size: clamp(36px, 4.5vw, 56px);
	letter-spacing: 2px;
	line-height: 1.1;
}

.banner-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.bm-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .7);
}

.bm-item svg {
	flex-shrink: 0;
}

.banner-rule {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--blue) 0%, var(--navy) 100%);
	z-index: 2;
}

@media (max-width: 1100px) {
	.banner-content { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 640px) {
	.banner-content { padding-left: 20px; padding-right: 20px; padding-bottom: 36px; }
	#page-banner { height: auto; min-height: 280px; }
	.banner-title { font-size: clamp(32px, 8vw, 48px); letter-spacing: 2px; }
	.page-banner--post .banner-title { font-size: clamp(24px, 6.5vw, 36px); }
	.page-banner--product .banner-title { font-size: clamp(28px, 7vw, 40px); }
	.breadcrumb-nav .current { max-width: 200px; }
}

/* ── 内页分页 / 上下篇 ── */
.site-pager-wrap {
	padding-top: 40px;
	padding-bottom: 60px;
}

.pagination,
.navigation.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.pagination .page-numbers,
.navigation.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination .page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers a,
.pagination .page-numbers span,
.navigation.pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1.5px solid var(--border);
	background: var(--white);
	color: var(--gray);
	font-size: 13px;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	transition: all .25s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

.pagination .page-numbers a:hover,
.pagination .page-numbers a:focus,
.navigation.pagination a.page-numbers:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.pagination .page-numbers .current,
.navigation.pagination span.page-numbers.current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.pagination .page-numbers .prev,
.pagination .page-numbers .next,
.navigation.pagination .prev,
.navigation.pagination .next {
	width: auto;
	padding: 0 16px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.pagination .page-numbers .dots {
	border: none;
	background: transparent;
	color: var(--gray-light);
}

.article-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--border);
}

.pager-link {
	background: var(--white);
	padding: 22px 26px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: background .2s;
}

.pager-link:hover {
	background: var(--blue-pale);
	text-decoration: none;
}

.pager-link.next {
	text-align: right;
	align-items: flex-end;
}

.pager-dir {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--blue);
}

.pager-title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.4;
}

.pager-link.is-empty {
	pointer-events: none;
	opacity: .45;
}

@media (max-width: 640px) {
	.article-pager {
		grid-template-columns: 1fr;
	}

	.pager-link.next {
		text-align: left;
		align-items: flex-start;
	}
}

/* ── 右侧浮动通讯栏 ── */
.float-contact {
	--float-blue: #1d6fb8;
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 900;
}

.float-contact__toggle {
	display: none;
}

/* 桌面：返回顶部仍在联系列表下方 */
@media (min-width: 769px) {
	.float-contact__actions {
		display: flex;
		flex-direction: column;
		width: 52px;
	}

	.float-contact__actions .float-contact__toggle {
		display: none;
	}

	.float-contact__actions .float-contact__item--top {
		order: 2;
		border-top: 1px solid rgba(255, 255, 255, .22);
	}
}

.float-contact__list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 52px;
	box-shadow: -4px 4px 24px rgba(0, 80, 130, .18);
}

.float-contact__item {
	position: relative;
	width: 52px;
}

.float-contact__item:hover,
.float-contact__item:focus-within {
	z-index: 2;
}

.float-contact__item + .float-contact__item {
	border-top: 1px solid rgba(255, 255, 255, .22);
}

.float-contact__link,
.float-contact__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: var(--float-blue);
	color: #fff;
	text-decoration: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background .35s ease, box-shadow .35s ease;
}

.float-contact__link--static {
	cursor: default;
}

.float-contact__item:hover .float-contact__link,
.float-contact__item:focus-within .float-contact__link,
.float-contact__item--top .float-contact__btn:hover,
.float-contact__item--top .float-contact__btn:focus-visible {
	background: var(--float-blue);
	box-shadow: -6px 0 16px rgba(29, 111, 184, .28);
}

.float-contact__icon {
	position: relative;
	z-index: 2;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--float-blue);
}

.float-contact__icon img {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.float-contact__text {
	position: absolute;
	right: 52px;
	top: 0;
	z-index: 1;
	height: 52px;
	width: 220px;
	max-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
	background: var(--float-blue);
	white-space: nowrap;
	overflow: hidden;
	text-align: center;
	font-style: normal;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0;
	color: #fff;
	pointer-events: none;
	/* 从图标左侧边缘向左展开 */
	transition:
		max-width .4s cubic-bezier(.25, .46, .45, .94),
		padding .4s cubic-bezier(.25, .46, .45, .94),
		pointer-events 0s linear .4s;
}

.float-contact__text-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	min-width: 220px;
	height: 100%;
	padding: 0 16px;
	box-sizing: border-box;
	text-align: center;
}

/* 展开后文案可接收鼠标，离开文案（而非仅图标）才收回 */
.float-contact__item:hover .float-contact__text,
.float-contact__item:focus-within .float-contact__text {
	max-width: 220px;
	pointer-events: auto;
	transition:
		max-width .4s cubic-bezier(.25, .46, .45, .94),
		padding .4s cubic-bezier(.25, .46, .45, .94),
		pointer-events 0s linear 0s;
}

/* 手机端：联系入口折叠；返回顶部 + 联系按钮默认常显 */
@media (max-width: 768px) {
	.float-contact {
		top: auto;
		bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		right: 16px;
		transform: none;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 10px;
	}

	.float-contact__actions {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 10px;
		width: auto;
		position: relative;
		z-index: 2;
	}

	.float-contact__actions .float-contact__item--top {
		border-top: none;
		width: 52px;
		border-radius: 50%;
		overflow: hidden;
		box-shadow: 0 8px 24px rgba(0, 80, 130, .28);
	}

	.float-contact__actions .float-contact__btn {
		width: 52px;
		height: 52px;
		border-radius: 50%;
	}

	.float-contact__actions .float-contact__icon {
		width: 52px;
		height: 52px;
		border-radius: 50%;
	}

	.float-contact__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		border: none;
		border-radius: 50%;
		background: var(--float-blue);
		color: #fff;
		cursor: pointer;
		box-shadow: 0 8px 24px rgba(0, 80, 130, .28);
		position: relative;
		z-index: 2;
		padding: 0;
		-webkit-tap-highlight-color: transparent;
	}

	.float-contact__toggle-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		inset: 0;
		transition: opacity .2s, transform .2s;
	}

	.float-contact__toggle-icon--close {
		opacity: 0;
		transform: rotate(-90deg) scale(.8);
	}

	.float-contact.is-open .float-contact__toggle-icon--open {
		opacity: 0;
		transform: rotate(90deg) scale(.8);
	}

	.float-contact.is-open .float-contact__toggle-icon--close {
		opacity: 1;
		transform: none;
	}

	.float-contact__list {
		position: absolute;
		right: 0;
		bottom: calc(52px + 10px + 52px + 10px);
		width: 48px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(10px);
		pointer-events: none;
		transition: opacity .25s ease, transform .25s ease, visibility .25s;
		border-radius: 8px;
		overflow: visible;
		box-shadow: -4px 4px 24px rgba(0, 80, 130, .18);
	}

	.float-contact.is-open .float-contact__list {
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}

	.float-contact__list .float-contact__item {
		width: 48px;
	}

	.float-contact__list .float-contact__link {
		width: 48px;
		height: 48px;
	}

	.float-contact__list .float-contact__icon {
		width: 48px;
		height: 48px;
	}

	.float-contact__list .float-contact__icon img {
		width: 28px;
		height: 28px;
	}

	.float-contact__text {
		right: 48px;
		height: 48px;
		width: 200px;
		font-size: 14px;
	}

	.float-contact__text-inner {
		width: 200px;
		min-width: 200px;
		padding: 0 12px;
	}

	/* 展开后面板内文案常显，方便查看微信号 */
	.float-contact.is-open .float-contact__text {
		max-width: 200px;
		pointer-events: auto;
	}
}

/* ── Inquiry CF7（首页 / 联系我们共用样式适配） ── */
#inquiry .wpcf7 {
	width: 100%;
	margin: 0;
}

#inquiry .wpcf7-form {
	margin: 0;
}

#inquiry .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

#inquiry .wpcf7-form .field input,
#inquiry .wpcf7-form .field textarea,
#inquiry .wpcf7-form .field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

#inquiry .wpcf7-form .field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px;
}

#inquiry .wpcf7-form input.wpcf7-submit.btn,
#inquiry .wpcf7-form input.btn.on-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin-top: 8px;
	font-family: var(--mono, "IBM Plex Mono", monospace);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 15px 28px;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: 0.25s ease;
	white-space: nowrap;
	box-sizing: border-box;
}

#inquiry .wpcf7-form input.wpcf7-submit.btn:hover,
#inquiry .wpcf7-form input.btn.on-dark:hover {
	background: #fff;
	color: #12161b;
}

#inquiry .wpcf7-not-valid-tip {
	color: #ffc4b8;
	font-size: 12px;
	margin-top: 6px;
}

#inquiry .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	font-size: 14px;
}

#inquiry .wpcf7 form-invalid .wpcf7-response-output,
#inquiry .wpcf7.invalid .wpcf7-response-output {
	border-color: rgba(255, 180, 160, 0.55);
}

#inquiry .wpcf7-spinner {
	margin-left: 10px;
}
