:root {
  /* 对齐 App HomeColors */
  --action: #ff6b2c;
  --action-soft: #ff7a3d;
  --action-deep: #f25a1a;
  --action-shadow: #d94a12;
  --air: #7ec6d8;
  --bg-top: #e8f8f0;
  --bg-mid: #d9f2e6;
  --bg-mid-soft: #eaf7f1;
  --bg-bottom: #fefffe;
  --ink: #1f1f1f;
  --ink-soft: #4a4a4a;
  --ink-body: #6b6b6b;
  --ink-muted: #9b9b9b;
  --card: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.8);
  --line: rgba(31, 31, 31, 0.08);
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius-btn: 16px;
  --radius-card: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-bottom);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 1.15rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  color: var(--ink);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

/* —— Hero（对齐 App：薄荷浅底 + 深字 + 橙 CTA）—— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
}

/* 与 App 主页默认 wallpaper：璃光轻雾 home_bg_glass_soft 一致 */
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-bottom);
  background-image: url("../assets/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 底部略提亮，方便接下方白区，不压暗壁纸 */
  background: linear-gradient(
    180deg,
    rgba(254, 255, 254, 0.08) 0%,
    rgba(254, 255, 254, 0) 35%,
    rgba(254, 255, 254, 0.35) 78%,
    rgba(254, 255, 254, 0.92) 100%
  );
  pointer-events: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.brand-mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 0 0 0.85rem;
  color: var(--ink);
  opacity: 0;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hero-line {
  margin: 0 0 0.7rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
  opacity: 0;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-sub {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  color: var(--ink-body);
  font-size: 1.05rem;
  opacity: 0;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  opacity: 0;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--action-soft), var(--action-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 74, 18, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(217, 74, 18, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  font-weight: 650;
  padding-inline: 0.35rem;
  min-height: auto;
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--ink);
  transform: none;
}

/* 上架前占位；上架后改成 <a class="btn btn-primary"> 链到商店 */
.btn-store {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid rgba(31, 31, 31, 0.1);
  box-shadow: var(--shadow);
  cursor: default;
}

.btn-store:hover {
  transform: none;
}

.cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-body);
  opacity: 0;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.cta-note a {
  color: var(--action-deep);
  font-weight: 650;
}

.cta-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-visual {
  justify-self: end;
  align-self: center;
  width: min(100%, 380px);
  max-height: min(58vh, 420px);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  opacity: 0;
  animation: floatIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.12));
}

.mascot-bob {
  position: relative;
  width: 100%;
  height: 100%;
  animation: mascotBob 4.5s ease-in-out 1.2s infinite;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-visual .mascot-smile {
  opacity: 0;
  transition: opacity 160ms ease-in-out;
  pointer-events: none;
}

.hero-visual .mascot-smile.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual {
    animation: none;
    opacity: 1;
  }

  .mascot-bob {
    animation: none;
  }

  .hero-visual .mascot-smile {
    transition: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mascotBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--action-deep);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 16ch;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  color: var(--ink-body);
  max-width: 42ch;
  font-size: 1.05rem;
}

.how {
  background: #fff;
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
  list-style: none;
  padding: 0;
}

.steps li {
  padding: 1.25rem 1.2rem 1.3rem;
  background: var(--card);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  background-image: linear-gradient(180deg, #fff, #fbfefe);
}

.steps strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.steps p {
  margin: 0;
  color: var(--ink-body);
  font-size: 0.96rem;
}

.privacy {
  background:
    linear-gradient(180deg, rgba(254, 255, 254, 0.72), rgba(254, 255, 254, 0.96)),
    url("../assets/hero-bg.jpg") center top / cover no-repeat;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.privacy-note {
  margin-top: 1.4rem;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: var(--ink-body);
}

.privacy-note a {
  color: var(--action-deep);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.app-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.app-card p {
  margin: 0;
  color: var(--ink-body);
  font-size: 0.92rem;
}

/* —— Footer —— */
.footer {
  padding: 2.4rem 0 2.8rem;
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

/* —— Support page —— */
.page {
  padding: 7rem 0 4rem;
  min-height: 70svh;
  background: linear-gradient(
    180deg,
    var(--bg-top) 0%,
    var(--bg-bottom) 40%,
    var(--bg-bottom) 100%
  );
}

.page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page .lead {
  color: var(--ink-body);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.faq {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--ink-body);
}

.contact-block {
  margin-top: 2.5rem;
  max-width: 640px;
}

.contact-block a {
  color: var(--action-deep);
  font-weight: 650;
}

.nav-solid {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 5.5rem 0 2.75rem;
    text-align: center;
  }

  .hero-line,
  .hero-sub {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual {
    justify-self: center;
    order: -1;
    width: min(58vw, 250px);
    margin-bottom: 0.25rem;
  }

  .brand-mark {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .steps,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}
