/* 官网的样式：暗色背景、环境光晕、玻璃质感的卡片。不引外部字体和 CDN，首屏只有这一个样式文件。 */
:root {
  --bg: #080b14;
  --bg-raise: #0d1220;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #eef1f8;
  --text-dim: #a3adc2;
  --text-faint: #6f7a92;
  --accent: #6ea8ff;
  --accent-2: #8b5cf6;
  --ok: #4ade80;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 背景的光晕：三团很淡的径向渐变慢慢漂。固定在视口上，不跟着内容滚 */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora i:nth-child(1) {
  top: -28vmax;
  left: -14vmax;
  background: radial-gradient(circle, #3b6dff 0%, transparent 62%);
}

.aurora i:nth-child(2) {
  top: -18vmax;
  right: -24vmax;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 62%);
  animation-duration: 32s;
  animation-delay: -8s;
}

.aurora i:nth-child(3) {
  bottom: -38vmax;
  left: 22vw;
  background: radial-gradient(circle, #0ea5a4 0%, transparent 62%);
  opacity: 0.18;
  animation-duration: 38s;
  animation-delay: -15s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.12);
  }
}

/* 页眉 */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 20, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-dim);
}

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

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #5b9bff 0%, #7c6cf8 55%, #9a5cf6 100%);
  box-shadow: 0 10px 34px -12px rgba(110, 140, 255, 0.85);
}

.btn.primary:hover {
  box-shadow: 0 14px 40px -12px rgba(110, 140, 255, 1);
  filter: brightness(1.08);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.wide {
  width: 100%;
}

.btn[aria-disabled="true"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-faint);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* 首屏 */
.hero {
  padding: 84px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.02em;
}

h1 .shine {
  background: linear-gradient(100deg, #9cc4ff 0%, #c4a6ff 45%, #7ee7d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 30em;
  margin: 0 0 32px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.7vw, 19px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-meta {
  min-height: 1.6em;
  margin: 14px 0 0;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* 首屏右边的界面示意：一个桌面窗口和一部手机，纯 CSS 画的 */
.stage {
  position: relative;
  height: 440px;
  perspective: 1400px;
}

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.desk {
  position: absolute;
  top: 18px;
  left: 0;
  right: 56px;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  animation: float-a 9s ease-in-out infinite alternate;
}

.desk .bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.desk .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.desk .body {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: calc(100% - 34px);
}

.desk .list {
  padding: 12px 10px;
  border-right: 1px solid var(--line);
}

.row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
}

.row.on {
  background: rgba(255, 255, 255, 0.08);
}

.av {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6ea8ff, #8b5cf6);
}

.av.b {
  background: linear-gradient(135deg, #34d399, #0ea5a4);
}

.av.c {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
}

.ln {
  flex: 1;
  display: grid;
  gap: 5px;
}

.ln b,
.ln s {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
}

.ln s {
  width: 62%;
  background: rgba(255, 255, 255, 0.12);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.bub {
  max-width: 76%;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.bub.me {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, #5b9bff, #7c6cf8);
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 190px;
  height: 372px;
  padding: 12px 10px;
  border-radius: 34px;
  transform: rotateY(-14deg) rotateX(3deg);
  animation: float-b 7.5s ease-in-out infinite alternate;
}

.phone::before {
  content: "";
  display: block;
  width: 58px;
  height: 16px;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
}

.phone .chat {
  padding: 4px 4px 0;
}

.callcard {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.1);
  font-size: 12px;
  color: var(--text-dim);
}

.callcard .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.18);
}

@keyframes float-a {
  to {
    transform: rotateY(-7deg) rotateX(3deg) translateY(-10px);
  }
}

@keyframes float-b {
  to {
    transform: rotateY(-11deg) rotateX(2deg) translateY(12px);
  }
}

/* 小节 */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 34em;
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
}

/* 特性：大小不一的四张卡片 */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(140, 170, 255, 0.5);
  transform: translateY(-2px);
}

.bento .card:nth-child(1),
.bento .card:nth-child(4) {
  grid-column: span 4;
}

.bento .card:nth-child(2),
.bento .card:nth-child(3) {
  grid-column: span 2;
}

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

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

.glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(110, 168, 255, 0.12);
  color: var(--accent);
}

.glyph svg {
  width: 22px;
  height: 22px;
}

/* 下载 */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 88px;
}

.platform.current {
  border-color: rgba(140, 170, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(140, 170, 255, 0.25), 0 24px 60px -30px rgba(110, 140, 255, 0.7);
}

.platform header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform h3 {
  margin: 0;
  font-size: 20px;
}

.tag {
  margin-left: auto;
  padding: 2px 10px;
  border: 1px solid rgba(140, 170, 255, 0.5);
  border-radius: 999px;
  color: #b8ccff;
  font-size: 12px;
  white-space: nowrap;
}

.meta {
  min-height: 1.6em;
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hint {
  margin: 10px 0 0;
  color: var(--text-faint);
  font-size: 13px;
}

details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 14px;
}

details + details {
  margin-top: 10px;
}

summary {
  color: var(--text-dim);
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}

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

summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--text-faint);
}

details[open] summary::before {
  content: "−";
}

.note {
  margin: 10px 0 0;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

.sha {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sha-label {
  color: var(--text-faint);
  font-size: 12.5px;
}

.sha code {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.platform-foot {
  margin-top: auto;
}

/* 扫码和接口出错的提示 */
.aside {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 16px;
}

.qr {
  flex: none;
  width: 132px;
  height: 132px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.aside h3 {
  margin: 0 0 6px;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  color: #fde9b4;
  font-size: 15px;
}

/* 页脚 */
footer {
  margin-top: 40px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13.5px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

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

/* 微信、QQ 里点下载时的引导：盖住整页，箭头指向右上角的菜单 */
.guide {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-content: start;
  justify-items: end;
  padding: 18px 22px;
  background: rgba(5, 8, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.guide svg {
  width: 86px;
  height: 86px;
  margin-right: 6px;
  color: #fff;
}

.guide-card {
  justify-self: center;
  max-width: 320px;
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  text-align: center;
}

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

.guide-card p {
  margin: 0 0 18px;
  color: var(--text-dim);
}

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 60;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 26, 42, 0.94);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 滚到了才浮上来。没有脚本时内容照常显示：这个类是脚本加的 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 条款、支持这几个文字页 */
.doc {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.doc h1 {
  margin-top: 0;
  font-size: clamp(30px, 4.4vw, 42px);
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 20px;
}

.doc p,
.doc li {
  color: var(--text-dim);
}

.doc a {
  color: var(--accent);
}

.doc a:hover {
  text-decoration: underline;
}

.doc dt {
  margin-top: 20px;
  color: var(--text);
  font-weight: 600;
}

.doc dd {
  margin: 6px 0 0;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .hero {
    padding: 52px 0 40px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stage {
    height: 380px;
    max-width: 520px;
  }

  .bento .card:nth-child(n) {
    grid-column: span 6;
  }

  .platforms {
    grid-template-columns: 1fr;
  }

  section {
    padding: 52px 0;
  }
}

@media (max-width: 560px) {
  .nav nav a.opt {
    display: none;
  }

  .wrap {
    padding: 0 18px;
  }

  .cta .btn {
    width: 100%;
  }

  .stage {
    height: 330px;
  }

  .desk {
    right: 40px;
    height: 250px;
  }

  .desk .body {
    grid-template-columns: 96px 1fr;
  }

  .phone {
    width: 150px;
    height: 296px;
    border-radius: 28px;
  }

  .aside {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .aurora i,
  .desk,
  .phone {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card {
    transition: none;
  }
}
