/* 变量与通用 */
:root {
  --trans-light: rgba(255, 255, 255, 0.90);
  --trans-dark: rgba(25, 25, 25, 0.90);
  --border-style: 1px solid rgb(169, 169, 169);
  --backdrop-filter: none;
}

/* 头部与底部背景 */
#footer {
  background: transparent !important;
}

#page-header {
  background: transparent !important;
}

#footer::before {
  background: transparent !important;
}

#page-header::before {
  background: transparent !important;
}

[data-theme=dark] #footer::before {
  background: transparent !important;
}

[data-theme=dark] #page-header::before {
  background: transparent !important;
}

/* 资料卡按钮 */
#aside-content>.card-widget.card-info>#card-info-btn {
  background-color: #35a360;
  border-radius: 30px;
}

/* 动画（亮/暗主题差异） */
[data-theme=light] #post-info,
[data-theme=light] #site-name,
[data-theme=light] #site-subtitle,
[data-theme=light] #site-title {
  animation: none;
}

[data-theme=dark] #site-name,
[data-theme=dark] #site-title {
  animation: light_15px 10s linear infinite;
}

[data-theme=dark] #site-subtitle {
  animation: light_10px 10s linear infinite;
}

[data-theme=dark] #post-info {
  animation: light_5px 10s linear infinite;
}

/* 文字光效动画 */
@keyframes light_15px {
  0% {
    text-shadow: #5636ed 0 0 15px;
  }

  12.5% {
    text-shadow: #11ee5e 0 0 15px;
  }

  25% {
    text-shadow: #f14747 0 0 15px;
  }

  37.5% {
    text-shadow: #f1a247 0 0 15px;
  }

  50% {
    text-shadow: #f1ee47 0 0 15px;
  }

  50% {
    text-shadow: #b347f1 0 0 15px;
  }

  62.5% {
    text-shadow: #002afa 0 0 15px;
  }

  75% {
    text-shadow: #ed709b 0 0 15px;
  }

  87.5% {
    text-shadow: #39c5bb 0 0 15px;
  }

  100% {
    text-shadow: #5636ed 0 0 15px;
  }
}

@keyframes light_10px {
  0% {
    text-shadow: #5636ed 0 0 10px;
  }

  12.5% {
    text-shadow: #11ee5e 0 0 10px;
  }

  25% {
    text-shadow: #f14747 0 0 10px;
  }

  37.5% {
    text-shadow: #f1a247 0 0 10px;
  }

  50% {
    text-shadow: #f1ee47 0 0 10px;
  }

  50% {
    text-shadow: #b347f1 0 0 10px;
  }

  62.5% {
    text-shadow: #002afa 0 0 10px;
  }

  75% {
    text-shadow: #ed709b 0 0 10px;
  }

  87.5% {
    text-shadow: #39c5bb 0 0 10px;
  }

  100% {
    text-shadow: #5636ed 0 0 10px;
  }
}

@keyframes light_5px {
  0% {
    text-shadow: #5636ed 0 0 5px;
  }

  12.5% {
    text-shadow: #11ee5e 0 0 5px;
  }

  25% {
    text-shadow: #f14747 0 0 5px;
  }

  37.5% {
    text-shadow: #f1a247 0 0 15px;
  }

  50% {
    text-shadow: #f1ee47 0 0 5px;
  }

  50% {
    text-shadow: #b347f1 0 0 5px;
  }

  62.5% {
    text-shadow: #002afa 0 0 5px;
  }

  75% {
    text-shadow: #ed709b 0 0 5px;
  }

  87.5% {
    text-shadow: #39c5bb 0 0 5px;
  }

  100% {
    text-shadow: #5636ed 0 0 5px;
  }
}

/* 分页与导航菜单 */
#pagination {
  width: 100%;
  margin: auto;
}

#nav .menus_items {
  position: absolute !important;
  width: fit-content !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

#nav .menus_items .menus_item:hover .menus_item_child {
  display: flex !important;
}

.menus_items .menus_item:nth-child(2) .menus_item_child {
  left: -125px;
}

/* FPS 标识 */
#fps {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1919810;
}

[data-theme=light] #fps {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--backdrop-filter);
  padding: 5px;
  border-radius: 8px;
}

[data-theme=dark] #fps {
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: var(--backdrop-filter);
  padding: 5px;
  border-radius: 8px;
}

/* 欢迎信息 */
#welcome-info {
  background: linear-gradient(-45deg, #c0f2e3, #dbe1e9);
  border-radius: 12px;
  padding: 6px;
}

[data-theme=dark] #welcome-info {
  background: #212121;
}

/* 雪花层 */
[data-theme=light] #snow {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

[data-theme=dark] #snow {
  display: none;
}

/* 新年卡片 */
#newYear {
  color: #a9a6a6;
  padding: 0 !important;
}

#newYear h3,
#newYear p {
  font-weight: 400;
  color: inherit;
  margin: 0;
}

#newYear .item-headline {
  display: none;
}

#newYear-main {
  min-height: 160px;
  padding: 1rem;
  position: relative;
  border-radius: 12px;
  background-image: url(https://tuchuang.voooe.cn/images/2023/01/02/tunian.webp);
  background-size: cover;
  background-position: center;
}

#newYear-main * {
  position: relative;
  line-height: 1.3;
}

#newYear-main .newYear-time {
  font-weight: 700;
  text-align: center;
}

#newYear-main .happyNewYear,
#newYear-main .time {
  font-size: 3.5rem;
  margin: 1rem 0;
  display: block;
}

#newYear-main .day {
  font-size: 4.5rem;
  color: #f3e8c2;
}

#newYear-main .day .unit {
  font-size: 1rem;
}

#newYear-main .mask {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
}

#newYear .title {
  font-size: 1rem;
  color: #f3e8c2;
}

#newYear .today {
  font-size: 1rem;
  color: #f3e8c2;
}

/* 字体 */
@font-face {
  font-family: myFont;
  src: url(https://statics.liuhengfeng.xyz/font/DFPKingGothicGB-Regular.woff2);
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: CodeFont;
  src: url(https://statics.liuhengfeng.xyz/font/JetBrainsMono-Regular.woff2);
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 布局 */
.layout {
  max-width: 1500px;
}

.aside-content {
  max-width: 315px;
  min-width: 300px;
}

@media screen and (max-width: 900px) {
  .aside-content {
    max-width: none !important;
    padding: 0 5px 0 5px;
  }
}

/* 卡片与文章容器 */
#recent-posts>.recent-post-item {
  background: var(--trans-light);
  backdrop-filter: var(--backdrop-filter);
  border-radius: 15px;
  border: var(--border-style);
}

#aside-content .card-widget {
  background: var(--trans-light);
  backdrop-filter: var(--backdrop-filter);
  border-radius: 18px;
  border: var(--border-style);
}

div#archive,
div#page,
div#post {
  background: var(--trans-light);
  backdrop-filter: var(--backdrop-filter);
  border: var(--border-style);
  border-radius: 20px;
}

/* 顶部吸附时的导航背景 */
#page-header.nav-fixed #nav {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--backdrop-filter);
}

[data-theme=dark] #page-header.nav-fixed #nav {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* 暗色主题下的卡片背景 */
[data-theme=dark] #aside-content .card-widget,
[data-theme=dark] #recent-posts>.recent-post-item,
[data-theme=dark] div#archive,
[data-theme=dark] div#page,
[data-theme=dark] div#post {
  background: var(--trans-dark);
}

[data-theme=dark] #footer::before {
  background: transparent !important;
}

[data-theme=dark] #page-header::before {
  background: transparent !important;
}

/* 阅读模式 */
.read-mode #aside-content .card-widget {
  background: rgba(158, 204, 171, 0.5) !important;
}

.read-mode div#post {
  background: rgba(158, 204, 171, 0.5) !important;
}

[data-theme=dark] .read-mode #aside-content .card-widget {
  background: rgba(25, 25, 25, 0.9) !important;
  color: #fff;
}

[data-theme=dark] .read-mode div#post {
  background: rgba(25, 25, 25, 0.9) !important;
  color: #fff;
}

/* 标签云 */
#aside-content .card-tag-cloud a {
  border: 1px solid;
  line-height: 1.5;
  border-radius: 6px;
  margin: 3px;
  padding: 0 5px;
}

.tag-cloud-list a {
  border: 1px solid;
  line-height: 1.5;
  border-radius: 6px;
  padding: 5px 15px;
  font-size: 1.2rem;
  margin: 5px;
}

/* 加载占位图 */
.loading-img {
  background: url(https://statics.liuhengfeng.xyz/Hexo/u%3D1968668429%2C2104382916%26fm%3D253%26fmt%3Dauto%26app%3D138%26f%3DJPEG.webp) no-repeat center center;
  background-size: cover;
}

/* 资料卡背景图（亮/暗） */
[data-theme=light] #aside-content>.card-widget.card-info {
  background-image: url(http://statics.liuhengfeng.xyz/Hexo/07f44d271ae9299e2f920ab0fd128590.png);
  background-repeat: no-repeat;
  background-attachment: inherit;
  background-size: 100%;
}

[data-theme=dark] #aside-content>.card-widget.card-info {
  background-image: url(https://statics.liuhengfeng.xyz/Hexo/universe.webp);
  background-repeat: no-repeat;
  background-attachment: inherit;
  background-size: 100%;
}

/* 作者信息样式（亮/暗） */
[data-theme=light] .author-info__description {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

[data-theme=light] .author-info__name {
  font-weight: 800 !important;
  font-size: 2.0em !important;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

[data-theme=light] .card-info-data.site-data.is-center.wow.animate__backInLeft *,
[data-theme=light] .card-info-social-icons.is-center.wow.animate__backInLeft i {
  color: #5a0be5 !important;
}

[data-theme=dark] .author-info__description {
  font-size: 15px !important;
  font-weight: 800 !important;
}

[data-theme=dark] .author-info__name {
  font-weight: 800 !important;
  font-size: 2em !important;
}

[data-theme=dark] .card-info-data.site-data.is-center.wow.animate__backInLeft * {
  color: #be370e !important;
}

/* 头像呼吸动画 */
[data-theme=light] .avatar-img {
  animation: huxi_light 4s ease-in-out infinite;
}

[data-theme=dark] .avatar-img {
  animation: huxi_dark 4s ease-in-out infinite;
}

@keyframes huxi_light {
  0% {
    box-shadow: 0 0 1px 1px #e9f5fa;
  }

  50% {
    box-shadow: 0 0 5px 5px #e9f5fa;
  }

  100% {
    box-shadow: 0 0 1px 1px #e9f5fa;
  }
}

@keyframes huxi_dark {
  0% {
    box-shadow: 0 0 1px 1px #39c5bb;
  }

  50% {
    box-shadow: 0 0 5px 5px #39c5bb;
  }

  100% {
    box-shadow: 0 0 1px 1px #39c5bb;
  }
}

/* 让星空背景不拦截鼠标 */
#universe {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}