/* ========== 作者主页样式 ========== */

.author-page {
  padding: 24px 0 60px;
}

/* 作者信息头部 */
.author-header {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.author-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.author-info-block {
  flex: 1;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.author-name-row h1 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.author-join-time {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 600px;
}

.author-stats {
  display: flex;
  gap: 28px;
}

.author-stat {
  text-align: center;
}

.author-stat-num {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.author-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.author-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Tab 导航 */
.author-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 12px 12px 0 0;
  padding: 0 8px;
  border-bottom: none;
}

.author-tab {
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
  top: 1px;
}

.author-tab:hover {
  color: var(--color-primary);
}

.author-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.author-tab-count {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-left: 4px;
}

/* 内容区域 */
.author-content {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 0 0 12px 12px;
  padding: 20px;
  min-height: 400px;
}

.author-tab-panel {
  display: none;
}

.author-tab-panel.active {
  display: block;
}

/* 空状态 */
.author-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-tertiary);
}

.author-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* 卡片列表复用全站卡片样式 */
.author-content .article-card {
  margin-bottom: 16px;
}

.author-content .qa-item {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .author-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.625rem;
  }

  .author-info-block {
    width: 100%;
  }

  .author-name-row {
    justify-content: center;
  }

  .author-bio {
    max-width: 100%;
  }

  .author-stats {
    justify-content: center;
    gap: 20px;
  }

  .author-actions {
    width: 100%;
    justify-content: center;
  }

  .author-tab {
    padding: 12px 14px;
    font-size: 0.875rem;
  }
}
