/* AAUGE · 帮助中心专用样式（2026-09-22）
   token / 组件（ui-btn / ui-tag / ui-chip / topbar / brand 等）来自 assets/style.css，
   顶栏、页脚、FAQ 手风琴复用 assets/landing.css（.lp-topbar / .lp-nav / .lp-footer / .lp-faq）。
   这里只写帮助页独有的两栏布局与正文排版，class 前缀 help-，不跟别处 class 冲突。 */

/* ---------- 手机顶部横向滚动 chip 目录：桌面隐藏，只在 <900px 显示 ---------- */
.help-chipnav {
  display: none;
}
@media (max-width: 899px) {
  .help-chipnav {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
    border-bottom: 1px solid var(--line); background: var(--panel);
    -webkit-overflow-scrolling: touch;
  }
  .help-chipnav::-webkit-scrollbar { display: none; }
  .help-chipnav a.ui-chip { flex: none; text-decoration: none; }
}

/* ---------- 两栏壳：左侧粘性目录 200px + 右侧正文 ---------- */
.help-shell {
  max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px;
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start;
}
@media (max-width: 899px) {
  .help-shell { display: block; padding: 20px 16px 56px; }
}

.help-toc { position: sticky; top: 24px; }
.help-toc nav { display: flex; flex-direction: column; gap: 2px; }
.help-toc a {
  padding: 7px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--sub);
  text-decoration: none; line-height: 1.5;
}
.help-toc a:hover { color: var(--ink); background: var(--panel-2); }
@media (max-width: 899px) {
  .help-toc { display: none; }
}

.help-content { max-width: 880px; min-width: 0; }
.help-content h1 { font-size: var(--fs-2xl); font-weight: 700; margin: 0 0 8px; }

/* ---------- 章节 ---------- */
.help-section { padding-top: 40px; margin-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.help-section:first-of-type { border-top: none; }
.help-section h2 {
  font-size: var(--fs-xl); font-weight: 700; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.help-section h3 { font-size: var(--fs-lg); font-weight: 600; margin: 24px 0 10px; }
.help-section p { color: var(--sub); line-height: 1.7; margin: 0 0 10px; }
.help-section p a { color: var(--accent); text-decoration: none; }
.help-section p a:hover { text-decoration: underline; }

/* 标题右侧「#」锚链接：默认淡，hover 标题时显现 */
.help-anchor {
  color: var(--faint); text-decoration: none; font-weight: 400; font-size: var(--fs-md);
  opacity: 0; transition: opacity var(--t);
}
.help-section h2:hover .help-anchor, .help-anchor:focus { opacity: 1; }

/* ---------- 步骤 ol（快速上手 / 怎么充值） ---------- */
.help-steps { list-style: none; margin: 0; padding: 0; counter-reset: help-step; display: flex; flex-direction: column; gap: 14px; }
.help-steps li {
  counter-increment: help-step; position: relative; padding-left: 32px;
}
.help-steps li::before {
  content: counter(help-step); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); color: var(--sub);
  font-size: var(--fs-xs); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.help-steps li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; }
.help-steps li p { margin: 0; }

/* 「怎么充值」是纯文字步骤（没有加粗小标题），直接用 li 文本，不需要 strong/p 包装 */
.help-steps-plain li { color: var(--sub); line-height: 1.7; }

/* ---------- 三态 tag 行 ---------- */
.help-tag-list p { display: flex; align-items: baseline; gap: 8px; }
.help-tag-list .ui-tag { flex: none; }
.help-tag-red { background: var(--danger-weak); color: var(--danger); }

/* ---------- 普通列表 ---------- */
.help-list { margin: 0 0 10px; padding-left: 20px; color: var(--sub); line-height: 1.7; }
.help-list li { margin-bottom: 2px; }

/* ---------- 退款引用块 ---------- */
.help-quote {
  margin: 0 0 14px; padding: 4px 16px; border-left: 3px solid var(--line-2);
  color: var(--sub); background: var(--panel-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.help-quote p { margin: 10px 0; font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- 快捷键表格 ---------- */
.help-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.help-table th, .help-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.help-table th { color: var(--faint); font-weight: 600; font-size: var(--fs-xs); }
.help-table td { color: var(--sub); }
.help-table kbd {
  display: inline-block; min-width: 22px; padding: 3px 7px; text-align: center;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600;
}
