/**
 * 科室导航页面样式
 */

.page-department {
  min-width: 1500px;
  color: #292c33;
  background: #fff;
}

.dept-wrap {
  width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.dept-site-header {
  background: #fff;
}

.dept-site-header__inner {
  height: 145px;
  display: flex;
  align-items: center;
}

.dept-logo {
  display: block;
  width: 407px;
  height: 76px;
}

.dept-logo:hover {
  text-decoration: none;
}

.dept-logo__img {
  width: 407px;
  height: 76px;
  object-fit: contain;
}

.dept-main-nav {
  height: 55px;
  background: #004a99;
}

.dept-main-nav__list {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dept-main-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 34px;
  padding: 0 17px;
  border-radius: 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.dept-main-nav__list a:hover {
  text-decoration: none;
}

.dept-main-nav__list a.is-active {
  color: #004a99;
  background: #fff;
}

.dept-hero {
  position: relative;
  height: 405px;
  overflow: hidden;
  background: #0d2744;
}

.dept-hero__img {
  width: 100%;
  height: 405px;
  object-fit: cover;
  object-position: center 33%;
}

.dept-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.dept-hero__inner {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
}

.dept-hero__crumb {
  position: absolute;
  right: 0;
  bottom: 36px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
}

.dept-search-section {
  padding: 77px 0 178px;
  background: #fff;
}

.dept-search {
  display: flex;
  justify-content: center;
  gap: 26px;
  position: relative;
  z-index: 5;
  height: 100px;
}

.dept-search input {
  width: 710px;
  height: 85px;
  padding: 0 66px;
  border: 1px solid #9f9f9f;
  border-radius: 10px;
  color: #333;
  font-size: 30px;
  line-height: 100px;
  outline: none;
}

.dept-search input::placeholder {
  color: #777;
}

.dept-search button {
  width: 210px;
  height: 85px;
  border: 0;
  border-radius: 10px;
  background: #FF9100;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.dept-search.is-empty input {
  border-color: #cf3333;
}

.dept-search.is-empty input::placeholder {
  color: #cf3333;
}

.dept-search__suggestions {
  position: absolute;
  left: calc(50% - 118px);
  top: 94px;
  z-index: 20;
  width: 710px;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 56, 115, 0.16);
  transform: translateX(-50%);
}

.dept-search__suggestions[hidden] {
  display: none;
}

.dept-search__suggestions button {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  color: #333;
  background: #fff;
  font-size: 20px;
  line-height: 46px;
  text-align: left;
}

.dept-search__suggestions button:hover,
.dept-search__suggestions button:focus {
  color: #fff;
  background: #008842;
  outline: 0;
}

.dept-directory {
  width: 1400px;
  margin: 0 auto;
  padding-bottom: 300px;
}

.dept-category {
  display: grid;
  grid-template-columns: 240px 1fr;
  height:600px;
  border-radius: 104px 0 0 0;
  overflow: visible;
  /*box-shadow: 0 0 24px rgba(28, 61, 103, 0.16);*/
}

.dept-category + .dept-category {
  margin-top: 92px;
}

.dept-category--auxiliary {
  min-height: 618px;
}

.dept-category__rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
  height: 580px;
  padding-top: 74px;
  border-radius: 104px 0 0 0;
  color: #fff;
  box-sizing: border-box;
  background: #008842;
}

.dept-category--clinical .dept-category__rail.is-bg-loaded {
  background: url("../images/ksdh/ks_ico1.png") center bottom / cover no-repeat;
}

.dept-category--auxiliary .dept-category__rail {
  background: #E7C774;
}

.dept-category--auxiliary .dept-category__rail.is-bg-loaded {
  background: url("../images/ksdh/ks_ico2.png") center bottom / cover no-repeat;
}

.dept-category--specialty {
  min-height: 618px;
}

.dept-category--specialty .dept-category__rail {
  background: #26488F;
}

.dept-category--specialty .dept-category__rail.is-bg-loaded {
  background: url("../images/ksdh/ks_ico3.png") center bottom / cover no-repeat;
}

.dept-category__rail h1 {
  margin: 56px 0 0;
  color: #fff;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 8px;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.dept-category__icon {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.dept-category__content {
  position: relative;
  overflow: hidden;
  height: 580px;
  box-shadow: 10px 10px 30px rgba(17, 58, 112, 0.18);
  box-sizing: border-box;
  background: #fff;
}

.dept-category--clinical .dept-category__content.is-bg-loaded {
  background: #fff url("../images/ksdh/ks_1.png") left center / 100% 100% no-repeat;
}

.dept-category--auxiliary .dept-category__content.is-bg-loaded {
  background: #fff url("../images/ksdh/ks_2.png") left center / 100% 100% no-repeat;
}

.dept-category--specialty .dept-category__content.is-bg-loaded {
  background: #fff url("../images/ksdh/ks_2.png") left center / 100% 100% no-repeat;
}

.dept-category__scroll-area {
  position: relative;
  z-index: 1;
  width: calc(100% - 20px);
  height: 80%;
  margin-top: 58px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 20px 40px 20px 36px;
  box-sizing: border-box;
}

.dept-category__scroll-area::-webkit-scrollbar {
  width: 6px;
}

.dept-category__scroll-area::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #9c9c9c;
}

.dept-category__scroll-area::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #008842;
}

.dept-category--auxiliary .dept-category__scroll-area::-webkit-scrollbar-thumb {
  background: #E7C774;
}

.dept-category--specialty .dept-category__scroll-area::-webkit-scrollbar-thumb {
  background: #26488F;
}

.dept-category__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 248px);
  gap: 45px 25px;
}

.dept-category__grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 68px;
  border: 1px solid #9f9f9f;
  border-radius: 10px;
  color: #292c33;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  box-sizing: border-box;
}

.dept-category__grid a:hover {
  border-color: #008842;
  color: #008842;
  text-decoration: none;
}

.dept-category__grid--short {
  grid-template-rows: repeat(2, 68px);
}

.dept-category__scroll {
  display: none;
}

.dept-category__scroll::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 272px;
  border-radius: 999px;
}

.dept-category--clinical .dept-category__scroll::before {
  background: #164c9e;
}

.dept-category--auxiliary .dept-category__scroll::before {
  background: #cf3333;
}

.dept-category--specialty .dept-category__scroll::before {
  background: #008842;
}

.dept-crumb-bar {
  height: 190px;
  background: #fff;
}

.dept-crumb-bar .dept-wrap {
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.dept-crumb-bar p {
  margin: 40px 0 0;
  color: #111;
  font-size: 23px;
  line-height: 1.4;
}

.dept-profile {
  position: relative;
  height: 780px;
  overflow: hidden;
  background: #e6edf5;
}

.dept-profile__image {
  width: 100%;
  height: 780px;
  object-fit: cover;
  object-position: center center;
}

.dept-profile__overlay {
  position: absolute;
  top: 0;
  left: calc((100% - 1500px) / 2);
  width: 786px;
  height: 780px;
  padding: 54px 44px 40px 43px;
  background: rgba(0,136,66, 0.72);
  color: #fff;
  box-sizing: border-box;
}

.dept-profile__overlay h1 {
  position: relative;
  margin: 0 0 68px;
  padding-left: 61px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.dept-profile__overlay h1::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -4px;
  width: 8px;
  height: 50px;
  background: #fff;
}

.dept-profile__overlay p {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 2;
  letter-spacing: 2px;
  text-indent: 50px;
}

.dept-scope {
  padding-top: 116px;
  padding-bottom: 188px;
}

.dept-scope h2,
.dept-doctors h2 {
  margin: 0 0 64px;
  color: #008842;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.dept-scope p {
  margin: 0 0 43px;
  color: #050505;
  font-size: 23px;
  line-height: 2;
  letter-spacing: 4px;
  text-indent: 2em;
}

.dept-doctors {
  padding-bottom: 132px;
}

.dept-doctors h2 {
  margin-bottom: 64px;
}

.dept-doctors__slider {
  position: relative;
}

.dept-doctors__viewport {
  width: 1500px;
  overflow: hidden;
}

.dept-doctors__track {
  display: flex;
  gap: 62px;
  transition: transform 0.3s ease;
}

.dept-doctor-card {
  position: relative;
  flex: 0 0 344px;
  width: 344px;
  height: 500px;
  margin: 0;
  overflow: hidden;
  background: #efefef;
}

.dept-doctor-card img {
  width: 344px;
  height: 500px;
  object-fit: cover;
  object-position: center top;
}

.dept-doctor-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 73px;
  padding: 0 24px;
  background: rgba(105, 105, 105, 0.46);
  color: #fff;
  box-sizing: border-box;
}

.dept-doctor-card__info h3 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.dept-doctor-card__info p {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.dept-doctors__arrow {
  position: absolute;
  top: 210px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: rgba(70, 119, 176, 0.92);
}

.dept-doctors__arrow:hover {
  background: #4677b0;
}

.dept-doctors__arrow--prev {
  left: -65px;
}

.dept-doctors__arrow--next {
  right: -65px;
}

.dept-doctors__arrow span {
  width: 28px;
  height: 28px;
  border-top: 7px solid #fff;
  border-left: 7px solid #fff;
}

.dept-doctors__arrow--prev span {
  transform: rotate(-45deg);
  margin-left: 9px;
}

.dept-doctors__arrow--next span {
  transform: rotate(135deg);
  margin-right: 9px;
}

.dept-doctors__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.dept-map {
  position: relative;
  height: 307px;
  overflow: hidden;
  background: #dce6ef;
}

.dept-map__img {
  width: 100%;
  height: 307px;
  object-fit: cover;
  object-position: center top;
}

.dept-map__card {
  position: absolute;
  left: calc((100% - 1500px) / 2 - 12px);
  top: 0;
  width: 480px;
  height: 307px;
  padding: 36px 43px 30px;
  box-sizing: border-box;
  background: rgba(0, 64, 146, 0.82);
  color: #fff;
}

.dept-map__card h2 {
  margin: 0 0 27px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.dept-map__card ul {
  display: grid;
  gap: 10px;
}

.dept-map__card li {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.dept-footer__main {
  background: #fff;
}

.dept-footer__inner {
  display: grid;
  grid-template-columns: 410px 380px 1fr;
  align-items: start;
  gap: 140px;
  min-height: 316px;
  padding-top: 83px;
  box-sizing: border-box;
}

.dept-footer__logo img {
  width: 407px;
  height: 76px;
  object-fit: contain;
}

.dept-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 29px 58px;
  padding-top: 4px;
}

.dept-footer__links a {
  color: #292c33;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.dept-footer__links a:hover {
  color: #004a99;
  text-decoration: none;
}

.dept-footer__qr-list {
  display: flex;
  justify-content: flex-end;
  gap: 54px;
}

.dept-footer__qr-list figure {
  margin: 0;
  text-align: center;
}

.dept-footer__qr-list img {
  width: 160px;
  height: 160px;
  border: 1px solid #ebebeb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px 40px, #111 40px 50px, transparent 50px 62px, #111 62px 72px),
    linear-gradient(#111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px 40px, #111 40px 50px, transparent 50px 62px, #111 62px 72px),
    radial-gradient(circle at 50% 50%, #0f66c2 0 17px, #fff 18px 25px, transparent 26px),
    repeating-linear-gradient(90deg, transparent 0 8px, #111 8px 13px, transparent 13px 21px),
    repeating-linear-gradient(0deg, transparent 0 9px, #111 9px 14px, transparent 14px 24px),
    #fff;
  background-size: 72px 72px, 72px 72px, 62px 62px, 160px 160px, 160px 160px, auto;
  background-position: 12px 12px, 76px 76px, center, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
}

.dept-footer__qr-list figcaption {
  margin-top: 25px;
  color: #292c33;
  font-size: 18px;
  line-height: 1;
}
