/* 蒙版样式 - 新增触摸事件禁止 */
.mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	overflow: hidden; /* 阻止蒙版自身滚动 */
	touch-action: none; /* 禁止触摸行为 */
	pointer-events: auto; /* 确保蒙版能接收事件 */
}

/* 蒙版内容容器 - 新增触摸事件传递控制 */
.mask-content {
	width: 80%;
	height: 100%;
	background: rgb(242, 243, 245);
	border-radius: 12px;
	overflow: hidden; /* 内容容器不滚动 */
	position: relative;
	animation: popIn 0.3s ease;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	pointer-events: auto; /* 确保内容区域能正常交互 */
}

/* 滚动内容容器 - 保持不变 */
.mask-scroll-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	-webkit-overflow-scrolling: touch; /* 移动端顺滑滚动 */
}

/* 升级：同时禁止 html 和 body 滚动（关键兼容） */
.no-scroll {
	overflow: hidden !important;
	position: fixed !important;
	width: 100% !important;
	height: 100% !important;
}

/* 其他原有样式保持不变 */
@keyframes popIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: background-color 0.3s ease;
	z-index: 10;
}
.close-btn:hover {
	background-color: #ff4d4f;
}
