/* ===== 哲学人物列表页 ===== */
.phil-hero {
  padding: 60px 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.phil-hero > * {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.phil-hero > *:nth-child(1) { animation-delay: 0s; }
.phil-hero > *:nth-child(2) { animation-delay: 0.1s; }
.phil-hero > *:nth-child(3) { animation-delay: 0.2s; }

/* 视图切换 */
.view-toggle {
  padding: 0 24px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.view-btns {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.view-btn:hover { color: var(--text-primary); }
.view-btn.active {
  background: var(--accent-gold);
  color: #1a1a1a;
}

/* 网格视图 */
.phil-grid {
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.phil-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-align: center;
}

.phil-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-bronze);
}

.phil-card-avatar {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.phil-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  color: #1a1a1a;
  transition: transform 0.5s ease;
}

.phil-card:hover .phil-avatar-circle {
  transform: scale(1.1);
}

.phil-card-body {
  padding: 16px 20px 24px;
}

.phil-card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.phil-card-era {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.phil-card-body p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phil-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 12px;
}

/* 列表视图 */
.phil-list {
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.phil-list.active {
  display: flex;
}

.phil-grid.list-hidden {
  display: none;
}

.phil-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.phil-list-item:hover {
  border-color: var(--accent-bronze);
  background: var(--bg-elevated);
}

.phil-list-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: #1a1a1a;
  flex-shrink: 0;
}

.phil-list-info {
  flex: 1;
  min-width: 0;
}

.phil-list-info h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.phil-list-info .phil-list-era {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.phil-list-desc {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phil-list-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.phil-list-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.phil-list-item:hover .phil-list-arrow {
  transform: translateX(4px);
  color: var(--accent-gold);
}

/* 头像渐变色 */
.avatar-gold { background: linear-gradient(135deg, #c9a96e, #e8c97a); }
.avatar-bronze { background: linear-gradient(135deg, #8b7355, #b8946e); }
.avatar-blue { background: linear-gradient(135deg, #5a7a8a, #7a9aaa); }
.avatar-green { background: linear-gradient(135deg, #5a8a6a, #7aaa8a); }
.avatar-red { background: linear-gradient(135deg, #8b5a5a, #aa7a7a); }
.avatar-purple { background: linear-gradient(135deg, #7a5a8a, #9a7aaa); }

.phil-card-avatar.av-bg-gold { background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(201,169,110,0.05)); }
.phil-card-avatar.av-bg-blue { background: linear-gradient(135deg, rgba(90,122,138,0.15), rgba(90,122,138,0.05)); }
.phil-card-avatar.av-bg-green { background: linear-gradient(135deg, rgba(90,138,106,0.15), rgba(90,138,106,0.05)); }
.phil-card-avatar.av-bg-red { background: linear-gradient(135deg, rgba(139,90,90,0.15), rgba(139,90,90,0.05)); }
.phil-card-avatar.av-bg-purple { background: linear-gradient(135deg, rgba(122,90,138,0.15), rgba(122,90,138,0.05)); }

@media (max-width: 1024px) {
  .phil-grid { grid-template-columns: repeat(3, 1fr); }
  .phil-list-desc { display: none; }
}

@media (max-width: 768px) {
  .phil-grid { grid-template-columns: repeat(2, 1fr); }
  .phil-list-tags { display: none; }
}

@media (max-width: 480px) {
  .phil-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 80px; }
}
