.referral-code-block {
	background: #E7E1FF;
	border: 1px solid #C4B5FF;
	border-radius: 8px;
	padding: 12px;
	margin: 4px 0 12px;
	box-sizing: border-box;
}

.referral-code-block.is-active {
	background: #E7E1FF;
	border-color: #C4B5FF;
}

.referral-code-title {
	font-size: 14px;
	font-weight: 500;
	color: #000;
	margin-bottom: 8px;
}

.referral-code-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.referral-code-row .referral-code-input {
	flex: 1;
	min-width: 0;
	margin: 0;
	width: auto;
	float: none;
}

.referral-code-tip {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #6c45d6;
	white-space: nowrap;
}

/* 兼容旧版：有/无单选 + 验证按钮 */
.referral-code-radios .check-item {
	margin-right: 20px;
	margin-bottom: 4px;
}

.referral-code-fields {
	display: none;
}

.referral-code-block.is-active .referral-code-fields {
	display: block;
}

.referral-code-block .referral-code-verify {
	margin-top: 4px;
	background: #353943;
	margin-bottom: 8px;
}

.referral-code-block .referral-code-verify:hover {
	background: #000;
	color: #fff;
}

/* 收不到驗證碼彈窗 */
.verify-fail-mask {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	background: rgba(0, 0, 0, 0.8);
	box-sizing: border-box;
	padding: 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.verify-fail-mask.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
}

.verify-fail-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: auto;
	background: #f2f2f2;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	padding: 36px 24px 28px;
	box-sizing: border-box;
	text-align: center;
}

.verify-fail-close {
	position: absolute;
	right: 14px;
	top: 10px;
	width: 28px;
	height: 28px;
	line-height: 26px;
	font-size: 22px;
	color: #b0b0b0;
	text-align: center;
	text-decoration: none;
}

.verify-fail-title {
	font-size: 16px;
	font-weight: 500;
	color: #4a4a4a;
	margin-bottom: 10px;
	line-height: 1.4;
}

.verify-fail-phone {
	font-size: 32px;
	font-weight: 700;
	color: #9471FF;
	line-height: 1.2;
	margin-bottom: 14px;
	letter-spacing: 0.5px;
}

.verify-fail-desc {
	font-size: 13px;
	line-height: 1.7;
	color: #6a6a6a;
	margin-bottom: 22px;
}

.verify-fail-btns {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.verify-fail-btn {
	flex: 1;
	display: block;
	background: #9471FF;
	color: #fff;
	font-size: 14px;
	line-height: 40px;
	height: 40px;
	border-radius: 999px;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	padding: 0 8px;
	white-space: nowrap;
}

.verify-fail-btn .fa {
	margin-left: 4px;
	font-size: 14px;
}

@media (max-width: 1079px) {
	.referral-code-block {
		border-radius: 4px;
		padding: 10px;
		margin-bottom: 10px;
	}

	.referral-code-title {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.referral-code-row {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.referral-code-row .referral-code-input {
		width: 100%;
	}

	.referral-code-tip {
		white-space: normal;
		font-size: 14px;
	}

	.referral-code-block .referral-code-verify {
		width: 100%;
		margin-top: 0;
		line-height: 38px;
		border-radius: 4px;
	}

	.verify-fail-modal {
		max-width: 360px;
		padding: 32px 16px 24px;
		border-radius: 18px;
	}

	.verify-fail-phone {
		font-size: 28px;
	}

	.verify-fail-btn {
		font-size: 13px;
		line-height: 38px;
		height: 38px;
	}
}

@media (min-width: 1080px) {
	.verify-fail-close:hover,
	.verify-fail-btn:hover {
		opacity: 0.85;
	}
}

.referral-page {
	max-width: 560px;
	margin: 40px auto;
	padding: 0 16px;
	box-sizing: border-box;
}

@media (max-width: 400px) {
	.check-item-other{line-height: 20px;}
}