/* ==========================================================================
   Clash测评 · tutorial.css
   使用指南页专属:黄区概览胶囊 / 步骤卡(编号圆标+目标行) / 收尾路线面板
   仅引用 base.css 设计令牌,不新增颜色值
   ========================================================================== */

/* ---------- 黄区教程概览胶囊 ---------- */
.tut-pills{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tut-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  color:var(--text);
  background:color-mix(in srgb,var(--bg) 68%,transparent);
  border-radius:var(--radius-pill);
  padding:6px 14px;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.tut-pill .tick{
  color:var(--accent-dark);
  flex-shrink:0;
  font-size:11px;
  line-height:1;
}

/* ---------- 步骤区块与步骤卡 ---------- */
.step-sec{
  scroll-margin-top:24px;
  margin-top:26px;
}
.step-card{
  background:var(--bg);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  padding:26px 28px 24px;
}
.step-head{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.step-no{
  flex-shrink:0;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--accent);
  color:var(--text);
  font-family:var(--font-mono);
  font-weight:700;
  font-size:15px;
  display:grid;
  place-items:center;
  box-shadow:var(--shadow-soft);
}
.step-head h2{
  font-size:21px;
  font-weight:900;
  line-height:1.4;
}
.step-goal{
  margin-top:3px;
  font-size:13px;
  color:var(--text-muted);
}
/* 卡内正文标题由 .step-head 承担,压掉 prose 首元素的顶部空隙 */
.step-card .prose>:first-child{margin-top:0}
.step-card .prose h2{margin-top:0}

/* ---------- 收尾路线面板 ---------- */
.next-panel{
  padding:26px 28px;
}
.next-title{
  font-size:20px;
  font-weight:900;
}
.next-desc{
  margin-top:10px;
  font-size:13.5px;
  line-height:1.8;
  color:color-mix(in srgb,var(--text) 78%,var(--bg-panel2));
  max-width:760px;
}
.next-links{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.next-links .btn-ghost{background:var(--bg)}
.next-links .btn-ghost:hover{background:var(--bg-panel)}

/* ---------- 响应式 ---------- */
@media (max-width:640px){
  .step-card{padding:20px 16px 18px}
  .step-head{gap:11px}
  .step-no{width:38px;height:38px;font-size:13px}
  .step-head h2{font-size:18px}
  .next-panel{padding:20px 16px}
}