:root {
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --ink: #1d211f;
  --muted: #66716c;
  --line: rgba(29, 33, 31, 0.14);
  --accent: #146c63;
  --accent-strong: #0d4f49;
  --orange: #f47b20;
  --sidebar-width: 300px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(244, 123, 32, 0.08), transparent 30rem),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.68;
}

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

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--accent-strong);
  border-radius: 4px;
  transform: translateY(-150%);
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-name {
  font-size: 1rem;
  font-weight: 760;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.page-shell {
  display: grid;
  width: min(1600px, calc(100% - 56px));
  margin: 56px auto 0;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: clamp(52px, 5.6vw, 96px);
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 96px;
  min-height: calc(100svh - 136px);
  padding-bottom: 32px;
}

.portrait {
  width: 184px;
  height: 184px;
  margin-bottom: 28px;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  background: #dfe8e4;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(29, 33, 31, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.name-cn {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.18rem;
}

.role {
  max-width: 270px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.profile-links {
  display: grid;
  gap: 10px;
  max-width: 230px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-links a,
.profile-links span {
  width: fit-content;
  color: var(--accent-strong);
  font-size: 0.96rem;
  font-weight: 720;
}

.profile-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-links span {
  color: var(--muted);
  cursor: default;
}

.content-column {
  min-width: 0;
  padding-bottom: 88px;
}

.intro-section,
.content-section,
.contact-section {
  scroll-margin-top: 92px;
}

.intro-section {
  padding: 10px 0 74px;
}

.section-heading,
.background-heading {
  max-width: none;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: #494f54;
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  font-weight: 780;
  line-height: 1.05;
}

.about-copy {
  display: grid;
  gap: 22px;
  max-width: 900px;
}

.about-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.22rem, 1.6vw, 1.42rem);
  line-height: 1.72;
}

.about-copy .about-lead {
  color: var(--ink);
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 640;
  line-height: 1.3;
}

.about-copy a,
.school-line a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(13, 79, 73, 0.24);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.about-copy a:hover,
.school-line a:hover {
  color: var(--orange);
  text-decoration-color: rgba(244, 123, 32, 0.48);
}

.taishan-note {
  display: grid;
  max-width: 900px;
  margin-top: 34px;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 22px;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.taishan-note:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.taishan-note img {
  width: 76px;
  height: 76px;
  justify-self: end;
  object-fit: contain;
}

.taishan-note span {
  font-size: clamp(1.08rem, 1.4vw, 1.26rem);
  line-height: 1.56;
}

.taishan-note strong {
  color: var(--orange);
  font-weight: 820;
}

.section-label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.content-section p,
.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

.content-section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.background-list {
  display: grid;
  gap: 52px;
}

.background-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.background-copy p {
  margin-bottom: 8px;
  max-width: none;
}

.degree-line {
  color: #494f54;
  font-size: clamp(1.28rem, 2.1vw, 1.95rem);
  font-weight: 520;
  line-height: 1.25;
}

.degree-line-sub {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-weight: 460;
}

.school-line {
  color: #4ba8c4;
  font-size: clamp(1.2rem, 1.95vw, 1.78rem);
  font-weight: 430;
  line-height: 1.28;
}

.school-line a {
  color: inherit;
  text-decoration-color: rgba(75, 168, 196, 0.32);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.school-logo {
  display: block;
  width: 128px;
  height: 128px;
  justify-self: center;
  object-fit: contain;
}

.school-logo[src*="hit-logo"] {
  width: 142px;
  height: 128px;
}

.publication-list {
  display: grid;
  gap: 38px;
}

.publication-item {
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(540px, 1fr);
  gap: clamp(34px, 3.4vw, 56px);
  align-items: stretch;
  padding: 8px 0 42px;
  border-bottom: 1px solid var(--line);
}

.publication-teaser {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.publication-copy {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-width: 0;
  padding-top: 2px;
}

.publication-authors {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.publication-authors strong {
  color: var(--ink);
  font-weight: 820;
}

.publication-copy h3 {
  max-width: 820px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.16rem, 1.45vw, 1.42rem);
  line-height: 1.3;
}

.publication-venue {
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-highlight {
  color: #d92828;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: end;
}

.publication-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--accent-strong);
  border: 1px solid rgba(13, 79, 73, 0.26);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 780;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.publication-links a:hover {
  color: var(--orange);
  border-color: rgba(244, 123, 32, 0.52);
  transform: translateY(-1px);
}

.note-row p,
.empty-state p {
  margin-bottom: 0;
}

.note-row {
  display: grid;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.empty-state {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section {
  margin-top: 28px;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.email-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #ffffff;
  background: var(--accent-strong);
  border-radius: 6px;
  font-weight: 760;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.email-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.site-footer {
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 42px calc(var(--sidebar-width) + clamp(52px, 5.6vw, 96px));
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

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

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

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .page-shell {
    width: min(100% - 32px, 640px);
    margin-top: 34px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-panel {
    position: relative;
    top: auto;
    min-height: auto;
    padding-bottom: 12px;
  }

  .portrait {
    width: 136px;
    height: 136px;
    margin-bottom: 20px;
  }

  .role,
  .profile-links {
    max-width: none;
  }

  .intro-section {
    padding-top: 8px;
    padding-bottom: 54px;
  }

  .content-section {
    padding: 46px 0;
  }

  .section-heading,
  .background-heading {
    margin-bottom: 30px;
  }

  .about-copy {
    gap: 18px;
  }

  .taishan-note {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 16px;
  }

  .taishan-note img {
    width: 58px;
    height: 58px;
  }

  .background-list {
    gap: 42px;
  }

  .background-item,
  .publication-item,
  .note-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .publication-teaser {
    max-width: 100%;
  }

  .background-item {
    align-items: start;
  }

  .school-logo {
    width: 96px;
    height: 96px;
    justify-self: start;
  }

  .school-logo[src*="hit-logo"] {
    width: 108px;
    height: 96px;
  }

  .site-footer {
    width: min(100% - 32px, 640px);
    padding-left: 0;
  }
}

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