/* 专家团队 */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.doctors-grid a {
  text-decoration: none;
  color: inherit;
}

.doctor-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.doctor-card:hover {
  transform: translateY(-10px);
}

.doctor-image {
  height: 280px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.3s ease;
}

/* The list page uses opacity for its image-loading state. Keep homepage cards visible. */
.doctors .doctor-image img {
  opacity: 1;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.1);
}

.doctor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.doctor-card:hover .doctor-overlay {
  transform: translateY(0);
}

.doctor-overlay p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.doctor-info {
  padding: 20px;
}

.doctor-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a5a8a;
}

.doctor-specialty {
  color: #666;
  font-size: 0.95rem;
}

/* 骨架屏样式 */
.skeleton-doctor {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
  height: 280px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-info {
  padding: 20px;
}

.skeleton-name {
  height: 24px;
  width: 60%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin: 0 auto 10px;
}

.skeleton-position {
  height: 16px;
  width: 40%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin: 0 auto;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 错误状态 */
.doctors-error {
  grid-column: 1 / -1;
  padding: 20px;
  background-color: #fff3f3;
  border-radius: 8px;
  color: #dc3545;
  text-align: center;
}

/* 更多按钮 */
.more-container {
  text-align: center;
  margin-top: 40px;
}

.more-btn {
  display: inline-block;
  background: transparent;
  color: #1a5a8a;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid #1a5a8a;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.more-btn:hover {
  background: #1a5a8a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(44, 127, 184, 0.3);
}

.more-btn i {
  margin-left: 8px;
  transition: all 0.3s ease;
}

.more-btn:hover i {
  transform: translateX(5px);
}
