/* 自定义字体定义 */
@font-face {
  font-family: 'JinBuTi';
  src: url('/fonts/DingTalk JinBuTi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* 优化字体加载性能 */
}

@font-face {
  font-family: 'CustomFont';
  src: url('/fonts/CustomFont.woff2') format('woff2'),
    url('/fonts/CustomFont.woff') format('woff'),
    url('/fonts/CustomFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 全局字体设置 - 将JinBuTi应用到整个网站 */
* {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 保护Font Awesome图标字体不被覆盖 */
.fas,
.far,
.fab,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-brands,
.fa-light,
.fa-duotone,
[class^="fa-"],
[class*=" fa-"],
.solitude[class^="fa"],
.solitude[class*=" fa"],
i[class^="fa"],
i[class*=" fa"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
  font-weight: 900 !important;
}

/* 确保所有文本元素都使用JinBuTi字体 */
html,
body {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 为博客标题应用自定义字体 */
.site-title {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 为文章标题应用自定义字体 */
.post-title,
.archive-post-title {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

.card-widget {
  padding: 10px !important;
  max-height: calc(100vh - 100px);
}

.card-times a,
.card-times div {
  color: var(--efu-fontcolor);
}

#card-widget-calendar .item-content {
  display: flex;
}

#calendar-area-left {
  width: 45%;
}

#calendar-area-right {
  width: 55%;
}

#calendar-area-left,
#calendar-area-right {
  height: 150px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

#calendar-main {
  width: 100%;
  min-height: 120px;
}

#calendar-week {
  height: 1.2rem;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

#calendar-date {
  height: 3rem;
  line-height: 1;
  font-size: 48px;
  letter-spacing: 2px;
  color: var(--efu-main);
  font-weight: 700;
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 5px 0;
}

#calendar-lunar,
#calendar-solar {
  height: 1rem;
  font-size: 10px;
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

#calendar-solar {
  margin-bottom: 3px;
}

#calendar-lunar {
  color: var(--efu-secondtext);
}

#calendar-main a {
  height: 0.8rem;
  width: 0.8rem;
  border-radius: 50%;
  font-size: 10px;
  line-height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--efu-fontcolor);
}

#calendar-main a.now {
  background: var(--efu-main);
  color: var(--efu-card-bg);
  font-weight: bold;
}

#calendar-main .calendar-rh a {
  color: var(--efu-secondtext);
}

.calendar-r0,
.calendar-r1,
.calendar-r2,
.calendar-r3,
.calendar-r4,
.calendar-r5,
.calendar-rh {
  height: 1rem;
  display: flex;
  margin-bottom: 2px;
}

.calendar-d0,
.calendar-d1,
.calendar-d2,
.calendar-d3,
.calendar-d4,
.calendar-d5,
.calendar-d6 {
  width: calc(100% / 7);
  display: flex;
  justify-content: center;
  align-items: center;
}

#card-widget-schedule .item-content {
  display: flex;
}

#schedule-area-left,
#schedule-area-right {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#schedule-area-left {
  width: 30%;
}

#schedule-area-right {
  width: 70%;
  padding: 0 5px;
}

.schedule-r0,
.schedule-r1,
.schedule-r2 {
  height: 2rem;
  width: 100%;
  align-items: center;
  display: flex;
}

.schedule-d0 {
  width: 30px;
  margin-right: 5px;
  text-align: center;
  font-size: 12px;
}

.schedule-d1 {
  width: calc(100% - 35px);
  height: 1.5rem;
  align-items: center;
  display: flex;
  position: relative;
}

progress::-webkit-progress-bar {
  background: linear-gradient(to right, var(--efu-main-op-deep), var(--efu-main-op), var(--efu-main-op-light));
  border-radius: 5px;
  overflow: hidden;
}

progress::-webkit-progress-value {
  background: var(--efu-main);
  border-radius: 5px;
}

.aside-span1,
.aside-span2 {
  height: 1rem;
  font-size: 11px;
  z-index: 1;
  display: flex;
  align-items: center;
  position: absolute;
  line-height: 1;
}

.aside-span1 {
  left: 5px;
  color: var(--efu-text);
  max-width: calc(50% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aside-span2 {
  right: 2px;
  color: var(--efu-secondtext);
  font-size: 10px;
  white-space: nowrap;
  max-width: calc(50% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.aside-span2 a {
  margin: 0 3px;
}

#pBar_month,
#pBar_week,
#pBar_year {
  width: 100%;
  border-radius: 5px;
  height: 100%;
}

#schedule-date,
#schedule-days,
#schedule-title {
  display: flex;
  align-items: center;
}

#schedule-title {
  height: 25px;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
}

#schedule-days {
  height: 40px;
  line-height: 1;
  font-size: 30px;
  font-weight: 900;
  color: var(--efu-main);
}

#schedule-date {
  height: 20px;
  line-height: 1;
  font-size: 12px;
  color: var(--efu-secondtext);
}

/* 额外的字体应用示例 */
/* 卡片标题使用自定义字体 */
.card-widget .card-title {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 导航菜单使用自定义字体 */
.menus_items {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 页面标题使用自定义字体 */
.page-title {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 标签云使用自定义字体 */
.tags-cloud a {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 归档页面月份标题使用自定义字体 */
.archive-month {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 增强左上角汉堡菜单图标的可见性 */
.back-home-button i {
  color: var(--efu-fontcolor) !important;
  opacity: 0.8 !important;
  font-weight: bold !important;
}

.back-home-button:hover i {
  color: var(--efu-card-bg) !important;
  opacity: 1 !important;
}

/* 在深色模式下进一步增强可见性 */
[data-theme="dark"] .back-home-button i {
  color: var(--efu-fontcolor) !important;
  opacity: 0.9 !important;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}

/* 在浅色模式下增强对比度 */
[data-theme="light"] .back-home-button i {
  color: var(--efu-fontcolor) !important;
  opacity: 0.8 !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

/* 更全面的全局字体设置 - 确保所有元素都使用JinBuTi字体 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
span,
a,
li,
ul,
ol,
input,
textarea,
button,
.nav,
.menu,
.sidebar,
.footer,
.article,
.post,
.page,
.widget,
.card,
.item,
.title,
.content,
.text,
.link,
.btn,
.button,
.meta,
.info,
.desc,
.description {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 确保代码块等特殊元素也应用字体 */
pre,
code,
kbd,
samp {
  font-family: 'JinBuTi', 'Fira Code', 'Consolas', 'Monaco', monospace !important;
}

/* 确保表格元素使用字体 */
table,
th,
td,
tr {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 确保表单元素使用字体 */
select,
option {
  font-family: 'JinBuTi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}


#footer-animal {
    position: relative;
    width: 100%;
}

#footer-animal .animal-wall {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 36px;
    max-width: none;
    background: #bcb0a4 url(https://img.131714.xyz/file/1755670753844_photo.avif/color) repeat center;
    background-size: auto 100%;
    box-shadow: 0 4px 7px rgba(0,0,0,.15);
}

@media screen and (max-width: 1023px) {
    #footer-animal .animal-wall {
        height:4vw
    }
}

#footer-animal img.animal {
    position: relative;
    max-width: min(974px,100vw);
    margin: 0 auto;
    display: block;
}

#footer-bar {
    margin-top: 0 !important;
}

