.topic-hero {
  margin: 0 0 1rem;
  padding: 1rem 0;
}

.topic-hero p {
  margin: 0;
  color: var(--efu-fontcolor);
  line-height: 1.8;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.topic-card,
.topic-post-item {
  border: 1px solid var(--efu-card-border);
  border-radius: 8px;
  background: var(--efu-card-bg);
}

.topic-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  color: inherit;
}

.topic-card strong {
  font-size: 1.08rem;
}

.topic-card span {
  line-height: 1.7;
  color: var(--efu-secondtext);
}

.topic-card em {
  align-self: end;
  font-style: normal;
  color: var(--efu-theme);
}

.topic-post-list {
  display: grid;
  gap: 12px;
}

.topic-post-item {
  padding: 16px;
}

.topic-post-title {
  display: block;
  margin-bottom: 8px;
  color: var(--efu-fontcolor);
  font-weight: 600;
}

.topic-post-item time {
  color: var(--efu-secondtext);
  font-size: .92rem;
}

@media (max-width: 768px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage knowledge-workbench refactor */
html[data-theme="dark"] body {
  background: #111217;
}

#home_top {
  margin-top: .4rem;
}

#home_top .recent-top-post-group {
  border-radius: 8px;
  overflow: visible;
}

#home_top .recent-post-top {
  gap: 12px;
}

#home_top #bannerGroup {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .98), rgba(15, 23, 42, .96) 46%, rgba(15, 118, 110, .9));
  box-shadow: none;
  isolation: isolate;
}

#home_top #bannerGroup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .46;
}

#home_top #banners {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  background: transparent !important;
}

#home_top .banners-title {
  z-index: 2;
  top: 42px;
  left: 44px;
  max-width: 58%;
}

#home_top .banners-title-big {
  color: #f8fafc;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

#home_top .banners-title-small {
  margin-top: 12px;
  color: rgba(226, 232, 240, .76);
  font-size: 14px;
  line-height: 1.6;
}

#home_top .banners-links {
  z-index: 2;
  left: 44px;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(390px, calc(100% - 88px));
  height: auto;
}

#home_top .banners-link-btn {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: none;
  justify-content: flex-start;
}

#home_top .banners-link-btn:not(:last-child) {
  margin-right: 0;
}

#home_top .banners-link-title {
  margin-left: 8px;
  font-size: 14px;
  line-height: 1.2;
}

#home_top .tags-group-all {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  width: 320px;
  height: 320px;
  overflow: hidden;
  opacity: .78;
  pointer-events: none;
}

#home_top .tags-group-wrapper {
  width: 270px !important;
  margin-left: auto !important;
  animation: none !important;
  transform: rotate(-5deg);
}

#home_top .tags-group-icon-pair:nth-child(n+4) {
  display: none;
}

#home_top .tags-group-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

#home_top .tags-group-icon img {
  width: 60%;
}

#home_top .topGroup .todayCard,
#home_top .topGroup .recent-post-item {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: none;
}

#home_top .topGroup .todayCard {
  background: #0f172a;
  overflow: hidden;
}

#home_top .topGroup .todayCard::after {
  z-index: 1;
}

#home_top .topGroup .todayCard .todayCard-cover {
  z-index: 0;
  filter: saturate(.9) brightness(.76);
}

#home_top .topGroup .todayCard .todayCard-info {
  z-index: 2;
  max-width: 70%;
}

#home_top .topGroup .todayCard .banner-button-group {
  z-index: 2;
}

#home_top .topGroup .todayCard .todayCard-tips {
  font-size: 13px;
  letter-spacing: 0;
}

#home_top .topGroup .todayCard .todayCard-title {
  font-size: 30px;
  line-height: 1.2;
}

#home_top .topGroup .banner-button {
  border-radius: 8px;
  background: rgba(248, 250, 252, .18);
}

#category-bar {
  border-radius: 8px;
  box-shadow: none;
}

#category-bar .category-bar-items .category-bar-item a,
#category-bar .category-bar-right .category-bar-more,
#category-bar .category-bar-right .category-bar-next {
  border-radius: 6px;
}

#recent-posts {
  gap: 12px;
}

#swiperBox.recent-post-item {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: none;
}

#swiperBox .blog-slider__item.swiper-slide {
  padding: 18px;
}

#swiperBox .blog-slider__img {
  width: 32%;
  border-radius: 8px;
}

#swiperBox .blog-slider__content {
  width: 68%;
}

#swiperBox .blog-slider__title {
  font-size: 1.28rem;
  line-height: 1.35;
}

#swiperBox .blog-slider__desc {
  -webkit-line-clamp: 2;
  color: var(--efu-secondtext);
}

#recent-posts > .recent-post-item:not(#swiperBox) {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: none;
}

#recent-posts > .recent-post-item:not(#swiperBox):hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

#recent-posts > .recent-post-item:not(#swiperBox) .post_cover {
  flex: 0 0 260px;
  width: 260px;
  height: 170px;
}

#recent-posts > .recent-post-item:not(#swiperBox) .post_cover img.post_bg {
  border-radius: 0;
}

#recent-posts > .recent-post-item:not(#swiperBox) > .recent-post-info {
  min-height: 170px;
  height: auto;
  padding: 18px 0 16px;
}

#recent-posts > .recent-post-item:not(#swiperBox) .recent-post-info-top {
  padding: 0 24px;
}

#recent-posts > .recent-post-item:not(#swiperBox) .recent-post-info-top .article-title {
  font-size: 1.08rem;
  line-height: 1.45;
}

#recent-posts > .recent-post-item:not(#swiperBox) .content {
  -webkit-line-clamp: 2;
  padding: 8px 24px 0;
  color: var(--efu-secondtext);
  font-size: 14px;
  line-height: 1.7;
}

#recent-posts > .recent-post-item:not(#swiperBox) .article-meta-wrap {
  bottom: 16px;
  padding: 0 24px;
}

#aside-content .card-widget {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: none;
}

#aside-content > .card-widget.card-info {
  overflow: hidden;
}

#aside-content > .card-widget.card-info::before {
  background: linear-gradient(135deg, #1f2937, #0f766e) !important;
  animation: none !important;
}

#aside-content > .card-widget.card-info > div.card-content {
  min-height: 252px;
}

#aside-content .card-info .avatar-img-group {
  width: 92px;
  height: 92px;
  right: calc(50% - 46px);
  top: 78px;
  border-width: 3px;
}

#aside-content .card-info .author-info__description_group {
  margin-top: 18px;
}

#aside-content .card-tag-cloud a {
  border-radius: 6px;
}

@media (max-width: 1200px) {
  #home_top #bannerGroup {
    min-height: 328px;
  }

  #home_top .topGroup {
    padding-bottom: 2px;
  }
}

@media (max-width: 768px) {
  #home_top {
    margin-top: 0;
  }

  #home_top .recent-top-post-group {
    border-radius: 0;
  }

  #home_top #bannerGroup {
    min-height: 356px;
    border-radius: 0;
  }

  #home_top .banners-title {
    top: 30px;
    left: 22px;
    max-width: calc(100% - 44px);
  }

  #home_top .banners-title-big {
    font-size: 34px;
  }

  #home_top .banners-links {
    left: 22px;
    bottom: 24px;
    width: calc(100% - 44px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #home_top .tags-group-all {
    top: 28px;
    right: -110px;
    opacity: .16;
  }

  #home_top .topGroup {
    display: none;
  }

  #recent-posts > .recent-post-item:not(#swiperBox) {
    flex-direction: column;
  }

  #recent-posts > .recent-post-item:not(#swiperBox) .post_cover {
    flex: none;
    width: 100%;
    height: 172px;
    order: 1;
  }

  #recent-posts > .recent-post-item:not(#swiperBox) > .recent-post-info {
    min-height: auto;
    padding: 24px 0;
    order: 2;
  }

  #recent-posts > .recent-post-item:not(#swiperBox) .content {
    -webkit-line-clamp: 3;
  }

  #recent-posts > .recent-post-item:not(#swiperBox) .article-meta-wrap {
    position: static;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 24px 0;
    white-space: normal;
  }

  #recent-posts > .recent-post-item:not(#swiperBox) .article-meta-wrap > .article-meta {
    flex-wrap: wrap;
    gap: 4px 8px;
    white-space: normal;
  }

  #recent-posts > .recent-post-item:not(#swiperBox) .article-meta-wrap > .post-meta-date {
    margin-left: auto;
  }
}

/* Static replacement for the retired third-party music player */
.music-static-page {
  max-width: 880px;
  margin: 0 auto;
}

.music-static-page h2 {
  margin-top: 0;
}

.music-static-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.music-static-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--efu-card-border);
  border-radius: 8px;
  background: var(--efu-card-bg);
  color: var(--efu-fontcolor);
  text-decoration: none;
}

.music-static-card:hover {
  border-color: var(--efu-main);
  color: var(--efu-fontcolor);
}

.music-static-card span {
  color: var(--efu-main);
  font-size: 0.85rem;
  font-weight: 700;
}

.music-static-card strong {
  font-size: 1.15rem;
}

.music-static-card small {
  color: var(--efu-secondtext);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .music-static-grid {
    grid-template-columns: 1fr;
  }
}

/* About page cleanup */
#about-page .author-info .author-tag {
  animation: none !important;
  border-radius: 8px;
}

#about-page .author-info .author-img {
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

#about-page .author-content-item {
  border-radius: 8px;
}

#about-page .myInfoAndSayHello {
  background: linear-gradient(135deg, #111827 0%, #0f766e 52%, #2563eb 100%) !important;
  animation: none !important;
}

#about-page .aboutsiteTips {
  background:
    radial-gradient(circle at 78% 22%, rgba(249, 115, 22, .18), transparent 32%),
    var(--efu-card-bg);
}

#about-page .author-content-item.game-apex,
#about-page .author-content-item.game-jl,
#about-page .author-content-item.like-technology,
#about-page .author-content-item.like-music {
  background-position: center !important;
  background-size: cover !important;
}

#about-page .author-content-item.game-apex::after,
#about-page .author-content-item.game-jl::after,
#about-page .author-content-item.like-technology::after,
#about-page .author-content-item.like-music::after {
  box-shadow: inset 0 -120px 180px rgba(2, 6, 23, .55) !important;
}

#about-page .create-site-post {
  border: 1px solid var(--efu-card-border);
}

#about-page .create-site-post b {
  color: var(--efu-main);
}
