.title-clinic {
  position: relative;
  font-size: 24px;
  font-weight: 300;
  color: var(--color-clinic-kl);
  letter-spacing: 0.05em;
  padding-bottom: 10px;
  text-align: center;
}
.title-clinic::before {
  content: "";
  position: absolute;
  width: 208px;
  height: 0.5px;
  background-color: var(--color-clinic-kl);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.rating .title-clinic::before {
  height: 0;
}
.meta .meta-main {
  border-radius: 24px;
  background-color: #fffffff7;
  box-shadow: 0 2.118px 12.178px 0 #5ac7f66b;
  padding: 4px 16px 20px;
}
.meta .meta-item {
  display: flex;
  gap: 12px;
}
.meta .meta-icon {
  width: 24px;
  height: 24px;
}
.meta .meta-info {
  color: #515151;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.1em;
}
.form .title-clinic {
  text-align: left;
}
.form .title-clinic::before {
  left: 0;
  transform: none;
}
.form .field {
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.1em;
  border-radius: 6px;
  box-shadow: 0 0 12.752px 0 #45a6d040;
  padding-left: 8px;
  padding-right: 8px;
  background-color: #fff;
}
.form input,
.form textarea,
.form select {
  outline: none;
  width: 100%;
}
.form textarea {
  field-sizing: content;
  display: block;
}
.form input::placeholder,
.form textarea::placeholder,
.form select,
.form .date-fake {
  color: #515151;
}
.form .form-button {
  background-color: #f19a1b;
  padding: 10px 56px;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.3em;
  border-radius: 16px;
  margin: 0 auto;
  display: flex;
}
.date-group .date-real {
  opacity: 0;
}
.date-group .date-real:valid {
  opacity: 100;
}
/* 预约日期提示文字 */
.date-group .date-real:valid + .date-fake {
  display: none;
}
#services .ms-item {
  position: relative;
}
#services .ms-item::before {
  content: "";
  background-color: var(--color-primary);
  position: absolute;
  height: 100%;
  top: 0;
}
#services .ms-item:not(:nth-child(3n)):not(:nth-child(13))::before {
  width: 0.6px;
  right: -24px;
}
#services .ms-text {
  margin-top: 8px;
  font-size: 12px;
  color: #515151;
  letter-spacing: 0.05em;
  text-align: center;
}
#doctor .doctor-swiper {
  height: 300px;
}
#doctor .doctor-swiper .swiper-wrapper {
  box-sizing: border-box;
}
#doctor .doctor-item {
  background: linear-gradient(90deg, #fff 0%, #def3ff 100%);
  box-shadow: 0 0 2px #d0d2d4;
  padding-right: 20px;
  border-radius: 8px;
}
#doctor .doctor-booknow {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  border: 0.37px solid var(--color-primary);
  background-color: #fff;
  box-shadow: 0 1.479px 1.479px 0 #2958aac2;
  width: 124px;
  height: 20px;
}
#doctor .doctor-navigation {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2.19px 2.19px #6a8db540;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
}
#doctor .doctor-navigation.doctor-button-prev {
  top: 0;
}
#doctor .doctor-navigation.doctor-button-next {
  bottom: 0;
}
.thumb-swiper .swiper-slide {
  opacity: 0.6;
}
.thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
}
.video-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}
.thumb-prev,
.video-prev {
  left: 0;
}
.thumb-next,
.video-next {
  right: 0;
}
@media screen and (min-width: 768px) {
  #services .ms-item:not(:nth-child(5n)):not(:nth-child(13))::before {
    width: 1px;
    right: -36px;
  }
  #services .ms-text {
    font-size: 16px;
  }
}
@media screen and (max-width: 1023px) {
  #meta {
    background: url("https://statichk.cmermedical.com/newopd/clinic/kl-bg-info-mb-v1.webp") no-repeat center / cover;
  }
  .bg {
    background: url("https://statichk.cmermedical.com/newopd/clinic/kl-bg-services-mb-v1.webp") no-repeat center / cover;
  }
  .form {
    border-radius: 28px;
    background-color: #ffffffcc;
    box-shadow: 0 2.393px 13.759px 0 #5ac7f66b;
  }
  #doctor .doctor-main {
    height: auto;
    background: linear-gradient(180deg, #fff 0%, #eaf7ff 100%);
    border-radius: 16px;
    overflow: hidden;
  }
  #doctor .doctor-info {
    position: relative !important; /* 取消 absolute，让高度自然撑开 */
    opacity: 0;
    pointer-events: none;
    display: none; /* 用 JS 控制显示，避免叠在一起 */
  }
  #doctor .doctor-info.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  #doctor .doctor-info img {
    width: 110px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
  }
  #doctor .doctor-meta {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  #doctor .doctor-meta .text-primary {
    font-size: 18px !important;
  }
  #doctor .doctor-meta .text-primary h3 {
    margin-bottom: 2px;
  }
  #doctor .doctor-meta p,
  #doctor .doctor-meta .text-\[\#515151\] {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  #doctor .doctor-meta .font-medium {
    font-size: 14px !important;
  }
  #doctor .doctor-booknow {
    margin-top: 12px !important;
    font-size: 14px;
    width: 140px;
    height: 28px;
  }
  /* 高亮当前中间项 */
  #doctor .swiper-slide-active .doctor-item .arrow,
  #doctor .swiper-slide-active .arrow {
    rotate: 90deg;
    /* box-shadow: 0 2px 10px #5ac7f66b; */
  }
}
@media screen and (min-width: 1024px) {
  #meta {
    background: url("https://statichk.cmermedical.com/newopd/clinic/kl-bg-info-pc-v1.webp") no-repeat center / cover;
  }
  #form {
    padding: 52px 0 72px max(calc((100vw - 96rem) / 2), 12px);
  }
  .clinic-kt #form {
    background: url("https://statichk.cmermedical.com/newopd/clinic/kt-bg-form-pc-v1.webp") no-repeat center / cover;
  }
  .clinic-mk #form {
    background: url("https://statichk.cmermedical.com/newopd/clinic/mk-bg-form-pc-v2.webp") no-repeat center / cover;
  }
  .bg {
    background: url("https://statichk.cmermedical.com/newopd/clinic/kl-bg-services-pc-v1.webp") no-repeat center / cover;
  }
  .title-clinic {
    font-size: 46px;
    font-weight: 400;
  }
  .title-clinic::before {
    width: 392px;
    height: 1px;
  }
  .meta .meta-main {
    border-radius: 48px;
    box-shadow: 0 4px 23px 0 #5ac7f66b;
    padding: 16px 108px 32px;
  }
  .meta .meta-item {
    gap: 24px;
  }
  .meta .meta-icon {
    width: 40px;
    height: 40px;
  }
  .meta .meta-info {
    font-size: 24px;
  }
  .form .field {
    font-size: 24px;
    line-height: 40px;
    border-radius: 8px;
    box-shadow: 0 0 19px 0 #45a6d040;
    padding-left: 12px;
    padding-right: 12px;
  }
  .form .form-button {
    padding: 10px 64px;
    font-size: 20px;
  }
  .intro .intro-main {
    width: fit-content;
    max-width: 1340px;
  }
  .intro .intro-list {
    max-width: 748px;
  }
  #services .ms-text {
    font-size: 18px;
  }
  #doctor .doctor-swiper,
  #doctor .doctor-main {
    height: 760px;
  }
  #doctor .doctor-meta {
    padding-top: 15%;
  }
  #doctor .doctor-item {
    border-radius: 16px;
    padding-right: 40px;
  }
  #doctor .doctor-main {
    background: linear-gradient(180deg, #fff 0%, #eaf7ff 100%);
  }
  #doctor .doctor-booknow {
    font-size: 30px;
    width: 220px;
    height: 52px;
    border-width: 1px;
    border-radius: 60px;
    box-shadow: 0 3.649px 3.649px 0 #2958aac2;
  }
  #doctor .doctor-navigation {
    width: 84px;
    height: 84px;
    box-shadow: 0 3.474px 3.474px #6a8db540;
  }
  .video-swiper {
    width: calc(100% - 160px);
    margin: 0 auto;
  }
}
@media screen and (min-width: 1280px) {
  #doctor .doctor-meta {
    padding-top: 20%;
  }
}
@media screen and (min-width: 1536px) {
  #services .ms-item:not(:nth-child(7n)):not(:nth-child(13))::before {
    width: 1px;
    right: -36px;
  }
  #doctor .doctor-booknow {
    width: 300px;
  }
}
