.inline {
  display: inline;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.table {
  display: table;
}
.table-cell {
  display: table-cell;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-scroll {
  overflow: scroll;
}
.overflow-auto {
  overflow: auto;
}
.clearfix:before,
.clearfix:after {
  display: table;
  content: " ";
}
.clearfix:after {
  clear: both;
}
.left {
  float: left;
}
.right {
  float: right;
}
.fit {
  max-width: 100%;
}
.truncate {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.max-width-1 {
  max-width: 24rem;
}
.max-width-2 {
  max-width: 32rem;
}
.max-width-3 {
  max-width: 48rem;
}
.max-width-4 {
  max-width: 64rem;
}
.border-box {
  box-sizing: border-box;
}
.m0 {
  margin: 0;
}
.mt0 {
  margin-top: 0;
}
.mr0 {
  margin-right: 0;
}
.mb0 {
  margin-bottom: 0;
}
.ml0 {
  margin-left: 0;
}
.mx0 {
  margin-right: 0;
  margin-left: 0;
}
.my0 {
  margin-top: 0;
  margin-bottom: 0;
}
.m1 {
  margin: 0.5rem;
}
.mt1 {
  margin-top: 0.5rem;
}
.mr1 {
  margin-right: 0.5rem;
}
.mb1 {
  margin-bottom: 0.5rem;
}
.ml1 {
  margin-left: 0.5rem;
}
.mx1 {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}
.my1 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.m2 {
  margin: 1rem;
}
.mt2 {
  margin-top: 1rem;
}
.mr2 {
  margin-right: 1rem;
}
.mb2 {
  margin-bottom: 1rem;
}
.ml2 {
  margin-left: 1rem;
}
.mx2 {
  margin-right: 1rem;
  margin-left: 1rem;
}
.my2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.m3 {
  margin: 2rem;
}
.mt3 {
  margin-top: 2rem;
}
.mr3 {
  margin-right: 2rem;
}
.mb3 {
  margin-bottom: 2rem;
}
.ml3 {
  margin-left: 2rem;
}
.mx3 {
  margin-right: 2rem;
  margin-left: 2rem;
}
.my3 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.m4 {
  margin: 4rem;
}
.mt4 {
  margin-top: 4rem;
}
.mr4 {
  margin-right: 4rem;
}
.mb4 {
  margin-bottom: 4rem;
}
.ml4 {
  margin-left: 4rem;
}
.mx4 {
  margin-right: 4rem;
  margin-left: 4rem;
}
.my4 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}
.mxn1 {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}
.mxn2 {
  margin-right: -1rem;
  margin-left: -1rem;
}
.mxn3 {
  margin-right: -2rem;
  margin-left: -2rem;
}
.mxn4 {
  margin-right: -4rem;
  margin-left: -4rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-auto {
  margin-right: auto;
}
.mx-auto {
  margin-right: auto;
  margin-left: auto;
}
.p0 {
  padding: 0;
}
.pt0 {
  padding-top: 0;
}
.pr0 {
  padding-right: 0;
}
.pb0 {
  padding-bottom: 0;
}
.pl0 {
  padding-left: 0;
}
.px0 {
  padding-right: 0;
  padding-left: 0;
}
.py0 {
  padding-top: 0;
  padding-bottom: 0;
}
.p1 {
  padding: 0.5rem;
}
.pt1 {
  padding-top: 0.5rem;
}
.pr1 {
  padding-right: 0.5rem;
}
.pb1 {
  padding-bottom: 0.5rem;
}
.pl1 {
  padding-left: 0.5rem;
}
.py1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.px1 {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}
.p2 {
  padding: 1rem;
}
.pt2 {
  padding-top: 1rem;
}
.pr2 {
  padding-right: 1rem;
}
.pb2 {
  padding-bottom: 1rem;
}
.pl2 {
  padding-left: 1rem;
}
.py2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.px2 {
  padding-right: 1rem;
  padding-left: 1rem;
}
.p3 {
  padding: 2rem;
}
.pt3 {
  padding-top: 2rem;
}
.pr3 {
  padding-right: 2rem;
}
.pb3 {
  padding-bottom: 2rem;
}
.pl3 {
  padding-left: 2rem;
}
.py3 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.px3 {
  padding-right: 2rem;
  padding-left: 2rem;
}
.p4 {
  padding: 4rem;
}
.pt4 {
  padding-top: 4rem;
}
.pr4 {
  padding-right: 4rem;
}
.pb4 {
  padding-bottom: 4rem;
}
.pl4 {
  padding-left: 4rem;
}
.py4 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.px4 {
  padding-right: 4rem;
  padding-left: 4rem;
}
body h1,
body .h1 {
  display: block;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #2bbc8a;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-style: normal;
  font-size: 1.5em;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
body h2,
body .h2 {
  position: relative;
  display: block;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #eee;
  text-transform: none;
  letter-spacing: normal;
  font-weight: bold;
  font-size: 1rem;
}
body h3 {
  color: #eee;
  text-decoration: underline;
  font-weight: bold;
  font-size: 0.9rem;
}
body h4,
body h5,
body h6 {
  display: inline;
  text-decoration: none;
  color: #ccc;
  font-weight: bold;
  font-size: 0.9rem;
}
body h3,
body h4,
body h5,
body h6 {
  margin-top: 0.9rem;
  margin-bottom: 0.5rem;
}
body hr {
  border: 0.5px dashed #ccc;
  opacity: 0.5;
  margin: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}
body strong {
  font-weight: bold;
}
body em,
body cite {
  font-style: italic;
}
body sup,
body sub {
  position: relative;
  vertical-align: baseline;
  font-size: 0.75em;
  line-height: 0;
}
body sup {
  top: -0.5em;
}
body sub {
  bottom: -0.2em;
}
body small {
  font-size: 0.85em;
}
body acronym,
body abbr {
  border-bottom: 1px dotted;
}
body ul,
body ol,
body dl {
  line-height: 1.725;
}
body ul ul,
body ol ul,
body ul ol,
body ol ol {
  margin-top: 0;
  margin-bottom: 0;
}
body ol {
  list-style: decimal;
}
body dt {
  font-weight: bold;
}
body table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  overflow: auto;
  display: block;
}
body th {
  padding: 8px;
  border-bottom: 1px dashed #666;
  color: #eee;
  font-weight: bold;
  font-size: 13px;
}
body td {
  padding: 0 8px;
  border-bottom: none;
}
@font-face {
  font-style: normal;
  font-family: "Meslo LG";
  font-display: swap;
  src: local("Meslo LG S"), url("../lib/meslo-LG/MesloLGS-Regular.woff2") format("woff2"),
    url("../lib/meslo-LG/MesloLGS-Regular.ttf") format("truetype");
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  margin: 0;
  padding: 0;
  height: 100%;
  border-top: 2px solid #c9cacc;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0;
  height: 100%;
  background-color: #1d1f21;
  color: #c9cacc;
  font-display: swap;
  font-weight: 400;
  font-size: 14px;
  font-family: "Menlo", "Meslo LG", monospace;
  line-height: 1.725;
  text-rendering: geometricPrecision;
  flex: 1;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
.content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-wrap: break-word;
}
.content p {
  hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
}
.content code {
  hyphens: manual;
  -moz-hyphens: manual;
  -ms-hyphens: manual;
  -webkit-hyphens: manual;
}
.content a {
  color: #c9cacc;
  text-decoration: none;
  background-image: linear-gradient(transparent, transparent 5px, #c9cacc 5px, #c9cacc);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
.content a:hover {
  background-image: linear-gradient(transparent, transparent 4px, #d480aa 4px, #d480aa);
}
.content a.icon {
  background: none;
}
.content a.icon:hover {
  color: #d480aa;
}
.content h1 a,
.content .h1 a,
.content h2 a,
.content h3 a,
.content h4 a,
.content h5 a,
.content h6 a {
  background: none;
  color: inherit;
  text-decoration: none;
}
.content h1 a:hover,
.content .h1 a:hover,
.content h2 a:hover,
.content h3 a:hover,
.content h4 a:hover,
.content h5 a:hover,
.content h6 a:hover {
  background-image: linear-gradient(transparent, transparent 6px, #d480aa 6px, #d480aa);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
.content h6 a {
  background: none;
  color: inherit;
  text-decoration: none;
}
.content h6 a:hover {
  background-image: linear-gradient(transparent, transparent 6px, #d480aa 6px, #d480aa);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
@media (min-width: 540px) {
  .image-wrap {
    flex-direction: row;
    margin-bottom: 2rem;
  }
  .image-wrap .image-block {
    flex: 1 0 35%;
    margin-right: 2rem;
  }
  .image-wrap p {
    flex: 1 0 65%;
  }
}
.max-width {
  max-width: 48rem;
}
@media (max-width: 500px) {
  .px3 {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  .my4 {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}
@media (min-width: 501px) {
  p {
    text-align: justify;
  }
}
#header {
  margin: 0 auto 2rem;
  width: 100%;
}
#header h1,
#header .h1 {
  margin-top: 0;
  margin-bottom: 0;
  color: #c9cacc;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 2rem;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
#header a {
  background: none;
  color: inherit;
  text-decoration: none;
}
#header #logo {
  display: inline-block;
  float: left;
  margin-right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  filter: grayscale(100%);
  background-size: 50px 50px;
  background-repeat: no-repeat;
  -webkit-filter: grayscale(100%);
}
#header #nav {
  color: #2bbc8a;
  letter-spacing: 0.01em;
  font-weight: 200;
  font-style: normal;
  font-size: 0.8rem;
}
#header #nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  line-height: 15px;
}
#header #nav ul a {
  margin-right: 15px;
  color: #2bbc8a;
}
#header #nav ul a:hover {
  background-image: linear-gradient(transparent, transparent 5px, #2bbc8a 5px, #2bbc8a);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
#header #nav ul li {
  display: inline-block;
  margin-right: 15px;
  border-right: 1px dotted;
  border-color: #2bbc8a;
  vertical-align: middle;
}
#header #nav ul .icon {
  display: none;
}
#header #nav ul li:last-child {
  margin-right: 0;
  border-right: 0;
}
#header #nav ul li:last-child a {
  margin-right: 0;
}
#header:hover #logo {
  filter: none;
  -webkit-filter: none;
}
@media screen and (max-width: 500px) {
  #header #title {
    display: table;
    margin-right: 5rem;
    min-height: 50px;
  }
  #header #title h1 {
    display: table-cell;
    vertical-align: middle;
  }
  #header #nav ul a:hover {
    background: none;
  }
  #header {
    position: relative;
  }
  #header #nav ul li {
    display: none;
    border-right: 0;
  }
  /* 相对 #header 定位并垂直居中于 logo 行（logo 高 50px） */
  #header #nav ul li.icon {
    position: absolute;
    top: 25px;
    transform: translateY(-50%);
    right: 1rem;
    display: inline-block;
  }
  #header #nav ul.responsive li {
    display: block;
  }
  #header #nav li:not(:first-child) {
    padding-top: 1rem;
    padding-left: 70px;
    font-size: 1rem;
  }
}
/* ---------------------------------------------------------------
   文章页固定导航（#header-post）：flex 布局重写。
   替代官方 float + <br> 结构——各浏览器渲染一致，结构直观可调试。
   层级：#header-post 纵向 flex；#menu 纵向 flex 右对齐；
   #nav / #actions / #share 各自横向 flex；#toc 右对齐文本流。
   --------------------------------------------------------------- */
#header-post {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#header-post a {
  background: none;
  color: inherit;
  text-decoration: none;
}
#header-post a.icon:hover {
  color: #d480aa;
}
#header-post ol,
#header-post ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#header-post #menu-icon,
#header-post #menu-icon-tablet {
  color: #c9cacc;
}
#header-post #menu-icon:hover,
#header-post #menu-icon-tablet:hover,
#header-post #top-icon-tablet:hover,
#header-post .active {
  color: #2bbc8a;
}
#header-post #top-icon-tablet {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
}
#header-post {
  gap: 1.25rem;
}
#header-post-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#header-post #menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
  visibility: hidden;
}
#header-post #nav {
  color: #2bbc8a;
  font-size: 0.8rem;
  font-weight: 200;
  letter-spacing: 0.01em;
}
#header-post #nav ul,
#header-post #actions ul {
  display: flex;
  align-items: center;
}
#header-post #nav ul {
  gap: 0.9rem;
}
#header-post #nav ul a {
  color: #2bbc8a;
}
#header-post #nav ul a:hover {
  background-image: linear-gradient(transparent, transparent 5px, #2bbc8a 5px, #2bbc8a);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
#header-post #nav ul li {
  display: flex;
  align-items: center;
}
#header-post #nav ul li + li {
  border-left: 1px dotted #2bbc8a;
  padding-left: 0.9rem;
}
#header-post #actions {
  position: relative;
}
#header-post #actions ul {
  gap: 0.9rem;
}
#header-post #actions a {
  display: inline-flex;
  align-items: center;
}
#header-post #actions .info {
  position: absolute;
  top: 50%;
  right: 100%;
  display: block;
  margin: 0 2rem 0 0;
  font-style: italic;
  white-space: nowrap;
  transform: translateY(-50%);
}
#header-post #share {
  margin: 0;
}
#header-post #share ul {
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
#header-post #share svg,
#footer-post #share-footer svg {
  fill: currentcolor;
  stroke: none;
}
#header-post #toc {
  max-width: 20em;
  max-height: calc(95vh - 7rem);
  overflow: auto;
  font-size: 0.8rem;
  text-align: right;
}
#header-post #toc a:hover {
  color: #d480aa;
}
#header-post #toc .toc-level-1 > .toc-link {
  display: none;
}
#header-post #toc .toc-level-2 {
  color: #c9cacc;
}
#header-post #toc .toc-level-2::before {
  color: #2bbc8a;
  content: "#";
}
#header-post #toc .toc-level-3 {
  color: #666;
  font-size: 0.7rem;
}
#header-post #toc .toc-level-4 {
  color: #525252;
  font-size: 0.4rem;
}
#header-post #toc .toc-level-5,
#header-post #toc .toc-level-6 {
  display: none;
}
#header-post #toc .toc-number {
  display: none;
}
@media screen and (max-width: 500px) {
  #header-post {
    display: none;
  }
}
@media screen and (max-width: 900px) {
  #header-post #menu-icon,
  #header-post #actions {
    display: none;
  }
}
@media screen and (max-width: 1199px) {
  #header-post #toc {
    display: none;
  }
}
@media screen and (min-width: 900px) {
  #header-post #menu-icon-tablet,
  #header-post #top-icon-tablet {
    display: none !important;
  }
}

#footer-post {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5000000;
  width: 100%;
  border-top: 1px solid #666;
  background: #212326;
  transition: opacity 0.2s;
}
#footer-post a {
  background: none;
  color: inherit;
  text-decoration: none;
}
#footer-post a.icon {
  background: none;
}
#footer-post a.icon:hover {
  color: #d480aa;
}
#footer-post #nav-footer {
  padding-right: 1rem;
  padding-left: 1rem;
  background: #323539;
  text-align: center;
}
#footer-post #nav-footer a {
  color: #2bbc8a;
  font-size: 1em;
}
#footer-post #nav-footer a:hover {
  background-image: linear-gradient(transparent, transparent 5px, #2bbc8a 5px, #2bbc8a);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
#footer-post #nav-footer ul {
  display: table;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style-type: none;
}
#footer-post #nav-footer ul li {
  display: inline-table;
  padding: 10px;
  width: 20%;
  vertical-align: middle;
}
#footer-post #actions-footer {
  overflow: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-right: 1rem;
  padding-left: 1rem;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
#footer-post #actions-footer a {
  display: inline-block;
  padding-left: 1rem;
  color: #2bbc8a;
}
#footer-post #share-footer {
  padding-right: 1rem;
  padding-left: 1rem;
  background: #323539;
  text-align: center;
}
#footer-post #actions-footer a svg {
  vertical-align: -3px;
  margin-left: 0.3rem;
}
#footer-post #share-footer ul {
  display: table;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style-type: none;
}
#footer-post #share-footer ul li {
  display: inline-table;
  padding: 10px;
  width: 16.6%;
  vertical-align: middle;
}
#footer-post #toc-footer {
  clear: both;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: #323539;
  text-align: left;
}
#footer-post #toc-footer ol {
  margin: 0;
  padding-left: 20px;
  list-style-type: none;
}
#footer-post #toc-footer ol li {
  line-height: 30px;
}
#footer-post #toc-footer a:hover {
  color: #d480aa;
}
#footer-post #toc-footer .toc-level-1 > .toc-link {
  display: none;
}
#footer-post #toc-footer .toc-level-2 {
  color: #c9cacc;
  font-size: 0.8rem;
}
#footer-post #toc-footer .toc-level-2:before {
  color: #2bbc8a;
  content: "#";
}
#footer-post #toc-footer .toc-level-3 {
  color: #666;
  font-size: 0.7rem;
  line-height: 15px;
}
#footer-post #toc-footer .toc-level-4 {
  display: none;
}
#footer-post #toc-footer .toc-level-5 {
  display: none;
}
#footer-post #toc-footer .toc-level-6 {
  display: none;
}
#footer-post #toc-footer .toc-number {
  display: none;
}
@media screen and (min-width: 500px) {
  #footer-post-container {
    display: none;
  }
}
.post-list {
  padding: 0;
}
.post-list .post-item {
  margin-bottom: 1rem;
  margin-left: 0;
  list-style-type: none;
}
.post-list .post-item .meta {
  display: block;
  margin-right: 16px;
  min-width: 100px;
  color: #666;
  font-size: 14px;
}
@media (min-width: 501px) {
  .post-list .post-item {
    display: flex;
    margin-bottom: 5px;
  }
  .post-list .post-item .meta {
    text-align: left;
  }
}
.project-list {
  padding: 0;
  list-style: none;
}
.project-list .project-item {
  margin-bottom: 5px;
}
.project-list .project-item p {
  display: inline;
}
article header .posttitle {
  margin-top: 0;
  margin-bottom: 0;
  text-transform: none;
  font-size: 1.5em;
  line-height: 1.25;
}
.posttitle-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.posttitle-row .posttitle {
  flex: 1;
}
.post-source-toggle {
  flex: none;
  font-size: 0.85rem;
  white-space: nowrap;
}
.post-source-toggle:hover {
  color: var(--accent);
}
article header .meta {
  margin-top: 0;
  margin-bottom: 1rem;
}
article header .meta * {
  color: #ccc;
  font-size: 0.85rem;
}
article header .author {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 700;
}
article header .postdate {
  display: inline;
}
article .content h2:before {
  position: absolute;
  top: -4px;
  left: -1rem;
  color: #2bbc8a;
  content: "#";
  font-weight: bold;
  font-size: 1.2rem;
}
@media (max-width: 600px) {
  article .content h2:before {
    position: static;
    display: inline;
    margin-right: 0.3rem;
  }
}
article .content img,
article .content video {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}
article .content .video-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  height: 0;
}
article .content .video-container iframe,
article .content .video-container object,
article .content .video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: 0;
  width: 100%;
  height: 100%;
}
article .content blockquote {
  margin: 1rem 10px;
  padding: 0.5em 10px;
  background: inherit;
  color: #ccffb6;
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-weight: bold;
}
article .content blockquote p {
  margin: 0;
}
article .content blockquote:before {
  margin-right: 0.25em;
  color: #ccffb6;
  content: "\201C";
  vertical-align: -0.4em;
  font-size: 2em;
  line-height: 0.1em;
}
article .content blockquote footer {
  margin: line-height 0;
  color: #666;
  font-size: 11px;
}
article .content blockquote footer a {
  background-image: linear-gradient(transparent, transparent 5px, #666 5px, #666);
  color: #666;
}
article .content blockquote footer a:hover {
  background-image: linear-gradient(transparent, transparent 4px, #858585 4px, #858585);
  color: #858585;
}
article .content blockquote footer cite:before {
  padding: 0 0.5em;
  content: "—";
}
article .content .pullquote {
  margin: 0;
  width: 45%;
  text-align: left;
}
article .content .pullquote.left {
  margin-right: 1em;
  margin-left: 0.5em;
}
article .content .pullquote.right {
  margin-right: 0.5em;
  margin-left: 1em;
}
article .content .caption {
  position: relative;
  display: block;
  margin-top: 0.5em;
  color: #666;
  text-align: center;
  font-size: 0.9em;
}
.posttitle {
  text-transform: none;
  font-size: 1.5em;
  line-height: 1.25;
}
.article-tag .tag-link {
  background-image: linear-gradient(transparent, transparent 10px, #d480aa 10px, #d480aa);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
.article-tag .tag-link:before {
  content: "#";
}
.article-category .category-link {
  background-image: linear-gradient(transparent, transparent 10px, #d480aa 10px, #d480aa);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
.article-tag,
.article-category {
  display: inline;
}
.article-tag:before,
.article-category:before {
  content: "|";
  margin-right: 0.4rem;
}
.article-tag .meta-icon,
.article-category .meta-icon {
  vertical-align: -2px;
}
#archive .post-list {
  padding: 0;
}
#archive .post-list .post-item {
  margin-bottom: 1rem;
  margin-left: 0;
  list-style-type: none;
}
#archive .post-list .post-item .meta {
  display: block;
  margin-right: 16px;
  min-width: 100px;
  color: #666;
  font-size: 14px;
}
@media (min-width: 501px) {
  #archive .post-list .post-item {
    display: flex;
    margin-bottom: 5px;
    margin-left: 1rem;
  }
  #archive .post-list .post-item .meta {
    text-align: left;
  }
}
.blog-post-comments {
  margin-top: 4rem;
}
#footer {
  position: absolute;
  bottom: 0;
  margin-bottom: 10px;
  width: 100%;
  color: #666;
  vertical-align: top;
  text-align: center;
  font-size: 11px;
}
#footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#footer li {
  display: inline-block;
  margin-right: 15px;
  border-right: 1px solid;
  border-color: #666;
  vertical-align: middle;
}
#footer li a {
  margin-right: 15px;
}
#footer li:last-child {
  margin-right: 0;
  border-right: 0;
}
#footer li:last-child a {
  margin-right: 0;
}
#footer a {
  color: #666;
  text-decoration: underline;
  background-image: none;
}
#footer a:hover {
  color: #858585;
}
#footer .footer-left {
  height: 20px;
  vertical-align: middle;
  line-height: 20px;
}
@media (min-width: 39rem) {
  #footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    margin-bottom: 20px;
  }
  #footer .footer-left {
    align-self: flex-start;
    margin-right: 20px;
  }
  #footer .footer-right {
    align-self: flex-end;
  }
}
.pagination {
  display: inline-block;
  margin-top: 2rem;
  width: 100%;
  text-align: center;
}
.pagination .gap {
  color: #c9cacc;
}
.pagination .current {
  color: #2bbc8a;
  font-weight: bold;
}
.pagination a {
  padding: 4px 6px;
  border-radius: 5px;
  background-image: none;
  color: #c9cacc;
  text-decoration: none;
}
.pagination a:hover {
  background-image: none;
}
.pagination a:hover:not(.active) {
  color: #eee;
}
.search-input {
  padding: 4px 7px;
  width: 100%;
  outline: none;
  border: solid 1px #ccc;
  border-radius: 5px;
  background-color: #1d1f21;
  color: #c9cacc;
  font-size: 1.2rem;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}
.search-input:focus {
  border: solid 1px #2bbc8a;
}
#search-result ul.search-result-list {
  padding: 0;
  list-style-type: none;
}
#search-result li {
  margin: 2em auto;
}
#search-result a.search-result-title {
  background-image: none;
  color: #c9cacc;
  text-transform: capitalize;
  font-weight: bold;
  line-height: 1.2;
}
#search-result p.search-result {
  overflow: hidden;
  margin: 0.4em auto;
  max-height: 13em;
  text-align: justify;
  font-size: 0.8em;
}
#search-result em.search-keyword {
  border-bottom: 1px dashed #d480aa;
  color: #d480aa;
  font-weight: bold;
}
.search-no-result {
  display: none;
  padding-bottom: 0.5em;
  color: #c9cacc;
}
#tag-cloud .tag-cloud-title {
  color: #666;
}
#tag-cloud .tag-cloud-tags {
  clear: both;
  text-align: center;
}
#tag-cloud .tag-cloud-tags a {
  display: inline-block;
  margin: 10px;
}
.tooltipped {
  position: relative;
}
.tooltipped::after {
  position: absolute;
  z-index: 1000000;
  display: none;
  padding: 0.2em 0.5em;
  -webkit-font-smoothing: subpixel-antialiased;
  color: #1d1f21;
  font-display: swap;
  font-weight: 400;
  font-size: 11.200000000000001px;
  font-family: "Menlo", "Meslo LG", monospace;
  line-height: 1.725;
  text-rendering: geometricPrecision;
  text-align: center;
  word-wrap: break-word;
  white-space: pre;
  content: attr(aria-label);
  background: #c9cacc;
  border-radius: 3px;
  opacity: 0;
}
.tooltipped::before {
  position: absolute;
  z-index: 1000001;
  display: none;
  width: 0;
  height: 0;
  color: #c9cacc;
  pointer-events: none;
  content: '';
  border: 6px solid transparent;
  opacity: 0;
}
.tooltipped:hover::before,
.tooltipped:active::before,
.tooltipped:focus::before,
.tooltipped:hover::after,
.tooltipped:active::after,
.tooltipped:focus::after {
  display: inline-block;
  text-decoration: none;
  animation-name: tooltip-appear;
  animation-duration: 0.1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
}
.tooltipped-s::after,
.tooltipped-sw::after {
  top: 100%;
  right: 50%;
  margin-top: 6px;
}
.tooltipped-s::before,
.tooltipped-sw::before {
  top: auto;
  right: 50%;
  bottom: -7px;
  margin-right: -6px;
  border-bottom-color: #c9cacc;
}
.tooltipped-sw::after {
  margin-right: -16px;
}
.tooltipped-s::after {
  transform: translateX(50%);
}
@-moz-keyframes tooltip-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes tooltip-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes tooltip-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tooltip-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#categories .category-list-title {
  color: #666;
}
#categories .category-list .category-list-item .category-list-count {
  color: #666;
}
#categories .category-list .category-list-item .category-list-count:before {
  content: " (";
}
#categories .category-list .category-list-item .category-list-count:after {
  content: ")";
}
.highlight {
  background: #474949;
  color: #d1d9e1;
}
.highlight .code .comment,
.highlight .code .quote {
  color: #969896;
  font-style: italic;
}
.highlight .code .keyword,
.highlight .code .selector-tag,
.highlight .code .literal,
.highlight .code .type,
.highlight .code .addition {
  color: #c9c;
}
.highlight .code .number,
.highlight .code .selector-attr,
.highlight .code .selector-pseudo {
  color: #f99157;
}
.highlight .code .string,
.highlight .code .doctag,
.highlight .code .regexp {
  color: #8abeb7;
}
.highlight .code .title,
.highlight .code .name,
.highlight .code .section,
.highlight .code .built_in {
  color: #b5bd68;
}
.highlight .code .variable,
.highlight .code .template-variable,
.highlight .code .selector-id,
.highlight .code .class .title {
  color: #fc6;
}
.highlight .code .section,
.highlight .code .name,
.highlight .code .strong {
  font-weight: bold;
}
.highlight .code .symbol,
.highlight .code .bullet,
.highlight .code .subst,
.highlight .code .meta,
.highlight .code .link {
  color: #f99157;
}
.highlight .code .deletion {
  color: #dc322f;
}
.highlight .code .formula {
  background: #eee8d5;
}
.highlight .code .attr,
.highlight .code .attribute {
  color: #81a2be;
}
.highlight .code .emphasis {
  font-style: italic;
}
pre {
  overflow-x: auto;
  padding: 10px 15px;
  padding-bottom: 0;
  border: 1px dotted #666;
  border-radius: 4px;
  font-size: 13px;
  font-family: "Menlo", "Meslo LG", monospace;
  line-height: 22px;
  -webkit-border-radius: 4px;
}
pre code {
  display: block;
  padding: 0;
  border: none;
}
code {
  padding: 0 5px;
  border: 1px dotted #666;
  border-radius: 2px;
  -webkit-border-radius: 2px;
}
.highlight {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 10px 15px;
  border-radius: 4px;
  background: #212326;
  font-family: "Menlo", "Meslo LG", monospace;
  -webkit-border-radius: 4px;
}
.highlight figcaption {
  margin: -5px 0 5px;
  color: #666;
  font-size: 0.9em;
  zoom: 1;
}
.highlight figcaption a {
  float: right;
  color: #666;
  font-style: italic;
  font-size: 0.8em;
  background-image: linear-gradient(transparent, transparent 10px, #d480aa 10px, #d480aa);
  background-position: bottom;
  background-size: 100% 6px;
  background-repeat: repeat-x;
}
.highlight figcaption a:hover {
  color: #858585;
}
.highlight figcaption:before,
.highlight figcaption content: "" {
  display: table;
}
.highlight figcaption:after {
  clear: both;
}
.highlight:hover .btn-copy {
  opacity: 1;
}
.highlight .btn-copy {
  font-size: 1.2rem;
  position: absolute;
  right: 20px;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}
.highlight .btn-copy:hover {
  color: #2bbc8a;
}
.highlight pre {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.highlight table {
  width: auto;
}
.highlight td.gutter {
  text-align: right;
  opacity: 0.2;
}
.highlight .line {
  height: 22px;
}

/* Django blog integration */
:root {
  color-scheme: dark;
  --background: #1d1f21;
  --background-code: #212326;
  --border: #666;
  --meta: #666;
  --text: #c9cacc;
  --accent: #2bbc8a;
  --link-hover: #d480aa;
}

html {
  scrollbar-color: #999 transparent;
}

html {
  scrollbar-color: #999 transparent;
}

body {
  max-width: 48rem;
}

main {
  flex: 1 0 auto;
}

#header {
  margin-top: 1rem;
}

#header .utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 2.25rem;
  margin-top: 1rem;
}

.search-form {
  flex: 0 1 11rem;
}

.search-form .search-input {
  padding: 3px 7px;
  margin: 0;
  width: 100%;
  background: var(--background);
  color: var(--text);
  font-family: "Menlo", "Meslo LG", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.theme-switcher {
  display: inline-flex;
  margin: 0;
  gap: 0.15rem;
}

.theme-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--meta);
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-switcher svg {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.theme-switcher button:hover,
.theme-switcher button:focus-visible {
  color: var(--accent);
}

.theme-switcher button:focus-visible,
.search-input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.theme-switcher .theme-toggle-light {
  display: none;
}

.theme-switcher[data-preference="dark"] .theme-toggle-dark,
.theme-switcher[data-preference="light"] .theme-toggle-light {
  display: none;
}

.theme-switcher[data-preference="dark"] .theme-toggle-light,
.theme-switcher[data-preference="light"] .theme-toggle-dark {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  .theme-switcher[data-preference="auto"] .theme-toggle-dark {
    display: none;
  }

  .theme-switcher[data-preference="auto"] .theme-toggle-light {
    display: inline-flex;
  }
}

#header #nav .icon svg,
#header-post svg,
#footer-post svg {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  vertical-align: middle;
}

#archive {
  overflow-wrap: break-word;
}

#archive h1 {
  margin-bottom: 2rem;
}

#archive .post-year h2 {
  margin-bottom: 0.75rem;
}

.article-tag .meta-icon,
.article-category .meta-icon {
  fill: currentcolor;
  vertical-align: -1px;
  margin-right: 3px;
}

article .content .codehilite,
article .content .highlight {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 10px 15px;
  border-radius: 4px;
  background: var(--background-code);
  font-family: "Menlo", "Meslo LG", monospace;
  -webkit-border-radius: 4px;
}

article .content .codehilite pre,
article .content .highlight pre {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  white-space: pre;
}

article .content .codehilite code,
article .content .highlight code {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

.post-source {
  margin-top: 1.25rem;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

article .content table {
  display: table;
  width: 100%;
}

.blog-post-comments {
  margin-top: 3rem;
}

.blog-post-comments h2.section-heading {
  margin-top: 0;
  color: var(--accent);
}

.comment {
  margin-top: 1.35rem;
  padding-left: 1rem;
  border-left: 1px solid color-mix(in srgb, var(--meta) 45%, transparent);
}

.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.55rem;
}

.comment strong,
.comment time {
  color: var(--meta);
}

.comment time {
  display: block;
  font-size: 0.74rem;
}

.comment p {
  margin: 0.45rem 0 0;
}

.comment-replies {
  margin-top: 0.9rem;
  padding-left: 1rem;
}

.empty-comments {
  color: var(--meta);
}

.comment-form {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  border-top: 1px dashed color-mix(in srgb, var(--border) 50%, transparent);
}

.comment-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.comment-form button {
  min-width: 6.5rem;
  padding: 0.5rem 0.9rem;
  color: var(--background);
  background: var(--accent);
  border: 0;
  cursor: pointer;
  font: inherit;
}

.comment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.comment-fields label {
  display: block;
}

.comment-fields span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--meta);
  font-size: 0.82em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  margin: 0 0 0.7rem;
  outline: none;
  color: var(--text);
  background: var(--background-code);
  border: 1px dotted var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 0.92em;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
}

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.messages {
  margin: 0 0 1.5rem;
}

.message {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.55rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.message-success {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.message-error {
  color: #ef6464;
  background: rgba(239, 100, 100, 0.13);
  border: 1px solid rgba(239, 100, 100, 0.38);
}

.plugin-footnote {
  margin-top: 1.25rem;
  color: var(--meta);
  font-size: 0.78rem;
}

.error-page {
  padding: 3rem 0;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 0.5rem;
  font-size: 4rem;
}

.error-page p {
  margin-bottom: 1.5rem;
}

/* Post navigation shell (fixed table-of-contents column) */
#header-post .post-action-link,
#footer-post .post-action-link {
  font-size: 0.8rem;
}

#header-post #actions li {
  margin-right: 0;
}

#header-post #actions li + li {
  margin-left: 6px;
}

#header-post .back-to-top:hover,
#header-post .post-action-link:hover {
  color: var(--accent);
}

/* Footer: copyright left, navigation and theme switcher right */
#footer {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 2rem;
}

#footer .footer-right {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

#footer .footer-right nav {
  display: inline-block;
}

#footer .theme-switcher {
  margin-right: -0.28rem;
}

@media (max-width: 500px) {
  #header .utility-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-form {
    flex-basis: auto;
  }

  .theme-switcher {
    align-self: flex-end;
  }

  .comment-fields {
    grid-template-columns: 1fr;
  }

  .post-item {
    gap: 0.6rem;
  }
}

/* Pygments (codehilite) - rainbow palette, as on the cactus dark demo */
.codehilite .c,
.codehilite .c1,
.codehilite .cm,
.codehilite .cs,
.codehilite .ch,
.codehilite .cp,
.codehilite .cpf,
.codehilite .cd {
  color: #969896;
  font-style: italic;
}

.codehilite .k,
.codehilite .kd,
.codehilite .kn,
.codehilite .kp,
.codehilite .kr,
.codehilite .kv,
.codehilite .ow,
.codehilite .l,
.codehilite .ld,
.codehilite .kt,
.codehilite .gi {
  color: #cc99cc;
}

.codehilite .mi,
.codehilite .mf,
.codehilite .mh,
.codehilite .mo,
.codehilite .il,
.codehilite .no {
  color: #f99157;
}

.codehilite .s,
.codehilite .s1,
.codehilite .s2,
.codehilite .sb,
.codehilite .sc,
.codehilite .sd,
.codehilite .se,
.codehilite .sh,
.codehilite .si,
.codehilite .sx,
.codehilite .sa {
  color: #8abeb7;
}

.codehilite .sr,
.codehilite .sx {
  color: #8abeb7;
}

.codehilite .nf,
.codehilite .fm {
  color: #b5bd68;
  font-weight: bold;
}

.codehilite .nb,
.codehilite .nd {
  color: #b5bd68;
}

.codehilite .nv,
.codehilite .vc,
.codehilite .vg,
.codehilite .vi,
.codehilite .nc,
.codehilite .ne {
  color: #ffcc66;
}

.codehilite .na,
.codehilite .nt,
.codehilite .ni,
.codehilite .nl,
.codehilite .nx,
.codehilite .py {
  color: #81a2be;
}

.codehilite .sy,
.codehilite .bp {
  color: #f99157;
}

.codehilite .gd {
  color: #dc322f;
}

.codehilite .ge {
  font-style: italic;
}

.codehilite .gs {
  font-weight: bold;
}
.pagination .gap,
.pagination .current {
  padding: 4px 6px;
}

/* ---------------------------------------------------------------
   独立页面（后台「独立页面」）：与首页文章流、文章详情区分的页面式布局。
   标题区带分隔线与更新时间；不套 article.post，避免触发文章页脚本。
   --------------------------------------------------------------- */
article.page {
  margin-top: 1.5rem;
}
article.page .page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, currentcolor 20%, transparent);
}
article.page .page-header .meta {
  margin-top: 0.5rem;
}
article.page .page-header .meta * {
  color: #ccc;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------
   存档页补充：计数、分类/标签一览。
   --------------------------------------------------------------- */
#archive .archive-summary {
  margin-top: -0.5rem;
  color: #999;
  font-size: 0.85rem;
}
#archive .archive-map {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, currentcolor 15%, transparent);
}
#archive .archive-map h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
#archive .archive-map ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#archive .archive-map li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
#archive .archive-count {
  color: #999;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------
   移动端搜索框美化：药丸造型 + 内置放大镜 + 聚焦主题色柔光。
   --------------------------------------------------------------- */
@media (max-width: 500px) {
  .search-form {
    position: relative;
  }
  .search-form::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.8rem;
    width: 0.85rem;
    height: 0.85rem;
    transform: translateY(-50%);
    background: var(--meta);
    pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Ccircle cx=%277%27 cy=%277%27 r=%274.5%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27/%3E%3Cpath d=%27M10.5 10.5L14 14%27 stroke=%27black%27 stroke-width=%271.8%27 stroke-linecap=%27round%27/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Ccircle cx=%277%27 cy=%277%27 r=%274.5%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27/%3E%3Cpath d=%27M10.5 10.5L14 14%27 stroke=%27black%27 stroke-width=%271.8%27 stroke-linecap=%27round%27/%3E%3C/svg%3E") no-repeat center / contain;
  }
  .search-form .search-input {
    padding: 0.45rem 0.9rem 0.45rem 2.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--meta) 8%, var(--background));
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }
  .search-form .search-input::placeholder {
    color: var(--meta);
  }
  .search-form .search-input:focus,
  .search-form .search-input:focus-visible {
    outline: none;
    border-color: var(--accent);
    background-color: var(--background);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
  }
}

/* ---------------------------------------------------------------
   消息提示：右侧倒计时徽标（10 秒自动消失）。
   --------------------------------------------------------------- */
.message {
  position: relative;
  padding-right: 2.6rem;
}
.message .message-countdown {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  min-width: 1.4rem;
  padding: 0.05rem 0.25rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.72rem;
  color: inherit;
  background: color-mix(in srgb, currentcolor 14%, transparent);
  opacity: 0.85;
}
