/* 手机端底部固定咨询条 */

@media (min-width: 992px) {
	.baomei-mobile-cta {
		display: none !important;
	}
}

@media (max-width: 991px) {
	body.baomei-has-mobile-cta {
		padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
	}

	.baomei-mobile-cta {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9998;
		display: flex;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border-top: 1px solid rgba(26, 35, 64, 0.1);
		box-shadow: 0 -6px 24px rgba(26, 35, 64, 0.1);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.baomei-mobile-cta-btn {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 8px 6px 10px;
		min-height: 58px;
		font-size: 11px;
		font-weight: 600;
		line-height: 1.2;
		color: #1a2340;
		text-decoration: none !important;
		border: none;
		border-right: 1px solid rgba(26, 35, 64, 0.08);
		background: #fff;
		font-family: inherit;
		cursor: pointer;
		transition: background 0.2s;
		-webkit-tap-highlight-color: transparent;
	}

	.baomei-mobile-cta-label {
		display: block;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.baomei-mobile-cta-btn:last-child {
		border-right: none;
	}

	.baomei-mobile-cta-btn i {
		font-size: 17px;
		color: var(--primary-color, #ff5e3a);
	}

	.baomei-mobile-cta-btn--primary {
		background: linear-gradient(180deg, #fff7f4 0%, #fff 100%);
		color: var(--primary-color, #ff5e3a);
	}

	.baomei-mobile-cta-btn--primary i {
		color: var(--primary-color, #ff5e3a);
	}

	.baomei-mobile-cta-btn--quote {
		background: linear-gradient(180deg, #fff7f4 0%, #fff 100%);
		color: var(--primary-color, #ff5e3a);
	}

	.baomei-mobile-cta-btn--quote i {
		color: var(--primary-color, #ff5e3a);
	}

	.baomei-mobile-cta-btn:active {
		background: #f4f6fa;
	}

	.baomei-mobile-cta-btn--top {
		color: #556;
	}

	.baomei-mobile-cta-btn--top i {
		color: #556;
	}

	/* 手机端仅用底栏，隐藏右侧浮窗，避免与「电话咨询」重复 */
	.baomei-float-contact {
		display: none !important;
	}

	/* 底栏已有「置顶」，隐藏主题右侧浮动置顶，避免重复 */
	body.baomei-has-mobile-cta #button {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
}
