/**
 * Shiguang 拾光集 - 归档时间线页样式
 * 简洁高级：细分割线、克制配色、大量留白
 */

.archives-section { padding-top: 32px; padding-bottom: 96px; }

.archives-summary {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 40px; padding-left: 2px;
}
.archives-summary i { margin-right: 4px; }
.archives-summary strong { color: var(--text); font-weight: 600; }

/* ========== 时间线 ========== */
.archives-timeline { position: relative; }

.archive-year {
  font-size: 1.6rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.01em;
  margin: 48px 0 20px; padding-left: 26px;
  position: relative;
}
.archive-year:first-child { margin-top: 0; }

.archive-month { position: relative; padding-left: 26px; margin-bottom: 8px; }

/* 竖向时间线 */
.archive-month::before {
  content: ''; position: absolute; left: 5px; top: 14px; bottom: -8px;
  width: 1px; background: var(--border);
}
.archive-month:last-child::before { display: none; }

.archive-month-head {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 0;
  background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.archive-month-dot {
  position: absolute; left: 1px; top: 17px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--card-solid); border: 2px solid var(--primary);
}
.archive-month-label { font-size: 1rem; font-weight: 600; color: var(--text); }
.archive-month-count { font-size: 12px; color: var(--text-light); }
.archive-month-arrow {
  margin-left: auto; font-size: 16px; color: var(--text-light);
  transition: transform 0.25s ease;
}
.archive-month.open .archive-month-arrow { transform: rotate(180deg); }

.archive-month-list {
  display: none;
  padding: 4px 0 16px;
}
.archive-month.open .archive-month-list { display: block; }

.archive-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 7px 10px 7px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.archive-item:hover { background: rgba(23, 28, 38, 0.035); }
.archive-item-date {
  flex-shrink: 0; width: 44px;
  font-size: 12px; color: var(--text-light);
  font-variant-numeric: tabular-nums;
}
.archive-item-title {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.2s ease;
}
.archive-item:hover .archive-item-title { color: var(--text); }

.archives-capped-note { margin-top: 32px; font-size: 13px; color: var(--text-light); }
.archives-capped-note a { color: var(--primary); }

/* ========== 暗色模式 ========== */
[data-theme="dark"] .archive-item:hover { background: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .archive-month-dot { background: var(--card-solid); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .archives-section { padding-bottom: 64px; }
  .archive-year { font-size: 1.3rem; margin-top: 36px; }
  .archive-item-title { white-space: normal; }
}
