/* ================== 分类网格布局 ================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.category-card {
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.category-link {
  color: #333;
  text-decoration: none;
}
.card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: #0078e7;
}
.card-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.card-count {
  font-size: 0.95rem;
  color: #666;
}
/* ================== 字体与图标 ================== */
/*
@font-face {
    font-family: ZhuZiAYuanJWD;
    src: url(https://npm.elemecdn.com/anzhiyu-blog@1.1.6/fonts/ZhuZiAWan.woff2);
    font-display: swap;
    font-weight: lighter;
}
*/
div#menus {
  font-family: var(--font-family), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
h1#site-title {
  font-family: var(--font-family-title), Georgia, "Times New Roman", serif;
  font-size: 2.5em !important;
}
a.article-title,
a.blog-slider__title,
a.categoryBar-list-link,
h1.post-title {
  font-family: var(--font-family-heading), Georgia, "Times New Roman", serif;
}
.iconfont {
  font-family: "iconfont" !important;
  font-size: 1em;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
svg.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
.icon-zhongbiao::before {
  color: #f7c768;
}
/* ================== 布局与卡片 ================== */
#page-header:not(.not-top-img):before {
  background-color: transparent !important;
}
#recent-posts>.recent-post-item,
#aside-content .card-widget,
div#post,
div#page,
div#archive,
div#tag,
div#category {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
/* ================== 夜间模式 ================== */
[data-theme="dark"] #recent-posts>.recent-post-item,
[data-theme="dark"] .card-widget,
[data-theme="dark"] div#post,
[data-theme="dark"] div#tag,
[data-theme="dark"] div#archive,
[data-theme="dark"] div#page,
[data-theme="dark"] div#category {
  background: rgba(18,18,18,0.85) !important;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-color: #628dfd;
}
/* ================== 全局样式 ================== */
#footer {
  background: transparent !important;
}
#page-header {
  background: transparent !important;
}
#rightside>div>button {
  border-radius: 8px;
  transition: transform 0.2s ease;
}
#rightside>div>button:hover {
  transform: scale(1.05);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: #3b70fc;
  border-radius: 4px;
}
::-webkit-scrollbar-corner {
  background-color: transparent;
}
::-moz-selection {
  color: #fff;
  background-color: #3b70fc;
}
/* 字体加载优化 */
body:not(.fa-fonts-loaded) .fas,
body:not(.fa-fonts-loaded) .far,
body:not(.fa-fonts-loaded) .fab,
body:not(.fa-fonts-loaded) .fa {
  visibility: hidden;
}
.fa-fonts-loaded .fas,
.fa-fonts-loaded .far,
.fa-fonts-loaded .fab,
.fa-fonts-loaded .fa {
  animation: fa-fade-in 0.5s ease;
}
/* 字体加载动画 */
.fonts-loaded .iconfont,
.fonts-loaded .fas,
.fonts-loaded .far,
.fonts-loaded .fab {
  animation: fa-fade-in 0.5s ease;
}
/* ================== 精简移除部分 ================== */
/*
已移除以下未使用或低优先级样式：
- Artitalk 图标特殊处理
- 音乐播放器固定位置样式
- 评论框特殊样式
- 404页面完整样式
- 番剧相关样式
- 重复的夜间模式设置
*/
@-moz-keyframes fa-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fa-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes fa-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fa-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
