/* 操作手册抽屉：暖纸阅读区，避免 Naive 默认白底。生产可单独注入。 */
.help-guide-drawer.n-drawer,
.help-guide-drawer .n-drawer-content {
  background: #efe8dc !important;
}

.help-guide-drawer .n-drawer-header,
.help-guide-drawer .help-guide-drawer__header {
  padding: 18px 22px !important;
  background:
    linear-gradient(90deg, rgba(240, 138, 36, 0.95) 0, rgba(240, 138, 36, 0.95) 4px, transparent 4px),
    linear-gradient(135deg, #141a2e 0%, #1c2544 58%, #243056 100%) !important;
  border-bottom: 1px solid rgba(255, 176, 77, 0.22) !important;
}

.help-guide-drawer .n-drawer-header__main {
  min-width: 0;
}

.help-guide-drawer .help-guide-header__title {
  color: #fff8ee !important;
}

.help-guide-drawer .help-guide-header__subtitle {
  color: rgba(232, 235, 242, 0.64) !important;
}

.help-guide-drawer .help-guide-header__kicker {
  margin-bottom: 2px;
  color: rgba(255, 176, 77, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.help-guide-drawer .n-drawer-header .n-base-close,
.help-guide-drawer .n-drawer-header .n-base-icon {
  color: rgba(255, 248, 238, 0.82) !important;
}

.help-guide-drawer .n-drawer-header .n-base-close:hover {
  color: #fff !important;
  background: rgba(255, 176, 77, 0.18) !important;
}

.help-guide-drawer .n-drawer-body,
.help-guide-drawer .help-guide-drawer__body,
.help-guide-drawer .n-drawer-content__body {
  background:
    radial-gradient(1200px 280px at 100% -40px, rgba(240, 138, 36, 0.16), transparent 58%),
    radial-gradient(900px 220px at -10% 100%, rgba(28, 37, 68, 0.08), transparent 52%),
    linear-gradient(180deg, #f6f0e6 0%, #efe6d8 100%) !important;
}

.help-guide-drawer .n-drawer-footer,
.help-guide-drawer .help-guide-drawer__footer-wrap {
  background: #e9e0d2 !important;
  border-top: 1px solid rgba(28, 37, 68, 0.08) !important;
}

.help-guide-drawer .help-guide-footer {
  color: #8a8174 !important;
}

.help-guide-markdown.md-editor,
.help-guide-markdown .md-editor,
.help-guide-markdown.md-editor-previewOnly,
.help-guide-drawer .md-editor,
.help-guide-drawer .md-editor-preview-wrapper,
.help-guide-drawer .md-editor-preview {
  background: transparent !important;
}

.help-guide-drawer .md-editor-preview-wrapper {
  padding: 4px 2px 28px !important;
}

.help-guide-drawer .md-editor-preview {
  color: #4a433a !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  word-break: break-word;
}

.help-guide-drawer .md-editor-preview > h1:first-child {
  display: none;
}

.help-guide-drawer .md-editor-preview > h1:first-child + p,
.help-guide-drawer .md-editor-preview > p:first-of-type {
  margin: 0 0 20px !important;
  padding: 16px 18px;
  color: #5d554b !important;
  font-size: 15px;
  line-height: 1.75;
  background: linear-gradient(135deg, #fff8ee 0%, #fff3e4 100%);
  border: 1px solid rgba(232, 106, 28, 0.16);
  border-left: 3px solid #f08a24;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(22, 27, 46, 0.05);
}

.help-guide-drawer .md-editor-preview h2,
.help-guide-drawer .md-editor-preview h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px !important;
  padding: 0;
  color: #1c2544 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

.help-guide-drawer .md-editor-preview h2::before,
.help-guide-drawer .md-editor-preview h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ffb04d, #e86a1c);
  box-shadow: 0 0 0 4px rgba(240, 138, 36, 0.16);
}

.help-guide-drawer .md-editor-preview ol {
  counter-reset: help-step;
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
}

.help-guide-drawer .md-editor-preview ol > li {
  counter-increment: help-step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px !important;
  padding: 14px 16px 14px 14px !important;
  color: #3f3a33 !important;
  background: #fffdf8;
  border: 1px solid rgba(28, 37, 68, 0.07);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(22, 27, 46, 0.045);
}

.help-guide-drawer .md-editor-preview ol > li::before {
  content: counter(help-step);
  display: flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffb04d, #e86a1c);
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(232, 106, 28, 0.28);
}

.help-guide-drawer .md-editor-preview ol > li > p {
  margin: 0 !important;
}

.help-guide-drawer .md-editor-preview ul {
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
}

.help-guide-drawer .md-editor-preview ul > li {
  position: relative;
  margin: 0 0 8px !important;
  padding: 12px 14px 12px 34px !important;
  color: #3f3a33 !important;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(28, 37, 68, 0.06);
  border-radius: 12px;
}

.help-guide-drawer .md-editor-preview ul > li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #f08a24;
}

.help-guide-drawer .md-editor-preview p {
  margin: 0 0 12px;
}

.help-guide-drawer .md-editor-preview > p:last-child {
  margin: 18px 0 0 !important;
  padding: 14px 16px;
  color: #6b6358 !important;
  font-size: 13px;
  background: rgba(28, 37, 68, 0.05);
  border-radius: 12px;
}

.help-guide-drawer .md-editor-preview img {
  display: block;
  max-width: 100% !important;
  height: auto;
  margin: 16px auto;
  border: 1px solid rgba(28, 37, 68, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(22, 27, 46, 0.08);
}

.help-guide-drawer .md-editor-preview code {
  color: #c2410c;
  background: #fff1e0;
  border-radius: 6px;
  padding: 0.12em 0.4em;
}

.help-guide-drawer .md-editor-preview pre {
  background: #1c2544 !important;
  border-radius: 14px !important;
}

.help-guide-drawer .md-editor-preview blockquote {
  margin: 0 0 16px !important;
  padding: 12px 16px;
  color: #5d554b;
  background: #fff8ee;
  border: 0;
  border-left: 3px solid #f08a24;
  border-radius: 0 12px 12px 0;
}

.dark .help-guide-drawer.n-drawer,
.dark .help-guide-drawer .n-drawer-content,
.dark .help-guide-drawer .n-drawer-body,
.dark .help-guide-drawer .help-guide-drawer__body,
.dark .help-guide-drawer .n-drawer-content__body {
  background:
    radial-gradient(1000px 240px at 100% 0, rgba(240, 138, 36, 0.16), transparent 55%),
    linear-gradient(180deg, #141a2e 0%, #101526 100%) !important;
}

.dark .help-guide-drawer .n-drawer-footer,
.dark .help-guide-drawer .help-guide-drawer__footer-wrap {
  background: #101526 !important;
  border-top-color: rgba(255, 176, 77, 0.12) !important;
}

.dark .help-guide-drawer .md-editor-preview,
.dark .help-guide-drawer .md-editor-preview ol > li,
.dark .help-guide-drawer .md-editor-preview ul > li {
  color: #d7dce8 !important;
}

.dark .help-guide-drawer .md-editor-preview h2,
.dark .help-guide-drawer .md-editor-preview h3 {
  color: #fff8ee !important;
}

.dark .help-guide-drawer .md-editor-preview ol > li,
.dark .help-guide-drawer .md-editor-preview ul > li,
.dark .help-guide-drawer .md-editor-preview > h1:first-child + p,
.dark .help-guide-drawer .md-editor-preview > p:first-of-type {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 176, 77, 0.14);
}

.dark .help-guide-drawer .help-guide-footer {
  color: #9aa3bd !important;
}
