:root {
  color-scheme: light dark;
  --bg: #f3f7f7;
  --surface: #ffffff;
  --tint: #e9f1f1;
  --ink: #0c2230;
  --ink-2: #4a626e;
  --line: #d8e3e5;
  --blue: #1b84e0;
  --teal: #1cc29c;
  --cta: #1272d3;
  --cta-hover: #0f62b8;
  --link: #1268c2;
  --icon-bg: #e3f0fb;
  --warn-bg: #fff5e1;
  --warn-line: #f0d49a;
  --warn-ink: #7a4a05;
  --m-land: #e8f0ee;
  --m-water: #cbe4f4;
  --m-park: #d3ecd9;
  --m-road: #ffffff;
  --m-road-edge: #d0dcde;
  --m-grid: rgba(12, 34, 48, .15);
  --m-label: #6a8089;
  --shadow: 0 1px 2px rgba(12, 34, 48, .04), 0 14px 36px rgba(12, 34, 48, .09);
  --shadow-chip: 0 1px 2px rgba(12, 34, 48, .08), 0 6px 16px rgba(12, 34, 48, .12);
  --radius: 18px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071720;
    --surface: #0d222d;
    --tint: #0a1d27;
    --ink: #e9f2f3;
    --ink-2: #9ab0b8;
    --line: #1d3743;
    --cta-hover: #1b84e0;
    --link: #6db6f5;
    --icon-bg: #12324a;
    --warn-bg: #2b2210;
    --warn-line: #5a4517;
    --warn-ink: #f3cf8a;
    --m-land: #0f2a36;
    --m-water: #0b3552;
    --m-park: #12392f;
    --m-road: #1f4554;
    --m-road-edge: #0a1f29;
    --m-grid: rgba(233, 242, 243, .13);
    --m-label: #7f98a1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .35);
    --shadow-chip: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px rgba(0, 0, 0, .4);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--link); }

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--tint); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: #0c2230; }
.btn-light:hover { background: #e9f3f3; }
.btn-small { min-height: 36px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; }

/* 首屏 */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}
h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lead {
  margin-top: 20px;
  max-width: 33em;
  color: var(--ink-2);
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.support {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.support b { margin-right: 6px; color: var(--ink); font-weight: 700; }

/* 地图示意图 */
.map {
  position: relative;
  aspect-ratio: 600 / 560;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--m-land);
  box-shadow: var(--shadow);
}
.map svg { width: 100%; height: 100%; }
.m-land { fill: var(--m-land); }
.m-water { fill: var(--m-water); }
.m-park { fill: var(--m-park); }
.m-road, .m-road-edge { fill: none; stroke-linecap: round; }
.m-road { stroke: var(--m-road); stroke-width: 7; }
.m-road--main { stroke-width: 13; }
.m-road-edge { stroke: var(--m-road-edge); stroke-width: 10; }
.m-road-edge--main { stroke-width: 16; }
.m-grid { fill: none; stroke: var(--m-grid); stroke-width: 1; stroke-dasharray: 3 5; }
.m-label { fill: var(--m-label); font: 500 11px var(--mono); }
.m-route {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: .1 11;
  animation: march 1.4s linear infinite;
}
.m-dot { fill: var(--blue); stroke: #fff; stroke-width: 3.5; }
.m-halo {
  fill: var(--blue);
  opacity: .22;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.8s ease-in-out infinite;
}
.m-ripple {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 2.8s ease-out 1s infinite;
}
.m-ripple--late { animation-delay: 2.4s; }
.m-pin {
  filter: drop-shadow(0 6px 6px rgba(12, 34, 48, .28));
  animation: pin-drop .7s cubic-bezier(.2, .9, .3, 1.2) .25s both;
}
.m-pin path { stroke: #fff; stroke-width: 3; stroke-linejoin: round; }
.m-pin-hole { fill: #fff; }

.chip {
  position: absolute;
  transform: translateX(-50%);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-chip);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.chip--real { left: 21.3%; top: 77%; }
.chip--sim { left: 59%; top: 50.5%; text-align: center; }
.chip--sim span { display: block; }
.chip--sim code {
  display: block;
  color: var(--ink);
  font: 600 13.5px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}
.map figcaption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--m-label);
  font-size: 12px;
}

@keyframes march { to { stroke-dashoffset: -22.2; } }
@keyframes halo {
  0%, 100% { transform: scale(1); opacity: .26; }
  50% { transform: scale(1.5); opacity: .1; }
}
@keyframes ripple {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(3); opacity: 0; }
}
@keyframes pin-drop {
  0% { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

/* 通用小节 */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 40em; margin-bottom: clamp(26px, 4vw, 44px); }
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.005em;
}
.section-head p { margin-top: 10px; color: var(--ink-2); }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }

/* 功能 */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.feature h3 { margin-top: 16px; }
.feature p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.ficon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--link);
}
.ficon svg, .pglyph svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ficon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.demo-btn {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cta);
  box-shadow: 0 8px 20px rgba(18, 114, 211, .28);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.datum {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: 500 13.5px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.datum div { display: flex; gap: 14px; }
.datum dt { width: 4.6em; color: var(--ink-2); }
.datum dd { color: var(--ink); }

/* 三个程序 */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.platform {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pglyph { color: var(--ink); }
.pglyph svg { width: 48px; height: 48px; stroke-width: 2; }
.pname {
  margin-top: 18px;
  color: var(--link);
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .04em;
}
.platform h3 { margin-top: 2px; font-size: 1.3125rem; font-weight: 800; }
.platform h3 + p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.preq {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
.preq::before {
  content: "";
  display: block;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
}

/* 开始使用 */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.start-grid .section-head { position: sticky; top: 92px; margin-bottom: 0; }
.start-grid .btn { margin-top: 24px; }
.steps { counter-reset: step; }
.steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 34px 68px;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--link);
  font: 700 17px/1 var(--mono);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 21.5px;
  top: 46px;
  bottom: 2px;
  border-left: 1px dashed var(--line);
}
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.1875rem; }
.steps p { margin-top: 6px; color: var(--ink-2); }
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.split > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.split b { color: var(--link); font: 600 13px/1.4 var(--mono); letter-spacing: .04em; }
.split p { margin-top: 4px; font-size: 15px; }

/* 使用须知 */
.notes { display: grid; gap: 16px; }
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.callout svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.callout h3 { font-size: 1.1875rem; }
.callout p { font-size: 15px; }
.note-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.note-list li {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.note-list p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* 底部下载 */
.cta { padding: clamp(40px, 6vw, 72px) 0; }
.cta-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(135deg, #0f5fb4, #0b8a78);
  color: #fff;
}
.cta-inner img { border-radius: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.cta-inner p { margin-top: 4px; opacity: .92; }

.site-footer { padding: 8px 0 40px; color: var(--ink-2); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: inherit; }

[id] { scroll-margin-top: 76px; }

/* 中等宽度 */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .map { max-width: 620px; width: 100%; justify-self: center; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--datum { grid-column: span 1; display: block; }
  .feature--datum .datum { margin-top: 16px; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .start-grid .section-head { position: static; }
  .note-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 手机宽度 */
@media (max-width: 640px) {
  .nav { display: none; }
  .bar { justify-content: space-between; }
  .actions .btn { flex: 1 1 auto; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature--wide, .feature--datum { grid-column: span 1; display: block; }
  .demo-btn { display: inline-block; margin-top: 18px; }
  .feature--datum .datum { margin-top: 16px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .note-list { grid-template-columns: minmax(0, 1fr); }
  .steps > li { padding-left: 58px; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .cta-inner .btn { justify-self: start; }
  .chip { font-size: 11.5px; padding: 4px 9px; }
  .chip--sim code { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m-route, .m-halo, .m-ripple, .m-pin { animation: none; }
  .btn { transition: none; }
}
