/* ------------------------------------
 * OEVON Typecho Theme
 *
 * @publisher  ESTO
 * @link  https://es4t.oevon.com
 * --------------------------------- */

body {
  font-family: system-ui, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 13px;
  color: #1D1D1F;
  background-color: #F5F5F7;
  display: flex;
  flex-direction: column;
}

a {
  color: #3375E5;
  text-decoration: none
}

.logo {
    height: 20px;
    object-fit: contain;
}

header {
  position: fixed;
  width: 100%;
  padding: .6rem 3rem;
  z-index: 10;
  font-size: 18px;
  font-weight: bold;
  color: #444445;
  background-color: rgba(245,245,247, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: max-height 0.3s ease; /* 动画效果 */
  overflow: hidden; /* 避免内容溢出 */
}

header a {
  color: inherit;
}

header.expanded {
  max-height: 200px; /* 展开后的高度 */
}

header .nav-menu{
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

header .nav-current {
  margin: 0 5px;
}

header .site-search {
  display: none; /* 默认隐藏 */
  opacity: 0; /* 初始透明 */
  transition: opacity 0.3s ease; /* 透明度动画 */
}

header .search-icon,
header .search-icon2 {
  fill: #444445;
}

header.expanded .site-search {
  display: block; /* 显示搜索框 */
  opacity: 1; /* 渐显 */
}

header .search-button {
  margin-top: -2px;
}

header .search-input {
  margin: 20px 0;
  border: none;
  outline:none;
  background-color: transparent;
  font-weight: bold;
  font-size: 18px;
  width: 100%;
  padding: 20px 0 25px 0;
  flex: 1; 
}

.error-page .search-input{
  border: none;
  outline:none;
  background-color: white;
  font-weight: bold;
  font-size: 18px;
  border-radius: 15px;
  box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.04);
  padding: 20px 40px;
  width: 400px;
}

header .search-wrapper {
    display: flex;
    align-items: center; /* 垂直居中 */
}

header .search-icon2 {
  margin-right: 8px; /* 图标与输入框之间的间距 */
  flex-shrink: 0; /* 防止图标被压缩 */
  margin-top: -5px;
}

.main {
  margin-top: 100px;
}

.footer {
  padding: 30px;
  text-align: center;
}

.footer a {
  color: inherit;
}

img {
  width: 100%;
  border-radius: 15px;
}

article {
  display: flex;
  flex-wrap: wrap;
}

.post-card {
  background-color: white;
  box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.04);
  border-radius: 15px;
  margin: 20px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 300px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: white;
}

.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 22px 30px;
}

.notice-bar {
  font-size: 13px;
  font-weight: bold;
  background-color:white;
  box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 1rem;
}

.pricing-table {
  background-color: white;
  box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.04);
  border-radius: 15px;
  padding: 2rem;
  text-align: left;
}

input {
  border: none;
  border-radius: 10px;
  background-color: white;
  padding: 1rem 1.5rem;
  outline:none;
  width: 100%;
  font-weight: 500;
}

.comment-card {
  position: relative;
  border: none;
  border-radius: 15px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /* opacity: 0; */
  animation: fadeIn 1s ease-in-out forwards;
  padding: 1.5rem;
  background-color: white;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.04);
}

.comment-create-card {
  background-color: white;
  box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.04);
  padding: 30px;
  left: 0;
  top: 0;
}

.comment-create-card input,
.comment-create-card textarea {
  background-color: #F5F5F7;
  font-weight: bold;
}

.comment-create-card input {
  height: 40px;
  border-radius: 10px;
}

textarea {
  border: none;
  border-radius: 10px;
  background-color: white;
  padding: 1rem 1.5rem;
  outline:none;
  width: 100%;
}

.avatar {
  width: 50px;
  /* height: 100%; */
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.post {
  line-height: 1.5;
  width: min(100ch, 100% - 4rem);
  margin-inline: auto;
  min-width: 379px;
  margin-top: -20px;
}

.comments-button {
  position: fixed;
  bottom: 30px;
  width: 80px;
  height: 40px;
  border-radius: 18px;
  background-color: rgba(225, 225, 225, 0.9);
  color: #444445;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.07)
}

.commentsNum {
  font-size: 14px;
  font-weight: bold;
}

.comment-create-header {
  display: flex;
  justify-content: space-between; /* 将元素分布到容器中 */
  align-items: center; /* 对齐顶部 */
}

.sumbit-btn {
  background: none;
  border: none;
  outline:none;
  margin-top: -18px;
}

.info-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 500px;
  background-color: #F5F5F7;
  color: #444445;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.info-panel.active {
  transform: translateX(0)
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999
}

.overlay.active {
  opacity: 1;
  visibility: visible
}

.archive-title {
  font-size: 18px;
  font-weight: bold;
}

.search-card {
  margin: 2rem 0;
  background-color: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}

.search-card .cover_image {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-card .cover_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-card .content {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem; /* 保持一致的间距 */
}

.page-navigator {
  list-style: none;
  margin: 15px 0;
  padding: 0;
  text-align: center;
}

.post-near {
  list-style: none;
  padding: 0;
}

.post-near li {
  background-color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  margin: 2rem 0;
  padding: 3rem;
}

.page-navigator li {
  display: inline-block;
  background-color: white;
  margin: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.page-navigator a,
.post-near a {
    color: inherit;
    text-decoration: none
}

.tag {
  background-color: #E3E3E3;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  color: #6E757C;
}

.tag a {
  color: inherit;
  text-decoration: none
}

.logo-light-mode {
  display: block;
}
.logo-dark-mode {
  display: none;
}

@media (prefers-color-scheme: dark) {

  body,
  .info-panel {
    color: #ECECEC;
    background-color: #212121;
  }

  .logo-light-mode {
      display: none;
  }
  .logo-dark-mode {
      display: block;
  }

  .post-card,
  .notice-bar,
  .pricing-table,
  .info-panel,
  .search-card,
  .post-near li,
  .page-navigator li,
  .comment-create-card input,
  .comment-create-card textarea{
    color: #ECECEC;
    background-color: #282828;
  }

  .comment-create-card,
  .comment-card {
    color: #ECECEC;
    background-color: #212121;
  }
  header {
    color: #ECECEC;
    background-color: rgba(33,33,33, 0.6);
  }

  header .search-icon, header .search-icon2{
    fill: #ECECEC;
  }
}

@media (max-width:768px) {
header {
    padding: .6rem 0;
}
  .info-panel {
      bottom: 0;
      top: auto;
      width: 100%;
      max-height: 80vh;
      border-radius: 15px 15px 0 0;
      transform: translateY(100%);
      transition: transform 0.3s ease
  }

  .comment-create-card {
    border-radius: 15px 15px 0 0;
  }

  .info-panel.active {
      transform: translateY(0)
  }

  .search-card {
      flex-direction: column;
  }

  .search-card .cover_image {
      flex: 0 0 auto;
      width: 100%;
  }

  .search-card .content {
      flex: 0 0 auto;
      padding: 2rem 1rem; /* 适当增加y轴padding */
      width: 100%;
}
}