/* 窜山兔 · 官网 — 暗夜野径（绿色） */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #060a08; color: #eaf4ea; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
section { position: relative; }

/* Mode switcher */
#switcher {
  position: fixed; top: 16px; right: 16px; z-index: 1000;
  display: flex; gap: 10px; padding: 8px; border-radius: 999px;
  background: rgba(12, 20, 16, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.sw-group { display: flex; align-items: center; gap: 4px; padding: 2px; }
.sw-label { opacity: .5; padding: 0 6px; letter-spacing: .08em; }
.sw-group button {
  padding: 6px 11px; border-radius: 999px;
  color: rgba(255,255,255,0.65); transition: all .25s ease;
  letter-spacing: .04em; white-space: nowrap;
}
.sw-group button:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sw-group button.on { background: #7fe0a0; color: #0a1a10; font-weight: 700; }
body[data-mode="light"] #switcher {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
body[data-mode="light"] .sw-group button { color: rgba(0,0,0,0.55); }
body[data-mode="light"] .sw-group button:hover { background: rgba(0,0,0,0.05); color: #000; }
body[data-mode="light"] .sw-group button.on { background: #2e8b5a; color: #fff; }

/* Variables */
#variant-B {
  --b-ink: #eaf4ea;
  --b-ink-dim: rgba(234, 244, 234, 0.68);
  --b-ink-mute: rgba(234, 244, 234, 0.42);
  --b-bg: #060a08;
  --b-bg-2: #0d1512;
  --b-line: rgba(234,244,234,0.1);
  --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;
  background: var(--b-bg); color: var(--b-ink);
  font-family: 'Noto Sans SC', sans-serif;
  position: relative; min-height: 100vh;
}

body[data-mode="light"] #variant-B {
  --b-ink: #031208;
  --b-ink-dim: rgba(3,18,8,0.82);
  --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;
}

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

/* NAV */
.b-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: color-mix(in oklab, var(--b-bg) 60%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--b-line);
}
.b-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 800; letter-spacing: .04em;
  color: var(--b-accent);
}
.b-logo-img {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover;
  flex: 0 0 40px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08),
              0 4px 20px color-mix(in oklab, var(--b-accent) 35%, transparent);
}
.b-nav nav { display: flex; gap: 32px; }
.b-nav nav a { color: var(--b-ink-dim); font-size: 14px; transition: color .2s; }
.b-nav nav a:hover { color: var(--b-accent); }
.b-nav-cta {
  display: inline-flex; padding: 10px 22px; border-radius: 999px;
  background: var(--b-accent); color: #0a1a10;
  font-weight: 700; font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.b-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px color-mix(in oklab, var(--b-accent) 40%, transparent);
}

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

.b-hero-overlay {
  position: relative; z-index: 3;
  padding: 180px 40px 80px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 720px;
  margin-left: max(40px, 8vw);
}
.b-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px; color: var(--b-ink);
  margin-bottom: 32px; width: fit-content;
}
body[data-mode="light"] .b-hero-eyebrow { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); }
.b-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--b-accent); box-shadow: 0 0 8px var(--b-accent); }
.b-hero-title {
  font-size: clamp(56px, 8.5vw, 130px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 28px; color: var(--b-ink);
}
.b-hero-accent {
  color: var(--b-accent);
  text-shadow: 0 4px 40px color-mix(in oklab, var(--b-accent) 40%, transparent);
}
.b-hero-sub { font-size: 18px; line-height: 1.7; color: var(--b-ink-dim); margin-bottom: 40px; max-width: 540px; }
.b-hero-cta { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }
.b-btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 999px;
  background: var(--b-accent); color: #0a1a10;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 12px 40px color-mix(in oklab, var(--b-accent) 40%, transparent);
  transition: transform .2s;
}
.b-btn-primary:hover { transform: translateY(-2px); }
.b-btn-primary span { transition: transform .3s; display: inline-block; }
.b-btn-primary:hover span { transform: translateX(5px); }
.b-btn-ghost {
  display: inline-flex; align-items: center;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--b-ink); font-size: 16px;
}
body[data-mode="light"] .b-btn-ghost { border-color: rgba(0,0,0,0.2); }
.b-btn-ghost:hover { background: rgba(255,255,255,0.05); }
body[data-mode="light"] .b-btn-ghost:hover { background: rgba(0,0,0,0.03); }

.b-hero-stats {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 24px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; width: fit-content;
}
body[data-mode="light"] .b-hero-stats { background: rgba(255,255,255,0.4); border-color: rgba(0,0,0,0.08); }
.b-hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.b-hero-stats b { font-size: 24px; font-weight: 800; color: var(--b-accent); letter-spacing: -0.01em; }
.b-hero-stats span { font-size: 11px; color: var(--b-ink-dim); letter-spacing: .06em; }
.b-hero-stats .sep { width: 1px; height: 32px; background: rgba(255,255,255,0.15); }
body[data-mode="light"] .b-hero-stats .sep { background: rgba(0,0,0,0.15); }

/* SECTION base */
.b-section { position: relative; padding: 140px 40px; background: var(--b-bg); }
.b-section-head { max-width: 1400px; margin: 0 auto 72px; }
.b-section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.b-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--b-accent) 12%, transparent);
  color: var(--b-accent);
  font-size: 13px; font-weight: 600;
  margin-bottom: 22px; letter-spacing: .04em;
}
.b-section h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 900; line-height: 1.02;
  letter-spacing: -0.025em; color: var(--b-ink);
  margin-bottom: 20px;
}
.b-section h2 em { font-style: normal; color: var(--b-accent); }

/* STORY */
.b-story { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.b-story-text p { font-size: 17px; line-height: 1.8; color: var(--b-ink-dim); max-width: 500px; }
.b-story-pillars { display: flex; flex-direction: column; gap: 20px; }
.b-pillar {
  padding: 28px; border: 1px solid var(--b-line); border-radius: 16px;
  background: var(--b-bg-2);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 20px;
  align-items: start; color: var(--b-accent);
  transition: transform .3s, border-color .3s;
}
.b-pillar:hover { transform: translateX(6px); border-color: var(--b-accent); }
.b-pillar svg { grid-row: span 2; }
.b-pillar b { font-size: 20px; font-weight: 800; color: var(--b-ink); letter-spacing: -0.01em; }
.b-pillar p { color: var(--b-ink-dim); font-size: 14px; line-height: 1.6; }

/* FEATURES */
.b-features { background: var(--b-bg-2); }
.b-feat-list { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 120px; }
.b-feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.b-feat-row.reverse { direction: rtl; }
.b-feat-row.reverse > * { direction: ltr; }
.b-feat-num {
  font-size: 64px; font-weight: 900;
  color: color-mix(in oklab, var(--b-accent) 60%, transparent);
  -webkit-text-stroke: 1px var(--b-accent);
  letter-spacing: -0.02em; display: inline-block;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}
.b-feat-copy h3 {
  font-size: clamp(28px, 3.2vw, 44px); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 18px; color: var(--b-ink);
}
.b-feat-copy p { color: var(--b-ink-dim); font-size: 17px; line-height: 1.75; margin-bottom: 24px; max-width: 460px; }
.b-feat-copy ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.b-feat-copy li { position: relative; padding-left: 22px; color: var(--b-ink-dim); font-size: 15px; }
.b-feat-copy li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 1.5px; background: var(--b-accent); }

.b-phone { position: relative; display: flex; justify-content: center; }
.b-phone-frame {
  position: relative; z-index: 2;
  width: 320px; aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0a0b0e;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 2px rgba(0,0,0,0.3) inset;
  overflow: hidden;
}
.b-phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.b-phone-frame::before {
  content: ''; position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; border-radius: 12px;
  background: #000; z-index: 3;
}
.b-phone-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--b-accent) 30%, transparent), transparent 60%);
  z-index: 1; pointer-events: none; filter: blur(20px);
}

/* STATS */
.b-stats-section {
  background: radial-gradient(ellipse at 50% 50%, color-mix(in oklab, var(--b-accent) 10%, transparent), transparent 60%), var(--b-bg);
}
.b-stats-inner { max-width: 1400px; margin: 0 auto; }
.b-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.b-stat-grid > div {
  padding: 40px 28px;
  background: var(--b-bg-2);
  border: 1px solid var(--b-line); border-radius: 18px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  transition: all .3s;
}
.b-stat-grid > div:hover {
  border-color: var(--b-accent);
  background: color-mix(in oklab, var(--b-accent) 6%, var(--b-bg-2));
  transform: translateY(-3px);
}
.b-stat-grid b { font-size: 32px; font-weight: 900; color: var(--b-ink); letter-spacing: -0.02em; }
.b-stat-grid span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--b-accent); letter-spacing: .14em; }

/* DOWNLOAD */
.b-download { padding-top: 180px; padding-bottom: 200px; overflow: hidden; }
.b-download-mtn { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 300px; opacity: .6; z-index: 1; }
.b-download-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.b-download h2 { margin-bottom: 24px; }
.b-download > .b-download-inner > p { color: var(--b-ink-dim); font-size: 17px; margin-bottom: 48px; }
.b-dl-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.b-dl-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 40px; border-radius: 16px;
  background: var(--b-bg-2); border: 1px solid var(--b-line);
  transition: all .3s; min-width: 260px; text-align: left;
}
.b-dl-card:hover { transform: translateY(-3px); border-color: var(--b-accent); }
.b-dl-card.primary {
  background: var(--b-accent); border-color: var(--b-accent); color: #0a1a10;
  box-shadow: 0 12px 40px color-mix(in oklab, var(--b-accent) 40%, transparent);
}
.b-dl-card .t { font-size: 18px; font-weight: 800; }
.b-dl-card .s { font-size: 13px; opacity: .7; }

/* SAFETY */
.b-safety {
  position: relative; padding: 90px 40px;
  background: var(--b-bg-2);
  border-top: 1px solid var(--b-line);
  border-bottom: 1px solid var(--b-line);
}
.b-safety-inner {
  max-width: 1100px; margin: 0 auto; text-align: center;
  color: var(--b-accent);
}
.b-safety-inner h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900; letter-spacing: -0.01em;
  color: var(--b-ink);
  margin: 18px 0 36px;
}
.b-safety-rules {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 32px;
}
.b-safety-rules > div {
  padding: 24px 20px;
  border: 1px solid var(--b-line); border-radius: 14px;
  background: color-mix(in oklab, var(--b-accent) 5%, transparent);
  display: flex; flex-direction: column; gap: 6px;
}
.b-safety-rules b {
  font-size: 18px; font-weight: 800;
  color: var(--b-ink); letter-spacing: .02em;
}
.b-safety-rules span {
  font-size: 14px; color: var(--b-ink-dim); line-height: 1.65;
}
.b-safety-foot {
  font-size: 14px; color: var(--b-ink-mute);
  font-style: italic;
  max-width: 520px; margin: 0 auto;
}
@media (max-width: 720px) {
  .b-safety { padding: 64px 22px; }
  .b-safety-rules { grid-template-columns: 1fr; gap: 12px; }
}

/* FOOT */
.b-foot {
  padding: 30px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--b-line);
  background: var(--b-bg);
  font-size: 13px; color: var(--b-ink-mute);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .b-story, .b-feat-row { grid-template-columns: 1fr; gap: 40px; }
  .b-feat-row.reverse { direction: ltr; }
  .b-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .b-phone-frame { width: 260px; }
}
@media (max-width: 640px) {
  #switcher { right: 8px; top: 8px; }
  .b-nav { padding: 14px 18px; }
  .b-nav nav { display: none; }
  .b-section { padding: 80px 18px; }
  .b-hero-stats { flex-wrap: wrap; gap: 12px; }
  .b-hero-stats .sep { display: none; }
  .b-feat-list { gap: 80px; }
  .b-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
