/* ==========================================================================
   VPNYF — 使用教程页（guides.html）专属样式
   页面头 / 步骤编号 / 示例窗 / 面板路径 / 平台卡 / 验收清单 / 下一步卡
   颜色与圆角一律引用 base.css 的 :root 令牌
   ========================================================================== */

/* ---------- 页面头 ---------- */
.tut-hero{
  position:relative;
  overflow-x:clip;
  max-width:100%;
  padding-top:46px;
  padding-bottom:38px;
  background:linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 100%);
  border-bottom:1px solid var(--border-soft);
}
.tut-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle at 1px 1px,var(--dot) 1.1px,var(--dot-0) 1.7px);
  background-size:26px 26px;
  pointer-events:none;
}
.tut-hero > .wrap{position:relative;z-index:1}
.tut-h1{margin-top:14px}
.tut-lead{
  margin:14px 0 0;
  max-width:62ch;
  font-size:16px;
  line-height:1.8;
  color:var(--text-muted);
}
.tut-facts{
  margin-top:20px;
  justify-content:flex-start;
  border-radius:var(--r-lg);
}
.tut-callout{margin-top:22px;max-width:100%}

/* ---------- 正文主列 ---------- */
.tut-body{
  padding-top:10px;
  padding-bottom:calc(var(--sec-y) * .7);
}
.tut-sec{
  min-width:0;
  padding-top:36px;
  padding-bottom:36px;
  border-top:1px solid var(--border-soft);
}
.tut-sec:first-of-type{
  padding-top:22px;
  border-top:0;
}
.tut-sec-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.tut-sec-head h2{margin:0}
.tut-num{
  flex:none;
  display:inline-grid;
  place-items:center;
  width:38px;
  height:28px;
  border-radius:var(--r-pill);
  background:var(--accent-wash);
  border:1px solid var(--accent-line);
  color:var(--accent-dark);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.04em;
}
.tut-sec .table-scroll{margin-top:18px}

/* ---------- 步骤内按钮行 ---------- */
.tut-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:20px;
}
.tut-actions .btn{flex-shrink:0;white-space:nowrap}
.tut-actions-note{
  font-size:12.5px;
  line-height:1.6;
  color:var(--text-faint);
}

/* ---------- 面板路径 ---------- */
.tut-path{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-top:18px;
  font-size:12.5px;
  color:var(--text-muted);
}
.tut-path span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:2px 10px;
  border-radius:var(--r-sm);
  background:var(--bg-panel-2);
  border:1px solid var(--border);
  color:var(--text);
  font-weight:600;
  white-space:nowrap;
}
.tut-path i{
  font-style:normal;
  color:var(--text-faint);
}

/* ---------- 示例窗（订阅链接格式） ---------- */
.tut-code{
  margin-top:16px;
  min-width:0;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.tut-code .win-chrome{
  height:38px;
  gap:10px;
  padding-left:14px;
  padding-right:14px;
}
.tut-code pre{
  margin:0;
  padding:14px 16px;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:var(--bg-panel-3);
}
.tut-fine{
  margin:10px 0 0;
  font-size:12.5px;
  line-height:1.7;
  color:var(--text-faint);
}

/* ---------- 平台卡 ---------- */
.tut-plats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.tut-plat{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  padding:20px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-soft);
  transition:transform .2s ease, box-shadow .2s ease;
}
.tut-plat:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-card);
}
.tut-plat-head{
  display:flex;
  align-items:center;
  gap:10px;
}
.tut-plat-head h3{font-size:17px}
.tut-plat p{
  margin:0;
  font-size:13.5px;
  line-height:1.78;
  color:var(--text-muted);
}
.tut-plat .tut-plat-note{
  font-size:12.5px;
  line-height:1.7;
  color:var(--text-faint);
}

/* ---------- 验收清单 ---------- */
.tut-check{
  display:grid;
  gap:10px;
  margin-top:18px;
  padding:18px 20px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-soft);
}
.tut-check li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13.5px;
  line-height:1.7;
  color:var(--text-muted);
}
.tut-check svg{
  flex:none;
  margin-top:3px;
  color:var(--success);
}

/* ---------- 下一步卡 ---------- */
.tut-next{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.tut-next-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:inherit;
}
.tut-next-card p{
  margin:0;
  font-size:13.5px;
  line-height:1.75;
  color:var(--text-muted);
}
.tut-next-card .link-more{margin-top:4px}

/* ---------- 正文内引用块里的链接 ---------- */
.tut-body .callout a{
  color:var(--accent-dark);
  text-decoration:underline;
  text-underline-offset:2px;
}
.tut-body .callout a:hover{color:var(--text)}

/* ---------- 响应式 ---------- */
@media (max-width:760px){
  .tut-hero{
    padding-top:32px;
    padding-bottom:28px;
  }
  .tut-lead{font-size:15px}
  .tut-plats,
  .tut-next{grid-template-columns:1fr}
  .tut-sec{
    padding-top:30px;
    padding-bottom:30px;
  }
}
@media (max-width:640px){
  .tut-facts{
    justify-content:flex-start;
    gap:10px 18px;
    padding:14px 16px;
    border-radius:var(--r-lg);
  }
  .tut-actions .btn{width:100%}
  .tut-actions-note{font-size:12px}
}