:root {
  color-scheme: dark;
  --bg: #0a0b0f;
  --bg2: #12151c;
  --glass: rgba(176, 190, 218, 0.04);
  --glass2: rgba(176, 190, 218, 0.072);
  --line: rgba(176, 190, 218, 0.1);
  --line2: rgba(176, 190, 218, 0.17);
  --text: #e6e9f0;
  --muted: #8b93a6;
  --dim: #5a6273;
  --gold: #dca64f;
  --cyan: #3ab5a8;
  --violet: #a07fd6;
  --card: rgba(16, 20, 30, 0.92);
  --border: var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── 星空画布 ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── 科技网格 ── */
.tech-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(58, 181, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 181, 168, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 65% 85%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 65% 85%, #000 10%, transparent 70%);
}

/* ── 火星 45° 暗黑科技视角 ── */
.mars-wrap {
  position: fixed;
  bottom: -28vh;
  right: -12vw;
  width: 105vmin;
  height: 105vmin;
  z-index: 1;
  pointer-events: none;
  perspective: 1100px;
}

.mars-scene {
  width: 100%;
  height: 100%;
  transform: rotateX(58deg) rotateY(-18deg) rotateZ(6deg);
  transform-style: preserve-3d;
}

.mars-atmo {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(220, 80, 30, 0.12) 0%, rgba(120, 30, 10, 0.06) 40%, transparent 68%);
  filter: blur(24px);
  animation: atmoDrift 8s ease-in-out infinite;
}

.mars {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, #6b2810 0%, #3d1208 14%, #1a0604 38%, #080204 62%, #000 100%);
  box-shadow:
    inset -50px -30px 100px rgba(0, 0, 0, 0.85),
    inset 30px 20px 60px rgba(255, 120, 60, 0.06),
    0 0 100px 30px rgba(160, 40, 10, 0.18),
    -30px -40px 80px rgba(0, 0, 0, 0.6);
}

.mars::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 10% 7% at 32% 40%, rgba(20, 5, 2, 0.7), transparent),
    radial-gradient(ellipse 14% 9% at 58% 52%, rgba(25, 6, 2, 0.6), transparent),
    radial-gradient(ellipse 8% 6% at 72% 28%, rgba(18, 4, 1, 0.5), transparent),
    radial-gradient(ellipse 12% 8% at 45% 70%, rgba(22, 5, 2, 0.55), transparent);
}

.mars::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 181, 168, 0.08) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.4) 100%);
}

.mars-rim {
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  border: 1px solid rgba(58, 181, 168, 0.12);
  box-shadow:
    0 0 40px rgba(58, 181, 168, 0.06),
    inset 0 0 60px rgba(58, 181, 168, 0.03);
  transform: translateZ(2px);
}

.mars-hud {
  position: absolute;
  bottom: 38%;
  right: 18%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 181, 168, 0.5), transparent);
  opacity: 0.6;
}

.mars-hud::before,
.mars-hud::after {
  content: "";
  position: absolute;
  background: rgba(58, 181, 168, 0.35);
}

.mars-hud::before {
  left: 50%;
  top: -20px;
  width: 1px;
  height: 40px;
  transform: translateX(-50%);
}

.mars-hud::after {
  left: 50%;
  top: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(58, 181, 168, 0.6);
}

@keyframes atmoDrift {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, transparent 30%, rgba(3, 4, 8, 0.7) 100%),
    linear-gradient(to bottom, rgba(3, 4, 8, 0.5) 0%, transparent 25%, rgba(3, 4, 8, 0.85) 90%);
}

/* ── 顶栏 ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(11, 15, 24, 0.42);
  backdrop-filter: saturate(108%) blur(13px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text b { font-size: 15px; font-weight: 700; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }

/* ── 主内容 ── */
main {
  position: relative;
  z-index: 10;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ── Hero（对齐启动台） ── */
.hero {
  padding: 110px 0 20px;
}

.hero-inner {
  max-width: 1120px;
}

.hero h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 9px;
}

.hero-sub {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ── 模块卡片（对齐 LauncherView） ── */
.features { padding: 10px 0 60px; }

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.mod-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: saturate(108%) blur(13px);
  padding: 26px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.mod-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--tone);
  opacity: 0.75;
}

.mod-card::after {
  content: "";
  position: absolute;
  right: -44px; top: -44px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tone), transparent 70%);
  opacity: 0.09;
  transition: 0.22s;
}

.mod-card:hover {
  border-color: var(--line2);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.mod-card:hover::after { opacity: 0.17; transform: scale(1.15); }

.mod-card.tone-gold { --tone: var(--gold); }
.mod-card.tone-cyan { --tone: var(--cyan); }
.mod-card.tone-violet { --tone: var(--violet); }

.mod-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mod-ico { font-size: 22px; }
.mod-badge {
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.mod-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.mod-en { font-size: 10px; color: var(--dim); letter-spacing: 2.5px; margin-bottom: 10px; }
.mod-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; flex: 1; }

/* ── 卡片内动态 UI Mock ── */
.ui-mock {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px;
  margin-top: auto;
}

.ui-ws { display: flex; gap: 8px; min-height: 88px; }
.ui-side { display: flex; flex-direction: column; gap: 3px; width: 28px; flex-shrink: 0; }
.ui-side i {
  font-style: normal;
  font-size: 9px;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  color: var(--dim);
  background: rgba(255,255,255,0.03);
}
.ui-side i.on { color: var(--gold); background: rgba(220,166,79,0.1); border: 1px solid rgba(220,166,79,0.25); }

.ui-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ui-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; flex: 1; }
.ui-grid span {
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.05);
  min-height: 22px;
}
.ui-grid span.f { border-style: solid; border-color: rgba(220,166,79,0.2); background: rgba(220,166,79,0.08); }
.ui-grid span.f.a { border-color: rgba(58,181,168,0.2); background: rgba(58,181,168,0.06); }

.ui-bar { display: flex; gap: 4px; }
.ui-bar em {
  font-style: normal;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.ui-bar em.p { color: var(--gold); border-color: rgba(220,166,79,0.35); background: rgba(220,166,79,0.1); }

.ui-voice { display: flex; flex-direction: column; gap: 6px; min-height: 88px; }
.ui-vrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.ui-vrow b { font-size: 10px; font-weight: 600; }
.ui-wave { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.ui-wave i {
  display: block; width: 2px; background: var(--cyan); border-radius: 1px;
  animation: waveBar 1s ease-in-out infinite;
}
.ui-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.ui-wave i:nth-child(2) { height: 70%; animation-delay: .1s; }
.ui-wave i:nth-child(3) { height: 50%; animation-delay: .2s; }
.ui-wave i:nth-child(4) { height: 85%; animation-delay: .3s; }
.ui-wave i:nth-child(5) { height: 60%; animation-delay: .4s; }

.ui-line {
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
  padding: 5px 8px;
  border-left: 2px solid var(--cyan);
}

.ui-skill { display: flex; flex-direction: column; gap: 5px; min-height: 88px; }
.ui-chat {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  max-width: 95%;
}
.ui-chat.u { align-self: flex-end; background: rgba(107,140,217,0.1); border: 1px solid rgba(107,140,217,0.2); color: #b8c9e8; }
.ui-chat.a { align-self: flex-start; background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--muted); }
.ui-chat code { display: block; font-size: 9px; color: var(--violet); margin-bottom: 2px; }
.ui-prog { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.ui-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); animation: progressPulse 2s ease-in-out infinite; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes progressPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.btn.primary {
  background: rgba(220, 166, 79, 0.12);
  border: 1px solid rgba(220, 166, 79, 0.46);
  color: var(--gold);
  box-shadow: none;
}
.btn.primary:hover {
  background: rgba(220, 166, 79, 0.2);
  border-color: var(--gold);
  color: #f0c478;
  transform: translateY(-1px);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover { border-color: rgba(255,255,255,.2); }

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats b {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.hero-stats span { font-size: 12px; color: var(--muted); }

/* ── Section 通用 ── */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.features { padding: 60px 0; }

.feat-row {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) minmax(340px, 3fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}

.feat-row > * { min-width: 0; }

.feat-row.reverse .feat-copy { order: 2; }
.feat-row.reverse .shot-frame { order: 1; }

.feat-copy {
  max-width: 420px;
  min-width: 280px;
}

.feat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.feat-tag.gold { color: var(--gold); background: rgba(220,166,79,.12); }
.feat-tag.cyan { color: var(--cyan); background: rgba(58,181,168,.12); }
.feat-tag.violet { color: var(--violet); background: rgba(160,127,214,.12); }

.feat-copy h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.feat-copy > p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.feat-row .shot-frame {
  max-width: 100%;
  width: 100%;
}

.feat-row.reverse .shot-frame {
  justify-self: stretch;
}

.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feat-list li {
  font-size: 13px;
  color: #9aa3b8;
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.feat-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 3px;
}

/* ── 真实界面截图框 ── */
.shot-frame {
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0c0e13;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(176, 190, 218, 0.04) inset,
    0 0 60px rgba(58, 181, 168, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.shot-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(58, 181, 168, 0.08);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ── 流程 ── */
.workflow { padding: 60px 0 80px; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-card {
  padding: 24px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s;
}

.flow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.14);
}

.flow-card .num {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.flow-card h4 { font-size: 15px; margin-bottom: 6px; }
.flow-card p { font-size: 13px; color: var(--muted); }

/* ── 优势卡片 ── */
.highlights { padding: 40px 0 80px; }

.hl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hl-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform .25s;
}

.hl-card:hover { transform: translateY(-2px); }

.hl-icon { font-size: 28px; margin-bottom: 12px; }
.hl-card h4 { font-size: 15px; margin-bottom: 8px; }
.hl-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── 下载区 ── */
.download { padding: 40px 0 60px; }

.download-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: saturate(108%) blur(13px);
}

.dl-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(79,124,255,.25);
}

.download-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.download-card > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.dl-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5ee89a;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5ee89a;
  box-shadow: 0 0 10px #5ee89a;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  font-size: 12px;
  color: #5c6478;
  border-top: 1px solid var(--border);
}

/* ── 滚动入场动画 ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 响应式 ── */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    max-width: none;
    order: 1;
  }

  .hero-shot {
    order: 2;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }

  .feat-row,
  .feat-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }

  .feat-row.reverse .feat-copy,
  .feat-row.reverse .shot-frame { order: unset; }

  .feat-copy {
    max-width: none;
    min-width: 0;
  }

  .feat-row .shot-frame,
  .feat-row.reverse .shot-frame {
    max-width: 100%;
    justify-self: center;
  }

  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-grid { grid-template-columns: 1fr; }

  .nav { display: none; }
  .mars-wrap { width: 130vmin; bottom: -32vh; right: -20vw; }
}

@media (max-width: 480px) {
  .flow-grid { grid-template-columns: 1fr; }
  .site-header { padding: 12px 16px; }
  main { padding: 0 16px 80px; }
}
