/* Adapted from vCard by codewithsadee (c) 2022, MIT. See LICENSE. */
@font-face { font-family: Poppins; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --page: #111112;
  --panel: #1e1e20;
  --raised: #242426;
  --border: #38383a;
  --gold: #f1ce78;
  --gold-muted: #d0b478;
  --heading: #fafafa;
  --text: #d6d6d8;
  --muted: #b2b2b8;
  --panel-shadow: -4px 8px 30px rgb(0 0 0 / 18%);
  --card-shadow: 0 12px 28px rgb(0 0 0 / 15%);
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1rem/1.75 Poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.4; }
h1 { font-size: 1.875rem; letter-spacing: -.6px; }
.chinese-name { margin-top: 6px; color: var(--muted); font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 1.1875rem; letter-spacing: .12em; }
h2 { font-size: 2rem; letter-spacing: -.8px; }
h3 { font-size: 1.5rem; letter-spacing: -.4px; }
h4 { font-size: 1.0625rem; }
h2, h3, h4, .interest-title, .teaching-label, .filter-button { text-transform: capitalize; }
::selection { color: var(--page); background: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 10; background: var(--gold); color: var(--page); padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-shell { padding: 0 clamp(28px, 3vw, 96px); margin: 48px auto; display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 26px; }
.sidebar, .main-content { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.sidebar { position: sticky; top: 28px; align-self: start; padding: 44px 24px 42px; display: flex; flex-direction: column; }
.profile { text-align: center; }
.avatar { position: relative; flex-shrink: 0; width: 200px; height: 200px; margin: 0 auto 24px; overflow: hidden; border-radius: 28px; background: var(--raised); }
.avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.role { width: fit-content; margin: 14px auto 10px; padding: 5px 14px; border-radius: 8px; background: #2b2b2e; color: #f5f5f6; font-size: .875rem; }
.discipline { font-size: .875rem; line-height: 1.65; }
.sidebar-details { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 28px; }
.contact-list { display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 13px; align-items: center; }
.contact-list li > div { min-width: 0; }
.contact-label { display: block; text-transform: uppercase; color: var(--muted); font-size: .75rem; letter-spacing: .65px; margin-bottom: 3px; line-height: 1.6; }
.contact-list a, .contact-list p { font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.icon-box { width: 43px; height: 46px; flex-shrink: 0; display: grid; place-items: center; color: var(--gold); background: linear-gradient(135deg, #303033, #222224 60%); border-radius: 12px; box-shadow: -2px 3px 12px rgb(0 0 0 / 15%), inset 1px 1px 0 rgb(255 255 255 / 4%); }
.icon-box svg { width: 22px; height: 22px; }
.page a, .gold-link, .text-link { color: var(--gold); }
.contact-list a { color: var(--text); }
.page .concentration-link { color: inherit; }
.page a:hover, .page a:focus-visible, .contact-list a:hover, .contact-list a:focus-visible, .gold-link:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.file-type { font-size: .75rem; color: var(--muted); margin-left: 4px; }
.profile-links { margin-top: auto; padding-top: 32px; }
.profile-links > p { text-align: center; margin-bottom: 12px; }
.social-links { display: flex; justify-content: center; gap: 10px; }
.social-links a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #27272a; border: 1px solid var(--border); color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.social-links a:hover { color: var(--gold); border-color: #8f7949; background: #30302e; }
.social-links svg { width: 23px; height: 23px; }
.main-content { min-width: 0; position: relative; border-top: 0; }
.main-content:focus { outline: none; }
.panel-top { position: sticky; top: 28px; z-index: 2; margin-inline: -1px; background: var(--page); }
.panel-top::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: var(--page); }
.navbar { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding: 12px 24px; background: #28282a; border: 1px solid var(--border); border-radius: 20px 20px 0 0; }
.nav-link { position: relative; flex: 1; color: var(--text); font-size: 1rem; font-weight: 500; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; text-align: center; transition: color .2s; }
.nav-link + .nav-link::before { content: ''; position: absolute; left: -5px; top: 50%; width: 1px; height: 18px; transform: translateY(-50%); background: rgb(255 255 255 / 12%); pointer-events: none; }
.nav-link.active, .nav-link:hover { color: var(--gold); }
.page { padding: 0 30px 34px; scroll-margin-top: 28px; }
.page:not(.active) { border-top: 1px solid var(--border); padding-top: 35px; }
.js-enabled .page[hidden] { display: none; }
.js-enabled .page { border: 0; padding-top: 0; }
.page-header { margin: 24px 0 25px; }
.page-header h2::after { content: ''; display: block; width: 42px; height: 5px; background: var(--gold); border-radius: 4px; margin-top: 17px; }
.prose p + p { margin-top: 16px; }
.intro { color: var(--text); font-size: 1rem; line-height: 1.85; }
.page-intro { color: var(--text); margin-bottom: 28px; font-size: .96875rem; }
.section { margin-top: 30px; }
.section > h3 { margin-bottom: 20px; }
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.interest-card { display: flex; gap: 18px; padding: 23px 20px; background: linear-gradient(135deg, #28282b, #232325 75%); border: 1px solid #303033; border-radius: 15px; box-shadow: var(--card-shadow); transition: border-color .2s, background .2s; }
.interest-card:hover { border-color: #786641; background: linear-gradient(135deg, #2c2b28, #252526 75%); }
.interest-icon { color: var(--gold); width: 38px; height: 38px; margin-top: 3px; }
.interest-card h4 { font-size: 1.0625rem; line-height: 1.45; margin-bottom: 7px; }
.interest-card p { font-size: .875rem; line-height: 1.7; }
.interest-grid { align-items: stretch; }
.interest-panel { display: block; padding: 0; overflow: clip; }
.interest-panel summary { display: flex; gap: 16px; padding: 23px 20px; cursor: pointer; list-style: none; }
.interest-panel summary::-webkit-details-marker { display: none; }
.interest-summary { display: block; min-width: 0; }
.interest-title { display: block; color: var(--heading); font-size: 1.0625rem; font-weight: 600; line-height: 1.45; min-height: 2.9em; margin-bottom: 7px; }
.interest-teaser { display: block; font-size: .875rem; line-height: 1.7; }
.disclosure-indicator { flex-shrink: 0; margin-left: auto; color: var(--gold); font-size: 1.25rem; line-height: 1.4; }
.disclosure-indicator::before { content: '+'; }
.interest-panel[open] .disclosure-indicator::before { content: '−'; }
.interest-panel summary:focus-visible { outline-offset: -5px; border-radius: 14px; }
.interest-details { padding: 0 20px 23px; }
.interest-details > p { border-top: 1px solid var(--border); padding-top: 18px; font-size: .9375rem; line-height: 1.8; }
.interest-details .text-link { display: inline-block; font-size: .875rem; line-height: 1.8; margin-top: 14px; }
.research-interests { margin-top: 0; }
.publications-section { padding-top: 30px; margin-top: 34px; border-top: 1px solid var(--border); }
.background-section { margin-top: 32px; }
.timeline { padding-left: 19px; margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 23px 14px; border-left: 1px solid #3b3b3e; }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before { content: ''; position: absolute; top: 7px; left: -5px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px #303032; }
.timeline h4 { margin-bottom: 3px; }
.timeline p { font-size: .875rem; }
.education-timeline { margin-top: 34px; }
.education-timeline h4 { font-size: 1.125rem; margin-bottom: 7px; }
.education-timeline li { padding-bottom: 30px; }
.education-timeline p { font-size: .96875rem; }
.education-timeline .education-concentration { margin: 3px 0 7px; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.education-timeline .date { font-size: .875rem; }
.date { color: var(--gold-muted); font-size: .875rem; margin-top: 4px; }
.experience-entry { padding: 21px 23px; border: 1px solid var(--border); border-radius: 14px; background: #232325; }
.experience-entry h4 { margin-bottom: 5px; }
.experience-entry > p { font-size: .875rem; }
.appointment-periods { margin-top: 11px; color: var(--gold-muted); font-size: .875rem; }
.honors-section { padding-top: 30px; margin-top: 34px; border-top: 1px solid var(--border); }
.awards-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.research-topic { padding: 28px 0; border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.research-topic:first-of-type { padding-top: 0; border-top: 0; }
.research-topic:last-child { padding-bottom: 0; }
.topic-heading, .section-icon-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 17px; }
.topic-heading svg { color: var(--gold); width: 31px; height: 31px; }
.topic-heading h3 { font-size: 1.25rem; }
.research-topic .prose { font-size: .96875rem; }
.research-topic .text-link { display: inline-block; font-size: .875rem; line-height: 1.8; margin-top: 15px; }
.status-inline { color: var(--muted); font-size: .8125rem; display: block; }
.publication-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; }
.filter-button { border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 8px 12px; font-size: .875rem; line-height: 1.5; }
.filter-button.active { color: var(--gold); background: #30302d; border-color: #4d4636; }
.filter-button:hover { color: var(--gold); }
.publication-group + .publication-group { margin-top: 32px; }
.publication-group h4 { font-size: 1.1875rem; margin-bottom: 10px; }
.publication, .presentation { padding: 20px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 24px; }
.publication:last-child, .presentation:last-child { border: 0; padding-bottom: 0; }
.publication h5, .presentation h4 { color: var(--heading); font-size: 1rem; font-weight: 500; line-height: 1.65; margin: 0 0 9px; }
.presentation h4 { text-transform: none; }
.presentation-type { display: inline-block; margin-right: 10px; padding: 2px 7px; border: 1px solid var(--border); border-radius: 5px; background: #29292c; color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.5; vertical-align: baseline; }
.publication h5 a { color: inherit; }
.publication h5 a:hover, .publication h5 a:focus-visible { color: var(--gold); }
.publication .authors, .presentation .authors { color: var(--muted); font-size: .875rem; line-height: 1.75; }
.publication strong, .presentation strong { font-weight: 600; }
.publication .venue, .presentation .venue { color: var(--text); font-size: .875rem; margin-top: 5px; }
.publication-note { color: var(--muted); font-size: .8125rem; margin-top: 6px; }
.section-icon-heading h3 { font-size: 1.25rem; }
.teaching-timeline { margin-top: 28px; }
.teaching-timeline li { padding-bottom: 32px; }
.teaching-timeline h4 { font-size: 1.125rem; margin-bottom: 9px; }
.teaching-timeline p { font-size: .96875rem; }
.teaching-timeline .date { margin-top: 10px; font-size: .875rem; }
.course-name { color: var(--heading); margin-bottom: 4px; }
.teaching-role { color: var(--text); font-size: .9375rem; }
.teaching-role .date { display: block; }
.teaching-introduction a { color: inherit; }
.teaching-introduction { margin-top: 22px; font-size: .96875rem; }
.teaching-subsection { margin-top: 32px; }
.teaching-subheading { font-size: 1.1875rem; margin-bottom: 18px; }
.teaching-section-note { color: var(--muted); font-size: .9375rem; margin: -8px 0 19px; }
.mentorship-list { display: grid; gap: 18px; }
.mentorship-card, .mention-card, .course-entry { border: 1px solid var(--border); border-radius: 15px; padding: 23px; background: linear-gradient(135deg, #27272a, #232325 80%); }
.teaching-label { color: var(--gold-muted); font-size: .8125rem; margin-bottom: 10px; line-height: 1.6; }
.mentorship-card h5 { color: var(--heading); font: 500 1.0625rem/1.65 Poppins, sans-serif; margin: 0 0 12px; }
.mentorship-card > p:not(.teaching-label) { font-size: .9375rem; line-height: 1.8; }
.mentorship-card .mentorship-credit { color: var(--heading); margin-top: 15px; }
.mentorship-card .project-event { color: var(--muted); font-size: .8125rem; margin-top: 3px; }
.evidence-link { display: inline-block; font-size: .875rem; margin-top: 14px; text-underline-offset: 4px; }
.mention-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mention-card { display: flex; flex-direction: column; min-width: 0; }
.mention-card blockquote { margin: 3px 0 20px; padding-left: 15px; border-left: 2px solid var(--gold-muted); font-size: .9375rem; line-height: 1.9; }
.mention-card figcaption { margin-top: auto; }
.mention-card cite { display: block; color: var(--heading); font-size: .875rem; font-style: normal; font-weight: 500; }
.mention-card figcaption span { display: block; color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.courses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.epics-section { padding-top: 30px; border-top: 1px solid var(--border); margin-top: 34px; }
.course-entry h4 { margin-bottom: 10px; }
.course-entry p { font-size: .9375rem; }
.course-entry .date { margin-top: 10px; font-size: .875rem; }
.empty-state { min-height: 410px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 35px 16px; }
.empty-icon { color: var(--gold); width: 72px; height: 72px; border-radius: 18px; background: #2a2926; display: grid; place-items: center; margin-bottom: 24px; }
.empty-icon svg { width: 36px; height: 36px; }
.empty-state h3 { margin-bottom: 12px; }
.empty-state p { max-width: 340px; color: var(--muted); }

@media (min-width: 1400px) { .site-shell { grid-template-columns: 350px minmax(0, 1fr); gap: 28px; } .page { padding-inline: 36px; } .navbar { padding-inline: 30px; } .page-header { margin-top: 20px; } }
@media (max-width: 1159px) { .site-shell { padding-inline: 24px; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; margin-top: 32px; } .sidebar { padding-inline: 20px; } .navbar { gap: 6px; padding: 12px 18px; } .page { padding-inline: 24px; } .interest-grid { grid-template-columns: 1fr; gap: 16px; } .interest-card { padding: 20px; } .interest-card p { font-size: .9375rem; } .contact-list { gap: 23px; } .contact-list li { gap: 10px; } .contact-list a, .contact-list p { font-size: .9375rem; } .social-links { gap: 8px; } .social-links a { width: 44px; height: 44px; } }
@media (max-width: 899px) { .site-shell { display: block; max-width: 760px; margin: 24px auto; } .sidebar { position: static; min-height: 0; padding: 26px; margin-bottom: 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; } .profile { display: flex; align-items: center; gap: 22px; text-align: left; grid-column: 1 / -1; } .avatar { width: 96px; height: 96px; font-size: 2.5rem; border-radius: 22px; margin: 0; } .role { margin: 9px 0; } .discipline { font-size: .9375rem; } .sidebar-details { border: 0; margin: 0; padding: 0; } .contact-list { grid-template-columns: 1fr 1fr; gap: 20px; } .contact-list a, .contact-list p { font-size: 1rem; } .profile-links { grid-column: 1 / -1; padding: 20px 0 0; border-top: 1px solid var(--border); margin: 0; display: flex; align-items: center; justify-content: center; } .profile-links > p { margin: 0; } .contact-label { font-size: .75rem; } .interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .interest-card { gap: 15px; padding: 20px; } .interest-icon { width: 32px; height: 32px; } }
@media (max-width: 599px) { body { font-size: 1rem; } .site-shell { padding: 0 14px; margin: 16px auto; } .sidebar { display: block; padding: 23px 20px 20px; border-radius: 18px; margin-bottom: 18px; } .profile { gap: 17px; } h1 { font-size: 1.625rem; } .avatar { width: 82px; height: 82px; font-size: 2.25rem; border-radius: 20px; } .role { padding: 4px 10px; font-size: .8125rem; margin: 8px 0; } .discipline { font-size: .8125rem; } .sidebar-details { padding-top: 24px; } .contact-list { grid-template-columns: 1fr; gap: 17px; } .contact-list li { gap: 15px; } .contact-list a, .contact-list p { font-size: 1rem; } .contact-label { font-size: .75rem; } .icon-box { width: 41px; height: 43px; } .profile-links { margin-top: 22px; padding-top: 18px; } .profile-links > p { font-size: .6875rem; } .social-links { gap: 8px; } .social-links a { width: 43px; height: 43px; } .main-content { border-radius: 18px; } .navbar { gap: 8px; padding: 14px 16px; border-radius: 18px 18px 0 0; } .nav-link { font-size: .8125rem; padding: 9px 0; } .page { padding: 0 21px 28px; } .page-header { margin-top: 24px; margin-bottom: 23px; } h2 { font-size: 1.75rem; } h3 { font-size: 1.375rem; } .intro, .page-intro { font-size: 1rem; } .section { margin-top: 27px; } .interest-grid { grid-template-columns: 1fr; gap: 16px; } .interest-card { padding: 22px 18px; gap: 17px; } .interest-card h4 { font-size: 1.0625rem; } .interest-card p { font-size: .9375rem; } .timeline h4 { font-size: 1rem; } .timeline p { font-size: .875rem; } .topic-heading { gap: 13px; } .topic-heading h3 { font-size: 1.1875rem; } .publication-filters { gap: 2px; } .filter-button { font-size: .8125rem; padding: 9px; } .publication h4 { font-size: 1rem; } .empty-state { min-height: 340px; } .teaching-timeline h4 { font-size: 1.0625rem; } }
@media (prefers-reduced-motion: reduce) { html { font-size: 17px; scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 599px) { .navbar { padding: 12px; gap: 7px; } .nav-link { font-size: .875rem; } }
@media (max-width: 379px) { .navbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 9px; } .nav-link { text-align: center; } .profile-links { display: block; } .profile-links > p { text-align: left; margin-bottom: 12px; } .social-links { justify-content: flex-start; } }
@media (min-width: 900px) and (max-width: 1159px), (max-width: 599px) { .mention-grid { grid-template-columns: 1fr; } .mentorship-card, .mention-card, .course-entry { padding: 21px 19px; } }
@media (max-width: 599px) { .navbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 9px; } .nav-link { text-align: center; } }
@media (max-width: 1159px) { .interest-panel { padding: 0; } .interest-panel summary { padding: 20px; } }
@media (max-width: 599px) { .interest-panel summary { gap: 13px; padding: 22px 18px; } .interest-teaser { font-size: .9375rem; } .interest-details { padding: 0 18px 22px; } .interest-panel .interest-icon { width: 28px; height: 28px; } }
@media (max-width: 1159px) { .courses-grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) and (max-width: 1159px), (max-width: 599px) { .interest-title { min-height: 0; } }
@media (max-width: 599px) { .nav-link:nth-child(3n + 1)::before { content: none; } }

@media (max-width: 899px) { .panel-top { top: 16px; } .panel-top::before { height: 16px; } }
@media (max-width: 1159px) { .awards-list { grid-template-columns: 1fr; } }
