/* ==========================================================================
   VPNFN · tutorial.css —— 使用教程页专属样式
   只补充本页结构:步骤卡编号 / 平台小节 / 步骤导航 / 装饰描线。
   颜色、圆角、字体全部引用 base.css 的 :root 令牌,不写硬编码色值。
   ========================================================================== */

/* ===== 页首文案柱 ===== */
.tut-hero{padding-block:44px 12px}
.tut-hero .kicker{margin-bottom:12px}
.tut-hero h1{margin:14px 0 0}
.tut-hero .lead{margin-top:16px}
.tut-hero .callout{margin:24px 0 0}
.tut-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.tut-hero .fact-row{margin-top:26px}
.tut-lines{width:100%;height:auto;max-width:100%;margin-top:30px}

/* ===== 教程正文列 ===== */
.tut-article{
  counter-reset:tut-step;
  max-width:min(100%,880px);
  margin-inline:auto;
}
.tut-article .toc-tabs{margin-bottom:26px}

/* ===== 步骤卡 ===== */
.step{
  position:relative;
  counter-increment:tut-step;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-card);
  padding:28px 28px 30px;
  margin:0 0 22px;
  min-width:0;
  box-shadow:inset 0 1px 0 var(--highlight),0 18px 34px -26px var(--shadow-ink);
}
.tut-article .step h2{
  position:relative;
  margin:0 0 14px;
  padding-left:58px;
  min-height:46px;
  font-size:clamp(20px,2vw,26px);
}
.tut-article .step h2::before{
  content:counter(tut-step,decimal-leading-zero);
  position:absolute;
  left:0;
  top:1px;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--accent-tint);
  color:var(--accent-dark);
  font-family:var(--font-mono);
  font-size:14.5px;
  font-weight:700;
  letter-spacing:.02em;
}

/* 步骤目标行 */
.tut-article .step-goal{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  padding:5px 14px;
  border-radius:var(--r-pill);
  background:var(--bg-panel-2);
  border:1px solid var(--border-soft);
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
}
.step-goal::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  flex:0 0 auto;
}

/* 步骤卡里的提示块与代码块 */
.tut-article .step .callout{margin:20px 0 0}
.tut-article .step pre{margin:16px 0}

/* ===== 平台小节 ===== */
.plat-step{
  background:var(--bg-panel-2);
  border:1px solid var(--border-soft);
  border-radius:var(--r-md);
  padding:18px 20px;
  margin:0 0 14px;
  min-width:0;
}
.tut-article .plat-step h3{
  margin:0 0 10px;
  font-size:18px;
}
.plat-step h3 .plat-icon{
  display:inline-block;
  vertical-align:-4px;
  margin-right:8px;
  color:var(--text);
}
.plat-step p{font-size:15px;line-height:1.7}
.plat-step p:last-child{margin-bottom:0}

/* ===== 常用入口卡 ===== */
.tut-next{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:18px;
}
.tut-next a{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px 18px;
  border-radius:var(--r-md);
  background:var(--bg-panel-2);
  border:1px solid var(--border-soft);
  min-width:0;
  transition:transform .18s ease,border-color .18s ease;
}
.tut-next a:hover{transform:translateY(-3px);border-color:var(--accent-block)}
.tut-next b{
  font-family:var(--font-display);
  font-size:16px;
  font-weight:800;
  color:var(--text);
}
.tut-next span{font-size:13.5px;line-height:1.6;color:var(--muted)}

/* ===== 响应式 ===== */
@media (max-width:768px){
  .tut-hero{padding-block:32px 8px}
  .tut-lines{margin-top:22px}
  .step{padding:22px 18px 24px}
  .tut-article .step h2{
    padding-left:0;
    padding-top:52px;
    min-height:0;
  }
  .tut-article .step h2::before{top:0}
  .plat-step{padding:16px 16px}
  .tut-article .plat-step h3{font-size:17px}
}

@media (max-width:640px){
  .tut-cta{gap:10px}
  .tut-next{grid-template-columns:1fr}
  .tut-article .step-goal{font-size:12.5px}
}