@import "@/common.less";

.rulemodal {
	width: 100vw;
	height: 100vh;
	left: 0rpx;
	top: 0rpx;
	position: fixed;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden; // 禁用弹窗内的滚动

	// 蒙层
	.rulemodal-mask {
		width: 100%;
		height: 100%;
		position: absolute;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 1;
	}

	// 弹窗内容
	.rulemodal-content {
		width: 550rpx;
		height: 667rpx;
		position: relative;
		z-index: 2;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background-color: white;
		border-radius: 48rpx;
	}

	.rulemodal-title{
		color: #bc7900;
		font-weight: bold;
		font-size: 44rpx;
	}

	// 规则内容滚动容器
	.rulemodal-text-container {
		width: 100%;
		height: 471rpx;
		//position: absolute;
		// top: 154rpx;
		// left: 35rpx;
		overflow-y: auto;
		overflow-x: hidden;
		z-index: 3;
		
		// 自定义滚动条样式
		&::-webkit-scrollbar {
			width: 8rpx;
		}
		
		&::-webkit-scrollbar-track {
			background: rgba(0, 0, 0, 0.1);
			border-radius: 4rpx;
		}
		
		&::-webkit-scrollbar-thumb {
			background: rgba(0, 0, 0, 0.3);
			border-radius: 4rpx;
			
			&:hover {
				background: rgba(0, 0, 0, 0.5);
			}
		}
		
		// 规则图片样式
		.rulemodaltextimg {
			position: relative;
			top: 0;
			left: 0;
			width: 100%;
			height: auto;
			object-fit: contain;
			display: block;
		}

		.rulemodal-text{
			padding: 40rpx;
		}
	}

	.rulemodalclosebtn {
		width: 60rpx;
		height: 59rpx;
		position: absolute;
		top: 728rpx;
		left: 245rpx;
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		transition: opacity 0.3s ease;

		&:hover {
			opacity: 0.8;
		}
	}
}
