/* =========================================================
   自定义美化：背景图平铺 + 半透明内容卡
   使用前请把背景图放到 source/img/ 下，并修改下方路径
   ========================================================= */

/* 背景图层由 custom.js 动态创建，此处只保留兜底背景色 */
body {
  background-color: var(--body-bg-color);
  cursor:url(https://cdn.jsdelivr.net/gh/sviptzk/HexoStaticFile@latest/Hexo/img/default.cur),
        default;
}
a,
img {
  cursor:url(https://cdn.jsdelivr.net/gh/sviptzk/HexoStaticFile@latest/Hexo/img/pointer.cur),
        default;
}


/* ---------- 目录块背景跟随正文 board-bg ---------- */
#toc {
  background-color: var(--board-bg-color);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* =========================================================
   滚动触发入场动画（scroll-triggered reveal）
   条目由 custom.js 在「滚入视口的那一帧」才补上 .scroll-in 类，
   与 fetch 下一页完全解耦：数据先静默就位，滚入视口才显形。
   效果：blur 渐清 + 上移归位 + 轻微缩放，同屏条目错峰错落
   ========================================================= */
.index-card.scroll-in,
.list-group > .h5.scroll-in,
.list-group > .list-group-item.scroll-in {
  animation: fluid-scroll-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes fluid-scroll-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* 动效敏感偏好：关闭入场动画，避免模糊/位移造成眩晕 */
@media (prefers-reduced-motion: reduce) {
  .index-card.scroll-in,
  .list-group > .h5.scroll-in,
  .list-group > .list-group-item.scroll-in {
    animation: none;
  }
}

/* =========================================================
   归档/分类/标签页：隐藏分页按钮，仅保留下滑加载
   #pagination 仍需留在 DOM 中供 custom.js 读取下一页链接
   ========================================================= */
#pagination {
  display: none !important;
}


/* =========================================================
   留言板 样式
   ========================================================= */

/* 滚动条隐藏 */
::-webkit-scrollbar {
  display: none;
}
/* 禁用图片点击,butterfly渲染后会给图片套上fancybox，点开后会造成信笺偏移*/
.fancybox{
   pointer-events: none;
}
/* top-img隐藏 */
#page-header {
  background: transparent !important;
}
/* 宽度小于530px隐藏信封 */
@media screen and (max-width: 530px) {
  #computer {
    display: none !important;
  }
}

@media screen and (min-width: 530px) {
  #mobile {
    display: none !important;
  }
}

#article-container img {
  margin: 0 auto 0rem;
}

#form-wrap {
  overflow: hidden;
  height: 447px;
  position: relative;
  top: 0px;
  transition: all 1s ease-in-out .3s;
  z-index: 0;
}
/* 调整信封划出高度，换信笺内容以后可在此设置height */
#form-wrap:hover {
  height: 850px;
  top: -200px;
}

#beforeimg {
  position: absolute;
  bottom: 126px;
  left: 0px;
  background-repeat: no-repeat;
  width: 530px;
  height: 317px;
  z-index: -100;
  pointer-events: none;
}

#afterimg {
  position: absolute;
  bottom: -2px;
  left: 0;
  background-repeat: no-repeat;
  width: 530px;
  height: 259px;
  z-index: 100;
  pointer-events: none;
}

#envelope {
  position: relative;
  overflow: visible;
  width: 500px;
  margin: 0px auto;
  transition: all 1s ease-in-out .3s;
  padding-top: 200px;
}

#maincontent {
  width: 530px;
  margin: 20px auto 0;
}

.headerimg {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.formmain {
  background: var(--board-bg-color);
  width: 95%;
  max-width: 800px;
  margin: auto auto;
  border-radius: 5px;
  border: 1px solid;
  overflow: hidden;
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.12);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.18);
}

.title3 {
  text-decoration: none;
  color: rgb(246, 214, 175);
}

.comments {
  border-bottom: #ddd 1px solid;
  border-left: #ddd 1px solid;
  padding-bottom: 20px;
  background-color: var(--board-bg-color);
  margin: 15px 0px;
  padding-left: 20px;
  padding-right: 20px;
  border-top: #ddd 1px solid;
  border-right: #ddd 1px solid;
  padding-top: 20px;
  font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;
}

.bottomcontent {
  text-align: center;
  margin-top: 40px;
}

.bottomimg {
  width: 100%;
  margin: 5px auto 5px auto;
  display: block;
  pointer-events: none;
}

.bottomhr {
  font-size: 12px;
  text-align: center;
  color: #999;
}
