/* ==========================================================================
   HE · 极简玻璃拟态样式表
   设计方向：通透玻璃层 + 渐变光斑 + 柔和投影 + 克制的入场动效
   约束：零外部字体、零 CDN、纯 CSS 背景
   ========================================================================== */

:root {
  /* 底色与光斑 */
  --bg-a: #eef2ff;
  --bg-b: #f8fafc;
  --bg-c: #ecfeff;
  --blob-1: #a5b4fc;
  --blob-2: #67e8f9;

  /* 文字 */
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;

  /* 玻璃层 */
  --glass: rgba(255, 255, 255, 0.6);
  --glass-2: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-line-soft: rgba(148, 163, 184, 0.26);
  --blur: 14px;

  /* 强调色 */
  --brand-1: #4f46e5;
  --brand-2: #06b6d4;
  --grad: linear-gradient(90deg, #4f46e5, #06b6d4);

  /* 投影 */
  --sh-sm: 0 6px 18px rgba(15, 23, 42, 0.07);
  --sh: 0 12px 32px rgba(15, 23, 42, 0.09);
  --sh-lg: 0 22px 52px rgba(15, 23, 42, 0.14);

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1080px;

  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, var(--bg-a) 0%, var(--bg-b) 45%, var(--bg-c) 100%);
  background-attachment: fixed;
}

/* 背景光斑：固定不动，形成景深 */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 44vw; height: 44vw; min-width: 360px; min-height: 360px;
  background: var(--blob-1);
  top: -14vw; right: -10vw;
}
body::after {
  width: 38vw; height: 38vw; min-width: 300px; min-height: 300px;
  background: var(--blob-2);
  bottom: -16vw; left: -10vw;
}

/* 不支持毛玻璃时提高不透明度兜底 */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  :root { --glass: rgba(255, 255, 255, 0.87); --glass-2: rgba(255, 255, 255, 0.95); }
}

header, main, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

::selection { background: rgba(79, 70, 229, 0.18); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 顶部导航 ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border-bottom: 1px solid var(--glass-line);
}

.nav { display: flex; align-items: center; gap: 14px; height: 68px; }

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

.brand img {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-shadow: var(--sh-sm);
}

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }

.nav-links a { color: var(--ink-soft); position: relative; transition: color .18s ease; }

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: right .24s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { right: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24); }
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: var(--glass-2);
  color: var(--ink);
  border-color: var(--glass-line);
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn.ghost:hover { background: #fff; }

.btn.lg { padding: 14px 30px; font-size: 16.5px; }

/* ---------- 首屏 ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 52px; align-items: center; }

.tag {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--brand-1);
  background: var(--glass-2);
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--sh-sm);
}

h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 800;
  margin: 20px 0 18px;
}

h1 .dim {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 30px; max-width: 30em; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.meta { font-size: 13.5px; color: var(--ink-mute); margin: 18px 0 0; }

.hero-art { text-align: center; }

.hero-art img {
  width: 100%; max-width: 320px;
  display: block; margin: 0 auto;
  filter: drop-shadow(0 24px 42px rgba(15, 23, 42, 0.2));
}
/* ---------- 通用区块 ---------- */
section { padding: 58px 0; }

.sec-head { text-align: center; margin-bottom: 42px; }

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.25;
  margin: 0 0 14px;
}

h2::after {
  content: "";
  display: block;
  width: 54px; height: 4px;
  border-radius: 999px;
  background: var(--grad);
  margin: 12px auto 0;
}

.sec-head p { color: var(--ink-soft); margin: 0; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}

.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: #fff; }

.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-sm);
  margin-bottom: 14px;
}

.card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; letter-spacing: -.005em; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- 下载区块 ---------- */
.dl-box {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79, 70, 229, .10), rgba(6, 182, 212, .10)), var(--glass-2);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.dl-box::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--blob-1);
  filter: blur(70px);
  opacity: .5;
  top: -110px; right: -60px;
  pointer-events: none;
}

.dl-box > * { position: relative; }

.dl-box h2 { margin: 0 0 8px; }
.dl-box h2::after { margin-left: 0; margin-right: auto; }
.dl-box .sub { color: var(--ink-soft); margin: 0 0 20px; font-size: 15px; }

.specs { display: flex; flex-wrap: wrap; gap: 10px; }

.spec {
  font-size: 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--glass-line);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--sh-sm);
}

.spec b { font-weight: 700; color: var(--brand-1); }

.dl-box .btn { background: var(--grad); box-shadow: 0 14px 30px rgba(79, 70, 229, .3); }
.dl-box .btn:hover { box-shadow: 0 18px 38px rgba(79, 70, 229, .4); }
/* ---------- 三步说明 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-sm);
}

.step .n {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(79, 70, 229, .28);
  margin-bottom: 14px;
}

.step h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- 提示条 ---------- */
.notice {
  margin-top: 26px;
  padding: 20px 26px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  border-left: 4px solid var(--brand-2);
  box-shadow: var(--sh-sm);
  font-size: 14.5px;
  color: var(--ink-soft);
}

.notice strong { color: var(--ink); }
.notice::before { content: none; }

/* ---------- 常见问题 / 日志列表 ---------- */
.log { list-style: none; padding: 0; margin: 0; }

.log li {
  padding: 20px 24px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.log li:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.log .date { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.log .txt { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 24px;
  padding: 30px 0;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--glass-line-soft);
}

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--brand-1); transition: color .18s ease; }
.foot a:hover { color: var(--brand-2); }

/* ---------- 教程页 ---------- */
.doc { max-width: 860px; margin: 0 auto; }
.doc h2 { margin: 0 0 16px; }
.doc h2::after { margin-left: 0; margin-right: auto; }

.doc h3 {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 34px 0 12px;
  padding-left: 15px;
}

.doc h3::before {
  content: "";
  position: absolute; left: 0; top: .3em; bottom: .3em; width: 4px;
  border-radius: 999px;
  background: var(--grad);
}

.doc > p { color: var(--ink-soft); }
.doc ul.plain { padding-left: 22px; margin: 10px 0; }
.doc ul.plain li { font-size: 15px; color: var(--ink-soft); margin-bottom: 7px; }
.doc ul.plain li::marker { color: var(--brand-2); }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  color: #3730a3;
  background: rgba(79, 70, 229, .09);
  border: 1px solid rgba(79, 70, 229, .16);
  padding: 2px 7px;
  border-radius: 7px;
  word-break: break-all;
}

/* ---------- 目录胶囊 ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

.toc a {
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--sh-sm);
  transition: transform .18s ease, color .18s ease, border-color .18s ease;
}

.toc a:hover { color: var(--brand-1); border-color: rgba(79, 70, 229, .35); transform: translateY(-2px); }

/* ---------- 表格 ---------- */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: 14.5px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.tbl th, .tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--glass-line-soft); }
.tbl th { background: rgba(255, 255, 255, .6); font-weight: 700; color: var(--ink); }
.tbl td { color: var(--ink-soft); }
.tbl tr:last-child td { border-bottom: none; }

/* ---------- 关于 ---------- */
.about {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 34px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh);
}

.about::before { content: none; }
.about p { color: var(--ink-soft); margin: 0 0 24px; font-size: 15.5px; }
.about p strong { color: var(--ink); }
.about .contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 入场动效 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }

.tag, h1, .lead, .hero-actions, .meta { animation: rise .62s cubic-bezier(.22, .8, .28, 1) both; }
h1 { animation-delay: .06s; }
.lead { animation-delay: .12s; }
.hero-actions { animation-delay: .18s; }
.meta { animation-delay: .24s; }
.hero-art img { animation: bloom .8s cubic-bezier(.22, .8, .28, 1) .2s both; }

.sec-head, .dl-box, .about, .toc, .notice { animation: bloom .6s ease-out both; }
.grid .card, .steps .step, .log li { animation: rise .55s ease-out both; }

.card:nth-child(1), .step:nth-child(1), .log li:nth-child(1) { animation-delay: .04s; }
.card:nth-child(2), .step:nth-child(2), .log li:nth-child(2) { animation-delay: .1s; }
.card:nth-child(3), .step:nth-child(3), .log li:nth-child(3) { animation-delay: .16s; }
.card:nth-child(4), .log li:nth-child(4) { animation-delay: .22s; }
.card:nth-child(5), .log li:nth-child(5) { animation-delay: .28s; }
.card:nth-child(6), .log li:nth-child(6) { animation-delay: .34s; }
.log li:nth-child(7) { animation-delay: .4s; }

section[id], [id] { scroll-margin-top: 86px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { padding: 60px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero-actions { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .nav { height: 62px; }
  .brand span { display: none; }
  .nav-links {
    gap: 16px;
    font-size: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }

  .hero { padding: 44px 0 36px; }
  section { padding: 44px 0; }

  .grid, .steps { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn.lg { width: 100%; }

  .dl-box { padding: 26px 22px; }
  .dl-box .btn { width: 100%; }

  .about { padding: 28px 22px; }

  .tbl { font-size: 13.5px; }
  .tbl th, .tbl td { padding: 10px 12px; }

  .foot { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
