@import url("https://fontsapi.zeoseven.com/2/main/result.css");

:root {
  --accent: #f22f27;
  --accent-hover: #d61a1a;
  --accent-contrast: #ffffff;
  --accent-soft: #fff3f0;
}

.btn-fab {
  position: fixed;
  right: 14px;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
#btn-toc {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
#btn-theme {
  bottom: 72px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body {
  font-family: "LXGW ZhenKai", "Helvetica Neue", Helvetica, Arial, "Liberation Sans",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC",
    "Source Han Sans CN", "Microsoft YaHei", "Wenquanyi Micro Hei",
    "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp",
    sans-serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  color: #404040;
  letter-spacing: 0.008em;
  background: #fff;
}

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

a:hover {
  color: var(--accent-hover);
}

/* markdown content styles */
blockquote {
  margin-top: 5px;
  margin-bottom: 5px;
  padding-left: 1em;
  margin-left: 0px;
  border-left: 3px solid #eee;
  color: #757575;
}

hr {
  display: block;
  border: none;
  height: 2px;
  margin: 40px auto;
  background: #eee;
}

table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  line-height: 1.5em;
}

th,
td {
  text-align: left;
  padding-right: 20px;
  vertical-align: top;
}

table td,
td {
  border-spacing: none;
  border-style: solid;
  padding: 10px 15px;
  border-width: 1px 0 0 0;
}
thead th,
th {
  text-align: left;
  padding: 10px 15px;
  height: 20px;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  cursor: default;
  white-space: nowrap;
  border: 1px solid #dadadc;
}

tr > td {
  border: 1px solid #dadadc;
}

tr:nth-child(odd) > td {
  background: #fcfcfc;
}

h1,
h2,
h3 {
  font-weight: 400;
}
p {
  margin-block-start: 1.5em;
  margin-block-end: 1.5em;
}
p,
pre {
  word-break: normal;
  overflow-wrap: anywhere;
}
.markdown-image img {
  max-width: 100%;
}
.anchor {
  font-size: 100%;
  visibility: hidden;
  color: silver;
}
h1:hover a,
h2:hover a,
h3:hover a,
h4:hover a {
  visibility: visible;
}
.highlight {
  max-width: 100%;
  overflow-x: auto;
  background: #f6f8fa;
  border-radius: 8px;
}

.highlight pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  background: transparent;
}
p code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier,
    monospace;
  font-size: inherit;
  background-color: rgba(0, 0, 0, 0.06);
  padding: 0 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px 2px;
  line-height: inherit;
  word-wrap: break-word;
  text-indent: 0;
}
pre code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier,
    monospace;
}

/* navigation */

nav.navigation {
  padding: 20px 20px 0;
  background: #fff;
  background: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  text-align: right;
  z-index: 100;
}

nav.navigation a {
  top: 8px;
  right: 6px;
  padding: 8px 12px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.35;
  border-radius: 3px;
}
nav.navigation a:hover {
  color: var(--accent-hover);
}

nav.navigation a.button {
  background: var(--accent);
  color: var(--accent-contrast);
  margin-left: 12px;
}
@media (max-width: 700px) {
  nav.navigation {
    padding: 20px 10px 0 0;
    background: #fff;
    background: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    text-align: right;
    z-index: 100;
  }
  nav.navigation a {
    top: 8px;
    right: 6px;
    padding: 8px 8px;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.35;
    border-radius: 3px;
  }
}

@media (max-width: 324px) {
  nav.navigation a.button {
    display: none;
  }
}

/* toc */
.single-body {
  display: flex;
  gap: 24px;
}
.single-body .content {
  flex: 1 1 auto;
  min-width: 0;
}
.toc {
  flex: 0 0 320px;
  position: sticky;
  top: 84px;
  z-index: 2;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 6px 0 10px 0;
  border-radius: 8px;
}
.toc details summary {
  cursor: zoom-in;
  margin-inline-start: 14px;
  font-weight: 500;
  font-size: 13px;
}
.toc details[open] summary {
  cursor: zoom-out;
}
.toc #TableOfContents {
  margin-left: 8px;
}
.toc #TableOfContents a {
  font-size: 11px;
  line-height: 1.5;
}
.toc #TableOfContents a.is-active { color: var(--accent-hover); font-weight: 600; }
.toc ul {
  padding-inline-start: 16px;
  white-space: nowrap;
  overflow: hidden;
}

.toc .nav-link {
  text-overflow: ellipsis;
  overflow: hidden;
}

/* TOC drawer */
.toc-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 2147483645;
}

.toc-backdrop[hidden] { display: none !important; }

.toc-drawer {
  display: none;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(82vw, 360px);
  max-width: 420px;
  background: #fff;
  z-index: 2147483646;
  flex-direction: column;
  box-shadow: -2px 0 12px rgba(0,0,0,.2);
}

.toc-drawer[hidden] { display: none !important; }
.toc-drawer[aria-hidden="false"] { display: flex; }

.toc-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.toc-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.toc-drawer-body {
  overflow: auto;
  padding: 10px 12px 20px 12px;
}

/* comment */
#comment {
  margin-top: 64px;
}

/* footer */
#footer {
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
  color: #bbbbbb;
  font-size: 14px;
}
#footer .copyright {
  margin: 20px auto;
  font-size: 15px;
}
.powerby {
  margin: 20px auto;
  font-size: 13px;
}
#footer .split {
  cursor: pointer;
}
#footer .split:hover path {
  fill: var(--accent);
  transition: 0.7s ease-out;
  cursor: pointer;
}

#social a {
  margin: 0 4px;
}

/* main content */
.main {
  width: 100%;
  margin: 0 auto;
}

/* profile  */

.profile {
  margin: 60px auto 0 auto;
  text-align: center;
}

.profile .avatar {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.profile h1 {
  font-weight: 400;
  letter-spacing: 0px;
  font-size: 20px;
  color: #404040;
  margin-bottom: 0;
  margin-top: 0;
}

.profile h2 {
  font-size: 20px;
  font-weight: 300;
  color: #757575;
  margin-top: 0;
}

/* index post list */
#list-page {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
}

#list-page .item {
  margin: 12px 0;
}

#list-page .title {
  display: inline-block;
  color: #404040;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  width: 80%;
}

#list-page .title a {
  color: #404040;
  display: block;
}

#list-page .title a:hover {
  color: var(--accent-hover);
}

#list-page .date {
  width: 20%;
  float: right;
  text-align: right;
  position: relative;
  top: 1px;
  color: #bbb;
}

#list-page .summary {
  color: #757575;
  margin-top: 12px;
  word-break: normal;
  overflow-wrap: anywhere;
  margin-bottom: 36px;
}

#list-page .cover {
  width: 100px;
  height: 100px;
  background: #fff;
}

#list-page .cover img {
  width: 100%;
  text-align: center;
}

#list-page .pagination {
  margin: 48px 0;
  width: 100%;
  height: 32px;
  margin-top: 48px;
}

#list-page .pagination .pre {
  float: left;
}
#list-page .pagination .next {
  float: right;
}

/* single page */
#single {
  max-width: 1200px;
  margin: 60px auto 0 auto;
  padding: 0 32px;
}

#single .title {
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
}

@media (max-width: 700px) {
  #single {
    padding: 0 18px;
    margin: 20px auto 0 auto;
  }
  #single .title {
    font-size: 24px;
    line-height: 32px;
  }

  .single-body { display: block; }
  .toc { display: none; }
  .toc-drawer {
    width: 82vw;
  }
}

#single .tip {
  text-align: center;
  color: #8c8c8c;
  margin-top: 18px;
  font-size: 14px;
}
#single .tip .split {
  margin: 0 4px;
}

#single .content {
  margin-top: 36px;
}

#single .tags {
  margin-top: 24px;
}
#single .tags a {
  background: var(--accent-soft);
  padding: 4px 7px;
  color: var(--accent);
  font-size: 14px;
  margin-right: 3px;
}
#single .tags a:hover {
  color: var(--accent-hover);
}

#archive {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
}

#archive .total {
  font-size: 15px;
}

#archive .group {
  margin: 24px auto;
}
#archive .group .key {
  font-size: 20px;
  margin-bottom: 12px;
}
#archive .group .value {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
#archive .group .value .date {
  display: inline-block;
  color: #999;
  min-width: 60px;
}
#archive .group .value .title {
  display: inline;
}
#archive .group .value .title a {
  color: #404040;
}
#archive .group .value .title a:hover {
  color: var(--accent-hover);
}
#archive .group .value .tags {
  display: inline;
  margin-left: 7px;
}
#archive .group .value .tags a {
  background: var(--accent-soft);
  padding: 4px 7px;
  color: var(--accent);
  font-size: 14px;
  margin-right: 3px;
}
#archive .group .value .tags a:hover {
  color: var(--accent-hover);
}

/* taxonomy */
#tags {
  max-width: 700px;
  margin: 48px auto 0 auto;
  padding: 0 12px;
  text-align: center;
}
#tags .tag {
  display: inline-block;
  margin: 7px 7px;
}
@media (max-width: 700px) {
  #tags {
    margin: 0 auto 0 auto;
  }
  #tags .tag {
    display: inline-block;
    margin: 4px 5px;
  }
}

#tags .tag a {
  background: var(--accent-soft);
  padding: 4px 7px;
  color: var(--accent);
  font-size: 14px;
  margin-right: 3px;
}
#tags .tag a:hover {
  color: var(--accent-hover);
}

/* section page */
#section {
  max-width: 580px;
  margin: 48px auto 0 auto;
  padding: 0 12px;
}

/* 404 page */
#page-404 {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
}
#page-404 .item {
  margin: 12px 0 0 0;
}

#page-404 .title {
  display: inline-block;
  color: #404040;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  width: 80%;
}

#page-404 .text {
  text-align: center;
  margin-top: 60px;
}

#page-404 .read-more {
  font-weight: 300;
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 12px;
}

#page-404 .date {
  width: 20%;
  float: right;
  text-align: right;
  position: relative;
  top: 1px;
  color: #bbb;
}

/* dark theme overrides */
html.force-dark {
  color-scheme: dark;
  --accent: #ff6b66;
  --accent-hover: #ff938f;
  --accent-contrast: #0f1115;
  --accent-soft: rgba(255,107,102,0.18);
}

html.force-dark,
html.force-dark body {
  background-color: #0f1115;
  color: #e7e7e7;
}

html.force-dark a {
  color: var(--accent);
}

html.force-dark a:hover {
  color: var(--accent-hover);
}

html.force-dark .btn-fab {
  border-color: #2f3747;
  background: #1f2533;
  color: #e7e7e7;
  box-shadow: 0 12px 32px rgba(5,8,15,.55);
}

html.force-dark nav.navigation {
  background: rgba(15,17,21,0.9);
}

html.force-dark nav.navigation a {
  color: var(--accent);
}

html.force-dark nav.navigation a:hover {
  color: var(--accent-hover);
}

html.force-dark nav.navigation a.button {
  background: var(--accent);
  color: var(--accent-contrast);
}

html.force-dark blockquote {
  border-left-color: #3f4656;
  color: #b3bac7;
}

html.force-dark hr {
  background: #2a2f3a;
}

html.force-dark table,
html.force-dark table td,
html.force-dark td {
  border-color: #2a2f3a;
}

html.force-dark thead th,
html.force-dark th {
  border-color: #2a2f3a;
  color: #dce1f4;
  background: #1f2533;
}

html.force-dark tr:nth-child(odd) > td {
  background: #1b212f;
}

html.force-dark p,
html.force-dark li,
html.force-dark .content {
  color: #e7e7e7;
}

html.force-dark h1,
html.force-dark h2,
html.force-dark h3,
html.force-dark h4,
html.force-dark h5,
html.force-dark h6 {
  color: #e7e7e7;
}

html.force-dark .tip {
  color: #9aa0a6;
}

html.force-dark #single .title,
html.force-dark #list-page .title,
html.force-dark #page-404 .title {
  color: #e7e7e7;
}

html.force-dark #list-page .date,
html.force-dark #page-404 .date {
  color: #80879a;
}

html.force-dark #list-page .summary,
html.force-dark #archive .group .value .title a,
html.force-dark #archive .group .value .date {
  color: #b3bac7;
}

html.force-dark #single .tags a,
html.force-dark #archive .group .value .tags a,
html.force-dark #tags .tag a {
  background: var(--accent-soft);
  color: var(--accent);
}

html.force-dark #list-page .cover {
  background: #1f2533;
}

html.force-dark #single .tags a:hover,
html.force-dark #archive .group .value .tags a:hover,
html.force-dark #tags .tag a:hover {
  color: var(--accent-hover);
  background: rgba(255,107,102,0.32);
}

html.force-dark p code,
html.force-dark pre code {
  background-color: #161a22;
  border-color: #2a2f3a;
  color: #e7e7e7;
}

html.force-dark pre {
  background: #161a22;
  border-color: #2a2f3a;
}

html.force-dark .highlight {
  background: #161b22;
}

html.force-dark .chroma {
  background: #161b22;
  color: #c9d1d9;
}

html.force-dark .chroma .hl {
  background: rgba(255, 214, 51, 0.18);
}

html.force-dark .chroma .ln {
  color: #6e7681;
}

html.force-dark .chroma .c,
html.force-dark .chroma .ch,
html.force-dark .chroma .cm,
html.force-dark .chroma .c1,
html.force-dark .chroma .cs,
html.force-dark .chroma .cp {
  color: #8b949e;
  font-style: italic;
}

html.force-dark .chroma .k,
html.force-dark .chroma .kc,
html.force-dark .chroma .kd,
html.force-dark .chroma .kn,
html.force-dark .chroma .kp,
html.force-dark .chroma .kr,
html.force-dark .chroma .kt {
  color: #ff7b72;
}

html.force-dark .chroma .o,
html.force-dark .chroma .ow {
  color: #ff7b72;
}

html.force-dark .chroma .m,
html.force-dark .chroma .mb,
html.force-dark .chroma .mf,
html.force-dark .chroma .mh,
html.force-dark .chroma .mi,
html.force-dark .chroma .il,
html.force-dark .chroma .mo {
  color: #79c0ff;
}

html.force-dark .chroma .s,
html.force-dark .chroma .sa,
html.force-dark .chroma .sb,
html.force-dark .chroma .sc,
html.force-dark .chroma .dl,
html.force-dark .chroma .sd,
html.force-dark .chroma .s1,
html.force-dark .chroma .s2,
html.force-dark .chroma .se,
html.force-dark .chroma .sh,
html.force-dark .chroma .si,
html.force-dark .chroma .sr,
html.force-dark .chroma .ss,
html.force-dark .chroma .sx {
  color: #a5d6ff;
}

html.force-dark .chroma .na,
html.force-dark .chroma .nb,
html.force-dark .chroma .bp,
html.force-dark .chroma .nv,
html.force-dark .chroma .vc,
html.force-dark .chroma .vg,
html.force-dark .chroma .vi {
  color: #c9d1d9;
}

html.force-dark .chroma .nc,
html.force-dark .chroma .nn,
html.force-dark .chroma .nf,
html.force-dark .chroma .fm {
  color: #d2a8ff;
}

html.force-dark .chroma .nt {
  color: #ff7b72;
}

html.force-dark .chroma .gd {
  color: #ffa198;
  background: rgba(219, 109, 121, 0.25);
}

html.force-dark .chroma .gi {
  color: #7ee787;
  background: rgba(63, 185, 80, 0.2);
}


html.force-dark #footer {
  color: #9aa0a6;
}

html.force-dark #footer .copyright {
  color: #b3bac7;
}

html.force-dark .toc {
  background: #151a24;
  border: 1px solid #252b38;
}

html.force-dark .toc-drawer {
  background: #1f2533;
  box-shadow: -2px 0 24px rgba(5,8,15,.55);
  color: #e7e7e7;
}

html.force-dark .toc-drawer-header {
  border-bottom-color: #2a2f3a;
}

html.force-dark .toc-drawer a {
  color: var(--accent);
}

html.force-dark .toc-drawer a.is-active {
  color: var(--accent-hover);
}

html.force-dark .toc-backdrop {
  background: rgba(0,0,0,.6);
}

html.force-dark .markmap svg {
  background: transparent;
}

html.force-dark .markmap svg text {
  fill: #f5f7ff;
}

html.force-dark .markmap svg path {
  stroke: rgba(255,107,102,0.45);
}

html.force-dark .markmap svg circle {
  fill: rgba(255,107,102,0.2);
  stroke: rgba(255,107,102,0.55);
}

html.force-dark .mm-toolbar {
  background: #1f2533;
  color: #e7e7e7;
  border-color: #2a2f3a;
}

html.force-dark .mm-toolbar .mm-toolbar-item {
  color: inherit;
}
.highlight pre code {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  color: inherit;
}

.chroma {
  background: #f6f8fa;
  color: #24292e;
  font-size: 0.95em;
  line-height: 1.55;
}

.chroma .hl {
  background: rgba(255, 229, 100, 0.25);
  display: block;
}

.chroma .line {
  display: flex;
}

.chroma .ln {
  color: #959da5;
  margin-right: 16px;
}

.chroma .err {
  color: #d73a49;
  background-color: rgba(215, 58, 73, 0.12);
}

.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs,
.chroma .cp {
  color: #6a737d;
  font-style: italic;
}

.chroma .k,
.chroma .kc,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
.chroma .kt {
  color: #d73a49;
}

.chroma .o,
.chroma .ow {
  color: #d73a49;
}

.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
  color: #005cc5;
}

.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s1,
.chroma .s2,
.chroma .se,
.chroma .sh,
.chroma .si,
.chroma .sr,
.chroma .ss,
.chroma .sx {
  color: #032f62;
}

.chroma .na,
.chroma .nb,
.chroma .bp,
.chroma .nv,
.chroma .vc,
.chroma .vg,
.chroma .vi {
  color: #24292e;
}

.chroma .nc,
.chroma .nn,
.chroma .nf,
.chroma .fm {
  color: #6f42c1;
}

.chroma .nt {
  color: #d73a49;
}

.chroma .gd {
  color: #b31d28;
  background: rgba(203, 36, 49, 0.15);
}

.chroma .gi {
  color: #22863a;
  background: rgba(34, 134, 58, 0.15);
}
