:root {
  --bg: #f7f9fc;
  --bg-soft: #eef2f8;
  --panel: #ffffff;
  --line: #dbe3ee;
  --line-soft: #e7ecf4;
  --fg: #0f172a;
  --fg-dim: #4a5768;
  --fg-faint: #6b7788;
  /* 正文用的强调色必须过 4.5:1，teal-600 在白底上只有 3.5:1，所以文字一律用 teal-700 */
  --accent: #0f766e;
  --accent-soft: #0d9488;
  --accent-deep: #115e59;
  --accent-wash: rgba(13, 148, 136, .09);
  --accent-edge: rgba(13, 148, 136, .28);
  --amber: #b45309;
  --amber-line: #f0b429;
  --amber-wash: #fffaeb;
  --violet: #6d28d9;
  --radius: 14px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, .07);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--fg); font-weight: 650; }

code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
code {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 1px 5px; color: #334155;
}

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

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.brand span { color: var(--fg); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; }
.nav-links a { color: var(--fg-dim); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- 通用区块 ---------- */
section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: none; }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
h3 { font-size: 17px; }
.lede { color: var(--fg-dim); max-width: 62ch; margin: 0 0 44px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 92px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: -46% 0 auto 50%;
  width: 940px; height: 940px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(13, 148, 136, .11), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 62px);
  font-weight: 700; margin-bottom: 20px;
}
.hero h1 .hl {
  background: linear-gradient(96deg, #0d9488, #0369a1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: clamp(17px, 2.1vw, 20px); color: var(--fg-dim); max-width: 60ch; margin: 0 0 18px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.badge {
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  background: var(--panel); box-shadow: var(--shadow-sm);
}
.badge b { color: var(--accent); font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 118, 110, .28);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 4px 12px rgba(15, 118, 110, .32); }
.btn-ghost { background: var(--panel); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent); }
.btn svg { width: 17px; height: 17px; }
.cta-note { font-size: 13.5px; color: var(--fg-faint); }

/* ---------- 卖点卡片 ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--accent-wash); border: 1px solid var(--accent-edge);
}
.card .ico svg { width: 19px; height: 19px; stroke: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--fg-dim); font-size: 15px; }

/* ---------- 拓扑图 ---------- */
.topo {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
}
.topo svg { width: 100%; height: auto; display: block; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--line-soft);
}
.step:first-child { border-top: none; }
.step .n {
  counter-increment: s; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); border: 1px solid var(--accent-edge); border-radius: 8px;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--accent-wash);
}
.step .n::before { content: counter(s, decimal-leading-zero); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--fg-dim); font-size: 15px; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
th { background: var(--bg-soft); color: var(--fg-dim); font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: none; }
td.k { white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--accent); }
td.d { color: var(--fg-dim); }

/* ---------- 功能一览 ---------- */
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat > div {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  background: var(--panel); box-shadow: var(--shadow-sm);
}
.feat .tag {
  font-family: var(--mono); font-size: 12px; color: var(--violet);
  letter-spacing: .08em; display: block; margin-bottom: 6px;
}
.feat h3 { font-size: 15.5px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--fg-dim); font-size: 14.5px; line-height: 1.65; }

/* ---------- 下载 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.dl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dl-head svg { width: 22px; height: 22px; stroke: var(--fg-dim); flex: none; }
.dl-head h3 { font-size: 17px; }
.dl .meta { color: var(--fg-faint); font-size: 13.5px; margin: 0 0 16px; }
.dl .files { display: grid; gap: 9px; margin-top: auto; }
.dl-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 15px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-soft); font-size: 14.5px; color: var(--fg);
  transition: .15s ease;
}
.dl-link:hover {
  border-color: var(--accent-soft); background: var(--accent-wash);
  color: var(--accent); text-decoration: none;
}
.dl-link .size { font-family: var(--mono); font-size: 12.5px; color: var(--fg-faint); }
.dl-link.secondary { background: var(--panel); }

.pill {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.pill-warn { color: var(--amber); background: var(--amber-wash); border: 1px solid var(--amber-line); }
.pill-ok { color: var(--accent); background: var(--accent-wash); border: 1px solid var(--accent-edge); }

.notice {
  border-left: 3px solid var(--amber-line); background: var(--amber-wash);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 16px 0 0;
  font-size: 14.5px; color: #6b5a3a;
}
.notice b { color: var(--amber); font-weight: 700; }
.notice strong { color: #7c2d12; }
.notice code { background: rgba(180, 83, 9, .08); border-color: rgba(180, 83, 9, .18); color: #7c2d12; }

.hashes { margin-top: 26px; }
.hashes summary {
  cursor: pointer; color: var(--fg-dim); font-size: 14.5px; padding: 10px 0;
  list-style: none;
}
.hashes summary::-webkit-details-marker { display: none; }
.hashes summary::before { content: "▸ "; color: var(--accent); }
.hashes[open] summary::before { content: "▾ "; }
.hashes pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.9;
  color: var(--fg-dim); margin: 6px 0 0;
}
.hashes pre b { color: var(--fg); font-weight: 650; }

/* ---------- 安全边界 ---------- */
.limits { display: grid; gap: 14px; }
.limit {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: var(--panel); box-shadow: var(--shadow-sm);
}
.limit .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 11px; }
.limit.good { border-left: 3px solid var(--accent-soft); }
.limit.good .dot { background: var(--accent-soft); }
.limit.warn { border-left: 3px solid var(--amber-line); }
.limit.warn .dot { background: #d97706; }
.limit h3 { font-size: 15.5px; margin-bottom: 4px; }
.limit p { margin: 0; color: var(--fg-dim); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line-soft); padding: 40px 0 56px;
  color: var(--fg-faint); font-size: 14px;
  background: var(--panel);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer .l { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .feat, .dl-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
}
