.page-author {
  padding: 40px 0 0;
  background: var(--bg);
}

/* 作者信息卡片 */
.author-profile {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.post-count {
  display: inline-block;
  font-size: 0.85rem;
  color: #7a8898;
  margin-bottom: 8px;
}

.author-name {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.author-bio {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #5a6069;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* 文章网格 */
.author-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.post-meta {
  margin-bottom: 12px;
}

.post-date {
  display: block;
  font-size: 0.75rem;
  color: #9ca6b1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.post-category {
  display: inline-block;
  font-size: 0.75rem;
  color: #9a7417;
  font-weight: 600;
  background: rgba(154, 116, 23, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.post-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
  color: #17294a;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.post-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--btn) 0%, transparent 100%);
  margin-bottom: 12px;
  border-radius: 1px;
}

.post-excerpt {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5a6069;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--btn);
  font-weight: 500;
  transition: gap 0.2s ease;
}

.read-more:hover {
  gap: 10px;
  color: var(--btn-hover);
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 12px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination__prev,
.pagination__next {
  padding: 0 14px;
}

.pagination__num.is-active {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}

.pagination a:hover:not(.is-active) {
  background: var(--focus-bg);
  border-color: #c9a86c;
  color: #8b6914;
}

.pagination__dots {
  background: transparent;
  border: 0;
  color: #888;
  cursor: default;
}

/* 响应式 */
@media (max-width: 900px) {
  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }

  .author-bio {
    text-align: center;
    text-justify: none;
    hyphens: manual;
  }

  .author-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .author-posts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card {
    padding: 20px;
  }
}
