/* 更新记录：日期列表与单日详情 */

.update-list {
  display: grid;
  gap: calc(8px * var(--site-space));
}

.update-item {
  display: flex;
  align-items: center;
  gap: calc(10px * var(--site-space));
  padding: calc(9px * var(--site-space)) calc(14px * var(--site-space));
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  color: var(--site-fg);
  font-size: calc(14.5px * var(--site-type));
  transition: border-color calc(180ms * var(--site-motion)), background calc(180ms * var(--site-motion));
}

.update-item:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
  background: color-mix(in srgb, var(--site-accent) 8%, var(--site-surface));
  text-decoration: none;
}

.update-badge {
  flex: none;
  display: inline-block;
  padding: 0 calc(8px * var(--site-space));
  border-radius: calc(var(--site-radius) / 2);
  background: var(--site-accent);
  color: var(--site-on-accent);
  font-size: calc(12px * var(--site-type));
  line-height: 1.7;
}

.update-item-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-item-meta {
  flex: none;
  margin-left: auto;
  color: var(--site-muted);
  font-size: calc(12px * var(--site-type));
}

.update-more {
  display: inline-block;
  margin-top: calc(10px * var(--site-space));
  font-size: calc(13px * var(--site-type));
}

.update-back {
  margin-bottom: calc(14px * var(--site-space));
  font-size: calc(13px * var(--site-type));
}

.update-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8px * var(--site-space));
  margin: calc(-4px * var(--site-space)) 0 calc(18px * var(--site-space));
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type));
}

.update-detail-meta a {
  color: var(--site-accent);
}

.update-prevnext {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(8px * var(--site-space)) calc(16px * var(--site-space));
  margin-top: calc(28px * var(--site-space));
  padding-top: calc(14px * var(--site-space));
  border-top: 1px solid var(--site-border);
  font-size: calc(13px * var(--site-type));
}

.update-prevnext a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-prevnext .next {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 640px) {
  .update-item-meta { display: none; }
  .update-prevnext { flex-direction: column; }
  .update-prevnext .next { margin-left: 0; text-align: left; }
}
