.post-list {
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-list a {
  color: var(--text-primary);
  display: block;
  text-decoration: none;
  transition: opacity 0.15s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .post-list:hover a {
    opacity: 0.4;
  }

  .post-list:hover a:hover {
    opacity: 1;
  }

  .post-list:hover a:hover .divider {
    background-color: var(--text-tertiary);
    opacity: 0.75;
  }
  .post-list:hover a:hover .dotted-divider {
    color: var(--text-secondary);
  }
  .post-list:hover a:hover .date {
    color: var(--text-secondary);
    opacity: 1;
  }
}

.post-list .post-item {
  height: 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.post-list .post-item.date-left {
  justify-content: flex-start;
}

.post-list .post-item.date-left .title {
  flex: 1 1 auto;
  min-width: 0;
}

.post-list .post-item.date-left .date {
  margin-right: 0.75rem;
}

.post-list .title {
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-list .date {
  margin: 0;
  color: var(--text-secondary);
  opacity: 0.75;
  letter-spacing: var(--spacing-s);
  flex-shrink: 0;
  white-space: nowrap;
}

.post-list .divider {
  flex: 1 1 auto;
  min-width: 3rem;
  margin: 0 0.25rem;
  height: 0.5px;
  background-color: var(--border);
}

.post-list .dotted-divider {
  flex: 1 1 3rem;
  min-width: 3rem;
  max-width: 100%;
  text-align: end;
  letter-spacing: 5px;
  height: 1.675rem;
  overflow: hidden;
  color: var(--text-tertiary);
  opacity: 0.75;
}

.post-list .dotted-divider::after {
  content: '·····························································································································································';
  pointer-events: none;
}

.post-list-placeholder {
  height: 3rem;
}

/* 移动端隐藏标题与日期之间的分隔线，年份只显示后两位 */
@media (max-width: 768px) {
  .post-list .divider,
  .post-list .dotted-divider,
  .post-list .date .century {
    display: none;
  }
}
