/* ==========================================================================
   Clash官网 · tutorial.css(仅 guide.html 引用)
   步骤区版式:左侧编号轨道 + 右侧正文,直角面板、1px 细线,全部取设计令牌
   ========================================================================== */

/* 锚点跳转时避让粘性页头 */
.tut-step {
  scroll-margin-top: calc(var(--hdr-h) + 16px);
}

.tut-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 26px;
  border: 1px solid var(--c-line);
  background: var(--c-pane);
  padding: 26px 28px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.tut-step > * {
  min-width: 0;
}

/* 悬停:顶边一次自左向右电光蓝扫光 */
.tut-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-beam), transparent);
  opacity: 0;
  pointer-events: none;
}

.tut-step:hover::before {
  animation: tutSweep 0.6s ease-out 1;
}

@keyframes tutSweep {
  0%   { left: -30%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* 左侧编号轨道 */
.tut-step-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.tut-step-no {
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--c-core-deep);
  border: 1px solid var(--c-line);
  background: var(--c-pane-2);
  padding: 9px 12px;
}

/* 编号下方 2px 竖向光条:随 .reveal.shown 短促点亮 */
.tut-step-bar {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: var(--c-line);
  position: relative;
  overflow: hidden;
  margin-left: 20px;
}

.tut-step-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--c-core), var(--c-beam));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s ease 0.15s;
}

.tut-step.shown .tut-step-bar::after {
  transform: scaleY(1);
}

/* 步骤正文 */
.tut-step-body h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.tut-step-body p {
  color: var(--c-ink-soft);
  font-size: 14px;
}

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

.tut-step-body ul {
  color: var(--c-ink-soft);
  font-size: 14px;
}

.tut-step-body li {
  margin-bottom: 6px;
}

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

/* 收尾面板 */
.tut-next {
  margin-top: 34px;
  border-top: 2px solid var(--c-core);
}

.tut-next h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.tut-next p {
  color: var(--c-ink-soft);
  font-size: 14px;
  max-width: 720px;
}

.tut-next .hero-acts {
  margin-top: 18px;
  margin-bottom: 0;
}

/* 响应式 */
@media (max-width: 640px) {
  .tut-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .tut-step-rail {
    flex-direction: row;
    align-items: center;
  }

  .tut-step-no {
    font-size: 18px;
    padding: 7px 10px;
  }

  .tut-step-bar {
    width: auto;
    height: 2px;
    min-height: 0;
    flex: 1;
    margin-left: 0;
  }

  .tut-step-bar::after {
    background: linear-gradient(90deg, var(--c-core), var(--c-beam));
    transform: scaleX(0);
    transform-origin: left;
  }

  .tut-step.shown .tut-step-bar::after {
    transform: scaleX(1);
  }
}