@charset "UTF-8";
/* _variables.scss */
.post {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 1370px) {
  .post {
    width: 70%;
    max-width: 1400px;
    margin: 0 auto;
  }
  .post .article {
    width: 800px;
    padding-top: var(--article-padding-top);
    padding-bottom: var(--article-padding-bottom);
    margin-right: 2em;
  }
  .post .article .header-anchor {
    left: -1em;
  }
  .post .aside {
    width: 20%; /* 起占位作用*/
    position: relative;
  }
  .post .aside .aside-container {
    position: fixed;
    top: 0;
    width: 20%; /* 起控制实际宽度的作用 */
    margin-top: calc(var(--header-height) + var(--article-padding-top));
    max-height: calc(100vh - var(--header-height) - var(--footer-height) - 1em);
    overflow-y: auto;
  }
  .scroll-down .post .aside .aside-container {
    margin-top: var(--header-height);
  }
}
@media screen and (max-width: 1370px) {
  .post {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
    flex-direction: column-reverse;
  }
  .post .aside {
    margin-bottom: 2em;
    max-height: 400px;
    overflow-y: auto;
  }
  .post .header-anchor {
    left: -0.6em;
  }
}
.post .article .title {
  font-size: 2em;
  font-weight: 900;
}

.post .article > .content {
  margin: 2em 0;
}
.post .article > .content hr {
  margin: 1em 0;
}
.post .article > .content h1, .post .article > .content h2, .post .article > .content h3, .post .article > .content h4, .post .article > .content h5, .post .article > .content h6 {
  position: relative;
  display: flex;
  align-items: center; /* Vertically centers the content */
}
.post .article > .content h1 .header-anchor, .post .article > .content h2 .header-anchor, .post .article > .content h3 .header-anchor, .post .article > .content h4 .header-anchor, .post .article > .content h5 .header-anchor, .post .article > .content h6 .header-anchor {
  position: absolute;
  opacity: 0;
  text-decoration: none;
  color: rgba(60, 60, 67, 0.56);
  transition: color 0.25s, opacity 0.25s;
}
.post .article > .content h1 .header-anchor:before, .post .article > .content h2 .header-anchor:before, .post .article > .content h3 .header-anchor:before, .post .article > .content h4 .header-anchor:before, .post .article > .content h5 .header-anchor:before, .post .article > .content h6 .header-anchor:before {
  content: "#";
  cursor: pointer;
  color: var(--brand-color-1);
}
.post .article > .content h1:hover .header-anchor, .post .article > .content h2:hover .header-anchor, .post .article > .content h3:hover .header-anchor, .post .article > .content h4:hover .header-anchor, .post .article > .content h5:hover .header-anchor, .post .article > .content h6:hover .header-anchor {
  opacity: 1;
}

.post .aside-container .catalog {
  border-left: 1px solid var(--border-color);
  padding-left: 1em;
}
.post .aside-container .catalog div {
  margin: 0.5em 0;
}
.post .aside-container .catalog .catalog-item {
  height: 1.25em;
  line-height: 1.25em;
  position: relative;
  cursor: pointer;
  color: var(--catalog-color);
}
.post .aside-container .catalog .catalog-item .catalog-title {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post .aside-container .catalog .catalog-item[data-level="2"] .catalog-title {
  padding-left: 1em;
}
.post .aside-container .catalog .catalog-item:before {
  content: "";
  height: 100%;
  width: 2px;
  position: absolute;
  top: 0;
  left: -1em;
  background-color: var(--brand-color-1);
  visibility: hidden;
}
.post .aside-container .catalog .catalog-item.active {
  color: var(--brand-color-1);
}
.post .aside-container .catalog .catalog-item.active:before {
  visibility: visible;
}

.post p {
  margin: 0.5em 0;
}
.post ul > li {
  margin: 0.3em 0;
}

a {
  color: var(--brand-color-1);
}

mark {
  color: #ffffff;
  background-color: var(--brand-color-1);
}

.hint, .warning, .error {
  margin: 1em 0;
  padding: 1em;
  border-radius: 0.5em;
  position: relative;
  padding-left: 3em;
}
.hint p, .warning p, .error p {
  color: #ffffff;
  line-height: 1.5em;
  margin: 0;
}
.hint:before, .warning:before, .error:before {
  content: "";
  background-color: currentColor;
  position: absolute;
  top: 1em;
  left: 1em;
  width: 1.5em;
  height: 1.5em;
  mask-position: 50%;
  --webkit-mask-position: 50%;
  mask-size: 1.5em;
  mask-repeat: no-repeat;
}

@media (max-width: 780px) {
  .hint p, .warning p, .error p {
    margin-left: 0;
  }
}
.hint {
  background-color: var(--hint-container-bg-color);
}
.hint:before {
  color: var(--hint-container-icon-color);
  mask-image: var(--hint-container-icon-url);
  --webkit-mask-image: var(--hint-container-icon-url);
}

.warning {
  background-color: var(--warning-container-bg-color);
}
.warning:before {
  color: var(--warning-container-icon-color);
  mask-image: var(--warning-container-icon-url);
  --webkit-mask-image: var(--warning-container-icon-url);
}

.error {
  background-color: var(--error-container-bg-color);
}
.error:before {
  color: var(--error-container-icon-color);
  mask-image: var(--error-container-icon-url);
  --webkit-mask-image: var(--error-container-icon-url);
}