﻿.doctor-page {
  background: #fff;
}

.doctor-banner {
  position: relative;
  height: 330px;
  background: url('../首页.png') center top / cover no-repeat;
}

.doctor-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, .05);
}

.doctor-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.doctor-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.doctor-filter {
  padding: 60px 0 58px;
  background: #ededed;
}

.doctor-filter .layout {
  width: 1380px;
  max-width: calc(100% - 80px);
}

.doctor-filter-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: end;
  column-gap: 60px;
  margin-bottom: 24px;
}

.doctor-filter-row strong {
  display: block;
  padding: 0;
  color: #4a4a4a;
  font-size: 20px;
  font-weight: 400;
  line-height: 40px;
  background: transparent;
}

.doctor-filter-links {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 58px;
  width: 100%;
  max-width: 1060px;
  min-height: 40px;
  padding-top: 0;
  border-bottom: 1px solid #d7d7d7;
}

.doctor-filter-links button,
.doctor-filter-links a {
  position: relative;
  height: 40px;
  padding: 0;
  border: 0;
  color: #333;
  font-size: 18px;
  font-weight: 400;
  line-height: 38px;
  background: transparent;
}

.doctor-filter-links button.active,
.doctor-filter-links a.active {
  color: var(--primary-blue);
  font-weight: 700;
  background: transparent;
}

.doctor-filter-links button.active::after,
.doctor-filter-links a.active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  content: "";
  background: var(--primary-blue);
}

.doctor-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, max-content));
  justify-content: start;
  gap: 22px 50px;
  margin: 0 0 64px 210px;
  color: #222;
  font-size: 14px;
}

.doctor-filter-grid a {
  padding: 0;
  color: #333;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.doctor-filter-grid a.active,
.doctor-sort a.active {
  color: var(--primary-blue);
  font-weight: 700;
  background: transparent;
}

.doctor-sort {
  position: relative;
  margin-left: 0;
  padding: 26px 0 0 210px;
  color: #222;
  border-top: 1px dashed #c7c7c7;
}

.doctor-sort > span {
  position: absolute;
  top: 26px;
  left: 0;
  width: 150px;
  color: #4a4a4a;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.doctor-sort-options {
  display: block;
  width: 100%;
  max-width: 1060px;
  font-size: 16px;
  line-height: 2;
}

.doctor-sort a,
.doctor-sort-options a {
  display: inline-block;
  margin: 0 48px 8px 0;
  padding: 0;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
  word-break: keep-all;
}

.doctor-crumb-title {
  position: relative;
  width: 168px;
  height: 70px;
  padding: 18px 0 0 22px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: var(--primary-blue);
  border-radius: 0 0 22px 0;
}

.doctor-crumb-title::after {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 42px;
  height: 3px;
  content: "";
  background: #fff;
}

.doctor-crumb-links {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 42px;
  padding-top: 18px;
  border-bottom: 2px solid #2f6db6;
}

.doctor-show-page .doctor-crumb-links:empty::before {
  display: block;
  width: 100%;
  height: 2px;
  content: "";
}

.doctor-crumb-links a {
  height: 30px;
  padding: 4px 14px 0;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  background: transparent;
}

.doctor-crumb-links a.active {
  color: #fff;
  background: var(--primary-blue);
}

.doctor-crumb-links a.active::after {
  display: none;
}

.doctor-list-section {
  padding: 58px 0 150px;
}

.doctor-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 42px;
}

.doctor-list-card {
  display: block;
  min-height: 226px;
  padding: 18px 18px 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.doctor-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 73, 154, .2);
}

.doctor-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #bfbfbf;
}

.doctor-photo,
.doctor-profile-photo {
  display: block;
  flex: none;
  background: linear-gradient(180deg, #f7dfcf 0 42%, transparent 43%), linear-gradient(135deg, #e8f5ff 0%, #fff 42%, #d7ecff 100%);
  border: 1px solid #e5edf5;
}

.doctor-photo {
  width: 92px;
  height: 106px;
  overflow: hidden;
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card-head h3 {
  margin: 6px 0 6px;
  color: var(--primary-blue);
  font-size: 18px;
}

.doctor-card-head p,
.doctor-card-head em {
  display: block;
  margin: 0 0 5px;
  color: #333;
  font-size: 13px;
  font-style: normal;
}

.doctor-list-card > p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.7;
}

.doctor-list-card > p strong {
  font-weight: 700;
}

.doctor-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 56px;
}

.doctor-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-pagination .pagination li {
  display: block;
}

.doctor-pagination .pagination li a,
.doctor-pagination .pagination li span {
  display: block;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  color: #333;
  font-size: 14px;
  line-height: 36px;
  text-align: center;
  border: 1px solid #d8d8d8;
  background: #fff;
}

.doctor-pagination .pagination li.active a,
.doctor-pagination .pagination li a:hover {
  color: #fff;
  border-color: var(--primary-blue);
  background: var(--primary-blue);
}

.doctor-pagination .pagination li.disabled a,
.doctor-pagination .pagination li.disabled span {
  color: #aaa;
  pointer-events: none;
  background: #f5f5f5;
}

.doctor-pagination .pagination li span {
  border-color: transparent;
}

.doctor-crumb {
  padding: 58px 0 18px;
}

.doctor-crumb-inner {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: end;
  gap: 38px;
}

.doctor-position {
  margin-top: 6px;
  color: #315d93;
  font-size: 12px;
}

.doctor-article-section {
  padding: 42px 0 120px;
}

.doctor-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 0 50px;
  margin: 0 0 34px;
}

.doctor-profile-photo {
  width: 220px;
  height: 268px;
  overflow: hidden;
}

.doctor-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-profile-info h1 {
  margin: 0 0 22px;
  color: #222;
  font-size: 30px;
  font-weight: 700;
}

.doctor-profile-info dl {
  display: grid;
  grid-template-columns: 75px 1fr;
  column-gap: 0;
  align-items: start;
  margin: 0 0 12px;
  color: #222;
  font-size: 15px;
  line-height: 1.8;
}

.doctor-profile-info dt {
  font-weight: 700;
}

.doctor-profile-info dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.doctor-profile-info dd p {
  margin: 0;
}

.doctor-profile-info p {
  margin: 14px 0 0;
  color: #222;
  font-size: 15px;
  line-height: 1.9;
}

.doctor-goodat {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding-right: 50px;
  padding-left: 50px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.doctor-goodat h2 {
  margin: 0 0 22px;
  color: var(--primary-blue);
  font-size: 22px;
}

.doctor-goodat p {
  margin: 0 0 12px;
  color: #222;
  font-size: 15px;
  line-height: 1.9;
}

.doctor-page .site-footer {
  margin-top: 0;
}
