/* 05门诊排班 — Figma 24:11909 1920×2114 */

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

.sch-hero {
  position: relative;
  height: 136px;
  overflow: hidden;
  background: #053e31;
}

.sch-hero__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.55;
}

.sch-hero__inner {
  position: relative;
  z-index: 1;
  height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8px;
}

.sch-hero .crumb {
  color: #fff;
}

.sch-hero .crumb a,
.sch-hero .crumb em {
  color: #fff;
}

.sch-hero .crumb span {
  color: #9ca3af;
}

.sch-hero h1 {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 44px;
  letter-spacing: -0.9px;
}

.sch-body {
  padding: 40px 0 56px;
}

.week-switch {
  display: flex;
  height: 84px;
  padding: 4px;
  border-radius: 12px;
  background: #ddf3e8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.week-switch button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}

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

.sch-filters {
  display: grid;
  grid-template-columns: 202px 202px 1fr 88px;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.sch-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  line-height: 16px;
  margin-bottom: 4px;
}

.sch-field select,
.sch-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #e3f9ed;
  font-size: 14px;
  font-family: var(--font);
  color: #1f2937;
  appearance: none;
}

.sch-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234b5563' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}

.sch-query {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}

.sch-table-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.sch-table-head {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #053e31;
  line-height: 20px;
}

.sch-table-head em {
  font-style: normal;
  font-weight: 700;
  color: var(--green);
}

.sch-table {
  width: 100%;
  border-collapse: collapse;
}

.sch-table th {
  height: 64px;
  padding: 0 16px;
  text-align: left;
  background: #e3f9ed;
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.7px;
}

.sch-table td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #e8f5ee;
}

.sch-table tbody tr:nth-child(even) {
  background: #e3f9ed;
}

.sch-table tbody tr.is-hidden {
  display: none;
}

.sch-date strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 20px;
}

.sch-date span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-top: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #ddf3e8;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}

.campus {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 9999px;
  background: rgba(0, 106, 63, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.campus--gold {
  background: #acf1d7;
  color: #2c705b;
}

.campus--puai {
  background: #ddf3e8;
  color: #0c1f18;
}

.campus + p,
.sch-dept p {
  margin-top: 4px;
  font-size: 11px;
  color: #4b5563;
  line-height: 18px;
}

.sch-dept strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #053e31;
  line-height: 20px;
}

.sch-dept span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
  line-height: 18px;
}

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

.sch-doc img,
.sch-doc__ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sch-doc__ph {
  background: #ddf3e8;
}

.sch-doc strong {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 24px;
}

.sch-doc em {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #256956;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  vertical-align: middle;
}

.sch-doc em.is-chief {
  background: var(--green);
}

.sch-doc em.is-group {
  background: #ddf3e8;
  color: #4b5563;
  height: auto;
  padding: 2px 6px;
  line-height: 14px;
  text-align: center;
}

.sch-doc p {
  margin-top: 2px;
  font-size: 12px;
  color: #4b5563;
  line-height: 18px;
}

.sch-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
}

.sch-pager button,
.sch-pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
}

.sch-pager button.is-active {
  background: var(--green);
  color: #fff;
}

.sch-pager span {
  color: #9ca3af;
  cursor: default;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.notice-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 16px;
  min-height: 162px;
  overflow: hidden;
}

.notice-card i {
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 9999px;
  background: var(--green);
  margin-bottom: 12px;
}

.notice-card i.is-amber {
  background: #d97706;
}

.notice-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 20px;
}

.notice-card p {
  margin-top: 8px;
  font-size: 12px;
  color: #4b5563;
  line-height: 19.5px;
}

@media (max-width: 1024px) {
  .sch-filters {
    grid-template-columns: 1fr 1fr;
  }

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

  .sch-table-wrap {
    overflow-x: auto;
  }

  .sch-table {
    min-width: 760px;
  }
}

@media (max-width: 768px) {
  .sch-hero {
    height: auto;
    min-height: 110px;
  }

  .sch-hero__inner {
    height: auto;
    padding: 20px 0;
  }

  .sch-hero h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .week-switch {
    height: auto;
    flex-direction: column;
  }

  .week-switch button {
    height: 48px;
    font-size: 16px;
  }

  .sch-filters {
    grid-template-columns: 1fr;
  }

  .sch-query {
    width: 100%;
    min-height: 44px;
  }

  .sch-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

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

  .sch-pager {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sch-pager button {
    min-width: 36px;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .sch-hero h1 {
    font-size: 22px;
  }

  .article {
    padding: 16px 12px !important;
  }
}
