/* 萌百风格黑幕 / 文内注解 */
.moe-post-content .moe-heimu,
.moe-post-content .heimu,
.moe-moment-body .moe-heimu,
.moe-moment-body .heimu{
  background:#000;
  color:#000;
  border-radius:2px;
  padding:0 .12em;
  cursor:help;
  transition:color .12s ease, box-shadow .12s ease;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.moe-post-content .moe-heimu:hover,
.moe-post-content .heimu:hover,
.moe-post-content .moe-heimu.is-on,
.moe-post-content .heimu.is-on,
.moe-moment-body .moe-heimu:hover,
.moe-moment-body .heimu:hover,
.moe-moment-body .moe-heimu.is-on,
.moe-moment-body .heimu.is-on{
  color:#fff;
}
.moe-post-content .moe-heimu:focus-visible,
.moe-post-content .heimu:focus-visible{
  outline:2px solid var(--moe-theme);
  outline-offset:2px;
}
html.dark .moe-post-content .moe-heimu,
html.dark .moe-post-content .heimu,
html.dark .moe-moment-body .moe-heimu,
html.dark .moe-moment-body .heimu{
  background:#111;
  color:#111;
}
html.dark .moe-post-content .moe-heimu:hover,
html.dark .moe-post-content .heimu:hover,
html.dark .moe-post-content .moe-heimu.is-on,
html.dark .moe-post-content .heimu.is-on,
html.dark .moe-moment-body .moe-heimu:hover,
html.dark .moe-moment-body .heimu:hover,
html.dark .moe-moment-body .moe-heimu.is-on,
html.dark .moe-moment-body .heimu.is-on{
  color:#f2f2f2;
}

/* 划线更正：先写错，再改正 */
.moe-post-content del.moe-wiki-del,
.moe-post-content .moe-wiki-del{
  text-decoration:line-through;
  color:var(--moe-muted);
  opacity:.85;
}
.moe-post-content ins.moe-wiki-ins,
.moe-post-content .moe-wiki-ins{
  text-decoration:none;
  color:var(--moe-text);
  background:color-mix(in srgb,var(--moe-theme) 18%,transparent);
  border-radius:3px;
  padding:0 .15em;
}

/* 旁注 / 误注 */
.moe-post-content .moe-wiki-aside{
  color:var(--moe-muted);
  font-size:.92em;
}
.moe-post-content .moe-wiki-wrong{
  color:#c2410c;
  font-size:.88em;
}

/* 百科提示框 */
.moe-post-content .moe-wiki-note{
  margin:1.1em 0;
  padding:.75em 1em .75em 1.05em;
  border-left:4px solid var(--moe-theme);
  border-radius:0 10px 10px 0;
  background:color-mix(in srgb,var(--moe-theme) 10%,var(--moe-bg-2));
  font-size:.95em;
  line-height:1.75;
}
.moe-post-content .moe-wiki-note > strong:first-child{
  display:inline-block;
  margin-right:.35em;
  color:var(--moe-theme);
}
.moe-post-content .moe-wiki-warn{
  border-left-color:#ea580c;
  background:color-mix(in srgb,#ea580c 10%,var(--moe-bg-2));
}
.moe-post-content .moe-wiki-warn > strong:first-child{color:#c2410c}

/* 脚注 */
.moe-post-content .moe-wiki-fn{
  font-size:.78em;
  line-height:1;
  vertical-align:super;
  margin:0 .1em;
}
.moe-post-content .moe-wiki-fn a{
  text-decoration:none;
  color:var(--moe-theme);
}
.moe-post-content .moe-wiki-footnotes{
  margin-top:2em;
  padding-top:1em;
  border-top:1px dashed var(--moe-border);
  font-size:.88em;
  color:var(--moe-muted);
}
.moe-post-content .moe-wiki-footnotes ol{
  padding-left:1.4em;
  counter-reset:none;
  list-style:decimal;
}
.moe-post-content .moe-wiki-footnotes ol > li::before{content:none !important}
.moe-post-content .moe-wiki-footnotes li{margin:.35em 0}

/* 导航式目录小框 */
.moe-post-content .moe-wiki-toc{
  margin:1.2em 0;
  padding:12px 16px;
  border:1px solid var(--moe-border);
  border-radius:12px;
  background:var(--moe-bg-2);
  font-size:.95em;
}
.moe-post-content .moe-wiki-toc > strong{
  display:block;
  margin-bottom:.45em;
}
.moe-post-content .moe-wiki-toc ol{
  margin:.2em 0 0;
  padding-left:1.5em;
}
.moe-post-content .moe-wiki-toc a{text-decoration:none}
.moe-post-content .moe-wiki-toc a:hover{text-decoration:underline}
