:root {
  --sea: #7fa7f2;
  --foam: #b7d6f7;
  --mist: #eef1ff;
  --sun: #eef1ff;
  --peach: #a9a4ff;
  --cream: #f6f7ff;
  --lagoon: #7fa7f2;
  --sky: #b7d6f7;
  --lavender: #eef1ff;
  --ink: #242b63;
  --deep: #171d4b;
  --muted: #626a9a;
  --line: rgba(36, 43, 99, 0.14);
  --surface: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(74, 88, 183, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    linear-gradient(120deg, rgba(127, 167, 242, 0.26), transparent 26%, rgba(183, 214, 247, 0.38) 52%, transparent 70%, rgba(169, 164, 255, 0.28)),
    linear-gradient(180deg, rgba(238, 241, 255, 0.96), rgba(246, 247, 255, 0.98) 42%, rgba(216, 221, 255, 0.82)),
    var(--cream);
  background-size: 170% 170%, 100% 100%;
  animation: lagoonShift 18s ease-in-out infinite alternate;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(120deg, rgba(36, 43, 99, 0.12) 0 1px, transparent 1px 46px),
    linear-gradient(18deg, rgba(127, 167, 242, 0.16) 0 1px, transparent 1px 54px);
  opacity: 0.56;
  animation: gridGlide 20s linear infinite;
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 42vh;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 35%, rgba(127, 167, 242, 0.22) 35% 42%, transparent 42%),
    linear-gradient(155deg, transparent 0 48%, rgba(169, 164, 255, 0.18) 48% 54%, transparent 54%);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--deep);
  color: white;
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(246, 247, 255, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sea), var(--foam) 54%, var(--peach));
  color: var(--deep);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(127, 167, 242, 0.42);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.nav-links a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a.active,
.nav-links a:hover {
  border-color: rgba(36, 43, 99, 0.13);
  background: rgba(127, 167, 242, 0.26);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(82vh - 72px);
  padding: 5.8rem 4vw 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  background: white;
  filter: saturate(0.94) brightness(1.08);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(238, 241, 255, 0.96) 0%, rgba(238, 241, 255, 0.86) 36%, rgba(183, 214, 247, 0.38) 68%, rgba(169, 164, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(246, 247, 255, 0.12), rgba(246, 247, 255, 0.9));
}

.hero-content {
  max-width: 780px;
  animation: heroRise 850ms cubic-bezier(.2,.8,.2,1) both;
}

.kicker {
  margin: 0 0 0.85rem;
  color: #5264dc;
  font-size: 0.96rem;
  font-weight: 900;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 3.78rem;
  line-height: 1.04;
  font-weight: 700;
}

.hero-copy {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: #343d80;
  font-size: 1.12rem;
  line-height: 1.9;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--deep);
  color: white;
  box-shadow: 0 18px 34px rgba(23, 29, 75, 0.24);
}

.button.secondary {
  border: 1px solid rgba(36, 43, 99, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: var(--deep);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(980px, 100%);
  margin-top: 1.8rem;
}

.hero-metrics div,
.stat-lake div,
.award-grid article,
.route-grid article,
.service-copy article,
.paper-list article {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  min-height: 84px;
  border-radius: 26px;
  padding: 1rem;
  backdrop-filter: blur(14px);
  animation: metricPop 760ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.hero-metrics div:nth-child(2) {
  animation-delay: 90ms;
}

.hero-metrics div:nth-child(3) {
  animation-delay: 180ms;
}

.hero-metrics div:nth-child(4) {
  animation-delay: 270ms;
}

.hero-metrics strong,
.stat-lake strong,
.service-copy strong {
  display: block;
  color: var(--deep);
  font-size: 1.36rem;
  line-height: 1.18;
}

.hero-metrics span,
.stat-lake span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.palette-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 4vw;
  border-block: 1px solid rgba(36, 43, 99, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.palette-copy span,
.palette-copy strong {
  display: block;
}

.palette-copy span {
  color: #5264dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-style: italic;
}

.palette-copy strong {
  margin-top: 0.1rem;
  font-size: 0.98rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.swatches i {
  width: 44px;
  height: 44px;
  border: 4px solid white;
  border-radius: 14px;
  background: var(--c);
  box-shadow: 0 10px 24px rgba(74, 88, 183, 0.18);
  animation: swatchPulse 2.4s ease-in-out infinite alternate;
}

.swatches i:nth-child(2) {
  animation-delay: 180ms;
}

.swatches i:nth-child(3) {
  animation-delay: 360ms;
}

.swatches i:nth-child(4) {
  animation-delay: 540ms;
}

.swatches i:nth-child(5) {
  animation-delay: 720ms;
}

.swatches i:nth-child(6) {
  animation-delay: 900ms;
}

.section,
.route-overview,
.finale {
  padding: 5.4rem 4vw;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 2rem;
}

.section-heading h2,
.finale h2 {
  margin: 0;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 3rem;
  line-height: 1.12;
}

.section-heading p:not(.kicker),
.finale p {
  margin: 0.9rem 0 0;
  color: #566199;
  font-size: 1.06rem;
  line-height: 1.85;
  font-weight: 700;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.route-grid article {
  min-height: 230px;
  border-radius: 30px;
  padding: 1.35rem;
}

.route-grid article:nth-child(1) {
  background: linear-gradient(160deg, rgba(183, 214, 247, 0.9), rgba(255, 255, 255, 0.76));
}

.route-grid article:nth-child(2) {
  background: linear-gradient(160deg, rgba(238, 241, 255, 0.92), rgba(255, 255, 255, 0.72));
}

.route-grid article:nth-child(3) {
  background: linear-gradient(160deg, rgba(216, 221, 255, 0.86), rgba(255, 255, 255, 0.72));
}

.route-grid article:nth-child(4) {
  background: linear-gradient(160deg, rgba(169, 164, 255, 0.58), rgba(255, 255, 255, 0.72));
}

.route-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: white;
  color: var(--deep);
  font-weight: 900;
}

.route-grid h3,
.paper-list h3,
.lead-paper h3,
.service-copy h3,
.intern-timeline h3 {
  margin: 1rem 0 0;
  color: var(--deep);
  font-size: 1.28rem;
  line-height: 1.34;
}

.route-grid p,
.paper-list p,
.lead-paper p,
.service-copy p,
.intern-timeline p {
  margin: 0.7rem 0 0;
  color: #596397;
  line-height: 1.75;
  font-weight: 650;
}

.feature-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 1.2rem;
  align-items: start;
}

.stat-lake {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-lake div {
  min-height: 132px;
  border-radius: 30px;
  padding: 1.2rem;
  background: linear-gradient(155deg, rgba(183, 214, 247, 0.78), rgba(238, 241, 255, 0.88));
}

.proof-strip,
.proof-gallery,
.media-strip {
  display: grid;
  gap: 1rem;
}

.proof-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

figure {
  margin: 0;
}

.proof-strip figure,
.proof-gallery figure {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.proof-strip img,
.proof-gallery img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.68);
}

figcaption {
  padding: 0.8rem 1rem 1rem;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 900;
}

.skill-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.skill-ribbon span {
  border: 1px solid rgba(36, 43, 99, 0.12);
  border-radius: 999px;
  background: white;
  padding: 0.72rem 0.95rem;
  color: var(--deep);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(74, 88, 183, 0.12);
}

.research-lead {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.2rem;
}

.lead-paper {
  overflow: hidden;
  border-radius: 34px;
  background: var(--deep);
  color: white;
  box-shadow: var(--shadow);
}

.lead-paper h3,
.lead-paper p {
  color: white;
  padding-inline: 1.35rem;
}

.lead-paper h3 {
  padding-top: 1.35rem;
}

.lead-paper p {
  color: rgba(255, 255, 255, 0.82);
}

.lead-paper img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  margin-top: 1.2rem;
  background: var(--cream);
}

.paper-list {
  display: grid;
  gap: 0.9rem;
}

.paper-list article {
  border-radius: 28px;
  padding: 1.05rem 1.2rem;
}

.paper-list span,
.intern-timeline time {
  color: #5264dc;
  font-weight: 900;
}

.proof-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.proof-gallery.compact img {
  height: 190px;
}

.tab-shell {
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.tab-list {
  display: flex;
  gap: 0.6rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.tab-list button {
  min-height: 44px;
  border: 1px solid rgba(36, 43, 99, 0.14);
  border-radius: 999px;
  background: white;
  color: var(--deep);
  cursor: pointer;
  padding: 0.72rem 1.1rem;
  font: inherit;
  font-weight: 900;
}

.tab-list button[aria-selected="true"] {
  background: var(--sea);
}

.tab-panel {
  padding: 1rem;
}

.tab-panel[hidden] {
  display: none;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.award-grid article {
  min-height: 128px;
  border-radius: 26px;
  padding: 1rem;
}

.award-grid strong,
.award-grid span {
  display: block;
}

.award-grid strong {
  color: var(--deep);
  font-size: 1.18rem;
}

.award-grid span {
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 750;
}

.intern-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.intern-timeline article {
  border-radius: 28px;
  background: linear-gradient(160deg, white, rgba(183, 214, 247, 0.46));
  padding: 1rem;
  box-shadow: 0 16px 48px rgba(74, 88, 183, 0.12);
}

.media-strip {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 1rem;
}

.media-strip img {
  width: 100%;
  height: 190px;
  border-radius: 24px;
  object-fit: contain;
  background: white;
  box-shadow: 0 16px 46px rgba(74, 88, 183, 0.14);
}

.service-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
}

.service-copy {
  display: grid;
  gap: 1rem;
}

.service-copy article {
  min-height: 230px;
  border-radius: 32px;
  padding: 1.35rem;
  background: linear-gradient(160deg, rgba(216, 221, 255, 0.78), rgba(255, 255, 255, 0.78));
}

.service-copy strong {
  font-size: 2rem;
}

.service-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.service-gallery img {
  height: 300px;
}

.finale {
  min-height: 52vh;
  display: grid;
  align-content: center;
  background:
    linear-gradient(120deg, rgba(127, 167, 242, 0.66), rgba(169, 164, 255, 0.36), rgba(238, 241, 255, 0.9)),
    var(--mist);
}

.finale h2 {
  max-width: 880px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes lagoonShift {
  from {
    background-position: 0% 45%, center;
  }

  to {
    background-position: 100% 55%, center;
  }
}

@keyframes gridGlide {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 160px 96px, -120px 88px;
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes metricPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  72% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes swatchPulse {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-6px) scale(1.05);
  }
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: 3.02rem;
  }

  .route-grid,
  .proof-gallery,
  .intern-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-layout,
  .research-lead,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .proof-gallery.compact img,
  .proof-gallery img {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 96px;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    min-height: calc(82vh - 96px);
    padding-top: 4.6rem;
  }

  .hero-photo {
    object-position: center 18%;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(238, 241, 255, 0.96), rgba(238, 241, 255, 0.84) 48%, rgba(246, 247, 255, 0.88)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(183, 214, 247, 0.34));
  }

  .hero h1 {
    font-size: 2.42rem;
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-metrics,
  .route-grid,
  .proof-strip,
  .proof-gallery,
  .award-grid,
  .intern-timeline,
  .media-strip,
  .service-gallery,
  .stat-lake {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.2rem;
  }

  .hero-metrics div {
    min-height: 76px;
    padding: 0.85rem;
  }

  .hero-metrics strong {
    font-size: 1.16rem;
  }

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

  .section,
  .route-overview,
  .finale {
    padding: 4.2rem 4vw;
  }

  .section-heading h2,
  .finale h2 {
    font-size: 2.16rem;
  }

  .proof-strip img,
  .proof-gallery img,
  .lead-paper img,
  .service-gallery img {
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  body::before {
    animation-duration: 42s;
  }

  .reveal {
    transform: translateY(8px);
    transition-duration: 260ms;
  }
}
