.archive-count {
  font-size: 13px;
  color: var(--text-muted);
}
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: scaleY(0);
  transform-origin: top;
}
.timeline-group {
  position: relative;
  padding-left: 140px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}
.timeline-date {
  position: absolute;
  left: 0;
  width: 110px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding-right: 12px;
  line-height: 24px;
  transition: color 0.3s;
}
.timeline-node {
  position: absolute;
  left: 116px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  transition: background 0.3s;
}
.timeline-group:first-child .timeline-node {
  background: var(--accent);
}
.timeline-content {
  padding-left: 20px;
}
.archive-card {
  display: block;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}
.archive-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.archive-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.archive-card-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.archive-card-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.archive-card-tag {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 1px 6px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.archive-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 16px 0;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled):not(.active) {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-btn svg {
  width: 16px;
  height: 16px;
}
.page-ellipsis {
  color: var(--text-muted);
  font-size: 14px;
}

html.loaded .timeline::before {
  animation: timelineGrow 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
html.loaded .timeline-group {
  animation: timelineItemFadeIn 0.5s ease both;
}
html.loaded .timeline-group:nth-child(1) { animation-delay: 0.15s; }
html.loaded .timeline-group:nth-child(2) { animation-delay: 0.3s; }
html.loaded .timeline-group:nth-child(3) { animation-delay: 0.45s; }
html.loaded .timeline-group:nth-child(4) { animation-delay: 0.6s; }
html.loaded .timeline-group:nth-child(5) { animation-delay: 0.75s; }
html.loaded .timeline-group:nth-child(6) { animation-delay: 0.9s; }
html.loaded .timeline-group:nth-child(7) { animation-delay: 1.05s; }
html.loaded .timeline-group:nth-child(8) { animation-delay: 1.2s; }
html.loaded .timeline-group:nth-child(9) { animation-delay: 1.35s; }
html.loaded .timeline-group:nth-child(10) { animation-delay: 1.5s; }

@keyframes timelineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes timelineItemFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-group {
    padding-left: 42px;
    margin-bottom: 20px;
  }
  .timeline-date {
    position: static;
    width: auto;
    text-align: left;
    padding: 0;
    margin-bottom: 4px;
    font-size: 13px;
  }
  .timeline-node {
    left: 17px;
    top: 8px;
    width: 8px;
    height: 8px;
  }
  .timeline-content {
    padding-left: 0;
  }
  .archive-card-head {
    flex-direction: column;
    gap: 2px;
  }
  .archive-card-title {
    font-size: 15px;
  }
}
