/* 窜山兔 · mobile.css */
* { margin:0; padding:0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: var(--b-bg); color: var(--b-ink);
  /* variables */
  --b-ink: #eaf4ea;
  --b-ink-dim: rgba(234,244,234,0.75);
  --b-ink-mute: rgba(234,244,234,0.50);
  --b-bg: #060a08;
  --b-bg-2: #0d1512;
  --b-line: rgba(234,244,234,0.12);
  --b-accent: #7fe0a0;
  --b-accent-2: #4fb879;
  --b-trail: #b8f5c8;
  --b-sky-top: #0a1a22;
  --b-sky-mid: #1a3d34;
  --b-sky-bot: #3d6e4a;
  --b-sun: #d6f5a8;
  --b-mtn-1: #1f3a2e;
  --b-mtn-2: #16291f;
  --b-mtn-3: #0c1c15;
  --b-mtn-4: #050c08;
}
body[data-mode="light"] {
  --b-ink: #031208;
  --b-ink-dim: rgba(3,18,8,0.85);
  --b-ink-mute: rgba(3,18,8,0.62);
  --b-bg: #e8f0e4;
  --b-bg-2: #f4faf1;
  --b-line: rgba(3,18,8,0.16);
  --b-accent: #1f6b43;
  --b-accent-2: #144d30;
  --b-sky-top: #dcead4;
  --b-sky-mid: #a8d8a8;
  --b-sky-bot: #6fb58a;
  --b-sun: #f0f5b8;
  --b-mtn-1: #9bc0a5;
  --b-mtn-2: #6fa07e;
  --b-mtn-3: #3f6b50;
  --b-mtn-4: #1a3328;
  --b-trail: #144d30;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }

/* stars */
#m-stars {
  position: fixed; inset: 0 0 auto 0; height: 65vh; pointer-events: none; z-index: 0;
}
#m-stars span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.8);
  animation: m-twinkle ease-in-out infinite;
}
body[data-mode="light"] #m-stars { display: none; }
@keyframes m-twinkle { 0%,100%{opacity:.2} 50%{opacity:1} }

/* NAV */
.m-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in oklab, var(--b-bg) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--b-line);
}
.m-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--b-accent); }
.m-logo img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 3px 14px color-mix(in oklab, var(--b-accent) 35%, transparent); }
.m-nav-right { display: flex; align-items: center; gap: 8px; }
#m-mode-btn {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--b-ink); background: rgba(255,255,255,0.06);
  border: 1px solid var(--b-line);
}
body[data-mode="light"] #m-mode-btn { background: rgba(0,0,0,0.04); }
.m-icon-light { display: none; }
body[data-mode="dark"]  .m-icon-dark  { display: block; }
body[data-mode="dark"]  .m-icon-light { display: none; }
body[data-mode="light"] .m-icon-dark  { display: none; }
body[data-mode="light"] .m-icon-light { display: block; }
.m-nav-cta {
  display: inline-flex; padding: 8px 16px; border-radius: 999px;
  background: var(--b-accent); color: #0a1a10;
  font-weight: 700; font-size: 13px;
}

/* HERO */
.m-hero {
  position: relative; min-height: 100vh; overflow: hidden;
  padding-top: 72px;
}
.m-hero-mtn, .m-hero-trail {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
}
.m-hero-trail { z-index: 2; pointer-events: none; }
#m-trail-path {
  stroke-dasharray: 0 1000;
  animation: m-trail-draw 3.6s ease-out .5s forwards;
}
.m-trail-end { opacity: 0; animation: m-trail-end 0.5s ease-out 4s forwards;
  filter: drop-shadow(0 0 6px var(--b-trail)); }
@keyframes m-trail-draw { to { stroke-dasharray: 1000 0; } }
@keyframes m-trail-end { to { opacity: 1; } }

.m-hero-overlay {
  position: relative; z-index: 3;
  padding: 40px 22px 56px;
  min-height: calc(100vh - 72px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.m-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px; width: fit-content; margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
body[data-mode="light"] .m-eyebrow { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
.m-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--b-accent); box-shadow: 0 0 8px var(--b-accent); }
.m-hero h1 {
  font-size: clamp(42px, 12vw, 64px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em; margin-bottom: 20px; color: var(--b-ink);
}
.m-hero h1 em {
  font-style: normal; color: var(--b-accent);
  text-shadow: 0 4px 30px color-mix(in oklab, var(--b-accent) 40%, transparent);
}
.m-hero p {
  font-size: 15px; color: var(--b-ink-dim); margin-bottom: 28px;
  line-height: 1.65; max-width: 320px;
}
.m-cta { margin-bottom: 28px; }
.m-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--b-accent); color: #0a1a10;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px color-mix(in oklab, var(--b-accent) 45%, transparent);
}
.m-btn-primary span { transition: transform .3s; }
.m-btn-primary:active span { transform: translateX(4px); }

.m-stats {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; width: fit-content;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; backdrop-filter: blur(12px);
}
body[data-mode="light"] .m-stats { background: rgba(255,255,255,0.55); border-color: rgba(0,0,0,0.08); }
.m-stats > div { display: flex; flex-direction: column; gap: 1px; }
.m-stats b { font-size: 16px; font-weight: 800; color: var(--b-accent); letter-spacing: -0.01em; }
.m-stats span { font-size: 10px; color: var(--b-ink-dim); letter-spacing: .04em; }
.m-stats .sep { width: 1px; height: 22px; background: rgba(255,255,255,0.14); }
body[data-mode="light"] .m-stats .sep { background: rgba(0,0,0,0.14); }

/* SECTION base */
.m-section {
  position: relative; z-index: 5;
  padding: 72px 22px;
  background: var(--b-bg);
}
.m-section.m-features { background: var(--b-bg-2); }
.m-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--b-accent) 14%, transparent);
  color: var(--b-accent); font-size: 12px; font-weight: 600;
  margin-bottom: 16px; letter-spacing: .04em;
}
.m-section h2 {
  font-size: clamp(30px, 8vw, 44px); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--b-ink); margin-bottom: 20px;
}
.m-section h2 em { font-style: normal; color: var(--b-accent); }
.m-lead { font-size: 15px; color: var(--b-ink-dim); line-height: 1.8; margin-bottom: 36px; }

/* STORY pillars */
.m-pillars { display: flex; flex-direction: column; gap: 12px; }
.m-pillar {
  padding: 18px; border-radius: 14px;
  background: var(--b-bg-2);
  border: 1px solid var(--b-line);
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--b-accent);
}
.m-pillar > svg { flex-shrink: 0; margin-top: 2px; }
.m-pillar b { display: block; font-size: 16px; font-weight: 800; color: var(--b-ink); margin-bottom: 4px; letter-spacing: -0.01em; }
.m-pillar p { color: var(--b-ink-dim); font-size: 13px; line-height: 1.6; }

/* FEATURES */
.m-feat {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--b-line);
}
.m-feat:first-of-type { margin-top: 32px; padding-top: 0; border-top: none; }
.m-phone {
  position: relative;
  display: flex; justify-content: center;
  margin-bottom: 32px;
}
.m-phone-frame {
  position: relative; z-index: 2;
  width: 240px; aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  background: #0a0b0e; padding: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 2px rgba(0,0,0,0.3) inset;
  overflow: hidden;
}
.m-phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.m-phone-frame::before {
  content: ''; position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 18px; border-radius: 10px;
  background: #000; z-index: 3;
}
.m-phone::after {
  content: ''; position: absolute; inset: -30px;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--b-accent) 28%, transparent), transparent 60%);
  z-index: 1; filter: blur(20px);
}
.m-feat-num {
  display: inline-block;
  font-size: 36px; font-weight: 900;
  -webkit-text-stroke: 1px var(--b-accent);
  color: transparent;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.m-feat h3 {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.015em; margin-bottom: 12px;
  line-height: 1.2; color: var(--b-ink);
}
.m-feat > p { color: var(--b-ink-dim); font-size: 14.5px; line-height: 1.7; margin-bottom: 16px; }
.m-feat ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.m-feat li { position: relative; padding-left: 18px; color: var(--b-ink-dim); font-size: 13.5px; }
.m-feat li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 10px; height: 1.5px; background: var(--b-accent);
}

/* STATS */
.m-stats-section {
  background: radial-gradient(ellipse at 50% 40%, color-mix(in oklab, var(--b-accent) 10%, transparent), transparent 60%), var(--b-bg);
  text-align: center;
}
.m-stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 28px;
}
.m-stat-grid > div {
  padding: 20px 10px;
  background: var(--b-bg-2);
  border: 1px solid var(--b-line); border-radius: 14px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.m-stat-grid b { font-size: 18px; font-weight: 900; color: var(--b-ink); letter-spacing: -0.01em; }
.m-stat-grid span { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--b-accent); letter-spacing: .12em; }

/* DOWNLOAD */
.m-download { padding-bottom: 96px; overflow: hidden; text-align: center; }
.m-dl-mtn { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 180px; opacity: .55; z-index: 1; }
.m-dl-inner { position: relative; z-index: 2; }
.m-dl-row { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.m-dl-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 22px; border-radius: 14px; text-align: left;
  background: var(--b-bg-2); border: 1px solid var(--b-line);
}
.m-dl-card.primary {
  background: var(--b-accent); border-color: var(--b-accent); color: #0a1a10;
  box-shadow: 0 10px 30px color-mix(in oklab, var(--b-accent) 40%, transparent);
}
.m-dl-card .t { font-size: 16px; font-weight: 800; }
.m-dl-card .s { font-size: 12px; opacity: .75; }

/* SAFETY */
.m-safety {
  padding: 56px 22px;
  background: var(--b-bg-2);
  border-top: 1px solid var(--b-line);
  text-align: center; color: var(--b-accent);
}
.m-safety h3 {
  font-size: 22px; font-weight: 900;
  color: var(--b-ink); letter-spacing: -0.01em;
  margin: 12px 0 24px;
}
.m-safety-rules {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px;
  text-align: left;
}
.m-safety-rules > div {
  padding: 16px 18px;
  border: 1px solid var(--b-line); border-radius: 12px;
  background: color-mix(in oklab, var(--b-accent) 5%, transparent);
  display: flex; flex-direction: column; gap: 4px;
}
.m-safety-rules b { font-size: 15px; font-weight: 800; color: var(--b-ink); letter-spacing: .02em; }
.m-safety-rules span { font-size: 13px; color: var(--b-ink-dim); line-height: 1.6; }
.m-safety-foot {
  font-size: 12.5px; color: var(--b-ink-mute);
  font-style: italic; line-height: 1.6;
}

/* FOOT */
.m-foot {
  padding: 22px 22px max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--b-line);
  background: var(--b-bg);
  font-size: 11.5px; color: var(--b-ink-mute); text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.m-foot a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 2px; }
.m-foot-switch a { color: var(--b-accent); opacity: 1; }

@media (min-width: 500px) {
  .m-section { padding: 80px 40px; }
  .m-hero-overlay { padding-left: 40px; padding-right: 40px; }
  .m-phone-frame { width: 280px; }
}
