/* 医生详情页样式 */
.doctor-detail-page { min-height: calc(100vh - 280px); background: #f8fafc; }

/* 面包屑 */
.doctor-detail__breadcrumb { background: #fff; padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.doctor-breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: #64748b; margin: 0; padding: 0; list-style: none; flex-wrap: wrap;
}
.doctor-breadcrumb a { color: #64748b; text-decoration: none; transition: color 0.3s; }
.doctor-breadcrumb a:hover { color: #00B4D8; }
.doctor-breadcrumb__sep { color: #cbd5e1; display: inline-flex; }
.doctor-breadcrumb__sep i { font-size: 12px; }
.doctor-breadcrumb__current { color: #1e293b; font-weight: 500; }

/* 头部信息 */
.doctor-detail__header { padding: 30px 0; }
.doctor-detail__header-card {
  display: flex; gap: 30px; background: #fff; border-radius: 12px;
  padding: 30px 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
}
.doctor-detail__header-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #00B4D8, #0096C7);
}
.doctor-detail__avatar-wrap { flex-shrink: 0; position: relative; }
.doctor-detail__avatar {
  width: 160px; height: 160px; border-radius: 12px; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.doctor-detail__header-info { flex: 1; min-width: 0; padding-top: 8px; }
.doctor-detail__name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.doctor-detail__name { font-size: 28px; font-weight: 700; color: #1e293b; margin: 0; }
.doctor-detail__title-tag {
  padding: 4px 12px; background: rgba(0,180,216,0.1); color: #00B4D8;
  font-size: 13px; border-radius: 20px;
}
.doctor-detail__specialty { font-size: 16px; color: #00B4D8; margin: 0 0 16px; font-weight: 500; }
.doctor-detail__meta {
  display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: #64748b;
}
.doctor-detail__meta span { display: flex; align-items: center; gap: 6px; }
.doctor-detail__meta i { color: #00B4D8; }
.doctor-detail__header-actions { display: flex; gap: 12px; flex-shrink: 0; align-self: flex-start; padding-top: 8px; }
.doctor-detail__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
}
.doctor-detail__btn--primary { background: #00B4D8; color: #fff; }
.doctor-detail__btn--primary:hover { background: #0096C7; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,180,216,0.3); }
.doctor-detail__btn--outline { background: #fff; color: #00B4D8; border: 1px solid #00B4D8; }
.doctor-detail__btn--outline:hover { background: rgba(0,180,216,0.06); }

/* 主体布局 */
.doctor-detail__body { padding: 0 0 60px; }
.doctor-detail__layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start;
}
.doctor-detail__main { display: flex; flex-direction: column; gap: 24px; }
.doc-block {
  background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.doc-block__title {
  font-size: 20px; font-weight: 600; color: #1e293b; margin: 0 0 18px;
  padding-left: 12px; border-left: 4px solid #00B4D8; line-height: 1.4;
}
.doc-block__text { font-size: 15px; line-height: 1.85; color: #475569; margin: 0 0 12px; }
.doc-block__text:last-child { margin-bottom: 0; }

/* 专业擅长标签 */
.specialty-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.specialty-tag {
  padding: 8px 16px; background: rgba(0,180,216,0.08); color: #00B4D8;
  font-size: 14px; border-radius: 6px;
}

/* 经历时间线 */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e2e8f0;
}
.timeline__item { position: relative; padding-bottom: 20px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -28px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #00B4D8; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #00B4D8;
}
.timeline__year { font-size: 14px; font-weight: 600; color: #00B4D8; margin: 0 0 4px; }
.timeline__text { font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }

/* 出诊时间表 */
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td {
  padding: 14px 12px; text-align: center; border: 1px solid #e2e8f0; font-size: 14px;
}
.schedule-table th { background: #f8fafc; color: #1e293b; font-weight: 600; }
.schedule-table td { color: #64748b; }
.schedule-slot { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 13px; }
.schedule-slot--am { background: rgba(0,180,216,0.1); color: #00B4D8; }
.schedule-slot--pm { background: rgba(255,159,28,0.1); color: #f59e0b; }
.schedule-slot--rest {
  background: rgba(108, 117, 125, 0.12);
  color: #6c757d;
}
.schedule-slot--off { color: #cbd5e1; }

/* 评价 */
.review-summary {
  display: flex; gap: 30px; align-items: center; padding: 20px;
  background: #f8fafc; border-radius: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.review-score { text-align: center; }
.review-score__num { font-size: 42px; font-weight: 700; color: #f59e0b; line-height: 1; }
.review-score__label { font-size: 13px; color: #64748b; margin-top: 4px; }
.review-stars { color: #f59e0b; font-size: 16px; }
.review-bars { flex: 1; min-width: 200px; }
.review-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: #64748b; }
.review-bar__label { width: 50px; }
.review-bar__track { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.review-bar__fill { height: 100%; background: #f59e0b; border-radius: 4px; }
.review-bar__count { width: 40px; text-align: right; }

.review-list { list-style: none; padding: 0; margin: 0; }
.review-item { padding: 16px 0; border-bottom: 1px dashed #e2e8f0; }
.review-item:last-child { border-bottom: none; }
.review-item__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-item__user { font-size: 14px; font-weight: 500; color: #1e293b; }
.review-item__date { font-size: 12px; color: #94a3b8; }
.review-item__stars { color: #f59e0b; font-size: 13px; margin-bottom: 6px; }
.review-item__text { font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }

/* 侧边栏 */
.doctor-detail__sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.sidebar-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.sidebar-card__title {
  font-size: 16px; font-weight: 600; color: #1e293b; margin: 0 0 16px;
  padding-bottom: 12px; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-card__title i { color: #00B4D8; font-size: 18px; }
.sidebar-info__list { list-style: none; padding: 0; margin: 0; }
.sidebar-info__item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed #f1f5f9; font-size: 14px;
}
.sidebar-info__item:last-child { border-bottom: none; }
.sidebar-info__label { color: #94a3b8; flex-shrink: 0; }
.sidebar-info__value { color: #1e293b; text-align: right; }

.sidebar-action { text-align: center; }
.sidebar-action__desc { font-size: 14px; color: #64748b; line-height: 1.7; margin: 0 0 16px; }
.sidebar-action .doctor-detail__btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* 错误状态 */
.doctor-detail-error {
  padding: 60px 0;
}
.error-box {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 60px 40px;
}
.error-box__icon { font-size: 64px; color: #cbd5e1; margin-bottom: 20px; }
.error-box__title { font-size: 24px; font-weight: 600; color: #1e293b; margin: 0 0 12px; }
.error-box__desc { font-size: 14px; color: #64748b; margin: 0 0 30px; }
.error-box__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.error-box__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.3s;
}
.error-box__btn--primary { background: #00B4D8; color: #fff; }
.error-box__btn--primary:hover { background: #0096C7; transform: translateY(-2px); }
.error-box__btn--default { background: #f1f5f9; color: #475569; }
.error-box__btn--default:hover { background: #e2e8f0; }

/* 响应式 */
@media (max-width: 992px) {
  .doctor-detail__layout { grid-template-columns: 1fr; }
  .doctor-detail__sidebar { position: static; }
}
@media (max-width: 768px) {
  .doctor-detail__header-card { flex-direction: column; text-align: center; padding: 24px; align-items: center; }
  .doctor-detail__name-row { justify-content: center; }
  .doctor-detail__meta { justify-content: center; }
  .doctor-detail__header-actions { width: 100%; justify-content: center; }
  .doc-block { padding: 20px; }
  .doctor-detail__avatar { width: 120px; height: 120px; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 8px 4px; }
  .review-summary { flex-direction: column; gap: 16px; }
}
