#postTopic {
  cursor: pointer;
  will-change: transform;
  transform: translateY(100%);
}
#postTopic p {
  color: var(--primary-text-color);
}
#postTopic.is-show-scrollToTop-tips {
  transition: transform 300ms linear 300ms;
  transform: translateY(-100%);
}
#postTopic.is-flash-scrollToTop-tips {
  transition: transform 300ms linear 900ms;
  transform: translateY(0);
}
#postTopic.is-switch-post-title {
  transition: none;
  transform: translateY(0);
}
#postTopic.is-show-post-title {
  transition: transform 300ms linear;
  transform: translateY(0);
}
#postTopic.is-hidden-topic-bar {
  transition: transform 100ms linear;
  transform: translateY(100%);
}
#postTopic.immediately-show {
  transition: none;
  transform: translateY(0);
}

.post-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 42vw, 520px);
  overflow: hidden;
  color: #fff;
  --post-hero-overlay-start: rgba(0, 0, 0, .16);
  --post-hero-overlay-end: rgba(0, 0, 0, .28);
  --post-hero-vignette-center: rgba(0, 0, 0, .02);
  --post-hero-vignette-edge: rgba(0, 0, 0, .20);
  background: radial-gradient(circle at 50% 30%, rgba(70, 90, 140, 0.45), transparent 55%), linear-gradient(135deg, #111827, #030712);
}
.post-hero:before, .post-hero:after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-hero:before {
  inset: -10px;
  background-image: var(--post-hero-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(1px);
  transform: scale(1.035);
}
.post-hero:after {
  background: linear-gradient(180deg, var(--post-hero-overlay-start), var(--post-hero-overlay-end)), radial-gradient(circle at 50% 50%, var(--post-hero-vignette-center), var(--post-hero-vignette-edge));
}
.post-hero.is-fallback:before {
  background-image: radial-gradient(circle at 30% 20%, rgba(50, 115, 220, 0.45), transparent 34%), linear-gradient(135deg, #111827, #030712);
  filter: none;
  transform: none;
}
.post-hero .post-hero-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 980px;
  padding: 72px 0 64px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.post-hero .post-hero-categories,
.post-hero .post-hero-meta,
.post-hero .post-hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.post-hero .post-hero-categories,
.post-hero .post-hero-tags {
  gap: 8px;
}
.post-hero .post-hero-category,
.post-hero .post-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.post-hero #postTitle.post-hero-title {
  margin: 22px 0 0;
  color: #fff !important;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.18;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.post-hero .post-hero-meta {
  gap: 8px 18px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
}
.post-hero .post-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-hero .post-hero-meta-item span {
  font-weight: 700;
}
.post-hero .post-hero-tags {
  margin-top: 22px;
}

:root.appearance-dark .post-hero {
  --post-hero-overlay-start: rgba(0, 0, 0, .34);
  --post-hero-overlay-end: rgba(0, 0, 0, .50);
  --post-hero-vignette-center: rgba(0, 0, 0, .05);
  --post-hero-vignette-edge: rgba(0, 0, 0, .36);
}

@media (prefers-color-scheme: dark) {
  :root.appearance-auto .post-hero {
    --post-hero-overlay-start: rgba(0, 0, 0, .34);
    --post-hero-overlay-end: rgba(0, 0, 0, .50);
    --post-hero-vignette-center: rgba(0, 0, 0, .05);
    --post-hero-vignette-edge: rgba(0, 0, 0, .36);
  }
}
.post-page .post-content code {
  border-radius: 4px;
  background: var(--third-bg-color);
}
.post-page .post-content pre {
  padding: 0;
  background: transparent;
}
.post-page .post-content pre code {
  padding: 15px;
  border: 1px solid var(--border-line-color);
  background: var(--pre-code-bg-color);
}
.post-page .post-content .hljs {
  color: var(--second-text-color);
}
.post-page .post-content .math-display {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1em 0;
  padding: 0.25em 0;
}
.post-page .post-content img {
  display: block;
  margin: 0 auto;
  max-height: 500px;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  will-change: opacity;
}
.post-page .post-content a {
  color: #3273dc;
}
.post-page .jump-container .button {
  max-width: calc(50% - 5px);
}
.post-page .jump-container .button span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.post-page .comment-container {
  border-top: 1px solid var(--border-line-color);
}
.post-page .giscus-comment-container {
  padding-top: 1.5rem;
  overflow-x: hidden;
}
.post-page .giscus-comment-container .giscus-comment-title {
  margin-bottom: 1rem;
  color: var(--primary-text-color);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}
.post-page .giscus-comment-container .giscus {
  width: 100%;
  overflow-x: hidden;
}
.post-page .giscus-comment-container .giscus-config-hint,
.post-page .giscus-comment-container .giscus-error-message {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-line-color);
  border-radius: 6px;
  background: var(--third-bg-color);
  color: var(--second-text-color);
  font-size: 0.95rem;
  line-height: 1.7;
}
.post-page .toc {
  position: sticky;
  top: 60px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 15px;
  height: calc(100vh - 100px);
  overflow: auto;
  list-style: none !important;
  border-left: 1px solid var(--border-line-color);
}
.post-page .toc::-webkit-scrollbar {
  display: none;
}
.post-page .toc ol {
  margin-top: 5px;
  margin-left: 15px;
  list-style: none !important;
}
.post-page .toc .is-active span {
  color: #3273dc !important;
}
.post-page :target {
  padding-top: 60px;
  margin-top: -60px !important;
}

@media screen and (max-width: 768px) {
  .post-hero {
    min-height: clamp(280px, 72vw, 420px);
  }
  .post-hero .post-hero-inner {
    width: calc(100% - 28px);
    max-width: 680px;
    padding: 56px 0 48px;
  }
  .post-hero #postTitle.post-hero-title {
    margin-top: 18px;
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .post-hero .post-hero-meta {
    gap: 6px 12px;
    margin-top: 18px;
    font-size: 14px;
  }
}