/* ===== reset ===== */

::-webkit-input-placeholder {
  color: var(--text-muted-color) !important;
}

::-moz-placeholder {
  color: var(--text-muted-color) !important;
}

:-ms-input-placeholder {
  color: var(--text-muted-color) !important;
}

::-ms-input-placeholder {
  color: var(--text-muted-color) !important;
}

::placeholder {
  color: var(--text-muted-color) !important;
}

:focus::-webkit-input-placeholder {
  opacity: 0.6;
}

:focus::-moz-placeholder {
  opacity: 0.6;
}

:focus:-ms-input-placeholder {
  opacity: 0.6;
}

:focus::-ms-input-placeholder {
  opacity: 0.6;
}

:focus::placeholder {
  opacity: 0.6;
}

/* ===== theme (light/dark custom properties) ===== */

:root[data-bs-theme='light'] {
  --main-bg: white;
  --mask-bg: #c1c3c5;
  --main-border-color: #f3f3f3;
  --text-color: #34343c;
  --text-muted-color: #757575;
  --text-muted-highlight-color: inherit;
  --heading-color: #2a2a2a;
  --label-color: #585858;
  --blockquote-border-color: #eeeeee;
  --blockquote-text-color: #757575;
  --link-color: #0056b2;
  --link-underline-color: #dee2e6;
  --button-bg: #ffffff;
  --btn-border-color: #e9ecef;
  --btn-backtotop-color: #686868;
  --btn-backtotop-border-color: #f1f1f1;
  --checkbox-color: #c5c5c5;
  --checkbox-checked-color: #07a8f7;
  --img-bg: radial-gradient(circle, rgb(255 255 255) 0%, rgb(239 239 239) 100%);
  --shimmer-bg: linear-gradient(
    90deg,
    rgb(250 250 250 / 0%) 0%,
    rgb(232 230 230 / 100%) 50%,
    rgb(250 250 250 / 0%) 100%
  );
  --menu-bg: white;
  --menu-border-color: white;
  --menu-shadow-color: rgb(0 0 0 / 16%);
  --menu-active-color: rgb(91 91 91);
  --menu-highlight-bg: rgb(243 244 245 / 50%);
  --site-title-color: rgb(113 113 113);
  --site-subtitle-color: #717171;
  --sidebar-bg: #f6f8fa;
  --sidebar-border-color: #efefef;
  --sidebar-muted-color: #545454;
  --sidebar-active-color: #1d1d1d;
  --sidebar-hover-bg: rgb(223 233 241 / 64%);
  --sidebar-btn-bg: white;
  --sidebar-btn-color: #8e8e8e;
  --avatar-border-color: white;
  --topbar-bg: rgb(255 255 255 / 70%);
  --topbar-text-color: rgb(78 78 78);
  --search-border-color: rgb(240 240 240);
  --search-icon-color: #c2c6cc;
  --input-focus-border-color: #b8b8b8;
  --post-list-text-color: dimgray;
  --btn-patinator-text-color: #555555;
  --btn-paginator-hover-color: var(--sidebar-bg);
  --toc-highlight: #0550ae;
  --toc-popup-border-color: lightgray;
  --btn-share-color: gray;
  --btn-share-hover-color: #0d6efd;
  --card-bg: white;
  --card-hover-bg: #e2e2e2;
  --card-shadow:
    rgb(104 104 104 / 5%) 0 2px 6px 0, rgb(211 209 209 / 15%) 0 0 0 1px;
  --footnote-target-bg: lightcyan;
  --tb-odd-bg: #fbfcfd;
  --tb-border-color: #eaeaea;
  --dash-color: silver;
  --kbd-wrap-color: #bdbdbd;
  --kbd-text-color: var(--text-color);
  --kbd-bg-color: white;
  --prompt-text-color: rgb(46 46 46 / 77%);
  --prompt-tip-bg: rgb(123 247 144 / 20%);
  --prompt-tip-icon-color: #03b303;
  --prompt-info-bg: #e1f5fe;
  --prompt-info-icon-color: #0070cb;
  --prompt-warning-bg: rgb(255 243 205);
  --prompt-warning-icon-color: #ef9c03;
  --prompt-danger-bg: rgb(248 215 218 / 56%);
  --prompt-danger-icon-color: #df3c30;
  --tag-border: #dee2e6;
  --tag-shadow: var(--btn-border-color);
  --tag-hover: rgb(222 226 230);
  --search-tag-bg: #f8f9fa;
  --categories-border: rgb(0 0 0 / 12.5%);
  --categories-hover-bg: var(--btn-border-color);
  --categories-icon-hover-color: darkslategray;
  --timeline-color: rgb(0 0 0 / 7.5%);
  --timeline-node-bg: #c2c6cc;
  --timeline-year-dot-color: #ffffff;
  --language-border-color: #ececec;
  --highlight-bg-color: #f6f8fa;
  --highlighter-rouge-color: #3f596f;
  --highlight-lineno-color: #9e9e9e;
  --inline-code-bg: rgb(25 25 28 / 5%);
  --code-color: #3a3a3a;
  --code-header-text-color: #a3a3a3;
  --code-header-muted-color: #e5e5e5;
  --code-header-icon-color: #c9c8c8;
  --clipboard-checked-color: #43c743;
}

:root[data-bs-theme='light'] [class^='prompt-'] {
  --link-underline-color: rgb(219 216 216);
}

:root[data-bs-theme='light'] .dark {
  display: none;
}

:root[data-bs-theme='light'] .highlight table td {
  padding: 5px;
}

:root[data-bs-theme='light'] .highlight table pre {
  margin: 0;
}

:root[data-bs-theme='light'] .highlight, :root[data-bs-theme='light'] .highlight .w {
  color: #24292f;
  background-color: #f6f8fa;
}

:root[data-bs-theme='light'] .highlight .k, :root[data-bs-theme='light'] .highlight .kd, :root[data-bs-theme='light'] .highlight .kn, :root[data-bs-theme='light'] .highlight .kp, :root[data-bs-theme='light'] .highlight .kr, :root[data-bs-theme='light'] .highlight .kt, :root[data-bs-theme='light'] .highlight .kv {
  color: #cf222e;
}

:root[data-bs-theme='light'] .highlight .gr {
  color: #f6f8fa;
}

:root[data-bs-theme='light'] .highlight .gd {
  color: #82071e;
  background-color: #ffebe9;
}

:root[data-bs-theme='light'] .highlight .nb {
  color: #953800;
}

:root[data-bs-theme='light'] .highlight .nc {
  color: #953800;
}

:root[data-bs-theme='light'] .highlight .no {
  color: #953800;
}

:root[data-bs-theme='light'] .highlight .nn {
  color: #953800;
}

:root[data-bs-theme='light'] .highlight .sr {
  color: #116329;
}

:root[data-bs-theme='light'] .highlight .na {
  color: #116329;
}

:root[data-bs-theme='light'] .highlight .nt {
  color: #116329;
}

:root[data-bs-theme='light'] .highlight .gi {
  color: #116329;
  background-color: #dafbe1;
}

:root[data-bs-theme='light'] .highlight .kc {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .l, :root[data-bs-theme='light'] .highlight .ld, :root[data-bs-theme='light'] .highlight .m, :root[data-bs-theme='light'] .highlight .mb, :root[data-bs-theme='light'] .highlight .mf, :root[data-bs-theme='light'] .highlight .mh, :root[data-bs-theme='light'] .highlight .mi, :root[data-bs-theme='light'] .highlight .il, :root[data-bs-theme='light'] .highlight .mo, :root[data-bs-theme='light'] .highlight .mx {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .sb {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .bp {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .ne {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .nl {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .py {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .nv, :root[data-bs-theme='light'] .highlight .vc, :root[data-bs-theme='light'] .highlight .vg, :root[data-bs-theme='light'] .highlight .vi, :root[data-bs-theme='light'] .highlight .vm {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .o, :root[data-bs-theme='light'] .highlight .ow {
  color: #0550ae;
}

:root[data-bs-theme='light'] .highlight .gh {
  color: #0550ae;
  font-weight: bold;
}

:root[data-bs-theme='light'] .highlight .gu {
  color: #0550ae;
  font-weight: bold;
}

:root[data-bs-theme='light'] .highlight .s, :root[data-bs-theme='light'] .highlight .sa, :root[data-bs-theme='light'] .highlight .sc, :root[data-bs-theme='light'] .highlight .dl, :root[data-bs-theme='light'] .highlight .sd, :root[data-bs-theme='light'] .highlight .s2, :root[data-bs-theme='light'] .highlight .se, :root[data-bs-theme='light'] .highlight .sh, :root[data-bs-theme='light'] .highlight .sx, :root[data-bs-theme='light'] .highlight .s1, :root[data-bs-theme='light'] .highlight .ss {
  color: #0a3069;
}

:root[data-bs-theme='light'] .highlight .nd {
  color: #8250df;
}

:root[data-bs-theme='light'] .highlight .nf, :root[data-bs-theme='light'] .highlight .fm {
  color: #8250df;
}

:root[data-bs-theme='light'] .highlight .err {
  color: #f6f8fa;
  background-color: #82071e;
}

:root[data-bs-theme='light'] .highlight .c, :root[data-bs-theme='light'] .highlight .ch, :root[data-bs-theme='light'] .highlight .cd, :root[data-bs-theme='light'] .highlight .cm, :root[data-bs-theme='light'] .highlight .cp, :root[data-bs-theme='light'] .highlight .cpf, :root[data-bs-theme='light'] .highlight .c1, :root[data-bs-theme='light'] .highlight .cs {
  color: #68717a;
}

:root[data-bs-theme='light'] .highlight .gl {
  color: #68717a;
}

:root[data-bs-theme='light'] .highlight .gt {
  color: #68717a;
}

:root[data-bs-theme='light'] .highlight .ni {
  color: #24292f;
}

:root[data-bs-theme='light'] .highlight .si {
  color: #24292f;
}

:root[data-bs-theme='light'] .highlight .ge {
  color: #24292f;
  font-style: italic;
}

:root[data-bs-theme='light'] .highlight .gs {
  color: #24292f;
  font-weight: bold;
}

:root[data-bs-theme='dark'] {
  color-scheme: dark;
  --main-bg: rgb(27 27 30);
  --mask-bg: rgb(68 69 70);
  --main-border-color: rgb(44 45 45);
  --text-color: rgb(175 176 177);
  --text-muted-color: #868686;
  --text-muted-highlight-color: #aeaeae;
  --heading-color: #cccccc;
  --label-color: #a7a7a7;
  --blockquote-border-color: rgb(66 66 66);
  --blockquote-text-color: #868686;
  --link-color: rgb(138 180 248);
  --link-underline-color: rgb(82 108 150);
  --button-bg: #1e1e1e;
  --btn-border-color: #2e2f31;
  --btn-backtotop-color: var(--text-color);
  --btn-backtotop-border-color: #212122;
  --card-header-bg: #292929;
  --checkbox-color: rgb(118 120 121);
  --checkbox-checked-color: var(--link-color);
  --img-bg: radial-gradient(circle, rgb(22 22 24) 0%, rgb(32 32 32) 100%);
  --shimmer-bg: linear-gradient(
    90deg,
    rgb(255 255 255 / 0%) 0%,
    rgb(58 55 55 / 40%) 50%,
    rgb(255 255 255 / 0%) 100%
  );
  --menu-bg: rgb(30 30 30);
  --menu-border-color: rgb(77 77 77 / 60%);
  --menu-shadow-color: rgb(4 4 4 / 42%);
  --menu-active-color: rgb(240 248 255 / 63%);
  --menu-highlight-bg: rgb(90 91 92 / 12%);
  --site-title-color: #717070;
  --site-subtitle-color: #868686;
  --sidebar-bg: #1e1e1e;
  --sidebar-border-color: #292929;
  --sidebar-muted-color: #868686;
  --sidebar-active-color: rgb(255 255 255 / 95%);
  --sidebar-hover-bg: #262626;
  --sidebar-btn-bg: #232328;
  --sidebar-btn-color: #787878;
  --avatar-border-color: rgb(206 206 206 / 90%);
  --topbar-bg: rgb(27 27 30 / 64%);
  --topbar-text-color: var(--text-color);
  --search-border-color: rgb(55 55 55);
  --search-icon-color: rgb(100 102 105);
  --input-focus-border-color: rgb(112 114 115);
  --post-list-text-color: rgb(175 176 177);
  --btn-patinator-text-color: var(--text-color);
  --btn-paginator-hover-color: #2e2e2e;
  --toc-highlight: rgb(116 178 243);
  --toc-popup-border-color: #373737;
  --tag-hover: rgb(43 56 62);
  --tb-odd-bg: #252526;
  --tb-even-bg: rgb(31 31 34);
  --tb-border-color: var(--tb-odd-bg);
  --footnote-target-bg: rgb(63 81 181);
  --btn-share-color: #6c757d;
  --btn-share-hover-color: #bfc1ca;
  --card-bg: #1e1e1e;
  --card-hover-bg: #464d51;
  --card-shadow:
    rgb(21 21 21 / 72%) 0 6px 18px 0, rgb(137 135 135 / 24%) 0 0 0 1px;
  --kbd-wrap-color: #6a6a6a;
  --kbd-text-color: #d3d3d3;
  --kbd-bg-color: #242424;
  --prompt-text-color: rgb(216 212 212 / 75%);
  --prompt-tip-bg: rgb(22 60 36 / 64%);
  --prompt-tip-icon-color: rgb(15 164 15 / 81%);
  --prompt-info-bg: rgb(7 59 104 / 80%);
  --prompt-info-icon-color: #0075d1;
  --prompt-warning-bg: rgb(90 69 3 / 88%);
  --prompt-warning-icon-color: rgb(255 165 0 / 80%);
  --prompt-danger-bg: rgb(86 28 8 / 80%);
  --prompt-danger-icon-color: #cd0202;
  --tag-border: rgb(59 79 88);
  --tag-shadow: rgb(32 33 33);
  --dash-color: rgb(63 65 68);
  --search-tag-bg: #292828;
  --categories-border: rgb(64 66 69 / 50%);
  --categories-hover-bg: rgb(73 75 76);
  --categories-icon-hover-color: white;
  --timeline-node-bg: rgb(150 152 156);
  --timeline-color: rgb(63 65 68);
  --timeline-year-dot-color: var(--timeline-color);
  --language-border-color: #2d2d2d;
  --highlight-bg-color: #151515;
  --highlighter-rouge-color: #c9def1;
  --highlight-lineno-color: #808080;
  --inline-code-bg: rgb(255 255 255 / 5%);
  --code-color: #b0b0b0;
  --code-header-text-color: #6a6a6a;
  --code-header-muted-color: #353535;
  --code-header-icon-color: #565656;
  --clipboard-checked-color: #2bcc2b;
  --filepath-text-color: #cacaca;
}

:root[data-bs-theme='dark'] .light {
  display: none;
}

:root[data-bs-theme='dark'] .categories.card, :root[data-bs-theme='dark'] .list-group-item {
  background-color: var(--card-bg);
}

:root[data-bs-theme='dark'] .categories .card-header {
  background-color: var(--card-header-bg);
}

:root[data-bs-theme='dark'] .categories .list-group-item {
  border-left: none;
  border-right: none;
  padding-left: 2rem;
  border-color: var(--categories-border);
}

:root[data-bs-theme='dark'] .categories .list-group-item:last-child {
  border-bottom-color: var(--card-bg);
}

:root[data-bs-theme='dark'] #archives li:nth-child(odd) {
  background-image: linear-gradient(
      to left,
      rgb(26 26 30),
      rgb(39 39 45),
      rgb(39 39 45),
      rgb(39 39 45),
      rgb(26 26 30)
    );
}

:root[data-bs-theme='dark'] #disqus_thread {
  color-scheme: none;
}

:root[data-bs-theme='dark'] .highlight .gp {
  color: #87939d;
}

:root[data-bs-theme='dark'] .highlight table td {
  padding: 5px;
}

:root[data-bs-theme='dark'] .highlight table pre {
  margin: 0;
}

:root[data-bs-theme='dark'] .highlight, :root[data-bs-theme='dark'] .highlight .w {
  color: #d0d0d0;
  background-color: #151515;
}

:root[data-bs-theme='dark'] .highlight .err {
  color: #151515;
  background-color: #ac4142;
}

:root[data-bs-theme='dark'] .highlight .c, :root[data-bs-theme='dark'] .highlight .ch, :root[data-bs-theme='dark'] .highlight .cd, :root[data-bs-theme='dark'] .highlight .cm, :root[data-bs-theme='dark'] .highlight .cpf, :root[data-bs-theme='dark'] .highlight .c1, :root[data-bs-theme='dark'] .highlight .cs {
  color: #848484;
}

:root[data-bs-theme='dark'] .highlight .cp {
  color: #f4bf75;
}

:root[data-bs-theme='dark'] .highlight .nt {
  color: #f4bf75;
}

:root[data-bs-theme='dark'] .highlight .o, :root[data-bs-theme='dark'] .highlight .ow {
  color: #d0d0d0;
}

:root[data-bs-theme='dark'] .highlight .p, :root[data-bs-theme='dark'] .highlight .pi {
  color: #d0d0d0;
}

:root[data-bs-theme='dark'] .highlight .gi {
  color: #90a959;
}

:root[data-bs-theme='dark'] .highlight .gd {
  color: #f08a8b;
  background-color: #320000;
}

:root[data-bs-theme='dark'] .highlight .gh {
  color: #6a9fb5;
  background-color: #151515;
  font-weight: bold;
}

:root[data-bs-theme='dark'] .highlight .k, :root[data-bs-theme='dark'] .highlight .kn, :root[data-bs-theme='dark'] .highlight .kp, :root[data-bs-theme='dark'] .highlight .kr, :root[data-bs-theme='dark'] .highlight .kv {
  color: #aa759f;
}

:root[data-bs-theme='dark'] .highlight .kc {
  color: #d28445;
}

:root[data-bs-theme='dark'] .highlight .kt {
  color: #d28445;
}

:root[data-bs-theme='dark'] .highlight .kd {
  color: #d28445;
}

:root[data-bs-theme='dark'] .highlight .s, :root[data-bs-theme='dark'] .highlight .sb, :root[data-bs-theme='dark'] .highlight .sc, :root[data-bs-theme='dark'] .highlight .dl, :root[data-bs-theme='dark'] .highlight .sd, :root[data-bs-theme='dark'] .highlight .s2, :root[data-bs-theme='dark'] .highlight .sh, :root[data-bs-theme='dark'] .highlight .sx, :root[data-bs-theme='dark'] .highlight .s1 {
  color: #90a959;
}

:root[data-bs-theme='dark'] .highlight .sa {
  color: #aa759f;
}

:root[data-bs-theme='dark'] .highlight .sr {
  color: #75b5aa;
}

:root[data-bs-theme='dark'] .highlight .si {
  color: #b76d45;
}

:root[data-bs-theme='dark'] .highlight .se {
  color: #b76d45;
}

:root[data-bs-theme='dark'] .highlight .nn {
  color: #f4bf75;
}

:root[data-bs-theme='dark'] .highlight .nc {
  color: #f4bf75;
}

:root[data-bs-theme='dark'] .highlight .no {
  color: #f4bf75;
}

:root[data-bs-theme='dark'] .highlight .na {
  color: #6a9fb5;
}

:root[data-bs-theme='dark'] .highlight .m, :root[data-bs-theme='dark'] .highlight .mb, :root[data-bs-theme='dark'] .highlight .mf, :root[data-bs-theme='dark'] .highlight .mh, :root[data-bs-theme='dark'] .highlight .mi, :root[data-bs-theme='dark'] .highlight .il, :root[data-bs-theme='dark'] .highlight .mo, :root[data-bs-theme='dark'] .highlight .mx {
  color: #90a959;
}

:root[data-bs-theme='dark'] .highlight .ss {
  color: #90a959;
}

@media (prefers-color-scheme: light) {
:root:not([data-bs-theme]) {
[class^='prompt-'] {
  --link-underline-color: rgb(219 216 216);
}
.dark {
  display: none;
}
.highlight table td {
  padding: 5px;
}
.highlight table pre {
  margin: 0;
}
.highlight, .highlight .w {
  color: #24292f;
  background-color: #f6f8fa;
}
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kv {
  color: #cf222e;
}
.highlight .gr {
  color: #f6f8fa;
}
.highlight .gd {
  color: #82071e;
  background-color: #ffebe9;
}
.highlight .nb {
  color: #953800;
}
.highlight .nc {
  color: #953800;
}
.highlight .no {
  color: #953800;
}
.highlight .nn {
  color: #953800;
}
.highlight .sr {
  color: #116329;
}
.highlight .na {
  color: #116329;
}
.highlight .nt {
  color: #116329;
}
.highlight .gi {
  color: #116329;
  background-color: #dafbe1;
}
.highlight .kc {
  color: #0550ae;
}
.highlight .l, .highlight .ld, .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: #0550ae;
}
.highlight .sb {
  color: #0550ae;
}
.highlight .bp {
  color: #0550ae;
}
.highlight .ne {
  color: #0550ae;
}
.highlight .nl {
  color: #0550ae;
}
.highlight .py {
  color: #0550ae;
}
.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi, .highlight .vm {
  color: #0550ae;
}
.highlight .o, .highlight .ow {
  color: #0550ae;
}
.highlight .gh {
  color: #0550ae;
  font-weight: bold;
}
.highlight .gu {
  color: #0550ae;
  font-weight: bold;
}
.highlight .s, .highlight .sa, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .se, .highlight .sh, .highlight .sx, .highlight .s1, .highlight .ss {
  color: #0a3069;
}
.highlight .nd {
  color: #8250df;
}
.highlight .nf, .highlight .fm {
  color: #8250df;
}
.highlight .err {
  color: #f6f8fa;
  background-color: #82071e;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cp, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: #68717a;
}
.highlight .gl {
  color: #68717a;
}
.highlight .gt {
  color: #68717a;
}
.highlight .ni {
  color: #24292f;
}
.highlight .si {
  color: #24292f;
}
.highlight .ge {
  color: #24292f;
  font-style: italic;
}
.highlight .gs {
  color: #24292f;
  font-weight: bold;
}
}
}

@media (prefers-color-scheme: dark) {
:root:not([data-bs-theme]) {
.light {
  display: none;
}
.categories.card, .list-group-item {
  background-color: var(--card-bg);
}
.categories .card-header {
  background-color: var(--card-header-bg);
}
.categories .list-group-item {
  border-left: none;
  border-right: none;
  padding-left: 2rem;
  border-color: var(--categories-border);
}
.categories .list-group-item:last-child {
  border-bottom-color: var(--card-bg);
}
#archives li:nth-child(odd) {
  background-image: linear-gradient(
      to left,
      rgb(26 26 30),
      rgb(39 39 45),
      rgb(39 39 45),
      rgb(39 39 45),
      rgb(26 26 30)
    );
}
#disqus_thread {
  color-scheme: none;
}
.highlight .gp {
  color: #87939d;
}
.highlight table td {
  padding: 5px;
}
.highlight table pre {
  margin: 0;
}
.highlight, .highlight .w {
  color: #d0d0d0;
  background-color: #151515;
}
.highlight .err {
  color: #151515;
  background-color: #ac4142;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: #848484;
}
.highlight .cp {
  color: #f4bf75;
}
.highlight .nt {
  color: #f4bf75;
}
.highlight .o, .highlight .ow {
  color: #d0d0d0;
}
.highlight .p, .highlight .pi {
  color: #d0d0d0;
}
.highlight .gi {
  color: #90a959;
}
.highlight .gd {
  color: #f08a8b;
  background-color: #320000;
}
.highlight .gh {
  color: #6a9fb5;
  background-color: #151515;
  font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
  color: #aa759f;
}
.highlight .kc {
  color: #d28445;
}
.highlight .kt {
  color: #d28445;
}
.highlight .kd {
  color: #d28445;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
  color: #90a959;
}
.highlight .sa {
  color: #aa759f;
}
.highlight .sr {
  color: #75b5aa;
}
.highlight .si {
  color: #b76d45;
}
.highlight .se {
  color: #b76d45;
}
.highlight .nn {
  color: #f4bf75;
}
.highlight .nc {
  color: #f4bf75;
}
.highlight .no {
  color: #f4bf75;
}
.highlight .na {
  color: #6a9fb5;
}
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: #90a959;
}
.highlight .ss {
  color: #90a959;
}
}
}

/* ===== base ===== */

:root {
  font-size: 16px;
}

@media all and (min-width: 850px) {
:root {
  overflow-y: scroll;
}
}

body {
  background: var(--main-bg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  font-family: 'Source Sans Pro', 'Microsoft Yahei', sans-serif;
}

@media all and (max-width: calc(850px - 1px)) {
h1.dynamic-title {
  display: none;
}
h1.dynamic-title ~ .content {
  margin-top: 2.5rem;
}
}

@media all and (min-width: 1650px) {
main.col-12 {
  padding-right: 4.5rem !important;
}
}

.preview-img {
  aspect-ratio: 40 / 21;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.preview-img:not(.no-bg) {
  background: var(--img-bg);
}

.preview-img img {
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 10px;
}

#post-list .preview-img img {
  width: 100%;
}

.post-preview {
  border-radius: 10px;
  border: 0;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.post-preview::before {
  border-radius: 10px;
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: var(--card-hover-bg);
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}

.post-preview:hover::before {
  opacity: 0.3;
}

.post-meta {
  font-size: 0.85rem;
}

.post-meta a:not([class]):hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

.post-meta em {
  font-style: normal;
}

.content {
  font-size: 1.08rem;
  margin-top: 2rem;
  overflow-wrap: break-word;
}

@media all and (min-width: 1200px) {
.content {
  font-size: 1.03rem;
}
}

.content a.popup {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.content a.popup + em {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 80%;
  padding: 0;
  color: #6d6c6c;
}

.content a.popup {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: zoom-in;
}

.content a:not(.img-link):not(.popup):not(.anchor),
.entry-content a:not(.img-link):not(.popup):not(.anchor) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  border-bottom: none;
}

.content a:not(.img-link):not(.popup):not(.anchor):hover,
.content a:not(.img-link):not(.popup):not(.anchor):focus,
.entry-content a:not(.img-link):not(.popup):not(.anchor):hover,
.entry-content a:not(.img-link):not(.popup):not(.anchor):focus {
  color: #d2603a !important;
  text-decoration: underline;
  border-bottom: none;
}

.content ol:not([class]), .content ol.task-list, .content ul:not([class]), .content ul.task-list {
  -webkit-padding-start: 1.75rem;
  padding-inline-start: 1.75rem;
}

.content ol:not([class]) li, .content ol.task-list li, .content ul:not([class]) li, .content ul.task-list li {
  margin: 0.25rem 0;
  padding-left: 0.25rem;
}

.content ol:not([class]) ol, .content ol:not([class]) ul, .content ol.task-list ol, .content ol.task-list ul, .content ul:not([class]) ol, .content ul:not([class]) ul, .content ul.task-list ol, .content ul.task-list ul {
  -webkit-padding-start: 1.25rem;
  padding-inline-start: 1.25rem;
  margin: 0.5rem 0;
}

.content ul.task-list {
  -webkit-padding-start: 1.25rem;
  padding-inline-start: 1.25rem;
}

.content ul.task-list li {
  list-style-type: none;
  padding-left: 0;
}

.content ul.task-list li > i {
  width: 2rem;
  margin-left: -1.25rem;
  color: var(--checkbox-color);
}

.content ul.task-list li > i.checked {
  color: var(--checkbox-checked-color);
}

.content ul.task-list li ul {
  -webkit-padding-start: 1.75rem;
  padding-inline-start: 1.75rem;
}

.content ul.task-list input[type='checkbox'] {
  margin: 0 0.5rem 0.2rem -1.3rem;
  vertical-align: middle;
}

.content dl > dd {
  margin-left: 1rem;
}

.content ::marker {
  color: var(--text-muted-color);
}

@media all and (min-width: 850px) {
.content .table-wrapper > table {
  min-width: 70%;
}
}

.tag:hover {
  color: var(--link-color);
  background: var(--tag-hover);
  border-color: var(--tag-hover);
  transition: background 0.35s ease-in-out;
}

.post-tag {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  border-radius: 0.5rem;
  border: 1px solid var(--btn-border-color);
  padding: 0 0.4rem;
  color: var(--text-muted-color);
  line-height: 1.3rem;
}

.post-tag:not(:last-child) {
  margin-right: 0.2rem;
}

.rounded-10 {
  border-radius: 10px !important;
}

.img-link {
  color: transparent;
  display: inline-flex;
}

.shimmer {
  overflow: hidden;
  position: relative;
  background: var(--img-bg);
}

.shimmer::before {
  content: '';
  position: absolute;
  background: var(--shimmer-bg);
  height: 100%;
  width: 100%;
  -webkit-animation: shimmer 1.3s infinite;
  animation: shimmer 1.3s infinite;
}

@-webkit-keyframes shimmer {0% {transform: translateX(-100%);}
100% {transform: translateX(100%);}}

@keyframes shimmer {0% {transform: translateX(-100%);}
100% {transform: translateX(100%);}}

.embed-video {
  width: 100%;
  height: 100%;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.embed-video.twitch {
  aspect-ratio: 310 / 189;
}

.embed-video.file {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  margin-bottom: 0;
}

.embed-video + em {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 80%;
  padding: 0;
  color: #6d6c6c;
}

.embed-audio {
  width: 100%;
}

.embed-audio.file {
  display: block;
}

.embed-audio.spotify {
  border-radius: 14px;
}

.embed-audio + em {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 80%;
  padding: 0;
  color: #6d6c6c;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.btn-box-shadow {
  box-shadow: var(--card-shadow);
}

.text-muted {
  color: var(--text-muted-color) !important;
}

.tooltip-inner {
  font-size: 0.7rem;
  max-width: 220px;
  text-align: left;
}

.btn.btn-outline-primary:not(.disabled):hover {
  border-color: #007bff !important;
}

.disabled {
  color: rgb(206 196 196);
  pointer-events: auto;
  cursor: not-allowed;
}

.hide-border-bottom {
  border-bottom: none !important;
}

.input-focus {
  box-shadow: none;
  border-color: var(--input-focus-border-color) !important;
  background: center !important;
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.left {
  float: left;
  margin: 0.75rem 1rem 1rem 0;
}

.right {
  float: right;
  margin: 0.75rem 0 1rem 1rem;
}

.mermaid {
  text-align: center;
}

mjx-container a {
  display: inline-block;
}

@media (hover: hover) {
#sidebar ul > li:last-child::after {
  transition: top 0.5s ease;
}
.nav-link {
  transition: background-color 0.3s ease-in-out;
}
.post-preview {
  transition: background-color 0.35s ease-in-out;
}
}

#mask {
  inset: 0 0 0 0;
}

#main-wrapper {
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

@media all and (max-width: calc(850px - 1px)) {
#main-wrapper {
  transition: transform 0.4s ease;
}
}

@media all and (min-width: 850px) {
#main-wrapper {
  margin-left: 260px;
}
}

@media all and (min-width: 1650px) {
#main-wrapper {
  margin-left: 300px;
}
}

#main-wrapper > .container {
  min-height: 100vh;
}

@media all and (max-width: 768px) {
#main-wrapper > .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
}

@media all and (max-width: calc(850px - 1px)) {
#main-wrapper > .container {
  max-width: 100%;
}
}

@media all and (min-width: 992px) and (max-width: calc(1200px - 1px)) {
#main-wrapper > .container .col-lg-11 {
  flex: 0 0 96%;
  max-width: 96%;
}
}

@media all and (max-width: calc(1200px - 1px)) {
#main-wrapper > .container > .row {
  justify-content: center !important;
}
}

@media all and (min-width: 1650px) {
#main-wrapper > .container {
  max-width: 1250px;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
}
}

#topbar-wrapper.row, #main-wrapper > .container > .row, #search-result-wrapper > .row {
  margin-left: 0;
  margin-right: 0;
}

@media all and (min-width: 1650px) {
#tail-wrapper {
  padding-right: 4.5rem !important;
}
}

#tail-wrapper > :not(script) {
  margin-top: 3rem;
}

/* ===== typography ===== */

h1 {
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
  font-size: calc(1rem + (5 - 1) * 0.25rem);
}

h2 {
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
}

h2 .anchor {
  font-size: 80%;
}

@media (hover: hover) {
h2 .anchor {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
}
h2:hover .anchor {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
}
}

main h2 {
  margin: 2.5rem 0 1.25rem;
}

h2 {
  font-size: calc(1rem + (5 - 2) * 0.18rem);
}

h3 {
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
}

h3 .anchor {
  font-size: 80%;
}

@media (hover: hover) {
h3 .anchor {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
}
h3:hover .anchor {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
}
}

main h3 {
  margin: 2rem 0 1rem;
}

h3 {
  font-size: calc(1rem + (5 - 3) * 0.18rem);
}

h4 {
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
}

h4 .anchor {
  font-size: 80%;
}

@media (hover: hover) {
h4 .anchor {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
}
h4:hover .anchor {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
}
}

main h4 {
  margin: 2rem 0 1rem;
}

h4 {
  font-size: calc(1rem + (5 - 4) * 0.18rem);
}

h5 {
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
}

h5 .anchor {
  font-size: 80%;
}

@media (hover: hover) {
h5 .anchor {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
}
h5:hover .anchor {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
}
}

h5 {
  font-size: 1.05rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  transition: all 0.35s ease-in-out;
}

.blur img {
  -webkit-filter: blur(20px);
  filter: blur(20px);
}

blockquote {
  border-left: 0.125rem solid var(--blockquote-border-color);
  padding-left: 1rem;
  color: var(--blockquote-text-color);
  margin-top: 0.5rem;
}

blockquote > p:last-child {
  margin-bottom: 0;
}

blockquote[class^='prompt-'] {
  border-left: 0;
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  color: var(--prompt-text-color);
  border-radius: 10px;
}

blockquote[class^='prompt-']::before {
  text-align: center;
  width: 3rem;
  position: absolute;
  left: 0.25rem;
  margin-top: 0.4rem;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

blockquote.prompt-tip {
  background-color: var(--prompt-tip-bg);
}

blockquote.prompt-tip::before {
  content: '\f0eb';
  color: var(--prompt-tip-icon-color);
  font: var(--fa-font-regular);
}

blockquote.prompt-info {
  background-color: var(--prompt-info-bg);
}

blockquote.prompt-info::before {
  content: '\f06a';
  color: var(--prompt-info-icon-color);
  font: var(--fa-font-solid);
  transform: rotate(180deg);
}

blockquote.prompt-warning {
  background-color: var(--prompt-warning-bg);
}

blockquote.prompt-warning::before {
  content: '\f06a';
  color: var(--prompt-warning-icon-color);
  font: var(--fa-font-solid);
}

blockquote.prompt-danger {
  background-color: var(--prompt-danger-bg);
}

blockquote.prompt-danger::before {
  content: '\f071';
  color: var(--prompt-danger-icon-color);
  font: var(--fa-font-solid);
}

kbd {
  font-family: Lato, sans-serif;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.3rem;
  min-width: 1.75rem;
  text-align: center;
  margin: 0 0.3rem;
  padding-top: 0.1rem;
  color: var(--kbd-text-color);
  background-color: var(--kbd-bg-color);
  border-radius: 6px;
  border: solid 1px var(--kbd-wrap-color);
  box-shadow: inset 0 -2px 0 var(--kbd-wrap-color);
}

hr {
  border-color: var(--main-border-color);
  opacity: 1;
}

footer {
  background-color: var(--main-bg);
  height: 5rem;
  border-top: 1px solid var(--main-border-color);
  font-size: 0.8rem;
}

footer a {
  color: var(--text-muted-highlight-color);
  font-weight: 600;
}

footer a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

footer em {
  color: var(--text-muted-highlight-color);
  font-weight: 600;
}

footer p {
  text-align: center;
  margin-bottom: 0;
}

i.far, i.fas {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

sup:target {
  background-color: var(--footnote-target-bg);
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  transition: background-color 1.75s ease-in-out;
}

main {
  line-height: 1.75;
}

main h1 {
  margin-top: 2rem;
}

@media all and (min-width: 850px) {
main h1 {
  margin-top: 3rem;
}
}

main p > a.popup:not(.normal):not(.left):not(.right) {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

main .categories a:not(:hover), main #tags a:not(:hover), main #archives a:not(:hover) {
  border-bottom: none;
}

@media all and (max-width: 576px) {
main .content > blockquote[class^='prompt-'] {
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 0;
  max-width: none;
}
}

.footnotes > ol {
  padding-left: 2rem;
  margin-top: 0.5rem;
}

.footnotes > ol > li:not(:last-child) {
  margin-bottom: 0.3rem;
}

.footnotes > ol > li:target {
  background-color: var(--footnote-target-bg);
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  transition: background-color 1.75s ease-in-out;
}

.footnotes > ol > li > p {
  margin-left: 0.25em;
  margin-top: 0;
  margin-bottom: 0;
}

a.footnote {
  margin-left: 1px;
  margin-right: 1px;
  padding-left: 2px;
  padding-right: 2px;
  border-bottom-style: none !important;
}

a.reversefootnote {
  font-size: 0.6rem;
  line-height: 1;
  position: relative;
  bottom: 0.25em;
  margin-left: 0.25em;
  border-bottom-style: none !important;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.table-wrapper > table {
  min-width: 100%;
  overflow-x: auto;
  border-spacing: 0;
}

.table-wrapper > table thead {
  border-bottom: solid 2px rgb(210 215 217 / 75%);
}

.table-wrapper > table thead th {
  padding: 0.4rem 1rem;
  font-size: 95%;
  white-space: nowrap;
}

.table-wrapper > table tbody tr {
  border-bottom: 1px solid var(--tb-border-color);
}

.table-wrapper > table tbody tr:nth-child(2n) {
  background-color: var(--tb-even-bg);
}

.table-wrapper > table tbody tr:nth-child(2n + 1) {
  background-color: var(--tb-odd-bg);
}

.table-wrapper > table tbody tr td {
  padding: 0.4rem 1rem;
  font-size: 95%;
  white-space: nowrap;
}

/* ===== syntax ===== */

.highlighter-rouge {
  color: var(--highlighter-rouge-color);
  margin-top: 0.5rem;
  margin-bottom: 1.2em;
}

.highlight {
  border-radius: 10px;
  background-color: var(--highlight-bg-color);
  overflow: auto;
  padding-bottom: 0.75rem;
}

figure.highlight {
  background-color: var(--highlight-bg-color);
}

.highlight pre {
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.4rem;
}

.highlight table td:first-child {
  display: inline-block;
  margin-left: 1rem;
  margin-right: 0.75rem;
}

.highlight table td:last-child {
  padding-right: 2rem !important;
}

.highlight table td pre {
  overflow: visible;
  word-break: normal;
}

.highlight .lineno {
  text-align: right;
  color: var(--highlight-lineno-color);
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

code {
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  color: var(--code-color);
}

code.highlighter-rouge {
  font-size: 0.85rem;
  padding: 3px 5px;
  overflow-wrap: break-word;
  border-radius: 6px;
  background-color: var(--inline-code-bg);
}

code.filepath {
  background-color: inherit;
  color: var(--filepath-text-color);
  font-weight: 600;
  padding: 0;
}

a > code.highlighter-rouge {
  padding-bottom: 0;
  color: inherit;
}

a:hover > code.highlighter-rouge {
  border-bottom: none;
}

blockquote code {
  color: inherit;
}

td.rouge-code {
  padding-left: 1rem;
  padding-right: 1.5rem;
}

td.rouge-code a {
  color: inherit !important;
  border-bottom: none !important;
  pointer-events: none;
}

div[class^='language-'] {
  border-radius: 10px;
  background-color: var(--highlight-bg-color);
  box-shadow: var(--language-border-color) 0 0 0 1px;
}

.content > div[class^='language-'] {
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 0;
}

@media all and (min-width: 576px) {
.content > div[class^='language-'] {
  margin-left: 0;
  margin-right: 0;
  border-radius: 10px;
}
}

div[class^='language-'] .code-header {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2.25rem;
  margin-left: 0.75rem;
  margin-right: 0.25rem;
}

div[class^='language-'] .code-header span {
  color: var(--code-header-text-color);
  line-height: 2.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

div[class^='language-'] .code-header span i {
  font-size: 1rem;
  width: 1.75rem;
  color: var(--code-header-icon-color);
}

div[class^='language-'] .code-header span i.small {
  font-size: 70%;
}

[file] div[class^='language-'] .code-header span > i {
  position: relative;
  top: 1px;
}

div[class^='language-'] .code-header span::after {
  content: attr(data-label-text);
  font-size: 0.85rem;
  font-weight: 600;
}

div[class^='language-'] .code-header button {
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid transparent;
  height: 2rem;
  width: 2rem;
  margin-right: 0.125rem;
  padding: 0;
  background-color: inherit;
}

div[class^='language-'] .code-header button i {
  color: var(--code-header-icon-color);
}

div[class^='language-'] .code-header button[timeout]:hover {
  border-color: var(--clipboard-checked-color);
}

div[class^='language-'] .code-header button[timeout] i {
  font-size: 90%;
  color: var(--clipboard-checked-color);
}

div[class^='language-'] .code-header button:focus {
  outline: none;
}

div[class^='language-'] .code-header button:not([timeout]):hover {
  background-color: rgb(128 128 128 / 37%);
}

div[class^='language-'] .code-header button:not([timeout]):hover i {
  color: white;
}

@media all and (min-width: 576px) {
div[class^='language-'] .code-header {
  margin-left: 0;
  margin-right: 0;
}
div[class^='language-'] .code-header::before {
  content: '';
  display: inline-block;
  margin-left: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--code-header-muted-color);
  box-shadow: calc((0.75rem + 0.5rem) 0 0
            var(--code-header-muted-color),
          (0.75rem + 0.5rem) * 2 0 0
            var(--code-header-muted-color));
}
div[class^='language-'] .code-header span {
  margin-left: 1.75rem * -1;
  max-width: calc(
          100% - 1rem - (0.5rem + 0.75rem) * 3 -
            1.75rem * 4
        );
}
}

div[class^='language-'] .highlight {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

div.nolineno td:first-child, div.language-plaintext td:first-child, div.language-console td:first-child, div.language-terminal td:first-child {
  padding: 0 !important;
  margin-right: 0;
}

div.nolineno td:first-child .lineno, div.language-plaintext td:first-child .lineno, div.language-console td:first-child .lineno, div.language-terminal td:first-child .lineno {
  display: none;
}

/* ===== buttons ===== */

#back-to-top {
  visibility: hidden;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
  position: fixed;
  right: 1rem;
  bottom: calc(6rem - 2.75rem / 2);
  background: var(--button-bg);
  color: var(--btn-backtotop-color);
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--btn-backtotop-border-color);
  transition: opacity 0.5s ease-in-out, transform 0.2s ease-out;
}

@media all and (min-width: 850px) {
#back-to-top {
  right: 5%;
  bottom: calc(5rem - 2.75rem / 2);
}
}

@media all and (min-width: 1400px) {
#back-to-top {
  right: calc((100vw - 260px - 1140px) / 2 + 3rem);
}
}

@media all and (min-width: 1650px) {
#back-to-top {
  right: calc(
      (100vw - 300px - 1250px) / 2 + 2rem
    );
}
}

#back-to-top:hover {
  transform: translate3d(0, -5px, 0);
  -webkit-transform: translate3d(0, -5px, 0);
}

#back-to-top i {
  line-height: 2.75rem;
  position: relative;
  bottom: 2px;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== popups ===== */

@-webkit-keyframes popup {from {opacity: 0;
bottom: 10%;}}

@keyframes popup {from {opacity: 0;
bottom: 10%;}}

#notification.toast.show {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: fixed;
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%);
  -webkit-animation: popup 0.8s;
  animation: popup 0.8s;
}

#notification.toast .toast-body {
  line-height: 1.25rem;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
}

#notification.toast button[aria-label='Update'] {
  font-size: 0.8rem;
}

#notification.toast .btn-close {
  font-size: 0.625rem;
}

#toc-popup {
  border-color: var(--toc-popup-border-color);
  border-width: 1px;
  border-radius: 10px;
  color: var(--text-color);
  background: var(--card-bg);
  margin-top: 3rem;
  min-width: 20rem;
  font-size: 1.05rem;
}

@media all and (min-width: 576px) {
#toc-popup {
  max-width: 32rem;
}
}

#toc-popup[open] {
  -webkit-animation: slide-in 0.3s ease-out;
  animation: slide-in 0.3s ease-out;
}

#toc-popup[closing] {
  -webkit-animation: slide-out 0.3s ease-out;
  animation: slide-out 0.3s ease-out;
}

@media all and (min-width: 850px) {
#toc-popup {
  left: 260px;
}
}

#toc-popup .header button i {
  color: #999999;
}

#toc-popup .header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: inherit;
  border-bottom: 1px solid var(--main-border-color);
}

#toc-popup .header .label {
  font-family: Lato, 'Microsoft Yahei', sans-serif;
}

#toc-popup button {
  font-size: 0.75rem;
}

#toc-popup button:focus-visible {
  box-shadow: none;
}

#toc-popup ul {
  list-style-type: none;
  padding-left: 0;
}

#toc-popup ul li ul, #toc-popup ul li + li {
  margin-top: 0.25rem;
}

#toc-popup ul li a {
  display: flex;
  line-height: 1.5;
  padding: 0.375rem 0;
  padding-right: 1.125rem;
}

#toc-popup ul li a.toc-link::before {
  display: none;
}

#toc-popup .node-name--H2 {
  padding-left: calc(1.125rem * (2 - 1));
}

#toc-popup .node-name--H3 {
  padding-left: calc(1.125rem * (3 - 1));
}

#toc-popup .node-name--H4 {
  padding-left: calc(1.125rem * (4 - 1));
}

#toc-popup .is-active-link {
  color: var(--toc-highlight) !important;
  font-weight: 600;
}

#toc-popup::-webkit-backdrop {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#toc-popup::backdrop {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#toc-popup::after {
  display: flex;
  content: '';
  position: relative;
  background: linear-gradient(transparent, var(--card-bg) 70%);
  height: 2rem;
}

#toc-popup #toc-popup-content {
  overflow: auto;
  max-height: calc(100vh - 4 * 3rem);
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  margin-bottom: -2rem;
}

/* ===== sidebar ===== */

#sidebar {
  padding-left: 0;
  padding-right: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  overflow-y: auto;
  width: 260px;
  background: var(--sidebar-bg);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#sidebar::-webkit-scrollbar {
  display: none;
}

@media all and (max-width: calc(850px - 1px)) {
#sidebar {
  transition: transform 0.4s ease;
  transform: translateX(-260px);
  -webkit-transform: translateX(-260px);
}
[sidebar-display] #sidebar {
  transform: translateX(0);
}
}

@media all and (min-width: 1650px) {
#sidebar {
  width: 300px;
}
}

#sidebar a {
  color: var(--sidebar-muted-color);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#sidebar #avatar {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  overflow: hidden;
  box-shadow: var(--avatar-border-color) 0 0 0 2px;
  transform: translateZ(0);
}

@media all and (min-width: 576px) {
#sidebar #avatar {
  width: 7rem;
  height: 7rem;
}
}

#sidebar #avatar img {
  transition: transform 0.5s;
}

#sidebar #avatar img:hover {
  transform: scale(1.2);
}

#sidebar .profile-wrapper {
  transition: all 0.3s ease-in-out;
  padding-left: 2.5rem;
  padding-right: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  width: 100%;
}

@media all and (min-width: 850px) {
#sidebar .profile-wrapper {
  margin-top: 3rem;
}
}

@media all and (min-width: 1650px) {
#sidebar .profile-wrapper {
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
  padding-left: 3.5rem;
}
}

#sidebar .site-title {
  transition: all 0.3s ease-in-out;
}

#sidebar .site-title:hover {
  color: var(--sidebar-active-color);
}

#sidebar .site-title {
  font-family: inherit;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: 0.25px;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  color: var(--site-title-color);
}

#sidebar .site-subtitle {
  font-size: 95%;
  color: var(--site-subtitle-color);
  margin-top: 0.25rem;
  word-spacing: 1px;
  height: 3rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#sidebar ul {
  margin-bottom: 2rem;
}

#sidebar ul li.nav-item {
  opacity: 0.9;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media all and (min-width: 1650px) {
#sidebar ul li.nav-item {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}
}

#sidebar ul li.nav-item a.nav-link {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  font-weight: 600;
}

#sidebar ul li.nav-item a.nav-link:hover {
  background-color: var(--sidebar-hover-bg);
}

#sidebar ul li.nav-item a.nav-link i {
  font-size: 95%;
  opacity: 0.8;
  margin-right: 1.5rem;
}

#sidebar ul li.nav-item a.nav-link span {
  font-size: 90%;
  letter-spacing: 0.2px;
}

#sidebar ul li.nav-item.active .nav-link {
  color: var(--sidebar-active-color);
  background-color: var(--sidebar-hover-bg);
}

#sidebar ul li.nav-item.active .nav-link span {
  opacity: 1;
}

#sidebar ul li.nav-item:not(:first-child) {
  margin-top: 0.25rem;
}

#sidebar .sidebar-bottom {
  padding-left: 2rem;
  padding-right: 1rem;
  margin-bottom: 1.5rem;
}

@media all and (min-width: 1650px) {
#sidebar .sidebar-bottom {
  padding-left: 2.75rem;
  margin-bottom: 1.75rem;
}
}

#sidebar .sidebar-bottom > a {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  color: var(--sidebar-btn-color);
  background-color: var(--sidebar-btn-bg);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar .sidebar-bottom > a:not(:focus-visible) {
  box-shadow: var(--sidebar-border-color) 0 0 0 1px;
}

#sidebar .sidebar-bottom > a:hover {
  background-color: var(--sidebar-hover-bg);
}

#sidebar .sidebar-bottom > a:hover {
  color: var(--sidebar-active-color);
}

#sidebar .sidebar-bottom > a {
  transition: all 0.3s ease-in-out;
}

#sidebar .sidebar-bottom > a:not(:last-child) {
  margin-right: 0.8rem;
}

@media all and (min-width: 1650px) {
#sidebar .sidebar-bottom > a:not(:last-child) {
  margin-right: 1rem;
}
}

#sidebar .sidebar-bottom i {
  line-height: 1.75rem;
}

#sidebar .sidebar-bottom #mode-toggle {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  color: var(--sidebar-btn-color);
  background-color: var(--sidebar-btn-bg);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar .sidebar-bottom #mode-toggle:not(:focus-visible) {
  box-shadow: var(--sidebar-border-color) 0 0 0 1px;
}

#sidebar .sidebar-bottom #mode-toggle:hover {
  background-color: var(--sidebar-hover-bg);
}

#sidebar .sidebar-bottom #mode-toggle:hover {
  color: var(--sidebar-active-color);
}

#sidebar .sidebar-bottom #mode-toggle {
  transition: all 0.3s ease-in-out;
}

#sidebar .sidebar-bottom #mode-toggle > i {
  display: none;
}

:root[data-bs-theme='light'][data-theme-persisted]
            #sidebar .sidebar-bottom #mode-toggle > i[data-theme-mode='light'] {
  display: block;
}

:root[data-bs-theme='dark'][data-theme-persisted]
            #sidebar .sidebar-bottom #mode-toggle > i[data-theme-mode='dark'] {
  display: block;
}

:root:not([data-theme-persisted]) #sidebar .sidebar-bottom #mode-toggle > i[data-theme-mode='system'] {
  display: block;
}

@-webkit-keyframes menu-pop {from {opacity: 0;
translate: 0 0.5rem;}
to {opacity: 1;
translate: 0 0;}}

@keyframes menu-pop {from {opacity: 0;
translate: 0 0.5rem;}
to {opacity: 1;
translate: 0 0;}}

#sidebar .sidebar-bottom #mode-toggle + .dropdown-menu {
  background-color: var(--menu-bg);
  border-color: var(--menu-border-color);
  box-shadow: var(--menu-shadow-color) 0 1px 4px;
  border-radius: 0.75rem !important;
}

#sidebar .sidebar-bottom #mode-toggle + .dropdown-menu.show {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  left: -0.25rem !important;
  -webkit-animation: menu-pop 0.2s ease-out;
  animation: menu-pop 0.2s ease-out;
}

#sidebar .sidebar-bottom #mode-toggle + .dropdown-menu .dropdown-item {
  border-radius: 0.5rem;
  color: var(--sidebar-muted-color);
  font-size: 90%;
}

#sidebar .sidebar-bottom #mode-toggle + .dropdown-menu .dropdown-item.active {
  font-weight: 600;
  color: var(--menu-active-color);
}

#sidebar .sidebar-bottom #mode-toggle + .dropdown-menu .dropdown-item.active::after {
  content: '\f00c';
  font: var(--fa-font-solid);
  font-size: 0.75rem;
  color: var(--sidebar-btn-color);
  margin-left: auto;
  padding-left: 1rem;
}

#sidebar .sidebar-bottom #mode-toggle + .dropdown-menu .dropdown-item:active, #sidebar .sidebar-bottom #mode-toggle + .dropdown-menu .dropdown-item:hover, #sidebar .sidebar-bottom #mode-toggle + .dropdown-menu .dropdown-item.active {
  background-color: var(--menu-highlight-bg);
}

#sidebar .sidebar-bottom #mode-toggle + .dropdown-menu .dropdown-item > i {
  color: var(--sidebar-btn-color);
  margin-right: 0.5rem;
}

#sidebar .sidebar-bottom .icon-border {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-left: 0.6rem;
  margin-right: 0.6rem;
  background-color: var(--sidebar-btn-color);
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

@media all and (max-width: calc(850px - 1px)) {
[sidebar-display] #main-wrapper {
  transform: translateX(260px);
}
}

/* ===== topbar ===== */

#topbar-wrapper {
  height: 3rem;
  background-color: var(--topbar-bg);
}

@media all and (max-width: calc(850px - 1px)) {
#topbar-wrapper {
  transition: transform 0.4s ease, top 0.2s ease;
  left: 0;
}
}

#topbar button i {
  color: #999999;
}

#topbar #breadcrumb {
  font-size: 1rem;
  color: var(--text-muted-color);
  padding-left: 0.5rem;
}

#topbar #breadcrumb a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

#topbar #breadcrumb span:not(:last-child)::after {
  content: '›';
  padding: 0 0.3rem;
}

@media all and (max-width: calc(850px - 1px)) {
#topbar #breadcrumb {
  display: none;
}
}

@media all and (min-width: 850px) and (max-width: calc(1200px - 1px)) {
#topbar #breadcrumb {
  width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  white-space: nowrap;
}
}

@media all and (max-width: 768px) {
#topbar {
  max-width: 100%;
}
}

@media all and (max-width: calc(850px - 1px)) {
#topbar {
  max-width: 100%;
}
}

#topbar-title {
  display: none;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: sans-serif;
  color: var(--topbar-text-color);
  text-align: center;
  width: 70%;
  word-break: keep-all;
}

@media all and (max-width: calc(850px - 1px)) {
#topbar-title {
  display: block;
}
}

@media all and (min-width: 850px) {
#topbar-title {
  text-align: left;
}
}

#sidebar-trigger, #search-trigger {
  display: none;
}

@media all and (max-width: calc(850px - 1px)) {
#sidebar-trigger, #search-trigger {
  display: block;
}
}

/* ===== panel ===== */

.access {
  top: 2rem;
  transition: top 0.2s ease-in-out;
  margin-top: 3rem;
}

.access:only-child {
  position: -webkit-sticky;
  position: sticky;
}

.access > section {
  border-left: 1px solid var(--main-border-color);
  padding-left: 1rem;
}

.access > section:not(:first-child) {
  margin-top: 4rem;
}

.access .content {
  font-size: 0.9rem;
}

#panel-wrapper .panel-heading {
  font-family: inherit;
  line-height: inherit;
}

#panel-wrapper .post-tag {
  line-height: 1.05rem;
  font-size: 0.85rem;
  border-radius: 0.8rem;
  padding: 0.3rem 0.5rem;
  margin: 0 0.35rem 0.5rem 0;
}

#panel-wrapper .post-tag:hover {
  transition: all 0.3s ease-in;
}

#panel-wrapper > :last-child {
  margin-bottom: 4rem;
}

@media all and (max-width: calc(1200px - 1px)) {
#panel-wrapper {
  display: none;
}
}

#access-lastmod a {
  color: inherit;
}

#access-lastmod a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

#access-lastmod a {
  border-bottom: none;
}

/* ===== footer ===== */

footer {
  background-color: var(--main-bg);
  height: 5rem;
  border-top: 1px solid var(--main-border-color);
  font-size: 0.8rem;
}

@media all and (max-width: calc(850px - 1px)) {
footer {
  transition: transform 0.4s ease;
  height: 6rem;
  padding: 1.5rem 0;
}
}

footer a {
  color: var(--text-muted-highlight-color);
  font-weight: 600;
}

footer a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

footer em {
  color: var(--text-muted-highlight-color);
  font-weight: 600;
}

footer p {
  text-align: center;
  margin-bottom: 0;
}

/* ===== search ===== */

search {
  display: flex;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--search-border-color);
  background: var(--main-bg);
  padding: 0 0.5rem;
}

search i {
  z-index: 2;
  font-size: 0.9rem;
  color: var(--search-icon-color);
}

form {
  width: 100%;
}

/* Ensure search is hidden on mobile by default */
@media all and (max-width: calc(850px - 1px)) {
  #search {
    display: none;
  }

  /* Display search when the active class is toggled on mobile */
  body.search-active #search,
  #search.active,
  #topbar-wrapper.search-active #search {
    display: flex !important;
  }
}

@media all and (max-width: calc(850px - 1px)) {
  body.search-active #search-trigger,
  body.search-active #topbar-title,
  #topbar-wrapper.search-active #search-trigger,
  #topbar-wrapper.search-active #topbar-title {
    display: none !important;
  }

  body.search-active #search-cancel,
  #topbar-wrapper.search-active #search-cancel {
    display: inline-block !important;
  }

  #search-cancel {
    display: none;
  }
}

@media all and (min-width: 850px) {
search {
  max-width: 200px;
}
}

@media all and (min-width: 1200px) {
search {
  margin-right: 4rem;
}
}

@media all and (min-width: 1650px) {
search {
  margin-right: calc(
      1250px / 4 - 200px - 0.75rem
    );
}
}

#search-result-wrapper {
  display: none;
  height: 100%;
  width: 100%;
  overflow: auto;
}

#search-result-wrapper .content {
  margin-top: 2rem;
}

@media all and (max-width: calc(850px - 1px)) {
#search-result-wrapper {
  width: 100%;
}
#search-result-wrapper .content {
  letter-spacing: 0;
}
}

@media all and (min-width: 850px) {
#search-result-wrapper {
  max-width: 1250px;
  justify-content: start !important;
}
}

#search-results {
  padding-bottom: 3rem;
}

@media all and (min-width: 850px) and (max-width: calc(1200px - 1px)) {
#search-results > div {
  max-width: 700px;
}
}

#search-results a {
  font-size: 1.4rem;
  line-height: 1.5rem;
}

#search-results a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

#search-results a {
  color: var(--link-color);
  border-bottom: none;
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
}

#search-results > article {
  width: 100%;
}

#search-results > article:not(:last-child) {
  margin-bottom: 1rem;
}

@media all and (min-width: 1200px) {
#search-results > article {
  width: 45%;
}
#search-results > article:nth-child(odd) {
  margin-right: 1.5rem;
}
#search-results > article:nth-child(even) {
  margin-left: 1.5rem;
}
#search-results > article:last-child:nth-child(odd) {
  position: relative;
  right: 24.3%;
}
}

#search-results > article h2 {
  line-height: 2.5rem;
}

#search-results > article i {
  color: #818182;
  margin-right: 0.15rem;
  font-size: 80%;
}

#search-results > article > p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  white-space: break-spaces;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

#search-cancel {
  color: var(--link-color);
  display: none;
  white-space: nowrap;
  cursor: pointer;
}

#search-input {
  background: center;
  border: 0;
  border-radius: 0;
  padding: 0.18rem 0.3rem;
  color: var(--text-color);
  height: auto;
}

#search-input:focus {
  box-shadow: none;
}

@media all and (min-width: 1200px) {
#search-input {
  transition: all 0.3s ease-in-out;
}
}

#search-hints {
  padding: 0 1rem;
}

@media all and (min-width: 850px) {
#search-hints {
  display: none;
}
}

#search-hints h4 {
  margin-bottom: 1.5rem;
}

#search-hints .post-tag {
  display: inline-block;
  line-height: 1rem;
  font-size: 1rem;
  background: var(--search-tag-bg);
  border: none;
  padding: 0.5rem;
  margin: 0 1.25rem 1rem 0;
}

#search-hints .post-tag::before {
  content: '#';
  color: var(--text-muted-color);
  padding-right: 0.2rem;
}

#search-hints .post-tag {
  color: var(--link-color);
}

/* ===== home ===== */

#post-list {
  margin-top: 2rem;
}

@media all and (min-width: 850px) {
#post-list {
  margin-top: 2.5rem;
}
}

#post-list .card-wrapper:hover {
  text-decoration: none;
}

#post-list .card-wrapper:not(:last-child) {
  margin-bottom: 1.25rem;
}

#post-list .card {
  border: 0;
  background: none;
}

#post-list .card .preview-img {
  border-radius: 10px 10px 0 0;
}

@media all and (min-width: 768px) {
#post-list .card .preview-img {
  border-radius: 0 10px 10px 0;
}
}

#post-list .card .preview-img img {
  border-radius: 10px 10px 0 0;
}

@media all and (min-width: 768px) {
#post-list .card .preview-img img {
  border-radius: 0 10px 10px 0;
}
}

#post-list .card .card-body {
  height: 100%;
  padding: 1rem;
}

@media all and (min-width: 768px) {
#post-list .card .card-body {
  padding: 1.75rem 1.75rem 1.25rem;
}
}

#post-list .card .card-body .card-title {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--heading-color) !important;
  font-size: 1.25rem;
}

@media all and (min-width: 768px) {
#post-list .card .card-body .card-text {
  display: inherit !important;
}
}

#post-list .card .card-body .card-text.content {
  color: var(--text-muted-color) !important;
}

#post-list .card .card-body .card-text.content p {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  margin: 0;
}

#post-list .card .card-body .post-meta {
  color: var(--text-muted-color) !important;
}

#post-list .card .card-body .post-meta i:not(:first-child) {
  margin-left: 1.5rem;
}

@media all and (min-width: 768px) {
#post-list .card .card-body .post-meta i:not(:first-child) {
  margin-left: 1.75rem;
}
}

#post-list .card .card-body .post-meta em {
  font-style: normal;
  color: inherit;
}

#post-list .card .card-body .post-meta > div:first-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  color: var(--text-color);
  font-family: Lato, sans-serif;
  justify-content: space-evenly;
}

@media all and (min-width: 850px) {
.pagination {
  font-size: 0.85rem;
  justify-content: center;
}
}

.pagination a:hover {
  text-decoration: none;
}

@media all and (max-width: calc(850px - 1px)) {
.pagination .page-item:not(:first-child):not(:last-child) {
  display: none;
}
}

@media all and (min-width: 850px) {
.pagination .page-item:not(:last-child) {
  margin-right: 0.7rem;
}
}

.pagination .page-item .page-link {
  color: var(--btn-patinator-text-color);
  padding: 0 0.6rem;
  border-radius: 0.5rem;
  border: 0;
  background-color: inherit;
}

.pagination .page-item.active .page-link {
  background-color: var(--btn-paginator-hover-color);
}

.pagination .page-item:not(.active) .page-link:hover {
  box-shadow: inset var(--btn-border-color) 0 0 0 1px;
}

.pagination .page-item.disabled {
  cursor: not-allowed;
}

.pagination .page-item.disabled .page-link {
  color: rgb(108 117 125 / 57%);
}

@media all and (min-width: 850px) {
.pagination .page-index {
  display: none;
}
}

/* ===== post ===== */

header .post-desc {
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

header .post-meta span + span::before {
  content: '\2022';
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

header .post-meta em, header .post-meta time {
  color: var(--text-muted-highlight-color);
  font-weight: 600;
}

header .post-meta em a {
  color: inherit;
}

header h1 + .post-meta {
  margin-top: 1.5rem;
}

.post-tail-wrapper {
  font-size: 0.85rem;
  margin-top: 6rem;
  border-bottom: 1px double var(--main-border-color);
}

.post-tail-wrapper .license-wrapper {
  line-height: 1.2rem;
}

.post-tail-wrapper .license-wrapper > a {
  color: var(--text-muted-highlight-color);
  font-weight: 600;
}

.post-tail-wrapper .license-wrapper > a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

.post-tail-wrapper .license-wrapper span:last-child {
  font-size: 0.85rem;
}

.post-tail-wrapper .post-meta a:not(:hover) {
  border-bottom: 1px solid var(--link-underline-color);
}

.post-tail-wrapper .share-wrapper {
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.post-tail-wrapper .share-wrapper .share-icons {
  display: flex;
}

.post-tail-wrapper .share-wrapper .share-icons i {
  color: var(--btn-share-color);
  font-size: 1.125rem;
}

.post-tail-wrapper .share-wrapper .share-icons > * {
  font-size: 1.125rem;
  margin-left: 0.5rem;
}

.post-tail-wrapper .share-wrapper .share-icons > *:hover i {
  color: var(--btn-share-hover-color) !important;
}

.post-tail-wrapper .share-wrapper .share-icons button {
  padding: 0;
  border: none;
  line-height: inherit;
  cursor: pointer;
}

@media all and (max-width: 576px) {
.post-tail-bottom {
  flex-wrap: wrap-reverse !important;
}
.post-tail-bottom > div:first-child {
  width: 100%;
  margin-top: 1rem;
}
}

.share-mastodon {
  --wc-stm-font-family: 'Source Sans Pro', 'Microsoft Yahei', sans-serif;
  --wc-stm-dialog-background-color: var(--card-bg);
  --wc-stm-form-button-border: 1px solid var(--btn-border-color);
  --wc-stm-form-submit-background-color: var(--sidebar-btn-bg);
  --wc-stm-form-cancel-background-color: var(--sidebar-btn-bg);
  --wc-stm-form-button-background-color-hover: #007bff;
  --wc-stm-form-button-color-hover: white;
  font-size: 1rem;
}

.post-tags {
  line-height: 2rem;
}

.post-tags .post-tag:hover {
  color: var(--link-color);
  background: var(--tag-hover);
  border-color: var(--tag-hover);
  transition: background 0.35s ease-in-out;
}

.post-edit {
  line-height: 1.2rem;
}

.post-edit > a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
}

@media all and (max-width: calc(850px - 1px)) {
.post-navigation {
  padding-left: 0;
  padding-right: 0;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
}

.post-navigation .btn {
  width: 50%;
  position: relative;
  border-color: var(--btn-border-color);
}

.post-navigation .btn:not(:hover) {
  color: var(--link-color);
}

.post-navigation .btn:hover:not(.disabled)::before {
  color: whitesmoke;
}

.post-navigation .btn.disabled {
  width: 50%;
  position: relative;
  border-color: var(--btn-border-color);
  pointer-events: auto;
  cursor: not-allowed;
  background: none;
  color: gray;
}

.post-navigation .btn.btn-outline-primary.disabled:focus {
  box-shadow: none;
}

.post-navigation .btn::before {
  color: var(--text-muted-color);
  font-size: 0.65rem;
  text-transform: uppercase;
  content: attr(aria-label);
}

.post-navigation .btn:first-child {
  border-radius: 10px 0 0 10px;
  left: 0.5px;
}

.post-navigation .btn:last-child {
  border-radius: 0 10px 10px 0;
  right: 0.5px;
}

.post-navigation p {
  font-size: 1.1rem;
  line-height: 1.5rem;
  margin-top: 0.3rem;
  white-space: normal;
}

@media (hover: hover) {
.post-navigation .btn, .post-navigation .btn::before {
  transition: all 0.35s ease-in-out;
}
}

@-webkit-keyframes fade-up {from {opacity: 0;
margin-top: 4rem;}
to {opacity: 1;}}

@keyframes fade-up {from {opacity: 0;
margin-top: 4rem;}
to {opacity: 1;}}

#toc-wrapper {
  top: 0;
  transition: top 0.2s ease-in-out;
  overflow-y: auto;
  max-height: 100vh;
  scrollbar-width: none;
  margin-top: 2rem;
}

#toc-wrapper:not(.invisible) {
  -webkit-animation: fade-up 0.8s;
  animation: fade-up 0.8s;
}

#toc-wrapper ul {
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.25;
  padding-left: 0;
}

#toc-wrapper ul li a {
  padding: 0.4rem 0 0.4rem 1.25rem;
}

#toc-wrapper ul .toc-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#toc-wrapper ul .toc-link:hover {
  color: var(--toc-highlight);
  text-decoration: none;
}

#toc-wrapper ul .toc-link::before {
  display: none;
}

#toc-wrapper ul .is-active-link {
  color: var(--toc-highlight) !important;
  font-weight: 600;
}

#toc-wrapper ul .is-active-link::before {
  display: inline-block;
  width: 1px;
  height: 1.25rem;
  background-color: var(--toc-highlight) !important;
}

#toc-wrapper ul ul {
  padding-left: 0.75rem;
}

.toc-border-cover {
  content: '';
  display: block;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 3rem;
  background: linear-gradient(var(--main-bg) 50%, transparent);
  margin-bottom: -4rem;
}

#toc-wrapper::before {
  content: '';
  display: block;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 3rem;
  background: linear-gradient(var(--main-bg) 50%, transparent);
}

#toc-wrapper::after {
  content: '';
  position: fixed;
  bottom: 0;
  width: 15%;
  height: 2.25rem;
  margin-left: -1px;
  background: linear-gradient(transparent, var(--main-bg) 70%);
}

#toc-wrapper > * {
  border-left: 1px solid var(--main-border-color);
}

#toc-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -1rem;
  height: 3rem;
  background: var(--main-bg);
  border-bottom: 1px solid var(--main-border-color);
  transition: all 0.2s ease-in-out;
}

#toc-bar button i {
  color: #999999;
}

@media all and (min-width: 1200px) {
#toc-bar {
  display: none !important;
}
}

#toc-bar .label {
  color: var(--heading-color);
  font-weight: 400;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
  scroll-margin-top: 3.5rem;
  margin-left: 0.375rem;
  padding: 0 0.75rem;
  color: inherit;
}

#toc-bar.invisible {
  top: -3rem;
  transition: none;
}

#toc-solo-trigger {
  color: var(--text-muted-color);
  border-color: var(--btn-border-color);
  border-radius: 10px;
}

@media all and (min-width: 1200px) {
#toc-solo-trigger {
  display: none !important;
}
}

#toc-solo-trigger .label {
  font-size: 1rem;
  font-family: Lato, 'Microsoft Yahei', sans-serif;
}

#toc-solo-trigger:hover {
  box-shadow: none;
  background: none;
}

@-webkit-keyframes slide-in {from {opacity: 0.7;
transform: translateY(-3rem);}
to {opacity: 1;
transform: translateY(0);}}

@keyframes slide-in {from {opacity: 0.7;
transform: translateY(-3rem);}
to {opacity: 1;
transform: translateY(0);}}

@-webkit-keyframes slide-out {0% {transform: translateY(0);
opacity: 1;}
100% {transform: translateY(-3rem);
opacity: 0;}}

@keyframes slide-out {0% {transform: translateY(0);
opacity: 1;}
100% {transform: translateY(-3rem);
opacity: 0;}}

#related-posts time {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted-color);
}

#related-posts p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  white-space: break-spaces;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#related-posts .card h4 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#disqus_thread {
  min-height: 8.5rem;
}

.utterances {
  max-width: 100%;
  min-height: 269px;
}

.share-label::after {
  content: ':';
}

@media all and (max-width: 768px) {
.content > p > img {
  max-width: calc(100% + 1rem);
}
}

@media all and (min-width: 1200px) {
h2, h3, h4 {
  scroll-margin-top: 2rem;
}
}

/* ===== categories ===== */

.categories {
  margin-bottom: 2rem;
  border-color: var(--categories-border);
}

.categories.card, .categories .list-group {
  border-radius: 10px;
}

.categories .card-header {
  padding: 0.75rem;
  border-radius: calc(10px - 1px);
  border-bottom: 0;
}

.categories .card-header.hide-border-bottom {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.categories i {
  color: gray;
  font-size: 86%;
}

.categories .list-group-item {
  border-left: none;
  border-right: none;
  padding-left: 2rem;
}

.categories .list-group-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.categories .list-group-item:last-child {
  border-bottom: 0;
}

.category-trigger {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  text-align: center;
  color: #6c757d !important;
}

.category-trigger i {
  position: relative;
  height: 0.7rem;
  width: 1rem;
  transition: transform 300ms ease;
}

.category-trigger:hover i {
  color: var(--categories-icon-hover-color);
}

@media (hover: hover) {
.category-trigger:hover {
  background-color: var(--categories-hover-bg);
}
}

.rotate {
  transform: rotate(-90deg);
}

/* ===== tags ===== */

.tag {
  border-radius: 0.7em;
  padding: 6px 8px 7px;
  margin-right: 0.8rem;
  line-height: 3rem;
  letter-spacing: 0;
  border: 1px solid var(--tag-border) !important;
  box-shadow: 0 0 3px 0 var(--tag-shadow);
}

.tag span {
  margin-left: 0.6em;
  font-size: 0.7em;
  font-family: Oswald, sans-serif;
}

@media all and (max-width: calc(850px - 1px)) {
#tags {
  justify-content: center !important;
}
}

/* ===== archives ===== */

#archives {
  letter-spacing: 0.03rem;
}

@media all and (max-width: calc(576px - 1px)) {
#archives {
  margin-top: -1rem;
}
#archives ul {
  letter-spacing: 0;
}
}

#archives .year {
  height: 3.5rem;
  font-size: 1.5rem;
  position: relative;
  left: 2px;
  margin-left: -4px;
}

#archives .year::before {
  content: '';
  width: 4px;
  position: relative;
  float: left;
  background-color: var(--timeline-color);
  height: 72px;
  left: 79px;
  bottom: 16px;
}

#archives .year:first-child::before {
  content: '';
  width: 4px;
  position: relative;
  float: left;
  background-color: var(--timeline-color);
  height: 32px;
  top: 24px;
}

#archives .year::after {
  content: '';
  display: inline-block;
  position: relative;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  left: 21.5px;
  border: 3px solid;
  background-color: var(--timeline-year-dot-color);
  border-color: var(--timeline-node-bg);
  box-shadow: 0 0 2px 0 #c2c6cc;
  z-index: 1;
}

#archives ul li {
  font-size: 1.1rem;
  line-height: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#archives ul li:nth-child(odd) {
  background-color: var(--main-bg, #ffffff);
  background-image: linear-gradient(
          to left,
          #ffffff,
          #fbfbfb,
          #fbfbfb,
          #fbfbfb,
          #ffffff
        );
}

#archives ul li::before {
  content: '';
  width: 4px;
  position: relative;
  float: left;
  background-color: var(--timeline-color);
  top: 0;
  left: 77px;
  height: 3.1rem;
}

#archives ul:last-child li:last-child::before {
  height: 1.5rem;
}

#archives .date {
  white-space: nowrap;
  display: inline-block;
  position: relative;
  right: 0.5rem;
}

#archives .date.month {
  width: 1.4rem;
  text-align: center;
}

#archives .date.day {
  font-size: 85%;
  font-family: Lato, sans-serif;
}

#archives a {
  margin-left: 2.5rem;
  position: relative;
  top: 0.1rem;
}

#archives a:hover {
  border-bottom: none;
}

#archives a::before {
  content: '';
  display: inline-block;
  position: relative;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  float: left;
  top: 1.35rem;
  left: 71px;
  background-color: var(--timeline-node-bg);
  box-shadow: 0 0 3px 0 #c2c6cc;
  z-index: 1;
}

/* ===== category-tag ===== */

.dash {
  margin: 0 0.5rem 0.6rem 0.5rem;
  border-bottom: 2px dotted var(--dash-color);
}

#page-category ul > li, #page-tag ul > li {
  line-height: 1.5rem;
  padding: 0.6rem 0;
}

#page-category ul > li::before, #page-tag ul > li::before {
  background: #999999;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
  content: '';
  position: relative;
  top: 0.6rem;
  margin-right: 0.5rem;
}

@media all and (max-width: calc(576px - 1px)) {
#page-category ul > li::before, #page-tag ul > li::before {
  margin: 0 0.5rem;
}
}

#page-category ul > li > a, #page-tag ul > li > a {
  border-bottom: none;
  font-size: 1.1rem;
}

@media all and (max-width: calc(576px - 1px)) {
#page-category ul > li > a, #page-tag ul > li > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
}

#page-tag h1 > i {
  font-size: 1.2rem;
}

#page-category h1 > i {
  font-size: 1.25rem;
}

#page-category a:hover, #page-tag a:hover, #access-lastmod a:hover {
  color: #d2603a !important;
  border-bottom: 1px solid #d2603a;
  text-decoration: none;
  margin-bottom: -1px;
}

/* WordPress core classes and accessibility rules are maintained in style.css */