[data-theme="light"] {
  --global-bg: #f7f9fe;
}

/* 宽屏适配 */
.page .layout,
.post .layout {
  max-width: 1400px;
}

/* 隐藏侧边栏时设置宽度，默认80% */
html.hide-aside .layout>div:first-child {
  width: 100%;
}


/* 动画wowjs兼容调整 */
.animate__animated {
  -webkit-animation-fill-mode: backwards !important;
  animation-fill-mode: backwards !important;
}

/* 移动端容器padding */
@media screen and (max-width: 768px) {
  #body-wrap .layout #page {
    padding: 20px 15px !important;
  }
}

/* 首页文章宽度 */
@media screen and (max-width: 1200px) {
  .layout>div:first-child {
    width: 100% !important;
  }
}


@media screen and (max-width: 768px) {
  .layout>div:first-child:not(.recent-posts) {
    border-radius: 12px 12px 0 0;
  }
}

.banners-title {
  animation: slide-in 0.6s 0.3s backwards;
}

#algolia-search .search-dialog {
  animation: slide-in 0.6s ease 0s 1 normal none running;
}

@media screen and (min-width: 1200px) {
  #page>div:not(.author-content-item) {
    animation: slide-in 0.6s 0.2s backwards;
  }
}

@media screen and (min-width: 1200px) {
  .author-content-item {
    animation: slide-in 0.6s 0s backwards;
  }
}

/* 波浪css */
.main-hero-waves-area {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -11px;
  z-index: 5;
}

.waves-area .waves-svg {
  width: 100%;
  height: 5rem;
}

/* Animation */

.parallax>use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #f7f9febd;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #f7f9fe82;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #f7f9fe36;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #f7f9fe;
}

/* 黑色模式背景 */
[data-theme="dark"] .parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #18171dc8;
}

[data-theme="dark"] .parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #18171d80;
}

[data-theme="dark"] .parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #18171d3e;
}

[data-theme="dark"] .parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #18171d;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves-area .waves-svg {
    height: 40px;
    min-height: 40px;
  }
}

/* 缩小内容跟顶部的间距 */
.layout {
  padding: 20px 15px
}


/* 侧边栏头像大小 */
.avatar-img {
  width: 148px;
  height: 148px;
  border-radius: 500px;
}

/* 导航栏的位置 */
#nav {
  padding: 0 36px 0 calc((100% - 1400px + 3rem) / 2)
}

/* algolia  */
#algolia-search hr {
  display: none
}

/* 顶部背景透明渐变 */
#page-header {
  background: -webkit-linear-gradient(90deg, #68cfc0, #1cb4ed);
  background: linear-gradient(90deg, #68cfc0, #1cb4ed);
}

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

[data-theme="dark"] .pace .pace-activity {
  background: hsl(196, 84%, 52%, 0.6);
}

/* title字体 */
@font-face {
  font-family: 'EDIX';
  src: url('/font/EDIX.ttf') format("truetype");
}

/* 修改被title换掉的404 字体 */
.error404 #error-wrap .error-content .error-info {
  font-family: unset
}

/* 缩小子标题文字大小 */
@media (min-width: 768px) {
  #page-header #site-subtitle {
    font-size: 1.4em;
  }
}

/* 标题离底部高度 */
#page-header #post-info{
  bottom: 100px
}

/* post 标题 */
#post-info .post-title {
  font-weight: 700;
  font-size: 3.3rem;
  text-align: left;
  margin: 1rem 0 1rem 0;
  -webkit-line-clamp: 2;
  padding: 0;
  overflow: hidden;
}

#post-info #post-meta {
  display: flex;
  width: 50rem;
  max-width: 100%;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

#footer {
  background-color: rgba(0, 0, 0, 0)
}

[data-theme="dark"] #footer:before {
  background-color: rgba(0, 0, 0, 0.6)
}

/* 首页recent content 显示3行 */
#recent-posts > .recent-post-item >.recent-post-info > .content{
  -webkit-line-clamp:3
}

/* 首页下拉箭头置顶 */
#scroll-down{
  z-index: 999;
}



