:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --ink: #211d2c;
  --muted: #575360;
  --line: #ddd8d0;
  --accent: #493d78;
  --accent-dark: #352b58;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .5rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { flex: none; display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 800; text-decoration: none; font-size: .9rem; }
.wordmark span { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--accent-dark); color: white; border-radius: .42rem; font: 1.24rem/1 var(--serif); }
nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.2rem); }
nav a { color: var(--muted); font-size: .82rem; font-weight: 800; text-decoration: none; }
nav a:hover, .footer-inner a:hover { color: var(--accent); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .58fr);
  margin-top: clamp(1.75rem, 4.2vw, 3.8rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  overflow: hidden;
  background: var(--surface);
}
.hero-copy { padding: clamp(1.5rem, 4.15vw, 3.45rem); }
.eyebrow { color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin: .25rem 0 .8rem; font: 400 clamp(3.5rem, 7.6vw, 6.6rem)/.98 var(--serif); letter-spacing: -.035em; }
.hero h1 span { display: inline-block; margin-left: .15em; vertical-align: .3em; color: var(--accent); font: 600 clamp(1.15rem, 2.5vw, 1.75rem)/1.4 "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; letter-spacing: .08em; white-space: nowrap; }
.affiliation { font-size: .9rem; font-weight: 800; }
.affiliation span { color: var(--muted); font-weight: 500; }
.intro { max-width: 38rem; margin-top: 1.35rem; color: var(--muted); font-size: clamp(.94rem, 1.5vw, 1.07rem); line-height: 1.7; }
.profile-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 .85rem; }
.button { display: inline-flex; gap: .45rem; align-items: center; justify-content: center; min-height: 2.65rem; padding: .42rem .85rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink); font-size: .8rem; font-weight: 800; text-decoration: none; }
.button:hover { background: #eeebf5; border-color: #c9bfdc; }
.button-primary { background: var(--accent); border-color: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.chinese-intro { max-width: 37rem; color: var(--muted); font-size: .83rem; line-height: 1.8; }
.chinese-intro summary { width: max-content; cursor: pointer; color: var(--accent); font-weight: 800; }
.chinese-intro p { margin-top: .55rem; }
.portrait-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: radial-gradient(ellipse at 75% 5%, #685a8e 0, #42365f 59%, #302641 100%);
}
.portrait-mat {
  position: relative;
  width: min(100%, 17.75rem);
  padding: .52rem;
  border: 1px solid #a198b8;
  border-radius: .8rem;
  background: #ffffff0d;
  box-shadow: 0 1.4rem 3rem #21193050;
}
.portrait-mat img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .46rem; }

.section { margin-top: clamp(3.15rem, 6vw, 5.35rem); scroll-margin-top: 5.9rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
h2 { font: 400 clamp(2.45rem, 4.5vw, 3.75rem)/1.04 var(--serif); letter-spacing: -.025em; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.research-item { padding: clamp(1.2rem, 2.3vw, 1.65rem); border: 1px solid var(--line); border-radius: .78rem; background: var(--surface); }
.research-item h3 { font: 400 clamp(1.62rem, 3vw, 2.04rem)/1.1 var(--serif); margin: .47rem 0 .65rem; }
.research-item > :last-child, .experience p { color: var(--muted); font-size: .9rem; line-height: 1.66; }

.gallery-controls { display: flex; gap: .4rem; }
.gallery-button { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; color: var(--accent); cursor: pointer; font: 700 1.15rem/1 var(--sans); }
.gallery-button:hover:not(:disabled) { background: #eeebf5; border-color: #c9bfdc; }
.gallery-button:disabled { color: #8a8390; cursor: default; }
.paper-gallery {
  --gallery-gap: .85rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gallery-gap)) / 3);
  gap: var(--gallery-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #89809e #ece8e2;
  scrollbar-width: thin;
  padding: 0 0 .8rem;
  margin: 0;
  list-style: none;
}
.paper-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: .78rem; }
.paper-image { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: #f0edf5; border-bottom: 1px solid var(--line); }
.paper-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: .6rem; background: #fff; }
.paper-image--signal {
  background: repeating-linear-gradient(0deg, #f7f4fb00 0 25px, #8b7aab2e 25px 26px),
              repeating-linear-gradient(90deg, #f7f4fb00 0 25px, #8b7aab2e 25px 26px),
              linear-gradient(130deg, #f5f0f8, #ded6ec);
}
.paper-image--signal::before {
  content: "";
  width: 72%; height: 70%;
  background: #746194;
  clip-path: polygon(0 51%, 15% 51%, 22% 32%, 31% 74%, 40% 21%, 46% 57%, 59% 57%, 66% 42%, 76% 62%, 85% 50%, 100% 50%, 100% 53%, 86% 53%, 76% 66%, 66% 47%, 60% 60%, 44% 60%, 40% 28%, 31% 82%, 22% 39%, 16% 54%, 0 54%);
}
.paper-image--interaction {
  background: radial-gradient(circle at 38% 50%, #ab9dc560 0 18%, transparent 18.5%),
              radial-gradient(circle at 62% 50%, #8275ab62 0 18%, transparent 18.5%),
              linear-gradient(135deg, #f4eff5, #e8e2ee);
}
.paper-image--mobility {
  background: repeating-linear-gradient(136deg, transparent 0 24px, #9e766436 24px 25px, transparent 25px 32px),
              linear-gradient(135deg, #f0e6db, #e8d9da);
}
.paper-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.12rem 1.25rem 1.2rem; }
.paper-meta { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .045em; }
.paper-body h3 { font-size: .96rem; font-weight: 800; line-height: 1.42; }
.paper-link { margin-top: auto; font-size: .8rem; font-weight: 800; padding-top: .28rem; }
.paper-link:hover, .experience a:hover { color: var(--accent-dark); }

.background-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.education { list-style: none; margin: 0; padding: 0; }
.education li { display: grid; grid-template-columns: 7.5rem minmax(0,1fr); align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding: .95rem 0; }
.education li:first-child { padding-top: .25rem; }
.education time { color: var(--accent); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.education h3 { font-size: .94rem; }
.education p { color: var(--muted); font-size: .85rem; }
.experience { padding: clamp(1.25rem, 3vw, 2rem); border-radius: .8rem; background: #ede8f3; }
.experience h3 { font: 400 2rem/1.1 var(--serif); margin-bottom: .7rem; }
.experience a { display: inline-block; margin-top: .8rem; font-size: .82rem; font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3.2rem, 6vw, 5.5rem); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.35rem; padding-block: 1.35rem; color: var(--muted); font-size: .8rem; }
.footer-inner a { font-weight: 800; text-decoration: none; }
.footer-inner a:last-child { margin-left: auto; }

@media (max-width: 60rem) {
  .wrap { width: calc(100% - 3rem); }
  .paper-gallery { grid-auto-columns: calc((100% - var(--gallery-gap)) / 2); }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { position: static; }
  .header-inner { min-height: 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: .6rem; padding-block: .65rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .portrait-panel { grid-row: 1; justify-items: start; min-height: 0; padding: 1.1rem 1.5rem; }
  .portrait-mat { width: 6.3rem; padding: .25rem; border-radius: .55rem; }
  .portrait-mat img { border-radius: .3rem; }
  .section { scroll-margin-top: 1rem; }
  .research-grid, .background-grid { grid-template-columns: minmax(0, 1fr); }
  .paper-gallery { grid-auto-columns: min(83%, 21rem); }
  .education li { grid-template-columns: 6.1rem minmax(0, 1fr); gap: .65rem; }
}
@media (max-width: 24rem) {
  .hero h1 { font-size: 3.2rem; }
  .hero-copy { padding-inline: 1.15rem; }
  .footer-inner { column-gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
