/* 常用配色：修改下方变量即可统一调整全站颜色。 */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #2b2b2b;
  --text: #606060;
  --muted: #757575;
  --line: #eaeae7;
  font-family: Arial, "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 16px;
}
/* 基础文字、链接与键盘访问。 */
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--text); background: var(--paper); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: #494949; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: #b5b5b1; }
a:hover { color: #111; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 1px; }
::selection { color: #fff; background: #606060; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 8px 16px; background: var(--ink); color: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
/* 顶部导航。 */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; min-height: 94px; margin: auto; padding: 22px 40px; display: flex; align-items: center; gap: 38px; }
.header-inner a { position: relative; display: block; padding: 8px 0; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.header-inner .wordmark { margin-right: auto; color: var(--ink); font-size: 16px; letter-spacing: .025em; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.header-inner a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .18s ease; }
.header-inner a:hover::after, .header-inner a:focus-visible::after, .header-inner a[aria-current="page"]:not(.wordmark)::after { transform: scaleX(1); }
.header-inner a[aria-current="page"] { color: var(--ink); }
/* 主体布局与左侧照片、个人信息。 */
.page-layout { width: 100%; max-width: 1120px; margin: 64px auto 88px; padding: 0 40px; display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 80px; align-items: start; flex: 1; }
.profile { position: sticky; top: 38px; align-self: start; min-width: 0; text-align: center; }
.portrait-link { display: block; width: 164px; margin: 0 auto 23px; }
.portrait { display: block; width: 100%; height: 190px; object-fit: cover; object-position: 50% 28%; border-radius: 50%; }
.profile-name { color: var(--ink); font-family: Arial, "PingFang SC", sans-serif; font-size: 19px; line-height: 1.5; margin: 0 0 13px; font-weight: 700; }
.profile-name span { display: inline-block; margin-left: 4px; font-size: .86em; font-weight: 500; white-space: nowrap; }
.position { font-size: 14px; line-height: 1.6; margin: 0 0 5px; }
.affiliation { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.affiliation span { display: block; }
.profile-contact { margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.profile-links { padding: 0; margin: 0; list-style: none; font-size: 12px; line-height: 1.7; }
.profile-links li + li { margin-top: 9px; }
.profile-links a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: inherit; text-decoration: none; }
.profile-links a:hover { color: var(--ink); text-decoration: underline; }
.contact-icon { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.profile-location { font-size: 12px; color: var(--muted); margin: 17px 0 0; }
/* 正文标题、段落与联系信息。 */
main { min-width: 0; max-width: 720px; padding-top: 0; overflow-wrap: break-word; }
main:focus { outline: none; }
section { margin: 0 0 48px; scroll-margin-top: 28px; }
section:last-child { margin-bottom: 0; }
h1, h2 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.3; margin: 0 0 25px; }
h1 { font-size: 38px; letter-spacing: -.025em; }
h2 { font-size: 30px; letter-spacing: -.02em; }
h3 { color: var(--ink); font-size: 16px; line-height: 1.6; }
p { margin: 0 0 23px; }
section > :last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.research-topics { padding-left: 21px; margin: 0 0 24px; }
.research-topics li { padding-left: 2px; margin-bottom: 7px; }
.contact-details { margin: 0; font-style: normal; font-size: 15px; line-height: 1.8; }
.contact-details p + p { margin-top: 15px; }
.contact-label { display: inline-block; min-width: 60px; color: var(--ink); font-weight: 600; }
.section-intro { color: var(--text); }
/* Research：论文与工作论文。 */
.publications { list-style: none; counter-reset: paper; padding: 0; margin: 32px 0 0; }
.publications li { position: relative; counter-increment: paper; margin: 0 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.publications li:last-child { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
.publications h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.55; }
.publications h3 a { color: inherit; text-decoration: none; }
.publications h3 a:hover { text-decoration: underline; }
.authors, .venue { margin: 0 0 4px; font-size: 15px; line-height: 1.65; }
.paper-link { display: inline-block; margin-top: 5px; font-size: 13px; }
.publication-note { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
/* Experience：任职、教育、访学与右侧日期。 */
.background-list { margin: 28px 0 0; }
.background-list > div + div { margin-top: 28px; }
.background-list dt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 15px; margin: 0 0 5px; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.6; }
.background-list dd { margin: 0; font-size: 15px; line-height: 1.75; }
.background-dates { color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.background-list dd span { display: block; margin-top: 3px; }
.background-row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-top: 3px; }
.background-row time { margin-left: auto; }
.appointment-history { padding-left: 0; list-style: none; margin: 9px 0 0; }
.appointment-history li { display: flex; justify-content: space-between; gap: 8px 20px; margin-bottom: 4px; font-size: 15px; }
.appointment-history time { color: var(--muted); font-size: 13px; white-space: nowrap; align-self: center; margin-left: auto; }
/* 科研项目、奖励、课程与学生。 */
.grants-list, .awards-list { padding-left: 21px; margin: 0; }
.grants-list li, .awards-list li { padding-left: 3px; margin-bottom: 22px; }
.grants-list li:last-child, .awards-list li:last-child { margin-bottom: 0; }
.award-note { margin: 9px 0 0; font-size: 15px; }
.teaching-section h2 { margin-top: 40px; }
.teaching-section > h2:first-child { margin-top: 0; }
.teaching-section h3 { margin: 28px 0 14px; font-size: 18px; }
.teaching-section ul { padding-left: 21px; margin: 0; }
.teaching-section li { padding-left: 3px; margin-bottom: 16px; }
/* 页脚。 */
.site-footer { width: 100%; margin-top: auto; border-top: 1px solid var(--line); background: #fafaf9; color: var(--muted); }
.footer-inner { max-width: 1120px; min-height: 84px; margin: auto; padding: 27px 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 925px) and (max-height: 680px) { .profile { position: static; } }
/* 较窄屏幕与手机：导航、头像和正文自动重排。 */
@media (max-width: 924px) {
  .header-inner { max-width: 800px; flex-wrap: wrap; row-gap: 10px; }
  .header-inner .wordmark { flex-basis: 100%; }
  .nav-links { flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; }
  .page-layout { display: block; max-width: 800px; margin-top: 40px; margin-bottom: 64px; }
  .profile { position: static; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 28px; margin-bottom: 38px; padding-bottom: 28px; border-bottom: 1px solid var(--line); text-align: left; }
  .portrait-link { grid-column: 1; grid-row: 1 / 3; width: 110px; margin: 0; }
  .portrait { height: 128px; }
  .profile-copy { grid-column: 2; grid-row: 1; }
  .profile-name { margin-bottom: 6px; }
  .affiliation span { display: inline; }
  .affiliation span + span::before { content: " · "; }
  .profile-contact { grid-column: 2; grid-row: 2; margin-top: 12px; padding: 0; border: 0; }
  .profile-links { display: flex; flex-wrap: wrap; gap: 5px 18px; }
  .profile-links li + li { margin: 0; }
  .profile-location { display: none; }
}
@media (max-width: 700px) {
  .nav-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 8px; row-gap: 3px; }
  .nav-links a { grid-column: span 2; width: fit-content; max-width: 100%; font-size: 11px; white-space: normal; }
  .nav-links a:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 76px; padding: 16px 22px; gap: 19px; }
  .header-inner a { font-size: 10px; letter-spacing: .025em; }
  .header-inner .wordmark { font-size: 13px; }
  .nav-links a { font-size: 10px; }
  .page-layout { margin-top: 32px; margin-bottom: 56px; padding: 0 22px; }
  .profile { grid-template-columns: 88px minmax(0, 1fr); column-gap: 22px; margin-bottom: 34px; }
  .portrait-link { width: 88px; }
  .portrait { height: 105px; }
  .profile-name { font-size: 18px; }
  .position { font-size: 13px; }
  .affiliation { font-size: 12px; }
  .profile-links { font-size: 11px; gap: 5px 13px; }
  .profile-links .contact-icon { width: 12px; height: 12px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h1, h2 { margin-bottom: 22px; }
  section { margin-bottom: 40px; }
  .appointment-history li { flex-wrap: wrap; gap: 0 8px; margin-bottom: 9px; }
  .background-row { flex-wrap: wrap; gap: 0 8px; }
  .background-row time { max-width: 100%; white-space: normal; text-align: right; }
  .footer-inner { padding: 24px 22px; font-size: 11px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 13px; padding-inline: 17px; }
  .header-inner .wordmark { font-size: 12px; }
  .page-layout { padding-inline: 18px; }
  .profile { grid-template-columns: 75px minmax(0, 1fr); gap: 0 18px; }
  .portrait-link { width: 75px; }
  .portrait { height: 92px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
