/* Hermit 使用教程。配色和字体沿用门户（deploy/portal/site/style.css）。 */
:root {
  --bg: #fffaf5;
  --tint: #fbf1e8;
  --card: #ffffff;
  --ink: #2d2622;
  --muted: #66594f;
  --line: #eadbcf;
  --accent: #c9472d;
  --accent-ink: #ffffff;
  --accent-soft: #f9e1d7;
  --ok: #1f7a4d;
  --ok-soft: #e6f4ec;
  --warn: #8a5a00;
  --warn-soft: #fff3d6;
  --code-bg: #2d2622;
  --code-ink: #f2e9e1;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(45, 38, 34, .04), 0 12px 32px rgba(45, 38, 34, .06);
  --top-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1916;
    --tint: #191411;
    --card: #2b221e;
    --ink: #f2e9e1;
    --muted: #c2b4aa;
    --line: #3d312b;
    --accent: #ff8a6b;
    --accent-ink: #1e1916;
    --accent-soft: #3a2922;
    --ok: #86e0b0;
    --ok-soft: #1d3a2c;
    --warn: #ffd27a;
    --warn-soft: #3b2f14;
    --code-bg: #14100e;
    --code-ink: #f2e9e1;
    --shadow: none;
    color-scheme: dark;
  }
}
/* 连线、边框这类要看得见的细线。 */
:root { --line-strong: color-mix(in srgb, var(--muted) 38%, transparent); }

* { box-sizing: border-box; }
/* 带布局方式的元素（grid）会盖掉 hidden 属性的默认效果，这里统一兜底。 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.85 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; }
code {
  font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--accent-soft);
  padding: .1em .4em;
  border-radius: 6px;
}
kbd {
  display: inline-block;
  min-width: 1.9em; padding: 0 .5em;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  background: var(--card);
  font: .85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: center; line-height: 1.7;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 0; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background-color .2s ease;
}
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); filter: brightness(.96); }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--accent-soft); filter: none; }
.button.small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.button:disabled { opacity: .4; pointer-events: none; }

/* 顶栏 */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 20px; height: var(--top-h); max-width: 1344px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 7px; }
.top-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.top-nav a:not(.button):hover { color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.top-nav .button { color: var(--accent-ink); }

/* 首页 */
.home { padding-bottom: 96px; }
.hero { padding-top: 64px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; }
.hero h1 { font-size: clamp(34px, 5.6vw, 54px); line-height: 1.12; letter-spacing: -.025em; }
.hero .lead { margin-top: 18px; max-width: 34em; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.search { position: relative; display: flex; align-items: center; max-width: 620px; margin-top: 30px; }
.search svg {
  position: absolute; left: 18px; width: 20px; height: 20px;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%; min-height: 54px; padding: 0 20px 0 50px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 17px; box-shadow: var(--shadow);
}
.search input::placeholder { color: var(--muted); opacity: .85; }
.search input:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  min-height: 36px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--muted); font-size: 14px; cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.group, .path-section { margin-top: 72px; }
.group h2, .path-section h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.02em; }
.group-lead { margin-top: 10px; max-width: 42em; color: var(--muted); font-size: 16px; text-wrap: pretty; }
/* 第一个分组排成一条路线：按顺序照着做。 */
.path { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.path a {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px;
  height: 100%; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.path a:hover, .card:hover { transform: translateY(-2px); border-color: var(--accent); }
.step-no {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums;
}
.path h3, .card h3 { font-size: 19px; }
.path p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.path .card-meta, .card .card-meta { margin-top: 10px; font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.card-text { flex: 1; color: var(--muted); font-size: 15px; }
.card-meta { color: var(--muted); }
.results { margin-top: 48px; }
.results-count { color: var(--muted); }
.empty {
  margin-top: 20px; padding: 40px 24px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted); text-align: center;
}
.empty .button { margin-top: 18px; }
.cta-section { margin-top: 88px; }
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 36px 40px;
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(115deg, var(--accent-soft) 0%, var(--card) 60%);
}
.cta h2 { font-size: 24px; }
.cta p { margin-top: 6px; color: var(--muted); }
/* 脚本可用时，首页的目录由脚本按 tutorials.js 生成；下面这份手写的列表只在没有脚本时显示。 */
.js .fallback-toc { display: none; }
.fallback-toc { list-style: none; margin: 40px auto 0; padding: 0; display: grid; gap: 10px; }
.fallback-toc a {
  display: block; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  color: var(--ink); text-decoration: none; font-weight: 600;
}

/* 教程页：左边目录，中间正文，右边本篇步骤 */
.layout {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 56px; align-items: start;
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 96px;
}
@media (min-width: 1240px) {
  .layout { grid-template-columns: 224px minmax(0, 1fr) 192px; max-width: 1344px; }
}
@media (max-width: 1239px) { .outline { display: none; } }

.sidebar { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 48px); overflow: auto; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-group h2 { margin: 0 0 6px 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.nav-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-group a {
  display: block; padding: 7px 12px;
  border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.5;
  transition: background-color .15s ease;
}
.nav-group a:hover { background: var(--tint); }
.nav-group a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sidebar-toggle { display: none; }

.outline nav { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 48px); overflow: auto; }
.outline-title { margin: 0 0 10px 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.outline ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.outline a {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: baseline; gap: 6px;
  margin-left: -2px; padding: 6px 10px 6px 12px;
  border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: 13.5px; line-height: 1.5;
  transition: color .15s ease, border-color .15s ease;
}
.outline a:hover { color: var(--ink); }
.outline a[aria-current="step"] { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }
.outline-no { font-weight: 600; font-variant-numeric: tabular-nums; }
.outline a.is-done .outline-no { color: var(--ok); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.tutorial h1 { margin-top: 14px; font-size: clamp(28px, 4.4vw, 38px); line-height: 1.2; letter-spacing: -.02em; }
.summary { margin-top: 14px; color: var(--muted); font-size: 17px; text-wrap: pretty; }
/* 动手前要准备的东西。 */
.needs {
  list-style: none; margin: 20px 0 0; padding: 16px 20px;
  display: grid; gap: 6px;
  border-radius: 14px; background: var(--tint); font-size: 15px;
}
.needs-title { color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.needs li:not(.needs-title) { position: relative; padding-left: 18px; }
.needs li:not(.needs-title)::before { content: ""; position: absolute; left: 2px; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 22px; }
.control { display: flex; align-items: center; gap: 10px; }
.control-label { color: var(--muted); font-size: 14px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.seg button {
  min-height: 34px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 14px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* 逐步模式：顶部一条进度，下面只显示当前这一步。 */
.progress {
  position: sticky; top: var(--top-h); z-index: 10;
  margin-top: 28px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.progress-text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 14px; }
.progress-title { color: var(--ink); font-weight: 600; }
.progress-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }

.steps { position: relative; margin-top: 36px; counter-reset: step; }
/* 步骤之间用一条线连起来，线上只露出一颗颗编号。 */
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 22px; padding: 30px 0 34px; counter-increment: step; }
.step + .step { border-top: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: -50px; width: 2px; background: var(--line); }
.step:first-child::before { top: 20px; }
.step:last-child::before { display: none; }
.step .step-no { grid-column: 1; position: relative; z-index: 1; border: 2px solid var(--line-strong); background: var(--bg); color: var(--muted); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
/* 禁用脚本时由样式编号；有脚本时 app.js 直接把数字写进 .step-no，读过的步骤换成勾。 */
.no-js .step .step-no::before { content: counter(step); }
.step.is-active .step-no, .step.is-done .step-no, [data-view="steps"] .step.is-current .step-no { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.step-title { grid-column: 2; margin-top: 5px; font-size: 21px; letter-spacing: -.01em; }
.step-title:focus { outline: none; }
.step-body { grid-column: 2; display: grid; gap: 16px; margin-top: 12px; }
.step-body > * { min-width: 0; }
.step-body ul, .step-body ol { padding-left: 1.3em; }
.step-body li + li { margin-top: 6px; }
.step-body li::marker { color: var(--accent); }

/* 截图：点一下看大图。还没补的截图在本地预览时显示成占位框。 */
.shot { margin: 4px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; cursor: zoom-in; }
.shot figcaption { padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; }
.shot.is-missing img { display: none; }
.shot.is-missing {
  display: grid; align-content: center; justify-items: center; gap: 6px;
  min-height: 150px; padding: 28px 24px;
  border-style: dashed; background: var(--tint); box-shadow: none;
}
.shot.is-missing::before { content: "截图待补"; color: var(--warn); font-weight: 600; }
.shot.is-missing::after { content: "要截：" attr(data-shot); max-width: 36em; color: var(--muted); font-size: 14px; text-align: center; }
.shot.is-missing figcaption { display: none; }

/* 提示框：tip 提示、warn 注意、check 做对了应该看到什么。标题由样式自动加上。 */
.callout { padding: 14px 18px 14px 20px; border-left: 4px solid var(--accent); border-radius: 12px; background: var(--accent-soft); font-size: 15px; line-height: 1.75; }
.callout::before { display: block; margin-bottom: 2px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.callout.tip::before { content: "提示"; }
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout.warn::before { content: "注意"; color: var(--warn); }
.callout.check { border-left-color: var(--ok); background: var(--ok-soft); }
.callout.check::before { content: "你应该看到"; color: var(--ok); }
.callout p + p { margin-top: 8px; }
.callout ul, .callout ol { padding-left: 1.2em; margin-top: 6px; }

pre {
  position: relative; margin: 0; padding: 16px 20px;
  border-radius: 12px;
  background: var(--code-bg); color: var(--code-ink);
  font: 14.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
pre code { padding: 0; background: none; color: inherit; font: inherit; }
.copy {
  position: absolute; top: 10px; right: 10px;
  min-height: 30px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: var(--code-ink);
  font-size: 12.5px; cursor: pointer;
  transition: background-color .15s ease;
}
.copy:hover { background: rgba(255, 255, 255, .18); }
pre.has-copy { padding-right: 92px; }

[data-view="steps"] .step { display: none; }
[data-view="steps"] .step.is-current { display: grid; }
[data-view="steps"] .step.is-current:first-child { padding-top: 0; }
[data-view="steps"] .step::before { display: none; }

/* 逐步模式底部的前后按钮；手机上固定在屏幕底部，拇指够得着。 */
.dock { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.dock .button { min-width: 128px; }
.finish {
  margin-top: 36px; padding: 40px 32px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--card) 70%); box-shadow: var(--shadow);
  text-align: center;
}
.finish h2 { font-size: 24px; }
.finish p { margin-top: 8px; color: var(--muted); }
.finish-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.tutorial-end { margin-top: 56px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager-link {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.pager-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.pager-link.next { text-align: right; }
.pager-label { color: var(--muted); font-size: 13px; }
.pager-title { font-weight: 600; }
.help {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 32px; padding: 24px 28px;
  border-radius: 16px; background: var(--tint);
}
.help h2 { font-size: 18px; }
.help p { margin-top: 4px; color: var(--muted); font-size: 15px; }

.lightbox { max-width: min(96vw, 1400px); max-height: 96vh; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.lightbox::backdrop { background: rgba(20, 16, 14, .88); }
.lightbox img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; border-radius: 10px; background: #fff; object-fit: contain; }
.lightbox-caption { margin: 12px 0 0; color: #f2e9e1; font-size: 14px; text-align: center; }

.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; max-width: 1344px; }
.foot-nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 999px) {
  .layout { display: block; padding-top: 24px; }
  /* 窄屏放不下侧边栏，改成一个可以展开的「教程目录」。 */
  .sidebar { position: static; max-height: none; overflow: visible; margin-bottom: 28px; }
  .sidebar-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 46px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--card);
    font-weight: 600; cursor: pointer;
  }
  .sidebar-toggle::after {
    content: ""; width: 0; height: 0; margin-left: 12px;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor;
    transition: transform .2s ease;
  }
  .sidebar-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  /* 目录和展开按钮都靠脚本填充：禁用脚本时藏起来，免得点不动。 */
  .no-js .sidebar { display: none; }
  .js .sidebar:not(.is-open) .sidebar-body { display: none; }
  .sidebar-body { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  [data-view="steps"] .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
  }
  [data-view="steps"] .tutorial-end { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .wrap, .top-row, .layout { padding-left: 16px; padding-right: 16px; }
  .top-nav { gap: 16px; }
  .top-nav .top-link { display: none; }
  .hero { padding-top: 40px; }
  .home { padding-bottom: 64px; }
  .layout { padding-bottom: 64px; }
  .group, .path-section { margin-top: 52px; }
  .cta-section { margin-top: 64px; }
  .cta { padding: 28px 24px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 24px 0 28px; }
  .step::before { left: 17px; top: 41px; bottom: -41px; }
  .step:first-child::before { top: 17px; }
  .step .step-no { width: 34px; height: 34px; font-size: 15px; }
  .step-title { font-size: 19px; }
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; }
  .help { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* 打印或存成 PDF 时去掉导航，所有步骤全部展开。 */
@media print {
  .top, .sidebar, .outline, .controls, .progress, .dock, .finish, .skip, .copy { display: none !important; }
  .layout { display: block; max-width: none; padding: 0; }
  [data-view] .step { display: grid !important; }
  .step { break-inside: avoid; }
  .shot { box-shadow: none; }
  body { background: #fff; color: #000; }
}
