@charset "utf-8";
/* ============================================================
   3M 个人安全防护产品真伪查询 —— 响应式样式
   设计基准：750 x 1500（原站 rem 基准，1rem = 100 设计像素）
   缩放单位：--u = 1 设计像素，随容器宽度等比变化，无需 JS
   ============================================================ */

:root {
	--stage-max: 480px;
	/* 页面留白底色，与截图外部背景一致 */
	--page-bg: #edf2fa;
	--c-blue-deep: #16307f;
	--c-tit: #eafa8e;
	--c-border: #c9e3f2;
}

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100%;
	background: var(--page-bg);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
		"Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* ---------- 舞台 ---------- */
.stage {
	position: relative;
	width: 100%;
	max-width: var(--stage-max);
	min-height: 100vh;
	margin: 0 auto;
	overflow: hidden;
	/* 1 像素高的“底色条”竖向拉伸：超长屏底部由它无缝续接，不出现白边 */
	background-color: var(--c-blue-deep);
	background-image: url(../img/tail.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	/* 1 设计像素 = 容器宽度 / 750 */
	--u: calc(min(100vw, var(--stage-max)) / 750);
}

@supports (min-height: 100dvh) {
	.stage {
		min-height: 100dvh;
	}
}

/* 背景美术图：宽度铺满、高度等比，永不裁切变形 */
.stage .art {
	display: block;
	width: 100%;
	height: auto;
}

/* 内容层叠在美术图之上，用负边距回退到顶部，内容超高时舞台自动增高 */
.inner {
	position: relative;
	z-index: 2;
	margin-top: -200%;
	min-height: calc(1500 * var(--u));
}

/* ---------- 查询说明页 ---------- */
/* 说明页：标题纯黑加粗，正文白色常规字重 */
.inner--landing {
	padding: calc(996 * var(--u)) calc(50 * var(--u)) calc(70 * var(--u));
}

.steps {
	/* flow-root：既建立 BFC 避免外边距塌陷，又不像 overflow:hidden 那样裁掉溢出内容 */
	display: flow-root;
}

.steps .qr {
	float: right;
	width: calc(150 * var(--u));
	height: auto;
	margin: calc(20 * var(--u)) calc(-18 * var(--u)) calc(140 * var(--u)) calc(50 * var(--u));
}

.steps .step-tit {
	margin: 0;
	font-size: calc(36 * var(--u));
	line-height: calc(48 * var(--u));
	font-weight: 700;
	margin: 0 0 calc(12 * var(--u));
	letter-spacing: calc(1 * var(--u));
	color: #000;
}

.steps .step-tit:first-of-type {
	margin-top: 0;
}

.steps .step-txt {
	margin: 0 0 calc(30 * var(--u));
	font-size: calc(26 * var(--u));
	line-height: calc(44 * var(--u));
	font-weight: 400;
	color: #fff;
}

.steps .step-txt:last-child {
	margin-bottom: 0;
}

/* 演示/返回入口链接 */
.to-result {
	margin: calc(30 * var(--u)) 0 0;
	font-size: calc(24 * var(--u));
	line-height: calc(36 * var(--u));
}

.to-result a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: underline;
	text-underline-offset: calc(4 * var(--u));
}

.to-result a:active {
	color: #fff;
}

/* ---------- 查询结果页 ---------- */
.inner--result {
	padding: calc(847 * var(--u)) calc(25 * var(--u)) calc(80 * var(--u));
}

.result-box {
	position: relative;
	width: 100%;
	max-width: calc(700 * var(--u));
	margin: 0 auto;
	padding: calc(40 * var(--u)) calc(30 * var(--u));
	background: rgba(255, 255, 255, 0.25);
	border: 1px solid var(--c-border);
}

.result-tit {
	font-size: calc(36 * var(--u));
	line-height: 1.2;
	font-weight: 700;
	color: var(--c-tit);
	text-align: center;
}

.result-txt {
	margin-top: calc(28 * var(--u));
	font-size: calc(30 * var(--u));
	line-height: calc(60 * var(--u));
	word-break: break-word;
}

/* ---------- 桌面端：居中卡片 ---------- */
@media (min-width: 768px) {
	body {
		display: flex;
		justify-content: center;
		padding: 32px 16px;
	}

	.stage {
		min-height: auto;
		border-radius: 8px;
		box-shadow: 0 18px 50px rgba(18, 42, 96, 0.22);
	}
}
