/* ============================================
   Sf363 使用教程页样式（help-jieya.html / help-pan.html 专用）
   只被这两个页面引用，不加载到首页和详情页，不会影响主站
   ============================================ */

.help-wrap { display: flex; gap: 22px; align-items: flex-start; }

/* ---------- 左侧目录（粘性） ---------- */
.help-toc {
  width: 238px; flex-shrink: 0; position: sticky; top: 90px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 13px;
  box-shadow: var(--shadow-sm);
}
.help-toc-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--text);
  padding: 0 7px 11px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.help-toc-title svg { color: var(--brand); flex-shrink: 0; }
.help-toc a {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: #5b6274; line-height: 1.5;
  padding: 8px 7px; border-radius: 9px;
  transition: background .18s, color .18s;
}
.help-toc a .n {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  background: #f1f3f8; color: #99a0b0;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center; margin-top: 1px;
  transition: background .18s, color .18s;
}
.help-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.help-toc a:hover .n { background: var(--brand); color: #fff; }
.help-toc a.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.help-toc a.on .n { background: var(--brand); color: #fff; }

.help-toc-back {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--sub);
}
.help-toc-back:hover { color: var(--brand); }

/* ---------- 右侧正文 ---------- */
.help-doc {
  flex: 1; min-width: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 38px 30px;
  box-shadow: var(--shadow-sm);
}
.help-doc h1 {
  font-size: 26px; line-height: 1.35; letter-spacing: -.3px;
  margin-bottom: 12px;
}
.help-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.help-meta span {
  font-size: 12px; color: #7b8296;
  background: #f4f6fa; border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px;
}
.help-lead {
  font-size: 14.5px; line-height: 1.92; color: #3f4658;
  background: linear-gradient(180deg, #f7f9ff, #f2f5ff);
  border: 1px solid #e3e9ff; border-left: 3px solid var(--brand);
  border-radius: 4px 12px 12px 4px;
  padding: 15px 18px; margin-bottom: 30px;
}
.help-lead b { color: var(--brand-deep); }

.hstep { padding-top: 4px; margin-bottom: 34px; scroll-margin-top: 84px; }
.hstep:last-of-type { margin-bottom: 22px; }
.hstep-h {
  display: flex; align-items: center; gap: 10px;
  font-size: 17.5px; line-height: 1.5; margin-bottom: 12px;
}
.hstep-h .sn {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(79, 110, 247, .3);
}
.hstep p {
  font-size: 14.5px; line-height: 1.95; color: #414859;
  margin-bottom: 12px;
}
.hstep p:last-child { margin-bottom: 0; }
.hstep code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px; background: #f1f3f8; color: #3b54e0;
  padding: 2px 6px; border-radius: 5px;
}
.hstep b { color: #1e2230; }

/* 截图 */
.hfig { margin: 16px 0 18px; }
.hshot {
  border: 1px solid #e3e7ef; border-radius: 14px; overflow: hidden;
  background: #f7f8fb; box-shadow: 0 6px 20px rgba(30, 34, 48, .07);
}
.hshot img { width: 100%; height: auto; display: block; }
.hfigcap {
  margin-top: 9px; font-size: 12.5px; color: #9aa0b0; text-align: center;
}

/* 提示条 */
.htip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.8; margin-top: 14px;
}
.htip .i { flex-shrink: 0; line-height: 1.5; }
.htip.warn { background: #fff6ee; border: 1px solid #ffe2cd; color: #8d5620; }
.htip.warn b { color: #b45309; }
.htip.info { background: var(--brand-soft); border: 1px solid #dfe4ff; color: #3f4a72; }
.htip.info b { color: var(--brand-deep); }

/* 上下篇 */
.help-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.help-pager a {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; transition: .18s; background: #fbfcfe;
}
.help-pager a:hover {
  border-color: #cfd8ff; background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 110, 247, .1);
}
.help-pager .k { font-size: 11.5px; color: var(--sub); margin-bottom: 3px; }
.help-pager .t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.help-pager .next { text-align: right; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .help-wrap { flex-direction: column; gap: 14px; }
  .help-toc {
    width: 100%; position: static; padding: 13px 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px;
  }
  .help-toc-title, .help-toc-back { grid-column: 1 / -1; }
  .help-toc-title { padding-bottom: 9px; margin-bottom: 4px; }
  .help-toc a { padding: 7px 6px; font-size: 12.5px; }
  .help-toc-back { margin-top: 8px; padding-top: 10px; }
  .help-doc { padding: 24px 20px 22px; }
  .help-doc h1 { font-size: 21px; }
  .help-lead { padding: 13px 14px; font-size: 14px; }
  .hstep-h { font-size: 16px; }
  .hstep p { font-size: 14px; }
  .help-pager { grid-template-columns: 1fr; }
  .help-pager .next { text-align: left; }
}
