body.lhc-branded-footer-enabled .wp-site-blocks > footer:not(.lhc-branded-footer),
body.lhc-branded-footer-enabled .wp-site-blocks > .wp-block-template-part[area="footer"],
body.lhc-branded-footer-enabled #footer,
body.lhc-branded-footer-enabled #page > hr:last-of-type {
	display: none !important;
}

body.lhc-branded-footer-enabled .wp-site-blocks > .wp-block-template-part:has(footer):not(.lhc-branded-footer) {
	display: none !important;
}

.lhc-branded-footer,
.lhc-branded-footer * {
	box-sizing: border-box;
}

.lhc-branded-footer {
	--lhc-footer-blue: #1687f8;
	--lhc-footer-navy: #06244a;
	--lhc-footer-teal: #35c7bd;
	--lhc-footer-amber: #ff9635;
	--lhc-footer-muted: #617089;
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
	border-top: 1px solid rgba(22, 135, 248, 0.14);
	background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 42%, #eefaf8 100%);
	color: var(--lhc-footer-navy);
	font-family: Manrope, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
	overflow: hidden;
}

.lhc-branded-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lhc-footer-blue), var(--lhc-footer-teal) 52%, var(--lhc-footer-amber));
	opacity: 0.9;
}

.lhc-branded-footer__inner {
	width: min(100%, 1180px);
	margin-inline: auto;
	padding: 44px 20px 26px;
}

/* ---- Top: brand + tagline ---- */

.lhc-branded-footer__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding-bottom: 30px;
	border-bottom: 1px solid rgba(13, 71, 123, 0.10);
	text-align: center;
}

.lhc-branded-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lhc-branded-footer__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 8px 18px rgba(22, 135, 248, 0.22);
	padding: 6px;
}

.lhc-branded-footer__mark img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lhc-branded-footer__brand-text {
	display: grid;
	gap: 2px;
}

.lhc-branded-footer__brand-text strong {
	color: var(--lhc-footer-navy);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
}

.lhc-branded-footer__brand-text span {
	color: var(--lhc-footer-muted);
	font-size: 13px;
	line-height: 1.4;
}

.lhc-branded-footer__tagline {
	display: inline-flex;
	align-items: center;
	margin: 0;
	max-width: 560px;
	background: linear-gradient(90deg, var(--lhc-footer-navy) 0%, var(--lhc-footer-blue) 45%, var(--lhc-footer-teal) 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.6;
}

/* ---- Middle: link groups (horizontal, wraps + centers) ---- */

.lhc-branded-footer__groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px 40px;
	padding: 30px 0 8px;
	text-align: center;
}

.lhc-branded-footer__group {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lhc-branded-footer__group-title {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 12px;
	color: var(--lhc-footer-navy);
	font-size: 14px;
	font-weight: 750;
	letter-spacing: 0.2px;
}

.lhc-branded-footer__group-title::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: var(--lhc-group-accent, var(--lhc-footer-blue));
}

.lhc-branded-footer__group--blue { --lhc-group-accent: var(--lhc-footer-blue); }
.lhc-branded-footer__group--teal { --lhc-group-accent: var(--lhc-footer-teal); }
.lhc-branded-footer__group--amber { --lhc-group-accent: var(--lhc-footer-amber); }

.lhc-branded-footer__group ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* v1.0.186：footer 链接字号从 13.5px 收到 14px，跟同一个 footer 里的分组
   标题（.lhc-branded-footer__group-title，14px）以及首页主导航
   （.lhc-home-v2__nav a，这次也改到了 14px）对齐，让页面顶部导航和最下方
   footer 的正文字号统一成同一档，不再有零点几像素的细微差异。 */
.lhc-branded-footer__group a {
	display: inline-flex;
	align-items: center;
	color: #35496b;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.lhc-branded-footer__group a:hover,
.lhc-branded-footer__group a:focus {
	color: var(--lhc-group-accent, var(--lhc-footer-blue));
	transform: translateY(-1px);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lhc-branded-footer__group a:focus-visible {
	outline: 3px solid rgba(22, 135, 248, 0.28);
	outline-offset: 3px;
	border-radius: 3px;
}

/* ---- Bottom bar ---- */

.lhc-branded-footer__bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px 20px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(13, 71, 123, 0.10);
}

.lhc-branded-footer__bottom-spacer {
	display: block;
}

.lhc-branded-footer__copyright {
	color: var(--lhc-footer-muted);
	font-size: 12.5px;
	line-height: 1.5;
	text-align: center;
}

.lhc-branded-footer__top-link {
	display: inline-flex;
	align-items: center;
	justify-self: end;
	gap: 4px;
	color: var(--lhc-footer-blue);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}

.lhc-branded-footer__top-link:hover,
.lhc-branded-footer__top-link:focus {
	color: var(--lhc-footer-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 860px) {
	.lhc-branded-footer__tagline {
		max-width: 100%;
	}

	.lhc-branded-footer__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
	}
}

@media (max-width: 640px) {
	.lhc-branded-footer__inner {
		padding: 34px 16px 20px;
	}

	.lhc-branded-footer__top {
		padding-bottom: 24px;
	}

	.lhc-branded-footer__groups {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 24px 0 4px;
	}

	.lhc-branded-footer__bottom {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		gap: 10px;
	}

	.lhc-branded-footer__bottom-spacer {
		display: none;
	}

	.lhc-branded-footer__top-link {
		justify-self: center;
	}
}
