/* 智袋宝金融贷款 APP 下载落地页（含微信引导层样式） */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	height: 100%;
	font-size: 16px;
}

:root {
	--sf-red: #e60012;
	--sf-red-light: #ff2d3d;
	--sf-red-dark: #b8000e;
	--sf-red-soft: rgba(230, 0, 18, 0.08);
	--sf-red-glow: rgba(230, 0, 18, 0.14);
	--sf-black: #0a0a0a;
	--sf-gray-900: #1a1a1a;
	--sf-gray-600: #525252;
	--sf-gray-500: #737373;
	--sf-gray-400: #a3a3a3;
	--sf-gray-100: #f4f4f5;
	--sf-gray-50: #fafafa;
	--sf-border: rgba(0, 0, 0, 0.06);
	--sf-radius-lg: 22px;
	--sf-radius-md: 14px;
	--sf-shadow-card: 0 8px 28px rgba(180, 20, 40, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	--sf-shadow-btn: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.sf-body {
	margin: 0;
	min-height: 100%;
	min-height: 100dvh;
	font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(230, 0, 18, 0.16) 0%, transparent 58%),
		radial-gradient(ellipse 70% 45% at 80% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
		radial-gradient(ellipse 60% 40% at 10% 85%, rgba(230, 0, 18, 0.07) 0%, transparent 50%),
		linear-gradient(180deg, #fff5f6 0%, #ffffff 42%, #f7f8fc 100%);
	background-attachment: fixed;
	color: var(--sf-gray-900);
	-webkit-font-smoothing: antialiased;
}

.sf-landing {
	position: relative;
	width: 100%;
	max-width: 440px;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding:
		max(20px, env(safe-area-inset-top, 0px))
		clamp(16px, 4vw, 24px)
		max(24px, env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 18px;
	box-sizing: border-box;
}

.sf-card {
	position: relative;
	width: 100%;
	background: rgba(255, 255, 255, 0.96);
	border-radius: var(--sf-radius-lg);
	box-shadow: var(--sf-shadow-card);
	border: 1px solid rgba(230, 0, 18, 0.08);
	border-top: 3px solid var(--sf-red);
	padding: clamp(32px, 7vw, 48px) clamp(20px, 5vw, 36px) clamp(28px, 6vw, 40px);
	overflow: hidden;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: sf-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sf-card-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.sf-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 220px;
	background: radial-gradient(ellipse 90% 70% at 50% -20%, var(--sf-red-glow) 0%, transparent 72%);
	pointer-events: none;
}

.sf-landing__foot {
	margin: 0;
	text-align: center;
	font-size: 12px;
	color: var(--sf-gray-400);
	letter-spacing: 0.14em;
	animation: sf-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.sf-hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sf-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sf-logo-ring {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: auto;
	height: auto;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.sf-logo-ring img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(120px, 34vw);
	max-height: 120px;
	object-fit: contain;
	border-radius: 22px;
	box-shadow: 0 8px 24px rgba(230, 0, 18, 0.18);
}

.sf-brand-name {
	margin-top: 18px;
	font-size: 22px;
	font-weight: 700;
	color: var(--sf-black);
	letter-spacing: 0.12em;
}

.sf-tagline {
	margin: 10px 0 0;
	padding: 4px 12px;
	font-size: 12px;
	color: var(--sf-red);
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0.06em;
	background: var(--sf-red-soft);
	border-radius: 999px;
	border: 1px solid rgba(230, 0, 18, 0.16);
}

.sf-pitch {
	width: 100%;
	margin-top: 22px;
}

.sf-title {
	margin: 0;
	font-size: clamp(22px, 5.2vw, 28px);
	font-weight: 700;
	color: var(--sf-black);
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.sf-desc {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--sf-gray-600);
	line-height: 1.75;
	max-width: 100%;
	text-align: center;
}

.sf-stats {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.sf-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 14px 8px;
	background: linear-gradient(180deg, #fff5f6 0%, #ffffff 100%);
	border: 1px solid rgba(230, 0, 18, 0.12);
	border-radius: 14px;
}

.sf-stat__val {
	font-size: clamp(22px, 5vw, 26px);
	font-weight: 800;
	color: var(--sf-red);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.sf-stat__val small {
	margin-left: 1px;
	font-size: 0.52em;
	font-weight: 700;
}

.sf-stat__lbl {
	font-size: 11px;
	color: var(--sf-gray-500);
	font-weight: 500;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.sf-download {
	position: relative;
	z-index: 1;
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid rgba(230, 0, 18, 0.1);
	width: 100%;
}

.sf-download__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 18px;
}

.sf-download__mark {
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: var(--sf-red);
	flex-shrink: 0;
}

.sf-cta-head {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--sf-black);
	letter-spacing: 0.2em;
}

.sf-btn-row {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	max-width: 100%;
}

.sf-btn {
	position: relative;
	isolation: isolate;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	max-width: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 18px;
	border-radius: 14px;
	text-decoration: none;
	color: #fff;
	text-align: center;
	cursor: pointer;
	border: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	transition:
		transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1),
		box-shadow 0.35s ease,
		filter 0.25s ease;
	min-height: 76px;
}

/* 悬停高光扫过（不影响点击与二维码层） */
.sf-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(
		105deg,
		transparent 0%,
		transparent 38%,
		rgba(255, 255, 255, 0.22) 50%,
		transparent 62%,
		transparent 100%
	);
	background-size: 220% 100%;
	background-position: 130% 0;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.25s ease;
}

.sf-btn:hover {
	text-decoration: none;
	color: #fff;
	filter: brightness(1.04);
}

.sf-btn:hover::before {
	opacity: 1;
	animation: sf-btn-shine 0.9s ease-out 1 both;
}

@keyframes sf-btn-shine {
	from {
		background-position: 130% 0;
	}
	to {
		background-position: -130% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sf-btn::before {
		display: none;
	}

	.sf-btn {
		transition-duration: 0.15s;
	}

	.sf-btn:hover .sf-btn__icon {
		transform: none;
	}

	.sf-btn--android:hover,
	.sf-btn--ios:hover {
		transform: translateY(-1px);
	}
}

.sf-btn:active {
	transform: scale(0.985) !important;
}

.sf-btn:active::before {
	animation: none;
	opacity: 0.35;
}

.sf-btn:focus-visible {
	outline: 2px solid rgba(230, 0, 18, 0.45);
	outline-offset: 3px;
}

.sf-btn--android {
	background: linear-gradient(135deg, var(--sf-red-light) 0%, var(--sf-red) 100%);
	box-shadow: 0 4px 14px rgba(230, 0, 18, 0.28);
}

.sf-btn--ios {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.sf-btn--android:hover,
.sf-btn--ios:hover {
	transform: translateY(-4px) scale(1.03);
}

.sf-btn--android:hover {
	box-shadow: 0 6px 18px rgba(230, 0, 18, 0.36);
}

.sf-btn--ios:hover {
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.sf-btn__main {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.sf-btn__icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.sf-btn:hover .sf-btn__icon {
	transform: scale(1.08);
}

.sf-btn__icon svg {
	display: block;
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.sf-btn__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 0;
	text-align: center;
}

.sf-btn__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.sf-btn__sub {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
}

/* 二维码：手机端不展示；仅桌面（宽屏 + 可悬停精细指针）在鼠标移入按钮时上方弹层显示 */
.sf-btn__qrpop {
	display: none;
}

.sf-btn__qrpop-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	line-height: 0;
}

.sf-btn__qrpop-cap {
	display: none;
	font-size: 11px;
	color: #6b7280;
	line-height: 1.3;
	text-align: center;
}

.sf-btn__qr {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 8px;
	padding: 2px;
	line-height: 0;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sf-btn__qr img,
.sf-btn__qr canvas {
	display: block !important;
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	max-height: 56px !important;
	border-radius: 4px;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
	.sf-btn__qrpop {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 0;
		overflow: visible;
	}

	.sf-btn__qrpop-inner {
		position: absolute;
		right: 0;
		/* 与按钮上缘略重叠，避免鼠标移入弹层时离开 <a> 导致闪退 */
		bottom: calc(100% - 20px);
		padding: 12px 14px 10px;
		background: #ffffff;
		border-radius: 12px;
		box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
		border: 1px solid rgba(0, 0, 0, 0.06);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition:
			opacity 0.2s ease,
			visibility 0.2s ease,
			transform 0.2s ease;
		z-index: 50;
		pointer-events: none;
	}

	.sf-btn:hover .sf-btn__qrpop-inner,
	.sf-btn:focus-visible .sf-btn__qrpop-inner {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.sf-btn__qrpop-cap {
		display: block;
		margin-top: 8px;
		font-size: 12px;
		color: #4b5563;
		white-space: nowrap;
	}

	.sf-btn__qr {
		width: 124px;
		height: 124px;
		padding: 4px;
		box-shadow: none;
		border: 1px solid #e5e7eb;
	}

	.sf-btn__qr img,
	.sf-btn__qr canvas {
		width: 116px !important;
		height: 116px !important;
		max-width: 116px !important;
		max-height: 116px !important;
	}
}

body.sf-ios-modal-open {
	overflow: hidden;
	touch-action: none;
}

/* iOS：点击「iOS 下载」后全屏图文说明，再开始下载 */
.ios-install-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding: 0;
	font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media (min-width: 480px) {
	.ios-install-modal {
		justify-content: center;
		padding: 16px;
	}
}

.ios-install-modal__mask {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.52);
}

.ios-install-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 440px;
	max-height: min(92vh, 760px);
	margin: 0;
	background: #ffffff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.18);
	border-top: 3px solid var(--sf-red);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 480px) {
	.ios-install-modal__panel {
		border-radius: var(--sf-radius-lg);
		max-height: min(90vh, 720px);
	}
}

.ios-install-modal__close {
	position: absolute;
	top: max(8px, env(safe-area-inset-top));
	right: 10px;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	font-size: 26px;
	line-height: 44px;
	color: #6b7280;
	cursor: pointer;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ios-install-modal__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 48px 18px 8px;
	text-align: left;
}

.ios-install-modal__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 12px;
}

.ios-install-modal__mark {
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: var(--sf-red);
	flex-shrink: 0;
}

.ios-install-modal__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--sf-black);
	letter-spacing: 0.08em;
}

.ios-install-modal__lead {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--sf-gray-600);
	line-height: 1.65;
}

.ios-install-modal__steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ios-install-step {
	padding: 14px 14px 12px;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
	border: 1px solid var(--sf-border);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ios-install-step__ttl {
	margin: 0 0 8px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--sf-black);
	line-height: 1.35;
}

.ios-install-step__num {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sf-red);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ios-install-step__txt {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--sf-gray-600);
	line-height: 1.65;
}

.ios-install-step__figure {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8e8ed;
	line-height: 0;
}

.ios-install-step__svg {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.ios-install-modal__tip {
	margin: 16px 0 0;
	padding: 12px 12px 12px 14px;
	font-size: 13px;
	color: var(--sf-gray-600);
	line-height: 1.55;
	background: var(--sf-gray-50);
	border-radius: 10px;
	border-left: 3px solid var(--sf-red);
}

.ios-install-modal__tip strong {
	color: var(--sf-gray-900);
}

.ios-install-modal__actions {
	flex-shrink: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 16px 18px;
	padding-bottom: max(18px, env(safe-area-inset-bottom));
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: #fff;
}

.ios-install-modal__actions--single .ios-install-modal__btn {
	flex: 1 1 100%;
	max-width: 100%;
}

.ios-install-modal__btn {
	flex: 1 1 140px;
	min-width: 0;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	border: none;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		filter 0.15s ease;
}

.ios-install-modal__btn:active {
	transform: scale(0.98);
}

.ios-install-modal__btn--primary {
	background: linear-gradient(135deg, var(--sf-red) 0%, var(--sf-red-dark) 100%);
	color: #fff;
	box-shadow: 0 6px 18px rgba(230, 0, 18, 0.28);
}

.ios-install-modal__btn--ghost {
	background: #f4f4f5;
	color: var(--sf-gray-900);
	border: 1px solid #e5e5ea;
}

.sf-shuoming {
	position: relative;
	z-index: 1;
	margin-top: 20px;
	min-height: 0;
	font-size: 12px;
	color: var(--sf-gray-400);
	line-height: 1.5;
	text-align: center;
}

.sf-download-toast {
	position: fixed;
	left: 50%;
	bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
	z-index: 10001;
	max-width: min(320px, calc(100vw - 32px));
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(26, 26, 26, 0.92);
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition:
		opacity 0.22s ease,
		visibility 0.22s ease,
		transform 0.22s ease;
	pointer-events: none;
}

.sf-download-toast--visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.sf-advantages {
	position: relative;
	z-index: 1;
	width: 100%;
	margin-top: 28px;
	padding: 26px 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sf-advantages__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
}

.sf-advantages__mark {
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: var(--sf-red);
	flex-shrink: 0;
}

.sf-advantages__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--sf-black);
	text-align: center;
	letter-spacing: 0.12em;
}

.sf-advantages__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.sf-advantages__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 14px 13px;
	background: linear-gradient(160deg, #fff7f8 0%, #ffffff 100%);
	border: 1px solid rgba(230, 0, 18, 0.1);
	border-radius: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-advantages__ico {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sf-red);
	background: var(--sf-red-soft);
	border-radius: 10px;
}

.sf-advantages__ico svg {
	display: block;
	width: 22px;
	height: 22px;
}

.sf-advantages__body {
	min-width: 0;
}

.sf-advantages__name {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--sf-gray-900);
	line-height: 1.35;
}

.sf-advantages__desc {
	margin: 5px 0 0;
	font-size: 12px;
	color: var(--sf-gray-500);
	line-height: 1.55;
}

.sf-advantages__foot {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px dashed rgba(230, 0, 18, 0.16);
	font-size: 12px;
	color: var(--sf-gray-400);
	text-align: center;
	letter-spacing: 0.08em;
}

@media (min-width: 520px) {
	.sf-btn-row {
		flex-direction: row;
		justify-content: center;
		flex-wrap: nowrap;
	}

	.sf-btn {
		flex: 1 1 0;
		max-width: none;
	}
}

@media (max-width: 400px) {
	.sf-title {
		font-size: 21px;
	}

	.sf-stats {
		gap: 8px;
	}

	.sf-stat {
		padding: 12px 6px;
	}

	.sf-stat__val {
		font-size: 20px;
	}

	.sf-stat__lbl {
		font-size: 10px;
	}

	.sf-advantages__grid {
		grid-template-columns: 1fr;
	}

	.sf-advantages {
		padding-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sf-card,
	.sf-landing__foot {
		animation: none;
	}
}

/* —— 微信 / QQ 内置浏览器：全屏指引（中文 · iOS / Android 区分）—— */
.wx-guide {
	position: fixed;
	inset: 0;
	z-index: 10000;
	font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.wx-guide__mask {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.wx-guide__panel {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	right: max(12px, env(safe-area-inset-right));
	width: min(320px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
	max-width: calc(100vw - 24px);
	padding: 18px 18px 16px;
	background: #ffffff;
	border-radius: 14px;
	border-top: 3px solid var(--sf-red, #e60012);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	color: #1a1a1a;
	text-align: left;
	z-index: 1;
}

.wx-guide__corner-arrow {
	position: absolute;
	top: -6px;
	right: 18px;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 12px solid #fff;
	filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.08));
}

.wx-guide__hint-top {
	margin: 0 0 6px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.4;
}

.wx-guide__menu-badge {
	margin: 0 0 12px;
	text-align: right;
}

.wx-guide__dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 4px 12px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #333;
	background: #f3f4f6;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.wx-guide__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #111;
	line-height: 1.35;
}

.wx-guide__lead {
	margin: 0 0 12px;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.55;
}

.wx-guide__tip {
	margin: 0 0 12px;
	padding: 10px 12px;
	font-size: 12px;
	color: #374151;
	line-height: 1.55;
	background: #f9fafb;
	border-radius: 10px;
	border-left: 3px solid var(--sf-red, #e60012);
}

.wx-guide__tip strong {
	color: #111;
	font-weight: 700;
}

.wx-guide__steps {
	margin: 0;
	padding-left: 1.15em;
	font-size: 14px;
	color: #374151;
	line-height: 1.65;
}

.wx-guide__steps li {
	margin-bottom: 8px;
}

.wx-guide__steps li:last-child {
	margin-bottom: 0;
}

.wx-guide__foot {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #f3f4f6;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.wx-guide__foot--android {
	border-top-color: #eef2f7;
}

.wx-guide__safari-ico {
	flex-shrink: 0;
	display: block;
}

.wx-guide__foot-txt {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.45;
}

.wx-guide--android .wx-guide__title {
	color: #0f172a;
}

.wx-guide--ios .wx-guide__title {
	color: #0f172a;
}

/*
 * 内置浏览器指引层：统一用 .wx-guide--hidden 切换显隐。
 * 勿用 jQuery .show()（会写成 display:block，破坏 flex 全屏居中布局）。
 */
.wx-guide--hidden {
	display: none !important;
}

.wx-guide:not(.wx-guide--hidden) {
	position: fixed !important;
	left: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-height: 100%;
	box-sizing: border-box;
	padding: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
		max(6px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
	left: 0;
	top: 0;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.wx-guide:not(.wx-guide--hidden) .wx-guide__mask {
	position: absolute;
	inset: 0;
	z-index: 0;
	-webkit-tap-highlight-color: transparent;
}

.wx-guide:not(.wx-guide--hidden) .wx-guide__panel {
	position: relative;
	z-index: 1;
	top: auto;
	right: auto;
	left: auto;
	width: min(340px, calc(100vw - 20px));
	max-width: 100%;
	max-height: min(82vh, calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	max-height: min(82dvh, calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 18px 16px max(14px, env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

.wx-guide .wx-guide__corner-arrow {
	-webkit-filter: none;
	filter: none;
}

/* 兼容旧注释：微信层与 QQ / Telegram / 通用层共用上述布局 */
.wx-guide--wechat.wx-guide--hidden {
	display: none !important;
}

.wx-guide--wechat:not(.wx-guide--hidden) {
	position: fixed !important;
	left: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-height: 100%;
	box-sizing: border-box;
	padding: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
		max(6px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
	left: 0;
	top: 0;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.wx-guide--wechat:not(.wx-guide--hidden) .wx-guide__mask {
	position: absolute;
	inset: 0;
	z-index: 0;
	-webkit-tap-highlight-color: transparent;
}

.wx-guide--wechat:not(.wx-guide--hidden) .wx-guide__panel {
	position: relative;
	z-index: 1;
	top: auto;
	right: auto;
	left: auto;
	width: min(340px, calc(100vw - 20px));
	max-width: 100%;
	max-height: min(82vh, calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	max-height: min(82dvh, calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 18px 16px max(14px, env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

.wx-guide--wechat .wx-guide__corner-arrow {
	-webkit-filter: none;
	filter: none;
}

/* QQ 指引：顶部细色条区分品牌，与微信层并列存在 */
.wx-guide--qq .wx-guide__panel {
	border-top: 3px solid #12b7f5;
}

/* Telegram 指引：顶部细色条用 Telegram 品牌蓝 */
.wx-guide--telegram .wx-guide__panel {
	border-top: 3px solid #29a9eb;
}

/* 通用 App 内置浏览器指引 */
.wx-guide--inapp .wx-guide__panel {
	border-top: 3px solid #6366f1;
}

/* iOS 第三方浏览器（Chrome / Firefox / Edge）：底部工具栏示意 + 复制链接 */
.wx-guide--browser .wx-guide__panel {
	border-top: 3px solid #0a84ff;
}

.wx-guide__hint-top--bottom {
	text-align: center;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}

.wx-guide__browser-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin: 0 0 6px;
	padding: 10px 12px;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wx-guide__browser-bar-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 32px;
	color: #6b7280;
	border-radius: 8px;
}

.wx-guide__browser-bar-ico--active {
	color: #111;
	background: #fff;
	border: 1.5px solid var(--sf-red, #e60012);
	box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
	animation: wx-guide-menu-pulse 1.6s ease-in-out infinite;
}

.wx-guide__dots--compact {
	min-width: 0;
	padding: 0 4px;
	font-size: 16px;
	letter-spacing: 1px;
	background: transparent;
	border: none;
	border-radius: 0;
	font-weight: 800;
	color: inherit;
	line-height: 1;
}

.wx-guide__corner-arrow--down {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	margin: 0 auto 12px;
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 10px solid #e5e7eb;
	border-bottom: none;
	filter: none;
}

.wx-guide__corner-arrow--down::after {
	content: "";
	position: absolute;
	left: -8px;
	top: -11px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 9px solid #f1f5f9;
}

.wx-guide__copy-btn {
	display: block;
	width: 100%;
	margin: 14px 0 0;
	padding: 12px 14px;
	border: none;
	border-radius: 10px;
	background: #0a84ff;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease, transform 0.12s ease;
}

.wx-guide__copy-btn:active {
	background: #0066d6;
	transform: scale(0.98);
}

@keyframes wx-guide-menu-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(230, 0, 18, 0.2);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wx-guide__browser-bar-ico--active {
		animation: none;
	}
}
