/* @font-face {
  font-family: Candyhome;
  src: url(https://npm.elemecdn.com/anzhiyu-blog@1.1.6/fonts/Candyhome.ttf);
  font-display: swap;
  font-weight: lighter;
} */
@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: "ZhuZiAYuanJWD";
}
h1#site-title {
  font-family: ZhuZiAYuanJWD;
  font-size: 3em !important;
}
a.article-title,
a.blog-slider__title,
a.categoryBar-list-link,
h1.post-title {
  font-family: ZhuZiAYuanJWD;
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 3em;
  /* 可以定义图标大小 */
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 时间轴生肖icon */
svg.icon {
  /* 这里定义svg.icon，避免和Butterfly自带的note标签冲突 */
  width: 1em;
  height: 1em;
  /* width和height定义图标的默认宽度和高度*/
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.icon-zhongbiao::before {
  color: #f7c768;
}

/* bilibli番剧插件 */
#article-container .bangumi-tab.bangumi-active {
  background: var(--anzhiyu-theme);
  color: var(--anzhiyu-ahoverbg);
  border-radius: 10px;
}
a.bangumi-tab:hover {
  text-decoration: none !important;
}
.bangumi-button:hover {
  background: var(--anzhiyu-theme) !important;
  border-radius: 10px !important;
  color: var(--anzhiyu-ahoverbg) !important;
}
a.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;
}
.bangumi-info-item {
  border-right: 1px solid #f2b94b;
}
.bangumi-info-item span {
  color: #f2b94b;
}
.bangumi-info-item em {
  color: #f2b94b;
}

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

/*top-img黑色透明玻璃效果移除，不建议加，除非你执着于完全一图流或者背景图对比色明显 */
#page-header:not(.not-top-img):before {
  background-color: transparent !important;
}

/* 首页文章卡片 */
#recent-posts > .recent-post-item {
  background: rgba(255, 255, 255, 0.9);
}

/* 首页侧栏卡片 */
#aside-content .card-widget {
  background: rgba(255, 255, 255, 0.9);
}

/* 文章页面正文背景 */
div#post {
  background: rgba(255, 255, 255, 0.9);
}

/* 分页页面 */
div#page {
  background: rgba(255, 255, 255, 0.9);
}

/* 归档页面 */
div#archive {
  background: rgba(255, 255, 255, 0.9);
}

/* 标签页面 */
div#tag {
  background: rgba(255, 255, 255, 0.9);
}

/* 分类页面 */
div#category {
  background: rgba(255, 255, 255, 0.9);
}

/*夜间模式伪类遮罩层透明*/
[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#tag {
  background: #121212 !important;
}

[data-theme="dark"] div#archive {
  background: #121212 !important;
}

[data-theme="dark"] div#page {
  background: #121212 !important;
}

[data-theme="dark"] div#category {
  background: #121212 !important;
}

[data-theme="dark"] div#category {
  background: transparent !important;
}
/* 页脚透明 */
#footer {
  background: transparent !important;
}

/* 头图透明 */
#page-header {
  background: transparent !important;
}

#rightside > div > button {
  border-radius: 5px;
}

/* 滚动条 */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #3b70fc;
  border-radius: 2em;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

::-moz-selection {
  color: #fff;
  background-color: #3b70fc;
}

/* 音乐播放器 */

/* .aplayer .aplayer-lrc {
  display: none !important;
} */

.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
  left: -66px !important;
  transition: all 0.3s;
  /* 默认情况下缩进左侧66px，只留一点箭头部分 */
}

.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body:hover {
  left: 0 !important;
  transition: all 0.3s;
  /* 鼠标悬停是左侧缩进归零，完全显示按钮 */
}

.aplayer.aplayer-fixed {
  z-index: 999999 !important;
}

/* 评论框  */
.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 0px 0px;
}

/* md网站下划线 */
#article-container a:hover {
  text-decoration: none !important;
}

#article-container #hpp_talk p img {
  display: inline;
}

/* 404页面 */
#error-wrap {
  position: absolute;
  top: 40%;
  right: 0;
  left: 0;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1000px;
  transform: translate(0, -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: #3b70fc;
  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;
  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;
  max-width: 1200px;
  margin: 0 auto;
}

#body-wrap.error .aside-list .aside-list-item {
  padding: 0.5rem;
}

#body-wrap.error .aside-list .aside-list-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

#body-wrap.error .aside-list .aside-list-item .thumbnail {
  overflow: hidden;
  width: 230px;
  height: 143px;
  background: var(--anzhiyu-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: white;
}

#body-wrap.error .aside-list .aside-list-item .content time {
  display: none;
}

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

/* 自定义Footer样式 */
.footer-custom {
  text-align: center;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-motto {
  font-size: 1.1em;
  font-style: italic;
  color: #f2b94b;
  margin-bottom: 15px;
  font-family: "ZhuZiAYuanJWD", serif;
}

.footer-info {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-info span {
  color: #999;
  font-size: 0.9em;
}

.footer-info i {
  margin-right: 5px;
  color: #f2b94b;
}

.footer-social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social a, .footer-social span {
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
}

.footer-social a:hover {
  color: #f2b94b;
  background: rgba(242, 185, 75, 0.1);
  transform: translateY(-2px);
}

.footer-social i {
  margin-right: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .footer-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-social {
    gap: 10px;
  }
  
  .footer-motto {
    font-size: 1em;
  }
}

/* 卡片式现代风格 - 明亮背景适配 */

/* Footer半透明无缝设计 */
.footer-custom {
  background: rgba(255, 255, 255, 0.75) !important;
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  margin: 0;
  padding: 30px;
}

.footer-motto {
  color: #2c3e50 !important;
  font-weight: 600;
  font-size: 1.1em;
}

.footer-info span {
  color: #5a6c7d !important;
  font-weight: 400;
}

.footer-social a, .footer-social span {
  color: #5a6c7d !important;
  font-weight: 400;
}

.footer-social a:hover {
  color: #3498db !important;
  background: rgba(52, 152, 219, 0.1) !important;
  transform: translateY(-2px);
}

/* 导航栏半透明设计 */
#nav {
  background: rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border: none;
}

/* 导航栏菜单项 */
#nav .menus_items .menus_item a {
  color: #2c3e50 !important;
  background: transparent !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 0 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#nav .menus_items .menus_item a:hover {
  background: rgba(52, 152, 219, 0.1) !important;
  color: #3498db !important;
  transform: translateY(-1px);
}

/* 网站标题 */
#site-title {
  color: #2c3e50 !important;
  font-weight: 700;
  text-shadow: none;
}

/* 副标题 */
#site_sub_title {
  color: #7f8c8d !important;
  font-weight: 400;
  text-shadow: none;
}

/* 右侧按钮卡片式 */
#rightside > div > button {
  background: #ffffff !important;
  color: #5a6c7d !important;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#rightside > div > button:hover {
  background: #3498db !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* 主要内容区域卡片 */
#recent-posts > .recent-post-item {
  background: #ffffff !important;
  border-radius: 15px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

#recent-posts > .recent-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 侧边栏卡片 */
#aside-content .card-widget {
  background: #ffffff !important;
  border-radius: 15px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  border: none;
  margin-bottom: 25px;
}

/* 文章页面卡片 */
div#post {
  background: #ffffff !important;
  border-radius: 15px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  border: none;
}

/* 其他页面卡片 */
div#page, div#archive, div#tag, div#category {
  background: #ffffff !important;
  border-radius: 15px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  border: none;
}

/* 深色文字确保可读性 */
.recent-post-item .recent-post-info .article-title,
.card-widget-title,
#article-container h1, #article-container h2, #article-container h3,
#article-container p,
.card-content {
  color: #2c3e50 !important;
  text-shadow: none;
}

/* 文章摘要文字 */
.recent-post-item .recent-post-info .content {
  color: #5a6c7d !important;
}

/* 卡片标题 */
.card-widget .card-widget-title {
  color: #2c3e50 !important;
  font-weight: 600;
}

/* 链接颜色 */
a {
  color: #3498db !important;
}

a:hover {
  color: #2980b9 !important;
}

/* Footer完全无缝贴边设计 */
#footer {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}

#footer-wrap {
  padding: 40px 0 !important; /* 移除左右padding，保留上下padding */
  margin: 0 !important;
  width: 100% !important;
}

/* Footer半透明设计 */
.footer-custom {
  background: rgba(255, 255, 255, 0.75) !important;
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  margin: 0;
  margin-bottom: 0 !important;
  padding: 30px 20px; /* 在自定义内容区域保留左右内边距 */
  padding-bottom: 30px !important;
}

/* 确保页面底部完全无间隙 */
html, body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#body-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#footer-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}