/* AgentRemote 官网样式。配色取自 App：主色 #8676ff，深色底 #0b0a10。 */

:root {
  --bg: #0b0a10;
  --surface: #16151d;
  --surface-2: #22212c;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f3f2f8;
  --muted: #a3a1b3;
  --accent: #8676ff;
  --accent-hi: #9a8cff;
  --accent-lo: #5a48e0;
  --cyan: #62e4ff;
  --pink: #d94d8c;
  --ok: #3fd08f;
  --warn: #ffb86b;
  --danger: #ff7a8a;

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 18px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
code, pre { font-family: var(--mono); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent-lo);
  color: #fff;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 按钮 ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .25s, border-color .25s, background-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; border-radius: 16px; font-size: 16.5px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8171fb 0%, var(--accent-lo) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 30px -8px rgba(110, 92, 240, .7);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 14px 36px -8px rgba(126, 108, 255, .9);
}
/* 主按钮上周期性扫过的一道光 */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 5.5s var(--ease) infinite;
  pointer-events: none;
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: rgba(154, 140, 255, .7);
  background: rgba(134, 118, 255, .12);
}

@keyframes sheen {
  0%, 62% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.is-scrolled {
  background: rgba(11, 10, 16, .78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
}
.brand img { border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg > * { position: absolute; inset: 0; }
#hero-canvas {
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 98%);
  mask-image: linear-gradient(#000 55%, transparent 98%);
}
.hero-aurora {
  background:
    radial-gradient(60% 55% at 12% 0%, rgba(134, 118, 255, .28), transparent 70%),
    radial-gradient(45% 45% at 96% 4%, rgba(217, 77, 140, .15), transparent 70%),
    radial-gradient(40% 40% at 70% 70%, rgba(98, 228, 255, .07), transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate;
}
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 100%);
}
@keyframes aurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: .85; }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); opacity: 1; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(calc(100vh - var(--nav-h)), 860px);
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(134, 118, 255, .35);
  border-radius: 999px;
  background: rgba(134, 118, 255, .1);
  color: #cfc9ff;
  font-size: 13.5px;
  line-height: 1.5;
}
.dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  from { transform: scale(.5); opacity: .9; }
  to { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
}
.grad {
  background: linear-gradient(100deg, #b9afff 0%, var(--accent) 45%, var(--cyan) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 34em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18.5px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 34em;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.hero-note .ic { margin-top: 3px; color: var(--warn); }
.hero-note strong { color: var(--warn); font-weight: 600; }

/* 首屏右侧：电脑小窗 + 手机样机 */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding-right: 8px;
}
.halo {
  position: absolute;
  left: 72%;
  top: 50%;
  width: 0;
  height: 0;
}
.halo::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  margin: -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(134, 118, 255, .34), transparent);
}
.halo i {
  position: absolute;
  width: 470px;
  height: 470px;
  margin: -235px;
  border: 1px dashed rgba(154, 140, 255, .28);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.halo i + i {
  width: 620px;
  height: 620px;
  margin: -310px;
  border-color: rgba(98, 228, 255, .14);
  animation-duration: 90s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.phone {
  position: relative;
  width: 290px;
  flex: none;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #34313f, #121118 55%, #23212d);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12),
    0 50px 90px -30px rgba(0, 0, 0, .9),
    0 0 110px -30px rgba(134, 118, 255, .6);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 584px;
  border-radius: 38px;
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(134, 118, 255, .3), transparent 70%),
    radial-gradient(90% 35% at 100% 0%, rgba(217, 77, 140, .16), transparent 70%),
    var(--bg);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
}
.ph-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 14px 10px 10px;
}
.ph-back { width: 20px; height: 20px; }
.ph-heading { min-width: 0; flex: 1; }
.ph-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ph-state {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.ph-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.ph-state[data-state="run"],
.ph-state[data-state="done"] { color: var(--ok); }
.ph-state[data-state="run"] i,
.ph-state[data-state="done"] i { background: var(--ok); }
.ph-state[data-state="run"] i { animation: blink 1s ease-in-out infinite; }
.ph-stop {
  padding: 5px 14px;
  border: 1px solid rgba(255, 122, 138, .55);
  border-radius: 999px;
  background: rgba(255, 122, 138, .12);
  color: var(--danger);
  font-size: 12px;
}
.ph-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 6px 12px 10px;
  overflow: hidden;
}
.ph-user {
  padding: 9px 12px;
  border: 1px solid rgba(134, 118, 255, .45);
  border-radius: 14px;
  background: rgba(134, 118, 255, .2);
}
.ph-ai code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: .92em;
}
.ph-h { font-size: 14.5px; font-weight: 700; }
.ph-list { color: #dcdaea; }
.ph-code {
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #1b1a24;
  color: #d5d2ea;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: pre;
  overflow: hidden;
}
.ph-summary {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-summary b { margin-right: 8px; font-family: var(--font); font-weight: 500; }
.ph-steps { display: flex; flex-direction: column; gap: 6px; }
.ph-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(34, 33, 44, .75);
}
.ph-step div { min-width: 0; flex: 1; }
.ph-step b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.ph-step span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-step i {
  width: 13px;
  height: 13px;
  flex: none;
  border: 1.6px solid rgba(154, 140, 255, .3);
  border-top-color: var(--accent-hi);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.ph-step.is-done i {
  border: 0;
  border-radius: 0;
  animation: none;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph-enter { animation: ph-in .4s var(--ease) both; }
@keyframes ph-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ph-body.is-leaving > * { opacity: 0; transition: opacity .45s; }

.ph-composer {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px 16px;
}
.ph-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(34, 33, 44, .8);
  line-height: 1.5;
  transition: border-color .2s;
}
.ph-input.is-typing { border-color: var(--accent); }
.ph-placeholder { color: #77758a; }
.ph-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--accent-hi);
  animation: blink .9s steps(1) infinite;
}
.ph-send {
  display: grid;
  place-items: center;
  padding: 0 15px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform .15s, filter .15s;
}
.ph-send.is-press { transform: scale(.92); filter: brightness(1.25); }
@keyframes blink { 50% { opacity: .15; } }

.pc-card {
  position: absolute;
  left: 0;
  bottom: 72px;
  z-index: 2;
  width: 252px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(22, 21, 29, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(98, 228, 255, .05);
  overflow: hidden;
  animation: float 7s ease-in-out -3.5s infinite;
}
.pc-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}
.pc-dots { display: flex; gap: 4px; }
.pc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3a3848; }
.pc-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-online {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(63, 208, 143, .14);
  color: var(--ok);
}
.pc-log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  height: 118px;
  padding: 10px 12px 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  overflow: hidden;
}
.pc-line {
  color: #c6c3d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-line::before { content: "› "; color: #5d5b70; }
.pc-line.is-in { color: var(--cyan); }
.pc-line.is-ok { color: var(--ok); }
.pc-line.is-ok::before { content: ""; }
.pc-line.is-idle { color: #77758a; }

/* ---------- 通用区块 ---------- */

.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 104px);
}
.section-tint {
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(134, 118, 255, .1), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .018), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-hi);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
}
.section-head h2 {
  font-size: clamp(27px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.4vw, 17.5px);
}

/* 卡片：光标跟随的高光（--mx / --my 由 JS 写入） */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)), var(--surface);
  overflow: hidden;
}
.card > * { position: relative; z-index: 1; }
.card::before,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card::before {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(134, 118, 255, .16), transparent 65%);
}
.card::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(170, 158, 255, .9), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) {
  .card:hover::before,
  .card:hover::after { opacity: 1; }
}

/* ---------- 工作原理 ---------- */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 12vw, 168px) minmax(0, 1fr) clamp(96px, 12vw, 168px) minmax(0, 1fr);
  align-items: center;
}
.flow-node { padding: 26px 24px 28px; height: 100%; }
.flow-node h3 { margin-top: 18px; font-size: 19px; line-height: 1.35; }
.flow-node p { color: var(--muted); font-size: 14.5px; }
.flow-node .node-tag {
  margin: 4px 0 10px;
  color: var(--accent-hi);
  font-family: var(--mono);
  font-size: 12.5px;
}
.node-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(134, 118, 255, .35);
  border-radius: 14px;
  background: rgba(134, 118, 255, .14);
  color: var(--accent-hi);
  font-size: 22px;
}
.flow-node.is-relay { border-style: dashed; border-color: rgba(98, 228, 255, .28); }
.is-relay .node-icon {
  border-color: rgba(98, 228, 255, .4);
  background: rgba(98, 228, 255, .1);
  color: var(--cyan);
  animation: relay-pulse 2.6s ease-in-out infinite;
}
.is-relay .node-tag { color: var(--cyan); }
@keyframes relay-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(98, 228, 255, .35); }
  50% { box-shadow: 0 0 0 10px rgba(98, 228, 255, 0); }
}

.flow-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-inline: 10px;
}
.flow-label {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
}
.flow-label.is-out { color: var(--cyan); }
.flow-label.is-in { color: var(--accent-hi); }
.flow-label.is-out::after { content: " →"; }
.flow-label.is-in::before { content: "← "; }
.lane {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.lane i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  border-radius: inherit;
  animation: flow-x 2.4s linear infinite;
}
.lane i + i { animation-delay: -1.2s; }
.lane-out i { background: linear-gradient(90deg, transparent, var(--cyan)); }
.lane-in i { background: linear-gradient(270deg, transparent, var(--accent-hi)); animation-direction: reverse; }
@keyframes flow-x {
  from { transform: translateX(-100%); }
  to { transform: translateX(280%); }
}
@keyframes flow-y {
  from { transform: translateY(-100%); }
  to { transform: translateY(280%); }
}

/* ---------- 功能 ---------- */

.fgroup + .fgroup { margin-top: clamp(40px, 5vw, 64px); }
.fgroup-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.fgroup-no {
  display: grid;
  place-items: center;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo));
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.fgroup-head h3 { font-size: 22px; line-height: 1.3; }
.fgroup-head p { color: var(--muted); font-size: 15px; }

.fgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature { padding: 22px 22px 24px; transition: transform .3s var(--ease), border-color .3s; }
.feature.is-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(134, 118, 255, .16), rgba(134, 118, 255, .02) 60%), var(--surface);
}
@media (hover: hover) {
  .feature:hover { transform: translateY(-3px); }
}
.f-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(134, 118, 255, .14);
  color: var(--accent-hi);
  font-size: 19px;
}
.feature h4 { margin-top: 16px; font-size: 16.5px; line-height: 1.4; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- 隐私与安全 ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.trust-item { padding: 30px 28px 32px; }
.t-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(63, 208, 143, .35);
  border-radius: 16px;
  background: rgba(63, 208, 143, .1);
  color: var(--ok);
  font-size: 24px;
}
.trust-item h3 { margin-top: 20px; font-size: 19px; line-height: 1.4; }
.trust-item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- 如何开始 ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}
.step { padding: 28px 26px 30px; }
.step-no {
  display: block;
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(160deg, #cfc8ff, var(--accent) 60%, rgba(134, 118, 255, .25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-flag {
  position: absolute !important;
  top: 26px;
  right: 22px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 184, 107, .5);
  border-radius: 999px;
  background: rgba(255, 184, 107, .12);
  color: var(--warn);
  font-size: 12.5px;
  line-height: 1.5;
}
.step.is-first { border-color: rgba(134, 118, 255, .45); }
.step h3 { margin-top: 18px; font-size: 19px; line-height: 1.4; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- 下载 ---------- */

.section-download {
  background: radial-gradient(60% 60% at 50% 100%, rgba(134, 118, 255, .16), transparent 70%);
}
.section-download .section-head { margin-bottom: 28px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 184, 107, .5);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 184, 107, .15), rgba(255, 184, 107, .04));
}
.notice > .ic { margin-top: 3px; color: var(--warn); font-size: 22px; }
.notice strong { display: block; color: #ffd3a1; font-size: 17px; line-height: 1.5; }
.notice p { margin-top: 2px; color: #d9cfc4; font-size: 14.5px; }

.dl-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.dl {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
}
.dl.is-primary {
  border-color: rgba(134, 118, 255, .55);
  background: linear-gradient(160deg, rgba(134, 118, 255, .22), rgba(134, 118, 255, .03) 55%), var(--surface);
  box-shadow: 0 30px 70px -40px rgba(134, 118, 255, .8);
}
.dl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 24px;
}
.is-primary .dl-icon { background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo)); }
.badge {
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-accent {
  border-color: rgba(154, 140, 255, .7);
  background: rgba(134, 118, 255, .2);
  color: #ddd8ff;
  font-weight: 600;
}
.dl h3 { margin-top: 20px; font-size: 23px; line-height: 1.3; }
.dl-platform { color: var(--accent-hi); font-family: var(--mono); font-size: 13px; }
.dl-desc { flex: 1; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.dl-meta {
  margin-top: 12px;
  color: #c6c3d8;
  font-family: var(--mono);
  font-size: 12.5px;
}
.dl .btn { margin-top: 18px; }
.dl-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
/* 二维码在按钮上面，三张卡片的按钮靠卡片底部对齐 */
.dl-qr + .btn { margin-top: 14px; }
.dl-qr-img {
  width: 112px;
  height: 112px;
  flex: none;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8);
}
.dl-qr-img svg { display: block; width: 100%; height: 100%; }
.dl-qr p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.dl-foot {
  min-height: 3.2em;
  margin-top: 12px;
  color: #8f8da1;
  font-size: 12.5px;
  line-height: 1.6;
}
/* 在微信内置浏览器里，把“请在浏览器打开”的提示变醒目 */
.is-wechat .wx-tip {
  padding: 10px 12px;
  border: 1px solid rgba(255, 184, 107, .55);
  border-radius: 12px;
  background: rgba(255, 184, 107, .14);
  color: #ffd3a1;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px calc(36px + env(safe-area-inset-bottom));
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-tag { color: var(--muted); font-size: 14px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.footer-legal a:hover { color: var(--text); text-decoration: underline; }
.footer-copy { color: #8f8da1; font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- 滚动渐入：只有 JS 就绪后才加 .reveal-on，没有 JS 时内容照常可见 ---------- */

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

/* 右栏放不下“电脑小窗 + 手机”并排时，只留手机，避免小窗盖住手机里的内容 */
@media (max-width: 1240px) {
  .pc-card { display: none; }
  .hero-visual { justify-content: center; padding-right: 0; }
  .halo { left: 50%; }
}

@media (max-width: 1080px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl.is-primary { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 56px;
  }
  .hero-copy { text-align: center; }
  .hero-sub, .hero-note { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; text-align: left; }

  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-link {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    height: 84px;
    padding: 8px 0;
  }
  .lane { width: 2px; height: 100%; flex: none; }
  .lane i { inset: 0 0 auto 0; width: auto; height: 36%; animation-name: flow-y; }
  .lane-out i { background: linear-gradient(180deg, transparent, var(--cyan)); }
  .lane-in i { background: linear-gradient(0deg, transparent, var(--accent-hi)); }
  .flow-label { width: 7.5em; }
  .flow-label.is-out { text-align: right; }
  .flow-label.is-out::after { content: " ↓"; }
  .flow-label.is-in::before { content: "↑ "; }

  .trust, .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero-inner { padding-top: 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-note { font-size: 13.5px; }
  .pc-card { display: none; }
  .hero-visual { justify-content: center; padding-right: 0; }
  .halo { left: 50%; }
  .halo::before { width: 440px; height: 440px; margin: -220px; }
  .halo i { width: 380px; height: 380px; margin: -190px; }
  .halo i + i { display: none; }
  .phone { width: 276px; }
  .phone-screen { height: 556px; }

  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature,
  .feature.is-wide {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-column: auto;
    column-gap: 14px;
    padding: 16px 16px 18px;
  }
  .f-icon { grid-row: span 2; }
  .feature h4 { margin-top: 0; font-size: 16px; }
  .feature p { margin-top: 2px; }

  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl { padding: 22px 20px 18px; }
  .dl-foot { min-height: 0; }
  .notice { padding: 16px; gap: 12px; }
  .notice strong { font-size: 16px; }
  .trust-item, .step, .flow-node { padding: 22px 20px 24px; }
}

/* ---------- 减少动态效果 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
