/* AptBite 官网设计 tokens —— 与 App 01 §0 色板/排版一一对应 */
:root {
  --ivory: #F6F3EC;
  --ivory-deep: #EFEAE0;
  --ink: #1A211C;
  --ink-2: #4C5650;
  --ink-3: #8C938B;
  --green: #1E4A38;
  --green-mid: #3D7A5C;
  --green-tint: #E4EDE7;
  --amber: #A4732A;
  --line: #E2DCCC;
  --card: #FFFFFF;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 12px 30px -18px rgba(26, 33, 28, .28);
  --shadow-md: 0 30px 60px -24px rgba(26, 33, 28, .30);
  --shadow-green: 0 24px 50px -22px rgba(30, 74, 56, .42);
}

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

html { scroll-behavior: smooth; }

body {
  /* 背景纵深：象牙白基底 + 绿/琥珀辉光分层，保持克制和自然 */
  background:
    radial-gradient(1200px 660px at 84% -14%, rgba(30, 74, 56, .16), transparent 62%),
    radial-gradient(980px 540px at -12% 30%, rgba(164, 115, 42, .11), transparent 56%),
    radial-gradient(920px 520px at 112% 82%, rgba(61, 122, 92, .13), transparent 60%),
    radial-gradient(1400px 700px at 50% 112%, rgba(61, 122, 92, .10), transparent 65%),
    var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 细颗粒噪点（film grain）——去掉纯色平铺感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏（sticky + 毛玻璃） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  background: rgba(246, 243, 236, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; color: var(--ink); }
.nav .brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav .links { display: flex; gap: 26px; align-items: center; }
.nav .links a { color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color .15s ease; }
.nav .links a:hover { color: var(--ink); }
/* 导航内的 Download 按钮：覆盖 .links a 的灰/深色文字，恢复 .btn 的象牙白 */
.nav .links a.btn { color: var(--ivory); }
.nav .links a.btn:hover { color: var(--ivory); opacity: .9; }

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--ivory);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 13px;
  box-shadow: 0 16px 34px -16px rgba(30, 74, 56, .6);
  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn.small { padding: 10px 20px; font-size: 15px; box-shadow: none; }

/* App Store 官方徽章（正式上线前请用 Apple 官方资源替换此内联版） */
.badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .15s ease, box-shadow .15s ease; }
.badge:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.badge img { display: block; width: 200px; height: auto; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 76px 0 92px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(760px, 90vw);
  height: 420px;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(228, 237, 231, .86) 0%, rgba(228, 237, 231, .24) 48%, transparent 74%);
  filter: blur(10px);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero .sub {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--ink-2);
  font-size: 19px;
}
.hero .cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; color: var(--ink-3); font-size: 14px; }

/* ---------- 手机截图（模型稍后替换） ---------- */
.phones { display: flex; gap: 36px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin-top: 68px; }
.phone {
  width: 270px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  transition: transform .25s ease, box-shadow .25s ease;
}
.phone:hover { transform: translateY(-6px); }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 24px rgba(26, 33, 28, .22));
}
.phone-caption { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ---------- 分区通用 ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid rgba(226, 220, 204, .72); }
section[id] { scroll-margin-top: 84px; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 14px;
}
h2 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 42px); font-weight: 600; line-height: 1.2; }
.lead { color: var(--ink-2); max-width: 620px; margin-top: 16px; font-size: 18px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- 三步 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--green); padding-top: 22px; }
.step .num { font-family: var(--serif); font-size: 30px; color: var(--green); font-weight: 600; }
.step h3 { font-size: 19px; font-weight: 600; margin: 10px 0 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- 大数字差异点（卡片化） ---------- */
.vs { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 820px) { .vs { grid-template-columns: 1fr; } }
.vs-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card), #FBFAF5);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px 38px;
  box-shadow: var(--shadow-md);
}
.vs-card::before {
  content: "";
  position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(30, 74, 56, .10), transparent 70%);
}
.vs-card .bignum { position: relative; }
.bignum {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 128px);
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bignum .unit { font-family: var(--sans); font-size: 20px; color: var(--ink); font-weight: 600; }
.vs-caption { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; position: relative; }

/* ---------- 特性行（SVG 图标 + 圆角底） ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 8px 4px;
  transition: transform .25s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature .ico-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--green-tint);
  margin-bottom: 16px;
}
.feature .ico-badge svg { width: 23px; height: 23px; stroke: var(--green); }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- 定价 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan.best { border-color: var(--green); background: var(--green-tint); box-shadow: var(--shadow-green); }
.plan.best:hover { transform: translateY(-5px); box-shadow: var(--shadow-green); }
.plan .tag {
  position: absolute; top: -12px; left: 26px;
  background: var(--green); color: var(--ivory);
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.plan h3 { font-size: 17px; font-weight: 600; }
.plan .price { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 12px 0 4px; }
.plan .per { color: var(--ink-3); font-size: 14px; }
.plan ul { list-style: none; margin-top: 18px; }
.plan li { color: var(--ink-2); font-size: 15px; padding: 5px 0; }
.plan li::before { content: "✓"; color: var(--green-mid); font-weight: 600; margin-right: 8px; }
.price-note { margin-top: 26px; color: var(--ink-3); font-size: 13.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 44px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif); font-size: 24px; line-height: 1;
  color: var(--green-mid);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.step:nth-child(2), .feature:nth-child(2), .plan:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3), .feature:nth-child(3), .plan:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.footer-grid .brandline { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-grid .brandline img { width: 26px; height: 26px; border-radius: 7px; }
.footer-grid .slogan { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--ink); }
.attribution { margin-top: 26px; color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.attribution a { color: var(--ink-2); }

/* ---------- 法务页 ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 60px 24px 100px; }
.legal h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--green); }
