/* 03科室导航 — Figma 23:8996 1920×1933 */

.page-depts {
  background: var(--green-mint);
}

.depts {
  padding: 24px 0 56px;
}

.depts__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.depts__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 16px;
}

.depts__crumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4b5563;
}

.depts__crumb img {
  width: 10.67px;
  height: 12px;
}

.depts__crumb span {
  color: #bdcabe;
}

.depts__crumb em {
  font-style: normal;
  color: var(--green);
}

.depts__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.depts__title i {
  display: block;
  width: 10px;
  height: 32px;
  border-radius: 9999px;
  background: var(--green);
  flex-shrink: 0;
}

.depts__title h1 {
  font-size: 36px;
  font-weight: 500;
  color: #053e31;
  line-height: 44px;
  letter-spacing: -0.9px;
}

.depts__title em {
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 26px;
  margin-left: 8px;
}

.depts__lead {
  margin-top: 13px;
  font-size: 16px;
  font-weight: 500;
  color: #4b5563;
  line-height: 26px;
}

.depts__stats {
  display: flex;
  align-items: center;
  min-width: 0;
  width: min(391px, 100%);
  height: 62px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.depts__stat {
  flex: 1;
  text-align: center;
}

.depts__stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  line-height: 26px;
}

.depts__stat--amber strong {
  color: #d97706;
}

.depts__stat--mint strong {
  color: #008651;
}

.depts__stat span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  line-height: 16px;
}

.depts__stats i {
  width: 1px;
  height: 32px;
  background: #e5ebe8;
  flex-shrink: 0;
}

.depts__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 24px;
}

.depts__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 792px;
}

.dept-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9999px;
  background: #e8f5ee;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-en);
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.dept-chip.is-active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.depts__search {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.depts__search input {
  width: 100%;
  height: 44px;
  padding: 0 52px 0 16px;
  border: 0;
  border-radius: 9999px;
  background: #e3f9ed;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  font-family: var(--font);
  color: #053e31;
}

.depts__search input::placeholder {
  color: #9ca3af;
}

.depts__search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depts__search button img {
  width: 15px;
  height: 15px;
}

.depts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  isolation: isolate;
}

.dept-card {
  display: block;
  position: relative;
  width: auto;
  height: 220px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease;
}

.dept-card:hover,
.dept-card:focus-visible {
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  outline: none;
}

.dept-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dept-card__ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8f5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #008651;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.dept-card:hover .dept-card__ico,
.dept-card:focus-visible .dept-card__ico {
  background: #ffdad6;
  color: #ba1a1a;
}

.dept-card__badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 9999px;
  background: #256956;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.dept-card__badge--key {
  background: #008651;
  color: #f6fff5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.dept-card__badge--red {
  background: #256956;
}

.dept-card:hover .dept-card__badge,
.dept-card:focus-visible .dept-card__badge {
  background: #ba1a1a;
  color: #fff;
  box-shadow: none;
}

.dept-card h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #053e31;
  line-height: 26px;
}

.dept-card em {
  display: block;
  font-style: normal;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 16px;
}

.dept-card p {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  line-height: 19.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dept-card.is-hidden {
  display: none;
}

.depts-cta {
  position: relative;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 161.5px;
  padding: 40px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, #053e31 0%, #006a3f 50%, #256956 100%);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.depts-cta::before,
.depts-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.depts-cta::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -80px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(20px);
}

.depts-cta::after {
  width: 256px;
  height: 256px;
  right: 290px;
  top: -30px;
  background: rgba(52, 211, 153, 0.1);
  filter: blur(12px);
}

.depts-cta__copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.depts-cta__ico {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.depts-cta__ico img {
  width: 33px;
  height: 28.5px;
}

.depts-cta__copy h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  line-height: 30px;
}

.depts-cta__copy h2 span {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 9999px;
  background: #34d399;
  color: #053e31;
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
  text-transform: uppercase;
}

.depts-cta__copy p {
  margin-top: 8px;
  max-width: 518px;
  font-size: 14px;
  font-weight: 500;
  color: #ddf3e8;
  line-height: 22.75px;
}

.depts-cta__btns {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.depts-cta__btns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.depts-cta__btns a img {
  width: 16.67px;
  height: 16.67px;
}

.depts-cta__guide {
  background: #fff;
  color: #053e31;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.depts-cta__tel {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
}

.depts-cta__tel img {
  width: 15px;
  height: 15px;
}

@media (max-width: 1280px) {
  .depts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .dept-card {
    width: auto;
  }
}

@media (max-width: 1024px) {
  .depts__head {
    flex-direction: column;
  }

  .depts__stats {
    width: 100%;
    min-width: 0;
  }

  .depts__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .depts__search {
    width: 100%;
  }

  .depts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .depts-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
  }

  .depts-cta__btns {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .depts__title {
    flex-wrap: wrap;
  }

  .depts__title h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .depts__title em {
    display: block;
    margin-left: 0;
    font-size: 13px;
    letter-spacing: 1px;
  }

  .depts__lead {
    font-size: 14px;
  }

  .depts__grid {
    grid-template-columns: 1fr;
  }

  .dept-card {
    width: 100%;
    height: auto;
    min-height: 200px;
  }

  .depts-cta__copy {
    flex-direction: column;
  }

  .depts-cta__copy h2 {
    flex-wrap: wrap;
  }

  .dept-chip {
    min-height: 36px;
  }

  .depts__search input,
  .depts__search button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .depts__title h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .depts__stats {
    flex-wrap: wrap;
    height: auto;
    padding: 12px;
    gap: 8px;
  }

  .depts__stats i {
    display: none;
  }

  .depts__stat {
    flex: 1 1 30%;
  }

  .depts-cta__btns a {
    width: 100%;
    justify-content: center;
  }
}
