@font-face{
  font-family: 'Lolita';
  src: url('fonts/lolita.ttf') format('truetype')
}

/* 背景壁纸 */
.background-wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('bg.png') no-repeat center center/cover;
  /* background: url('album_wall.jpg') no-repeat center center/cover; */
  z-index: -1;
  filter: blur(10px) brightness(0.8);
}

/* 主体字体颜色设置更清晰 */
body {
  font-family: "Noto Sans SC", "Microsoft YaHei", "黑体", sans-serif;
  /* font-family: "Lolita", sans-serif; */
  color: #222;
  background-color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
  --card-bg: rgba(255, 255, 255, 0.9); /* 浅色模式卡片背景 */
  --text-muted: #666;
}


body.dark {
  background-color: rgba(20, 20, 40, 0.9);
  color: #eee;
  --card-bg: rgba(30, 30, 60, 0.8); /* 深色模式卡片背景 */
  --text-muted: #aaa;
}

body.dark header,
body.dark article,
body.dark footer,
body.dark aside {
  background-color: rgba(30, 30, 60, 0.8);
  color: #eee;
}

/* 顶部导航 */
header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #ccc;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #a86ede;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #d0a2ff;
}

#theme-toggle {
  margin-left: 1rem;
  padding: 0.4rem 0.8rem;
  background-color: #a86ede;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: #c084fc;
}

/* 自适应布局 */
main {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
}

aside {
  flex: 1 1 250px;
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  position: relative;
}

aside::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #c084fc, #a855f7);
  border-radius: 10px;
}

.content {
  flex: 2 1 500px;
  animation: fadeInUp 0.6s ease;
  min-width: 300px;
}

article {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

article:hover {
  transform: translateY(-4px);
}

footer {
  text-align: center;
  padding: 1rem;
  background: rgba(240, 240, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 1px solid #ccc;
}

/* 动画 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    padding: 1rem;
  }

  aside {
    max-width: 100%;
    margin-right: 0;
  }

  .content {
    min-width: 0;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
  }
}

