/* 更现代的CSS Reset */
:root {
	-webkit-tap-highlight-color: transparent;
	/* 移除移动端点击高亮 */
	text-size-adjust: 100%;
	/* 防止iOS文字缩放 */
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

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;
	overflow-x: hidden;
	overscroll-behavior: none;
	touch-action: manipulation;
	margin: 0;
	line-height: inherit;
	overscroll-behavior: none;
	touch-action: none;
	overflow: hidden;
	position: fixed;
	width: 100%;
	height: 100%;
	min-height: 100%;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

/* 移除列表默认样式 */
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;
	cursor: pointer;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
	display: none;
}

/* 图片和嵌入内容 - 禁用长按放大 */
img,
embed,
iframe,
object,
video {
	max-width: 100%;
	height: auto;
	display: block;
	/* 禁用长按放大 */
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	/* 禁用图片长按菜单 */
	-webkit-touch-callout: none;
	/* 禁用iOS Safari的长按放大 */
	-webkit-tap-highlight-color: transparent;
	/* 禁用Android Chrome的长按放大 */
	pointer-events: auto;
	/* 确保图片不会被长按选中 */
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
}

/* 可交互元素 */
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;
}

/* 响应式媒体 */
audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

button {
	outline: none;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
}

span {
	line-height: 1;
}

::-webkit-scrollbar {
	display: none;
}

/* 全局禁用图片长按放大 - 兼容所有移动端设备 */
img {
	/* iOS Safari */
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	/* Android Chrome */
	-webkit-tap-highlight-color: transparent !important;
	/* 通用 */
	user-select: none !important;
	-webkit-user-drag: none !important;
	-khtml-user-drag: none !important;
	-moz-user-drag: none !important;
	-o-user-drag: none !important;
	user-drag: none !important;
	/* 禁用长按菜单 */
	-webkit-touch-callout: none !important;
	/* 确保图片不会被选中 */
	-webkit-tap-highlight-color: transparent !important;
	/* 禁用双击缩放 */
	-webkit-touch-callout: none !important;
	/* 兼容Firefox */
	-moz-user-select: none !important;
	/* 兼容IE/Edge */
	-ms-user-select: none !important;
}

/* 针对特定浏览器的额外处理 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
	/* Webkit浏览器（Safari, Chrome） */
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

/* 针对iOS设备的特殊处理 */
@supports (-webkit-touch-callout: none) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

/* 移动端图片长按放大禁用样式 */
/* 兼容所有移动端设备和浏览器 */

/* 基础图片样式重置 */
img {
	/* 禁用所有可能的用户交互 */
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
	
	/* 禁用触摸相关功能 */
	-webkit-touch-callout: none !important;
	-webkit-tap-highlight-color: transparent !important;
	
	/* 禁用拖拽 */
	-webkit-user-drag: none !important;
	-khtml-user-drag: none !important;
	-moz-user-drag: none !important;
	-o-user-drag: none !important;
	user-drag: none !important;
	
	/* 禁用长按菜单 */
	-webkit-touch-callout: none !important;
	
	/* 确保图片不会被选中 */
	pointer-events: auto !important;
}

/* iOS Safari 特殊处理 */
@supports (-webkit-touch-callout: none) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
		-webkit-user-drag: none !important;
	}
}

/* Android Chrome 特殊处理 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
		-webkit-user-drag: none !important;
	}
}

/* Firefox 特殊处理 */
@-moz-document url-prefix() {
	img {
		-moz-user-select: none !important;
		-moz-user-drag: none !important;
	}
}

/* Edge 特殊处理 */
@supports (-ms-ime-align: auto) {
	img {
		-ms-user-select: none !important;
	}
}

/* 针对不同设备像素比的优化 */
@media (-webkit-min-device-pixel-ratio: 1) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

@media (-webkit-min-device-pixel-ratio: 2) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

@media (-webkit-min-device-pixel-ratio: 3) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

/* 针对特定移动设备的优化 */
/* iPhone */
@media screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

/* iPad */
@media screen and (min-device-width: 481px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

/* Android 设备 */
@media screen and (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 1024px) {
	img {
		-webkit-touch-callout: none !important;
		-webkit-user-select: none !important;
		-webkit-tap-highlight-color: transparent !important;
	}
}

/* 确保在按钮内的图片也被禁用 */
button img {
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	-webkit-tap-highlight-color: transparent !important;
	-webkit-user-drag: none !important;
	user-select: none !important;
	user-drag: none !important;
}

/* 确保在链接内的图片也被禁用 */
a img {
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	-webkit-tap-highlight-color: transparent !important;
	-webkit-user-drag: none !important;
	user-select: none !important;
	user-drag: none !important;
}

/* 针对游戏特定元素的优化 */
.game-container img,
.betting-area img,
.dice img,
.chip img,
.btn img {
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	-webkit-tap-highlight-color: transparent !important;
	-webkit-user-drag: none !important;
	user-select: none !important;
	user-drag: none !important;
	pointer-events: auto !important;
} 