/**
 * 主题覆盖 — 手机底栏 mfoot（hoyanginstrument · 蓝橙）
 * 系统默认：Homes/Tpl/_common/Public/xy_mfoot.css
 */
:root {
	--xy-mfoot-bg: #ffffff;
	--xy-mfoot-border: #e6edf5;
	--xy-mfoot-color: #5a6573;
	--xy-mfoot-hover: #0656ad;
	--xy-mfoot-hover-bg: rgba(6, 86, 173, 0.08);
	--xy-mfoot-wa: #128c7e;
	--xy-mfoot-wa-bg: rgba(18, 140, 126, 0.1);
	--xy-mfoot-top-bg: #0656ad;
	--xy-mfoot-top-hover: linear-gradient(135deg, #eb7619 0%, #d96512 100%);
	--xy-mfoot-z: 1030;
	--xy-mfoot-height: 54px;
}

/* 桌面无底栏时去掉系统给 footer 的多余留白 */
.footer-bar {
	margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
	body {
		padding-bottom: 60px !important;
	}

	.mfoot_box {
		display: block !important;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--xy-mfoot-bg) !important;
		border: none !important;
		border-top: 1px solid var(--xy-mfoot-border) !important;
		box-shadow: 0 -8px 28px rgba(12, 40, 80, 0.1) !important;
		min-height: var(--xy-mfoot-height);
		z-index: var(--xy-mfoot-z);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
	.mfoot_box:before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		height: 2px;
		background: linear-gradient(90deg, #0656ad 0%, #eb7619 100%);
		pointer-events: none;
	}
	.mfoot_inner {
		display: -webkit-box;
		display: -webkit-flex;
		display: flex;
		-webkit-box-align: stretch;
		-webkit-align-items: stretch;
		align-items: stretch;
		height: var(--xy-mfoot-height);
		padding: 0 2px;
		padding-bottom: env(safe-area-inset-bottom, 0);
		box-sizing: content-box;
	}
	.mfoot_nav {
		-webkit-box-flex: 1;
		-webkit-flex: 1;
		flex: 1;
		display: -webkit-box;
		display: -webkit-flex;
		display: flex;
		-webkit-box-align: center;
		-webkit-align-items: center;
		align-items: center;
		-webkit-box-pack: center;
		-webkit-justify-content: center;
		justify-content: center;
		position: relative;
		border-right: 1px solid #eef2f7 !important;
		float: none !important;
		width: auto !important;
		background: transparent !important;
	}
	.mfoot_nav:last-child {
		border-right: none !important;
	}
	.mfoot_nav a {
		display: -webkit-box !important;
		display: -webkit-flex !important;
		display: flex !important;
		-webkit-box-orient: vertical;
		-webkit-flex-direction: column;
		flex-direction: column;
		-webkit-box-align: center;
		-webkit-align-items: center;
		align-items: center;
		-webkit-box-pack: center;
		-webkit-justify-content: center;
		justify-content: center;
		color: var(--xy-mfoot-color) !important;
		padding: 6px 2px !important;
		height: 100%;
		width: 100%;
		text-decoration: none !important;
		-webkit-tap-highlight-color: transparent;
		-webkit-transition: color 0.25s ease, background 0.25s ease;
		transition: color 0.25s ease, background 0.25s ease;
	}
	.mfoot_nav:not(.mfoot_nav_top) a:hover,
	.mfoot_nav:not(.mfoot_nav_top) a:focus,
	.mfoot_nav:not(.mfoot_nav_top) a:active {
		color: var(--xy-mfoot-hover) !important;
		background: var(--xy-mfoot-hover-bg) !important;
	}
	.mfoot_nav .fa {
		font-size: 18px !important;
		line-height: 1 !important;
		margin-bottom: 4px !important;
		color: inherit;
		-webkit-transition: -webkit-transform 0.25s ease, color 0.25s ease;
		transition: transform 0.25s ease, color 0.25s ease;
	}
	.mfoot_nav:not(.mfoot_nav_top) a:hover .fa,
	.mfoot_nav:not(.mfoot_nav_top) a:focus .fa,
	.mfoot_nav:not(.mfoot_nav_top) a:active .fa {
		-webkit-transform: translateY(-2px);
		transform: translateY(-2px);
	}
	.mfoot_label {
		font-size: 10px !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
		letter-spacing: 0.03em;
		color: inherit;
	}

	/* WhatsApp */
	.mfoot_nav:first-child a:hover,
	.mfoot_nav:first-child a:focus,
	.mfoot_nav:first-child a:active {
		color: var(--xy-mfoot-wa) !important;
		background: var(--xy-mfoot-wa-bg) !important;
	}
	.mfoot_nav:first-child a:hover .fa,
	.mfoot_nav:first-child a:focus .fa,
	.mfoot_nav:first-child a:active .fa {
		color: var(--xy-mfoot-wa) !important;
	}

	/* 置顶圆钮 */
	.mfoot_nav_top a {
		padding: 0 !important;
	}
	.mfoot_top_btn {
		display: -webkit-box !important;
		display: -webkit-flex !important;
		display: flex !important;
		-webkit-box-align: center;
		-webkit-align-items: center;
		align-items: center;
		-webkit-box-pack: center;
		-webkit-justify-content: center;
		justify-content: center;
		width: 38px !important;
		height: 38px !important;
		border-radius: 50% !important;
		background: var(--xy-mfoot-top-bg) !important;
		color: #fff !important;
		box-shadow: 0 4px 12px rgba(6, 86, 173, 0.28);
		-webkit-transition: background 0.25s ease, -webkit-transform 0.25s ease, box-shadow 0.25s ease;
		transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	}
	.mfoot_nav_top a:hover .mfoot_top_btn,
	.mfoot_nav_top a:focus .mfoot_top_btn,
	.mfoot_nav_top a:active .mfoot_top_btn {
		background: var(--xy-mfoot-top-hover) !important;
		-webkit-transform: translateY(-3px);
		transform: translateY(-3px);
		box-shadow: 0 6px 16px rgba(235, 118, 25, 0.4);
	}
	.mfoot_top_btn .fa {
		margin-bottom: 0 !important;
		font-size: 15px !important;
		color: #fff !important;
	}

	/* Inquiry 栏轻强调 */
	.mfoot_nav:last-child a .fa {
		color: #eb7619;
	}
	.mfoot_nav:last-child a:hover,
	.mfoot_nav:last-child a:focus,
	.mfoot_nav:last-child a:active {
		color: #eb7619 !important;
		background: rgba(235, 118, 25, 0.1) !important;
	}
}
