/* ======================================================================
   专家团队列表页（zjtd.html）专用样式
   参考 http://www.gzebh.net/list_3/ 右侧列表版式：两列卡片
   ====================================================================== */

/* 面包屑：与左侧卡片左对齐（去掉原 20px 内边距） */
.list-main .breadcrumb {
  padding-left: 0;
  padding-right: 0;
}

/* PC 端：整体 list-main 居左 20px */
.list-main {
  margin-left: 20px;
}

/* 专家列表容器：两列自动换行 */
.expert-list-page {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

/* 单个专家卡片：照片在左、信息在右 */
.expert-card-page {
  width: 410px;
  height: 220px;
  display: flex;
  border: 1px solid var(--color-border-dark);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s;
}

.expert-card-page:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

/* 头像区 */
.expert-card-photo {
  width: 160px;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: #cdcdcd;
}

.expert-card-photo a {
  display: block;
}

.expert-card-photo img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.expert-card-page:hover .expert-card-photo img {
  transform: scale(1.05);
}

/* 信息区 */
.expert-card-info {
  flex: 1;
  min-width: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

/* 姓名 + 职称：姓名在左、职称在右（职称多字自行换行） */
.expert-card-head {
  display: flex;
  align-items: flex-start;
}

.expert-card-name {
  flex-shrink: 0;
  font-size: 22px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--color-primary-light);
  font-weight: normal;
  line-height: 1.3;
  margin-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expert-card-title {
  min-width: 0;
  font-size: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--color-text);
  font-weight: normal;
  line-height: 1.5;
}

/* 分隔线图片 */
.expert-card-line {
  display: block;
  margin: 8px 0 10px;
}

/* 擅长领域（最多 3 行，超出省略） */
.expert-card-specialty {
  font-size: 15px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-card-specialty .read-more {
  color: var(--color-primary-light);
}

.expert-card-specialty .read-more:hover {
  text-decoration: underline;
}

/* 按钮区：我要咨询 / 预约挂号 */
.expert-card-buttons {
  display: flex;
  gap: 2px;
}

.expert-card-buttons a {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}

.expert-card-buttons a:hover {
  opacity: .85;
}

.btn-consult-page {
  background: var(--color-primary-light);
}

.btn-appoint-page {
  background: var(--color-accent-dark);
}

/* 分页：新结构（共X条 + 首页/前一页/页码/后一页/尾页） */
.page-status {
  margin-right: 6px;
  color: var(--color-text-secondary);
}

.page-index a,
.page-pre a,
.page-next a,
.page-last a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border-dark);
  border-radius: 3px;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.page-index a:hover,
.page-pre a:hover,
.page-next a:hover,
.page-last a:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

.page-numbar {
  display: inline-flex;
  gap: 6px;
  margin: 0 2px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border-dark);
  border-radius: 3px;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}

.page-num:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

.page-num-current {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
  cursor: default;
}

.page-num-current:hover {
  color: #fff;
}

.page-pre a[href="javascript:;"],
.page-next a[href="javascript:;"] {
  color: #c4c4c4;
  border-color: #ececec;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- 响应式（移动端） ---- */
@media (max-width: 991px) {
  .list-main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .expert-list-page {
    flex-direction: column;
    gap: 15px;
  }

  .expert-card-page {
    width: 100%;
    height: auto;
    min-height: 160px;
  }

  .expert-card-photo {
    width: 120px;
    height: 160px;
  }

  .expert-card-photo img {
    width: 120px;
    height: 160px;
  }

  .expert-card-info {
    padding: 12px;
  }

  .expert-card-name {
    font-size: 18px;
    margin-right: 6px;
  }

  .expert-card-title {
    font-size: 14px;
  }

  .expert-card-specialty {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
  }

  .expert-card-buttons a {
    height: 32px;
    font-size: 13px;
  }

  /* 移动端分页：状态文字独占一行，所有按钮 flex 居中自动换行 */
  .page-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3px;
  }

  .page-status {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 6px 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .page-numbar {
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0;
  }

  .page-index a,
  .page-pre a,
  .page-next a,
  .page-last a {
    height: 26px;
    padding: 0 4px;
    font-size: 10px;
    white-space: nowrap;
    min-width: auto;
    border-radius: 2px;
  }

  .page-num {
    min-width: 26px;
    height: 26px;
    padding: 0;
    font-size: 11px;
    border-radius: 2px;
  }
}