/* ========== 归档页 暗色玻璃美术风格 ========== */

/* 整体容器：暗色渐变氛围背景 */
#archive {
  position: relative;
  padding: 48px 32px 64px;
  border-radius: 18px;
  overflow: hidden;
  /* 底色改为半透明，最后一位0.45是不透明度，越小越透 */
  background: 
    radial-gradient(circle at 10% 15%, rgba(140, 130, 255, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 120, 200, 0.2) 0%, transparent 40%),
    rgba(10, 10, 24, 0.45);
  /* 给容器本身加背景模糊，透出页面背景时更有玻璃质感 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* —— 可选：添加动漫背景图 ——
把你的背景图放到 source/img/ 目录，替换下面的图片路径，取消注释即可生效
#archive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/img/archive-bg.jpg") center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
*/

/* 归档大标题（全部文章 - 8） */
#archive .article-sort-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #f0f0f8;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: none;
  letter-spacing: 2px;
}

/* 清除主题默认的左右装饰线，换成底部光效线 */
#archive .article-sort-title::before,
#archive .article-sort-title::after {
  display: none;
}
#archive .article-sort-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.08));
}

/* 归档列表容器 */
#archive .article-sort {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 年份分类卡片 */
#archive .article-sort-item.year {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 10px;
  margin: 30px 0 18px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0f0f8;
  letter-spacing: 1px;
  position: relative;
}

#archive .article-sort-item.year::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.45), transparent);
}

#archive .article-sort-item.year:first-of-type {
  margin-top: 0;
}

/* 普通文章卡片 */
#archive .article-sort-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #d8d8e8;
  border-bottom: none;
}

/* 卡片悬停上浮效果 */
#archive .article-sort-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* 文章链接文字 */
#archive .article-sort-item a {
  color: #e8e8f5;
  text-decoration: none;
  transition: color 0.2s;
}
#archive .article-sort-item a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* 日期文字 */
#archive .article-sort-item .article-sort-time {
  color: #9090a8;
  font-size: 0.85rem;
  margin-right: 12px;
}