/* ============================================================
   ContextEcho landing — warm light theme（与 App 截图同一色系）
   共用：index.html + privacy/terms/support.html
   ============================================================ */

:root {
  --bg: #fffbf5;
  --bg-soft: #fff4e6;
  --bg-tint: #fdeeda;
  --surface: #ffffff;
  --ink: #262019;
  --ink-soft: #5c5245;
  --ink-faint: #8c7d6a;
  --brand: #fc7e11;
  --brand-deep: #e06a00;
  --brand-soft: #ffe3c4;
  --accent-cool: #2fa98c;
  --line: #f0dfc8;
  --line-strong: #e3cba6;
  --shadow-soft: 0 18px 44px -18px rgb(120 72 20 / 0.28);
  --shadow-card: 0 10px 30px -14px rgb(120 72 20 / 0.22);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --wrap-max: 1120px;
  --wrap-wide-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

/* —— 语言切换（CSS 层面显示/隐藏） —— */
html.is-lang-zh .i18n-en-only {
  display: none !important;
}

html.is-lang-en .i18n-zh-only {
  display: none !important;
}

/* —— 布局容器 —— */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap-wide {
  max-width: var(--wrap-wide-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

/* —— 背景氛围 —— */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.ambient__glow--1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, #ffd9ad 0%, transparent 70%);
}

.ambient__glow--2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, #ffe8cd 0%, transparent 70%);
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgb(160 110 50 / 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* —— 滚动进度条 —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand), #ffb054);
}

/* —— 顶部导航 —— */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 251 245 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgb(120 72 20 / 0.35);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-lockup__mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: url("favicon.svg") center / cover no-repeat;
  box-shadow: 0 4px 10px -3px rgb(252 126 17 / 0.55);
}

.top-nav__links {
  display: none;
  gap: 4px;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .top-nav__links {
    display: flex;
  }
}

.top-nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.top-nav__link:hover {
  color: var(--ink);
  background: var(--bg-tint);
}

.top-nav__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch__btn:hover {
  color: var(--ink);
}

.lang-switch__btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px -2px rgb(120 72 20 / 0.3);
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  padding: 12px 22px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn__ico {
  flex: none;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgb(38 32 25 / 0.5);
}

.btn-primary:hover {
  background: #3d3529;
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

.btn-compact {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn:focus-visible,
.lang-switch__btn:focus-visible,
.link-btn:focus-visible,
.gallery-item__btn:focus-visible {
  outline: 3px solid rgb(252 126 17 / 0.55);
  outline-offset: 2px;
}

/* App Store 大按钮（黑底仿官方 badge） */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #14100c;
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  padding: 12px 26px 12px 20px;
  box-shadow: 0 14px 30px -12px rgb(20 16 12 / 0.55);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-appstore:hover {
  background: #2b241c;
  color: #fff;
  box-shadow: 0 18px 36px -12px rgb(20 16 12 / 0.6);
}

.btn-appstore__logo {
  flex: none;
}

.btn-appstore__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.btn-appstore__text small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--brand);
}

/* —— 通用标题区 —— */
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.eyebrow__badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.section-head__sub {
  color: var(--ink-soft);
  margin: 0;
}

/* —— Hero —— */
.hero {
  display: grid;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 6.2fr) minmax(0, 4.8fr);
    padding-top: 80px;
    padding-bottom: 72px;
  }
}

.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero__accent {
  color: var(--brand);
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.hero-qr {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

.hero-qr img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
}

@media (min-width: 700px) {
  .hero-qr {
    display: flex;
  }
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-chips li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}

/* Hero 双机展示 */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero-phones {
  position: relative;
  width: min(400px, 88vw);
  aspect-ratio: 0.86;
}

.hero-phone {
  position: absolute;
  margin: 0;
  width: 62%;
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid #171310;
  background: #171310;
  box-shadow: var(--shadow-soft);
}

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

.hero-phone--back {
  right: 0;
  top: 0;
  transform: rotate(4deg);
  opacity: 0.94;
}

.hero-phone--front {
  left: 0;
  bottom: 0;
  transform: rotate(-3deg);
  z-index: 2;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-card);
}

.hero-float__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-deep);
}

.hero-float__label {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.hero-float--streak {
  top: 9%;
  left: -4%;
}

.hero-float--hours {
  bottom: 12%;
  right: -4%;
}

/* —— 事实条 —— */
.fact-strip {
  border-block: 1px solid var(--line);
  background: rgb(255 255 255 / 0.6);
}

.fact-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  padding-block: 26px;
}

@media (min-width: 860px) {
  .fact-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact__value {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.fact__label {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* —— 三个承诺 —— */
.promises {
  padding-block: 72px;
}

.promise-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promise-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.promise-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.promise-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.promise-card__icon {
  color: var(--brand);
  margin-bottom: 14px;
}

.promise-card h3 {
  font-size: 1.18rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.promise-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* —— 截图画廊 —— */
.gallery {
  padding-block: 40px 72px;
}

.gallery .section-head {
  margin-inline: auto;
  max-width: 760px;
  text-align: center;
}

.gallery-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.gallery-item {
  flex: 0 0 auto;
  width: clamp(200px, 24vw, 250px);
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.gallery-item__btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease;
}

.gallery-item__btn:hover {
  box-shadow: var(--shadow-soft);
}

.gallery-item__btn img {
  width: 100%;
  height: auto;
}

.gallery-item figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.gallery-nav {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

@media (min-width: 860px) {
  .gallery-nav {
    display: flex;
  }
}

.gallery-nav__btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-nav__btn:hover {
  background: var(--bg-tint);
  border-color: var(--brand);
}

/* —— X 介绍视频 —— */
.video-section {
  padding-block: 24px 72px;
}

.video-section .section-head {
  margin-inline: auto;
  text-align: center;
}

.x-embed {
  max-width: 560px;
  margin-inline: auto;
}

.x-embed__frame {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 10px 14px;
}

.x-embed__frame .twitter-tweet {
  margin: 0 auto !important;
  position: relative;
  z-index: 2;
}

.x-embed__skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--bg-soft) 40%, #fff 50%, var(--bg-soft) 60%);
  background-size: 200% 100%;
  animation: x-embed-shimmer 1.6s linear infinite;
}

@keyframes x-embed-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -80% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .x-embed__skeleton {
    animation: none;
  }
}

.x-embed.is-loaded .x-embed__skeleton {
  display: none;
}

.x-embed__fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-soft);
}

.x-embed__fallback:hover {
  color: var(--brand-deep);
}

.x-embed.is-fallback .x-embed__fallback {
  display: flex;
}

.x-embed.is-fallback .x-embed__skeleton,
.x-embed.is-fallback .twitter-tweet {
  display: none;
}

.x-embed__play {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.4rem;
  padding-left: 5px;
  box-shadow: 0 14px 30px -10px rgb(252 126 17 / 0.55);
}

/* —— 功能深潜（左右交替） —— */
.feature {
  padding-block: 64px;
}

.feature--tinted {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-tint));
  border-block: 1px solid var(--line);
}

.feature__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 920px) {
  .feature__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .feature--left .feature__copy {
    order: 2;
  }

  .feature--left .feature__shot {
    order: 1;
  }
}

.feature__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.feature__copy > p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.feature__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature__points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.feature__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffb054, var(--brand));
}

.feature__points strong {
  color: var(--ink);
}

.feature__note {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--ink-faint);
  border-left: 3px solid var(--line-strong);
  padding-left: 14px;
}

.feature__shot {
  margin: 0;
  display: flex;
  justify-content: center;
}

.feature__shot img {
  width: min(300px, 78vw);
  height: auto;
  border-radius: 26px;
  border: 6px solid #171310;
  background: #171310;
  box-shadow: var(--shadow-soft);
}

.feature__shot--duo {
  position: relative;
  gap: 0;
  isolation: isolate;
}

.feature__shot--duo img {
  width: min(260px, 62vw);
  position: relative;
  z-index: 2;
}

.feature__shot--duo .feature__shot-secondary {
  margin-left: -70px;
  margin-top: 56px;
  transform: rotate(3.5deg);
  z-index: 1;
  opacity: 0.96;
}

/* —— 边界 —— */
.scope {
  padding-block: 72px 40px;
}

.scope-cols {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .scope-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.scope-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}

.scope-col h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--accent-cool);
}

.scope-col--off h3 {
  color: var(--ink-faint);
}

.scope-col ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.scope-col--off {
  background: var(--bg-soft);
}

/* —— FAQ —— */
.faq {
  padding-block: 40px 72px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* —— 结尾 CTA —— */
.final-cta {
  padding-block: 24px 88px;
}

.final-cta__panel {
  background: linear-gradient(135deg, #2b2017 0%, #1a1410 60%);
  color: #fff7ee;
  border-radius: 32px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  box-shadow: 0 30px 60px -24px rgb(43 32 23 / 0.55);
}

.final-cta__panel h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.final-cta__lead {
  color: rgb(255 247 238 / 0.75);
  max-width: 34em;
  margin: 0 auto 30px;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 26px;
}

.final-cta .btn-appstore {
  background: #fff;
  color: #14100c;
  box-shadow: 0 16px 34px -12px rgb(0 0 0 / 0.5);
}

.final-cta .btn-appstore:hover {
  background: var(--brand-soft);
  color: #14100c;
}

.final-cta__qr {
  display: none;
}

@media (min-width: 700px) {
  .final-cta__qr {
    display: block;
  }
}

.final-cta__qr img {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: #fff;
  padding: 7px;
}

.final-cta .micro-hint {
  color: rgb(255 247 238 / 0.6);
}

.final-cta .micro-hint a,
.final-cta .link-btn {
  color: #ffc48a;
}

.micro-hint {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin: 0;
}

/* —— 页脚 —— */
footer.site {
  padding-block: 34px 46px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

footer.site p {
  margin: 4px 0;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(20 14 8 / 0.86);
  backdrop-filter: blur(6px);
  padding: 4vh 4vw;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-height: 92vh;
  max-width: 92vw;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.8);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover {
  background: rgb(255 255 255 / 0.22);
}

/* —— 滚动浮现 —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Toast —— */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  z-index: 95;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 16px 34px -12px rgb(0 0 0 / 0.4);
  max-width: min(560px, 88vw);
  text-align: center;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   Legal pages（privacy / terms / support 共用）
   ============================================================ */

.legal-page {
  background: var(--bg);
}

.legal-main {
  padding-block: 48px 72px;
  max-width: 760px;
}

.legal-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.legal-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--ink-faint);
  font-size: 0.84rem;
  margin: 0 0 30px;
}

.legal-section {
  margin-block: 30px;
}

.legal-section h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.legal-section ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.legal-footer {
  color: var(--ink-faint);
  font-size: 0.84rem;
  margin-top: 40px;
}

.support-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.legal-inline-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.legal-inline-btn:hover {
  background: var(--bg-tint);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-tint);
  border-radius: 6px;
  padding: 1px 7px;
}

/* —— 小屏适配 —— */
@media (max-width: 560px) {
  /* Hero 区已有大号 App Store 按钮，小屏导航不重复放 CTA */
  .top-nav__tools .btn-compact {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
  }

  .hero-float--streak {
    left: 0;
  }

  .hero-float--hours {
    right: 0;
  }

  .feature {
    padding-block: 48px;
  }

  .feature__shot--duo .feature__shot-secondary {
    margin-left: -46px;
    margin-top: 40px;
  }

  .final-cta__panel {
    border-radius: 24px;
  }
}
