/* ==========================================================================
   VPNNK — tutorial.css
   只服务 guides.html(使用教程):页头氛围、步骤排版、客户端卡片、收尾行。
   颜色/圆角/投影一律引用 base.css 的设计令牌。
   ========================================================================== */

/* ---------------------------- 页头氛围 ---------------------------- */
.page-head {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  max-width: 100%;
  padding-top: 44px;
  padding-bottom: 34px;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -140px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 320px at 14% 0%, var(--blush) 0%, rgba(246, 214, 232, 0) 70%),
    radial-gradient(620px 340px at 60% -8%, var(--lilac) 0%, rgba(230, 220, 247, 0) 68%),
    radial-gradient(520px 300px at 96% 8%, var(--frost) 0%, rgba(207, 233, 245, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 52%, rgba(0, 0, 0, 0) 100%);
}
.page-head h1 {
  margin-top: 14px;
  max-width: 24ch;
}
.page-head .lede {
  margin-top: 14px;
  max-width: 62ch;
}
.page-head .ctas {
  margin-top: 20px;
  justify-content: flex-start;
}
.page-facts { margin-top: 22px; }

/* ---------------------------- 正文容器 ---------------------------- */
.article-body {
  max-width: 100%;
  min-width: 0;
}
.article-body > section { margin-top: 8px; }

/* ---------------------------- 步骤排版 ---------------------------- */
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 22px;
  padding-top: 40px;
  padding-bottom: 8px;
}
.step + .step { margin-top: 8px; }
.step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 96px;
  bottom: -8px;
  width: 1px;
  background-image: repeating-linear-gradient(to bottom, var(--border) 0 6px, rgba(0, 0, 0, 0) 6px 12px);
}
.step:last-of-type::before { display: none; }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--white);
  background: linear-gradient(140deg, var(--accent), var(--violet));
  box-shadow: var(--shadow-bolt), inset 0 1px 0 rgba(255, 255, 255, .34);
  flex: 0 0 auto;
}
.step-body { min-width: 0; }
.step-body h2 { margin-bottom: 12px; }
.step-body p { color: var(--text-muted); max-width: 74ch; }
.step-body p strong { color: var(--text); font-weight: 600; }
.step-body pre { margin-top: 14px; }
.step-body .table-scroll { margin-top: 16px; }

.step-list {
  counter-reset: stepitem;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-list li {
  position: relative;
  counter-increment: stepitem;
  padding-left: 36px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 74ch;
}
.step-list li::before {
  content: counter(stepitem);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.step-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.step-note {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 0;
}

/* ---------------------------- 客户端卡片 ---------------------------- */
.client-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.client-grid > * { min-width: 0; }
.client-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.client-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.client-head h3 { margin: 0; font-size: 19px; }
.client-card p { font-size: 14.5px; color: var(--text-muted); }
.client-tip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------------------------- 收尾 ---------------------------- */
.faq-more {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--text-muted);
}
.article-body .promo-block { margin-top: 52px; }

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 900px) {
  .client-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .page-head { padding-top: 32px; padding-bottom: 26px; }
  .page-head h1 { max-width: 100%; }
  .client-card { padding: 18px; }
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .step::before { display: none; }
  .step-num { width: 40px; height: 40px; }
  .step-actions .btn { width: 100%; }
  .step-note { width: 100%; }
}