/* register-nova: 注册类型选择页 — 绿蓝渐变 + 侧栏丰富内容 + 磨砂操作区 */

:root {
	--rn-bg-mint: #8ad4a4;
	--rn-bg-sky: #59cee8;
	--rn-ink: #14324a;
	--rn-ink-muted: rgba(20, 50, 74, 0.72);
	--rn-ink-soft: rgba(20, 50, 74, 0.5);
	--rn-card: rgba(255, 255, 255, 0.86);
	--rn-card-border: rgba(255, 255, 255, 0.95);
}

html {
	scroll-behavior: smooth;
}

body.reg-nova-page {
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	background: linear-gradient(148deg, var(--rn-bg-mint) 0%, var(--rn-bg-sky) 100%);
	color: var(--rn-ink);
	font-family: ui-sans-serif, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.reg-nova-page::before,
body.reg-nova-page::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

body.reg-nova-page::before {
	background:
		radial-gradient(ellipse 75% 60% at 8% 25%, rgba(255, 255, 255, 0.38), transparent 55%),
		radial-gradient(ellipse 65% 50% at 92% 70%, rgba(255, 255, 255, 0.28), transparent 50%),
		linear-gradient(148deg, var(--rn-bg-mint) 0%, var(--rn-bg-sky) 100%);
}

body.reg-nova-page::after {
	opacity: 0.32;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
	mix-blend-mode: soft-light;
}

/* 主布局：左宽内容 + 右窄行动区 */
.rn-shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, 420px);
	gap: clamp(22px, 4vw, 48px);
	align-items: start;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(18px, 3.5vw, 44px) clamp(16px, 3vw, 36px) 48px;
	box-sizing: border-box;
	min-height: calc(100vh - 130px);
}

.rn-aside {
	padding: clamp(8px, 1.5vw, 16px) 0 20px;
}

.rn-kicker {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: rgba(20, 50, 74, 0.45);
}

.rn-title {
	margin: 0 0 14px;
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	background: linear-gradient(115deg, #0d3d38 5%, #156080 50%, #0a5c48 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rn-lead {
	margin: 0 0 22px;
	max-width: 36em;
	font-size: 15px;
	line-height: 1.75;
	color: var(--rn-ink-muted);
}

.rn-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0 0 26px;
}

.rn-pills span {
	display: inline-flex;
	align-items: center;
	padding: 7px 13px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--rn-ink);
	background: rgba(255, 255, 255, 0.52);
	border: 1px solid rgba(255, 255, 255, 0.72);
	box-shadow: 0 3px 14px rgba(20, 50, 74, 0.07);
}

/* Bento 信息块 */
.rn-bento {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.rn-bento-cell {
	padding: 16px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 28px rgba(20, 50, 74, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-bento-cell:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 36px rgba(20, 50, 74, 0.12);
}

.rn-bento-cell h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	color: var(--rn-ink);
}

.rn-bento-cell p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--rn-ink-soft);
}

.rn-bento-cell.rn-bento-highlight {
	grid-column: span 2;
	display: flex;
	align-items: center;
	gap: 20px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38));
}

.rn-bento-num {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 900;
	color: #fff;
	background: linear-gradient(145deg, #2a9d8f, #2180a8);
	box-shadow: 0 10px 28px rgba(33, 128, 168, 0.35);
}

.rn-bento-highlight .rn-bento-body {
	flex: 1;
	min-width: 0;
}

.rn-bento-highlight h3 {
	font-size: 16px;
}

/* 横向时间线：注册流程 */
.rn-flow {
	margin-top: 8px;
	padding: 18px 20px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.4);
	border: 1px dashed rgba(20, 50, 74, 0.15);
}

.rn-flow-title {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(20, 50, 74, 0.42);
}

.rn-flow-track {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	position: relative;
}

.rn-flow-track::before {
	content: "";
	position: absolute;
	left: 12%;
	right: 12%;
	top: 15px;
	height: 2px;
	background: linear-gradient(90deg, var(--rn-bg-mint), var(--rn-bg-sky));
	border-radius: 999px;
	opacity: 0.65;
}

.rn-flow-step {
	position: relative;
	flex: 1;
	text-align: center;
	max-width: 120px;
}

.rn-flow-step i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 auto 8px;
	border-radius: 50%;
	font-style: normal;
	font-size: 13px;
	font-weight: 800;
	color: var(--rn-ink);
	background: #fff;
	border: 2px solid rgba(89, 206, 232, 0.65);
	box-shadow: 0 4px 12px rgba(20, 90, 110, 0.15);
	position: relative;
	z-index: 1;
}

.rn-flow-step strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--rn-ink);
	line-height: 1.3;
}

.rn-flow-step small {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--rn-ink-soft);
	line-height: 1.35;
}

/* 右侧操作卡片 */
.rn-panel {
	position: sticky;
	top: 24px;
	padding: 10px 0 24px;
}

.rn-card {
	position: relative;
	padding: clamp(22px, 3.5vw, 32px);
	border-radius: 24px;
	background: var(--rn-card);
	border: 1px solid var(--rn-card-border);
	box-shadow:
		0 22px 56px rgba(20, 50, 74, 0.14),
		0 0 0 1px rgba(89, 206, 232, 0.2) inset;
	backdrop-filter: blur(16px);
	transform: rotate(1deg);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rn-card:hover {
	transform: rotate(0deg) translateY(-2px);
	box-shadow: 0 28px 64px rgba(20, 50, 74, 0.16);
}

.rn-card::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(128deg, rgba(138, 212, 164, 0.55), rgba(89, 206, 232, 0.5), transparent 58%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	opacity: 0.75;
}

.rn-card-head {
	margin-bottom: 18px;
	text-align: center;
}

.rn-card-head h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--rn-ink);
	letter-spacing: -0.02em;
}

.rn-card-head p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rn-ink-soft);
}

/* 步骤条（卡片内） */
.rn-steps {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 22px;
	padding: 12px 10px;
	border-radius: 14px;
	background: rgba(138, 212, 164, 0.15);
	border: 1px solid rgba(89, 206, 232, 0.25);
}

.rn-step {
	flex: 1;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: rgba(20, 50, 74, 0.42);
	line-height: 1.25;
}

.rn-step::before {
	content: attr(data-step);
	display: block;
	width: 26px;
	height: 26px;
	line-height: 26px;
	margin: 0 auto 6px;
	border-radius: 50%;
	font-size: 12px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(20, 50, 74, 0.1);
}

.rn-step.rn-step-active {
	color: var(--rn-ink);
}

.rn-step.rn-step-active::before {
	background: linear-gradient(145deg, var(--rn-bg-mint), var(--rn-bg-sky));
	color: #0c2a32;
	font-weight: 900;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(20, 90, 110, 0.2);
}

/* 注册选项大卡片 */
.rn-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

a.rn-option {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 16px 16px 16px 18px;
	border-radius: 18px;
	text-decoration: none;
	color: inherit;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(20, 50, 74, 0.1);
	box-shadow: 0 6px 20px rgba(20, 50, 74, 0.06);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

a.rn-option:hover {
	transform: translateX(4px);
	border-color: rgba(89, 206, 232, 0.55);
	box-shadow: 0 12px 32px rgba(20, 90, 110, 0.12);
	background: #fff;
}

a.rn-option:focus-visible {
	outline: 2px solid #2180a8;
	outline-offset: 2px;
}

.rn-option-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #1a5f73;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(20, 50, 74, 0.12);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.rn-option-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

a.rn-option:hover .rn-option-icon {
	color: #0d4a5c;
	border-color: rgba(89, 206, 232, 0.45);
}

a.rn-option.rn-option-org .rn-option-icon {
	color: #156080;
	border-color: rgba(21, 96, 128, 0.2);
}

a.rn-option.rn-option-org:hover .rn-option-icon {
	color: #0d4d66;
	border-color: rgba(33, 128, 168, 0.4);
}

.rn-option-body h3 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 800;
	color: var(--rn-ink);
}

.rn-option-body p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--rn-ink-soft);
}

.rn-option-go {
	font-size: 18px;
	font-weight: 300;
	color: rgba(20, 50, 74, 0.35);
	transition: transform 0.2s, color 0.2s;
}

a.rn-option:hover .rn-option-go {
	transform: translateX(4px);
	color: #2180a8;
}

.rn-foot {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid rgba(20, 50, 74, 0.1);
	text-align: center;
	font-size: 13px;
	color: var(--rn-ink-soft);
}

.rn-foot a {
	margin-left: 6px;
	font-weight: 700;
	color: #1a6b8c;
	text-decoration: none;
	border-bottom: 1px solid rgba(26, 107, 140, 0.35);
}

.rn-foot a:hover {
	color: #0d4d66;
}

@media (max-width: 920px) {
	.rn-shell {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.rn-panel {
		position: static;
		order: 1;
		padding-top: 0;
	}

	.rn-aside {
		order: 2;
		text-align: center;
	}

	.rn-lead {
		margin-left: auto;
		margin-right: auto;
	}

	.rn-pills {
		justify-content: center;
	}

	.rn-bento {
		grid-template-columns: 1fr;
	}

	.rn-bento-cell.rn-bento-highlight {
		grid-column: span 1;
		flex-direction: column;
		text-align: center;
	}

	.rn-flow-track {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.rn-flow-track::before {
		display: none;
	}

	.rn-flow-step {
		max-width: none;
		display: grid;
		grid-template-columns: 40px 1fr;
		text-align: left;
		align-items: center;
		gap: 12px;
	}

	.rn-flow-step i {
		margin: 0;
	}

	.rn-card {
		transform: none;
		max-width: 520px;
		margin: 0 auto;
	}

	.rn-card:hover {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rn-bento-cell,
	.rn-card,
	a.rn-option {
		transition: none;
	}

	a.rn-option:hover {
		transform: none;
	}
}
