/* ============================================================
   GWork 官网 · 深色科技风（参考 zcode.z.ai 设计语言）
   单色体系：黑 / 白 / 灰，无任何蓝紫渐变；仅保留语义化绿色状态点。
   ============================================================ */

:root {
  --bg: #050607;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --text-dim: #a3a3ab;
  --text-faint: #6f6f78;
  --white: #ffffff;
  --ok: #34d399;          /* 仅用于"运行中/成功"语义状态 */
  --radius: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 255, 255, 0.22); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }
ul { list-style: none; }

/* ---------- 背景层：动态极光 + 细网格 + 光标追光 ----------
   三层极光各自独立漂移，底层带缓慢色相呼吸（绿→青绿，绝不进蓝紫）。
   全部基于 transform/opacity，GPU 友好。 */
.bg-aurora,
.bg-aurora::before,
.bg-aurora::after {
  position: fixed;
  inset: -12%;
  z-index: -3;
  pointer-events: none;
}
.bg-aurora {
  background: radial-gradient(42% 50% at 18% 24%, rgba(52, 211, 153, 0.12), transparent 68%);
  animation: aurora-a 24s ease-in-out infinite alternate;
}
.bg-aurora::before {
  content: "";
  background:
    radial-gradient(36% 44% at 82% 14%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(28% 36% at 64% 58%, rgba(255, 255, 255, 0.045), transparent 72%);
  animation: aurora-b 30s ease-in-out infinite alternate;
}
.bg-aurora::after {
  content: "";
  background: radial-gradient(46% 54% at 46% 92%, rgba(45, 212, 191, 0.09), transparent 70%);
  animation: aurora-c 26s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
@keyframes aurora-b {
  from { transform: translate3d(2%, 1%, 0) scale(1.06); }
  to   { transform: translate3d(-4%, 4%, 0) scale(1); }
}
@keyframes aurora-c {
  from { transform: translate3d(1%, 3%, 0) scale(1);      filter: hue-rotate(-14deg); }
  to   { transform: translate3d(-2%, -4%, 0) scale(1.16); filter: hue-rotate(26deg); }
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.033) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 32%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 32%, transparent 100%);
}
/* 光标追光：柔和白色光晕跟随鼠标（JS 写入 --spot-x/y，带惯性） */
.bg-spot {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--spot-x, 50%) var(--spot-y, 28%),
              rgba(255, 255, 255, 0.055), transparent 65%);
  opacity: 0;
  transition: opacity 0.8s;
}
.bg-spot.on { opacity: 1; }

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 入场 / 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 128px 0 56px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background-color 0.2s;
}
.hero-badge:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.4);
  animation: pulse-ring 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.5); opacity: 0.8; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 820px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.hero h1 .dim-gradient {
  background: linear-gradient(110deg, #ffffff 20%, #9ca3af 50%, #ffffff 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7.5s ease-in-out infinite alternate;
}
@keyframes sheen {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
.hero-sub {
  margin: 20px auto 0;
  max-width: 660px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.6vw, 16.5px);
  line-height: 1.8;
}

/* Hero 下载 CTA（ZCode 式白色大按钮） */
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.download-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: var(--white);
  color: #0a0a0b;
  border-radius: 18px;
  padding: 15px 28px;
  border: 1px solid var(--white);
  box-shadow: 0 18px 50px -18px rgba(255, 255, 255, 0.28);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background-color 0.3s;
}
.download-cta:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 60px -18px rgba(255, 255, 255, 0.34);
}
.download-cta:active { transform: translateY(-1px) scale(0.99); }
.download-cta svg { width: 30px; height: 30px; flex: none; }
.download-cta .cta-title { font-size: 15.5px; font-weight: 700; }
.download-cta .cta-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }
.all-downloads-link {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.all-downloads-link:hover { color: rgba(255, 255, 255, 0.66); }

/* ---------- Hero 应用窗口（动效演示） ---------- */
.hero-visual { margin-top: 58px; }
.app-window {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  text-align: left;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.win-dots { display: flex; gap: 7px; }
.win-dots span { width: 11px; height: 11px; border-radius: 50%; }
.win-dots span:nth-child(1) { background: #ff5f57; }
.win-dots span:nth-child(2) { background: #febc2e; }
.win-dots span:nth-child(3) { background: #28c840; }
.win-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: none;
}
.win-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.win-status.busy .dot { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.app-body { display: flex; height: 470px; }

/* 侧边栏 */
.app-side {
  width: 228px;
  flex: none;
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.012);
}
.side-actions { display: flex; flex-direction: column; gap: 4px; }
.side-action {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.side-action svg { width: 14px; height: 14px; opacity: 0.75; }
.side-label {
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.task-list { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
}
.task-item span { overflow: hidden; text-overflow: ellipsis; }
.task-item .t-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; opacity: 0; }
.task-item.active { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.task-item.active .t-dot { opacity: 1; }
.side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
}
.side-user .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(140deg, #3f3f46, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-dim);
}

/* 主区 */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-scroll {
  flex: 1;
  overflow: hidden;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.msg { max-width: 86%; font-size: 13px; line-height: 1.65; }
.msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 3px 12px;
  padding: 9px 13px;
  color: var(--text);
}
.msg.agent { color: var(--text-dim); }

.step {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.step.on { opacity: 1; transform: none; }

.tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  width: fit-content;
  max-width: 100%;
}
.tool-row svg { width: 13.5px; height: 13.5px; color: var(--text-faint); flex: none; }
.tool-row b { font-weight: 600; color: var(--text); white-space: nowrap; }
.tool-row .meta {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-row .add { color: var(--ok); }

.term-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #08090a;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-dim);
  width: fit-content;
  max-width: 100%;
}
.term-block .t-prompt { color: var(--text-faint); }
.term-block .t-cmd { color: var(--text); }
.term-block .t-out { color: var(--text-faint); }
.term-block .t-ok { color: var(--ok); }
.type-caret::after {
  content: "";
  display: inline-block;
  width: 7px; height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
  background: rgba(255, 255, 255, 0.7);
  animation: blink 0.9s step-end infinite;
}

.check-list { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.check-item { display: flex; align-items: center; gap: 8px; color: var(--text-faint); }
.check-item .box {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: background-color 0.25s, border-color 0.25s;
}
.check-item .box svg { width: 9px; height: 9px; color: #0a0a0b; opacity: 0; transform: scale(0.4); transition: all 0.25s; }
.check-item.done { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.25); }
.check-item.done .box { background: var(--ok); border-color: var(--ok); }
.check-item.done .box svg { opacity: 1; transform: scale(1); }

.done-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text);
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.06);
  border-radius: 10px;
  padding: 9px 13px;
  width: fit-content;
}
.done-bar svg { width: 14px; height: 14px; color: var(--ok); }
.done-bar .elapsed { color: var(--text-faint); font-family: var(--font-mono); font-size: 11.5px; }

/* 底部输入条 */
.chat-input {
  flex: none;
  margin: 0 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-input .ph { flex: 1; font-size: 12.5px; color: var(--text-faint); }
.chat-input .chip {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.chat-input .chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.chat-input .send {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.chat-input .send svg { width: 14px; height: 14px; color: #0a0a0b; }

.replay-btn {
  position: absolute;
  right: 14px;
  bottom: 74px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background-color 0.2s;
}
.replay-btn.show { opacity: 1; pointer-events: auto; }
.replay-btn:hover { background: rgba(255, 255, 255, 0.12); }
.replay-btn svg { width: 12px; height: 12px; }

/* ---------- 模型跑马灯 ---------- */
.model-strip {
  margin-top: 64px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.model-strip .strip-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.model-strip:hover .marquee { animation-play-state: paused; }
.marquee-group { display: flex; gap: 14px; padding-right: 14px; }
.model-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color 0.25s, color 0.25s;
}
.model-chip:hover { border-color: var(--border-hover); color: var(--text); }
.model-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 区块标题 ---------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.section-head p.desc { margin-top: 14px; max-width: 640px; color: var(--text-dim); font-size: 15px; }

/* ---------- 特性卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 19px; height: 19px; color: var(--text); }
.feature-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 9px; }
.feature-card p { font-size: 13.5px; line-height: 1.75; color: var(--text-dim); }

/* ---------- 三步上手 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 26px 24px;
  overflow: hidden;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.06);
  font-variant-numeric: tabular-nums;
}
.step-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.step-card h3 svg { width: 16px; height: 16px; color: var(--text-dim); }
.step-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.75; }
.step-card code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------- 下载矩阵 ---------- */
.download-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.download-note svg { width: 14px; height: 14px; flex: none; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-col-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 16px; }
.dl-col-head svg { width: 24px; height: 24px; color: var(--text); }
.dl-col-head h3 { font-size: 17px; font-weight: 600; }
.dl-col-head .tag {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 999px;
}
.dl-rows { display: flex; flex-direction: column; gap: 10px; }
.dl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
}
a.dl-row:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border);
  transform: translateY(-1px);
}
.dl-row .dl-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dl-row .dl-name { font-size: 13.5px; color: var(--text); }
.dl-row .fmt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 2.5px 7px;
}
.dl-row .soon {
  font-size: 11px;
  color: var(--text-faint);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 999px;
  flex: none;
}
.dl-row.disabled { opacity: 0.55; }
.dl-row .arrow { width: 14px; height: 14px; color: var(--text-faint); flex: none; transition: transform 0.25s, color 0.25s; }
a.dl-row:hover .arrow { transform: translateY(2px); color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding: 44px 0 54px; }
.footer hr { border: none; border-top: 1px solid var(--border); margin-bottom: 30px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--text-dim); }
.footer-brand img { width: 20px; height: 20px; border-radius: 5px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .feature-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .app-side { display: none; }
}
@media (max-width: 767px) {
  .section { padding: 68px 0; }
  .feature-grid, .steps, .download-grid { grid-template-columns: 1fr; }
  .app-body { height: 420px; }
  .hero { padding-top: 96px; }
  .download-cta { width: 100%; max-width: 420px; }
  .replay-btn { bottom: 84px; }
}
@media (max-width: 480px) {
  .app-body { height: 380px; }
  .msg { max-width: 96%; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise { animation: none; }
  .bg-aurora, .bg-aurora::before, .bg-aurora::after,
  .pulse-dot::after, .marquee { animation: none; }
  .hero h1 .dim-gradient { animation: none; }
  .bg-spot { display: none; }
  .step { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   顶部导航条
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  background: rgba(5, 6, 7, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--white);
  color: #0a0a0b;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.94); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 锚点跳转偏移（抵消固定导航高度） */
section[id] { scroll-margin-top: 76px; }

/* 嵌入模式：地址栏携带 ?embed 参数时隐藏顶部导航，
   并收敛为导航预留的顶部留白与锚点偏移。标记由页面内联脚本前置写入 <html>。 */
.is-embedded .site-header { display: none; }
.is-embedded .hero { padding-top: 56px; }
.is-embedded section[id] { scroll-margin-top: 16px; }

/* 移动端导航 */
@media (max-width: 767px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 16px;
    background: rgba(5, 6, 7, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a { padding: 13px 8px; font-size: 15px; }
  .is-embedded .hero { padding-top: 32px; }
}

/* ============================================================
   开源仓库与 Star 引导
   ============================================================ */
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.nav-social svg { width: 18px; height: 18px; }
.nav-social:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Hero 开源 Star 引导 */
.open-source {
  margin-top: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.oss-prompt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.oss-prompt .oss-star { color: var(--ok); font-size: 15px; line-height: 1; }
.oss-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.repo-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
}
.repo-btn svg { width: 17px; height: 17px; }
.repo-btn:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.repo-btn .star-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.05);
}
.repo-btn .star-badge svg { width: 11px; height: 11px; color: var(--ok); }
