/* 现代化的CSS Reset - 优化版本 */
:root {
	-webkit-tap-highlight-color: transparent;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* 通用重置 */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* HTML和Body设置 */
html,
body {
	font-family:
		"Microsoft YaHei",
		"PingFang SC",
		"Hiragino Sans GB",
		"Noto Sans CJK SC",
		"Source Han Sans SC",
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		sans-serif;
	line-height: 1.5;
	width: 100%;
	height: 100%;
	min-height: 100%;
	position: fixed;
	overflow: hidden;
	overflow-x: hidden;
	overscroll-behavior: none;
	touch-action: manipulation;
}

/* 移除列表默认样式 */
ol,
ul {
	list-style: none;
}

/* 移除默认边距和边框 */
blockquote,
q {
	quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
	content: '';
	content: none;
}

/* 表格重置 */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* 表单元素重置 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: inherit;
	margin: 0;
}

button,
input {
	overflow: visible;
	color: #000;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
	appearance: button;
	cursor: pointer;
	outline: none;
	background: none;
	border: none;
	padding: 0;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
	display: none;
}

/* 图片和媒体元素 */
img,
embed,
iframe,
object,
video {
	max-width: 100%;
	height: auto;
	display: block;
	-webkit-touch-callout: none;
	user-select: none;
	pointer-events: none;
}

/* 响应式媒体 */
audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

/* 可交互元素 */
a,
button,
input,
textarea {
	touch-action: manipulation;
}

/* 禁用文本选择（排除输入元素） */
:not(input, textarea, [contenteditable]) {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* 特殊元素处理 */
[hidden] {
	display: none !important;
}

/* 文本元素优化 */
p, div, span, a {
	line-height: 1.4; /* 更好的垂直居中效果 */
}

/* 标题元素 */
h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
}

/* 按钮和输入框的垂直居中优化 */
button, 
input, 
select, 
textarea {
	line-height: 1.2;
	vertical-align: middle;
}

/* 小字体元素的特殊处理 */
.small-text,
[style*="font-size: 0.1"],
[style*="font-size: 0.2"] {
	line-height: 1.6; /* 小字体需要更大的行高来保证居中 */
}

.btn-active:active {
	transform: scale(0.9);
}