/* 蒙版样式 - 新增触摸事件禁止 */
.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: 99999;
	overflow: hidden; /* 阻止蒙版自身滚动 */
	touch-action: none; /* 禁止触摸行为 */
	pointer-events: auto; /* 确保蒙版能接收事件 */
	backdrop-filter: blur(8px); /* 模糊半径，可调整（4px-15px为宜） */
	-webkit-backdrop-filter: blur(8px); /* 兼容Safari */
}

/* 蒙版内容容器 - 新增触摸事件传递控制 */
.mask-content {
	width: 80%;
	height: 100% !important;
    padding: 3% 5%;
	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; /* 仅纵向滚动 */
	overflow-x: hidden !important; /* 强制禁止横向滚动（关键） */
	width: 100%; /* 确保容器宽度不超出父级 */
	height: 100%;
}

/* 关键：图片自适应，不撑开容器 */
.mask-scroll-content img {
	max-width: 100% !important; /* 图片最大宽度=容器宽度，不溢出 */
	height: auto !important; /* 保持图片宽高比，不拉伸 */
	display: block; /* 消除图片底部多余空白（可选） */
	object-fit: contain; /* 若图片比例特殊，完整显示图片不裁剪 */
}
/* 升级：同时禁止 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: 30px;
	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;
}
