:root {
  --ink: #242424;
  --muted: #666;
  --blue: #1769aa;
  --blue-dark: #0d4f82;
  --rule: #dedede;
  --page-width: 1000px;
  --sidebar-width: 220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 42px 28px 70px;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { color: var(--blue-dark); text-decoration: underline; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 10; padding: 8px 12px; background: #111; color: #fff; }
.skip-link:focus { top: 18px; }

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

.profile {
  position: sticky;
  top: 34px;
  text-align: left;
}
.profile h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.2; font-weight: 600; }
.chinese-name { margin: 2px 0 20px; color: var(--muted); font-size: 14px; }
.profile-photo { width: 100%; height: 292px; object-fit: cover; object-position: center 47%; border-radius: 3px; }
.role { margin: 18px 0 15px; color: #444; font-size: 14px; line-height: 1.5; }
.contact-list { margin: 0 0 13px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.contact-list li { margin: 5px 0; }
.contact-list span { display: inline-block; width: 20px; color: #555; }
.profile nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.profile nav a { font-weight: 600; }

main { min-width: 0; }
.welcome { padding: 4px 0 24px; border-bottom: 1px solid var(--rule); }
.welcome h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; line-height: 1.35; }
section { padding: 28px 0 30px; border-bottom: 1px solid var(--rule); }
section h2 { margin: 0 0 17px; color: #333; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 600; }
section p { margin: 0 0 15px; text-align: justify; }
section p:last-child { margin-bottom: 0; }

.interest-list { margin: 0; padding-left: 22px; }
.interest-list li { margin: 5px 0; }

.publication-list { margin: 0; padding-left: 24px; }
.publication-list > li { padding: 0 0 25px 5px; }
.publication-list > li:last-child { padding-bottom: 0; }
.paper-title { margin-bottom: 2px; font-size: 17px; font-weight: 700; line-height: 1.45; text-align: left; }
.venue { margin-bottom: 2px; color: #333; font-style: italic; font-weight: 600; text-align: left; }
.authors { margin-bottom: 3px; color: #444; text-align: left; }
.paper-links { margin: 2px 0 0; text-align: left; }
.paper-links a { font-size: 14px; font-weight: 600; }

footer { padding-top: 25px; color: #888; font-size: 12px; }
footer p { margin: 0; }

@media (max-width: 760px) {
  body { padding: 25px 18px 50px; }
  .page-shell { grid-template-columns: 1fr; gap: 38px; }
  .profile { position: static; display: grid; grid-template-columns: 125px 1fr; column-gap: 22px; align-items: start; }
  .profile h1, .chinese-name { grid-column: 2; }
  .profile h1 { align-self: end; }
  .profile-photo { grid-column: 1; grid-row: 1 / span 5; }
  .role, .contact-list, .profile nav { grid-column: 2; }
  .role { margin-top: 8px; }
}

@media (max-width: 480px) {
  .profile { display: block; }
  .profile-photo { width: 170px; height: 226px; margin-top: 16px; }
  .profile h1 { font-size: 28px; }
  .welcome h2 { font-size: 22px; }
  section p { text-align: left; }
}

@media print {
  body { padding: 0; font-size: 11pt; }
  .page-shell { width: 100%; grid-template-columns: 170px 1fr; gap: 34px; }
  .profile { position: static; }
  a { color: inherit; }
}
