/* 修改字体 */
@font-face {
  font-family: 'JinBuTi';  /* 定义字体名称 */
  src: url('/static/font/DingTalk-JinBuTi.woff2') format('woff2');  /* 字体文件路径及格式 */
  font-weight: normal;  /* 字体粗细 */
  font-style: normal;   /* 字体样式 */
}

@font-face {
  font-family: 'Dank Mono';  /* 定义字体名称 */
  src: url('/static/font/DankMono-Regular.woff2') format('woff2');  /* 字体文件路径及格式 */
  font-weight: normal;  /* 字体粗细 */
  font-style: normal;   /* 字体样式 */
}
/* 修改主页字体和字体大小 */
/* 修改第一处 - 网站标题 */
#site-name .title {
    font-size: 2.0rem !important;
}

/* 修改第二处 - 作者描述文本 */
.author-info__description {
    font-size: 1.2rem !important;
}

/* 如果想单独设置某些元素的字体，可以更具体地指定 */
#footer-bar .copyright {
    font-family: 'Zhi Mang Xing', 'Permanent Marker', cursive !important;
    font-size: 1.2rem !important;
}

#footer-bar .footer-bar-link {
    font-family: 'Zhi Mang Xing', 'Permanent Marker', cursive !important;
    font-size: 1.2rem !important;
}

/* 页面名称字体样式 */
/* #name-container #page-name {
    font-family: 'Permanent Marker', 'Zhi Mang Xing', cursive !important;
    font-size: 1.5rem !important;
} */

/* 去除主页遮罩，修改黑暗模式下背景颜色 针对主要容器元素 */
#blog-container,
.layout,
#content-inner,
.recent-posts,
body,
#page {
    filter: none !important;
    opacity: 1 !important;
    background: var(--anzhiyu-background) !important;
}

/* 移除可能的遮罩层 */
#blog-container::before,
#blog-container::after,
.layout::before,
.layout::after,
#content-inner::before,
#content-inner::after {
    display: none !important;
    background: none !important;
    opacity: 1 !important;
}

/* 确保背景色直接应用 */
:root[data-theme='dark'] {
    --anzhiyu-background: #18171d !important; /* 你想要的背景色 */
    --anzhiyu-theme-op-deep:#562d96dd !important;
}

:root[data-theme="light"] {
  --anzhiyu-theme-op-deep:#f3a694dd !important;
}

[data-theme="dark"] .recent-post-info.no-cover{
  background: #1a1c20;
}

[data-theme="dark"] #categoryBar{
  background: #1a1c20;
}

[data-theme="dark"] #category-bar.category-bar {
  background: #1a1c20;
}

/* 当页面未滚动时（header 没有 nav-fixed 类） */
[data-theme="dark"] #page-header:not(.nav-fixed) #nav {
  background-color: #18171d;
}

/* 当页面滚动后（header 具有 nav-fixed 类） */
[data-theme="dark"] #page-header.nav-fixed #nav {
  background-color: #1a1c20;
}

[data-theme="dark"] #bbTimeList {
  background: #1a1c20 !important;
}

[data-theme="dark"] #footer-wrap {
  background: rgb(23,23,29);
  background: linear-gradient(to bottom, #18171d, #1c1e22);
}

/* 历史上的今天卡片 */
div#history-baidu {
  margin-left: 10px;
}

[data-theme="dark"] .history_slide {
  background: #1d1e22;
}

.history_slide_link {
  font-size: 1rem;
}

.card-widget.card-history {
  height: 140px;
}

#history-container {
  height: 85px !important;
}

/* 推荐页的标题文字大小 */
.relatedPosts .headline {
  font-size: 1.2rem !important;
}