/* 帮助阅读器独立命名，避免影响地图及其他业务面板。 */
#userDropdown {
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c4d2e5 transparent;
}
.user-help-dialog {
  position: fixed;
  inset: 0;
  width: min(1140px, 94vw);
  height: min(900px, 90vh);
  height: min(900px, 90dvh);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #17233a;
  background: #f5f7fb;
  border: 1px solid #dce5f1;
  border-radius: 20px;
  box-shadow: 0 24px 70px #0e234745;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.user-help-dialog[open] { display: flex; flex-direction: column; }
.user-help-dialog::backdrop { background: #10223c80; backdrop-filter: blur(3px); }
.user-help-dialog * { box-sizing: border-box; }
.user-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  padding: 18px 22px;
  color: white;
  background: linear-gradient(125deg, #213f78, #2b5296);
}
.user-help-identity, .user-help-actions { display: flex; align-items: center; gap: 12px; }
.user-help-book { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff40; border-radius: 12px; background: #ffffff18; font-size: 19px; }
.user-help-header h2 { margin: 0; color: white; font-size: 19px; line-height: 1.4; }
.user-help-header p { margin: 3px 0 0; color: #d4e3ff; font-size: var(--ui-note-size, 13px); }
.user-help-actions button, .user-help-new-tab {
  display: grid; place-items: center; min-height: 44px; padding: 8px 12px;
  border: 1px solid #ffffff40; border-radius: 10px; background: #ffffff15;
  color: white; text-decoration: none; cursor: pointer; font: inherit; font-size: var(--ui-note-size, 13px);
}
.user-help-actions button { width: 44px; font-size: 26px; line-height: 1; }
.user-help-actions button:hover, .user-help-new-tab:hover { background: #ffffff28; }
.user-help-actions :focus-visible { outline: 2px solid white; outline-offset: 3px; }
.user-help-body { position: relative; flex: 1; min-height: 0; }
.user-help-frame { display: block; width: 100%; height: 100%; border: 0; background: #f5f7fb; }
.user-help-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; margin: 0; padding: 24px; text-align: center; color: #52627b; background: #f5f7fb; font-size: var(--ui-label-size, 14px); }
.user-help-dialog [hidden] { display: none !important; }

.help-page { margin: 0; color: #24334b; background: #f5f7fb; font: 15px/1.85 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.help-page * { box-sizing: border-box; }
.help-page [hidden] { display: none !important; }
.help-page a { color: #2457a3; }
.help-page :focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.help-skip { position: fixed; top: -90px; left: 16px; z-index: 5; padding: 8px 16px; background: white; border-radius: 8px; }
.help-skip:focus { top: 12px; }
.help-page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px max(24px, calc((100vw - 1140px) / 2)); color: white; background: linear-gradient(125deg, #213f78, #2b5296); }
.help-eyebrow { font-size: var(--ui-note-size, 13px); color: #caddff; letter-spacing: .08em; }
.help-page-header h1 { margin: 4px 0; font-size: 26px; line-height: 1.5; }
.help-page-header p { margin: 0; color: #d6e5ff; font-size: var(--ui-label-size, 14px); }
.help-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid #cbd8e9; border-radius: 9px; font: inherit; font-size: var(--ui-note-size, 13px); font-weight: 600; text-decoration: none; color: #264c83; background: white; cursor: pointer; }
.help-page-header .help-button { color: white; background: #ffffff12; border-color: #ffffff50; flex-shrink: 0; }
.help-document { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; max-width: 1200px; margin: auto; padding: 26px; }
.help-sidebar { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 4px 5px 12px 0; scrollbar-width: thin; }
.help-search-label { display: block; margin: 0 0 7px; color: #334863; font-size: var(--ui-note-size, 13px); font-weight: 700; }
.help-sidebar input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #c8d7e9; border-radius: 9px; font: inherit; font-size: var(--ui-note-size, 13px); color: #24334b; background: white; }
.help-search-status { margin: 9px 0 12px; color: #65758c; font-size: var(--ui-note-size, 13px); }
.help-toc { display: grid; gap: 3px; }
.help-toc a { padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: var(--ui-note-size, 13px); line-height: 1.7; color: #4b5d77; }
.help-toc a:hover, .help-toc a[aria-current] { color: #1e4e93; background: #e4edf9; }
.help-print { width: 100%; margin: 18px 0 8px; }
.help-revision { display: block; text-align: center; color: #68788f; font-size: var(--ui-note-size, 13px); }
.help-articles { min-width: 0; }
.help-intro { padding: 14px 18px; margin-bottom: 18px; border: 1px solid #d5e3f8; border-radius: 12px; background: #ecf3ff; font-size: var(--ui-note-size, 13px); color: #3b567a; }
.help-section { padding: 26px 30px; margin-bottom: 20px; border: 1px solid #dfe7f1; border-radius: 14px; background: white; scroll-margin-top: 18px; }
.help-section-number { color: #5a759a; font-size: var(--ui-note-size, 13px); letter-spacing: .04em; }
.help-section h2 { margin: 6px 0 17px; font-size: 21px; line-height: 1.5; color: #193355; }
.help-section h3 { margin: 20px 0 8px; color: #294668; font-size: var(--ui-body-size, 16px); line-height: 1.6; }
.help-section p { margin: 10px 0; }
.help-section ol { padding-left: 24px; margin: 12px 0; }
.help-section li { padding-left: 3px; margin: 9px 0; }
.help-section li::marker { color: #2860a9; font-weight: 650; }
.help-tip { padding: 12px 15px; border-left: 3px solid #93b4e6; border-radius: 0 7px 7px 0; background: #f2f6fc; color: #4d627e; font-size: var(--ui-note-size, 13px); }
.help-no-results { padding: 30px; border: 1px dashed #c2d1e5; border-radius: 12px; background: white; }
.help-document-footer { text-align: center; color: #718096; font-size: var(--ui-note-size, 13px); padding: 8px 0 22px; }
.help-embedded .help-page-header { display: none; }

@media (max-width: 740px) {
  .user-help-dialog { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .user-help-header { padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
  .user-help-book { display: none; }
  .user-help-header h2 { font-size: 17px; }
  .user-help-header p { font-size: var(--ui-note-size, 13px); }
  .user-help-actions { gap: 8px; }
  .user-help-new-tab { padding: 8px; font-size: var(--ui-note-size, 13px); }
  .help-document { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .help-page-header { padding: 22px 16px; align-items: start; }
  .help-page-header h1 { font-size: 23px; }
  .help-page-header p { font-size: var(--ui-note-size, 13px); }
  .help-sidebar { position: static; max-height: none; padding: 0; min-width: 0; }
  .help-sidebar input { font-size: var(--ui-body-size, 16px); }
  .help-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .help-toc a { background: #eaf0f8; padding: 10px 8px; font-size: var(--ui-note-size, 13px); }
  .help-section { padding: 20px 18px; }
  .help-section h2 { font-size: 19px; }
}

@media print {
  .help-page { background: white; color: black; font-size: 11pt; }
  .help-page-header, .help-sidebar, .help-skip, .help-no-results { display: none !important; }
  .help-document { display: block; padding: 0; max-width: none; }
  .help-articles::before { content: "慧感知 · 用户操作手册"; display: block; margin-bottom: 18pt; font-size: 22pt; font-weight: bold; }
  .help-section, .help-page .help-section[hidden] { display: block !important; padding: 12pt 0; margin: 0; border: 0; }
  .help-section h2, .help-section h3 { break-after: avoid; }
  .help-section li { break-inside: avoid; }
  .help-tip { background: none; }
}
