:root {
  --ink: #10283a;
  --muted: #617181;
  --navy: #071827;
  --blue: #1d5b86;
  --aqua: #63d3c3;
  --cream: #f6f5ef;
  --paper: #ffffff;
  --line: rgba(16, 40, 58, 0.14);
  --shadow: 0 24px 70px rgba(7, 24, 39, 0.13);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  color: white;
  background: var(--navy);
  border-radius: 10px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 35px rgba(7, 24, 39, 0.05);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: var(--navy);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #405363;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.language-toggle {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #f5fafc;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.menu-button { display: none; }

.hero {
  min-height: 730px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
  padding-block: 92px 116px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--navy);
  font-size: clamp(48px, 6.3vw, 82px);
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(34px, 4.2vw, 52px);
}

h3 { font-size: 24px; }

.name-line {
  margin: 0 0 15px;
  color: #35566e;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-zh { font-family: "Noto Sans SC", "DM Sans", Arial, sans-serif; }

.hero-intro {
  max-width: 760px;
  margin: 0 0 34px;
  color: #485c6d;
  font-size: 19px;
}

.advisor-link {
  color: inherit;
  font-weight: 700;
  text-decoration-color: rgba(29, 91, 134, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.advisor-link:hover, .advisor-link:focus-visible { color: var(--blue); }

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: white;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(7, 24, 39, 0.2);
}

.button-primary:hover { background: #12354f; }

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.hero-panel {
  position: relative;
  overflow: visible;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 211, 195, 0.35), transparent 42%),
    linear-gradient(145deg, #0d3148, var(--navy));
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.monogram {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 32px;
  color: var(--aqua);
  background: rgba(255, 255, 255, 0.06);
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.profile-line {
  display: grid;
  gap: 2px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.profile-line span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile-line strong { font-size: 16px; }

.fan-link { color: white; text-decoration: none; }
.fan-link:hover, .fan-link:focus-visible { color: var(--aqua); }

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.status > span:first-child {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 6px rgba(99, 211, 195, 0.12);
}

.section { padding-block: 112px; }

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.research-grid { display: grid; gap: 24px; }

.research-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 28px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.research-card-featured {
  border-color: rgba(29, 91, 134, 0.23);
  background: linear-gradient(135deg, #f5fafc, white 52%);
}

.card-index {
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.research-card h3 { margin-bottom: 18px; }

.research-card p:not(.card-kicker) {
  max-width: 900px;
  margin: 0 0 14px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-row span {
  padding: 7px 11px;
  border: 1px solid rgba(29, 91, 134, 0.15);
  border-radius: 999px;
  color: #315a73;
  background: #f2f8fb;
  font-size: 12px;
  font-weight: 600;
}

.section-tinted { background: var(--cream); }

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

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

.publication-year {
  padding-top: 4px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.publication h3 { margin-bottom: 8px; }

.paper-title-link {
  color: inherit;
  text-decoration-color: rgba(29, 91, 134, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.paper-title-link:hover,
.paper-title-link:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.paper-link {
  display: inline-flex;
  margin: 2px 0 18px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.paper-link:hover,
.paper-link:focus-visible { text-decoration: underline; }

.publication p {
  margin: 0;
  color: var(--muted);
}

.paper-figure {
  margin: 28px 0 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 16px 38px rgba(7, 24, 39, 0.08);
}

.paper-figure img { display: block; width: 100%; height: auto; }
.paper-figure figcaption { padding: 13px 16px; color: var(--muted); font-size: 13px; }

.masked-paper-title { position: relative; max-width: 880px; overflow: hidden; }
.masked-paper-title h3 { margin: 0; filter: blur(4px); user-select: none; opacity: 0.5; }
.mosaic-overlay {
  position: absolute;
  inset: -4px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(180, 184, 187, .6), rgba(218, 220, 222, .72), rgba(172, 177, 181, .62));
  backdrop-filter: blur(5px);
  pointer-events: none;
}
.redaction-note { margin-top: 12px !important; font-size: 13px; }
.submission-visible { display: inline-block; margin-top: 10px; color: var(--blue); font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: .04em; }

.status-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.project-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(7, 24, 39, 0.08);
}

.project-type {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 { margin-bottom: 12px; }

.project-card p {
  margin: 0 0 26px;
  color: var(--muted);
}

.project-meta {
  margin-top: auto;
  color: #6f7f8d;
  font-size: 13px;
  font-weight: 600;
}

.teaching-section {
  color: white;
  background: var(--navy);
}

.teaching-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
  align-items: start;
}

.teaching-section h2 { color: white; }
.teaching-section .eyebrow { color: var(--aqua); }
.teaching-section .section-heading { margin-bottom: 0; }

.teaching-copy > p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.course-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.course-row strong { color: var(--aqua); }

.contact { padding-block: 112px; }

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 54px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, #174b6c, var(--navy));
  box-shadow: var(--shadow);
}

.contact-card h2 { margin-bottom: 12px; color: white; }
.contact-card p:not(.eyebrow) { max-width: 650px; margin: 0; color: rgba(255, 255, 255, 0.68); }
.contact-card .eyebrow { color: var(--aqua); }

.contact-actions { justify-content: flex-end; }

.wechat { padding: 10px 12px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; white-space: nowrap; }

.button-light { color: var(--navy); background: white; }

.text-link {
  padding: 10px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer a { text-decoration: none; }
.visit-total {
  color: var(--muted);
  white-space: nowrap;
}
.visit-total strong {
  color: var(--navy);
  font-weight: 700;
}
.fandom {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.fandom-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.crest-link { display: inline-flex; align-items: center; text-decoration: none; }
.crest-link img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; transition: transform 180ms ease; }
.crest-link:hover img { transform: scale(1.08); }
.fandom-text { font-size: 14px; font-weight: 700; color: var(--ink); }
.flag-crossed {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(16, 40, 58, .14);
  border-radius: 3px;
  color: transparent;
  background: linear-gradient(90deg, #046a38 0 40%, #da291c 40% 100%);
  font-size: 0;
  line-height: 1;
}
.flag-crossed::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #f6c445;
  border-radius: 50%;
}
.flag-crossed::after {
  content: "";
  position: absolute;
  inset: -5px;
  background:
    linear-gradient(45deg, transparent 46%, #111820 46%, #111820 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #111820 46%, #111820 54%, transparent 54%);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 76px 90px;
  }

  .hero-panel { max-width: 570px; }
  .teaching-layout { grid-template-columns: 1fr; gap: 44px; }
  .contact-card { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1160px); }
  body { font-size: 16px; }

  .menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    background: #f2f6f8;
  }

  .menu-button span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--navy);
    transition: transform 180ms ease;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 8px; }
  .language-toggle { align-self: flex-start; }
  .section, .contact { padding-block: 82px; }
  .section-heading { margin-bottom: 38px; }

  h1 { font-size: clamp(43px, 14vw, 64px); }
  h2 { font-size: 36px; }

  .research-card { grid-template-columns: 1fr; gap: 12px; padding: 28px; }
  .publication { grid-template-columns: 1fr; gap: 8px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .fandom { min-height: 130px; flex-wrap: wrap; padding-block: 26px; }
  .footer { min-height: 120px; flex-wrap: wrap; gap: 14px 22px; padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
