:root {
  --text: #1f2933;
  --muted: #64717d;
  --link: #1f5f99;
  --line: #dce2e7;
  --background: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(920px, calc(100% - 40px)); margin: 0 auto; }

.topbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.nav-wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
.site-name { color: var(--text); font-size: 17px; font-weight: 650; }
.site-name:hover { text-decoration: none; }
nav { display: flex; gap: 25px; }
nav a { color: #46535e; font-size: 14px; }

.intro { padding: 72px 0 64px; display: grid; grid-template-columns: 220px 1fr; gap: 42px; align-items: start; }
.portrait-frame { width: 220px; border-radius: 4px; background: #dceaf5; }
.portrait { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 4px; }
h1 { margin: 0 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1.25; font-weight: 500; }
h1 span { margin-left: 8px; color: var(--muted); font-size: 24px; font-weight: 400; }
.role { margin: 8px 0 0; font-size: 18px; }
.affiliation { margin: 1px 0 18px; color: var(--muted); font-size: 14px; }
.bio { max-width: 670px; margin: 0; }
.links { margin-top: 20px; display: flex; gap: 20px; font-size: 14px; }

section { padding: 42px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
h2 { margin: 0 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 500; }
h2.subsection { margin-top: 42px; }
h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.45; font-weight: 650; }
p { margin: 0 0 10px; }

.research-item, .timeline-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; margin-bottom: 28px; }
.research-item:last-child, .timeline-row:last-child { margin-bottom: 0; }
.item-time { padding-top: 2px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.research-item p, .timeline-row p { color: #44515b; font-size: 14px; }
.research-item .note { color: var(--link); font-size: 13px; }
.venue-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.venue-badge small { padding-left: 7px; border-left: 1px solid currentColor; font-size: 12px; font-weight: 600; }
.venue-badge em { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.venue-badge u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.venue-badge.review { border-color: #e2c991; color: #78551a; background: #fff8e9; }
.venue-badge.published { border-color: #b9d6c1; color: #225c35; background: #eef7f1; }
.demo-status { margin-top: 22px; margin-bottom: 9px; }
.method-list { margin: 12px 0 14px; padding-left: 20px; color: #44515b; font-size: 14px; }
.method-list li { margin-bottom: 8px; }
.method-list code { padding: 1px 4px; background: #f1f4f6; border-radius: 3px; color: #34424d; font-size: 12px; }
.project-links { margin: 13px 0 0; }
.project-links a { display: inline-block; padding-bottom: 1px; border-bottom: 1px solid currentColor; font-size: 13px; }
.project-links a:hover { text-decoration: none; }
.project-demo { margin: 0 0 4px; }
.project-demo video {
  display: block;
  width: 100%;
  max-width: 720px;
  background: #111820;
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 30 / 19;
}
.project-demo figcaption { max-width: 720px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.project-demo figcaption strong { margin-right: 8px; color: var(--text); }
.project-figures { display: grid; gap: 24px; margin-top: 22px; }
.project-figure { margin: 0; }
.project-figure a { display: block; max-width: 720px; }
.project-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.project-figure figcaption { max-width: 720px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.project-figure figcaption strong { margin-right: 8px; color: var(--text); }

.section-note { margin: -20px 0 24px; color: var(--muted); font-size: 13px; }
.publication-list { margin: 0; padding-left: 22px; }
.publication-list li { margin-bottom: 22px; padding-left: 8px; font-size: 14px; }
.publication-list li:last-child { margin-bottom: 0; }
.publication-list strong { font-weight: 650; }
.publication-list span { color: #44515b; }
.publication-list em { color: var(--muted); font-style: normal; }

.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin-bottom: 8px; }
.skill-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid #edf0f2; font-size: 14px; }
.skill-row:last-child { border-bottom: 0; }

footer { padding: 30px 0 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

@media (max-width: 650px) {
  .container { width: min(100% - 30px, 920px); }
  .nav-wrap { padding: 16px 0; align-items: flex-start; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  nav a { font-size: 12px; }
  .intro { grid-template-columns: 130px 1fr; gap: 22px; padding: 48px 0; }
  .portrait-frame { width: 130px; }
  h1 { font-size: 30px; }
  h1 span { display: block; margin-left: 0; font-size: 19px; }
  .role { font-size: 16px; }
  .bio, .links { grid-column: 1 / -1; }
  .research-item, .timeline-row, .skill-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
