@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.6.0/style.css');
:root { --md-text-font: "LXGW WenKai"; }
/* 字体 */
h1,
h2,
h3 {
  font-weight: bold !important;
}
body {
  font-family: "LXGW WenKai", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  text-align: justify;
}
code {
  font-family: consolas, monospace;
}
/* 代码块的最大高度，若太高则可以垂直滚动 */
.md-typeset pre > code {
  max-height: 20rem;
}
::selection {
  background: #b5d6fc;
}
/* 块的样式 */
.md-typeset .admonition,
.md-typeset details {
  border-width: 0;
  border-left-width: 4px;
  font-size: 0.75rem !important;
  font-family: "LXGW WenKai", -apple-system, "Segoe UI", Arial, sans-serif;
}
/* 图片居中 */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* 菜单栏字号 */
.md-tabs__link {
  font-size: 0.8rem !important;
}
/* 限制 admonition 的宽度 */
.md-typeset .admonition.narrow {
  max-width: 400px;
  margin-inline: auto;
}
/* 禁用 Mathjax 右键菜单 */
.MathJax_Menu {
  display: none !important;
}
/* Floating popover widget */
.float-popover { position: fixed; bottom: 24px; right: 24px; z-index: 1000; position: relative; }
.float-trigger { display: inline-flex; width: 40px; height: 40px; color: #07c160; cursor: pointer; }
.float-content { position: absolute; bottom: 48px; right: 0; display: none; width: 160px; height: auto; box-shadow: 0 4px 12px rgba(0,0,0,.2); border-radius: 8px; }
.float-popover:hover .float-content { display: block; }
.float-popover:focus .float-content { display: block; }
/* Social WeChat hover QR */
.md-social__link[title="WeChat"] { position: relative; z-index: 1000; }
.md-social__link[title="WeChat"]::after {
  content: "";
  position: absolute;
  bottom: 170%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: url('/blog/WeChat.jpg') no-repeat center/contain;
  display: none;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: none;
  border-radius: 0;
}
.md-social__link[title="WeChat"]:hover::after,
.md-social__link[title="WeChat"]:focus::after { display: block; }
