/* ==========================================================================
   VPNWing — tutorial.css
   教程页专属样式：首屏说明区、步骤分节、平台导入卡、订阅链接窗口卡、延伸链接
   颜色、圆角、阴影一律引用 base.css 的 :root 令牌。
   ========================================================================== */

/* ---- 首屏说明区 ---- */

.tut-hero{
  position: relative;
  overflow-x: clip;
  padding-block: 36px 10px;
}

.tut-halo{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 300px at 12% 0%, var(--accent-tint), transparent 72%),
    radial-gradient(420px 260px at 88% 14%, var(--success-tint), transparent 76%);
  pointer-events: none;
}

.tut-hero .wrap{ position: relative; }

.tut-hero-copy{
  display: grid;
  gap: 16px;
  max-width: 820px;
  min-width: 0;
}

.tut-title{ margin: 0; }

.tut-lead{
  margin: 0;
  max-width: 66ch;
}

.tut-facts{ margin-top: 28px; }

/* ---- 步骤分节 ---- */

.prose .tstep-kicker{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.prose > .tstep{
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.prose > .tstep:first-of-type{
  margin-top: 26px;
  padding-top: 0;
  border-top: 0;
}

.prose .tstep h2{ margin-top: 6px; }

/* ---- 月订阅表 ---- */

.tut-table{ min-width: 420px; }

.tut-table caption{
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-panel);
}

.tut-table td.num{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- 订阅链接窗口卡 ---- */

.tut-sub{
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--hi-white), var(--shadow-card);
}

.tut-sub-body{
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.tut-sub-body code{
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel-2);
  font-size: 12.5px;
}

.prose .tut-sub-note{
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- 平台导入卡 ---- */

.tut-plat{
  margin-top: 18px;
  padding: 18px 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--hi-white), var(--shadow-card);
  min-width: 0;
}

.tut-plat-head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}

.tut-plat .tut-plat-head h3{
  margin: 0;
  font-size: 17px;
}

.tut-plat-tag{
  margin-left: auto;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.tut-plat p{ margin: 0; }
.tut-plat p + p{ margin-top: 8px; }

/* ---- 已接通状态行 ---- */

.prose .tut-state{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--hi-white), var(--shadow-card);
  font-size: 13.5px;
  color: var(--text);
}

/* ---- 延伸链接 ---- */

.prose > .tut-next{
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.prose .tut-next h2{ margin-top: 0; }

.tut-links{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.prose .tut-links a{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--hi-white), var(--shadow-card);
  color: var(--text);
  text-decoration: none;
}

.prose .tut-links a:hover{
  border-color: var(--accent);
}

.tut-links b{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tut-links span{
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

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

@media (max-width: 720px){
  .tut-hero{ padding-block: 26px 6px; }
  .tut-plat{ padding: 16px 16px 14px; }
  .prose .tut-state{ font-size: 13px; }
}

@media (max-width: 480px){
  .tut-plat-tag{ margin-left: 0; }
}