/* 操作手册网页样式（由 scripts/build-help.mjs 复制到 admin/help/help.css） */
:root {
  --brand: #8e2c2f;
  --brand-dark: #6f1f22;
  --brand-soft: #f7ecec;
  --ink: #1f2329;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --line: #e5e6eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.help-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 52px; padding: 0 20px;
  background: var(--brand-dark); color: #fff;
}
.help-brand { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.help-brand:hover { text-decoration: none; opacity: .9; }
.help-switch { display: flex; gap: 4px; }
.help-switch a {
  color: rgba(255, 255, 255, .78); font-size: 13px; padding: 5px 12px; border-radius: 6px;
}
.help-switch a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }

.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; max-width: 1280px; margin: 0 auto; }
.help-toc {
  position: sticky; top: 52px; align-self: start;
  max-height: calc(100vh - 52px); overflow: auto;
  padding: 20px 12px 24px 16px; font-size: 13px;
}
.help-toc-title { color: var(--ink-3); font-size: 12px; letter-spacing: .5px; padding: 0 8px 6px; }
.help-toc a { display: block; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-toc a:hover { background: #eaecf0; color: var(--ink); text-decoration: none; }
.help-toc .toc-l2 { font-weight: 600; color: var(--ink); margin-top: 6px; }
.help-toc .toc-l3 { padding-left: 22px; }

.help-body { padding: 24px 40px 56px; min-width: 0; }
.help-body h1 { font-size: 26px; margin: 4px 0 16px; line-height: 1.35; }
.help-body h2 { font-size: 20px; margin: 40px 0 12px; padding-left: 10px; border-left: 4px solid var(--brand); line-height: 1.4; }
.help-body h3 { font-size: 16px; margin: 26px 0 8px; color: var(--ink); }
.help-body p { margin: 0 0 12px; }
.help-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.help-body ul, .help-body ol { margin: 0 0 12px; padding-left: 26px; }
.help-body li { margin: 4px 0; }
.help-body code { font-family: Consolas, "Courier New", monospace; font-size: 13px; background: #f0f1f3; padding: 1px 6px; border-radius: 4px; color: var(--brand-dark); }
.help-body pre { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow: auto; line-height: 1.6; }
.help-body pre code { background: none; padding: 0; color: var(--ink); }
.help-body strong { font-weight: 600; }

blockquote {
  margin: 0 0 14px; padding: 10px 14px;
  background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
}
blockquote p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #fafbfc; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }

figure { margin: 16px 0 18px; text-align: center; }
figure img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(31, 35, 41, .06), 0 8px 24px rgba(31, 35, 41, .07); background: #fff; }
figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.help-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); }
  .help-toc { display: none; }
  .help-body { padding: 16px 16px 40px; }
  .help-body h1 { font-size: 22px; }
}
@media print {
  .help-top, .help-toc { display: none; }
  .help-layout { display: block; }
  .help-body { padding: 0; }
  body { background: #fff; font-size: 12pt; }
  figure, tr, blockquote { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
