/* ========================================
   医生列表页样式 - doctor.css
   重庆市南川金佛山中医院
   ======================================== */

/* 医生列表主体区域 */
.doctor-section {
  padding: 40px 0 60px;
  background: #f8f9fa69;
}

/* 页面标题区域 */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  margin: 0;
  padding: 0;
}

.section-title .title-cn {
  display: block;
  font-size: 32px;
  color: #333;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title .title-en {
  display: block;
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-desc {
  margin: 20px auto 0;
  font-size: 16px;
  color: #666;
  max-width: 600px;
  line-height: 1.8;
}

/* 医生卡片网格 */
.doctor-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

/* 医生卡片 */
.doctor-card {
  width: calc(25% - 24px);
  margin: 0 12px 30px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(99, 162, 166, 0.2);
}

.doctor-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 医生图片区域 */
.doctor-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 120%;
  overflow: hidden;
  background: linear-gradient(135deg, #55a5aa 0%, #63c7cd 100%);
}

.doctor-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img-wrap img {
  transform: scale(1.1);
}

/* 医生卡片悬停遮罩 */
.doctor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(115 71 46 / 46%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-overlay {
  opacity: 1;
}

.view-detail {
  color: #fff;
  font-size: 16px;
  padding: 10px 24px;
  border: 2px solid #fff;
  border-radius: 30px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.doctor-card:hover .view-detail {
  transform: translateY(0);
}

/* 医生信息区域 */
.doctor-info {
  padding: 20px;
  text-align: center;
}

.doctor-name {
  margin: 0 0 8px;
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

.doctor-title {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 42px;
}

/* 医生标签 */
.doctor-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: #55a5aa;
  background: rgba(85, 165, 170, 0.1);
  border-radius: 20px;
}

/* 加载更多按钮 */
.loading-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 40px;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #74482f 0%, #73472ec2 100%);
  border: none;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #4a9094 0%, #55a5aa 100%);
  box-shadow: 0 6px 20px rgba(85, 165, 170, 0.4);
}

.btn-load-more.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-load-more.loading .loading-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-load-more.done {
  background: #ccc;
  cursor: default;
}

.btn-load-more.done:hover {
  box-shadow: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ccc;
}

.empty-state p {
  font-size: 16px;
  color: #999;
}

/* 快捷咨询区域 */
.quick-consult-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #55a5aa 0%, #63c7cd 100%);
}

.consult-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.consult-content {
  flex: 1;
  min-width: 280px;
}

.consult-content h3 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #fff;
  font-weight: 600;
}

.consult-content p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.consult-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.consult-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.consult-actions .btn img {
  width: 24px;
  height: 24px;
}

.consult-actions .btn-primary {
  color: #55a5aa;
  background: #fff;
}

.consult-actions .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.consult-actions .btn-secondary {
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
}

.consult-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 响应式设计 */

/* 平板端 */
@media only screen and (max-width: 1024px) {
  .doctor-card {
    width: calc(33.333% - 24px);
  }

  .section-title .title-cn {
    font-size: 28px;
  }

  .consult-content h3 {
    font-size: 24px;
  }
}

/* 小平板 */
@media only screen and (max-width: 768px) {
  .doctor-section {
    padding: 30px 0 50px;
  }

  .doctor-card {
    width: calc(50% - 24px);
  }

  .section-header {
    margin-bottom: 35px;
  }

  .section-title .title-cn {
    font-size: 24px;
  }

  .section-desc {
    font-size: 14px;
    padding: 0 20px;
  }

  .doctor-info {
    padding: 15px;
  }

  .doctor-name {
    font-size: 18px;
  }

  .consult-box {
    flex-direction: column;
    text-align: center;
  }

  .consult-actions {
    justify-content: center;
  }

  .quick-consult-section {
    padding: 40px 0;
  }
}

/* 移动端 */
@media only screen and (max-width: 480px) {
  .doctor-card {
    width: calc(100% - 24px);
    margin: 0 12px 24px;
  }

  .doctor-grid {
    margin: 0 -12px;
  }

  .btn-load-more {
    width: 100%;
    max-width: 280px;
  }

  .consult-actions {
    flex-direction: column;
    width: 100%;
  }

  .consult-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
