/* 手机端官网分享：右侧吸附标签 + 底部分享菜单 + 微信右上角引导 */
.mayer-header-actions,
.mayer-site-share-rail,
.mayer-site-share-rail-tip { display: none; }

.mayer-site-share[hidden],
.mayer-site-share-wx[hidden] { display: none !important; }

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
	.mayer-header-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		flex: 0 0 auto;
		margin-left: auto;
	}

	/* 与电子名片一致的右侧竖排吸附标签 */
	.mayer-site-share-rail {
		display: flex !important;
		position: fixed;
		top: auto;
		bottom: calc(150px + env(safe-area-inset-bottom, 0px));
		right: 0;
		z-index: 1100;
		flex-direction: column;
		align-items: center;
		gap: 7px;
		width: 44px;
		padding: 11px 0 13px;
		border: 0;
		border-radius: 14px 0 0 14px;
		background: linear-gradient(160deg, #0a4fa8 0%, #053C8C 100%);
		box-shadow: -7px 12px 30px rgba(5, 60, 140, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
		color: #fff;
		font: inherit;
		cursor: pointer;
		transform: none;
		transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
		-webkit-tap-highlight-color: transparent;
	}

	.mayer-site-share-rail:hover {
		transform: translateX(-3px);
		box-shadow: -9px 14px 34px rgba(5, 60, 140, .34), inset 0 1px 0 rgba(255, 255, 255, .24);
	}

	.mayer-site-share-rail:active {
		transform: translateX(-1px) scale(.97);
	}

	.mayer-site-share-rail-ico {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		border-radius: 50%;
		background: rgba(255, 255, 255, .14);
	}

	.mayer-site-share-rail-ico::after {
		content: "";
		position: absolute;
		inset: -4px;
		border: 1px solid rgba(255, 255, 255, .22);
		border-radius: 50%;
		animation: mayer-site-share-pulse 2.6s ease-out 2 both;
	}

	.mayer-site-share-rail-ico svg {
		width: 14px;
		height: 14px;
		color: #fff;
	}

	.mayer-site-share-rail-text {
		writing-mode: vertical-rl;
		color: rgba(255, 255, 255, .92);
		font-size: 11px;
		font-weight: 500;
		letter-spacing: 2px;
		line-height: 1;
	}

	.mayer-site-share-rail-tip {
		display: block;
		position: fixed;
		top: auto;
		bottom: calc(168px + env(safe-area-inset-bottom, 0px));
		right: 56px;
		z-index: 1099;
		max-width: 190px;
		padding: 10px 12px;
		border: 1px solid #e3edf6;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 12px 30px rgba(11, 45, 78, .14);
		color: #31526f;
		font-size: 12px;
		line-height: 1.45;
		opacity: 0;
		pointer-events: none;
		transform: translateX(8px);
		transition: opacity .2s ease, transform .2s ease;
	}

	.mayer-site-share-rail-tip::after {
		content: "";
		position: absolute;
		top: 50%;
		right: -5px;
		width: 8px;
		height: 8px;
		border-top: 1px solid #e3edf6;
		border-right: 1px solid #e3edf6;
		background: #fff;
		transform: translateY(-50%) rotate(45deg);
	}

	.mayer-site-share-rail-tip.is-on {
		opacity: 1;
		transform: translateX(0);
	}

	@media (max-width: 450px) {
		.mayer-site-share-rail {
			width: 44px;
			padding: 11px 0 13px;
			border-radius: 14px 0 0 14px;
		}

		.mayer-site-share-rail-tip {
			right: 54px;
			max-width: 160px;
			font-size: 11px;
		}
	}
}

body.mayer-site-share-open .mayer-site-share-rail {
	opacity: 0;
	pointer-events: none;
}

@keyframes mayer-site-share-pulse {
	0% { transform: scale(.75); opacity: .7; }
	70% { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}

body.mayer-site-share-open { overflow: hidden; }

.mayer-site-share {
	position: fixed;
	inset: 0;
	z-index: 20000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, visibility .22s ease;
}

.mayer-site-share.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.mayer-site-share-mask {
	position: absolute;
	inset: 0;
	background: rgba(6, 24, 43, .56);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.mayer-site-share-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	border-radius: 20px 20px 0 0;
	background: #fff;
	box-shadow: 0 -18px 44px rgba(6, 24, 43, .22);
	transform: translateY(18px);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.mayer-site-share.is-on .mayer-site-share-panel { transform: translateY(0); }
.mayer-site-share-grip {
	display: block;
	width: 38px;
	height: 4px;
	margin: 0 auto 12px;
	border-radius: 4px;
	background: #d9e4ef;
}
.mayer-site-share-panel h2 {
	margin: 0 0 4px;
	color: #0f3558;
	font-size: 17px;
	line-height: 1.3;
}
.mayer-site-share-panel > p {
	margin: 0 0 14px;
	color: #7890a5;
	font-size: 12px;
	line-height: 1.55;
}
.mayer-site-share-list { display: grid; gap: 8px; }
.mayer-site-share-item {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 12px 12px;
	border: 1px solid #e7eef5;
	border-radius: 13px;
	background: #f8fbfe;
	color: #173b5d;
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.mayer-site-share-item:active { background: #eef6fc; }
.mayer-site-share-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 10px;
	background: #e8f1fa;
	color: #0d3a66;
	font-size: 16px;
}
.mayer-site-share-ico.is-wx { background: #e8f8ea; color: #1a9c3c; }
.mayer-site-share-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mayer-site-share-copy strong { font-size: 14px; font-weight: 600; }
.mayer-site-share-copy em { color: #8398ab; font-size: 11px; font-style: normal; }
.mayer-site-share-arrow { margin-left: auto; color: #9aafc2; font-size: 18px; }
.mayer-site-share-cancel {
	width: 100%;
	margin-top: 10px;
	padding: 12px;
	border: 0;
	border-radius: 12px;
	background: #f2f7fc;
	color: #58748f;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.mayer-site-share-toast {
	position: fixed;
	left: 50%;
	bottom: calc(84px + env(safe-area-inset-bottom, 0px));
	z-index: 21000;
	max-width: calc(100vw - 48px);
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(10, 30, 50, .9);
	color: #fff;
	font-size: 12.5px;
	line-height: 1.45;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}
.mayer-site-share-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.mayer-site-share-wx {
	position: fixed;
	inset: 0;
	z-index: 20500;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	padding: calc(66px + env(safe-area-inset-top, 0px)) 14px 0;
	background: rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, visibility .22s ease;
}
.mayer-site-share-wx.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.mayer-site-share-wx-panel {
	position: relative;
	width: min(300px, calc(100vw - 28px));
	padding: 15px 16px 13px;
	border: 1px solid rgba(13, 58, 102, .12);
	border-top: 4px solid #0d3a66;
	border-radius: 12px;
	background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
	text-align: right;
}
.mayer-site-share-wx-arrow {
	position: absolute;
	top: -28px;
	right: 8px;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.mayer-site-share-wx-panel h3 { margin: 0 0 5px; color: #173b5d; font-size: 15px; }
.mayer-site-share-wx-panel p { margin: 0 0 10px; color: #6e8398; font-size: 12px; line-height: 1.6; text-align: left; }
.mayer-site-share-wx-panel p strong { color: #0d3a66; }
.mayer-site-share-wx-panel button {
	padding: 7px 12px;
	border: 0;
	border-radius: 8px;
	background: #0d3a66;
	color: #fff;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

/* 7.9.195：电脑/手机/朋友圈分场景文案 */
.mayer-site-share-copy em { line-height: 1.45; }
.mayer-site-share-wx-panel .mayer-site-share-wx-note { margin: -2px 0 10px; color: #9a6a35; font-size: 11.5px; line-height: 1.55; }

/* 7.9.198：官网分享面板与名片页完全同一套视觉（品牌头 + 人物卡 + 双列渠道） */
#mayer-site-share .mayer-site-share-panel {
	max-width: 460px;
	padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
	border-radius: 26px 26px 0 0;
	background: radial-gradient(520px 180px at 100% 0%, rgba(19,91,156,.10), transparent 70%), linear-gradient(180deg, #fff 0%, #f7fbff 100%);
	box-shadow: 0 -18px 60px rgba(2,20,38,.28);
	opacity: 0;
	transform: translateY(30px);
	transition: transform .32s cubic-bezier(.22,.8,.28,1), opacity .22s ease;
}
#mayer-site-share.is-on .mayer-site-share-panel { opacity: 1; transform: translateY(0); }
#mayer-site-share .mayer-site-share-grip { width: 42px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: #cfdded; }
#mayer-site-share .mc-sheet-head { display: flex; align-items: center; gap: 11px; }
#mayer-site-share .mc-sheet-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #0a2f5c, #1769b0); box-shadow: 0 8px 18px rgba(11,45,85,.22); }
#mayer-site-share .mc-sheet-logo svg { width: 20px; height: 20px; color: #fff; }
#mayer-site-share .mc-sheet-headtext { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
#mayer-site-share .mc-sheet-eyebrow { color: #7f96ad; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.4; }
#mayer-site-share .mc-sheet-panel h2,
#mayer-site-share .mc-sheet-headtext h2 { margin: 0; color: #12395f; font-size: 19px; font-weight: 650; line-height: 1.3; text-align: left; }
#mayer-site-share .mc-sheet-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #eef5fc; color: #5f7891; font-size: 18px; line-height: 1; }
#mayer-site-share .mc-sheet-hint { margin: 7px 0 8px; color: #7f96ad; font-size: 12px; line-height: 1.55; text-align: left; }
#mayer-site-share .mc-sheet-wx-tip { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; padding: 8px 10px; border-left: 3px solid #0f4c81; border-radius: 0 10px 10px 0; background: #eff7ff; color: #45627d; font-size: 11px; line-height: 1.5; text-align: left; }
#mayer-site-share .mc-sheet-wx-tip strong { color: #0f4c81; font-size: 13px; letter-spacing: 2px; }
#mayer-site-share .mc-sheet-person { display: flex; align-items: center; gap: 11px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid rgba(19,91,156,.12); border-radius: 16px; background: linear-gradient(135deg, #edf5ff 0%, #f9fcff 72%); }
#mayer-site-share .mc-sheet-person-empty { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #dbeaf9; color: #1769b0; font-size: 17px; font-weight: 700; }
#mayer-site-share .mc-sheet-person > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
#mayer-site-share .mc-sheet-person strong { overflow: hidden; color: #12395f; font-size: 15px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
#mayer-site-share .mc-sheet-person em { overflow: hidden; color: #7189a1; font-size: 11px; font-style: normal; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
#mayer-site-share .mc-sheet-badge { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: rgba(19,91,156,.09); color: #1769b0; font-size: 9px; font-weight: 600; letter-spacing: .4px; }
#mayer-site-share .mc-sheet-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#mayer-site-share .mc-sheet-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px; border: 1px solid #e1ecf8; border-radius: 16px; background: #fff; color: #2b4b6b; text-align: left; box-shadow: 0 3px 10px rgba(11,45,85,.04); }
#mayer-site-share .mc-sheet-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #eaf2fb; color: #205b92; font-size: 16px; }
#mayer-site-share .mc-sheet-ico.is-wx { background: #e7f8ee; color: #07a854; }
#mayer-site-share .mc-sheet-ico.is-moments { background: #fff2e4; color: #e07b32; }
#mayer-site-share .mc-sheet-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
#mayer-site-share .mc-sheet-copy strong { overflow: hidden; color: #173a5c; font-size: 13px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
#mayer-site-share .mc-sheet-copy em { overflow: hidden; color: #8aa0b5; font-size: 10px; font-style: normal; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
#mayer-site-share .mc-sheet-cancel { width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid #e1ecf8; border-radius: 15px; background: #fff; color: #58748f; font-size: 13px; font-weight: 500; }
@media (min-width: 600px) {
	#mayer-site-share { align-items: center; }
	#mayer-site-share .mayer-site-share-panel { width: calc(100% - 40px); border-radius: 26px; margin-bottom: 24px; box-shadow: 0 28px 80px rgba(2,20,38,.34); }
}

/* 微信引导：改成和名片页一样的底部品牌卡片，不再贴在右上角 */
.mayer-site-share-wx-mask { position: absolute; inset: 0; background: rgba(6,24,43,.62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
#mayer-site-share-wx { align-items: flex-end; justify-content: center; padding: 0; background: transparent; }
#mayer-site-share-wx .mayer-site-share-wx-panel { width: calc(100% - 32px); max-width: 420px; margin: 0 16px max(18px, env(safe-area-inset-bottom, 0px)); padding: 22px 18px 16px; border: 1px solid rgba(15,76,129,.12); border-top: 4px solid #0f4c81; border-radius: 22px; background: linear-gradient(180deg, #fff 0%, #f7fbff 100%); box-shadow: 0 24px 70px rgba(2,20,38,.32); text-align: left; transform: translateY(22px) scale(.98); opacity: 0; transition: transform .32s cubic-bezier(.22,.8,.28,1), opacity .25s ease; }
#mayer-site-share-wx.is-on .mayer-site-share-wx-panel { transform: translateY(0) scale(1); opacity: 1; }
#mayer-site-share-wx .mayer-site-share-wx-arrow { top: -30px; right: 8px; font-size: 30px; color: rgba(255,255,255,.92); }
#mayer-site-share-wx .mayer-site-share-wx-panel h3 { margin: 0 0 6px; color: #153a5e; font-size: 19px; }
#mayer-site-share-wx .mayer-site-share-wx-panel p { margin: 0 0 8px; color: #6d8299; font-size: 12px; line-height: 1.6; }
#mayer-site-share-wx #mayer-site-share-wx-steps { margin: 12px 0 0; padding: 11px 12px; border-radius: 14px; background: #f4f9ff; color: #153a5e; font-size: 13px; line-height: 1.75; }
#mayer-site-share-wx .mayer-site-share-wx-note { color: #9a6a35; font-size: 11px; }
#mayer-site-share-wx .mayer-site-share-wx-panel button { display: block; width: 100%; min-height: 42px; margin-top: 10px; border: 1px solid #0f4c81; border-radius: 13px; background: #0f4c81; color: #fff; font-size: 13px; line-height: 42px; }

/* 手机菜单展开时隐藏右侧吸附分享条，避免和遮罩层叠在一起 */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
	.mayer-menu-open .mayer-site-share-rail {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-50%) translateX(12px);
	}
}

/* 分享条启用时，正文卡片预留右侧安全区，避免被吸附标签压住 */
@media (max-width: 900px) {
	.mayer-has-share-rail .mayer-ib-inner,
	.mayer-has-share-rail .mayer-tl,
	.mayer-has-share-rail .mayer-qualify-inner,
	.mayer-has-share-rail .mayer-team-row,
	.mayer-has-share-rail .mayer-vendor-stage,
	.mayer-has-share-rail .mayer-footer-top,
	.mayer-has-share-rail .mayer-footer-bottom {
		padding-right: 44px;
	}
}
