:root {
  --ink: #0d1526;
  --ink-2: #4a566e;
  --ink-3: #7b869c;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eef4ff;
  --accent: #22d3ee;
  --green: #16a34a;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .06), 0 1px 3px rgba(13, 21, 38, .04);
  --shadow-md: 0 8px 24px rgba(13, 21, 38, .08);
  --shadow-lg: 0 24px 60px rgba(8, 14, 28, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 800px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(13, 21, 38, .05);
}
.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #fff;
}
.logo svg { width: 18px; height: 18px; }
.logo-sm { width: 26px; height: 26px; border-radius: 8px; }
.logo-sm svg { width: 15px; height: 15px; }
.brand-text { background: linear-gradient(120deg, #0d1526, #2b3b5c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--primary); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn .ico { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(180deg, #2f6df0, var(--primary));
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, .34); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #c9d3e4; background: #fbfcfe; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-xl { padding: 17px 30px; font-size: 17px; width: 100%; }
.btn-meta {
  font-size: 12px;
  font-weight: 500;
  opacity: .8;
  padding-left: 9px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, .35);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 0%, #16294d 0%, #0a1120 46%, #070c17 100%);
  color: #eaeff9;
  padding: 88px 0 96px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  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;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(37, 99, 235, .38), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #a9c2ec;
  background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(96, 145, 235, .28);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(100deg, #6ea8ff 0%, #22d3ee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 22px;
  font-size: 16.5px;
  color: #a8b5cc;
  max-width: 33em;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #dbe4f3;
  box-shadow: none;
}
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); }

.stats { display: flex; align-items: center; gap: 22px; margin-top: 38px; }
.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12.5px; color: #8fa0bc; }
.stat-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .13); }

/* 截图窗口 */
.hero-visual { position: relative; }
.window {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #10182b;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .03);
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .5s ease;
}
.hero-visual:hover .window { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }
.window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #0c1322;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.wb-dot { width: 9px; height: 9px; border-radius: 50%; }
.wb-dot.r { background: #ff5f57; }
.wb-dot.y { background: #febc2e; }
.wb-dot.g { background: #28c840; }
.window-title { margin-left: 8px; font-size: 11.5px; color: #7e8ca8; }
.window img { width: 100%; display: block; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e8eefb;
  background: rgba(17, 26, 45, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 9px 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
  backdrop-filter: blur(8px);
}
.fc-1 { right: -14px; bottom: 34px; animation: float 6s ease-in-out infinite; }
.fc-2 { left: -22px; top: 46px; animation: float 7.5s ease-in-out infinite reverse; }
.fc-dot { width: 7px; height: 7px; border-radius: 50%; }
.fc-dot.green { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.fc-dot.blue { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .2); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------------- 信任条 ---------------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: center;
  padding: 20px 24px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.trust-item { display: flex; align-items: center; gap: 7px; }
.tick {
  width: 17px; height: 17px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

/* ---------------- 通用 section ---------------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 46px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(27px, 3.2vw, 38px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d3ddec;
}
.card-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}
.card-ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 9px; }
.card p { font-size: 14.2px; color: var(--ink-2); line-height: 1.75; }

/* ---------------- 支持矩阵 ---------------- */
.matrix {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.matrix-row {
  display: grid;
  grid-template-columns: 210px 1fr 200px;
  gap: 24px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  font-size: 14.2px;
  color: var(--ink-2);
  align-items: center;
}
.matrix-row:first-child { border-top: none; }
.matrix-head {
  background: #f1f5fb;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-top: 13px;
  padding-bottom: 13px;
}
.fs-name { font-weight: 700; color: var(--ink); font-size: 14.6px; }

/* ---------------- 步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcff, #f5f8fd);
  border: 1px solid var(--line);
}
.step-no {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--primary);
  background: #fff;
  border: 1px solid #dbe6f8;
  padding: 3px 9px;
  border-radius: 7px;
  display: inline-block;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.2px; color: var(--ink-2); }
.step b { color: var(--ink); }

/* ---------------- 下载区 ---------------- */
.section-download { padding-top: 20px; padding-bottom: 92px; }
.download-card {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 44px;
  align-items: center;
  padding: 44px 46px;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, #1e3a6e 0%, #0f1b33 52%, #0a1428 100%);
  color: #e9effb;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .07);
}
.download-card h2 { font-size: 30px; font-weight: 800; color: #fff; }
.dl-sub { color: #a5b5d0; font-size: 14.6px; margin-top: 12px; max-width: 34em; }
.dl-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin: 26px 0 0;
  padding: 0;
}
.dl-meta > div { min-width: 0; }
.dl-meta dt { font-size: 12px; color: #8194b3; letter-spacing: .04em; }
.dl-meta dd { margin: 2px 0 0; font-size: 14.4px; font-weight: 600; color: #dce6f7; }

.sha {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #7f92b2;
}
.sha code {
  color: #9db3d6;
  font-size: 11px;
  word-break: break-all;
  letter-spacing: .01em;
}
.dl-right { text-align: center; }
.dl-count { margin-top: 16px; font-size: 13.6px; color: #9fb0cd; }
.dl-count strong { color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-note { margin-top: 8px; font-size: 12px; color: #6f83a5; line-height: 1.6; }

/* ---------------- 留言板 ---------------- */
.msg-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.field-row + .field-row { margin-top: 14px; }
.msg-form input[type="text"],
.msg-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color .18s, box-shadow .18s, background .18s;
  resize: vertical;
}
.msg-form input[type="text"]:focus,
.msg-form textarea:focus {
  outline: none;
  border-color: #9dbdf5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.msg-form input::placeholder,
.msg-form textarea::placeholder { color: #a4aec0; }
.field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
}
#msgCounter { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.form-hint { margin-top: 10px; font-size: 13px; min-height: 18px; }
.form-hint.error { color: #c0392b; }
.form-hint.ok { color: var(--green); }

.msg-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.msg-loading, .msg-empty {
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  padding: 34px 0;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.msg-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  animation: rise .3s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  flex: none;
}
.msg-name { font-size: 13.6px; font-weight: 700; color: var(--ink); }
.msg-time { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.msg-body { font-size: 14.4px; color: #33405a; white-space: pre-wrap; word-break: break-word; line-height: 1.7; }

.msg-more { text-align: center; margin-top: 22px; }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
  position: relative;
  transition: color .15s;
}
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 14.4px; max-width: 62em; }
.faq details p code { background: #f1f4f9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ---------------- 页脚 ---------------- */
.footer {
  background: #070c17;
  color: #8b9ab5;
  padding: 44px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; color: #fff; }
.footer-note { font-size: 13.4px; max-width: 62em; line-height: 1.75; }
.footer-copy { font-size: 12.5px; color: #5f6f8d; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #0d1526;
  color: #fff;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 11px;
  box-shadow: 0 16px 40px rgba(8, 14, 28, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100;
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 滚动渐入 ---------------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 62px 0 70px; }
  .window { transform: none; }
  .fc-1 { right: 6px; bottom: -14px; }
  .fc-2 { left: 6px; top: -14px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; gap: 32px; padding: 34px 28px; }
  .matrix-row { grid-template-columns: 1fr 1.4fr; }
  .matrix-row > span:nth-child(3) { display: none; }
  .matrix-head > span:nth-child(3) { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { height: 60px; gap: 12px; }
  .nav-inner .btn { margin-left: auto; }
  .section { padding: 66px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 16px; }
  .stat strong { font-size: 22px; }
  .matrix-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .matrix-row > span:nth-child(2) { font-size: 13.4px; }
  .dl-meta { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .download-card h2 { font-size: 25px; }
}
