/* ==========================================================================
   VPNEH · tutorial.css
   guides.html 专属:步骤卡、编号槽、平台小节、排错表与目录条补偿
   ========================================================================== */

/* 窄屏顶栏是粘性的,目录条与锚点落点要让开它 */
@media (max-width:980px){
  .guide .toc-tabs{top:var(--nav-h);}
  .guide section[id]{scroll-margin-top:calc(var(--nav-h) + 76px);}
}

/* ---------- 阅读列 ---------- */
.guide{
  min-width:0;
  max-width:900px;
  margin-inline:auto;
  padding-block:var(--space-6) var(--space-8);
}

.guide .callout{margin-top:var(--space-4);}

/* ---------- 步骤卡 ---------- */
.tut-step{
  min-width:0;
  margin-top:var(--space-5);
  padding:var(--space-5) var(--space-6);
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:0 2px 6px var(--ink-a04);
}

.tut-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:var(--space-3);
}

.tut-num{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--bg-panel-soft);
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.02em;
  color:var(--text-muted);
}

.tut-title{
  min-width:0;
  margin:0;
  font-size:clamp(20px,2.2vw,26px);
  font-weight:800;
  line-height:1.22;
  letter-spacing:-.02em;
}

.tut-step p{
  margin:0 0 var(--space-3);
  font-size:15px;
  line-height:1.85;
  color:var(--text);
}

.tut-step p:last-child{margin-bottom:0;}

.tut-step strong{font-weight:600;}

.tut-step pre{
  margin:var(--space-3) 0 var(--space-4);
}

.tut-step pre code{font-size:12.5px;}

/* ---------- 平台小节 ---------- */
.tut-sub{
  min-width:0;
  margin-top:var(--space-5);
  padding-top:var(--space-4);
  border-top:1px dashed var(--border);
}

.tut-sub-title{
  margin:0 0 var(--space-2);
  font-size:17px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.01em;
}

.tut-sub-title::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:9px;
  border-radius:50%;
  background:var(--border-strong);
  vertical-align:middle;
}

.tut-sub p{
  margin:0 0 var(--space-3);
  font-size:14.5px;
  line-height:1.85;
  color:var(--text-muted);
}

.tut-sub p:last-child{margin-bottom:0;}

/* ---------- 有序步骤 ---------- */
.tut-flow{
  counter-reset:tut-step;
  margin:var(--space-3) 0 var(--space-4);
  padding:0;
  list-style:none;
}

.tut-flow li{
  position:relative;
  min-width:0;
  margin-bottom:10px;
  padding-left:34px;
  font-size:15px;
  line-height:1.8;
  color:var(--text);
}

.tut-flow li:last-child{margin-bottom:0;}

.tut-flow li::before{
  counter-increment:tut-step;
  content:counter(tut-step);
  position:absolute;
  left:0;
  top:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--bg-panel-2);
  color:var(--text-muted);
  font-family:var(--font-mono);
  font-size:11px;
  line-height:22px;
  text-align:center;
}

/* ---------- 步骤动作行与注记 ---------- */
.tut-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:var(--space-4);
}

.tut-actions .btn{flex-shrink:0;}

.tut-note{
  margin:var(--space-4) 0 0;
  font-size:13px;
  line-height:1.7;
  color:var(--text-muted);
}

.tut-step p a,
.tut-note a,
.tut-step .data-table td a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
}

.tut-step p a:hover,
.tut-note a:hover,
.tut-step .data-table td a:hover{
  text-decoration:underline;
  text-underline-offset:2px;
}

.tut-step .platform-grid{margin-top:var(--space-4);}

.tut-step .table-scroll{margin-top:var(--space-3);}

/* ---------- 窄屏 ---------- */
@media (max-width:640px){
  .guide{padding-block:var(--space-5) var(--space-7);}
  .tut-step{padding:var(--space-4);}
  .tut-num{width:30px;height:30px;font-size:11px;}
  .tut-step p{font-size:14.5px;}
  .tut-sub p{font-size:14px;}
  .tut-flow li{font-size:14.5px;padding-left:30px;}
}