/* ============================================================
   Clash下载站 · tutorial.css(guide.html 专属)
   教程页:页首步骤导览 + 步骤区块编号头 + 收尾"下一步"卡组
   只引用 base.css 的 :root 令牌,不出现硬编码颜色。
   ============================================================ */

/* ---- 页首 ---- */
.guide-top .guide-kicker{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.1em;
  color:var(--accent);
  margin-bottom:14px;
}
.guide-top h1{margin-bottom:12px}
.guide-top .lede{
  max-width:660px;
  font-size:14.5px;
  margin-bottom:20px;
}
.guide-top .chips{margin-bottom:22px}
.guide-top .toc-tabs{margin-bottom:22px}
.guide-top .callout{max-width:820px}

/* ---- 正文容器 ---- */
.guide-body{
  max-width:820px;
}

/* ---- 步骤区块 ---- */
.step-sec{
  scroll-margin-top:calc(var(--topbar-h) + 20px);
  padding-top:38px;
  padding-bottom:12px;
}
.step-sec+.step-sec{
  border-top:1px solid var(--hairline);
  margin-top:18px;
}

.step-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
/* 覆盖 .prose h2 的默认外边距与底线,由 .step-head 统一控制 */
.guide-body .step-head h2{
  margin:0;
  padding-bottom:0;
  border-bottom:none;
}
.step-num{
  flex-shrink:0;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--accent);
  color:var(--bg-panel);
  font-family:var(--font-mono);
  font-size:15px;
  font-weight:650;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-btn);
}

.step-sec .spec-line{margin-top:6px;margin-bottom:16px}

/* ---- 收尾"下一步"卡组 ---- */
.next-title{margin-bottom:18px}
.next-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.next-grid>*{min-width:0}
.next-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:20px 22px;
}
.next-card h3{font-size:16px}
.next-card p{
  font-size:13.5px;
  line-height:1.7;
  color:var(--text-muted);
}
.next-go{
  margin-top:auto;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  color:var(--accent);
}

/* ---- 响应式 ---- */
@media (max-width:820px){
  .next-grid{grid-template-columns:1fr}
}

@media (max-width:640px){
  .step-sec{padding-top:30px}
  .step-num{width:32px;height:32px;font-size:14px}
  .step-head{gap:11px;margin-bottom:14px}
}