/* ==========================================================================
   Clash中文网 · tutorial.css
   教程页(start.html)专属:页首排版 / 步骤 2:1 非对称行 / 步骤侧栏要点卡
   依赖 base.css 的 :root 设计令牌,禁止硬编码颜色
   ========================================================================== */

/* ---------- 页首 ---------- */

.guide-hero {
  padding-top: 64px;
}

.guide-hero .watch-tag {
  display: block;
  letter-spacing: var(--track-wide);
  margin-bottom: 14px;
}

.guide-hero h1 {
  margin: 0 0 16px;
}

.guide-hero .guide-lede {
  max-width: 44em;
  color: var(--script-dim);
  margin-bottom: 24px;
}

/* ---------- 步骤区骨架 ---------- */

.guide-strata {
  padding-top: 18px;
}

.step-flow {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 2:1 非对称行:左主卡承载步骤全文,右侧纵向堆两块要点小卡 */
/* 两列等高拉伸(stretch),侧栏卡片平分列高,避免主卡旁出现大片空隙 */
.step-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

/* ---------- 步骤主卡 ---------- */

.step-main h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.step-main h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.02rem;
}

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

/* ---------- 步骤侧栏要点卡 ---------- */

.step-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-aside .pane {
  flex: 1 1 0;
  padding: 20px 22px;
}

.step-aside .watch-tag {
  display: block;
  margin-bottom: 12px;
}

.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--script-dim);
}

.aside-list li {
  position: relative;
  padding-left: 17px;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora);
}

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

@media (max-width: 920px) {
  .step-row {
    grid-template-columns: 1fr;
  }
  .step-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .step-aside .pane {
    flex: 1 1 260px;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .guide-hero {
    padding-top: 44px;
  }
  .step-flow {
    gap: 20px;
  }
  .step-aside {
    flex-direction: column;
  }
}