/* ========== 分类详情页容器 毛玻璃化 ========== */
#category {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 2rem !important;
}

/* ========== 分类标题美化 ========== */
#category .article-sort-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-left: 0;
  position: relative;
}

#category .article-sort-title::before {
  display: none;
}

#category .article-sort-title::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(to bottom, #00b4ff, #0077ff);
  border-radius: 4px;
  margin-left: -1rem;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.6);
}

/* ========== 时间轴整体样式 ========== */
#category .article-sort {
  position: relative;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

#category .article-sort::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ========== 年份分组标题（移除外框） ========== */
#category .article-sort-item.year {
  position: relative;
  color: #00b4ff;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.2rem 0 0.8rem;
  padding: 0;
  background: none !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
}

#category .article-sort-item.year::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #00b4ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.3);
}

/* ========== 普通文章项（移除外框） ========== */
#category .article-sort-item {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  background: none !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  transition: all 0.3s ease;
  /* 入场动画初始状态 */
  opacity: 0;
  transform: translateX(10px);
  animation: slideInRight 0.5s ease-out forwards;
}

/* 时间轴小圆点 */
#category .article-sort-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* hover 效果：仅保留文字变色、圆点发光、轻微右移 */
#category .article-sort-item:hover {
  background: none !important;
  border: none !important;
  transform: translateX(6px);
  box-shadow: none !important;
}

#category .article-sort-item:hover::before {
  background: #00b4ff;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.8);
}

/* 错落入场动画延迟 */
#category .article-sort-item:nth-child(1) { animation-delay: 0.1s; }
#category .article-sort-item:nth-child(2) { animation-delay: 0.18s; }
#category .article-sort-item:nth-child(3) { animation-delay: 0.26s; }
#category .article-sort-item:nth-child(4) { animation-delay: 0.34s; }
#category .article-sort-item:nth-child(5) { animation-delay: 0.42s; }
#category .article-sort-item:nth-child(6) { animation-delay: 0.5s; }

/* 入场动画关键帧 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== 文章链接与文字 ========== */
#category .article-sort-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

#category .article-sort-item:hover a {
  color: #00b4ff;
}

/* 日期文字 */
#category .article-sort-item time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-right: 0.8rem;
}

/* ========== 文章缩略图优化 ========== */
#category .article-sort-item img {
  border-radius: 6px;
  margin-right: 0.8rem;
  transition: transform 0.3s ease;
}

#category .article-sort-item:hover img {
  transform: scale(1.05);
}

/* ========== 移动端适配 ========== */
@media screen and (max-width: 768px) {
  #category {
    padding: 1.2rem !important;
  }
  #category .article-sort {
    padding-left: 1rem;
  }
  #category .article-sort-item.year::before {
    left: -1.3rem;
  }
  #category .article-sort-item::before {
    left: -1.45rem;
  }
}