/* 智袋宝 · 借款申请引导页（进入下载页前展示，一屏紧凑布局） */

.sf-apply {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	justify-content: center;
	overflow: hidden;
	background: #f3f4f7;
	font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #1f2430;
}

.sf-apply[hidden] {
	display: none;
}

body.sf-apply-open {
	overflow: hidden;
}

.sf-apply__inner {
	width: 100%;
	max-width: 480px;
	height: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 顶部跑马灯 */
.sf-marquee {
	background: #ffedd8;
	color: #ff6a00;
	font-size: 12px;
	line-height: 32px;
	height: 32px;
	min-height: 32px;
	flex-shrink: 0;
	overflow: hidden;
	white-space: nowrap;
	position: relative;
}

.sf-marquee__track {
	display: inline-block;
	padding-left: 100%;
	will-change: transform;
	animation: sf-marquee 22s linear infinite;
	font-weight: 600;
}

@keyframes sf-marquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-100%, 0, 0);
	}
}

/* 主卡片 */
.sf-apply__card {
	margin: 8px 10px 0;
	background: #ffffff;
	border-radius: 14px;
	padding: 14px 14px 12px;
	box-shadow: 0 4px 16px rgba(20, 30, 60, 0.05);
	flex: 0 0 auto;
	margin-top: auto;
}

.sf-apply__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #8b91a1;
	font-size: 13px;
}

.sf-apply__borrow-all {
	color: #3f6fff;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.sf-apply__amount-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.sf-apply__amount-field {
	display: flex;
	align-items: baseline;
	flex: 1;
	min-width: 0;
	cursor: text;
}

.sf-apply__amount-yen,
.sf-apply__amount-input {
	color: #ff4d2e;
	font-size: clamp(28px, 8vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.5px;
	font-variant-numeric: tabular-nums;
}

.sf-apply__amount-input {
	flex: 1;
	min-width: 0;
	width: 100%;
	max-width: 200px;
	border: none;
	outline: none;
	background: transparent;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
}

.sf-apply__amount-tip {
	color: #9aa0af;
	font-size: 12px;
	white-space: nowrap;
}

.sf-apply__clear {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: none;
	background: #eef0f4;
	color: #9aa0af;
	font-size: 14px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	flex-shrink: 0;
}

.sf-apply__divider {
	height: 1px;
	background: #f0f1f4;
	margin: 10px 0 8px;
}

.sf-apply__example {
	color: #9aa0af;
	font-size: 12px;
}

/* 蓝色提示条 */
.sf-apply__notice {
	margin: 10px 0;
	background: #eef3ff;
	color: #3f6fff;
	font-size: 12px;
	text-align: center;
	padding: 8px 10px;
	border-radius: 8px;
	font-weight: 500;
	line-height: 1.35;
}

/* 期限选项 */
.sf-apply__plan {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #eceef2;
	border-radius: 10px;
	padding: 10px 10px 10px 12px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sf-apply__plan:last-of-type {
	margin-bottom: 0;
}

.sf-apply__plan.is-active {
	border-color: #3f6fff;
	box-shadow: 0 0 0 1px #3f6fff inset;
}

.sf-apply__plan-left {
	flex: 1;
	min-width: 0;
}

.sf-apply__plan-left .sf-apply__plan-title {
	font-size: 14px;
	font-weight: 600;
	color: #1f2430;
	line-height: 1.3;
}

.sf-apply__plan-left .sf-apply__plan-sub {
	font-size: 11px;
	color: #9aa0af;
	margin-top: 3px;
	line-height: 1.35;
}

.sf-apply__plan-interest {
	font-variant-numeric: tabular-nums;
}

.sf-apply__plan-right {
	flex-shrink: 0;
	width: 72px;
	text-align: right;
}

.sf-apply__plan-fee-label {
	font-size: 11px;
	color: #9aa0af;
	line-height: 1.25;
}

.sf-apply__plan-fee {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 700;
	color: #1f2430;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sf-apply__radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #d3d7e0;
	position: relative;
	flex-shrink: 0;
}

.sf-apply__plan.is-active .sf-apply__radio {
	border-color: #3f6fff;
}

.sf-apply__plan.is-active .sf-apply__radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #3f6fff;
}

/* 优惠券 / 账户行 */
.sf-apply__line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 2px;
	font-size: 13px;
	color: #6b7280;
}

.sf-apply__line + .sf-apply__line {
	border-top: 1px solid #f4f5f7;
}

.sf-apply__coupon {
	color: #ff7a18;
	font-weight: 600;
}

.sf-apply__banks {
	display: flex;
	align-items: center;
}

.sf-apply__bank {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	margin-left: -5px;
	border: 2px solid #fff;
	font-size: 10px;
	color: #fff;
	line-height: 16px;
	text-align: center;
	font-weight: 700;
}

.sf-apply__bank:first-child {
	margin-left: 0;
}

.sf-apply__bank--1 {
	background: #00875a;
}
.sf-apply__bank--2 {
	background: #c8102e;
}
.sf-apply__bank--3 {
	background: #005bac;
}
.sf-apply__bank--more {
	background: #d7dae1;
	color: #6b7280;
}

/* 底部操作卡 */
.sf-apply__foot {
	margin: 8px 10px 0;
	background: #ffffff;
	border-radius: 14px;
	padding: 14px 14px 12px;
	box-shadow: 0 4px 16px rgba(20, 30, 60, 0.05);
	flex-shrink: 0;
}

.sf-apply__phone {
	display: flex;
	align-items: center;
	background: #f5f6f8;
	border-radius: 10px;
	padding: 0 12px;
	height: 44px;
	gap: 10px;
	border: 1.5px solid transparent;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.sf-apply__phone.is-error {
	border-color: #ff4d4f;
	background: #fff5f5;
}

.sf-apply__phone-label {
	color: #1f2430;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.sf-apply__phone input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	color: #1f2430;
	min-width: 0;
}

.sf-apply__phone input::placeholder {
	color: #b5bac4;
}

.sf-apply__submit {
	margin-top: 12px;
	width: 100%;
	height: 46px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(180deg, #4a86ff 0%, #3f6fff 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(63, 111, 255, 0.25);
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.sf-apply__submit:active {
	transform: scale(0.99);
	opacity: 0.92;
}

.sf-apply__agree {
	margin-top: 10px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.45;
}

.sf-apply__check {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #3f6fff;
	flex-shrink: 0;
	margin-top: 1px;
	position: relative;
	cursor: pointer;
}

.sf-apply__check::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.sf-apply__check.is-off {
	background: #fff;
	border: 1.5px solid #cbd0da;
}

.sf-apply__check.is-off::after {
	display: none;
}

.sf-apply__agree a {
	color: #3f6fff;
	text-decoration: none;
}

/* 免责声明 */
.sf-apply__disclaimer {
	margin: 6px 14px 8px;
	margin-bottom: auto;
	text-align: center;
	color: #a4a9b4;
	font-size: 10px;
	line-height: 1.55;
	flex-shrink: 0;
}

.sf-apply__disclaimer strong {
	color: #8b91a1;
	font-weight: 600;
	display: block;
	margin-bottom: 0;
	font-size: 10px;
}

/* 极矮屏幕再压缩 */
@media (max-height: 700px) {
	.sf-marquee {
		height: 28px;
		min-height: 28px;
		line-height: 28px;
		font-size: 11px;
	}

	.sf-apply__card {
		padding: 10px 12px 8px;
		margin-top: 6px;
	}

	.sf-apply__amount-yen,
	.sf-apply__amount-input {
		font-size: 26px;
	}

	.sf-apply__notice {
		margin: 8px 0;
		padding: 6px 8px;
		font-size: 11px;
	}

	.sf-apply__plan {
		padding: 8px 10px;
		margin-bottom: 6px;
	}

	.sf-apply__plan-left .sf-apply__plan-title {
		font-size: 13px;
	}

	.sf-apply__foot {
		padding: 10px 12px;
		margin-top: 6px;
	}

	.sf-apply__submit {
		height: 42px;
		margin-top: 10px;
	}

	.sf-apply__disclaimer {
		margin: 4px 12px 6px;
		font-size: 9px;
		line-height: 1.45;
	}
}
