:root {
	--ink: #1f2937;
	--ink-soft: #4b5563;
	--muted: #9ca3af;
	--line: #e8eef5;
	--accent: #3b82f6;
	--accent-dark: #2563eb;
	--accent-wash: #eff6ff;
	--surface: #ffffff;
}

body.test-page {
	min-height: 100vh;
	margin: 0;
	font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
	color: var(--ink);
	background:
		radial-gradient(ellipse 70% 50% at 12% 18%, rgba(59, 130, 246, 0.12), transparent 55%),
		radial-gradient(ellipse 50% 40% at 90% 80%, rgba(148, 163, 184, 0.14), transparent 50%),
		linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
	-webkit-font-smoothing: antialiased;
}

.test-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
}

.test-shell {
	width: 100%;
	max-width: 720px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.test-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 28px;
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(ellipse 50% 80% at 0% 0%, rgba(59,130,246,.08), transparent 55%),
		#fff;
}

.test-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.test-brand img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #fff;
	padding: 3px;
	flex-shrink: 0;
}

.test-brand strong {
	display: block;
	font-family: "Outfit", "Noto Sans SC", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.3;
}

.test-brand small {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: .82rem;
}

.test-back {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink-soft);
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.test-back:hover {
	border-color: #bfdbfe;
	background: var(--accent-wash);
	color: var(--accent-dark);
	text-decoration: none;
}

.test-body {
	padding: 28px;
}

.test-intro {
	margin: 0 0 20px;
}

.test-intro h1 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ink);
}

.test-intro p {
	margin: 0;
	color: var(--muted);
	font-size: .92rem;
	line-height: 1.55;
}

.test-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.test-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 104px;
	padding: 16px 10px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	color: var(--ink);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.test-item:hover {
	border-color: #bfdbfe;
	background: var(--accent-wash);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.test-item:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.test-item img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.test-result {
	margin-bottom: 22px;
	border: 1px solid #bbf7d0;
	border-radius: 14px;
	background: #f0fdf4;
	overflow: hidden;
}

.test-result-head {
	padding: 12px 16px;
	background: #dcfce7;
	color: #166534;
	font-weight: 700;
	font-size: .95rem;
}

.test-result-body {
	padding: 16px;
}

.test-field {
	margin-bottom: 12px;
}

.test-field:last-child {
	margin-bottom: 0;
}

.test-field label {
	display: block;
	margin-bottom: 6px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--ink-soft);
}

.test-field input {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: .6rem .85rem;
	font-size: .9rem;
	color: var(--ink);
	background: #fff;
	box-sizing: border-box;
}

.test-foot {
	padding: 14px 28px 20px;
	border-top: 1px solid var(--line);
	text-align: center;
	color: var(--muted);
	font-size: .82rem;
	background: #fafcff;
}

@media (max-width: 767.98px) {
	.test-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.test-body {
		padding: 22px 18px;
	}
	.test-head {
		padding: 18px;
	}
}

@media (max-width: 479.98px) {
	.test-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.test-item {
		min-height: 96px;
	}
}
