/* 答题页：参考移动端一题一屏体验，并沿用首页紫色与青绿色主题。 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body.test-page {
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
	background: #fff;
	color: #34363a;
	font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	user-select: none;
}

body.test-page::before {
	display: none;
}

.test-shell {
	width: min(100%, 480px);
	min-height: 100vh;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 42px rgba(47, 56, 75, 0.08);
}

.test-loading {
	margin: 0;
	padding: 52px 24px;
	color: #7d7f84;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

.test-hero {
	min-height: 292px;
	padding: 38px 42px 0;
	background: #f2f2f2;
}

.test-hero h1 {
	margin: 0;
	color: #606267;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.18;
	text-align: center;
}

.test-hero p {
	margin: 12px 0 68px;
	color: #b9b9b9;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.test-progress-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	align-items: center;
}

.test-progress-row.has-stage-label {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.test-progress-row strong {
	color: #66686c;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.test-progress-row strong span,
.test-progress-row em {
	color: #8c61a6;
}

.test-progress-row em {
	display: none;
	font-style: normal;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.1;
	white-space: nowrap;
}

.test-progress-track {
	position: relative;
	height: 20px;
	overflow: hidden;
	border-radius: 999px;
	background: #e9e9e9;
}

.test-progress-track span {
	position: absolute;
	inset: 0 auto 0 0;
	min-width: 11px;
	border-radius: inherit;
	background: #8c61a6;
	transition: width 0.22s ease;
}

.question-card {
	min-height: 790px;
	padding: 72px 40px 62px;
	background: #fff;
}

.question-copy h2 {
	margin: 0 0 52px;
	color: #313338;
	font-size: 27px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.6;
}

.question-copy p {
	margin: 0 0 18px;
	color: #313338;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.55;
}

.question-copy strong {
	font-weight: 500;
}

.choice-scale {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 154px;
	padding: 0 0 64px;
}

.choice-dot {
	display: block;
	flex: 0 0 auto;
	padding: 0;
	border-style: solid;
	border-width: 3px;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.choice-dot:hover,
.choice-dot:focus {
	outline: none;
	transform: translateY(-2px);
}

.choice-a {
	border-color: #c832ee;
	color: #c832ee;
}

.choice-b {
	border-color: #18b9b8;
	color: #18b9b8;
}

.choice-a.is-selected,
.choice-a:hover,
.choice-a:focus {
	background: rgba(200, 50, 238, 0.1);
	box-shadow: 0 0 0 8px rgba(200, 50, 238, 0.1);
}

.choice-b.is-selected,
.choice-b:hover,
.choice-b:focus {
	background: rgba(24, 185, 184, 0.1);
	box-shadow: 0 0 0 8px rgba(24, 185, 184, 0.1);
}

.choice-dot.is-lg {
	width: 92px;
	height: 92px;
}

.choice-dot.is-md {
	width: 72px;
	height: 72px;
}

.choice-dot.is-sm {
	width: 56px;
	height: 56px;
}

.choice-end {
	position: absolute;
	bottom: 4px;
	font-size: 30px;
	font-weight: 500;
	line-height: 1;
}

.choice-end.choice-a {
	left: 0;
}

.choice-end.choice-b {
	right: 0;
}

.test-support {
	min-height: 556px;
	padding: 60px 46px;
	background: #f3f3f3;
}

.prev-question {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 52px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #737579;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.prev-question[hidden] {
	display: none;
}

.prev-question span {
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 0 2px 2px;
	transform: rotate(45deg);
}

.test-unlock-copy {
	color: #96999f;
	text-align: center;
}

.test-unlock-copy h2 {
	margin: 0 0 24px;
	color: #85888e;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.45;
}

.test-unlock-copy ul {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	justify-content: center;
	gap: 12px 18px;
	margin: 0 0 54px;
	padding: 0;
	list-style: none;
	color: #96999f;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
}

.test-unlock-copy p {
	margin: 0;
	color: #96999f;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.55;
	text-align: center;
}

.test-support.is-first .test-unlock-copy {
	padding-top: 52px;
}

@media (min-width: 768px) {
	.test-shell {
		width: min(100%, 772px);
	}

	.test-progress-row.has-stage-label {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 16px;
	}

	.test-progress-row.has-stage-label em {
		display: block;
	}

	.question-card {
		min-height: 790px;
		padding-left: 46px;
		padding-right: 46px;
	}

	.choice-scale {
		gap: 50px;
	}
}

@media (max-width: 520px) {
	.test-shell {
		width: 100%;
		min-height: 100svh;
		box-shadow: none;
	}

	.test-hero {
		min-height: 152px;
		padding: 22px 22px 0;
	}

	.test-hero h1 {
		font-size: 20px;
		line-height: 1.18;
	}

	.test-hero p {
		margin: 7px 0 34px;
		font-size: 12px;
	}

	.test-progress-row strong {
		font-size: 14px;
	}

	.test-progress-row {
		gap: 10px;
	}

	.test-progress-row.has-stage-label {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.test-progress-row em {
		display: block;
		font-size: 14px;
	}

	.test-progress-track {
		height: 10px;
	}

	.question-card {
		min-height: 390px;
		padding: 40px 24px 34px;
	}

	.question-copy h2 {
		margin-bottom: 28px;
		font-size: 17px;
		line-height: 1.45;
	}

	.question-copy p {
		margin-bottom: 10px;
		font-size: 16px;
		line-height: 1.45;
	}

	.choice-scale {
		gap: clamp(16px, 5vw, 20px);
		margin-top: 56px;
		padding-bottom: 34px;
	}

	.choice-dot {
		border-width: 2px;
	}

	.choice-dot.is-lg {
		width: clamp(46px, 12.2vw, 48px);
		height: clamp(46px, 12.2vw, 48px);
	}

	.choice-dot.is-md {
		width: clamp(36px, 9.4vw, 38px);
		height: clamp(36px, 9.4vw, 38px);
	}

	.choice-dot.is-sm {
		width: clamp(26px, 7.2vw, 29px);
		height: clamp(26px, 7.2vw, 29px);
	}

	.choice-end {
		font-size: 19px;
	}

	.test-support {
		min-height: calc(100svh - 542px);
		padding: 38px 24px 42px;
	}

	.prev-question {
		margin-bottom: 34px;
		font-size: 14px;
	}

	.test-unlock-copy h2 {
		margin-bottom: 18px;
		font-size: 14px;
	}

	.test-unlock-copy ul {
		gap: 8px 12px;
		margin-bottom: 36px;
		font-size: 12px;
	}

	.test-unlock-copy p {
		font-size: 12px;
		line-height: 1.48;
	}

	.test-support.is-first .test-unlock-copy {
		padding-top: 24px;
	}
}

@media (max-width: 380px) {
	.test-hero {
		padding-left: 22px;
		padding-right: 22px;
	}

	.test-hero h1 {
		font-size: 19px;
	}

	.test-hero p {
		font-size: 11px;
	}

	.question-card {
		padding-left: 24px;
		padding-right: 24px;
	}

	.question-copy h2 {
		font-size: 16px;
	}

	.question-copy p {
		font-size: 15px;
	}

	.choice-scale {
		gap: 14px;
	}

	.choice-dot.is-lg {
		width: 44px;
		height: 44px;
	}

	.choice-dot.is-md {
		width: 35px;
		height: 35px;
	}

	.choice-dot.is-sm {
		width: 27px;
		height: 27px;
	}

	.test-support {
		padding-left: 24px;
		padding-right: 24px;
	}

	.test-unlock-copy h2 {
		font-size: 13px;
	}

	.test-unlock-copy ul {
		grid-template-columns: repeat(2, max-content);
		justify-content: center;
		justify-items: start;
		gap: 8px 10px;
		text-align: left;
		font-size: 11px;
	}

	.test-unlock-copy p {
		font-size: 12px;
	}
}

/* 2026-05-11: align final-submit confirmation with mini program */
.submit-confirm-mask{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(0,0,0,.48);box-sizing:border-box}.submit-confirm-card{display:block;width:100%;max-width:310px;padding:24px 20px 18px;border-radius:16px;background:#fff;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.22);box-sizing:border-box}.submit-confirm-card h2{display:block;margin:0 0 11px;color:#30333a;font-size:19px;font-weight:900;line-height:1.25}.submit-confirm-card p{display:block;margin:0 0 20px;color:#666b74;font-size:14px;font-weight:400;line-height:1.55}.submit-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.submit-confirm-actions button{display:flex;align-items:center;justify-content:center;height:44px;margin:0;padding:0;border:0;border-radius:999px;font-size:15px;font-weight:800;line-height:1}.submit-confirm-cancel{background:#f1f2f5;color:#6b707a}.submit-confirm-ok{background:#8c61a6;color:#fff}
