/**
 * chenmeiblender — 手机底栏美化（覆盖 Homes/Tpl/_common/Public/xy_mfoot.css）
 * 五栏：WhatsApp | Phone | 置顶 | E-mail | Inquiry
 */
:root {
	--xy-mfoot-bg: #fff;
	--xy-mfoot-border: rgba(0, 0, 0, 0.07);
	--xy-mfoot-color: #666;
	--xy-mfoot-hover: var(--xy-skin-primary, #602518);
	--xy-mfoot-hover-bg: rgba(96, 37, 24, 0.1);
	--xy-mfoot-wa: #128c7e;
	--xy-mfoot-wa-bg: rgba(18, 140, 126, 0.1);
	--xy-mfoot-top-bg: linear-gradient(135deg, var(--xy-skin-primary, #602518) 0%, var(--xy-skin-accent, #4a1c12) 100%);
	--xy-mfoot-top-hover: linear-gradient(135deg, var(--xy-skin-primary-2, #7a3326) 0%, var(--xy-skin-primary, #602518) 100%);
	--xy-mfoot-height: 58px;
	--xy-mfoot-z: 1030;
}

/* 页脚留白：避免 margin-bottom 叠出白缝 */
.footer-bar {
	margin-bottom: 0 !important;
}

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

	.web_footer.footer-bar,
	footer.web_footer.footer-bar {
		margin-bottom: 0 !important;
		padding-bottom: calc(var(--xy-mfoot-height, 58px) + 8px + env(safe-area-inset-bottom, 0px)) !important;
	}

	.mfoot_box {
		background: var(--xy-mfoot-bg);
		border-top: none;
		box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
		padding-bottom: env(safe-area-inset-bottom, 0px);
		min-height: calc(var(--xy-mfoot-height) + env(safe-area-inset-bottom, 0px));
		-webkit-backdrop-filter: saturate(180%) blur(12px);
		backdrop-filter: saturate(180%) blur(12px);
	}

	.mfoot_inner {
		height: var(--xy-mfoot-height);
		padding: 0 2px;
	}

	.mfoot_nav {
		border-right: none;
	}

	.mfoot_nav:not(.mfoot_nav_top):not(:last-child)::after {
		content: "";
		position: absolute;
		right: 0;
		top: 20%;
		height: 60%;
		width: 1px;
		background: var(--xy-mfoot-border);
		pointer-events: none;
	}

	.mfoot_nav a {
		color: var(--xy-mfoot-color);
		padding: 7px 2px 5px;
		gap: 3px;
	}

	.mfoot_box.navbar-default .mfoot_nav a {
		color: var(--xy-mfoot-color);
		background: transparent;
	}

	.mfoot_nav .fa,
	.mfoot_nav .xy-iconfont {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		font-size: 15px;
		line-height: 1;
		margin-bottom: 0;
		background: rgba(0, 0, 0, 0.045);
		transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
	}

	.mfoot_label {
		font-size: 10px;
		font-weight: 600;
		line-height: 1.15;
		color: #888;
		letter-spacing: 0.02em;
	}

	/* WhatsApp：常驻品牌绿 */
	.mfoot_nav:first-child .fa {
		color: var(--xy-mfoot-wa);
		background: var(--xy-mfoot-wa-bg);
	}

	.mfoot_nav:not(.mfoot_nav_top) a:hover,
	.mfoot_nav:not(.mfoot_nav_top) a:focus,
	.mfoot_nav:not(.mfoot_nav_top) a:active,
	.mfoot_box.navbar-default .mfoot_nav:not(.mfoot_nav_top) a:hover,
	.mfoot_box.navbar-default .mfoot_nav:not(.mfoot_nav_top) a:focus,
	.mfoot_box.navbar-default .mfoot_nav:not(.mfoot_nav_top) a:active {
		color: var(--xy-mfoot-hover);
		background: transparent;
		text-decoration: none;
	}

	.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,
	.mfoot_nav:not(.mfoot_nav_top) a:hover .xy-iconfont,
	.mfoot_nav:not(.mfoot_nav_top) a:focus .xy-iconfont,
	.mfoot_nav:not(.mfoot_nav_top) a:active .xy-iconfont {
		background: var(--xy-mfoot-hover-bg);
		color: var(--xy-mfoot-hover);
		transform: translateY(-2px);
	}

	.mfoot_nav:first-child a:hover,
	.mfoot_nav:first-child a:focus,
	.mfoot_nav:first-child a:active,
	.mfoot_box.navbar-default .mfoot_nav:first-child a:hover,
	.mfoot_box.navbar-default .mfoot_nav:first-child a:focus,
	.mfoot_box.navbar-default .mfoot_nav:first-child a:active {
		color: var(--xy-mfoot-wa);
		background: transparent;
	}

	.mfoot_nav:first-child a:hover .fa,
	.mfoot_nav:first-child a:focus .fa,
	.mfoot_nav:first-child a:active .fa {
		background: rgba(18, 140, 126, 0.18);
		color: var(--xy-mfoot-wa);
	}

	/* 居中置顶：上浮圆形品牌按钮 */
	.mfoot_nav_top {
		position: relative;
		z-index: 2;
	}

	.mfoot_nav_top a {
		padding: 0;
		position: relative;
		top: -14px;
	}

	.mfoot_top_btn {
		width: 46px;
		height: 46px;
		border-radius: 50%;
		background: var(--xy-mfoot-top-bg);
		color: #fff;
		border: 3px solid #fff;
		box-shadow: 0 4px 16px rgba(96, 37, 24, 0.38);
		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);
		transform: translateY(-3px);
		box-shadow: 0 6px 20px rgba(96, 37, 24, 0.45);
	}

	.mfoot_top_btn .fa,
	.mfoot_top_btn .xy-iconfont {
		width: auto;
		height: auto;
		margin-bottom: 0;
		font-size: 16px;
		color: #fff;
		background: transparent;
	}
}
