/* 落地页样式：主题色由 index.html 里的 :root 变量按渠道注入（--x 为颜色，--x-rgb 为 rgba 用的三元组；
   不用 color-mix，兼容微信 / QQ 内置浏览器）；只用系统字体、不引外部资源（国内访问快） */
:root {
  --text: #eef5f2;
  --muted: #9db0aa;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.035);
  --on-primary: #04150f;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-narrow {
  max-width: 760px;
}

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(var(--bg-rgb), 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: none;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn .soon {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* iPhone 访问：网页版作为主按钮，Android 包退为次要 */
html[data-platform='ios'] .btn[data-dl='web'] {
  background: var(--primary);
  border-color: transparent;
  color: var(--on-primary);
  order: -1;
}

html[data-platform='ios'] .btn[data-dl='android'] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

/* ---------------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0) 70%),
    radial-gradient(40% 40% at 90% 30%, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0) 70%);
}

.hero-in {
  display: grid;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: 34px;
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 800;
}

.lead {
  margin: 16px 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 17px;
}

.fineprint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* 电脑访问才显示扫码卡片 */
.qr {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 14px;
  width: fit-content;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

html[data-platform='desktop'] .qr {
  display: flex;
}

.qr svg {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  background: #fff;
}

.qr b {
  display: block;
  font-size: 16px;
}

.qr span {
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glow {
  position: absolute;
  top: 10%;
  right: 5%;
  bottom: 20%;
  left: 5%;
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), 0.45), rgba(var(--primary-rgb), 0));
  filter: blur(30px);
}

.phone {
  position: relative;
  margin: 0;
  padding: 8px;
  border-radius: 34px;
  background: #090c0e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.phone img {
  border-radius: 26px;
}

.phone-hero {
  width: 260px;
  width: min(280px, 72vw);
}

.chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------------------------------------------------------------- 分区 */

.section {
  padding: 64px 0;
}

.section-alt {
  background: rgba(var(--panel-rgb), 0.7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2,
.cta h2 {
  font-size: 28px;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
}

.section-sub {
  margin: 10px 0 32px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ico {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.14);
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 截图：手机上横向滑动，电脑上并排 */
.screens {
  display: flex;
  gap: 20px;
  margin: 0 -16px;
  padding: 4px 16px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screens::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: none;
  width: 230px;
  width: min(240px, 66vw);
  margin: 0;
  scroll-snap-align: center;
}

.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 20px 20px 20px 72px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--on-primary);
  background: var(--primary);
}

.steps b {
  display: block;
  font-size: 17px;
}

.steps span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

details {
  border-bottom: 1px solid var(--line);
}

details:first-of-type {
  margin-top: 24px;
}

summary {
  position: relative;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.cta {
  padding: 64px 0;
  background: linear-gradient(160deg, rgba(var(--primary-deep-rgb), 0.55), rgba(var(--primary-deep-rgb), 0) 75%), var(--bg);
  text-align: center;
}

.cta .dl {
  justify-content: center;
  margin-top: 28px;
}

.footer {
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0 0 10px;
}

.advice b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.copy {
  margin-top: 18px !important;
}

/* 微信 / QQ 内置浏览器：提示去系统浏览器下载 */
.wx-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 24px 0;
  background: rgba(0, 0, 0, 0.88);
  text-align: center;
  font-size: 18px;
}

.wx-mask[hidden] {
  display: none;
}

.wx-arrow {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 96px;
  height: 96px;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-mask b {
  font-size: 22px;
  letter-spacing: 2px;
}

.wx-mask .btn {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- 宽屏 */

@media (min-width: 720px) {
  .wrap {
    padding: 0 24px;
  }

  .nav {
    display: flex;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens {
    justify-content: center;
    margin: 0;
    padding: 4px 0 12px;
    overflow: visible;
  }

  .shot {
    width: 250px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero-in {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }

  .phone-hero {
    width: 300px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps li {
    padding: 72px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
