:root {
  --ink: #17252a;
  --muted: #62747b;
  --line: #d9e1e3;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --accent: #0f6b67;
  --accent-strong: #12343b;
  --gold: #d8a21b;
  --shadow: 0 18px 50px rgba(23, 37, 42, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--accent-strong);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 225, 227, 0.86);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent-strong);
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  width: min(var(--max), calc(100% - 36px));
  margin: 32px auto 0;
}

.profile-card {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  border: 1px solid rgba(15, 107, 103, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(15, 107, 103, 0.18), rgba(216, 162, 27, 0.22)),
    #f9fbfa;
  color: var(--accent-strong);
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.profile-title {
  margin: 12px 0 0;
  color: var(--accent);
  font-weight: 800;
}

.profile-affiliation,
.profile-note {
  color: var(--muted);
  font-size: 14px;
}

.profile-links {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.profile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.profile-links a::after {
  content: "↗";
  color: var(--gold);
}

.profile-links a:hover {
  border-color: rgba(15, 107, 103, 0.38);
  color: var(--accent);
}

.profile-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

main {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: min(650px, calc(100vh - 116px));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent-strong);
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 52, 59, 0.92), rgba(18, 52, 59, 0.62) 52%, rgba(18, 52, 59, 0.18)),
    linear-gradient(0deg, rgba(18, 52, 59, 0.32), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  max-width: 760px;
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 72px);
  color: #fff;
  text-align: center;
}

.hero h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 630px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  color: #122f34;
  background: #f4d35e;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(56px, 8vw, 90px) 0 0;
}

.section:first-child {
  padding-top: 0;
}

.section + .hero {
  margin-top: clamp(36px, 6vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.prose {
  max-width: 760px;
  color: #32464c;
  font-size: 18px;
}

.prose a {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.about-list {
  display: grid;
  gap: 12px;
  padding-left: 24px;
}

.education-heading {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 22px;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.education-visual {
  aspect-ratio: 2 / 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf2f1;
}

.education-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px;
  object-fit: contain;
  background: #fff;
}

.research-card,
.project-card,
.writing-panel,
.contact-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.education-timeline {
  position: relative;
  display: grid;
  max-width: 760px;
  margin-top: 24px;
}

.education-timeline::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 7px;
  width: 2px;
  background: var(--line);
  content: "";
}

.education-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 28px;
}

.education-item:last-child {
  padding-bottom: 0;
}

.education-marker {
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 4px solid var(--panel);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(15, 107, 103, 0.35);
}

.education-item strong {
  display: block;
  color: var(--accent-strong);
  font-size: 20px;
  line-height: 1.25;
}

.education-item div span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.project-card {
  padding: 24px;
}

.research-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 38%);
  min-height: 220px;
  padding: 0;
  overflow: hidden;
}

.research-copy {
  align-self: center;
  padding: 28px;
}

.research-visual {
  min-height: 220px;
  border-left: 1px solid var(--line);
  background: #edf2f1;
}

.research-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
}

.research-card h3,
.project-card h3,
.contact-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.research-card p,
.project-card p,
.writing-panel p,
.contact-grid p {
  margin: 0;
  color: var(--muted);
}

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

.publication {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 22px 0 22px 18px;
  border-left: 3px solid var(--line);
}

.publication:hover {
  border-left-color: var(--gold);
}

.year {
  color: var(--accent);
  font-weight: 900;
}

.publication h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.publication h3 a {
  text-decoration: none;
}

.publication h3 a:hover {
  color: var(--accent);
}

.publication p,
.publication small {
  color: var(--muted);
}

.publication p {
  margin: 0 0 3px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tags span {
  padding: 5px 9px;
  border: 1px solid rgba(15, 107, 103, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(15, 107, 103, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 900;
}

.text-link::after {
  content: "→";
}

.writing-panel,
.contact-grid {
  padding: 26px;
}

.writing-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.writing-links .text-link {
  margin-top: 0;
}

.writing-channel {
  color: var(--accent-strong);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(380px, 1.3fr);
  gap: 30px;
  align-items: stretch;
}

.contact-copy {
  align-self: center;
}

.map-frame {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2f1;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.visitor-map {
  width: min(var(--max), calc(100% - 36px));
  margin: 64px auto 0;
  overflow: hidden;
}

#mapmyvisitors-widget {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 240px;
}

footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 64px auto 0;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    align-items: center;
  }

  .profile-links,
  .profile-note {
    grid-column: 1 / -1;
  }

  .portrait {
    margin-bottom: 0;
  }

  .hero {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .layout {
    width: min(100% - 24px, var(--max));
    margin-top: 18px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .portrait {
    width: 92px;
    height: 92px;
    margin-bottom: 18px;
    font-size: 28px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(18, 52, 59, 0.94), rgba(18, 52, 59, 0.46));
  }

  .hero-content {
    align-content: center;
    padding: 28px;
  }

  .hero h2 {
    font-size: 34px;
  }

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

  .section-heading {
    grid-template-columns: 42px 1fr;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 14px;
  }

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

  .education-layout {
    grid-template-columns: 1fr;
  }

  .education-visual {
    aspect-ratio: 2 / 1;
    min-height: 0;
  }

  .education-visual img {
    min-height: 0;
  }

  .research-visual {
    min-height: 180px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .research-visual img {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
