:root {
  --bg: #0f1020;
  --bg-soft: #1a1c33;
  --line: #2e3052;
  --text: #e8e8f0;
  --muted: #a9a9c8;
  --accent: #6b6ff0;
  --accent-soft: #9ba0ff;
  --ok: #7dffa8;
  --warn: #ffd37d;
  --radius: 12px;
  --max: 880px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 顶栏 */
header.site { border-bottom: 1px solid var(--line); }
header.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; flex-wrap: wrap; gap: 8px;
}
.brand { font-weight: 800; letter-spacing: 1.5px; color: var(--text); }
nav a { margin-left: 18px; color: var(--muted); font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* 首屏 */
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: 38px; line-height: 1.3; }
.hero .jp { color: var(--accent-soft); letter-spacing: 6px; font-size: 15px; margin-bottom: 6px; }
.lead { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 640px; }

section { padding: 30px 0; }
h2 { font-size: 22px; margin-bottom: 16px; }
h3 { font-size: 17px; margin-bottom: 6px; }

/* 卡片 */
.card {
  display: block; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; color: inherit;
}
a.card:hover { border-color: var(--accent); text-decoration: none; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 按钮 */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 16px;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

.note { color: var(--muted); font-size: 14.5px; }
.pill {
  display: inline-block; font-size: 13px; color: var(--warn);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px;
}
.ok { color: var(--ok); }
.warn { color: var(--warn); }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* 代码 */
code { background: #00000055; padding: 2px 6px; border-radius: 6px; font-size: 14px; }
pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; overflow: auto; font-size: 13.5px; line-height: 1.6;
}
pre code { background: none; padding: 0; }

/* 步骤条 */
ol.steps { list-style: none; counter-reset: s; }
ol.steps > li { position: relative; padding-left: 44px; margin-bottom: 22px; }
ol.steps > li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* 页脚 */
footer.site {
  border-top: 1px solid var(--line); margin-top: 44px; padding: 26px 0 48px;
  color: var(--muted); font-size: 14px;
}
footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }

@media (max-width: 600px) {
  .hero h1 { font-size: 29px; }
  nav a { margin-left: 12px; }
}
