:root {
  --ku-red: #901a1e;
  --ku-red-deep: #6d1317;
  --bg: #f5f2ea;
  --bg-accent: linear-gradient(180deg, #fbfaf6 0%, #f4f1ea 48%, #efebe3 100%);
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --text: #222a33;
  --muted: #66717c;
  --accent: #355f86;
  --accent-strong: #1f466d;
  --line: rgba(34, 42, 51, 0.14);
  --line-strong: rgba(34, 42, 51, 0.24);
  --shadow: 0 18px 40px rgba(41, 47, 54, 0.08);
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: 'Source Sans 3', 'Avenir Next', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    sans-serif;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

#app {
  min-height: 100vh;
}

.page-shell {
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 40px 0 104px;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 18px 0 14px;
  background: var(--ku-red);
  border-bottom: 4px solid var(--ku-red-deep);
  box-shadow: 0 16px 32px rgba(109, 19, 23, 0.18);
}

.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
}

.site-nav__brand {
  color: #ffffff;
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__links,
.site-nav__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav__links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: #ffffff;
}

.site-nav__controls button,
.hero__contact,
.hero__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.site-nav__controls button[aria-pressed='true'] {
  border-color: var(--line-strong);
  color: var(--accent-strong);
}

.site-nav__controls button:hover,
.hero__contact:hover,
.hero__contact-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.site-nav__controls button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.site-nav__controls button[aria-pressed='true'] {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.site-nav__controls button:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero__intro {
  max-width: 640px;
}

.hero__eyebrow,
.hero__title {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero__name,
.section h2 {
  margin: 0;
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__name {
  font-size: clamp(2.05rem, 4vw, 3.45rem);
  line-height: 0.98;
}

.hero__name-zh {
  margin-left: 0.36em;
  color: var(--muted);
  font-size: 0.5em;
  font-weight: 500;
}

.hero__affiliation,
.hero__tagline,
.section__summary,
.timeline__content p,
.publication-card span,
.contact__links a {
  color: var(--muted);
}

.hero__affiliation {
  margin: 16px 0 0;
  font-size: 0.98rem;
}

.hero__tagline {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__tags,
.research__tags,
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.tag {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.94rem;
}

.hero__aside {
  width: 100%;
}

.hero__portrait {
  width: min(100%, 184px);
  margin-left: auto;
}

.hero__portrait img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.section {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.section__summary {
  max-width: 720px;
  margin: 16px 0 0;
  line-height: 1.82;
}

.timeline,
.publication-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.timeline__item,
.publication-card {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.timeline__item:first-child,
.publication-card:first-child {
  border-top: 0;
  padding-top: 6px;
}

.timeline__item {
  grid-template-columns: 150px 1fr;
  align-items: start;
}

.timeline__period {
  color: var(--accent);
  font-weight: 600;
}

.timeline__content strong,
.publication-card > strong {
  display: block;
  font-size: 1.02rem;
}

.timeline__content p,
.publication-card span {
  margin: 6px 0 0;
  line-height: 1.75;
}

.publication__authors {
  font-size: 0.90rem;
}

.publication__author {
  display: inline;
  font-size: inherit;
}

.publication__note {
  font-size: 0.90rem;
}

.contact__email {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-strong);
  text-decoration: none;
}

.contact__links {
  gap: 14px;
}

.contact__links a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero__aside {
    order: -1;
  }

  .hero__portrait {
    width: min(176px, 100%);
    margin-left: 0;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .site-nav {
    width: min(100vw - 28px, 100%);
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 16px;
  }

  .site-nav__links,
  .site-nav__controls {
    justify-content: center;
  }

  .hero {
    margin-top: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero__name {
    font-size: 2.3rem;
  }

  .section {
    margin-top: 30px;
    padding-top: 24px;
  }
}
