/* 沄境礼品卡官网 - 基于 APP 原型视觉 */

:root {
	--bg: #ffffff;
	--bg-soft: #f7f8fa;
	--bg-dark: #1c1c1e;
	--text: #111827;
	--text-muted: #6b7280;
	--text-light: rgba(255, 255, 255, 0.72);
	--border: #e5e7eb;
	--red: #e23d3d;
	--red-soft: #fff1f1;
	--blue: #4a90e2;
	--blue-soft: #eef5fd;
	--green: #16a34a;
	--red-down: #dc2626;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 8px 32px rgba(17, 24, 39, 0.08);
	--shadow-lg: 0 24px 64px rgba(17, 24, 39, 0.12);
	--nav-h: 72px;
	--max-w: 1180px;
	--phone-w: 280px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
		"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: min(var(--max-w), calc(100% - 40px));
	margin: 0 auto;
}

/* ========== 导航 ========== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--nav-h);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
	border-color: var(--border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
	height: var(--nav-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.logo-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--red), #ff6b4a);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.nav-desktop {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav-desktop a {
	font-size: 15px;
	color: var(--text-muted);
	font-weight: 500;
	transition: color 0.2s;
}

.nav-desktop a:hover {
	color: var(--text);
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--bg-dark);
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	transition: transform 0.2s, opacity 0.2s;
}

.nav-cta:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: none;
	background: var(--bg-soft);
	border-radius: 10px;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
	display: none;
	position: fixed;
	top: var(--nav-h);
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid var(--border);
	padding: 16px 20px 24px;
	box-shadow: var(--shadow);
}

.nav-mobile.open {
	display: block;
}

.nav-mobile a {
	display: block;
	padding: 12px 0;
	font-size: 16px;
	color: var(--text);
	border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
	border-bottom: none;
	margin-top: 8px;
	text-align: center;
	background: var(--bg-dark);
	color: #fff;
	border-radius: 999px;
	padding: 14px;
}

/* ========== Hero ========== */
.hero {
	padding: calc(var(--nav-h) + 48px) 0 80px;
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--red-soft);
	color: var(--red);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 20px;
}

.hero-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--red);
}

.hero h1 {
	font-size: clamp(36px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}

.hero h1 em {
	font-style: normal;
	color: var(--red);
}

.hero-desc {
	font-size: 17px;
	color: var(--text-muted);
	line-height: 1.8;
	margin: 0 0 32px;
	max-width: 480px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 40px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--bg-dark);
	color: #fff;
	box-shadow: 0 8px 24px rgba(28, 28, 30, 0.2);
}

.btn-secondary {
	background: #fff;
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-blue {
	background: var(--blue);
	color: #fff;
	box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35);
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.hero-stat strong {
	display: block;
	font-size: 24px;
	font-weight: 800;
	color: var(--text);
}

.hero-stat span {
	font-size: 13px;
	color: var(--text-muted);
}

/* 手机 mockup */
.phone-showcase {
	position: relative;
	display: flex;
	justify-content: center;
}

.phone-frame {
	position: relative;
	width: var(--phone-w);
	padding: 12px;
	background: var(--bg-dark);
	border-radius: 40px;
	box-shadow: var(--shadow-lg);
}

.phone-frame::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 24px;
	background: #000;
	border-radius: 20px;
	z-index: 2;
}

.phone-screen {
	border-radius: 32px;
	overflow: hidden;
	background: #fff;
}

.phone-screen img {
	width: 100%;
	height: auto;
}

.phone-glow {
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(74, 144, 226, 0.15), transparent 70%);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: -1;
}

.float-card {
	position: absolute;
	background: #fff;
	border-radius: 14px;
	padding: 12px 16px;
	box-shadow: var(--shadow);
	font-size: 13px;
	font-weight: 600;
	animation: float 4s ease-in-out infinite;
}

.float-card.rate {
	top: 15%;
	right: -20px;
}

.float-card.rate .up {
	color: var(--green);
}

.float-card.wallet {
	bottom: 18%;
	left: -30px;
	animation-delay: 1s;
}

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

/* ========== 汇率预览 ========== */
.rates-section {
	padding: 80px 0;
	background: var(--bg-soft);
}

.section-head {
	text-align: center;
	margin-bottom: 48px;
}

.section-label {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var(--blue);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
}

.section-head h2 {
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 800;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.section-head p {
	color: var(--text-muted);
	font-size: 16px;
	margin: 0;
}

.rates-card {
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
	max-width: 720px;
	margin: 0 auto;
}

.rates-card-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rates-card-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.rates-live {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--green);
	font-weight: 600;
}

.rates-live::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.rate-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 16px;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 1px solid var(--border);
	transition: background 0.15s;
}

.rate-row:last-child {
	border-bottom: none;
}

.rate-row:hover {
	background: var(--bg-soft);
}

.rate-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.rate-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--red-soft);
	color: var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
}

.rate-price {
	font-size: 17px;
	font-weight: 700;
}

.rate-change {
	font-size: 13px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}

.rate-change.up {
	color: var(--green);
	background: #ecfdf5;
}

.rate-change.down {
	color: var(--red-down);
	background: #fef2f2;
}

/* ========== 功能模块 ========== */
.features-section {
	padding: 100px 0;
}

.feature-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	margin-bottom: 100px;
}

.feature-block:last-child {
	margin-bottom: 0;
}

.feature-block.reverse {
	direction: rtl;
}

.feature-block.reverse > * {
	direction: ltr;
}

.feature-tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 16px;
}

.feature-content h3 {
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.feature-content p {
	color: var(--text-muted);
	font-size: 16px;
	line-height: 1.8;
	margin: 0 0 24px;
}

.feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.feature-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 10px;
	font-size: 15px;
	color: var(--text);
}

.feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--blue);
	font-weight: 700;
}

.feature-visual {
	display: flex;
	justify-content: center;
}

.feature-visual .phone-frame {
	width: 260px;
}

/* ========== 流程 ========== */
.steps-section {
	padding: 80px 0;
	background: var(--bg-dark);
	color: #fff;
}

.steps-section .section-head h2,
.steps-section .section-head p {
	color: #fff;
}

.steps-section .section-head p {
	color: var(--text-light);
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.step-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
	transition: background 0.2s;
}

.step-card:hover {
	background: rgba(255, 255, 255, 0.1);
}

.step-num {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 20px;
}

.step-card h4 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px;
}

.step-card p {
	margin: 0;
	color: var(--text-light);
	font-size: 15px;
	line-height: 1.7;
}

/* ========== 下载 CTA ========== */
.cta-section {
	padding: 100px 0;
	text-align: center;
	background: linear-gradient(180deg, #fff, var(--blue-soft));
}

.cta-section h2 {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	margin: 0 0 16px;
}

.cta-section p {
	color: var(--text-muted);
	font-size: 17px;
	margin: 0 0 36px;
}

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

/* ========== 页脚 ========== */
.site-footer {
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	padding: 56px 0 32px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-brand p {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.7;
	margin: 12px 0 0;
	max-width: 280px;
}

.footer-col h5 {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-col a {
	display: block;
	color: var(--text-muted);
	font-size: 14px;
	margin-bottom: 10px;
	transition: color 0.2s;
}

.footer-col a:hover {
	color: var(--text);
}

.footer-bottom {
	padding-top: 24px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: var(--text-muted);
}

/* ========== 法律页 ========== */
.legal-page {
	padding: calc(var(--nav-h) + 48px) 0 80px;
}

.legal-card {
	max-width: 800px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 48px 40px;
}

.legal-card h1 {
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 8px;
	text-align: center;
}

.legal-meta {
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	margin-bottom: 32px;
}

.legal-card h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 28px 0 10px;
}

.legal-card p {
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 12px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--blue);
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 24px;
}

.back-link:hover {
	text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
	.hero-grid,
	.feature-block {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.feature-block.reverse {
		direction: ltr;
	}

	.hero-visual {
		order: -1;
	}

	.phone-showcase {
		transform: scale(0.9);
	}

	.float-card {
		display: none;
	}

	.steps-grid {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.nav-desktop {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.hero {
		padding-bottom: 48px;
	}

	.hero-stats {
		gap: 20px;
	}

	.rate-row {
		grid-template-columns: 1fr auto;
	}

	.rate-change {
		grid-column: 2;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.legal-card {
		padding: 32px 20px;
	}
}
