:root {
  --ink: #17211f;
  --muted: #5c6863;
  --soft: #f4f7f4;
  --paper: #ffffff;
  --line: #d8e1dc;
  --green: #1c5d46;
  --green-dark: #103a2c;
  --blue: #254b73;
  --rust: #9f4a38;
  --gold: #c99a3d;
  --shadow: 0 16px 48px rgba(23, 33, 31, 0.1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration-color: rgba(28, 93, 70, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid rgba(201, 154, 61, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 225, 220, 0.85);
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(28, 93, 70, 0.22);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--soft);
  color: var(--green-dark);
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 64px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.22rem;
}

.lead {
  max-width: 820px;
  margin: 1.35rem 0 0;
  color: var(--blue);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.45;
  font-weight: 700;
}

.bio {
  max-width: 850px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.bio.zh {
  color: #43514c;
}

.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;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  border-color: rgba(28, 93, 70, 0.35);
  background: var(--soft);
}

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

.button.primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--soft);
}

.profile-lines {
  padding: 1.2rem;
}

.profile-lines p {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.profile-lines p:last-child {
  border-bottom: 0;
}

.profile-lines strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.strip {
  width: 100%;
  display: flex;
  gap: 0;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  overflow-x: auto;
}

.strip span {
  flex: 1 0 auto;
  padding: 1rem 1.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.split-section p,
.visual-feature p,
.contact-section p {
  max-width: 760px;
  color: var(--muted);
}

.research-map {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr;
  align-items: stretch;
  gap: 0.25rem;
}

.map-node {
  min-height: 250px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.map-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-node strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
}

.map-node p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.map-connector {
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.visual-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

figure {
  margin: 0;
}

.visual-feature figure,
.figure-band figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(23, 33, 31, 0.08);
}

.visual-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

figcaption {
  padding: 0.95rem 1rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.78fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication {
  display: grid;
  grid-template-columns: minmax(160px, 0.25fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pub-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.pub-meta span,
.project span {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(28, 93, 70, 0.18);
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.publication h3 {
  grid-column: 2;
}

.publication .authors,
.publication p:not(.authors) {
  grid-column: 2;
  margin: 0;
}

.publication .authors {
  color: var(--blue);
  font-size: 0.95rem;
}

.publication p:not(.authors) {
  color: var(--muted);
}

.pub-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.pub-links a:hover {
  border-color: rgba(28, 93, 70, 0.35);
  background: var(--soft);
}

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

.project {
  min-height: 260px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.project h3 {
  margin-top: 1rem;
}

.project p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.figure-band {
  padding-top: 8px;
}

.figure-band img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  background: #fff;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  font-style: normal;
}

.contact-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.contact-list a:hover {
  border-color: rgba(28, 93, 70, 0.35);
  background: var(--soft);
  color: var(--green-dark);
}

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .visual-feature,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 430px;
  }

  .research-map {
    grid-template-columns: 1fr;
  }

  .map-node {
    min-height: 0;
  }

  .map-connector {
    width: 2px;
    height: 30px;
    justify-self: center;
    background: linear-gradient(180deg, var(--green), var(--gold));
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section {
    width: min(100% - 24px, var(--max));
    padding: 48px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions,
  .nav-links {
    width: 100%;
  }

  .button,
  .nav-links a {
    flex: 1 1 auto;
  }

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

  .publication h3,
  .publication .authors,
  .publication p:not(.authors),
  .pub-links {
    grid-column: 1;
  }

  .pub-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .project {
    min-height: 0;
  }

  .figure-band img {
    aspect-ratio: 16 / 9;
  }
}

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