function UsageHelp({ onBack }) {
  const features = [
    ['账单管理', '为不同旅行或聚餐单独记账，支持日期、时间和排序。'],
    ['参与人管理', '支持个人、情侣和家庭小组，可修改名称和组内成员。'],
    ['灵活分摊', '记录金额、付款人和受益人，也可单独取消组内某人的参与。'],
    ['清楚结算', '自动计算转账方案、成员余额、各组总花费与人均明细。'],
    ['分享与演示', '保存结算图片、分享只读账单，用动画查看分账过程。'],
    ['默认示例', '内含12人、6笔开销，点开“默认”账单即可体验。']
  ];
  return <div className="flex flex-col h-full">
    <header className="flex items-center gap-3 mb-5 shrink-0">
      <button onClick={onBack} className="p-2 rounded-full bg-white/60 text-slate-600" aria-label="返回账单列表">←</button>
      <h1 className="text-xl font-bold text-slate-800">功能说明</h1>
    </header>
    <div className="flex-1 min-h-0 overflow-y-auto pb-6 space-y-4">
      <div className="rounded-2xl bg-indigo-50 p-4">
        <p className="text-sm text-slate-700 leading-relaxed">旅行、聚餐和家庭出游的 AA 记账工具。记录谁付款、谁参与，自动算清每个人该分摊多少、最后转给谁。</p>
      </div>
      <div className="rounded-2xl bg-white/60 p-4 space-y-4">
        {features.map(([title, description]) => <div key={title}>
          <h2 className="text-sm font-bold text-slate-700 mb-1">{title}</h2>
          <p className="text-xs leading-relaxed text-slate-500">{description}</p>
        </div>)}
      </div>
      <p className="text-xs leading-relaxed text-slate-500 px-1">账单保存在当前浏览器，清除浏览器数据会丢失记录。分享的是只读快照，修改后需重新分享。</p>
    </div>
  </div>;
}
window.UsageHelp = UsageHelp;
