/**
 * heng 主题 — 手机底栏配色 + 去双重留白
 * 系统 xy_mfoot.css 同时写了 .footer-bar{margin-bottom:56px} 与 body{padding-bottom:56px}，
 * 而本主题 footer 带 footer-bar 类，会叠出大块白边。
 */
:root {
	--xy-mfoot-hover: var(--nav-primary, #0c4d89);
	--xy-mfoot-hover-bg: rgba(12, 77, 137, 0.07);
	--xy-mfoot-top-hover: linear-gradient(135deg, var(--nav-accent, #FF9E16) 0%, #e88a0a 100%);
}

/* 取消系统给 .footer-bar 的底栏占位（本主题用 body padding 即可） */
.footer-bar,
.heng-footer.footer-bar,
.heng-footer .footer-bar {
	margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
	body {
		padding-bottom: calc(var(--xy-mfoot-height, 50px) + env(safe-area-inset-bottom, 0px)) !important;
	}
	/* 右侧客服贴紧底栏上方，避免中间再空一截白 */
	.side_contact {
		bottom: calc(var(--xy-mfoot-height, 50px) + 8px) !important;
	}
}
