:root {
	--bg-1: #0f172a;
	--bg-2: #111827;
	--card: rgba(17, 24, 39, 0.84);
	--card-border: rgba(148, 163, 184, 0.18);
	--text: #e5e7eb;
	--muted: #94a3b8;
	--accent: #38bdf8;
	--accent-strong: #0ea5e9;
	--danger: #f87171;
	--success: #34d399;
	--input: rgba(15, 23, 42, 0.86);
	--shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	min-height: 100%;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-size: 18px;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 32%),
		radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 30%),
		linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

body {
	display: grid;
	place-items: center;
	padding: 24px;
}

.shell {
	width: min(100%, 960px);
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 24px;
	align-items: stretch;
}

.hero,
.card {
	border: 1px solid var(--card-border);
	border-radius: 28px;
	background: var(--card);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.hero {
	padding: 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 520px;
	overflow: hidden;
	position: relative;
}

.page {
	width: 100%;
	min-height: 100vh;
	display: grid;
	place-items: center;
}

.page-start,
.page-trial,
.page-finish {
	padding: 24px;
}

.trial-card,
.finish-card {
	width: min(100%, 1100px);
}

.trial-card {
	gap: 24px;
	display: flex;
	flex-direction: column;
}

.trial-topbar {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
}

.trial-title {
	margin-bottom: 0;
}

.trial-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.5;
}

.trial-images {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.trial-image-panel {
	margin: 0;
	padding: 16px;
	border-radius: 22px;
	border: 1px solid rgba(148, 163, 184, 0.16);
	background: rgba(15, 23, 42, 0.52);
}

.trial-image-panel img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: 18px;
	background: rgba(2, 6, 23, 0.45);
}

.trial-image-panel figcaption {
	margin-top: 12px;
	color: var(--muted);
	font-size: 18px;
	text-align: center;
}

.trial-question-list {
	display: grid;
	gap: 18px;
}

.question-block {
	padding: 18px;
	border-radius: 20px;
	background: rgba(15, 23, 42, 0.48);
	border: 1px solid rgba(148, 163, 184, 0.14);
}

.question-block h2 {
	margin-bottom: 14px;
	font-size: 24px;
	line-height: 1.45;
}

.choice-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.choice-row label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 18px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: rgba(2, 6, 23, 0.28);
	cursor: pointer;
	user-select: none;
	font-size: 20px;
	line-height: 1.4;
}

.choice-row input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--accent);
}

.trial-actions {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.trial-actions .status {
	margin-top: 0;
	flex: 1;
}

.trial-actions .primary {
	min-width: 160px;
}

.finish-card {
	padding: 42px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.finish-card h1 {
	max-width: none;
	margin-bottom: 0;
	font-size: clamp(42px, 6vw, 72px);
}

.finish-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: min(100%, 620px);
}

.finish-actions {
	justify-content: center;
	width: 100%;
}

.finish-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	min-width: 180px;
}

.hero::before {
	content: "";
	position: absolute;
	inset: auto -12% -18% auto;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
	pointer-events: none;
}

.eyebrow {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.12);
	color: #bae6fd;
	font-size: 14px;
	letter-spacing: 0.04em;
}

h1 {
	margin: 18px 0 16px;
	font-size: clamp(38px, 5vw, 60px);
	line-height: 1.05;
	letter-spacing: -0.04em;
	max-width: 12ch;
}

.lead {
	margin: 0;
	max-width: 32rem;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.8;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 32px;
}

.stat {
	padding: 16px;
	border-radius: 18px;
	background: rgba(15, 23, 42, 0.65);
	border: 1px solid rgba(148, 163, 184, 0.14);
}

.stat strong {
	display: block;
	font-size: 20px;
	margin-bottom: 6px;
}

.stat span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.card {
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 520px;
}

.card h2 {
	margin: 0 0 10px;
	font-size: 34px;
	letter-spacing: -0.03em;
}

.card p {
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 20px;
	line-height: 1.7;
}

.field {
	margin-bottom: 18px;
}

label {
	display: block;
	margin-bottom: 10px;
	font-size: 20px;
	color: #cbd5e1;
}

input {
	width: 100%;
	padding: 18px 20px;
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: var(--input);
	color: var(--text);
	font-size: 22px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus {
	border-color: rgba(56, 189, 248, 0.8);
	box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
	transform: translateY(-1px);
}

.actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 10px;
}

button {
	border: 0;
	border-radius: 16px;
	padding: 17px 22px;
	font-size: 20px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover {
	transform: translateY(-1px);
}

button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.primary {
	color: #082f49;
	background: linear-gradient(135deg, #7dd3fc, var(--accent));
	box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
	min-width: 140px;
}

.ghost {
	color: var(--text);
	background: rgba(148, 163, 184, 0.12);
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.hint,
.status {
	margin-top: 14px;
	font-size: 19px;
	line-height: 1.6;
}

.hint {
	color: var(--muted);
}

.status {
	min-height: 24px;
	color: var(--muted);
}

.status.error {
	color: var(--danger);
}

.status.success {
	color: var(--success);
}

.footer-note {
	margin-top: 18px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.7;
}

.icp-footer {
	padding-top: 16px;
	text-align: center;
	font-size: 14px;
}

.icp-footer p {
	margin: 0 0 4px;
	color: var(--muted);
}

.icp-footer a {
	color: var(--muted);
	text-decoration: none;
}

.icp-footer a:hover {
	color: var(--accent);
}

@media (max-width: 880px) {
	.shell {
		grid-template-columns: 1fr;
	}

	.hero,
	.card {
		min-height: unset;
	}

	.trial-images,
	.finish-panel {
		grid-template-columns: 1fr;
	}

	.trial-topbar,
	.trial-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.trial-meta {
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	body {
		padding: 16px;
	}

	html, body {
		font-size: 19px;
	}

	.hero,
	.card {
		padding: 22px;
		border-radius: 22px;
	}

	.hero-stats {
		grid-template-columns: 1fr;
	}

	.actions {
		flex-direction: column;
		align-items: stretch;
	}

	input {
		font-size: 24px;
		padding: 18px 20px;
	}

	label,
	.hint,
	.status {
		font-size: 20px;
	}

	.question-block h2 {
		font-size: 25px;
	}

	.choice-row label {
		font-size: 21px;
	}

	button {
		font-size: 21px;
		padding: 18px 22px;
	}

	.primary,
	.ghost {
		width: 100%;
	}

		.trial-image-panel img {
			height: 260px;
		}

		.finish-card {
			padding: 26px;
		}
}
