:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5d6979;
  --line: #d9e1ea;
  --white: #ffffff;
  --red: #d71920;
  --red-dark: #a80f16;
  --shadow: 0 18px 50px rgba(18, 37, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 64px);
  color: #fff;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 6px 30px rgba(20, 40, 70, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 15px;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-btn {
  background: var(--red);
  color: #fff;
}

.primary-btn:hover {
  background: var(--red-dark);
}

.section-pad {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 76px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding-top: 118px;
  overflow: hidden;
  background: #080d19;
}

.hero-slides,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides {
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 6s ease;
}

.hero-media.is-active {
  opacity: 0.94;
  transform: scale(1);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, 0.92) 0%, rgba(7, 13, 28, 0.62) 42%, rgba(7, 13, 28, 0.25) 100%),
    linear-gradient(0deg, rgba(3, 8, 18, 0.96) 0%, rgba(3, 8, 18, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  padding: clamp(44px, 8vw, 98px) clamp(20px, 5vw, 76px) clamp(58px, 9vw, 106px);
  color: #fff;
}

.hero-carousel-controls {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-arrow,
.carousel-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.carousel-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(5, 9, 18, 0.38);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: #fff;
  background: rgba(215, 25, 32, 0.86);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.carousel-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--red);
}

.carousel-arrow:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1120px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

@media (min-width: 760px) {
  h1 {
    white-space: nowrap;
  }
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.intro {
  display: block;
  background: #fff;
}

.intro-copy,
.intro-text,
.company-timeline {
  width: 100%;
  max-width: none;
}

.intro-copy h2 {
  max-width: 1180px;
  white-space: nowrap;
}

.intro-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 20px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px 30px 28px;
  text-align: justify;
  text-align-last: left;
}

.intro-text p {
  width: 100%;
  max-width: none;
  margin: 0;
}

.company-timeline {
  margin-top: 56px;
  padding-top: 0;
  overflow: visible;
}

.company-timeline h3 {
  margin-bottom: 30px;
  color: var(--red);
  font-size: clamp(26px, 3vw, 38px);
}

.timeline-track {
  position: relative;
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0 0 0 38px;
  list-style: none;
}

.timeline-track::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 13px;
  width: 7px;
  border-radius: 999px;
  background: var(--red);
  content: "";
}

.timeline-track li {
  position: relative;
  min-height: auto;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(18, 37, 63, 0.08);
}

.timeline-track li::before {
  position: absolute;
  top: 27px;
  left: -38px;
  width: 26px;
  height: 26px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--red);
  content: "";
}

.company-timeline strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 26px;
  line-height: 1;
}

.company-timeline span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.platform {
  background: #fff;
}

.section-head {
  max-width: 1180px;
  margin-bottom: 42px;
}

.section-head p:last-child,
.clinical .section-head p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.section-head.narrow {
  max-width: 1180px;
}

.principle-panel {
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.principle-panel h3 {
  width: 100%;
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  white-space: nowrap;
}

.principle-panel p {
  width: 100%;
  max-width: none;
  color: var(--muted);
  font-size: 20px;
  text-align: justify;
  text-align-last: left;
}

.timeline-item,
.contact-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.timeline-item p,
.news-card p,
.join p {
  color: var(--muted);
}

.clinical {
  background: #fff;
  color: var(--ink);
}

.clinical .eyebrow {
  color: var(--red);
}

.clinical .section-head p:last-child {
  color: var(--muted);
}

.clinical-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline-item {
  min-height: 260px;
  padding: 28px;
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.08);
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item p {
  color: var(--muted);
}

.facilities {
  background: #fff;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.facility-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  margin: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.facility-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.facility-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.facility-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 6px;
  background: rgba(9, 18, 30, 0.72);
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.news {
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.news-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: center;
  overflow: hidden;
}

.news-card img {
  width: 168px;
  height: 168px;
  margin-left: 24px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.news-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: clamp(26px, 4vw, 42px);
}

.news-card time {
  display: block;
  margin-top: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.join div {
  max-width: 760px;
}

.contact {
  background: #fff;
}

.contact-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 48px);
}

dl {
  display: grid;
  gap: 24px;
  margin: 26px 0 0;
}

dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

dd {
  margin: 6px 0 0;
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 76px);
  background: #0b1624;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: none;
  }

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

  .clinical-layout,
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility-card-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .intro-copy h2,
  .principle-panel h3 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 92px;
    height: auto;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .hero-content {
    padding-bottom: 92px;
  }

  .hero-carousel-controls {
    right: 18px;
    bottom: 28px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }

  h1 {
    white-space: normal;
  }

  .hero-copy,
  .intro-text,
  .principle-panel p,
  .section-head p:last-child {
    font-size: 16px;
  }

  .timeline-track {
    gap: 18px;
    padding-top: 0;
  }

  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 13px;
    right: auto;
    width: 6px;
    height: auto;
  }

  .timeline-track li {
    min-height: auto;
    padding: 18px 18px;
  }

  .timeline-track li::before {
    top: 23px;
    left: -35px;
    width: 20px;
    height: 20px;
    border-width: 4px;
  }

  .company-timeline strong {
    font-size: 24px;
  }

  .clinical-layout,
  .facility-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .facility-card-large {
    grid-column: auto;
  }

  .facility-card,
  .facility-card img {
    min-height: 260px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card img {
    width: calc(100% - 48px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 24px 24px 0;
  }

  .news-card div {
    min-height: 0;
  }

  .join {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media {
    transition: none;
  }
}
