/* 对齐歪柚 App：主题 #cf334b、暖底、圆角卡片 */
:root {
	--df: #cf334b;
	--df-deep: #b42a40;
	--ink: #292929;
	--secondary: #727272;
	--muted: #9a9da4;
	--page: #fffaf8;
	--surface: #f7f7f7;
	--line: #eceef0;
	--wash: #faf1f4;
	--card: #ffffff;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--dock-h: 168px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	min-height: 100%;
	background: var(--page);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
		"Segoe UI", Roboto, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
}

body {
	position: relative;
	overflow-x: hidden;
	padding-bottom: calc(var(--dock-h) + var(--safe-bottom));
}

/* 背景氛围：浅红 + 浅黄光斑，呼应吉祥物 */
.ambient {
	pointer-events: none;
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(207, 51, 75, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 196, 60, 0.18), transparent 50%),
		radial-gradient(ellipse 50% 35% at 0% 70%, rgba(207, 51, 75, 0.06), transparent 45%),
		linear-gradient(180deg, #fff8f6 0%, #ffffff 42%, #faf8f5 100%);
}

.page {
	position: relative;
	z-index: 1;
	max-width: 430px;
	margin: 0 auto;
	padding: calc(20px + var(--safe-top)) 20px 24px;
	animation: page-in 0.45s ease-out both;
}

@keyframes page-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* —— 顶栏品牌 —— */
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.brand-mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	object-fit: cover;
	background: #fff;
	box-shadow: 0 4px 14px rgba(207, 51, 75, 0.12);
}

.brand-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.brand-name {
	font-size: 18px;
	line-height: 26px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.brand-tag {
	font-size: 12px;
	line-height: 18px;
	color: var(--muted);
}

/* —— 分享卡片 —— */
.card {
	border-radius: 22px;
	background: var(--card);
	border: 1px solid var(--line);
	overflow: hidden;
}

.cover-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	background: #ffffff;
	overflow: hidden;
}

.cover {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 默认吉祥物：留白居中，不要被裁成满铺糊块 */
.cover.is-logo {
	width: 62%;
	height: auto;
	max-height: 68%;
	object-fit: contain;
	animation: mascot-float 3.2s ease-in-out infinite;
}

@keyframes mascot-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

.card-body {
	padding: 20px 18px 22px;
}

.kicker {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 10px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: var(--wash);
	color: var(--df);
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
}

.title {
	font-size: 22px;
	line-height: 32px;
	font-weight: 700;
	word-break: break-word;
}

.desc {
	margin-top: 10px;
	font-size: 14px;
	line-height: 22px;
	color: var(--secondary);
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* —— 卖点条 —— */
.feature-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 18px;
	padding: 0 4px;
}

.feature-item {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	font-size: 12px;
	line-height: 18px;
	color: var(--secondary);
}

.feature-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--df);
	opacity: 0.7;
}

/* —— 吸底操作 —— */
.dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	padding: 0 16px calc(12px + var(--safe-bottom));
	background: linear-gradient(180deg, rgba(255, 250, 248, 0), rgba(255, 250, 248, 0.92) 28%, #fffaf8 100%);
}

.dock-inner {
	max-width: 430px;
	margin: 0 auto;
	padding: 14px 16px 12px;
	border-radius: 20px 20px 16px 16px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--line);
	box-shadow: 0 -8px 28px rgba(41, 41, 41, 0.06);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 12px;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn + .btn {
	margin-top: 10px;
}

.btn:active {
	transform: scale(0.985);
	opacity: 0.92;
}

.btn-primary {
	background: linear-gradient(180deg, #d93d54 0%, var(--df) 100%);
	color: #fff;
	box-shadow: 0 8px 20px rgba(207, 51, 75, 0.28);
}

.btn-secondary {
	background: var(--surface);
	color: var(--ink);
}

.hint {
	margin-top: 12px;
	font-size: 12px;
	line-height: 18px;
	color: var(--muted);
	text-align: center;
}

/* —— 下载页 —— */
.download-hero {
	margin-top: 28px;
	padding: 36px 20px 28px;
	border-radius: 24px;
	text-align: center;
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: 0 12px 36px rgba(41, 41, 41, 0.05);
}

.download-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	margin: 0 auto 18px;
	border-radius: 32px;
	background: #ffffff;
	border: 1px solid var(--line);
}

.download-logo {
	width: 78px;
	height: 78px;
	object-fit: contain;
	animation: mascot-float 3.2s ease-in-out infinite;
}

.download-hero .kicker {
	margin-bottom: 8px;
}

.download-hero .title {
	margin-top: 4px;
}

.download-hero .desc {
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
}

/* —— 微信引导 —— */
.wx-mask {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100;
	padding: calc(12px + var(--safe-top)) 16px 24px;
	background: rgba(20, 22, 26, 0.78);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.wx-mask.is-on {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.wx-tip {
	align-self: flex-end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 132px;
	margin-right: 4px;
	animation: wx-tip-bounce 1.6s ease-in-out infinite;
}

.wx-tip-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
}

.wx-tip-arrow {
	display: block;
	width: 88px;
	height: 70px;
	margin-top: -4px;
	margin-right: 2px;
}

.wx-tip-text {
	margin-top: -6px;
	margin-right: 28px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--df);
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

@keyframes wx-tip-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(4px);
	}
}

.wx-panel {
	width: 100%;
	max-width: 340px;
	margin: 18px auto 0;
	padding: 20px 18px 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.wx-panel-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	margin: -4px -2px 0;
	border-radius: 14px;
	background: linear-gradient(180deg, var(--wash) 0%, #fff 100%);
}

.wx-panel-logo {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	object-fit: cover;
	background: #fff;
	box-shadow: 0 2px 8px rgba(207, 51, 75, 0.12);
}

.wx-panel-eyebrow {
	font-size: 12px;
	line-height: 18px;
	color: var(--df);
	font-weight: 600;
}

.wx-panel-head-text h2 {
	margin-top: 2px;
	font-size: 17px;
	line-height: 26px;
	font-weight: 600;
	color: var(--ink);
}

.wx-panel-lead {
	margin-top: 16px;
	font-size: 13px;
	line-height: 20px;
	color: var(--secondary);
}

.wx-steps {
	list-style: none;
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wx-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--surface);
}

.wx-step-no {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--df);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	font-weight: 600;
}

.wx-step-body {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--ink);
}

.wx-step-body em {
	font-style: normal;
	font-weight: 600;
	color: var(--df);
}

.wx-panel-btn {
	width: 100%;
	margin-top: 18px;
}
