/* ==========================================================================
   Shadowrocket官方下载 · tutorial.css
   教程页专属:步骤清单 / 步骤序号 / 正文内链 / 界面词表 / 下一步卡片
   ========================================================================== */

/* ---------- 步骤清单 ---------- */
.steps{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.step-block{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,280px);
  gap:clamp(24px,3.4vw,48px);
  align-items:start;
  min-width:0;
  padding-top:48px;
  padding-bottom:48px;
  border-top:1px solid var(--border);
}

.step-block:first-child{
  padding-top:0;
  border-top:0;
}

.step-body{min-width:0}

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

.step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:40px;
  height:40px;
  padding-inline:10px;
  border:1px solid var(--accent-38);
  border-radius:var(--r-pill);
  background:var(--accent-06);
  box-shadow:var(--halo-chip);
  font-family:var(--font-mono);
  font-size:14px;
  font-weight:700;
  line-height:1;
  color:var(--accent-dark);
}

.step-kicker{
  min-width:0;
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-muted);
  overflow-wrap:anywhere;
}

.step-block h2{margin-bottom:16px}

.step-text{
  min-width:0;
  max-width:68ch;
}

/* ---------- 正文内链 ---------- */
.step-text a,
.callout a{
  color:var(--accent-dark);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--accent-38);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  transition:color .18s ease,text-decoration-color .18s ease;
}

.step-text a:hover,
.callout a:hover{
  color:var(--accent-mid);
  text-decoration-color:var(--accent-55);
}

/* ---------- 界面词表 ---------- */
.table-scroll{
  width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* ---------- 下一步卡片 ---------- */
.next-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.next-card h3{margin:0}

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

.next-card .btn{
  align-self:flex-start;
  margin-top:6px;
}

/* ---------- 截图列:宽屏跟随滚动 ---------- */
@media (min-width:961px){
  .step-block .official-shot{
    position:sticky;
    top:calc(var(--head-h) + 28px);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  .step-block{
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    padding-top:36px;
    padding-bottom:36px;
  }

  .step-block .official-shot{
    margin-inline:auto;
    max-width:280px;
  }
}

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

  .step-num{
    min-width:36px;
    height:36px;
    font-size:13px;
  }
}