/* 首页专用。法务页与 404 继续用 style.css，两份互不引用。 */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("/fonts/bricolage-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("/fonts/bricolage-800.woff2") format("woff2");
	font-weight: 800;
	font-display: swap;
}

:root {
	--orange: #ea580c;
	--orange-deep: #9a3412;
	--ink: #111111;
	--ink-2: #4a4440;
	--ground: #ffffff;
	--ground-2: #f5f4f1;
	--rule: #e6e2dc;
	--on-orange-ink: #2b0e02;
	--on-dark: #d9d4ce;
	--on-dark-2: #b8b1aa;
	--sign: #ffb88a;
	--display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(20px, 5vw, 64px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	/* 首页只做亮色：两块品牌橙是这页的身份，不随系统切深色（法务页 style.css 另有深色）。 */
	color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #c9c2b9 var(--ground); }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font: 18px/1.6 var(--text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
::selection { background: var(--orange); color: #fff; }
a { -webkit-tap-highlight-color: rgba(234, 88, 12, 0.18); color: var(--orange-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 10;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	border-radius: 12px;
	font-weight: 600;
	text-decoration: none;
}
.skip:focus { top: 16px; outline: 3px solid #fff; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; }
p { margin: 0; text-wrap: pretty; }

/* ---------- 首屏：整块品牌橙 ---------- */
.hero {
	background: var(--orange);
	color: #fff;
	overflow: hidden;
}
.hero a:focus-visible { outline-color: #fff; }
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 28px;
	padding-bottom: 28px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: -0.02em;
}
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 2px 8px rgba(80, 20, 0, 0.25); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--on-orange-ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.nav-links a:hover { text-decoration: underline; }

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 24px;
	align-items: center;
	min-height: clamp(620px, calc(100svh - 100px), 800px);
}
.hero-copy { padding: 24px 0 96px; }
.hero h1 {
	font-size: clamp(46px, 5.6vw, 82px);
	line-height: 0.96;
	letter-spacing: -0.035em;
}
.hero .tag { font-size: clamp(24px, 1.9vw, 26px); line-height: 1.4; margin-top: 28px; max-width: 30ch; }
.hero .meds { margin-top: 36px; font-size: 15px; line-height: 1.5; color: var(--on-orange-ink); max-width: 44ch; }

/* 下载入口：Apple 官方黑色徽章原样用（developer.apple.com 的 US 版 SVG），显示高度不低于 40px */
.get { margin-top: 36px; }
.get a { display: inline-block; }
.get img { display: block; }

.hero-phones {
	position: relative;
	align-self: end;
	height: 100%;
	min-height: 560px;
}
.hero-phones .phone { position: absolute; bottom: -160px; }
.hero-phones .phone.front { right: 4%; width: min(360px, 78%); z-index: 2; }
.hero-phones .phone.back { right: 50%; width: min(300px, 62%); bottom: -60px; transform: rotate(-6deg); z-index: 1; opacity: 0.98; }

/* ---------- 手机：模拟器整屏截图 + Apple 官方 iPhone 17 Pro Max 外框（Apple Design Resources） ---------- */
/* 外框图 1470×3000，屏幕挖空在 (75,66)，1320×2868，与模拟器截图同尺寸。 */
.phone {
	position: relative;
	aspect-ratio: 1470 / 3000;
	filter: drop-shadow(0 28px 36px rgba(60, 20, 0, 0.28)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18));
}
.phone .screen {
	position: absolute;
	left: 5.102%;
	top: 2.2%;
	width: 89.796%;
	height: 95.6%;
	object-fit: cover;
	border-radius: 9% / 4.2%;
}
.phone .bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 放大的局部：从同一张截图里裁出来的真像素，不另画 */
.zoom {
	position: absolute;
	z-index: 3;
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 24px 48px -16px rgba(60, 20, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.08);
}
.zoom img { display: block; height: auto; }
/* 放大卡放在手机里，按手机宽度定位，整块盖住它放大的那片屏幕 */
.zoom-duel { width: 120%; left: -10%; top: 38.4%; aspect-ratio: 1 / 0.543; }
.zoom-duel img { width: 108.1%; margin-left: -4.03%; margin-top: -100.6%; }
.zoom-dose { width: 120%; left: -10%; top: 41.4%; aspect-ratio: 1 / 0.3825; }
.zoom-dose img { width: 108.05%; margin-left: -4.03%; margin-top: -104.7%; }
.sample {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -40px;
	text-align: center;
	font-size: 14px;
	color: var(--ink-2);
}
.feature.dark .sample { color: var(--on-dark-2); }

/* ---------- 功能段 ---------- */
.feature { padding: clamp(80px, 10vw, 140px) 0; overflow-x: clip; }
.feature.alt { background: var(--ground-2); }
.feature-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 34rem; }
.feature-copy p { margin-top: 24px; color: var(--ink-2); }
.feature-copy h2 + p { margin-top: 32px; }
.feature-copy p.lede { color: var(--ink); font-size: clamp(20px, 1.6vw, 23px); line-height: 1.5; }
.note {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
	font-size: 16px;
	color: var(--orange-deep);
	font-weight: 600;
}
.feature-media { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.feature-media .phone { width: min(380px, 100%); }
.feature-media.pair .phone { width: min(320px, 48%); }
.feature-media.pair .phone:last-child { transform: translateY(-48px); }

/* ---------- 社区 + 创始人：深色段 ---------- */
.feature.dark { background: var(--ink); color: #fff; }
.feature.dark .feature-copy p { color: var(--on-dark); }
.feature.dark .feature-copy p.lede { color: #fff; }
.feature.dark .phone { filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.6)); }
.feature.dark .feature-copy p.sign { font-family: var(--display); font-weight: 700; color: var(--sign); font-size: 19px; }

/* ---------- 问答 ---------- */
.faq { padding: clamp(80px, 10vw, 130px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px) clamp(32px, 6vw, 96px); }
.faq-grid .disclaimer { grid-column: 2; }
@media (max-width: 1100px) {
	.faq-grid { grid-template-columns: 1fr; }
	.faq-grid .disclaimer { grid-column: 1; }
}
.faq dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 4vw, 64px); }
.faq dt { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.faq dd { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; }
.disclaimer {
	margin-top: clamp(8px, 1vw, 16px);
	padding-top: 24px;
	border-top: 1px solid var(--rule);
	font-size: 15px;
	color: var(--ink-2);
	max-width: 60ch;
}

/* ---------- 收尾：再一次品牌橙 ---------- */
.close { background: var(--orange); color: #fff; overflow: hidden; }
.close-grid {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 40px;
	align-items: center;
	padding-top: clamp(72px, 8vw, 112px);
	padding-bottom: clamp(72px, 8vw, 112px);
}
.close-grid > img { width: clamp(88px, 9vw, 128px); height: auto; border-radius: 28%; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.35); }
.close h2 { font-size: clamp(36px, 4.6vw, 64px); }
.close p { margin-top: 12px; font-size: 24px; }
.close .get { margin-top: 0; justify-self: start; }

/* ---------- 页脚 ---------- */
footer { background: var(--ground-2); color: var(--ink-2); font-size: 15px; padding: 48px 0 56px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 28px; margin-bottom: 12px; }
footer nav a { display: inline-block; padding: 12px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer .trademarks { font-size: 13px; max-width: 62ch; margin-bottom: 12px; }

/* ---------- 动效：首屏手机升起一次；下面每段的手机各有自己的入场，起点都可见 ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hero-phones .phone { animation: rise 1.1s var(--ease) both; }
	.hero-phones .phone.back { animation-name: rise-tilt; animation-delay: 0.12s; }
	.js .reveal { opacity: 0.35; transform: translateY(48px); transition: opacity 0.8s var(--ease), transform 1.1s var(--ease); }
	.js .reveal.from-right { transform: translateX(64px); }
	.js .reveal.from-left { transform: translateX(-64px); }
	.js .reveal.grow { transform: scale(0.92); transform-origin: 50% 100%; }
	.js .zoom.reveal { transform: translateY(24px) scale(0.96); transition-delay: 0.25s; }
	.js .reveal.in { opacity: 1; transform: none; }
	.js .feature-media.pair .phone:last-child.reveal.in { transform: translateY(-48px); }
	.js .feature-media.pair .phone:last-child.reveal { transition-delay: 0.1s; }
}
@keyframes rise { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise-tilt { from { transform: translateY(140px) rotate(-6deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 0.98; } }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
	.hero-grid, .feature-grid, .faq-grid { grid-template-columns: 1fr; }
	.hero-copy { padding: 8px 0 0; }
	.hero-phones { min-height: 0; height: 480px; margin-top: 8px; }
	.hero-phones .phone.front { right: 8%; width: 250px; bottom: -110px; }
	.hero-phones .phone.back { right: auto; left: 6%; width: 210px; bottom: -40px; }
	.feature.flip .feature-copy { order: 0; }
	.feature-copy { max-width: none; }
	.feature-media .phone { width: min(300px, 80%); }
	.feature-media.pair .phone { width: min(240px, 46%); }
	.feature-media.pair .phone:last-child { transform: translateY(-32px); }
	.faq dl { grid-template-columns: 1fr; gap: 32px; }
	.close-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
	body { font-size: 17px; }
	.nav-links { display: none; }
	.hero-phones { height: 380px; }
	.hero .meds { margin-top: 28px; }
	.hero-phones .phone.front { width: 220px; right: 4%; }
	.hero-phones .phone.back { width: 180px; left: 2%; }
	.feature-media.pair .only-wide { display: none; }
	.feature-media.pair .phone { width: min(280px, 76%); }
	.feature-media.pair .phone:last-child { transform: none; }
	.js .feature-media.pair .phone:last-child.reveal.in { transform: none; }
}
