/* Academic layout: strong typography, generous reading measure, restrained color. */
:root {
  --home-ink: #181a22;
  --home-text: #252631;
  --home-blue: #233a61;
  --home-accent: #69253d;
  --home-line: #dedde1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: #fff; color: var(--home-ink); font: 18px/1.75 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3,h4 { line-height: 1.35; letter-spacing: -.022em; }
a { color: var(--home-blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--home-accent); }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 5px; }
p { color: var(--home-text); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.home-wrap { width: min(1240px,calc(100% - 80px)); margin-inline: auto; }
.profile-skip { position: fixed; top: -80px; left: 20px; padding: 10px 20px; z-index: 60; color: #fff; background: var(--home-ink); }
.profile-skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.academic-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 68px; padding-top: 48px; align-items: start; }
.academic-profile { position: sticky; top: 115px; }
.profile-portrait { display: block; width: 246px; max-width: 100%; height: auto; border-radius: 50%; padding: 7px; border: 1px solid #e5e3e4; object-fit: cover; }
.academic-profile h1 { font-size: 31px; font-weight: 750; margin-top: 22px; }
.profile-position { font-size: 19px; margin-top: 12px; line-height: 1.65; }
.profile-details { list-style: none; padding: 0; margin: 27px 0 0; }
.profile-details li { margin: 0 0 13px; line-height: 1.55; font-size: 18px; }
.profile-details li, .profile-details a, .profile-wechat summary { display: flex; align-items: baseline; gap: 11px; }
.profile-details a { text-decoration: none; color: #242530; }
.profile-details a:hover { color: var(--home-accent); }
.profile-details .site-icon,.profile-details .ai { width: 22px; flex: 0 0 22px; text-align: center; font-size: 20px; color: #232532; }
.profile-wechat { width: 100%; }
.profile-wechat summary { cursor: pointer; list-style: none; }
.profile-wechat summary::-webkit-details-marker { display: none; }
.wechat-details { margin: 12px 0 0 33px; font-size: 16px; overflow-wrap: anywhere; }
.wechat-details > span:first-child { user-select: all; }
.wechat-details button { padding: 2px 8px; margin-left: 5px; font-size: 14px; border: 1px solid #b8b5bf; background: white; color: var(--home-blue); border-radius: 3px; }
#wechat-status { display: block; font-size: 14px; }
.academic-content { min-width: 0; }
.academic-content h2 { font-size: 32px; font-weight: 700; color: #242638; }
.about-section > h2 { margin-bottom: 20px; }
.about-section > p { margin: 0 0 18px; font-size: 18px; }
.about-section strong { font-weight: 650; }
.opportunity-note { padding: 13px 0 13px 19px; border-left: 3px solid var(--home-accent); margin-top: 25px !important; }
.opportunity-note a { white-space: nowrap; font-weight: 600; }
.projects-section { margin-top: 46px; }
.projects-section > h2 { padding-bottom: 15px; border-bottom: 2px solid #292a3d; }
.project-entry { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: center; padding: 29px 0; border-bottom: 1px solid var(--home-line); }
.project-figure { min-width: 0; }
.project-figure-link { display: block; cursor: zoom-in; border-radius: 2px; }
.project-figure img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.figure-placeholder { aspect-ratio: 3/2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 9px; border: 1px solid #d8d5db; background: #faf9fa; padding: 14px; }
.figure-placeholder > span { color: #3b2b42; font-family: Georgia,serif; font-size: 20px; line-height: 1.3; }
.figure-placeholder small { color: #49404e; font-size: 14px; }
.project-copy h3 { font-size: 23px; font-weight: 650; color: #202b46; margin-bottom: 9px; }
.project-copy h3 a { color: inherit; text-decoration: none; }
.project-copy h3 a:hover { color: var(--home-accent); text-decoration: underline; }
.project-featured { border: 1px solid var(--home-line); border-left: 3px solid var(--home-accent); padding: 26px 22px; margin-block: 20px 4px; background: #fcfbfc; }
.project-copy .project-kicker { color: var(--home-accent); font-size: 16px; font-weight: 650; margin-bottom: 10px; }
.project-links .project-link-primary { display: inline-flex; align-items: center; gap: 12px; background: var(--home-blue); color: #fff; padding: 7px 13px; border: 1px solid var(--home-blue); border-radius: 4px; text-decoration: none; }
.project-links .project-link-primary:hover { background: var(--home-accent); border-color: var(--home-accent); }
.project-copy > p { font-size: 17px; line-height: 1.7; }
.project-copy .project-role { margin-top: 7px; font-size: 16px; color: #523345; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }
.project-links a { font-size: 16px; line-height: 1.6; font-weight: 550; }
.repo-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.repo-link > .site-icon { font-size: 18px; }
.repo-link > span:not(.repo-stars) { text-decoration: underline; text-underline-offset: 4px; }
.repo-stars { display: inline-flex; gap: 5px; align-items: center; font-size: 15px; font-weight: 500; color: #3d2737; white-space: nowrap; }
.repo-stars .icon-star { font-size: 13px; }
.publications-section { margin-top: 47px; padding-bottom: 50px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #292a3d; padding-bottom: 15px; gap: 20px; }
.scholar-link { display: inline-flex; padding: 7px; color: var(--home-blue); text-decoration: none; font-size: 28px; }
.publication-controls { margin-top: 24px; padding: 22px 24px 24px; border: 1px solid #e6e0e4; border-radius: 18px; background: linear-gradient(120deg,#fcf9fb 0%,#fafafd 100%); box-shadow: 0 4px 18px rgb(40 25 40 / 3%); }
.publication-controls-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.publication-controls button { appearance: none; font: inherit; font-size: 14px; font-weight: 550; line-height: 1.5; transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.publication-view { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #e4dce2; border-radius: 12px; background: #ede9ee; }
.publication-view button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border: 0; border-radius: 8px; background: transparent; color: #62606c; }
.publication-view button:hover { color: var(--home-accent); background: #f7f3f6; }
.publication-view button.is-active { color: var(--home-accent); background: #fff; box-shadow: 0 1px 5px rgb(46 23 39 / 12%); }
.view-count { padding: 1px 6px; border-radius: 5px; background: rgb(105 37 61 / 7%); font-size: 11px; font-variant-numeric: tabular-nums; }
.publication-topic-label { margin: 20px 0 10px; color: #736373; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.publication-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.publication-topics button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #dfdce4; border-radius: 999px; background: #fff; color: #55515f; }
.publication-topics button:hover { border-color: #b998a6; color: var(--home-accent); background: #f9f0f4; }
.publication-topics button.is-active { border-color: var(--home-accent); background: var(--home-accent); color: #fff; box-shadow: 0 3px 8px rgb(105 37 61 / 13%); }
.topic-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; opacity: .4; }
.is-active .topic-dot { opacity: 1; }
.publication-filter-status { color: #746d7b; font-size: 12px; font-variant-numeric: tabular-nums; }
.publication-empty { margin-top: 24px; padding: 20px; border: 1px dashed #d8cad1; border-radius: 12px; color: #706171; font-size: 15px; }
.publication-filter-status:empty { display: none; }
.publication-selected { margin-top: 28px; }
.publication-year-controls { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e6e0e4; }
.publication-year-controls .publication-topic-label { margin: 0 0 10px; }
.publication-years { display: flex; flex-wrap: wrap; gap: 8px; }
.publication-years a { display: inline-flex; align-items: center; gap: 12px; padding: 6px 12px; border: 1px solid #dfdce4; border-radius: 8px; background: #fff; color: #55515f; font-size: 14px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.publication-years a span { color: #9c8a96; font-size: 12px; }
.publication-years a:hover { color: var(--home-accent); border-color: #b998a6; background: #f9f0f4; }
.publication-year { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 19px; margin-top: 32px; }
.publication-year > h3 { position: sticky; top: calc(var(--site-nav-height) + 28px); align-self: start; color: var(--home-accent); font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.publication-list { min-width: 0; }
.publication { margin-bottom: 27px; padding-left: 19px; border-left: 1px solid #ddd9df; }
.publication:last-child { margin-bottom: 0; }
.publication h4 { font-size: 21px; font-weight: 650; color: #242739; line-height: 1.45; }
.publication-authors { margin-top: 9px; }
.publication-authors p { font-size: 16px; line-height: 1.75; color: #30313a; }
.publication-authors strong { color: #161722; font-weight: 700; }
.publication-venue { color: var(--home-accent); font-size: 16px; font-weight: 650; margin-top: 7px; line-height: 1.6; }
.publication-venue a { color: inherit; text-decoration: none; }
.publication-venue a:hover { text-decoration: underline; }
.publication-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.publication-links a { font-size: 16px; font-weight: 550; }
.publication-note { font-size: 16px; color: #30313a; margin-top: 26px; }
.publication-end { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.publication-end > a { font-size: 16px; white-space: nowrap; }
.profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 26px; border-top: 1px solid var(--home-line); }
.profile-footer > div > a { font-size: 18px; font-weight: 600; text-decoration: none; }
.profile-footer p { font-size: 15px; margin-top: 5px; color: #34333e; }
.profile-footer .footer-credit { font-size: 14px; }
.footer-links { display: flex; gap: 22px; align-items: center; }
.profile-footer .footer-links a { font-size: 23px; text-decoration: none; }
.visitor-map img { display: block; width: 120px; height: auto; }

@media (max-width: 1100px) {
  .home-wrap { width: calc(100% - 56px); }
  .academic-layout { grid-template-columns: 230px minmax(0,1fr); gap: 43px; }
  .academic-profile h1 { font-size: 29px; }
  .profile-position,.profile-details li { font-size: 17px; }
  .project-entry { grid-template-columns: 170px minmax(0,1fr); gap: 22px; }
  .project-copy h3 { font-size: 22px; }
  .project-featured { grid-template-columns: 1fr; gap: 20px; }
  .project-featured .project-figure { width: min(100%,280px); }
}
@media (max-width: 850px) {
  .academic-layout { grid-template-columns: 195px minmax(0,1fr); gap: 30px; }
  .academic-profile { position: static; }
  .profile-details li { font-size: 16px; }
  .profile-details li,.profile-details a,.profile-wechat summary { gap: 9px; }
  .project-entry { grid-template-columns: 1fr; gap: 18px; }
  .project-figure { width: min(100%,280px); }
  .about-section > p { font-size: 18px; }
  .academic-content h2 { font-size: 29px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 125px; }
  .home-wrap { width: calc(100% - 36px); }
  .academic-layout { grid-template-columns: 1fr; gap: 37px; padding-top: 29px; }
  .academic-profile { display: grid; grid-template-columns: 128px minmax(0,1fr); column-gap: 23px; }
  .profile-portrait { grid-row: 1/3; width: 128px; padding: 4px; align-self: center; }
  .academic-profile h1 { font-size: 30px; align-self: end; margin-top: 0; }
  .profile-position { font-size: 18px; margin-top: 7px; }
  .profile-details { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 19px; margin-top: 25px; }
  .profile-details li { font-size: 17px; margin-bottom: 13px; }
  .profile-details li:nth-child(2) { grid-column: 1/-1; grid-row: 2; }
  .profile-details li:first-child { grid-column: 1/-1; }
  .academic-content h2 { font-size: 30px; }
  .projects-section,.publications-section { margin-top: 35px; }
  .project-entry { grid-template-columns: 180px minmax(0,1fr); gap: 20px; align-items: center; }
  .project-figure { width: auto; }
  .project-copy h3 { font-size: 22px; }
  .figure-placeholder > span { font-size: 18px; }
  .figure-placeholder small { font-size: 14px; }
  .project-links { grid-column: 1/-1; }
  .publication h4 { font-size: 21px; }
  .publication-controls { padding: 16px; border-radius: 14px; }
  .publication-topics { gap: 7px; }
  .publication-topics button { padding: 8px 11px; font-size: 13px; }
  .publication-year { grid-template-columns: 1fr; gap: 15px; }
  .publication-year > h3 { position: static; }
  .profile-footer { flex-wrap: wrap; gap: 20px; }
  .profile-footer > div:first-child { width: 100%; }
}
@media (max-width: 520px) {
  .project-entry { grid-template-columns: 1fr; gap: 20px; }
  .project-figure { width: min(100%,300px); }
  .project-figure img { max-height: 210px; }
}
@media (max-width: 440px) {
  .academic-profile { grid-template-columns: 108px minmax(0,1fr); gap: 0 19px; }
  .profile-portrait { width: 108px; }
  .academic-profile h1 { font-size: 28px; }
  .profile-position { font-size: 17px; }
  .profile-details { grid-template-columns: 1fr; }
  .profile-details li:first-child,.profile-details li:nth-child(2) { grid-column: auto; grid-row: auto; }
  .publication { padding-left: 13px; }
  .opportunity-note { padding-left: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .publication-controls button { transition: none; }
  html { scroll-behavior: auto; }
  .project-links a,.profile-details a,.project-copy h3 a { transition: none; }
}
