/* demo/index.html 页面样式（含移动端适配） */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body.demo-page {
	margin: 0;
	padding: 50px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	-webkit-tap-highlight-color: transparent;
}

.demo-page h2 {
	margin: 0 0 0.5em;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
}

.demo-page h3 {
	margin: 0 0 0.75em;
	font-size: 1.125rem;
	font-weight: 600;
}

.demo-verify {
	margin: 20px 0;
}

.demo-verify__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

#verify-btn {
	min-height: 44px;
	min-width: 120px;
	padding: 10px 20px;
	font-size: 16px;
	line-height: 1.2;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
}

#verify-btn:active {
	background: #f0f0f0;
}

#result {
	font-size: 15px;
	word-break: break-word;
}

.demo-guide {
	margin-top: 30px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 5px;
}

.demo-guide p {
	margin: 0.75em 0;
}

.demo-guide pre {
	margin: 0.5em 0 1em;
	padding: 10px;
	background: #eee;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.45;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	white-space: pre;
	word-wrap: normal;
}

@media screen and (max-width: 768px) {
	body.demo-page {
		padding: 16px;
		padding-left: max(16px, env(safe-area-inset-left));
		padding-right: max(16px, env(safe-area-inset-right));
		padding-bottom: max(16px, env(safe-area-inset-bottom));
	}

	.demo-page h2 {
		font-size: 1.25rem;
	}

	.demo-page h3 {
		font-size: 1.05rem;
	}

	.demo-verify {
		margin: 16px 0;
	}

	.demo-verify__row {
		flex-direction: column;
		align-items: stretch;
	}

	#verify-btn {
		width: 100%;
		max-width: 100%;
	}

	#result {
		margin-left: 0 !important;
		text-align: center;
	}

	.demo-guide {
		margin-top: 20px;
		padding: 12px;
	}

	.demo-guide pre {
		font-size: 12px;
		padding: 8px;
	}
}

@media screen and (max-width: 480px) {
	body.demo-page {
		padding: 12px;
		padding-left: max(12px, env(safe-area-inset-left));
		padding-right: max(12px, env(safe-area-inset-right));
	}

	.demo-guide pre {
		font-size: 11px;
	}
}
