/**
 * 融资匹配页 — 对齐参考 https://wzylnoxrf4ly6.ok.kimi.link/
 */
:root {
	--rz-bg: #f4f8fb;
	--rz-primary: #0a4d8f;
	--rz-primary-hover: #083d72;
	--rz-text: #1c2b39;
	--rz-muted: #8d9ba8;
	--rz-border: #d0d8e0;
	--rz-danger: #ff6b4a;
	--rz-card-shadow: 0 2px 12px rgba(10, 77, 143, 0.06);
}

html,
body {
	background: var(--rz-bg);
	color: var(--rz-text);
	font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page {
	min-height: 100dvh;
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
	background: var(--rz-bg);
}

/* 3D 水晶场景 */
.crystal-scene {
	position: relative;
	width: 100%;
	height: 42vh;
	min-height: 220px;
	max-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(180deg, #eaf2f8 0%, #f4f8fb 100%);
}

.crystal-wrapper {
	width: 160px;
	height: 160px;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.1s linear;
}

.crystal-wrapper .face {
	position: absolute;
	width: 160px;
	height: 160px;
	background: rgba(79, 142, 196, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: rz-shimmer 6s infinite alternate;
}

.crystal-wrapper .face:nth-child(1) { transform: rotateY(0deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(2) { transform: rotateY(60deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(3) { transform: rotateY(120deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(4) { transform: rotateY(180deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(5) { transform: rotateY(240deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(6) { transform: rotateY(300deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(7) { transform: rotateX(60deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(8) { transform: rotateX(120deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(9) { transform: rotateX(240deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(10) { transform: rotateX(300deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(11) { transform: rotateX(180deg) rotateY(30deg) translateZ(92px); }
.crystal-wrapper .face:nth-child(12) { transform: rotateX(0deg) rotateY(30deg) translateZ(92px); }

@keyframes rz-shimmer {
	0% { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 15px rgba(79, 142, 196, 0.1); }
	100% { border-color: rgba(255, 255, 255, 0.9); box-shadow: 0 0 30px rgba(79, 142, 196, 0.3); }
}

.rz-back {
	position: absolute;
	left: 14px;
	top: calc(10px + env(safe-area-inset-top, 0));
	z-index: 5;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(208, 216, 224, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rz-primary);
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(10, 77, 143, 0.08);
}

.hero-copy {
	text-align: center;
	padding: 0 20px 20px;
	background: linear-gradient(180deg, #f4f8fb 0%, #fff 100%);
}

.rz-hero-tagline {
	font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
	font-size: 16px;
	font-weight: 500;
	color: var(--rz-text);
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}

.rz-hero-amount {
	font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
	font-size: 16px;
	font-weight: 500;
	color: var(--rz-text);
	line-height: 1.2;
	margin-bottom: 10px;
}

.rz-hero-amount .rz-num {
	font-size: 40px;
	font-weight: 700;
	color: var(--rz-primary);
	letter-spacing: 0.02em;
	margin: 0 2px;
	vertical-align: -2px;
}

.rz-hero-tags {
	font-size: 12px;
	color: var(--rz-muted);
	letter-spacing: 0.04em;
}

.rz-guest-banner {
	margin: 0 16px 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff;
	color: var(--rz-primary);
	font-size: 12px;
	line-height: 1.55;
	box-shadow: var(--rz-card-shadow);
}

/* 表单白底区 */
.form-panel {
	background: #fff;
	padding: 8px 20px 28px;
}

.card-form.rz-used-mode .rz-form-block {
	display: none;
}

.form-title {
	font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--rz-text);
	text-align: center;
	margin-bottom: 24px;
	position: relative;
	padding-bottom: 12px;
}

.form-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 40px;
	height: 3px;
	border-radius: 999px;
	background: var(--rz-primary);
	opacity: 0.85;
}

.form-group {
	position: relative;
	margin-bottom: 16px;
}

.form-input {
	width: 100%;
	height: 52px;
	padding: 20px 0 8px;
	font-size: 16px;
	color: var(--rz-text);
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--rz-border);
	outline: none;
	transition: border-color 0.3s ease;
	font-family: inherit;
}

.form-input:focus {
	border-bottom-color: var(--rz-primary);
}

.form-input:disabled {
	color: var(--rz-muted);
}

.form-label {
	position: absolute;
	left: 0;
	top: 16px;
	font-size: 16px;
	color: var(--rz-muted);
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-label .req {
	color: var(--rz-danger);
	margin-right: 2px;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
	top: 0;
	font-size: 12px;
	color: var(--rz-primary);
}

.form-underline {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--rz-primary);
	transform: scaleX(0);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: center;
}

.form-input:focus ~ .form-underline {
	transform: scaleX(1);
}

.agree-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 20px 0 18px;
	font-size: 12px;
	color: var(--rz-muted);
	line-height: 1.55;
}

.agree-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-top: 1px;
	flex-shrink: 0;
	accent-color: var(--rz-primary);
}

.agree-row a {
	color: var(--rz-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.btn-primary {
	width: 100%;
	border: none;
	border-radius: 999px;
	padding: 15px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--rz-primary);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(10, 77, 143, 0.28);
	font-family: inherit;
}

.btn-primary:active {
	background: var(--rz-primary-hover);
}

.btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rz-main {
	padding: 16px 16px 0;
}

.rz-invite-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: linear-gradient(135deg, #eaf2f8 0%, #e3f0fa 100%);
	border-radius: 12px;
	padding: 16px 14px;
	margin-bottom: 16px;
}

.rz-invite-text strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--rz-text);
	margin-bottom: 4px;
	line-height: 1.4;
}

.rz-invite-text span {
	font-size: 11px;
	color: var(--rz-muted);
	line-height: 1.45;
}

.rz-invite-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.rz-invite-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 72px;
	height: 58px;
	padding: 6px;
	border-radius: 8px;
	border: 1px solid rgba(10, 77, 143, 0.35);
	background: #fff;
	color: var(--rz-primary);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.rz-invite-btn svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.rz-advisor {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 20px;
	box-shadow: var(--rz-card-shadow);
}

.rz-advisor-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #eaf2f8;
}

.rz-advisor-text {
	flex: 1;
	min-width: 0;
}

.rz-advisor-text strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--rz-text);
	margin-bottom: 3px;
}

.rz-advisor-text span {
	font-size: 12px;
	color: var(--rz-muted);
}

.rz-advisor-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.rz-advisor-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none;
	border: none;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

.rz-advisor-btn.chat {
	background: #fff;
	border: 1.5px solid var(--rz-primary);
	color: var(--rz-primary);
}

.rz-advisor-btn.phone {
	background: var(--rz-primary);
	color: #fff;
	box-shadow: 0 3px 10px rgba(10, 77, 143, 0.25);
}

.rz-advisor-btn svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.rz-section-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.rz-section-head::before {
	content: "";
	width: 4px;
	height: 18px;
	border-radius: 2px;
	background: var(--rz-primary);
	flex-shrink: 0;
}

.rz-section-head h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--rz-text);
	margin: 0;
}

.rz-section-desc {
	font-size: 13px;
	color: var(--rz-muted);
	line-height: 1.65;
	margin-bottom: 14px;
}

.rz-feat-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.rz-feat-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--rz-card-shadow);
}

.rz-feat-ico {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(180deg, #eaf2f8 0%, #dceaf5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--rz-primary);
}

.rz-feat-ico svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}

.rz-feat-body strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--rz-text);
	margin-bottom: 5px;
	line-height: 1.35;
}

.rz-feat-body p {
	font-size: 12px;
	color: var(--rz-muted);
	line-height: 1.6;
	margin: 0;
}

.rz-trust-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 11px;
	color: var(--rz-muted);
	padding: 8px 0 16px;
}

.rz-trust-foot span::before {
	content: "•";
	margin-right: 6px;
	opacity: 0.7;
}

.card-result {
	display: none;
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: var(--rz-card-shadow);
	margin-bottom: 16px;
}

.card-result.show {
	display: block;
}

.card-result .tit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 600;
	color: var(--rz-text);
	margin-bottom: 8px;
}

.card-result .tit span {
	font-size: 12px;
	color: var(--rz-primary);
}

.card-result .info {
	font-size: 13px;
	color: var(--rz-muted);
	line-height: 1.6;
}
