:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef3f6;
  --text: #17212b;
  --muted: #5f6f80;
  --line: #d9e1e8;
  --primary: #0b74b8;
  --primary-strong: #075987;
  --accent: #2f8f6f;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.10);
}

:root.dark {
  color-scheme: dark;
  --bg: #11161c;
  --surface: #19212a;
  --surface-soft: #202b35;
  --text: #eef4f8;
  --muted: #a8b7c4;
  --line: #31414f;
  --primary: #73bff0;
  --primary-strong: #9dd2f5;
  --accent: #89d4b4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.nav-links {
  justify-self: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--primary-strong);
}

.actions {
  justify-self: end;
  gap: 10px;
}

.icon-button {
  min-width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.96rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--primary-strong);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 800;
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-buttons,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.portrait-wrap {
  margin: 0;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.section-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 750;
}

.section-heading {
  display: block;
  margin-bottom: 34px;
}

.research {
  border-top: 1px solid var(--line);
}

.research-grid,
.publication-list {
  display: grid;
  gap: 16px;
}

.research-grid {
  grid-template-columns: repeat(3, 1fr);
}

.research-grid article,
.publication,
.timeline article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.research-grid article {
  padding: 24px;
}

.research-grid span {
  color: var(--primary);
  font-weight: 900;
  font-size: 0.86rem;
}

.research-grid p,
.publication p,
.timeline p,
.contact p {
  color: var(--muted);
  margin: 0;
}

.publication-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publication {
  padding: 22px;
}

.publication h3 {
  min-height: 56px;
}

.pub-meta {
  color: var(--accent) !important;
  font-weight: 850;
  font-size: 0.84rem;
  margin-bottom: 8px !important;
}

.publication a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--primary-strong);
  font-weight: 850;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  padding: 20px;
}

.timeline time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 850;
  font-size: 0.86rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .portrait-wrap {
    justify-self: start;
    width: min(360px, 100%);
  }

  .research-grid,
  .publication-list {
    grid-template-columns: 1fr;
  }

  .publication h3 {
    min-height: auto;
  }

}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1120px);
    padding: 64px 0;
  }

  .site-header {
    padding: 14px;
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 3.3rem;
  }

  .hero-buttons,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
