/* ==========================================================================
   VPNAF — tutorial.css
   页面专属样式（使用指南 / quickstart）
   1. 页头  2. 正文列  3. 步骤块  4. 平台小节  5. 收尾小件
   ========================================================================== */

/* ---------- 1. 页头 ---------- */
.tut-head{
  padding-block:clamp(36px,5vw,64px) clamp(18px,2.6vw,28px);
}
.tut-head .lede{
  margin-top:18px;
  max-width:62ch;
}
.tut-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 20px;
  margin-top:26px;
  padding-top:20px;
  border-top:1px dashed var(--border);
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.03em;
  color:var(--text-muted);
}
.tut-meta li{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.tut-meta li::before{
  content:"";
  flex:none;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent-dark);
}

/* ---------- 2. 正文列 ---------- */
.tut-body{
  display:grid;
  gap:clamp(18px,2.4vw,28px);
  width:100%;
  max-width:880px;
  margin-inline:auto;
  padding-block:clamp(8px,1.4vw,14px) clamp(36px,5vw,60px);
}
.tut-body > *{min-width:0;}

/* ---------- 3. 步骤块 ---------- */
.tut-step{
  padding:clamp(20px,3vw,32px);
  border-radius:var(--radius-xl);
  background:var(--bg-panel);
  box-shadow:inset 0 1px 0 var(--hairline),var(--shadow-soft);
  min-width:0;
}
.tut-step__head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.tut-step__num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--grad-accent);
  color:var(--accent-ink);
  font-family:var(--font-mono);
  font-size:14px;
  font-weight:700;
  letter-spacing:0.02em;
  box-shadow:var(--shadow-seal);
}
.tut-step__head h2{
  font-size:clamp(22px,2.4vw,28px);
  line-height:1.2;
  min-width:0;
}
.tut-step > p{
  margin:0 0 1em;
  font-size:16px;
  line-height:1.75;
  color:var(--text);
}
.tut-step > p:last-of-type{margin-bottom:0;}
.tut-step > p strong{font-weight:700;}
.tut-step > p a{
  color:var(--text);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}
.tut-step > p a:hover{color:var(--accent-ink);}
.tut-step pre{
  margin:0 0 1em;
  font-size:13px;
  line-height:1.55;
}
.tut-expect{
  margin-top:18px;
  padding:12px 16px;
  border-radius:var(--radius-md);
  background:var(--bg-panel-3);
  border-left:3px solid var(--accent-dark);
  font-size:14.5px;
  line-height:1.65;
  color:var(--text-muted);
}
.tut-expect strong{color:var(--text);}
.tut-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

/* ---------- 4. 平台小节 ---------- */
.tut-platforms{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.tut-platforms > *{min-width:0;}
.tut-platform{
  display:grid;
  gap:10px;
  align-content:start;
  padding:20px;
  border-radius:var(--radius-lg);
  background:var(--white);
  box-shadow:inset 0 1px 0 var(--white),var(--shadow-card);
  min-width:0;
}
.tut-platform__head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.tut-platform__head h3{
  font-size:17px;
  font-weight:800;
  letter-spacing:-0.01em;
}
.tut-platform__tag{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  overflow:hidden;
  padding:3px 10px;
  border-radius:var(--radius-pill);
  background:var(--bg-panel-2);
  color:var(--text-muted);
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:0.04em;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.tut-platform p{
  margin:0;
  font-size:14.5px;
  line-height:1.7;
  color:var(--text-muted);
}
.tut-platform .tut-platform__check{
  margin-top:2px;
  padding-top:10px;
  border-top:1px dashed var(--border);
  font-size:13px;
  font-weight:600;
  color:var(--accent-ink);
}

/* ---------- 5. 收尾小件 ---------- */
.tut-faq{
  display:grid;
  gap:16px;
  min-width:0;
}
.tut-faq h2{
  font-size:clamp(22px,2.4vw,28px);
}
.tut-more{
  font-size:14.5px;
  line-height:1.75;
  color:var(--text-muted);
}
.tut-more a{
  color:var(--text);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}
.tut-more a:hover{color:var(--accent-ink);}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .tut-platforms{grid-template-columns:minmax(0,1fr);}
}

@media (max-width:640px){
  .tut-step{padding:18px;border-radius:var(--radius-lg);}
  .tut-step__head{gap:12px;margin-bottom:14px;}
  .tut-step__num{width:38px;height:38px;font-size:12.5px;}
  .tut-step > p{font-size:15.5px;}
  .tut-expect{font-size:14px;padding:11px 14px;}
  .tut-platform{padding:16px;}
  .tut-actions .btn{width:100%;}
  .tut-meta{font-size:11.5px;gap:8px 16px;}
}

@media (prefers-reduced-motion:reduce){
  .tut-step__num{box-shadow:var(--shadow-card);}
}