/* ============================================================
   VPNLS · tutorial.css
   guides.html 页面专属:上手主线的步骤卡、平台说明与验证清单。
   仅消费 base.css / components.css 里的设计令牌,不覆盖既有组件。
   ============================================================ */

.tut-intro,
.tut-body,
.tut-next {
  max-width: 1000px;
}

.tut-intro {
  padding-top: 36px;
}

.tut-head {
  max-width: 780px;
}

.tut-head h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tut-head .lede {
  margin-top: 14px;
}

.tut-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tut-note {
  max-width: 840px;
  margin-top: 22px;
}

.tut-note p {
  margin: 0;
}

.tut-body {
  padding-bottom: 8px;
}

/* ---------- 步骤卡 ---------- */
.tut-step {
  position: relative;
  margin: 0 0 20px;
  padding: 26px 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.tut-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
  opacity: 0.55;
}

.tut-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tut-step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--accent-08);
  box-shadow: inset 0 0 0 1px var(--accent-18);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tut-step h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}

.tut-step-body p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.tut-step-body strong {
  color: var(--text);
}

.tut-step-body a:not(.btn) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-24);
  text-underline-offset: 3px;
}

.tut-step-body pre {
  margin: 12px 0 16px;
}

.tut-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 2px;
}

.tut-tip {
  margin-top: 16px;
}

.tut-tip p {
  margin: 0;
  font-size: 13.5px;
}

/* ---------- 平台说明 ---------- */
.tut-os-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tut-os {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel-2);
  box-shadow: var(--shadow-inset);
}

.tut-os h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.tut-os p {
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- 验证清单 ---------- */
.tut-check {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: tutcheck;
}

.tut-check li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
  counter-increment: tutcheck;
}

.tut-check li::before {
  content: counter(tutcheck);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-06);
  box-shadow: inset 0 0 0 1px var(--accent-18);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.tut-check strong {
  color: var(--text);
}

/* ---------- 下一步 ---------- */
.tut-next {
  margin: 0 0 20px;
}

.tut-next h2 {
  margin-bottom: 14px;
}

.tut-next .card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.tut-next .card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.tut-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.tut-link svg {
  flex: 0 0 auto;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .tut-intro {
    padding-top: 26px;
  }

  .tut-step {
    padding: 22px 18px 20px;
  }

  .tut-step::before {
    left: 18px;
    right: 18px;
  }

  .tut-step-head {
    gap: 10px;
  }

  .tut-step-num {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .tut-os-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tut-actions .btn {
    flex: 1 1 160px;
  }
}