/* 1. 自定义字体（Candyhome 可选，当前注释） */
@font-face {
    font-family: Candyhome;
    src: url(https://cdn.cbd.int/anzhiyu-blog@latest/fonts/Candyhome.ttf);
    font-display: swap;
    font-weight: lighter;
}

/* 2. 自定义字体（ZhuZiYuanJWD 朱子圆体） */
@font-face {
    font-family: ZhuZiYuanJWD;
    src: url(https://cdn.cbd.int/anzhiyu-blog@latest/fonts/ZhuZiAWan.woff2);
    font-display: swap;
    font-weight: lighter;
}

/* 3. 引入谷歌字体（ZCOOL KuaiLe 快乐乐） */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

/* 4. 导航菜单字体 */
div#menus {
    font-family: 'ZhuZiYuanJWD';
}

/* 5. 站点标题字体 & 大小 */
h1#site-title {
    font-family: ZhuZiYuanJWD;
    font-size: 3em !important;
}

/* 6. 文章标题、分类栏链接、文章卡片标题字体 */
a.article-title,
a.blog-slider__title,
a.categoryBar-list-link,
h1.post-title {
    font-family: ZhuZiYuanJWD;
}

/* 7. 图标字体（iconfont）配置 */
.iconfont {
    font-family: 'iconfont' !important;
    font-size: 3em;
    /* 图标大小可自定义 */
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 8. 时间轴生肖 icon 样式（避免与 Butterfly note 标签冲突） */
svg.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 9. 特定 icon 颜色（如“钟表”icon） */
.icon-zhongbiao::before {
    color: #f7c768;
}

/* 10. Bilibili 番剧插件样式 */
.bangumi-active {
    background: #dbecfe !important;
    border-radius: 10px !important;
}
.a.bangumi-tab:hover {
    text-decoration: none !important;
}
.bangumi-button:hover {
    background: #dbecfe !important;
    border-radius: 10px !important;
}
.bangumi-button.bangumi-nextpage:hover {
    text-decoration: none !important;
}
.bangumi-button {
    padding: 5px 10px !important;
}
.a.bangumi-tab {
    padding: 5px 10px !important;
}
svg.icon.faa-tada {
    font-size: 1.1em;
}

/* 11. 解决 artalk 图标问题 */
#uploadSource > svg {
    width: 1.19em;
    height: 1.5em;
}

/* 12. Top-img 黑色透明玻璃效果移除（可选，需背景对比明显时用） */
#page-header:not(.not-top-img):before {
    background-color: transparent !important;
}

/* 12.1 顶部banner区域透明，显示背景图 */
#page-header {
    background: transparent !important;
}
#page-header::before {
    background: transparent !important;
}

/* 13. 首页文章卡片背景（半透明白色） */
#recent-posts > .recent-post-item {
    background: rgba(255, 255, 255, 0.9);
}

/* 14. 首页侧边栏卡片背景（半透明白色） */
aside-content .card-widget {
    background: rgba(255, 255, 255, 0.9);
}

/* 15. 文章页面正文背景（半透明白色） */
div#post {
    background: rgba(255, 255, 255, 0.9);
}

/* 16. 分页页面背景（半透明白色） */
div#page {
    background: rgba(255, 255, 255, 0.9);
}

/* 17. 归档页面背景（半透明白色） */
div#archive {
    background: rgba(255, 255, 255, 0.9);
}

/* 18. 标签页面背景（半透明白色） */
div#tag {
    background: rgba(255, 255, 255, 0.9);
}

/* 19. 分类页面背景（半透明白色） */
div#category {
    background: rgba(255, 255, 255, 0.9);
}

/* 20. 夜间模式：伪类遮罩层透明 */
[data-theme='dark'] #recent-posts > .recent-post-item {
    background: #121212;
}
[data-theme='dark'] .card-widget {
    background: #121212 !important;
}
[data-theme='dark'] div#post {
    background: #121212 !important;
}
[data-theme='dark'] div#page {
    background: #121212 !important;
}
[data-theme='dark'] div#archive {
    background #121212 !important:;
}
[data-theme='dark'] div#category {
    background: transparent !important;
}
[data-theme='dark'] div# {
    background: #121tag212 !important;
}
[data-theme='dark'] #footer {
    background: transparent !important;
}
[data-theme='dark'] #page-header {
    background: transparent !important;
}

/* 21. 右侧按钮圆角 */
#rightside > div > button {
    border-radius: 5px;
}

/* 22. 滚动条样式（WebKit 内核） */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: #49b1f5;
    border-radius: 2em;
}
::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* 23. 文本选中样式 */
::-moz-selection {
    color: #fff;
    background-color: #49b1f5;
}

/* 24. 音乐播放器（APlayer）样式 */
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
    left: -66px !important;
    transition: all 0.3s;
}
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body:hover {
    left: 0 !important;
    transition: all 0.3s;
}
.aplayer.aplayer-fixed {
    z-index: 999999 !important;
}

/* 25. 评论框（Valine/Waline 等）样式 */
.vwrap {
    box-shadow: 2px 2px 5px #bbb;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0px 30px 0px;
}
.vcard {
    box-shadow: 2px 2px 5px #bbb;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0px 30px 0px;
}
#article-container a:hover {
    text-decoration: none !important;
}
#article-container #hpp_talk p img {
    display: inline;
}

/* 26. 鼠标指针自定义 */
body {
    cursor: url('/img/x1.cur'), auto;
}
element[type="reset"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
    cursor: url('/img/x2.cur'), auto !important;
}

/* 27. MD 网站下划线（ hover 时） */
#article-container a:hover {
    text-decoration: none !important;
}

/* 28. 404 页面样式 */
#error-wrap {
    position: absolute;
    top: 40%;
    right: 0;
    left: 0;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1000px;
    transform: translateY(-50%);
}
#error-wrap .error-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 1rem;
    height: 18rem;
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: var(--card-box-shadow);
    transition: all 0.3s;
}
#error-wrap .error-content .error-img {
    box-flex: 1;
    flex: 1;
    height: 100%;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background-color: #49b1f5;
    background-position: center;
    background-size: cover;
}
#error-wrap .error-content .error-info {
    box-flex: 1;
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    font-size: 14px;
    font-family: Titillium Web, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif;
}
#error-wrap .error-content .error-info .error_title {
    margin-top: -4rem;
    font-size: 9em;
}
#error-wrap .error-content .error-info .error_subtitle {
    margin-top: -3.5rem;
    word-break: break-word;
    font-size: 1.6em;
}
#error-wrap .error-content .error-info a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 1.5rem;
    background: var(--btn-bg);
    color: var(--btn-color);
}
#body-wrap.error .aside-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0.5rem;
    bottom: 0px;
    position: absolute;
    padding: 1rem;
    width: 100%;
    overflow: scroll;
}
#body-wrap.error .aside-list .aside-list-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0.5rem;
}
#body-wrap.error .aside-list .aside-list-item {
    padding: 0.5rem;
}
#body-wrap.error .aside-list .aside-list-item .thumbnail {
    overflow: hidden;
    width: 230px;
    height: 143px;
    background: var(--heo-card-bg);
    display: flex;
}
#body-wrap.error .aside-list .aside-list-item .content .title {
    -webkit-line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    justify-content: center;
    align-items: flex-end;
    align-content: center;
    padding-top: 0.5rem;
    color: #fff;
}
#body-wrap.error .aside-list .aside-list-item .content time {
    display: none;
}
#body-wrap.error .aside-list .aside-list-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 29. 代码框主题（ highlight.js ） */
#article-container figure.highlight {
    border-radius: 10px;
}