@view-transition { navigation: auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.75;
  color: #504e49;
  background-color: #f5f4ed;
}
header h1 { text-align: left; }
header a, footer a, .tags a { text-decoration: none; }
@media (min-width: 768px) {
  main {
    box-shadow: 0 .4em 1em #c8c8c8;
    background: #fcfcfc;
    margin: 1em auto;
    padding: 1.5em;
    font-size: 1.1em;
  }
}
footer { text-align: end; }
h1 {
  font-size: 2em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
  text-align: center;
}
h2 { font-size: 1.5em; }
h2:before { content: "# "; color: #4caf50; }
h3 { font-size: 1.25em; }
h1, h2, h3 {
  font-family: "TsangerJinKai02", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
}
code {
  background: #EEF2F7;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}
pre {
  background: #faf9f5;
  padding: 1em;
  border: 1px solid #e8e6dc;
  border-radius: 6px;
  color: #141413;
  white-space: pre;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }
blockquote {
  border-left: 3px solid #4a90d9;
  padding-left: 1em;
  color: #666;
  margin: 1em 0;
}
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #ddd; padding: 0.5em 0.8em; }
th { background: #f4f4f4; }
img { max-width: 100%; }
hr { border: none; border-top: 1px solid #eee; margin: 1.5em 0; }
a { color: #4a90d9; }
ul, ol { padding-left: 2em; }
li { margin: 0.25em 0; list-style-type: "-  "; }
small { color: #999; }

/* 顶部导航 */
nav { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 1rem; }
nav .brand { font-size: 1.4em; font-weight: bold; }
nav .menu a { margin-right: 0.9rem; color: #504e49; }
nav .menu a:hover { color: #4a90d9; }

/* 首页文章列表 */
.post-item { margin: 0.7em 0; }
.post-item .excerpt { margin: 0.15em 0 0; color: #777; font-size: 0.92em; }

/* 标签总览 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; padding-left: 0; }
.tag-cloud li { list-style: none; margin: 0; }

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  body { color: #c9c6be; background-color: #1a1917; }
  main { background: #232220 !important; box-shadow: 0 .4em 1em #000 !important; }
  h1 { border-bottom-color: #333; }
  hr { border-top-color: #333; }
  a { color: #6aa9e0; }
  nav .menu a { color: #c9c6be; }
  code { background: #2c2b28; }
  pre { background: #201f1d; border-color: #3a3935; color: #e3e1da; }
  blockquote { color: #a8a59d; border-left-color: #4a90d9; }
  table th { background: #2c2b28; }
  th, td { border-color: #3a3935; }
  small { color: #8a8780; }
  .post-item .excerpt { color: #9a978f; }
}

pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.codehilite .hll { background-color: #ffffcc }
.codehilite { background: #f8f8f8; }
.codehilite .c { color: #3D7B7B; font-style: italic } /* Comment */
.codehilite .err { border: 1px solid #F00 } /* Error */
.codehilite .k { color: #008000; font-weight: bold } /* Keyword */
.codehilite .o { color: #666 } /* Operator */
.codehilite .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
.codehilite .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
.codehilite .cp { color: #9C6500 } /* Comment.Preproc */
.codehilite .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
.codehilite .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
.codehilite .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.codehilite .gd { color: #A00000 } /* Generic.Deleted */
.codehilite .ge { font-style: italic } /* Generic.Emph */
.codehilite .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.codehilite .gr { color: #E40000 } /* Generic.Error */
.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.codehilite .gi { color: #008400 } /* Generic.Inserted */
.codehilite .go { color: #717171 } /* Generic.Output */
.codehilite .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.codehilite .gs { font-weight: bold } /* Generic.Strong */
.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.codehilite .gt { color: #04D } /* Generic.Traceback */
.codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.codehilite .kp { color: #008000 } /* Keyword.Pseudo */
.codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.codehilite .kt { color: #B00040 } /* Keyword.Type */
.codehilite .m { color: #666 } /* Literal.Number */
.codehilite .s { color: #BA2121 } /* Literal.String */
.codehilite .na { color: #687822 } /* Name.Attribute */
.codehilite .nb { color: #008000 } /* Name.Builtin */
.codehilite .nc { color: #00F; font-weight: bold } /* Name.Class */
.codehilite .no { color: #800 } /* Name.Constant */
.codehilite .nd { color: #A2F } /* Name.Decorator */
.codehilite .ni { color: #717171; font-weight: bold } /* Name.Entity */
.codehilite .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
.codehilite .nf { color: #00F } /* Name.Function */
.codehilite .nl { color: #767600 } /* Name.Label */
.codehilite .nn { color: #00F; font-weight: bold } /* Name.Namespace */
.codehilite .nt { color: #008000; font-weight: bold } /* Name.Tag */
.codehilite .nv { color: #19177C } /* Name.Variable */
.codehilite .ow { color: #A2F; font-weight: bold } /* Operator.Word */
.codehilite .w { color: #BBB } /* Text.Whitespace */
.codehilite .mb { color: #666 } /* Literal.Number.Bin */
.codehilite .mf { color: #666 } /* Literal.Number.Float */
.codehilite .mh { color: #666 } /* Literal.Number.Hex */
.codehilite .mi { color: #666 } /* Literal.Number.Integer */
.codehilite .mo { color: #666 } /* Literal.Number.Oct */
.codehilite .sa { color: #BA2121 } /* Literal.String.Affix */
.codehilite .sb { color: #BA2121 } /* Literal.String.Backtick */
.codehilite .sc { color: #BA2121 } /* Literal.String.Char */
.codehilite .dl { color: #BA2121 } /* Literal.String.Delimiter */
.codehilite .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.codehilite .s2 { color: #BA2121 } /* Literal.String.Double */
.codehilite .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
.codehilite .sh { color: #BA2121 } /* Literal.String.Heredoc */
.codehilite .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
.codehilite .sx { color: #008000 } /* Literal.String.Other */
.codehilite .sr { color: #A45A77 } /* Literal.String.Regex */
.codehilite .s1 { color: #BA2121 } /* Literal.String.Single */
.codehilite .ss { color: #19177C } /* Literal.String.Symbol */
.codehilite .bp { color: #008000 } /* Name.Builtin.Pseudo */
.codehilite .fm { color: #00F } /* Name.Function.Magic */
.codehilite .vc { color: #19177C } /* Name.Variable.Class */
.codehilite .vg { color: #19177C } /* Name.Variable.Global */
.codehilite .vi { color: #19177C } /* Name.Variable.Instance */
.codehilite .vm { color: #19177C } /* Name.Variable.Magic */
.codehilite .il { color: #666 } /* Literal.Number.Integer.Long */
