* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
/* 头部背景图 */
  --header-bgi: url("../images/BingWallpaper0.jpg");
/* 尾部背景图 */
  --footer-bgi: url("../images/BingWallpaper0.jpg");
/* 头像 */
  --avatar: url("../images/avatar.jpeg");
/*
   * 1.nav底框背景色
   * 2.nav内每项hover背景颜色
   * 3.nav内每项hover内a标签字体颜色
   * 4.nav内每项active背景颜色
   * 5.nav内每项active内a标签字体颜色
   * 6.nav内每项内a标签的默认字体颜色
   */
  --nav-bgc: rgba(255,255,255,0.4);
  --nav-hover-bgc: rgba(123,255,0,0.5);
  --nav-hover-a-color: #008000;
  --nav-active-bgc: rgba(255,46,46,0.5);
  --nav-active-a-color: #f00;
  --a-color: #000;
/* 等级lv0-lv9 需要显示lv几就取消注释对应那条 */
/* --lv: -20px -10px; */
/* --lv: -20px -46px; */
/* --lv: -20px -82px; */
/* --lv: -20px -118px; */
/* --lv: -20px -154px; */
/* --lv: -20px -190px; */
  --lv: -20px -226px;
/* --lv: -20px -262px; */
/* --lv: -20px -298px; */
/* --lv: -20px -334px; */
/* 根据主题变更header背景色，作用是使得filter边框颜色和谐 */
  --header-footer-bgc: #fff;
/* header、footer高斯模糊程度 */
  --header-footer-filter: blur(2px);
}
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  color-scheme: var(--mark);
}
img {
  vertical-align: bottom;
}
:root {
  background-color: #fff;
  --bg: #fff;
  color: #000;
  --color: #000;
  --color_back: #fff;
  --active: #000;
  --i: #000;
  --selection-color: #fff;
  --selection-background-color: #000;
  --article-background-color: #eee;
  --article-background-color-hover: #ddd;
  --text-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  --box-shadow: 0px 0px 10px rgba(0,0,0,0.4);
  --theme_i_before: "A";
}
@media (prefers-color-scheme: dark) {
  :root {
    background: #0d1117;
    --bg: #0d1117;
    color: #fff;
    --color: #fff;
    --color_back: #000;
    --active: #fff;
    --i: #21262d;
    --selection-color: #000;
    --selection-background-color: #fff;
    --article-background-color: rgba(255,255,255,0.1);
    --article-background-color-hover: rgba(255,255,255,0.2);
    --text-shadow: 3px 3px 3px rgba(255,255,255,0.4);
    --box-shadow: 0px 0px 10px rgba(255,255,255,0.4);
    --itemBackgroundColor: rgba(255,255,255,0.1);
    --mark: dark;
  }
}
@media (prefers-color-scheme: light) {
  :root {
    background-color: #fff;
    --bg: #fff;
    color: #000;
    --color: #000;
    --color_back: #fff;
    --active: #000;
    --i: #000;
    --selection-color: #fff;
    --selection-background-color: #000;
    --article-background-color: #eee;
    --article-background-color-hover: #ddd;
    --text-shadow: 3px 3px 3px rgba(0,0,0,0.4);
    --box-shadow: 0px 0px 10px rgba(0,0,0,0.4);
    --itemBackgroundColor: rgba(0,0,0,0.1);
    --mark: light;
  }
}
[data-theme=dark] {
  background: #0d1117;
  --bg: #0d1117;
  color: #fff;
  --color: #fff;
  --color_back: #000;
  --active: #fff;
  --i: #21262d;
  --selection-color: #000;
  --selection-background-color: #fff;
  --article-background-color: rgba(255,255,255,0.1);
  --article-background-color-hover: rgba(255,255,255,0.2);
  --text-shadow: 3px 3px 3px rgba(255,255,255,0.4);
  --box-shadow: 0px 0px 10px rgba(255,255,255,0.4);
  --theme_i: 33px;
  --theme_i_before: "D";
  --itemBackgroundColor: rgba(255,255,255,0.1);
  --mark: dark;
}
[data-theme=light] {
  background-color: #fff;
  --bg: #fff;
  color: #000;
  --color: #000;
  --color_back: #fff;
  --active: #000;
  --i: #000;
  --selection-color: #fff;
  --selection-background-color: #000;
  --article-background-color: #eee;
  --article-background-color-hover: #ddd;
  --text-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  --box-shadow: 0px 0px 10px rgba(0,0,0,0.4);
  --theme_i: -10px;
  --theme_i_before: "L";
  --itemBackgroundColor: rgba(0,0,0,0.1);
  --mark: light;
}
body {
  min-width: 240px;
  overflow-x: hidden;
  background-attachment: fixed;
}
main {
  min-height: 100%;
  position: relative;
  font-weight: 300;
}
a {
  display: inline-block;
  color: #5157ce;
  text-decoration: none;
  font-weight: 900;
}
a:active {
  color: #f00;
}
a:hover {
  text-decoration: underline;
}
.gutter {
  display: none;
}
header {
  width: 100%;
  padding: 20px;
  position: relative;
  background-color: #fff;
  overflow: hidden;
}
header::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: var(--header-bgi);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: var(--header-footer-filter);
  -webkit-filter: var(--header-footer-filter);
/* backdrop-filter: saturate(150%) var(--header-footer-filter);
  -webkit-backdrop-filter: saturate(150%) var(--header-footer-filter); */
  transition: all 0.4s;
  transform: scale(1.2);
}
header>.content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
header>.content>.avatar {
  display: inline-block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-image: var(--avatar);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
header>.content>.avatar::after {
  content: "";
  background-image: url("https://s1.hdslb.com/bfs/static/jinkela/space/assets/level.png");
  background-position: var(--lv);
  overflow: hidden;
  display: inline-block;
  width: 30px;
  height: 16px;
  color: #fff;
  position: absolute;
  font-size: 12px;
  margin-left: 15px;
  margin-top: 80px;
}
header>.content>.author {
  font-size: 30px;
  position: relative;
}
header>.content>.motto {
  font-size: 15px;
  border-radius: 5px;
  margin-top: 5px;
  padding: 5px 0;
}
header>.content>nav::-webkit-scrollbar {
/*滚动条整体样式*/
  width: 10px;
/*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}
header>.content>nav::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
  background: #535353;
}
header>.content>nav::-webkit-scrollbar-track {
/*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
  border-radius: 10px;
  background: #ededed;
}
header>.content>nav {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--nav-bgc);
  padding: 0.2rem;
  border-radius: 0.5rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: auto;
}
header nav span {
  display: inline-block;
  cursor: pointer;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.5s;
}
header nav span:last-child::after {
  display: none;
}
header nav span::after {
  content: "·";
  position: absolute;
  right: -0.3rem;
  top: 0.15rem;
}
header nav span:hover {
  background-color: var(--nav-hover-bgc);
}
header nav span:active {
  background-color: var(--nav-active-bgc);
}
header nav span a {
  display: inline-block;
  color: var(--color);
  padding: 0.2rem 0.4rem;
}
header nav span:hover a {
  color: var(--nav-hover-a-color);
  text-decoration: none;
}
header nav span:active a {
  color: var(--nav-active-a-color);
}
section {
  margin: 0 20px;
}
section>.content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
section>.content>.article {
  padding: 20px 0;
  position: relative;
  border-radius: 10px;
  transition: all 0.5s;
}
section>.content>.article:hover {
  background-color: #999;
}
section>.content>.article>a {
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}
section>.content>.article:last-child::after {
  display: none;
}
section>.content>.article::after {
  content: "";
  display: inline-block;
  width: 60%;
  height: 5px;
  border-radius: 2.5px;
  background-color: #eee;
  position: absolute;
  left: 50%;
  margin-left: -30%;
  bottom: 0;
}
section .article>h1 {
  text-align: center;
  font-size: 30px;
}
section .article>i {
  display: block;
  text-align: center;
  margin: 0 0 20px;
  font-style: normal;
}
section .article>p {
  height: 48px;
  text-indent: 2rem;
  line-height: 1.5rem;
  display: -webkit-box;
/* 超出区域，用...代替 */
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
section {
  margin: 0 20px;
}
section>nav {
  width: 100%;
  max-width: 900px;
  margin: auto;
  line-height: 1.5rem;
  font-weight: 300;
}
section p {
  margin: 0.7em 0;
  word-break: break-all;
}
section nav>p:nth-child(2),
section nav>h2:nth-child(2),
section nav>h3:nth-child(2),
section nav>h4:nth-child(2),
section nav>h5:nth-child(2),
section nav>h6:nth-child(2),
section nav>pre:nth-child(2),
section nav>blockquote:nth-child(2) {
  margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 8px;
}
h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}
h3 {
  margin-top: 20px;
  margin-bottom: 8px;
}
section>nav>.article {
  padding: 15px 20px;
  margin: 15px 0;
  background: linear-gradient(to left, rgba(0,0,0,0), var(--itemBackgroundColor), rgba(0,0,0,0));
  border-radius: 10px;
  cursor: pointer;
  font-weight: 300;
  display: flex;
  align-items: center;
  position: relative;
  display: flex;
  justify-content: space-between;
}
section>nav>.article>.title {
  transition: all 0.2s;
  font-size: 20px;
}
section>nav>.article:hover .title {
  color: #3742fa;
}
section>nav>.article>span {
  display: block;
}
section>nav>.article>.tim {
  font-size: 15px;
  min-width: 100px;
  text-align: right;
}
section>nav>.article:hover .tim {
  animation: tim 1s infinite;
}
section>nav>.article>.url_a {
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}
section>nav>.aTitle {
  padding: 30px 0;
  margin: 10px 0;
  text-align: center;
}
section>nav>.aTitle>h1 {
  font-size: 40px;
  margin-bottom: 10px;
  line-height: 1.3em;
  font-weight: 400;
}
section>nav>.aTitle>i {
  font-style: normal;
}
section>nav>h1 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2em;
  position: relative;
  margin-top: 30px;
}
section>nav>h1::before {
  content: "#";
  position: absolute;
  left: -15px;
  color: #ff4757;
}
section>nav>h1:hover::before {
  color: #3742fa;
}
section>nav>h1::after {
  content: "";
}
section>nav img {
  width: 100%;
  max-width: 400px;
}
section .criterion {
  font-size: 14px;
  border: 2px solid var(--article-background-color);
  padding: 10px 20px;
  background: var(--article-background-color);
  color: var(--color);
  margin: 30px 0 0 0;
  word-break: break-all;
  border-radius: 10px;
}
section .criterion a {
  display: inline;
}
section nav [data-fancybox = images] {
  margin: 10px 0;
  border: 1px solid var(--color);
  border-radius: 4px;
  overflow: hidden;
}
section hr {
  margin: 20px 0;
}
section ul,
section ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
blockquote {
  border-left: 5px solid #00cc6a;
  padding: 5px 20px;
  background-color: var(--article-background-color);
  color: var(--color);
  word-break: break-all;
  border-radius: 10px;
  margin: 10px 0;
}
section>nav>p>code {
  display: inline-block;
  background-color: var(--article-background-color);
  border-radius: 3px;
  padding: 0em 0.4em;
  color: #21a3df;
  font-size: 14px;
  font-family: auto;
  font-weight: 900;
  line-height: 1.2rem;
}
.pagination {
  text-align: center;
  margin: 20px 0;
}
.pagination>a {
  padding: 5px 10px;
  margin-right: 10px;
  border-radius: 4px;
}
.pagination>.space {
  padding: 5px 10px;
  margin-right: 10px;
  border-radius: 4px;
}
.pagination>.current {
  padding: 5px 10px;
  margin-right: 10px;
  border-radius: 4px;
}
.pagination>a:hover {
  color: var(--color);
}
.pn {
  height: 30px;
  line-height: 30px;
  position: relative;
  margin: 10px 0 10px 0;
}
.pn>a {
  position: absolute;
  max-width: 40%;
  display: inline-flex;
}
.pn>a>span {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.pn>a>i {
  font-style: normal;
}
.pn>.left {
  left: 0;
}
.pn>.right {
  right: 0;
}
figure,
pre {
  margin: 10px 0;
  font-size: 16px;
}
.criterion p,
blockquote p {
  margin-bottom: 0;
}
.hljs {
  border-radius: 10px;
  font-family: Consolas, 'Courier New', monospace;
}
.hljs::-webkit-scrollbar {
/*滚动条整体样式*/
  width: 10px;
/*高宽分别对应横竖滚动条的尺寸*/
  height: 10px;
}
.hljs::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
  background: #535353;
}
.hljs::-webkit-scrollbar-track {
/*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
  border-radius: 10px;
  background: #ededed;
}
a.url {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
@-moz-keyframes tim {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes tim {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes tim {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tim {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}
footer {
  width: 100%;
  padding: 80px 0;
  position: relative;
  background-color: #fff;
  overflow: hidden;
}
footer::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: var(--footer-bgi);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: var(--header-footer-filter);
  -webkit-filter: var(--header-footer-filter);
/* backdrop-filter: saturate(150%) var(--header-footer-filter);
  -webkit-backdrop-filter: saturate(150%) var(--header-footer-filter); */
  transition: all 0.4s;
  transform: scale(1.2);
}
footer>.content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
