/* Reference-led academic portfolio. Native CSS on the existing Jekyll site.
   DESIGN_VARIANCE: 4; MOTION_INTENSITY: 2; VISUAL_DENSITY: 4.
   One light editorial theme, square media, restrained brick-red links. */
:root {
  color-scheme: light;
  --paper: #faf9f7;
  --ink: #11171b;
  --text: #505357;
  --muted: #6d6f73;
  --accent: #b3341c;
  --line: #deddd9;
  --soft: #f1efeb;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:active, button:active { opacity: .72; }
button, summary { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h2 { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -1.3px; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
strong { font-weight: 600; }
::selection { background: #f0d7d0; color: var(--ink); }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 10px; }
/* The header is the only elevated layer; all research remains in document flow. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.header-inner, .site-main, .site-footer { width: min(100% - 112px, 1120px); margin-inline: auto; }
.header-inner { height: 80px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: inline-flex; gap: 16px; align-items: center; color: var(--ink); font-size: 16px; font-weight: 600; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 38px; height: 40px; background: var(--ink); color: var(--paper); border-radius: 3px; font: 25px/1 Georgia, serif; letter-spacing: -1.6px; padding-right: 2px; }
#primary-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; white-space: nowrap; }
#primary-nav > a { position: relative; padding: 9px 0; }
#primary-nav > a[aria-current] { color: var(--ink); }
#primary-nav > a[aria-current]::after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--accent); }
#primary-nav .nav-contact { border-left: 1px solid var(--line); padding-left: 25px; }
.menu-toggle { display: none; }
.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
section[id], .publication, #across-the-lab { scroll-margin-top: 105px; }
.section-heading { margin-bottom: 30px; }
.section-heading > p { margin-top: 8px; font-size: 18px; }
.text-link, .inline-links a, .hero-links a, .paper-links a, .contact-links a { color: var(--accent); }
.text-link:hover, .inline-links a:hover, .hero-links a:hover, .paper-links a:hover, .contact-links a:hover { text-decoration: underline; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.small-text { font-size: 13px; color: var(--muted); }
/* Name, role, and a real portrait form the complete first impression. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 70px; padding: 58px 0 48px; align-items: start; }
.hero-eyebrow { color: var(--accent); font-size: 16px; font-weight: 500; margin-bottom: 20px; }
.hero h1 { font-size: clamp(56px, 6.2vw, 82px); line-height: 1.07; font-weight: 750; letter-spacing: -3.5px; white-space: nowrap; }
.chinese-name { display: inline-block; font-size: 23px; line-height: 1.4; letter-spacing: 1px; color: #646669; font-weight: 400; margin-left: 16px; vertical-align: middle; }
.hero-leadership { margin-top: 28px; }
.hero-role { color: #232b32; font-size: clamp(24px, 2.7vw, 33px); line-height: 1.24; letter-spacing: -.7px; }
.hero-role strong { font-weight: 500; }
.hero-role + .hero-role { margin-top: 8px; }
.hero-company { display: block; width: fit-content; margin-top: 12px; color: #232b32; font-size: 23px; font-weight: 500; line-height: 1.3; }
.company-name { font-size: 16px; letter-spacing: 1px; font-weight: 400; color: var(--muted); margin-left: 8px; vertical-align: middle; }
.hero-responsibility { margin-top: 12px; max-width: 580px; font-size: 14px; color: var(--muted); }
.hero-bio { max-width: 635px; margin-top: 22px; font-size: 19px; line-height: 1.6; }
.hero-affiliation { margin-top: 24px; font-size: 15px; color: #62656a; }
.hero-affiliation a:hover { text-decoration: underline; }
.hero-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 28px; font-size: 16px; }
.hero-links a { text-decoration: underline; }
.hero-profile { min-width: 0; padding-top: 2px; }
.profile-portrait { width: 100%; aspect-ratio: 204 / 256; object-fit: cover; }
.profile-caption { font-size: 14px; line-height: 1.5; margin-top: 12px; }
.profile-caption > span { display: block; font-size: 12px; margin-top: 5px; color: var(--muted); }
.profile-stats { display: flex; flex-wrap: wrap; gap: 6px 17px; font-size: 12px; margin-top: 12px; color: var(--muted); }
.profile-stats strong { color: var(--ink); }
/* The research overview pairs a visual lead with a quiet news column. */
.research-overview { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: 38px; padding: 46px 0; border-bottom: 1px solid var(--line); }
.research-section { min-width: 0; }
.research-section .section-heading { margin-bottom: 28px; }
.featured-research { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; }
.feature-media { min-width: 0; display: block; }
.feature-media :is(img, video) { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #141719; }
.feature-copy { min-width: 0; }
.feature-kicker { text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; color: var(--muted); }
.feature-copy h3 { font-size: 36px; line-height: 1.15; letter-spacing: -1.3px; margin: 8px 0 16px; }
.feature-copy > p:not(.feature-kicker):not(.feature-status) { font-size: 16px; line-height: 1.5; }
.feature-copy .feature-status { color: var(--muted); margin: 14px 0 22px; font-size: 14px; }
.open-source-heading { border-top: 1px solid var(--line); margin: 28px 0 16px; padding-top: 16px; font-size: 21px; }
.open-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.open-source-project + .open-source-project { border-left: 1px solid var(--line); padding-left: 30px; }
.open-source-project h3 { font-size: 21px; font-weight: 550; margin-bottom: 8px; }
.project-role { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.open-source-project p { font-size: 14px; line-height: 1.5; }
.open-source-project .inline-links { margin-top: 12px; gap: 8px 16px; font-size: 13px; }
.news-section { border-left: 1px solid var(--line); padding-left: 36px; padding-top: 6px; min-width: 0; }
.news-section h2 { font-size: 27px; letter-spacing: -.8px; margin-bottom: 28px; }
.news-item { margin-bottom: 29px; font-size: 16px; line-height: 1.45; }
.news-item time { display: block; font-size: 14px; color: var(--accent); margin-bottom: 4px; font-weight: 500; }
.news-item a:hover { text-decoration: underline; }
summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { flex: 0 0 auto; color: var(--accent); }
details[open] > summary > span { transform: rotate(45deg); }
.news-archive summary { display: inline-flex; justify-content: flex-start; color: var(--accent); font-size: 15px; text-decoration: underline; }
.news-archive .academic-prose { font-size: 13px; margin-top: 16px; }
.research-disclosure { margin-top: 28px; border-top: 1px solid var(--line); }
.research-disclosure > summary { padding: 16px 0 0; color: var(--ink); font-size: 15px; font-weight: 500; }
.research-motto { margin: 23px 0; }
.research-motto p:first-child { font-size: 18px; color: var(--ink); line-height: 1.6; }
.research-motto p + p { margin-top: 5px; font-size: 14px; }
.research-grid { display: grid; gap: 22px; padding-bottom: 8px; }
.research-grid h3 { font-size: 17px; margin-bottom: 5px; }
.research-grid p { font-size: 14px; }
.research-keywords { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
/* The same type, color, and hairlines continue through the lab. */
.xlab-section > .section-heading, .publications-section > .section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.xlab-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; }
.section-lead { color: var(--ink); font-size: clamp(25px, 2.8vw, 34px); line-height: 1.45; font-weight: 550; letter-spacing: -.5px; }
.motto-translation { font-size: 18px; line-height: 1.5; margin-top: 12px; max-width: 440px; }
.xlab-mission { font-size: 16px; line-height: 1.7; padding-top: 4px; }
.xlab-mission strong { color: var(--ink); }
.xlab-directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 38px; }
.xlab-directions article { border-top: 1px solid var(--line); padding-top: 18px; }
.xlab-directions h3 { font-size: 18px; margin-bottom: 10px; }
.xlab-directions p { font-size: 14px; line-height: 1.6; }
.xlab-directions .inline-links { font-size: 13px; gap: 7px 18px; margin-top: 14px; }
.team-heading { margin: 45px 0 22px; }
.team-heading h3 { font-size: 26px; letter-spacing: -.8px; }
.team-heading p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.team-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.team-project { display: flex; flex-direction: column; min-width: 0; }
.team-media { margin: 0; }
.team-video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #141719; }
.team-media figcaption { padding-top: 8px; font-size: 12px; color: var(--muted); }
.team-project-body { flex: 1; padding-top: 16px; }
.team-project-category { display: block; font-size: 12px; color: var(--muted); }
.team-project h4 { font-size: 23px; line-height: 1.3; margin: 4px 0 8px; letter-spacing: -.5px; }
.team-project h4 b { font-size: 16px; font-weight: 400; color: var(--accent); }
.team-project p { max-width: 480px; font-size: 15px; }
.team-project .inline-links { margin-top: 14px; }
.team-project small { display: block; font-size: 12px; color: var(--muted); margin-top: 12px; }
.team-directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 36px; margin: 22px 0 16px; }
.team-directions strong, .team-directions span { display: block; }
.team-directions strong { color: var(--ink); font-size: 16px; margin-bottom: 5px; }
.team-directions span { font-size: 14px; }
/* The real paper media stays visible. Contributions take precedence over venue. */
.publication-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 24px; margin: 0 0 8px; }
.publication-filters { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.publication-filters button { border: 0; border-bottom: 2px solid transparent; padding: 7px 0; color: var(--muted); background: none; font-size: 14px; }
.publication-filters button.active { border-color: var(--accent); color: var(--ink); }
.publication-filters button:hover { color: var(--accent); }
.publication { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.publication-media { min-width: 0; }
.publication-image { display: block; width: 100%; }
.publication-image img, .publication-image .publication-video { width: 100%; height: 158px; object-fit: contain; background: var(--soft); }
.publication-demo { margin-top: 12px; }
.publication.video-only .publication-demo { margin: 0; }
.publication-video { display: block; width: 100%; aspect-ratio: 1204/632; object-fit: contain; background: #141719; }
.publication-demo figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.publication-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; font-size: 12px; margin-bottom: 7px; }
.venue { color: var(--accent); font-weight: 500; }
.paper-short { color: var(--muted); }
.paper-contribution { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; margin-bottom: 8px; }
.paper-role { font-size: 12px; font-weight: 650; color: var(--accent); }
.role-separator { color: var(--muted); font-size: 12px; }
.publication h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.25px; font-weight: 600; }
.publication h3 a:hover { text-decoration: underline; }
.paper-description { font-size: 14px; margin-top: 8px; line-height: 1.5; }
.paper-authors { font-size: 13px; color: var(--muted); margin-top: 8px; }
.paper-authors strong { color: var(--ink); font-weight: 600; }
.paper-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); background: none; color: var(--accent); padding: 12px 20px; font-size: 14px; }
.button:hover { border-color: var(--accent); }
.publication-expand { display: flex; width: fit-content; margin: 28px auto 0; }
.archive-disclosure { margin-top: 28px; border-top: 1px solid var(--line); }
.archive-disclosure > summary { padding: 18px 0 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.archive-disclosure .academic-prose { padding-top: 16px; }
.academic-prose { font-size: 15px; line-height: 1.7; }
.academic-prose h3 { font-size: 23px; margin: 28px 0 14px; }
.academic-prose h3:first-child { margin-top: 0; }
.academic-prose p { margin: 10px 0; }
.academic-prose ul { padding-left: 20px; margin: 10px 0 24px; }
.academic-prose li { padding: 5px 0; }
.academic-prose a { color: var(--accent); }
.academic-prose a:hover { text-decoration: underline; }
.academic-prose code { color: var(--ink); font: inherit; font-weight: 600; background: var(--soft); padding: 1px 4px; }
.academic-prose img.svg { display: inline-block; vertical-align: middle; margin: 0 9px; }
.experience-intro { max-width: 880px; margin-bottom: 30px; font-size: 17px; }
.experience-intro a { color: var(--accent); }
.experience-content > ul { list-style: none; padding: 0; margin: 16px 0 34px; }
.experience-content > ul > li { padding: 10px 0; }
.experience-content > ul > li em { display: inline-block; min-width: 174px; font-style: normal; font-size: 13px; color: var(--muted); }
.experience-content > ul > li img { max-height: 28px; width: auto; object-fit: contain; }
.collab-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 28px; padding: 22px 0; align-items: center; }
.collab-logo { display: flex; align-items: center; justify-content: center; }
.collab-logo img { max-width: 88px; max-height: 48px; width: auto; object-fit: contain; }
.collab-role, .collab-org, .collab-desc { display: block; }
.collab-role { color: var(--ink); font-size: 17px; font-weight: 600; }
.collab-org { font-size: 14px; color: var(--muted); margin-top: 3px; }
.collab-desc { font-size: 14px; max-width: 800px; margin-top: 7px; }
.teaching-events { margin: 18px 0 30px; }
.teaching-event { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 28px; padding: 12px 0; }
.teaching-event time { font-size: 13px; color: var(--accent); }
.teaching-event h4 { font-size: 17px; font-weight: 550; line-height: 1.4; }
.teaching-event p { font-size: 14px; color: var(--muted); margin: 5px 0 0; }
.event-status { font-size: 12px; color: var(--accent); font-weight: 400; margin-left: 10px; }
.mentee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 36px; margin: 22px 0 34px; }
.mentee-item { min-width: 0; }
.mentee-name { display: flex; flex-wrap: wrap; gap: 3px 9px; align-items: baseline; }
.mentee-name strong { color: var(--ink); font-size: 15px; }
.mentee-name span { font-size: 13px; color: var(--muted); }
.mentee-institution { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.community-content > ul:last-child { columns: 2; column-gap: 50px; }
.community-content > ul:last-child li { break-inside: avoid; }
.contact-section { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.contact-section p { max-width: 580px; margin-top: 15px; font-size: 17px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 6px; font-size: 15px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 25px 0 32px; color: var(--muted); font-size: 13px; }
.legacy-anchor { display: block; scroll-margin-top: 100px; }
@media (max-width: 1100px) {
  .header-inner, .site-main, .site-footer { width: calc(100% - 160px); }
  #primary-nav { gap: 23px; font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr) 265px; gap: 40px; }
  .hero h1 { font-size: 76px; letter-spacing: -3px; }
  .chinese-name { font-size: 20px; margin-left: 10px; }
  .hero-role { font-size: 28px; }
  .hero-bio { font-size: 18px; }
  .research-overview { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
  .news-section { padding-left: 28px; }
  .featured-research { gap: 24px; }
  .feature-copy h3 { font-size: 32px; }
  .feature-copy > p:not(.feature-kicker):not(.feature-status) { font-size: 15px; }
  .xlab-intro { gap: 36px; }
  .publication { grid-template-columns: 215px minmax(0, 1fr); gap: 28px; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .hero h1 { font-size: 64px; }
  .chinese-name { display: block; margin: 9px 0 0; }
}
@media (max-width: 900px) {
  .header-inner, .site-main, .site-footer { width: calc(100% - 64px); }
  .hero h1 { font-size: 56px; }
  .chinese-name { display: block; font-size: 20px; margin: 9px 0 0; }
  .hero-role { font-size: 26px; }
  .hero-leadership { margin-top: 23px; }
  .hero-links { gap: 12px 23px; font-size: 15px; }
  .research-overview { grid-template-columns: minmax(0, 1fr) 215px; gap: 26px; }
  .news-section { padding-left: 24px; }
  .news-section h2 { font-size: 24px; }
  .news-item { font-size: 14px; }
  .featured-research { grid-template-columns: 1fr; gap: 19px; }
  .feature-media :is(img, video) { max-height: 260px; }
  .feature-copy h3 { font-size: 30px; margin-bottom: 10px; }
  .feature-copy .feature-status { margin: 10px 0 14px; }
  .open-source-grid { gap: 20px; }
  .open-source-project + .open-source-project { padding-left: 20px; }
  .xlab-directions { gap: 24px; }
  .contact-section { grid-template-columns: 1fr 250px; gap: 30px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 88px; }
  .header-inner, .site-main, .site-footer { width: calc(100% - 40px); }
  .header-inner { height: 70px; }
  .wordmark { font-size: 15px; gap: 12px; }
  .monogram { width: 34px; height: 36px; font-size: 23px; }
  .menu-toggle { display: flex; align-items: center; gap: 12px; padding: 7px 0 7px 12px; border: 0; background: none; color: var(--ink); font-size: 14px; }
  #primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line); background: var(--paper); }
  #primary-nav.is-open { display: flex; }
  #primary-nav > a { padding: 10px 0; font-size: 15px; }
  #primary-nav > a[aria-current]::after { right: auto; width: 24px; }
  #primary-nav .nav-contact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-top: 6px; }
  .section { padding: 36px 0; }
  .section-heading { margin-bottom: 24px; }
  .section-heading > p { font-size: 16px; }
  h2 { font-size: 32px; }
  .hero { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 34px 0 36px; }
  .hero-eyebrow { font-size: 14px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(43px, 10vw, 64px); letter-spacing: -2.5px; }
  .chinese-name { display: inline-block; font-size: 19px; margin-left: 10px; }
  .hero-role { font-size: 26px; }
  .hero-leadership { margin-top: 23px; }
  .company-name { font-size: 14px; }
  .hero-responsibility { font-size: 13px; }
  .hero-bio { margin-top: 20px; font-size: 17px; line-height: 1.6; }
  .hero-affiliation { font-size: 14px; margin-top: 20px; }
  .hero-links { margin-top: 22px; gap: 12px 25px; font-size: 15px; }
  .hero-profile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 20px; align-items: start; padding-top: 0; }
  .profile-portrait { width: 112px; grid-row: span 2; }
  .profile-caption { margin: 4px 0 0; font-size: 14px; }
  .profile-caption > span { margin-top: 9px; line-height: 1.7; }
  .profile-stats { margin-top: 13px; font-size: 12px; align-self: end; }
  .research-overview { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
  .featured-research { grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature-media :is(img, video) { max-height: none; aspect-ratio: 16 / 9; }
  .feature-copy h3 { font-size: 30px; }
  .feature-copy > p:not(.feature-kicker):not(.feature-status) { font-size: 14px; }
  .feature-kicker { font-size: 10px; letter-spacing: 1px; }
  .feature-copy .feature-status { font-size: 12px; }
  .news-section { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .news-section h2 { font-size: 25px; margin-bottom: 20px; }
  .news-item { margin-bottom: 20px; font-size: 15px; }
  .news-item time { font-size: 13px; }
  .xlab-section > .section-heading, .publications-section > .section-heading { flex-wrap: wrap; gap: 10px; }
  .text-link { font-size: 14px; }
  .xlab-intro { grid-template-columns: 1fr; gap: 24px; }
  .section-lead { font-size: 28px; }
  .motto-translation { font-size: 17px; }
  .xlab-mission { font-size: 15px; }
  .xlab-directions { grid-template-columns: 1fr; gap: 23px; margin-top: 28px; }
  .team-heading { margin-top: 33px; }
  .team-heading h3 { font-size: 24px; }
  .team-projects { grid-template-columns: 1fr; gap: 30px; }
  .team-project-body { padding-top: 12px; }
  .team-project h4 { font-size: 22px; }
  .team-directions { grid-template-columns: 1fr; }
  .publication-toolbar { gap: 12px; margin-bottom: 6px; }
  .publication-filters { gap: 6px 19px; }
  .publication-filters button { font-size: 13px; }
  .publication-toolbar > .small-text { font-size: 12px; }
  .publication { grid-template-columns: 148px minmax(0, 1fr); gap: 20px; align-items: start; padding: 23px 0; }
  .publication-image img, .publication-image .publication-video { height: 106px; }
  .publication-meta { font-size: 11px; margin-bottom: 7px; }
  .paper-short { display: none; }
  .paper-contribution { margin-bottom: 8px; gap: 4px 7px; }
  .paper-role { font-size: 11px; }
  .publication h3 { font-size: 17px; line-height: 1.4; }
  .paper-description { font-size: 13px; margin-top: 8px; }
  .paper-authors { font-size: 12px; }
  .paper-links { font-size: 13px; gap: 16px; }
  .experience-intro { font-size: 16px; }
  .academic-prose { font-size: 14px; }
  .academic-prose h3 { font-size: 21px; }
  .experience-content > ul > li em { display: block; margin-bottom: 5px; min-width: 0; font-size: 12px; }
  .collab-item { grid-template-columns: 60px minmax(0, 1fr); gap: 20px; padding: 18px 0; }
  .collab-logo img { max-width: 60px; max-height: 40px; }
  .collab-role { font-size: 16px; }
  .collab-org, .collab-desc { font-size: 13px; }
  .teaching-event { grid-template-columns: 1fr; gap: 5px; }
  .teaching-event h4 { font-size: 16px; }
  .mentee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .mentee-name strong { font-size: 14px; }
  .mentee-institution { font-size: 12px; }
  .community-content > ul:last-child { columns: 1; }
  .contact-section { grid-template-columns: 1fr; gap: 20px; }
  .contact-section p { font-size: 16px; }
  .contact-links { gap: 12px; font-size: 14px; }
  .site-footer { font-size: 12px; padding: 23px 0 27px; gap: 12px 24px; }
}
@media (max-width: 460px) {
  .hero h1 { font-size: 46px; letter-spacing: -2.2px; }
  .chinese-name { display: block; margin: 9px 0 0; font-size: 18px; letter-spacing: 2px; }
  .hero-role { font-size: 24px; }
  .hero-profile { grid-template-columns: 100px minmax(0, 1fr); gap: 0 18px; }
  .profile-portrait { width: 100px; }
  .profile-caption { font-size: 13px; }
  .profile-caption > span { font-size: 11px; }
  .profile-stats { font-size: 11px; gap: 4px 10px; margin-top: 10px; }
  .featured-research { grid-template-columns: 1fr; gap: 20px; }
  .feature-media :is(img, video) { aspect-ratio: 16 / 9; }
  .feature-copy h3 { font-size: 33px; }
  .feature-copy > p:not(.feature-kicker):not(.feature-status) { font-size: 16px; }
  .feature-kicker { font-size: 11px; }
  .feature-copy .feature-status { font-size: 14px; }
  .open-source-grid { grid-template-columns: 1fr; gap: 22px; }
  .open-source-project + .open-source-project { border-left: 0; padding-left: 0; }
  .publication { grid-template-columns: 1fr; gap: 17px; }
  .publication-image, .publication-demo { max-width: 100%; }
  .publication-image img, .publication-image .publication-video { height: auto; aspect-ratio: 1.62; }
  .publication h3 { font-size: 19px; }
  .paper-meta, .paper-role { font-size: 12px; }
  .paper-short { display: inline; }
  .paper-description { font-size: 14px; }
  .paper-authors { font-size: 13px; }
  .paper-links { font-size: 14px; }
  .section-lead { font-size: 25px; }
  .motto-translation { font-size: 16px; }
  .mentee-grid { column-gap: 18px; }
  .mentee-name { display: block; }
  .mentee-name span { display: block; font-size: 12px; }
}
@media (max-width: 350px) {
  .hero h1 { font-size: 40px; }
  .hero-role { font-size: 22px; }
  .hero-links { gap: 12px 18px; font-size: 14px; }
  .profile-caption { font-size: 12px; }
  .profile-stats { display: block; }
  .profile-stats > span { display: block; }
  .mentee-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .hero-links, .publication-toolbar, .publication-expand, .contact-section, .news-archive { display: none; }
  .site-main, .site-footer { width: 100%; }
  body { background: white; }
  .section { padding: 24px 0; }
  .publication[hidden] { display: grid !important; }
  .publication, .team-project, .collab-item { break-inside: avoid; }
  .hero { grid-template-columns: 1fr 210px; gap: 35px; }
  .hero h1 { font-size: 55px; }
  .research-overview { grid-template-columns: 1fr; }
  .news-section { border-left: 0; padding-left: 0; }
}
