/* Homepage-only CMS adapters. Do not load on unconverted template pages. */
[hidden] {
  display: none !important;
}
.blue-metric-items {
  display: contents;
}
.metrics {
  grid-template-columns: 1.35fr repeat(
      var(--blue-metric-count, 4),
      minmax(0, 1fr)
    );
}
.metric strong {
  overflow-wrap: anywhere;
}
.blue-search,
.blue-language {
  position: relative;
}
.nav-actions summary {
  list-style: none;
  cursor: pointer;
}
.nav-actions summary::-webkit-details-marker {
  display: none;
}
.blue-search-form,
.blue-language .language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 80;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}
.blue-search-form {
  width: min(380px, calc(100vw - 40px));
}
.blue-search-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.blue-search-form > div {
  display: flex;
  gap: 8px;
}
.blue-search-form input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.blue-search-form button {
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--brand-600);
}
.blue-language .language-menu {
  min-width: 160px;
}
.blue-language .language-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.blue-language .language-menu a:hover,
.blue-language .language-menu .active {
  color: var(--brand-700);
  background: var(--brand-soft);
}
.blue-language .language-menu span {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.blue-story-visual {
  position: relative;
  overflow: hidden;
}
.blue-story-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blue-story-visual > span {
  position: relative;
  z-index: 1;
}
.story-track {
  animation: none;
}
.story-track.is-looping {
  animation: blue-story-scroll var(--story-loop-duration, 45s) linear infinite;
  will-change: transform;
}
.story-marquee.is-static {
  width: auto;
  margin-left: 0;
  overflow-x: auto;
  mask-image: none;
}
.story-marquee.is-static .story-track {
  width: max-content;
}
.story-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-card {
  display: flex;
  flex-direction: column;
}
.story-body a {
  margin-top: auto;
}
.support-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blue-support-body > :first-child,
.blue-faq-answer > :first-child {
  margin-top: 0;
}
.blue-support-body img,
.blue-faq-answer img {
  max-width: 100%;
  height: auto;
}
.blue-faq-answer {
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}
.blue-hospital-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.blue-hospital-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blue-hospital-media-source {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}
.blue-hospital-media-source img {
  display: none;
}
.blue-hospital-media-source > img:first-child,
.blue-hospital-media-source > p:first-child > img:first-child {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blue-hospital-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(7, 31, 61, 0.38));
  pointer-events: none;
}
.blue-hospital-rank {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  margin: 0;
  color: var(--brand-900) !important;
  border-color: rgba(255, 255, 255, 0.76) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 24px rgba(5, 34, 70, 0.18);
  backdrop-filter: blur(12px);
}
.hospital-card {
  display: flex;
  flex-direction: column;
}
.hospital-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hospital-body .card-actions {
  margin-top: auto;
}
.hospital-grid .hospital-card:last-child {
  display: flex;
}
.blue-hospital-city {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 10px;
  color: var(--brand-700);
  border: 1px solid rgba(var(--brand-rgb), 0.13);
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blue-hospital-city svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blue-hospital-copy {
  min-height: 5.4em;
  max-height: 5.4em;
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.blue-hospital-copy p {
  display: inline;
  margin: 0;
}
.blue-hospital-copy p::after {
  content: " ";
}
.blue-hospital-copy br {
  display: none;
}
.blue-hospital-copy img,
.blue-hospital-copy figure,
.blue-hospital-copy video,
.blue-hospital-copy iframe {
  display: none !important;
}
.blue-hospital-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 18px;
}
.blue-hospital-facts > div {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface), var(--bg));
}
.blue-hospital-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blue-hospital-facts strong {
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
}
.blue-hospital-empty {
  grid-column: 1/-1;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}
.blue-hospital-tabs {
  flex-wrap: wrap;
}
.blue-hospital-tabs button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
.blue-process-copy,
.blue-process-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.blue-process-copy img,
.blue-process-copy video,
.blue-process-copy iframe {
  display: none;
}
.zh-cms-home .section-heading h2 {
  font-size: clamp(2.35rem, 3.2vw, 3.55rem) !important;
}
.process-video .video-play {
  border: 0;
  cursor: pointer;
}
.process-video .video-play:disabled {
  cursor: wait;
  opacity: 0.72;
}
.process-video-player {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  border-radius: inherit;
  background: #061d39;
}
.process-video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #061d39;
}
.process-video.is-playing::before,
.process-video.is-playing::after,
.process-video.is-playing .video-grid,
.process-video.is-playing .video-brand,
.process-video.is-playing .video-caption {
  visibility: hidden;
}
@media (max-width: 780px) {
  .zh-cms-home .section-heading h2 {
    font-size: clamp(2rem, 8vw, 2.65rem) !important;
  }
}
@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blue-search-form {
    position: fixed;
    top: 70px;
    right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-track.is-looping {
    animation: none;
  }
  .story-marquee {
    overflow-x: auto;
    mask-image: none;
  }
}
@keyframes blue-story-scroll {
  to {
    transform: translate3d(calc(-1 * var(--story-loop-distance)), 0, 0);
  }
}
