/* ==========================================================================
   VPN31 · tutorial.css
   使用教程页专属:页头氛围、步骤序号、客户端分块、示例订阅码块
   颜色/圆角/阴影全部引用 base.css 的 :root 设计令牌
   ========================================================================== */

/* ---------- 页头 ---------- */

.page-head{
  position:relative;
  isolation:isolate;
  overflow-x:clip;
  max-width:100%;
  padding-block:clamp(36px, 5vw, 60px) clamp(24px, 3vw, 34px);
  border-bottom:1px solid var(--border);
}

.page-head::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(56% 72% at 8% 0%, var(--accent-a08), transparent 70%),
    radial-gradient(48% 60% at 92% 12%, var(--pink-a08), transparent 72%);
}

.page-head-inner{
  max-width:860px;
  min-width:0;
}

.page-title{
  margin-bottom:14px;
  font-size:clamp(2rem, 3.8vw, 3rem);
  line-height:1.1;
  letter-spacing:-.028em;
}

.page-head .lead{margin-bottom:0;}

.page-head .callout{
  margin-top:20px;
  margin-bottom:0;
}

.page-head .tut-actions{margin-top:22px;}

/* ---------- 正文主列 ---------- */

.tut-article{
  max-width:860px;
  margin-inline:auto;
  min-width:0;
}

.tut-step{
  padding-block:clamp(28px, 4vw, 44px);
  border-top:1px solid var(--border);
}

.tut-step:first-of-type{
  border-top:0;
  padding-top:clamp(16px, 2.4vw, 24px);
}

.tut-step > p{
  margin:0 0 14px;
  line-height:1.85;
}

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

.tut-step > .facts-band{margin-top:18px;}

.tut-section-head{margin-bottom:16px;}

/* ---------- 步骤头 ---------- */

.step-head{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:16px;
}

.step-head-text{min-width:0;}

.step-num{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:var(--r-md);
  background-image:var(--grad-candy);
  border:1px solid var(--border);
  box-shadow:0 8px 18px -12px var(--accent-a24);
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--accent-dark);
}

.step-eyebrow{
  margin:0 0 4px;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.1em;
  color:var(--muted);
}

.step-head h2{margin:0;}

/* ---------- 步骤内动作 ---------- */

.tut-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:18px;
}

.tut-actions .btn,
.tut-actions .btn-primary,
.tut-actions .btn-ghost{
  flex-shrink:0;
  white-space:nowrap;
}

/* ---------- 示例订阅链接 ---------- */

.tut-code{
  margin:16px 0;
  padding:14px 16px;
  max-width:100%;
  border-radius:var(--r-md);
  background-color:var(--panel-2);
  border:1px solid var(--border);
  font-family:var(--font-mono);
  font-size:12.5px;
  line-height:1.7;
  color:var(--muted);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* ---------- 客户端分块 ---------- */

.client-block{
  margin-top:18px;
  padding:clamp(18px, 2.4vw, 24px);
  border-radius:var(--r-lg);
  background-color:var(--panel);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  min-width:0;
}

.client-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.client-head .platform-icon{
  width:34px;
  height:34px;
  border-radius:var(--r-sm);
}

.client-head .platform-icon svg{
  width:18px;
  height:18px;
}

.client-head h3{margin:0;}

.client-head .badge{margin-left:auto;}

.client-block p{
  margin:0 0 12px;
  font-size:14.5px;
  line-height:1.8;
  color:var(--muted);
}

.client-block p:last-child{margin-bottom:0;}

/* ---------- 收尾区 ---------- */

.tut-close{
  padding-block:clamp(28px, 4vw, 44px);
  border-top:1px solid var(--border);
}

.tut-close-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin-bottom:14px;
  border-radius:var(--r-md);
  background-color:var(--panel-2);
  border:1px solid var(--border);
  color:var(--accent);
}

.tut-close-mark svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tut-close h2{margin-bottom:12px;}

.tut-close p{
  margin:0 0 16px;
  line-height:1.85;
  color:var(--muted);
}

.tut-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* ---------- 响应式 ---------- */

@media (max-width:640px){
  .step-head{gap:10px;}

  .step-num{
    width:34px;
    height:34px;
    font-size:12px;
  }

  .tut-actions .btn,
  .tut-actions .btn-primary,
  .tut-actions .btn-ghost{width:100%;}

  .client-head .badge{margin-left:0;}
}

@media (prefers-reduced-motion: reduce){
  .client-block,
  .tut-close-mark{transition:none;}
}