/* Tona / reacg 主题 · 加载动画
   4 秒后无论主题是否加载成功都会自动隐藏，避免白屏卡死 */
#loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  animation: awescnb-loading-hide 0s linear 4s forwards;
}

#loading .loader-inner {
  width: 44px;
  height: 44px;
  border: 3px solid #ffb3cc;
  border-top-color: transparent;
  border-radius: 50%;
  animation: awescnb-spin 0.8s linear infinite;
}

@keyframes awescnb-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes awescnb-loading-hide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* 博主本人访问时，博客园会渲染一个内容为空的「关注」按钮，隐藏它 */
#p_b_follow:empty {
  display: none;
}

/* 侧边栏头像框是 74×80 的非正方形，默认 fill 会把方图拉变形 */
#blog-news .custom-avatar {
  object-fit: cover;
}

/* 博客园在随笔页底部插入的「【推荐】」广告位（主题没覆盖到的那些） */
#cnblogs_ch,
#cnblogs_c1,
#cnblogs_c2,
#ad_t2,
#bannerbar,
#under_post_news,
#under_post_kb {
  display: none !important;
}
