body {
  margin-top: 0;
}

.post {
  margin-bottom: 64px;
}

#main-content > * > .meta {
  margin-top: 128px;
}
#main-content > * > .meta > * {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
#main-content > * > .meta .categories {
  color: var(--color-text-accent);
  margin-bottom: 6px;
  font-weight: 600;
}
#main-content > * > .meta .categories a {
  font-size: 13px;
  margin-right: 6px;
  text-decoration: none;
}
#main-content > * > .meta .date {
  display: block;
  color: var(--color-text-secondary);
  font-weight: 600;
}
#main-content > * > .meta .title {
  font-size: 42px;
  margin-top: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.post {
  /* only `& > .content > pre`, do not include <pre /> in <figure /> */
  /* Ensure consistent dark mode background for pre elements */
  /* Handle wrapped code blocks */
  /* Remove default styling for wrapped code blocks */
  /* Ensure all code block content has transparent background */
  /* Dark mode styles for code block wrapper */
  /* for [hexo-math](https://github.com/hexojs/hexo-math): */
}
.post > .cover {
  max-width: 100%;
  overflow: clip visible;
}
.post > .cover > .cover-img {
  --h: 300px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
          mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-composite: destination-in;
          mask-composite: destination-in;
  height: var(--h);
  margin-bottom: calc(var(--h) * -0.6);
  -o-object-fit: cover;
     object-fit: cover;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .post > .cover > .cover-img {
    --range: calc(var(--h) * 3);
    --offset-coefficient: 0.5;
    will-change: filter, margin-top, margin-bottom, opacity, scale;
    animation-name: cover-exit;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll();
    animation-range: 0 var(--range);
  }
  @keyframes cover-exit {
    100% {
      opacity: 0;
      scale: 1.2;
      margin-top: calc(var(--range) * var(--offset-coefficient));
      margin-bottom: calc(var(--range) * -1 * var(--offset-coefficient));
      filter: var(--filter-blur);
    }
  }
}
.post > .content {
  margin-top: 64px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-text-primary);
}
.post > .content p, .post > .content h1, .post > .content h2, .post > .content h3, .post > .content h4, .post > .content h5, .post > .content h6, .post > .content figure, .post > .content > pre,
.post .divider,
.post .container,
.post hr,
.post .toc, .post > .content blockquote, .post > .content table, .post > .content video, .post > .content ul, .post > .content ol, .post > .content > mjx-container, .post > .content > .katex,
.post .about {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.post > .content p img, .post > .content .block-large img, .post > .content figure img {
  border-radius: var(--radius-medium);
}
@media (max-width: 1000px) {
  .post > .content .block-large img {
    border-radius: 0;
  }
}
.post > .content table, .post > .content video {
  display: block;
}
.post > .content table {
  padding: 0;
  border-collapse: collapse;
  border-radius: var(--radius-medium);
  max-width: 800px;
  overflow-x: auto;
}
.post > .content table tr {
  background-color: var(--color-background-secondary);
}
.post > .content table tr:nth-child(even) {
  background-color: transparent;
}
.post > .content table th,
.post > .content table td {
  margin: 0;
  padding: 6px 12px;
}
.post > .content table th {
  border-bottom: 1px solid var(--color-border-primary);
}
.post > .content table thead tr th:first-child {
  border-top-left-radius: var(--radius-medium);
}
.post > .content table thead tr th:last-child {
  border-top-right-radius: var(--radius-medium);
}
.post > .content table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-medium);
}
.post > .content table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-medium);
}
@media (max-width: 800px) {
  .post > .content table,
  .post > .content table thead tr th:first-child,
  .post > .content table thead tr th:last-child,
  .post > .content table tbody tr:last-child td:first-child,
  .post > .content table tbody tr:last-child td:last-child {
    border-radius: 0;
  }
}
.post > .content video {
  max-width: 100%;
  padding: 0;
}
.post > .content > pre {
  overflow-x: auto;
  overflow-y: hidden;
  background-color: #f8f9fa;
  border-radius: var(--radius-medium);
  max-width: 768px;
  padding: 20px 24px;
  color: #24292e;
  transition: background-color 0.3s ease, color 0.3s ease;
}
@media (max-width: 800px) {
  .post > .content > pre {
    border-radius: 0;
  }
}
.post > .content > pre * > code {
  background-color: transparent;
}
@media (prefers-color-scheme: dark) {
  body[data-color-scheme=auto] .post > .content > pre {
    background-color: #282a36;
    color: #f8f8f2;
  }
}
body[data-color-scheme=dark] .post > .content > pre {
  background-color: #282a36;
  color: #f8f8f2;
}
.post > .content .highlight * {
  border: none;
}
.post > .content .highlight .gutter {
  padding-right: 16px;
  /* Don't override color - let code-highlighting.scss handle it */
}
.post > .content .code-block-wrapper {
  margin: 1.5em auto;
  max-width: 800px;
}
.post > .content .code-block-wrapper .highlight, .post > .content .code-block-wrapper .highlight pre {
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
}
.post > .content .code-block-wrapper pre, .post > .content .code-block-wrapper .highlight pre, .post > .content .code-block-wrapper .highlight {
  background-color: transparent !important;
}
.post > .content .code-block-wrapper .highlight pre {
  padding: 16px !important;
  background-color: transparent !important;
  color: #24292e !important;
  transition: color 0.3s ease;
}
@media (prefers-color-scheme: dark) {
  body[data-color-scheme=auto] .post > .content .code-block-wrapper .highlight pre {
    color: #f8f8f2 !important;
  }
}
body[data-color-scheme=dark] .post > .content .code-block-wrapper .highlight pre {
  color: #f8f8f2 !important;
}
.post > .content ul, .post > .content ol {
  padding: 0 16px;
  padding-left: 32px;
  margin-block-start: 1em;
  margin-block-end: 1em;
  max-width: 768px;
}
.post > .content blockquote {
  max-width: 768px;
  padding: 0 8px;
}
.post > .content figure figcaption {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-secondary);
}
.post > .content > mjx-container, .post > .content > .katex {
  display: block;
  text-align: center;
}
.post .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.post .tags .icon {
  font-size: 14px;
  display: block;
  margin-right: 2px;
}
.post .tags .tag {
  font-size: 14px;
  display: block;
  height: 14px;
}
.post .about {
  border-radius: var(--radius-medium);
  background-color: var(--color-background-secondary);
  max-width: 768px;
  padding: 16px;
  margin: 64px auto;
}
@media (max-width: 800px) {
  .post .about {
    border-radius: 0;
  }
}
.post .about h1 {
  margin: 0;
}
.post .about .details {
  margin: 16px 0;
}
.post .about .details p {
  margin: 6px 0;
}
.post .about > .extra {
  font-size: 15px;
}
.post > .content h1 > .headerlink,
.post > .content h2 > .headerlink,
.post > .content h3 > .headerlink,
.post > .content h4 > .headerlink,
.post > .content h5 > .headerlink,
.post > .content h6 > .headerlink {
  opacity: 0;
  color: var(--color-text-tertiary);
  font-weight: normal;
  position: absolute;
  padding-right: 6px;
  transform: translateX(-100%);
  text-decoration: none;
  transition: opacity 0.2s;
}
.post > .content h1 > .headerlink::before,
.post > .content h2 > .headerlink::before,
.post > .content h3 > .headerlink::before,
.post > .content h4 > .headerlink::before,
.post > .content h5 > .headerlink::before,
.post > .content h6 > .headerlink::before {
  content: "#";
}
.post > .content h1:hover > .headerlink,
.post > .content h1 .headerlink:hover,
.post > .content h1 .headerlink:focus-visible,
.post > .content h2:hover > .headerlink,
.post > .content h2 .headerlink:hover,
.post > .content h2 .headerlink:focus-visible,
.post > .content h3:hover > .headerlink,
.post > .content h3 .headerlink:hover,
.post > .content h3 .headerlink:focus-visible,
.post > .content h4:hover > .headerlink,
.post > .content h4 .headerlink:hover,
.post > .content h4 .headerlink:focus-visible,
.post > .content h5:hover > .headerlink,
.post > .content h5 .headerlink:hover,
.post > .content h5 .headerlink:focus-visible,
.post > .content h6:hover > .headerlink,
.post > .content h6 .headerlink:hover,
.post > .content h6 .headerlink:focus-visible {
  opacity: 1;
}
.post > .content > h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.post > .content > h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.post > .content > h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.post > .content > h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}
.post > .content > h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}
.post > .content > h6 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1em;
  margin-bottom: 0.5em;
}
.post .post-prev-next {
  display: flex;
  justify-content: space-between;
  display: flex;
  margin-bottom: 64px;
}
.post .post-prev-next > a {
  width: 50%;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: flex;
  transition: color 0.2s;
}
.post .post-prev-next > a:hover, .post .post-prev-next > a:focus-visible {
  color: var(--color-text-secondary-hover);
}
.post .post-prev-next .text {
  display: flex;
  flex-direction: column;
}
.post .post-prev-next .prev .text .title,
.post .post-prev-next .prev .text .label,
.post .post-prev-next .next .text .title,
.post .post-prev-next .next .text .label {
  margin: 0;
}
.post .post-prev-next .prev .text .label,
.post .post-prev-next .next .text .label {
  margin-bottom: 4px;
  color: var(--color-text-secondary);
}
.post .post-prev-next .prev {
  justify-content: flex-end;
  text-align: right;
}
.post .post-prev-next .prev .text {
  align-items: flex-end;
}
.post .post-prev-next .next {
  justify-content: flex-start;
  text-align: left;
}
.post .post-prev-next .next .text {
  align-items: flex-start;
}