/**
 * 商品详情页的「在线预览」入口样式（方案 A）
 * 只在 mfm_product 详情页加载。
 */

/* ---------- 主图上的悬浮预览按钮 ---------- */
.gallery__demo {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 26px;
	border-radius: 14px;
	background: rgba(10, 24, 34, .72);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	text-decoration: none;
	text-align: center;
	transition: background .18s ease, transform .18s ease;
	z-index: 2;
}

.gallery__demo:hover,
.gallery__demo:focus-visible {
	background: rgba(10, 24, 34, .86);
	transform: translate(-50%, -50%) scale(1.03);
	color: #fff;
}

.gallery__demo-ico svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: #7fd8dd;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gallery__demo > span:nth-of-type(1) {
	font-weight: 600;
	font-size: .98rem;
}

.gallery__demo small {
	font-size: .74rem;
	color: rgba(255, 255, 255, .7);
}

@media (max-width: 520px) {
	.gallery__demo {
		padding: 12px 18px;
	}

	.gallery__demo small {
		display: none;
	}
}

/* ---------- 「界面预览」小节的 CTA ---------- */
.demo-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 18px;
	margin-bottom: 22px;
	border-radius: 12px;
	border: 1px solid var(--line, #e6e9ee);
	background: linear-gradient(135deg, rgba(23, 174, 180, .07), rgba(10, 90, 100, .05));
}

.demo-cta__text b {
	display: block;
	font-size: 1rem;
	margin-bottom: 3px;
}

.demo-cta__text p {
	margin: 0;
	font-size: .86rem;
	color: var(--muted, #5b6875);
}

.demo-cta .btn {
	white-space: nowrap;
}
