#header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 214, 128, 0.24), transparent 23rem),
    linear-gradient(90deg, rgba(24, 6, 10, 0.5), transparent 56%);
}

*,
*::before,
*::after {
  scroll-behavior: auto !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}

[data-aos],
[data-aos^="fade"],
[data-aos^="zoom"],
[data-aos^="slide"],
.aos-init,
.aos-animate,
.lazyload,
.lazyloading,
.lazyloaded {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

#loader {
  display: none !important;
}

:root {
  scrollbar-color: #c91f1f #f4f4f4;
  scrollbar-width: auto;
}

::-webkit-scrollbar,
::-webkit-scrollbar-track {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #f4f4f4;
  border-radius: 999px;
  background: #c91f1f;
}

::-webkit-scrollbar-thumb:hover {
  background: #b40000;
}

#header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/images/china/jack-ma-transparent.png") no-repeat right 7% top 240px / min(31vw, 420px) auto;
  opacity: 0.2;
  filter: sepia(1) saturate(2.6) hue-rotate(315deg) drop-shadow(0 18px 24px rgba(80, 0, 0, 0.22));
  -webkit-mask: linear-gradient(to top, transparent 0%, #fff 25%);
  mask: linear-gradient(to top, transparent 0%, #fff 25%);
}

#header img[src*="hero.svg"] {
  object-position: center top;
}

#header img[src*="cover-lantern.svg"],
#header img[src*="cover-seal.svg"] {
  filter: brightness(0.72) saturate(0.95);
}

#header-title {
  opacity: 1;
  filter: none;
  animation: none;
}

#logo h1 {
  letter-spacing: 0;
}

#logo {
  font-size: 40px;
}

#subtitle {
  letter-spacing: 0;
}

html,
body,
#container,
#wrap {
  max-width: 100%;
  overflow-x: hidden;
}

.post-title,
.post-article {
  overflow-wrap: break-word;
}

.post-wrap {
  height: 260px;
}

.post-info {
  padding: 24px 28px 34px;
}

.post-wrapper,
.post-wrapper:hover,
.post-wrapper .aos-animate,
.post-wrapper .aos-animate:hover,
.post-wrap,
.post-wrap:hover,
.post-link,
.post-link:hover,
.post-link:focus,
.post-link:focus-visible {
  box-shadow: none !important;
  outline: 0 !important;
}

.post-wrapper:hover {
  transform: none;
}

.post-wrapper:hover img {
  transform: none !important;
}

.post-title-cn,
.post-title-en {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-title-cn {
  margin-top: 6px;
  color: #5c4a4a;
  font-size: 0.68em;
  font-weight: 600;
  line-height: 1.35;
}

.post-title-en {
  font-size: 1em;
  line-height: 1.25;
}

.main-nav-icon.rotate,
.sidebar-menu-icon.rotate,
.footer-info-sep.rotate,
.sidebar-top-taichi.rotate {
  animation: none;
}

.sidebar-author img {
  object-position: 50% 50%;
  background: linear-gradient(135deg, #4d1515, #c91f1f);
  border: 2px solid rgba(201, 31, 31, 0.85);
}

.sidebar-state-article {
  border-right: 0;
}

.sidebar-state > div {
  padding-left: 0;
  padding-right: 0;
}

.footer-line {
  background: linear-gradient(to left, #c91f1f 50%, transparent 0%) repeat-x 0 0 / 88px 10px;
  filter: drop-shadow(0 0 3px rgba(201, 31, 31, 0.55));
}

.sidebar-top-taichi {
  background-color: var(--red-1);
}

.mastodon-comments {
  margin-top: 32px;
}

.mastodon-comments .comment-content {
  background: var(--color-wrap);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.mastodon-comment {
  border-bottom: 1px solid var(--red-4);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.mastodon-comment:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.mastodon-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mastodon-comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.mastodon-comment-author {
  color: var(--red-1);
  font-weight: 700;
}

.mastodon-comment-content p {
  margin: 8px 0;
}

.mastodon-comments-note {
  margin-bottom: 0;
  color: var(--grey-7);
}

@media (max-width: 600px) {
  #header::after {
    display: none;
  }

  #header-title {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }

  #logo {
    font-size: 28px;
    line-height: 1.15;
    max-width: 340px;
    white-space: normal;
    overflow-wrap: normal;
  }

  #subtitle {
    width: 90%;
  }

  #content {
    width: 100vw;
    max-width: 100vw;
  }

  #main {
    min-width: 0;
    width: 100%;
    padding: 0 16px;
  }

  .post-wrapper,
  .post-wrap {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .post-wrap {
    height: 420px;
  }

  .post-info {
    min-width: 0;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 22px 20px 34px;
  }

  .post-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 14px;
    width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
  }

  .post-meta span {
    margin: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .post-title,
  .post-article {
    width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
  }

  .post-article {
    display: none !important;
    max-height: 64px;
    overflow: hidden;
    line-height: 32px;
  }
}
