*{
	box-sizing: border-box;
	font-family: Consolas, Menlo, sans-serif;
	/* -webkit-tap-highlight-color: transparent; /* 点击高亮闪烁 */
	/* -webkit-user-select: none; /* 禁止选中或拖选文本 */
	/* user-select: none; /* 禁止选中或拖选文本 */
}
html, body {
	-webkit-font-smoothing: antialiased; /* 平滑字体 */
	touch-action: manipulation; /* 防止缩放滚动干扰 */
	-webkit-touch-callout: none; /* 禁止长按菜单 */
	margin: 0;
	padding: 0;
	min-height: 100dvh;
}
body {
	background: #111;
	color: #FFF;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-x: hidden;
	line-height: 1.5;
}
body.light { background: #FFF; color: #000; }
main {
	margin: 0 auto;
	padding: 0;
	width: 94%;
	max-width: 900px;
}
section {
	padding: 0.5rem 0;
}
h1, h2, h3, h4, h5, h6 {
	text-align: center;
}
a {
	color: #6FF;
	text-decoration: none;
}
a:hover {
	color: #9FF;
}
code {
	background: #FFF1;
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	font-size: 0.95em;
}
input, textarea, button, .btn {
	margin: 5px;
	padding: 0.8rem;
	color: #EEE;
	font-size: 1.8rem;
	border: 1px solid #999;
	border-radius: 8px;
	transition: 0.2s ease;
}
input, textarea {
	background: #FFF1;
}
input[type="text"], textarea { width: -webkit-fill-available; }
input[type="radio"] { display: none; }
textarea {
	min-height: 8rem;
	resize: vertical;
}
button, .btn {
	background: linear-gradient(180deg, #333, #222);
	cursor: pointer;
	transition: all 0.15s ease-in-out;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
}
button:active, .btn:active {
	transform: scale(0.97);
	filter: brightness(0.9);
}
input:focus, textarea:focus, input[type="radio"]:checked + label {
	outline: 3px solid #BBB1;
	border-color: #FFF;
}
ul, ol {
	margin: 0;
}
hr {
	margin: 1.5rem 0;
	border: none;
	height: 1px;
	background: #FFF1;
}
small {
	font-size: 0.5em;
}
canvas {
	max-width: 100%;
}
@media (orientation: landscape) {
	main {
		width: 80%;
	}
}
