/* 星路 IM — 手机优先下载页 */
:root {
  --bg: #070a14;
  --text: #f2f4fa;
  --muted: #8b94a8;
  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --font: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(91, 140, 255, 0.35), transparent),
    var(--bg);
}

/* ========== 手机：整页只有一屏核心内容 ========== */
.mobile-landing {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.mobile-inner {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.brand {
  margin-bottom: 8px;
}

.logo-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(91, 140, 255, 0.35);
}

.logo-mark svg {
  width: 28px;
  height: 28px;
}

.brand h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mobile-slogan {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.btn-download {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 32px rgba(91, 140, 255, 0.4);
  transition: transform 0.15s, opacity 0.15s;
}

.btn-download:active {
  transform: scale(0.98);
  opacity: 0.95;
}

.mobile-tips {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.mobile-foot {
  margin: 24px 0 0;
  font-size: 0.72rem;
  color: rgba(139, 148, 168, 0.75);
}

/* ========== 电脑宽屏：隐藏手机壳，显示扩展区 ========== */
.desktop-only {
  display: none;
}

/* 仅较宽的屏幕（电脑 / 大平板横屏）才显示大标题版；普通手机永远是上面的一屏下载页 */
@media (min-width: 820px) {
  .mobile-landing {
    display: none;
  }

  .desktop-only {
    display: block;
    min-height: 100vh;
  }

  .wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
  }

  .site-header {
    padding: 28px 0;
  }

  .logo-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }

  .logo-row .logo-mark {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
  }

  .desktop-hero {
    padding: 48px 0 80px;
    text-align: center;
  }

  .desktop-copy h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 auto 16px;
    font-weight: 800;
    line-height: 1.35;
    max-width: 14em;
  }

  .desktop-copy h2 span {
    background: linear-gradient(135deg, #a8c4ff, #c4b5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .desktop-copy p {
    max-width: 480px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .btn-download--desktop {
    display: inline-block;
    width: auto;
    min-width: 240px;
  }

  .desktop-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
  }

  .desktop-features span {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--muted);
  }

  .desktop-footer {
    padding: 32px 0 48px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .desktop-footer a {
    color: var(--accent);
    text-decoration: none;
  }
}
