/* 弹窗 代码临时 css*/
.custom-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1003;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s, opacity 0.2s;
}

.custom-modal-overlay.active {
	visibility: visible;
	opacity: 1;
}

/* 弹窗主体 */
.custom-modal {
	width: auto;
	max-width: 480px;
	background: #fff;
	border-radius: 32px;
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
	position: relative;
	transform: scale(0.95);
	transition: transform 0.2s;
}

.custom-modal-overlay.active .custom-modal {
	transform: scale(1);
}

/* 关闭按钮 */
.modal-close {
	position: absolute;
	top: -5px;
	right: -5px;
	width: 35px;
	height: 35px;
	background: #f5f5f5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s;
	z-index: 10;
}

.modal-close:hover {
	background: #e0e0e0;
}

.modal-close::before,
.modal-close::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 2px;
	background: #888;
	border-radius: 2px;
}

.modal-close::before {
	transform: rotate(45deg);
}

.modal-close::after {
	transform: rotate(-45deg);
}


/* ---------- pc端样式：左下角，无遮罩 ---------- */
@media (min-width: 768px) {

	/* 遮罩层背景透明，并改为左下角布局 */
	.custom-modal-overlay {
		background: transparent;
		/* 取消遮罩层 */
		justify-content: flex-start;
		/* 水平靠左 */
		align-items: flex-end;
		/* 垂直靠下 */
		pointer-events: none;
		/* 让遮罩层不拦截点击，但弹窗需要可点 */
		max-width: 400px;
		overflow: hidden;
	}

	/* 弹窗主体可点，并设置左下角边距 */
	.custom-modal {
		width: 300px;
		/* pc端固定宽度 */
		max-width: 90vw;
		margin: 0 0 20px 20px;
		/* 距离左下角距离 */
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
		pointer-events: auto;
		/* 确保弹窗可交互 */
	}

	/* 移除缩放动画效果（可选） */
	.custom-modal-overlay.active .custom-modal {
		transform: scale(1);
	}
	
	
	/* 弹窗内容 */
	.modal-content {
		width: 300px;
		padding: 0px;
		text-align: center;
		overflow: hidden;
		border-radius: 30px;
	}
	
	.modal-content a {
		width: 300px;
		display: block;
	}
	
	.modal-content a img {
		width: 100%;
	
	}
	
	.modal-content .modal-timer {
		font-size: 14px;
		color: #999;
		padding-bottom: 10px;
	}
	
}

/* 移动端适配（维持原有居中遮罩） */
@media (max-width: 767px) {
	.custom-modal{
		width: 78vmin;
		border-radius: 20px;
	}
	
	
	/* 弹窗内容 */
	.modal-content {
		width: 78vmin;
		padding: 0px;
		text-align: center;
		overflow: hidden;
		border-radius: 20px;
	}
	
	.modal-content a {
		width: 100%;
		display: block;
	}
	
	.modal-content a img {
		width: 100%;
	
	}
	
	.modal-content .modal-timer {
		font-size: 14px;
		color: #999;
		padding-bottom: 10px;
	}
	
	.modal-content {
		padding: 0px;
	}

	.modal-title {
		font-size: 24px;
	}

	.modal-sub {
		font-size: 18px;
	}

	.modal-btn {
		width: 100%;
		padding: 12px 20px;
	}
}