/* ---------- 帮助中心(help/)专属样式,叠加在 site.css 之上 ---------- */

/* 首页 hero */
.help-hero { padding: 96px 0 64px; text-align: center; }
.help-hero h1 { font-size: clamp(34px, 5.4vw, 62px); max-width: none; }
.help-hero .lede { margin-left: auto; margin-right: auto; }

/* 分类卡片 2×3 */
.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 120px;
}
.help-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 26px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}
.help-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line);
}
/* 注意:选择器写 .help-card .hc-icon 以压过下方 .help-card span 的 display:block */
.help-card .hc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(199, 0, 11, 0.06);
  border: 1px solid rgba(199, 0, 11, 0.1);
  margin: 0 0 18px;
  transition: background 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.help-card .hc-icon svg { width: 20px; height: 20px; stroke: var(--red); }
.help-card:hover .hc-icon { background: rgba(199, 0, 11, 0.1); transform: translateY(-1px); }
.help-card strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.help-card span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.8; }

/* 面包屑 */
.help-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-4);
  padding-top: 40px;
}
.help-crumb a { color: var(--ink-3); transition: color 0.2s; }
.help-crumb a:hover { color: var(--red); }
.help-crumb .sep { color: var(--ink-4); }

/* 分类页文档区 */
.help-doc { padding: 28px 0 90px; }
.help-doc h1 { font-size: clamp(30px, 4.2vw, 44px); max-width: none; margin: 0; letter-spacing: -0.022em; }
.help-doc .lede { margin-top: 16px; max-width: 640px; }

/* 本页目录 */
.help-toc {
  margin-top: 34px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  font-size: 14px;
}
.help-toc strong { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.help-toc ol { margin: 0; padding-left: 20px; color: var(--ink-3); }
.help-toc li { margin: 4px 0; }
.help-toc a { transition: color 0.2s; }
.help-toc a:hover { color: var(--red); }

/* 文章分节 */
.help-doc section.h-sec { padding: 0; margin-top: 64px; }
.help-doc h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.35;
  max-width: none;
  scroll-margin-top: 96px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.help-doc h3 { font-size: 17px; font-weight: 600; margin-top: 30px; letter-spacing: -0.01em; scroll-margin-top: 96px; }
.help-doc p { margin-top: 14px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.help-doc ul, .help-doc ol { margin-top: 14px; padding-left: 22px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.help-doc li { margin: 6px 0; }
.help-doc li::marker { color: var(--ink-4); }
.help-doc b, .help-doc strong { color: var(--ink); font-weight: 600; }

/* 提示 / 注意框 */
.help-note {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.help-note b { color: var(--ink); }

/* 步骤卡(数字步骤) */
.help-steps { margin-top: 20px; counter-reset: hstep; }
.help-step {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 18px 20px;
}
.help-step + .help-step { margin-top: 12px; }
.help-step::before {
  counter-increment: hstep;
  content: counter(hstep);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.help-step div { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.help-step b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }

/* 对比表 */
.help-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.help-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.help-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
.help-table th + th, .help-table td + td { text-align: center; }
.help-table td { padding: 11px 16px; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.help-table tr:nth-child(even) td { background: rgba(17, 17, 19, 0.02); }
.help-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.help-table .hl { color: var(--red); font-weight: 600; }

/* 版本说明卡 */
.help-release {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 24px 26px;
}
.help-release .hr-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.help-release .hr-ver { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.help-release .hr-date { font-size: 13px; color: var(--ink-4); margin-left: auto; }
.help-release .hr-title { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.help-release .hr-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.help-release .hr-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  background: rgba(199, 0, 11, 0.06);
  border-radius: 999px;
  padding: 3px 12px;
}
.help-release ul { margin-top: 12px; padding-left: 20px; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }
.help-release li { margin: 4px 0; }

/* 页尾反馈条 */
.help-cta {
  margin: 0 0 110px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.help-cta strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.help-cta span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.help-cta .pill { flex-shrink: 0; }

/* 子页页脚收紧(同其他子页) */
body[data-page="help"] footer { padding-top: 56px; }
body[data-page="help"] footer .foot-meta { margin-top: 0; border-top: 0; padding-top: 0; }

@media (max-width: 1020px) {
  .help-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .help-hero { padding: 64px 0 44px; }
  .help-cards { grid-template-columns: 1fr; padding-bottom: 80px; }
  .help-doc section.h-sec { margin-top: 48px; }
  .help-cta { margin-bottom: 80px; }
}
