@charset "UTF-8";
:root {
  color-scheme: light dark;
  /* 定义语义化调色板 */
  --text-1: light-dark(#222222, #ffffffbf);
  --text-2: light-dark(#222222, #c1c1c1);
  --bg-1: light-dark(#ffffff, #303030);
  --bg-2: light-dark(#ffffff8c, #0000008c);
}

* {
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  height: 100%;
}
body .zoom-container {
  position: fixed;
  top: 0;
  left: 240px;
  width: calc(100% - 240px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
body.mdui-theme-layout-dark .mdui-drawer {
  background-color: var(--bg-1);
}
body.mdui-theme-layout-light .mdui-drawer svg {
  fill: #000000;
}
body .mdui-container {
  padding: 100px 0;
  display: flex;
  flex-direction: row;
  gap: 20px;
}
body .mdui-container .mdui-content {
  width: 100%;
  position: relative;
}
body .mdui-card-media {
  height: 200px;
}

.card-cover,
.card-cover-thumbnail {
  height: 200px;
  object-fit: cover;
}

.card-cover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s linear;
}

.border-radius-5 {
  border-radius: 5px;
}

.border-radius-12 {
  border-radius: 12px;
}

.hover-border {
  transition-duration: 0.2s;
}
.hover-border:hover {
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.4392156863);
}

.medium-zoom-overlay {
  z-index: 5001;
}

.medium-zoom-image--opened {
  z-index: 5002;
}

.load-img-container {
  position: relative;
  display: flex;
  justify-content: center;
}
.load-img-container .post-thumb-img,
.load-img-container .post-img {
  height: 480px;
  width: auto;
  display: block;
  transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1) !important;
  position: relative;
}
.load-img-container .post-img {
  position: absolute;
  opacity: 0;
}
.load-img-container .loaded-image {
  transition-duration: 0.2s;
}

.homepage {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.homepage .info {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 0);
  width: 300px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3764705882);
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  gap: 25px;
}
.homepage .info .avatar {
  width: 100px;
  height: 100px;
}
.homepage .info .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 100%;
}
.homepage .info .author {
  font-size: 22px;
}
.homepage .info .signature {
  font-size: 14px;
  color: var(--text-2);
}
.homepage picture {
  pointer-events: none;
  user-select: none;
}
.homepage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s linear;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}
.homepage .thumbnail {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.load-dom {
  opacity: 0;
}

.load-animation {
  /* 减少位移至 100px，使用更平缓的 ease-out */
  animation: loadAnimation 0.6s ease-out forwards;
  /* 提前告知浏览器优化 */
  will-change: transform, opacity;
}

.paginator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.paginator .page-info {
  color: #7c4dff;
}

.background {
  transition: opacity 0.1s;
  opacity: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.lazy-image-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.lazy-image-container .lazy-image-origin,
.lazy-image-container .lazy-image-thumb {
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.lazy-image-container .lazy-image-origin {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.6s ease-out;
}

.fixed-btns .upBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  animation: show-btn linear forwards;
  animation-timeline: scroll(root);
  animation-range: 300px 400px;
  opacity: 0;
  pointer-events: none;
}
.fixed-btns .upBtn::after {
  content: "▲";
  width: 50px;
  height: 50px;
  display: grid;
  place-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #303030;
  border-radius: 50%;
  position: absolute;
}
.fixed-btns .upBtn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: #303030;
  border-radius: 50%;
  display: grid;
  place-content: center;
  animation: button-border linear forwards;
  animation-timeline: scroll(root);
  background: conic-gradient(#7c4dff calc(var(--p) * 1%), #303030 0);
}

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
/* 定义显示动画 */
@keyframes button-border {
  0% {
    --p: 0;
  }
  100% {
    --p: 100;
  }
}
@keyframes show-btn {
  0% {
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}
@keyframes loadAnimation {
  0% {
    transform: translate3d(0, 150px, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
.grid-bg {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100vh;
  --grid-size: 40px; /* 格子大小 */
  --line-color: rgba(255, 255, 255, 0.1); /* 线条颜色 */
  background-image: linear-gradient(var(--line-color) 1px, transparent 1px), linear-gradient(90deg, var(--line-color) 1px, transparent 1px); /* 垂直线 */
  background-size: var(--grid-size) var(--grid-size);
}

.fixed-userinfo {
  position: sticky;
  top: 20px;
  left: 20px;
  height: 300px;
  min-width: 300px;
  background-color: rgba(48, 48, 48, 0.3764705882);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navbar-wrapper {
  max-width: 1200px;
  width: 92%;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  height: 60px;
  padding: 0 20px;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease-in-out;
  color: var(--text-1);
}
.navbar-wrapper.navbar-fixed {
  background-color: var(--bg-2);
}
.navbar-wrapper .logo a {
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  color: var(--text-1);
}
.navbar-wrapper .navbar .mdui-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
.navbar-wrapper .navbar .mdui-list a {
  display: flex;
  gap: 5px;
  align-items: center;
}

@media screen and (max-width: 989px) {
  .fixed-userinfo {
    display: none;
  }
}