@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lato-regular.woff2') format('woff2');
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/lato-bold.woff2') format('woff2');
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #222; font: 14px/1.5 Lato, Verdana, Helvetica, sans-serif; }
main { width: 100%; max-width: 800px; margin: 24px auto 0; }
a { color: #1772d0; text-decoration: none; }
a:hover, a:focus-visible { color: #f09228; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1 { margin: 0 0 20px; font-size: 32px; line-height: 1.2; font-weight: 400; text-align: center; }
h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 400; }
h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.45; font-weight: 700; }
p { margin: 0 0 13px; }
.profile { display: grid; grid-template-columns: 70% 30%; align-items: center; }
.bio { padding: 20px; }
.portrait { display: block; margin: 20px; }
.portrait img { display: block; width: 100%; height: auto; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 9px; margin-top: 18px; }
.contact span, .paper-links span { color: #555; }
.contact-trigger { padding: 0; border: 0; background: none; color: #1772d0; font: inherit; cursor: pointer; }
.contact-trigger:hover, .contact-trigger:focus-visible { color: #f09228; }
.contact-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
dialog { width: min(340px, calc(100% - 40px)); padding: 32px; border: 0; border-radius: 8px; color: #222; text-align: center; box-shadow: 0 12px 48px #0003; }
dialog::backdrop { background: #0006; }
.dialog-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; padding: 2px 6px; font: 26px/1 Lato, sans-serif; color: #666; cursor: pointer; }
.dialog-close:hover { color: #222; }
.wechat-id { margin: 20px 0 4px; font-size: 18px; user-select: all; }
.section { padding: 20px; }
.news-scroll { max-height: var(--news-height, 112px); overflow-y: auto; margin-top: 15px; padding-right: 16px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b8b8b8 #f5f5f5; }
.news-scroll:focus-visible { outline: 2px solid #1772d0; outline-offset: 5px; }
.news ul { display: flex; flex-direction: column; gap: 7px; list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; }
.news time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.section-heading { padding-bottom: 10px; }
.note { color: #666; font-size: 13px; }
.section-heading .note { margin: 8px 0 0; }
.research-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 40px; padding: 20px; align-items: center; }
.research-row p { margin: 3px 0; }
.research-image { display: block; }
.research-image img { display: block; width: 100%; height: auto; }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px; }
.publication-scroll { max-height: 440px; overflow-y: auto; margin: 4px 20px 16px; padding-right: 16px; scrollbar-width: thin; scrollbar-color: #b8b8b8 #f5f5f5; }
.publication-scroll:focus-visible { outline: 2px solid #1772d0; outline-offset: 5px; }
.publication { padding: 12px 0 18px; }
.publication p { margin: 3px 0; }
.publication h3 { font-size: 15px; }
.project .research-image img { max-width: 130px; max-height: 130px; object-fit: contain; margin: auto; }
footer { padding: 32px 20px 24px; text-align: right; font-size: 12px; color: #777; }
.visitor-map { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  main { margin-top: 12px; }
  .profile { grid-template-columns: 1fr; }
  .bio { padding: 16px 22px; }
  .portrait { grid-row: 1; width: 150px; margin: 10px auto 16px; }
  h1 { margin-bottom: 18px; }
  .section { padding: 20px 22px; }
  .news ul { gap: 10px; }
  .news li { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .research-row { grid-template-columns: 115px minmax(0, 1fr); gap: 20px; padding: 20px 22px; }
  .publication-scroll { max-height: 420px; margin-right: 22px; margin-left: 22px; padding-right: 12px; }
  .contact { gap: 5px 8px; }
}
@media print {
  .publication-scroll, .news-scroll { max-height: none; overflow: visible; }
}
@media (max-width: 420px) {
  .research-row { grid-template-columns: 1fr; gap: 14px; }
  .research-image { max-width: 220px; }
  .project { grid-template-columns: 85px minmax(0, 1fr); gap: 16px; }
  footer { text-align: center; }
}
