:root {
	--bg: #0a1628;
	--bg-deep: #060f1d;
	--fg: #f0f2f8;
	--muted: #7a8ba8;
	--accent: #ff5c8a;
	--accent-light: #ff8aaf;
	--accent-glow: rgba(255, 92, 138, 0.35);
	--card: rgba(255, 255, 255, 0.04);
	--card-border: rgba(255, 255, 255, 0.07);
	--radius: 14px;
	--radius-sm: 10px;
	--font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--fg);
	min-height: 100dvh;
	overflow-x: hidden;
	line-height: 1.6;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
	font-size: inherit;
}

/* ===== 背景 ===== */
.bg-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.bg-layer::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 50% at 20% 10%, rgba(255, 92, 138, 0.08) 0%, transparent 60%),
		radial-gradient(ellipse 50% 60% at 80% 90%, rgba(120, 80, 220, 0.06) 0%, transparent 60%),
		radial-gradient(ellipse 80% 40% at 50% 50%, rgba(255, 92, 138, 0.03) 0%, transparent 70%),
		linear-gradient(170deg, var(--bg-deep) 0%, var(--bg) 40%, #0d1f3c 100%);
}

.bg-sheen {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 30%, rgba(255, 92, 138, 0.04) 45%, rgba(255, 140, 180, 0.06) 50%, rgba(255, 92, 138, 0.04) 55%, transparent 70%);
	background-size: 300% 300%;
	animation: sheenMove 8s ease-in-out infinite;
}

@keyframes sheenMove {

	0%,
	100% {
		background-position: 100% 0%;
	}

	50% {
		background-position: 0% 100%;
	}
}

#petalCanvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ===== 容器 ===== */
.shell {
	position: relative;
	z-index: 1;
	max-width: 440px;
	margin: 0 auto;
	padding: 20px 16px 40px;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

/* ===== 顶部 ===== */
.top {
	position: sticky;
	top: 0;
	z-index: 10;
	padding: 12px 0 0;
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	backdrop-filter: blur(20px) saturate(1.4);
}

.top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.title {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
	animation: dotPulse 2.5s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes dotPulse {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.5;
		transform: scale(0.7);
	}
}

.top-actions {
	display: flex;
	gap: 6px;
}

.pill {
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 500;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.pill.ghost {
	border: 1px solid var(--card-border);
	background: var(--card);
	color: var(--muted);
}

.pill.ghost:hover {
	border-color: rgba(255, 92, 138, 0.3);
	color: var(--accent-light);
	background: rgba(255, 92, 138, 0.06);
}

.pill.ghost:active {
	transform: scale(0.95);
}

.banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: rgba(255, 92, 138, 0.06);
	border: 1px solid rgba(255, 92, 138, 0.1);
	animation: bannerIn 0.8s ease-out 0.3s both;
}

@keyframes bannerIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.check {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--accent), #d4456a);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 900;
	color: #fff;
	flex-shrink: 0;
}

.banner-title {
	font-size: 0.82rem;
	font-weight: 600;
}

.banner-sub {
	font-size: 0.72rem;
	color: var(--muted);
	margin-top: 1px;
}

/* ===== 主内容 ===== */
.main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 28px;
}

/* ===== Hero ===== */
.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	animation: heroIn 0.9s ease-out 0.1s both;
}

@keyframes heroIn {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.icon-wrap {
	position: relative;
	width: 120px;
	height: 120px;
}

.icon-wrap::before {
	content: '';
	position: absolute;
	inset: -12px;
	border-radius: 36px;
	background: conic-gradient(from 0deg, var(--accent), rgba(255, 140, 180, 0.3), rgba(180, 100, 220, 0.2), var(--accent));
	animation: iconRingSpin 6s linear infinite;
	opacity: 0.5;
	filter: blur(12px);
}

@keyframes iconRingSpin {
	to {
		transform: rotate(360deg);
	}
}

.icon-wrap::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(255, 92, 138, 0.4), rgba(180, 100, 220, 0.3));
	z-index: 0;
}

.icon-fallback {
	position: relative;
	z-index: 1;
	width: 120px;
	height: 120px;
	border-radius: 26px;
	background: linear-gradient(145deg, #1a2744, #0f1b30);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.icon-fallback svg {
	width: 64px;
	height: 64px;
}

.tagline {
	font-size: 0.92rem;
	color: var(--muted);
}

.chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 500;
	background: var(--card);
	border: 1px solid var(--card-border);
	color: var(--muted);
}

.chip-ico {
	font-size: 0.65rem;
	opacity: 0.6;
}

/* 设备标签特殊样式 */
.chip-device {
	border-color: rgba(255, 92, 138, 0.2);
	background: rgba(255, 92, 138, 0.06);
	color: var(--accent-light);
}

.chip-device .chip-ico {
	opacity: 1;
	color: var(--accent);
}

/* ===== 下载按钮 ===== */
.cta-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	animation: ctaIn 0.9s ease-out 0.35s both;
}

@keyframes ctaIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cta {
	position: relative;
	width: 100%;
	max-width: 320px;
	padding: 16px 32px;
	border-radius: 100px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	background: linear-gradient(135deg, var(--accent) 0%, #d4456a 100%);
	box-shadow: 0 4px 20px var(--accent-glow), 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transition: all 0.3s ease;
	overflow: hidden;
}

.cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.15) 55%, transparent 70%);
	background-size: 250% 100%;
	animation: ctaShine 3s ease-in-out infinite;
}

@keyframes ctaShine {

	0%,
	100% {
		background-position: 200% center;
	}

	50% {
		background-position: -50% center;
	}
}

.cta::after {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 100px;
	background: transparent;
	border: 2px solid var(--accent);
	opacity: 0;
	animation: ctaPulse 2.5s ease-out infinite;
}

@keyframes ctaPulse {
	0% {
		opacity: 0.6;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(1.08);
	}
}

.cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px var(--accent-glow), 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta:active {
	transform: translateY(0) scale(0.97);
}

.cta.downloading {
	pointer-events: none;
	background: linear-gradient(135deg, #8a3a55, #6a2a42);
}

.cta .btn-text {
	position: relative;
	z-index: 1;
}

.cta .progress-bar {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 0 0 100px 100px;
	width: 0%;
	transition: width 0.3s ease;
	z-index: 1;
}

.hint {
	font-size: 0.75rem;
	color: var(--muted);
	opacity: 0.7;
}

/* ===== FAQ ===== */
.faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	animation: faqIn 0.9s ease-out 0.5s both;
}

@keyframes faqIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.faq-title {
	font-size: 1rem;
	font-weight: 700;
	padding-bottom: 4px;
}

.card.guide {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--card-border);
	text-align: left;
	transition: all 0.3s ease;
}

.card.guide:hover {
	border-color: rgba(255, 92, 138, 0.25);
	background: rgba(255, 92, 138, 0.04);
	transform: translateX(4px);
}

.card.guide:active {
	transform: scale(0.98);
}

.guide-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255, 92, 138, 0.15), rgba(255, 92, 138, 0.05));
	border: 1px solid rgba(255, 92, 138, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 1rem;
	color: var(--accent);
	flex-shrink: 0;
}

.guide-title {
	font-size: 0.88rem;
	font-weight: 600;
}

.guide-meta {
	font-size: 0.72rem;
	color: var(--muted);
	margin-top: 2px;
}

.accordion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	background: var(--card);
	border: 1px solid var(--card-border);
	font-size: 0.84rem;
	font-weight: 500;
	text-align: left;
	gap: 12px;
	transition: all 0.25s ease;
}

.accordion:hover {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
}

.accordion[aria-expanded="true"] {
	border-color: rgba(255, 92, 138, 0.2);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	background: rgba(255, 92, 138, 0.04);
}

.chev {
	font-size: 0.9rem;
	color: var(--muted);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	flex-shrink: 0;
	line-height: 1;
}

.chev.open {
	transform: rotate(180deg);
	color: var(--accent);
}

.accordion-body {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
	padding: 0 16px;
	background: rgba(255, 92, 138, 0.02);
	border: 1px solid transparent;
	border-top: none;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	font-size: 0.8rem;
	color: var(--muted);
	line-height: 1.7;
}

.accordion-body.open {
	max-height: 200px;
	opacity: 1;
	padding: 12px 16px 14px;
	border-color: rgba(255, 92, 138, 0.15);
}

/* ===== 面板通用 ===== */
.overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}

.panel {
	width: 100%;
	max-width: 440px;
	background: linear-gradient(180deg, #152038 0%, #0d1829 100%);
	border: 1px solid var(--card-border);
	border-bottom: none;
	border-radius: 24px 24px 0 0;
	padding: 28px 24px 36px;
	transform: translateY(100%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
}

.overlay.active .panel {
	transform: translateY(0);
}

.panel::before {
	content: '';
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 36px;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.15);
}

.panel-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--muted);
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
}

.panel-close:hover {
	background: rgba(255, 92, 138, 0.12);
	color: var(--accent);
	border-color: rgba(255, 92, 138, 0.2);
}

/* ===== 指南面板 ===== */
.guide-kicker {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
	margin-top: 8px;
}

.guide-heading {
	font-size: 1.2rem;
	font-weight: 800;
	margin-bottom: 20px;
}

.guide-steps {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
	counter-reset: step;
}

.guide-steps li {
	counter-increment: step;
	display: flex;
	gap: 12px;
	font-size: 0.84rem;
	color: var(--muted);
	line-height: 1.6;
}

.guide-steps li::before {
	content: counter(step);
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(255, 92, 138, 0.15), rgba(255, 92, 138, 0.05));
	border: 1px solid rgba(255, 92, 138, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--accent);
	flex-shrink: 0;
	margin-top: 1px;
}

/* 设备标识徽章 */
.device-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 0.78rem;
	font-weight: 600;
	background: rgba(255, 92, 138, 0.08);
	border: 1px solid rgba(255, 92, 138, 0.15);
	color: var(--accent-light);
	margin-bottom: 18px;
}

.device-badge svg {
	width: 16px;
	height: 16px;
}

.guide-cta {
	width: 100%;
	padding: 14px 24px;
	border-radius: 100px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--accent), #d4456a);
	box-shadow: 0 4px 20px var(--accent-glow);
	transition: all 0.3s ease;
}

.guide-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 28px var(--accent-glow);
}

.guide-cta:active {
	transform: scale(0.97);
}

/* ===== 分享面板 ===== */
.share-heading {
	font-size: 1.1rem;
	font-weight: 800;
	margin-bottom: 20px;
	margin-top: 4px;
}

.share-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.share-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px 4px;
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
}

.share-item:hover {
	background: var(--card);
}

.share-item:active {
	transform: scale(0.93);
}

.share-item-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.share-item-label {
	font-size: 0.7rem;
	color: var(--muted);
	text-align: center;
}

.share-link-box {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--card-border);
}

.share-link-box input {
	flex: 1;
	background: none;
	border: none;
	color: var(--muted);
	font-size: 0.78rem;
	font-family: var(--font);
	outline: none;
}

.share-copy-btn {
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent);
	background: rgba(255, 92, 138, 0.1);
	border: 1px solid rgba(255, 92, 138, 0.2);
	transition: all 0.2s ease;
	white-space: nowrap;
}

.share-copy-btn:hover {
	background: rgba(255, 92, 138, 0.18);
}

.share-copy-btn:active {
	transform: scale(0.95);
}

/* ===== Toast ===== */
.toast-container {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.toast {
	padding: 10px 20px;
	border-radius: 100px;
	font-size: 0.82rem;
	font-weight: 500;
	color: #fff;
	background: rgba(30, 45, 70, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	animation: toastIn 0.4s ease-out both;
	pointer-events: auto;
	white-space: nowrap;
}

.toast.success {
	border-color: rgba(80, 200, 120, 0.3);
	background: rgba(20, 60, 40, 0.95);
}

.toast.info {
	border-color: rgba(255, 92, 138, 0.3);
}

.toast.warn {
	border-color: rgba(255, 180, 50, 0.3);
	background: rgba(60, 45, 15, 0.95);
}

@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateY(-12px) scale(0.9);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes toastOut {
	to {
		opacity: 0;
		transform: translateY(-12px) scale(0.9);
	}
}

/* ===== 底部 ===== */
.footer-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 24px;
	font-size: 0.7rem;
	color: rgba(122, 139, 168, 0.5);
}

.footer-badge svg {
	width: 14px;
	height: 14px;
	opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 440px) {
	.shell {
		padding: 16px 14px 32px;
	}

	.panel {
		padding: 24px 18px 30px;
	}
}