/* ===== 专家列表页面样式 ===== */

/* 页面头部 */
.experts-page-header {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease forwards;
}

.experts-page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.experts-page-title .fas {
  color: var(--accent);
}

.experts-page-desc {
  font-size: 15px;
  color: var(--gray);
  margin: 0;
}

/* 筛选区域 */
.experts-filter-bar {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 0.5s ease 0.1s forwards;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  padding-top: 6px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(10, 74, 122, 0.06);
  color: var(--dark);
  transition: var(--transition);
  border: 1px solid transparent;
}

.filter-tag:hover {
  background: rgba(10, 74, 122, 0.12);
  color: var(--primary);
  border-color: rgba(10, 74, 122, 0.15);
}

.filter-tag.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(10, 74, 122, 0.25);
}

/* 专家列表容器 */
.experts-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.5s ease 0.2s forwards;
}

/* 专家卡片 */
.expert-card-item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease forwards;
}

.expert-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px 0 0 4px;
}

.expert-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(10, 74, 122, 0.1);
}

.expert-card-item:nth-child(1) { animation-delay: 0.25s; }
.expert-card-item:nth-child(2) { animation-delay: 0.3s; }
.expert-card-item:nth-child(3) { animation-delay: 0.35s; }
.expert-card-item:nth-child(4) { animation-delay: 0.4s; }
.expert-card-item:nth-child(5) { animation-delay: 0.45s; }

.expert-card-left {
  flex-shrink: 0;
  margin-right: 25px;
  position: relative;
}

.expert-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(10, 74, 122, 0.15);
  transition: var(--transition);
}

.expert-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-card-item:hover .expert-card-avatar {
  border-color: var(--accent);
  transform: scale(1.05);
}

.expert-card-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.4);
}

.expert-card-center {
  flex: 1;
  min-width: 0;
}

.expert-card-name a {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.expert-card-name a:hover {
  color: var(--accent);
}

.expert-card-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.expert-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(10, 74, 122, 0.08);
  color: var(--primary);
}

.expert-tag-item .fas {
  font-size: 10px;
}

.expert-card-stats {
  margin-top: 10px;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.stats-label {
  color: var(--gray);
  font-weight: 500;
}

.stats-value {
  color: var(--dark);
  font-weight: 600;
}

.stats-value .badge-success {
  color: #fff;
  background-color: #28a745;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 4px;
}

.stats-value .badge-danger {
  color: #fff;
  background-color: #dc3545;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 4px;
}

.expert-card-intro {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.intro-label {
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
}

.intro-text {
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-card-right {
  flex-shrink: 0;
  margin-left: 25px;
}

.expert-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 4px 15px rgba(10, 74, 122, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.expert-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 74, 122, 0.45);
}

/* 专家列表页面响应式 */
@media (max-width: 1024px) {
  .expert-card-item {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .expert-card-item::before {
    width: 100%;
    height: 4px;
    border-radius: 4px 4px 0 0;
  }

  .expert-card-left {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .expert-card-center {
    margin-bottom: 15px;
  }

  .expert-card-right {
    margin-left: 0;
  }

  .expert-card-tags {
    justify-content: center;
  }

  .expert-card-intro {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .experts-page-header {
    padding: 20px 15px;
  }

  .experts-page-title {
    font-size: 22px;
  }

  .experts-filter-bar {
    padding: 15px;
  }

  .filter-group {
    flex-direction: column;
    gap: 8px;
  }

  .filter-label {
    padding-top: 0;
  }

  .expert-card-item {
    padding: 20px 15px;
  }

  .expert-card-avatar {
    width: 75px;
    height: 75px;
  }

  .expert-view-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}
