.image-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eaf4fb, #f8fbfe);
  color: #6f8ca6;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.empty-state {
  padding: 52px 24px;
  text-align: center;
  color: #7890a6;
  font-size: 14px;
  font-weight: 800;
  background: #f6f9fc;
  border: 1px dashed #d4e1ec;
  border-radius: 18px;
}

.article-status {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #edf7fc;
  color: #4d728d;
  font-size: 11px;
  font-weight: 850;
}

.media-frame {
  position: relative;
  display: inline-grid;
  overflow: hidden;
}

.media-frame > .image-fallback,
.media-frame > img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.school-identity > .media-frame,
.school-identity > .image-fallback {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
}

.school-card-head > .media-frame,
.school-card-head > .image-fallback {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border: 1px solid #e5eaf0;
  border-radius: 17px;
}

.news-card .cover > .media-frame,
.news-card .cover > .image-fallback {
  width: 100%;
  height: 100%;
}

.media-frame > img {
  position: relative;
  z-index: 1;
  object-fit: inherit;
  background: #fff;
}

.identity-button {
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.school-card[data-open-school],
.news-card[data-open-article] {
  cursor: pointer;
}

.detail-modal {
  align-items: flex-start;
  overflow-y: auto;
}

.detail-card {
  width: min(1040px, 100%);
  margin: 24px auto;
  padding: 48px clamp(22px, 5vw, 64px);
  text-align: left;
}

.detail-card > h2 {
  margin: 10px 42px 6px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
}

.detail-meta {
  margin: 0 0 30px;
  color: #6f8094;
  font-size: 14px;
}

.detail-body {
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

.detail-body h2 {
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3ebf2;
  color: #0b3b6a;
  font-size: 24px;
}

.detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 18px;
}

.detail-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.detail-body th,
.detail-body td {
  padding: 10px;
  border: 1px solid #dbe5ee;
}

.detail-loading {
  padding: 48px 20px;
  text-align: center;
  color: #7690a6;
  background: #f4f8fb;
  border-radius: 18px;
}

.detail-consult,
.detail-cta button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #00aeef;
  font-weight: 900;
  cursor: pointer;
}

.detail-page-link {
  width: fit-content;
  min-height: 42px;
  margin: 0 0 22px auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 1px solid #bde9fa;
  border-radius: 13px;
  background: #ecfaff;
  color: #008bc2;
  font-size: 13px;
  font-weight: 900;
}

.detail-page-link:hover {
  border-color: #00aeef;
  background: #00aeef;
  color: #fff;
}

.detail-cta {
  margin-top: 42px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 20px;
  background: #eef8fd;
}

.detail-cta p {
  margin: 0;
  color: #35536a;
  font-weight: 800;
}

@media (max-width: 680px) {
  .detail-card {
    margin: 0;
    min-height: 100%;
    border-radius: 0;
  }

  .detail-body {
    font-size: 15px;
  }

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