/* 移动端图片长按放大禁用样式 */
/* 兼容所有移动端设备和浏览器 */

/* 基础图片样式重置 */
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;
} 