@charset "UTF-8";
:root {
  --ink:#292524;
  --muted:#68605c;
  /* A7 specifies a dedicated Web value, distinct from its printed RGB value. */
  --red:#94070a;
  --red-dark:#760609;
  --line:#e4deda;
  --paper:#f7f5f2;
  --white:#fff;
  --width:1200px;
  /* A24 / A25: use installed recommended fonts; never redistribute font binaries. */
  --sans:Arial,"方正中等线简体","FZZhongDengXian-Z07S","方正中黑简体","FZHei-B01S","PingFang SC","Microsoft YaHei",sans-serif;
  --display:Garamond,"Times New Roman","方正小标宋简体","FZXiaoBiaoSong-B05S","Songti SC",SimSun,serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:104px; }
body { margin:0; background:var(--white); color:var(--ink); font-family:var(--sans); font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
button,a,input,select { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button { color:inherit; cursor:pointer; }
button:disabled { cursor:default; }
img { display:block; max-width:100%; height:auto; }
svg { vertical-align:middle; }
:where(a,button,input,select,summary,[tabindex]):focus-visible { outline:3px solid var(--red); outline-offset:5px; }
::selection { background:#f1d7cd; color:var(--ink); }
[hidden] { display:none!important; }
.no-js .search-toggle,.no-js .menu-toggle,.no-js .filter-bar,.no-js .result-count { display:none; }
.wrap { width:min(var(--width),calc(100% - 80px)); margin-inline:auto; }
.sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; z-index:100; left:20px; top:-80px; background:white; border-radius:8px; padding:12px 20px; }
.skip-link:focus { top:12px; }

/* One quiet, persistent navigation layer. */
.site-header { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.97); border-top:3px solid var(--red); border-bottom:1px solid var(--line); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.header-inner { display:flex; align-items:center; min-height:88px; gap:28px; }
.identity { display:flex; align-items:center; gap:6px; flex-shrink:0; margin-left:-12px; }
/* A6 clear space: one quarter of the emblem diameter on every side. */
.university-emblem { box-sizing:content-box; width:48px; height:48px; padding:12px; flex-shrink:0; }
.identity-copy { display:flex; flex-direction:column; gap:4px; }
.wordmark { display:block; color:var(--red); font-family:Arial,sans-serif; font-size:28px; line-height:1.1; letter-spacing:-.025em; font-weight:600; white-space:nowrap; }
.identity-text { display:block; font-size:11px; line-height:1.5; letter-spacing:.045em; font-weight:400; color:var(--muted); white-space:nowrap; }
.navigation { margin-left:auto; }
.nav-links { display:flex; align-items:center; gap:26px; margin:0; padding:0; list-style:none; }
.nav-links a { position:relative; display:block; padding:24px 0; font-size:13px; font-weight:500; transition:color .2s; }
.nav-links a[aria-current=page] { color:var(--red); }
.nav-links a[aria-current=page]::after { content:""; position:absolute; height:2px; background:var(--red); left:0; right:0; bottom:14px; border-radius:2px; }
.nav-links a:hover { color:var(--red); }
.header-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.language-switch { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0 8px; font-size:12px; font-weight:500; white-space:nowrap; }
.language-switch:hover { color:var(--red); text-decoration:underline; text-underline-offset:4px; }
.search-toggle,.menu-toggle { display:flex; align-items:center; justify-content:center; border:0; background:transparent; width:44px; height:44px; padding:11px; border-radius:50%; }
.search-toggle:hover,.menu-toggle:hover { background:var(--paper); }
.search-toggle svg,.menu-toggle svg { width:22px; height:22px; }
.menu-toggle { display:none; }

/* Academic overview: compact introduction, research index and parallel updates. */
.lab-intro { position:relative; isolation:isolate; overflow:hidden; background:var(--red); color:white; border-bottom:1px solid var(--red-dark); }
.lab-intro::before,.page-banner::before,.site-footer::before { content:""; position:absolute; z-index:-1; width:480px; aspect-ratio:99/61; background:currentColor; mask:url('/assets/brand/pku-huabiao-cloud.svg') center/contain no-repeat; -webkit-mask:url('/assets/brand/pku-huabiao-cloud.svg') center/contain no-repeat; pointer-events:none; }
.lab-intro::before { left:-100px; bottom:-120px; opacity:.075; }
.lab-intro-grid { display:grid; grid-template-columns:1fr 1.12fr; gap:40px; align-items:center; padding-block:32px; }
.lab-intro-copy { min-width:0; }
.lab-affiliation { color:#f3dcd6; font-size:12px; line-height:1.6; margin:0 0 14px; }
.lab-affiliation span { display:block; }
.lab-intro h1 { font-family:var(--display); font-size:46px; font-weight:700; line-height:1.12; letter-spacing:-.025em; margin:0 0 14px; }
.lab-full-name { font-size:19px; line-height:1.4; font-weight:500; letter-spacing:-.015em; margin:0 0 14px; }
.lab-introduction { font-size:16px; line-height:1.65; max-width:550px; margin:0 0 18px; }
.lab-more { display:inline-flex; align-items:center; justify-content:space-between; gap:28px; border:1px solid #ffffff8c; padding:8px 16px; min-height:44px; font-size:14px; font-weight:500; transition:background .2s,color .2s; }
.lab-more:hover { background:white; color:var(--red); }
.lab-intro :is(a,button):focus-visible,.site-footer a:focus-visible { outline-color:white; }
.lab-intro-visual { margin:0; min-width:0; }
.carousel-viewport { overflow-x:auto; background:var(--red-dark); border-radius:3px; scroll-snap-type:x mandatory; }
.lab-carousel.is-ready .carousel-viewport { overflow:hidden; touch-action:pan-y pinch-zoom; }
.carousel-track { display:flex; transition:transform .55s cubic-bezier(.22,.61,.36,1); }
.carousel-slide { flex:0 0 100%; min-width:0; margin:0; scroll-snap-align:start; }
.carousel-slide>a { display:block; }
.carousel-slide img { width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; }
.carousel-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:8px; font-size:12px; color:#f3dcd6; }
.carousel-caption { min-width:0; }
.carousel-caption p { margin:0; }
.carousel-caption a { display:inline-flex; align-items:center; gap:9px; min-height:30px; color:white; }
.carousel-caption a:hover { text-decoration:underline; text-underline-offset:4px; }
.carousel-controls { display:flex; align-items:center; flex-shrink:0; gap:2px; }
.carousel-controls button { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid transparent; border-radius:50%; background:transparent; color:white; font-size:22px; }
.carousel-controls button:hover { background:#ffffff26; }
.carousel-controls svg { width:18px; height:18px; }
.carousel-controls [data-carousel-play] { margin-left:4px; background:#ffffff17; }
.carousel-controls span { min-width:32px; text-align:center; font-variant-numeric:tabular-nums; }
.eyebrow { font-size:12px; font-weight:600; line-height:1.4; color:var(--red); margin:0 0 12px; letter-spacing:.02em; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:18px; min-height:46px; padding:11px 23px; border:1px solid var(--red); border-radius:6px; background:var(--red); color:white; font-size:14px; font-weight:500; line-height:1.5; transition:background .2s; }
.button:hover { background:var(--red-dark); }
.text-link { display:inline-flex; align-items:center; gap:8px; color:var(--red); font-size:14px; font-weight:500; line-height:1.5; }
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
.arrow { font-size:20px; line-height:1; font-weight:400; }
.section { padding:44px 0; }
.section.soft { background:var(--paper); }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:24px; margin-bottom:22px; }
.section-heading>.text-link { flex-shrink:0; }
.section h2 { margin:0; color:var(--red); font-family:var(--display); font-size:30px; line-height:1.2; letter-spacing:-.015em; font-weight:700; text-wrap:balance; }
.section-description { color:var(--muted); font-size:15px; line-height:1.6; max-width:760px; margin:10px 0 0; }
.research-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.research-card { min-width:0; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:6px; background:white; overflow:hidden; transition:border-color .2s,box-shadow .2s; }
.research-card:hover { border-color:#b6a1a7; box-shadow:0 4px 16px #1d1d1f08; }
.research-image { position:relative; aspect-ratio:1.8; background:#fafafa; border-bottom:1px solid var(--line); }
.research-image img { position:absolute; inset:0; width:100%; height:100%; padding:10px; object-fit:contain; }
.research-card-copy { display:flex; flex-direction:column; flex:1; min-width:0; padding:16px; overflow-wrap:anywhere; }
.research-card h3 { font-size:17px; line-height:1.45; font-weight:600; margin:0 0 14px; }
.research-card .text-link { margin-top:auto; font-size:12px; }
.home-updates { border-bottom:1px solid var(--line); }
.updates-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:40px; }
.updates-grid>section { min-width:0; }
.updates-grid .section-heading { border-bottom:2px solid var(--red); padding-bottom:14px; margin-bottom:0; }
.updates-grid .section-heading>.text-link { font-size:12px; }
.news-grid { display:grid; gap:0; }
.news-card { display:grid; grid-template-columns:156px minmax(0,1fr); gap:20px; padding:22px 0; border-bottom:1px solid var(--line); min-width:0; align-items:start; }
.news-card:not(:has(.news-card-image)) { grid-template-columns:1fr; }
.news-card-image { position:relative; display:block; aspect-ratio:4/3; background:var(--paper); border-radius:4px; overflow:hidden; }
.news-card-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.news-card-copy { min-width:0; overflow-wrap:anywhere; }
.news-card h3 { font-size:18px; line-height:1.45; font-weight:600; margin:0 0 8px; }
.news-card h3 a:hover { color:var(--red); }
.news-card p { color:var(--muted); font-size:14px; line-height:1.65; margin:0 0 10px; }
.news-card .text-link { font-size:12px; }
.publication-preview { display:grid; grid-template-columns:36px minmax(0,1fr) 20px; gap:12px; padding:22px 0; border-bottom:1px solid var(--line); }
.publication-preview>div { min-width:0; overflow-wrap:anywhere; }
.pub-index { font-size:12px; font-weight:500; color:var(--muted); padding-top:2px; }
.publication-preview p { margin:0; font-size:14px; line-height:1.7; }
.publication-preview a:hover { color:var(--red); }
.publication-arrow { display:flex; align-items:center; justify-content:center; align-self:start; min-height:32px; color:var(--red); }
.about-grid { display:grid; grid-template-columns:1fr 3fr; grid-template-areas:"heading copy" "gallery copy"; gap:24px 40px; align-items:start; }
.about-heading { grid-area:heading; }
.about-grid>.prose { grid-area:copy; }
.about-link { margin-top:16px; }
.about-grid .prose { font-size:16px; line-height:1.8; color:var(--muted); }
.about-grid .prose>p:last-child { margin-bottom:0; }
.home-gallery { grid-area:gallery; display:grid; gap:20px; }
.home-gallery figure { min-width:0; margin:0; }
.home-gallery img { width:100%; height:200px; object-fit:contain; }
.home-gallery figcaption { font-size:12px; color:var(--muted); margin-top:8px; }

/* Calm, consistent reading layouts; profile navigation stays contextual. */
.page-banner { position:relative; isolation:isolate; overflow:hidden; background:var(--paper); border-bottom:1px solid var(--line); padding:22px 0 28px; margin-bottom:28px; }
.page-banner::before { color:var(--red); width:260px; right:-30px; bottom:-68px; opacity:.05; }
/* Share the header's container; constrain prose lines inside it, not page margins. */
.page-banner .wrap,.page-layout { max-width:var(--width); }
.breadcrumbs { display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-size:12px; color:var(--muted); margin-bottom:18px; }
.breadcrumbs a:hover { text-decoration:underline; }
.page-banner h1 { color:var(--red); font-family:var(--display); font-size:46px; line-height:1.12; letter-spacing:-.02em; font-weight:700; margin:0; text-wrap:balance; }
.page-banner p { color:var(--muted); font-size:17px; line-height:1.6; max-width:760px; margin:12px 0 0; }
.page-layout { padding:0 0 52px; }
.page-content,.profile-content { min-width:0; }
.page-layout.has-sidebar { display:grid; grid-template-columns:168px minmax(0,1fr); gap:40px; padding-top:8px; }
.section-nav { align-self:start; position:sticky; top:116px; }
.section-nav>p { margin:0 0 14px; color:var(--muted); font-size:12px; }
.section-nav a { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--line); font-size:13px; }
.section-nav a[aria-current=page],.section-nav a:hover { color:var(--red); }
.section-nav .aside-note { font-size:11px; line-height:1.8; margin-top:24px; }
.prose { font-size:17px; line-height:1.8; overflow-wrap:anywhere; min-width:0; }
.prose p { margin:0 0 18px; }
.prose a:not(.button) { color:var(--red); text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.prose a:hover { text-decoration-thickness:2px; }
.prose h2,.prose h3,.prose h4,.prose h5,.prose h6 { font-weight:600; line-height:1.45; margin:32px 0 16px; letter-spacing:-.02em; }
.prose h2 { font-size:28px; }
.prose h3 { font-size:23px; }
.prose h4,.prose h5,.prose h6 { font-size:20px; }
.prose>h2:first-child,.prose>h3:first-child,.prose>h4:first-child { margin-top:0; }
.prose ul,.prose ol { padding-left:24px; }
.prose li { padding-left:3px; margin-bottom:10px; }
.prose hr { border:0; border-top:1px solid var(--line); margin:32px 0; }
.prose figure { margin:28px 0; max-width:100%; }
.prose img { max-width:100%; height:auto; max-height:600px; object-fit:contain; object-position:left; }
.prose figcaption { color:var(--muted); font-size:12px; margin-top:10px; }
.prose table { border-collapse:collapse; width:100%; font-size:14px; }
.prose td,.prose th { padding:14px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.prose th { background:var(--paper); }
.table-scroll { max-width:100%; overflow-x:auto; }
.prose .wp-block-columns { display:flex; flex-wrap:wrap; gap:28px; }
.prose .wp-block-column { flex:1; min-width:min(260px,100%); }
.prose .wp-block-gallery { display:flex; flex-wrap:wrap; gap:20px; }
.prose .wp-block-gallery figure { flex:1; min-width:min(240px,100%); }
.prose .alignright { float:right; margin-left:24px; }
.prose::after { content:""; display:block; clear:both; }
.filter-bar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:0 0 16px; }
.filter-field { position:relative; flex:1; min-width:min(190px,100%); }
.filter-field svg { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--muted); }
.filter-field input { width:100%; padding:13px 16px 13px 45px; border:1px solid var(--line); background:var(--paper); border-radius:6px; font-size:16px; color:var(--ink); }
.filter-field input::placeholder { color:var(--muted); opacity:1; }
.filter-bar select { padding:13px 34px 13px 16px; border:1px solid var(--line); background:var(--paper); border-radius:6px; font-size:16px; color:var(--ink); }
.result-count { margin:0 0 22px; font-size:12px; color:var(--muted); }
.empty-state { padding:40px 24px; border-radius:16px; background:var(--paper); text-align:center; color:var(--muted); }
.news-entry { padding:0 0 28px; margin:0 0 28px; border-bottom:1px solid var(--line); scroll-margin-top:24px; }
.news-entry .entry-number { font-size:11px; color:var(--red); letter-spacing:.04em; font-weight:600; }
.news-entry>h2 { font-size:27px; font-weight:600; line-height:1.45; letter-spacing:-.02em; margin:8px 0 16px; }
.news-entry .prose { font-size:16px; }
.news-entry .prose h3 { font-size:21px; }
.news-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:16px; margin:20px 0 0; }
.news-gallery figure { width:100%; min-width:0; margin:0; }
.news-gallery a { display:flex; align-items:center; justify-content:center; height:280px; background:var(--paper); border:1px solid #eeeef1; border-radius:6px; overflow:hidden; }
.news-gallery img { width:100%; height:100%; max-height:none; object-fit:contain; object-position:center; }
/* Center single images at a comfortable reading size; full resolution stays in preview. */
.news-gallery>figure:only-child { width:fit-content; max-width:100%; justify-self:center; }
.news-gallery>figure:only-child a { height:auto; width:fit-content; max-width:100%; }
.news-gallery>figure:only-child img { width:var(--news-image-width,auto); height:auto; max-width:min(100%,720px); max-height:480px; }
.news-entry:target>h2,.project-entry:target>h2 { color:var(--red); }
.publication-group { font-size:20px; letter-spacing:-.02em; font-weight:600; margin:28px 0 4px; padding-bottom:12px; border-bottom:1px solid var(--ink); }
.publication-item { display:grid; grid-template-columns:56px minmax(0,1fr); gap:20px; padding:20px 0; border-bottom:1px solid var(--line); font-size:16px; line-height:1.85; scroll-margin-top:24px; }
.publication-item .pub-year { font-size:14px; font-weight:500; color:var(--muted); }
.publication-item p { margin:0; }
.publication-item a { color:var(--red); text-decoration:underline; text-underline-offset:3px; }
.publication-item:target { background:var(--paper); border-radius:10px; box-shadow:0 0 0 12px var(--paper); }
.people-group { margin-bottom:36px; }
.people-group-title { color:var(--red); font-family:var(--display); font-size:26px; font-weight:700; line-height:1.3; letter-spacing:-.015em; padding-bottom:12px; margin:0 0 20px; border-bottom:1px solid var(--line); }
/* Keep empty column slots so short groups and final rows align with full rows. */
.people-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:24px 28px; }
.person-card { display:grid; grid-template-columns:96px minmax(0,1fr); gap:18px; align-items:center; min-width:0; width:100%; }
.person-card img { width:100%; aspect-ratio:4/5; object-fit:cover; object-position:50% 25%; border-radius:4px; background:var(--paper); }
.person-copy { min-width:0; overflow-wrap:anywhere; }
.person-card h3 { font-size:18px; line-height:1.4; font-weight:600; margin:0 0 6px; letter-spacing:-.015em; }
.person-card p { color:var(--muted); font-size:12px; margin:0; }
.person-card .text-link { font-size:12px; margin-top:10px; }
a.person-card:hover h3 { color:var(--red); }
.faculty-group .person-card { grid-template-columns:120px minmax(0,1fr); column-gap:24px; }
.faculty-group .person-card h3 { font-size:24px; }
.lab-lives { margin-top:52px; }
.lab-lives-heading { margin-bottom:24px; }
.lab-lives-heading .people-group-title { margin-bottom:12px; }
.lab-lives-heading p { margin:0; font-size:15px; color:var(--muted); }
.lab-lives-year-group { display:grid; grid-template-columns:64px minmax(0,1fr); gap:24px; margin-top:28px; }
.lab-lives-year-heading { margin:0; padding-top:2px; font-family:var(--display); font-size:24px; font-weight:600; line-height:1.3; color:var(--red); }
.lab-lives-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; align-items:start; }
.lab-life-photo { min-width:0; margin:0; }
.lab-life-image { display:block; position:relative; height:180px; background:var(--paper); border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.lab-life-image img { width:100%; height:100%; object-fit:contain; }
.lab-life-expand { position:absolute; right:8px; bottom:8px; display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#ffffffed; color:var(--ink); box-shadow:0 1px 5px #00000015; }
.lab-life-expand svg { width:18px; height:18px; }
.lab-life-image:hover { border-color:#b6a1a7; }
.lab-life-photo figcaption { margin-top:10px; font-size:13px; line-height:1.5; }
.profile-content>.prose>figure { max-width:230px; }
.profile-content>.prose>figure:first-of-type,.profile-content>.prose>img:first-child { float:right; max-width:210px; margin:0 0 28px 32px; }
.profile-content>.prose>figure img { border-radius:12px; }
.profile-content>.prose>a>img { width:70px; }
.project-entry { padding:0 0 28px; margin:0 0 28px; border-bottom:1px solid var(--line); scroll-margin-top:24px; }
.project-entry>h2 { font-size:28px; line-height:1.25; font-weight:600; letter-spacing:-.035em; margin:0 0 18px; }
.project-entry .prose { font-size:17px; }
.project-entry .prose>figure { padding:12px; margin:20px 0 16px; border:1px solid var(--line); border-radius:6px; }
.project-entry .prose img { width:100%; max-height:420px; object-position:center; }
.contact-details { display:grid; grid-template-columns:1fr 1fr; gap:32px; padding:8px 0 16px; }
.contact-details h2 { font-size:15px; font-weight:500; color:var(--muted); margin:0 0 18px; }
.contact-details p { font-size:25px; letter-spacing:-.03em; line-height:1.5; margin:0 0 24px; }
.contact-details address { font-style:normal; font-size:19px; line-height:1.8; }
.contact-institution { padding:24px; margin-top:20px; background:var(--paper); border-radius:6px; font-size:16px; line-height:1.9; }

/* Useful details, with the same visual restraint as the main content. */
.site-footer { position:relative; isolation:isolate; overflow:hidden; background:var(--red); color:#f3dcd6; padding:32px 0 20px; }
.site-footer::before { right:-90px; bottom:-125px; opacity:.08; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr .6fr; gap:40px; }
.footer-brand { display:inline-flex; align-items:center; color:white; font-size:25px; font-weight:700; letter-spacing:-.02em; margin:0 0 12px -14px; }
.footer-emblem { box-sizing:content-box; width:56px; height:56px; padding:14px; flex-shrink:0; }
.footer-brand small { display:block; font-size:12px; font-weight:400; letter-spacing:0; }
.footer-grid p { font-size:12px; line-height:1.85; margin:0 0 14px; max-width:370px; }
.footer-grid h2 { color:white; font-size:14px; font-weight:700; line-height:1.5; margin:4px 0 14px; }
.footer-grid .text-link { color:white; font-size:13px; }
.footer-links { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; padding:0; margin:0; list-style:none; font-size:12px; }
.footer-links a:hover,.footer-bottom a:hover { color:white; text-decoration:underline; text-underline-offset:4px; }
.footer-bottom { display:flex; justify-content:space-between; gap:24px; border-top:1px solid #ffffff40; margin-top:24px; padding-top:16px; font-size:11px; }
.search-dialog { width:min(700px,calc(100vw - 32px)); max-height:85vh; border:1px solid var(--line); border-radius:22px; padding:0; color:var(--ink); box-shadow:0 24px 100px #0003; }
.search-dialog::backdrop { background:#1d1d1f77; backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.search-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:26px 28px 20px; }
.search-dialog h2 { font-size:24px; letter-spacing:-.03em; font-weight:600; margin:0; }
.close-search { border:0; width:44px; height:44px; flex-shrink:0; border-radius:50%; background:var(--paper); font-size:26px; line-height:1; }
.search-body { padding:0 28px 28px; }
.search-dialog input { width:100%; border:1px solid var(--line); border-radius:12px; background:var(--paper); padding:14px 16px; font-size:17px; color:var(--ink); }
.search-hint { color:var(--muted); font-size:12px; margin:16px 0; }
.search-results { list-style:none; padding:0; margin:0; }
.search-results a { display:block; padding:20px 0; border-top:1px solid var(--line); }
.search-results a:hover strong { color:var(--red); }
.search-results strong { display:block; font-size:17px; font-weight:600; }
.search-results span { display:block; margin-top:7px; color:var(--muted); font-size:13px; line-height:1.75; }
/* Full-page photo viewer keeps the current page and its reading position intact. */
a[data-image-preview] { cursor:zoom-in; }
.image-preview { position:fixed; inset:0; width:100%; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:#14171bf7; color:#fff; overscroll-behavior:contain; }
.image-preview[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.image-preview::backdrop { background:#14171b; }
.image-preview-toolbar { display:flex; align-items:center; gap:20px; padding:12px max(24px,env(safe-area-inset-right)) 12px max(24px,env(safe-area-inset-left)); border-bottom:1px solid #ffffff25; }
.image-preview-toolbar h2 { font-size:16px; font-weight:500; margin:0; }
.image-preview-original { margin-left:auto; font-size:13px; color:#e2e5e9; text-decoration:underline; text-underline-offset:4px; }
.image-preview button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; border:1px solid #ffffff40; border-radius:6px; color:#fff; background:#ffffff0d; font-size:24px; line-height:1; }
.image-preview button:hover { background:#ffffff25; }
.image-preview [data-preview-close] { font-size:30px; }
.image-preview :is(a,button):focus-visible { outline-color:#fff; outline-offset:3px; }
.image-preview-stage { position:relative; min-height:0; padding:24px; touch-action:pan-y pinch-zoom; }
.image-preview-media { display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-height:0; }
.image-preview-media img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; user-select:none; }
.image-preview-status { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); max-width:calc(100% - 48px); margin:0; text-align:center; color:#e2e5e9; font-size:15px; pointer-events:none; }
.image-preview-status:empty { display:none; }
.image-preview-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; padding:12px max(24px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); border-top:1px solid #ffffff25; }
.image-preview-caption { font-size:14px; color:#e2e5e9; margin:0; max-height:16vh; overflow-y:auto; overflow-wrap:anywhere; }
.image-preview-navigation { display:flex; align-items:center; gap:16px; }
.image-preview-navigation span { font-size:13px; min-width:38px; text-align:center; font-variant-numeric:tabular-nums; }
.not-found { min-height:50vh; padding:80px 24px; text-align:center; }
.not-found h1 { font-size:80px; line-height:1.1; letter-spacing:-.05em; margin:0; }
.not-found p { color:var(--muted); }

@media(max-width:1100px) {
  .header-inner { gap:16px; }
  .nav-links { gap:20px; }
  .lab-intro-grid { gap:28px; }
  .lab-intro h1 { font-size:42px; }
  .updates-grid { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:28px; }
  .news-card { grid-template-columns:120px minmax(0,1fr); gap:16px; }
}
@media(max-width:900px) {
  .wrap { width:calc(100% - 48px); }
  .header-inner { min-height:80px; }
  .identity-text { display:block; }
  .header-actions { margin-left:auto; }
  .menu-toggle { display:flex; }
  .navigation { margin:0; }
  .nav-links { display:none; position:absolute; top:100%; left:0; right:0; max-height:calc(100dvh - 83px); overflow-y:auto; background:#fff; padding:12px 24px 24px; border-bottom:1px solid var(--line); box-shadow:0 15px 20px #1d1d1f08; flex-direction:column; align-items:stretch; gap:0; }
  .nav-links.is-open { display:flex; }
  .no-js .site-header { position:static; }
  .no-js .header-inner { flex-wrap:wrap; padding-block:16px; }
  .no-js .navigation { order:2; width:100%; }
  .no-js .nav-links { display:flex; position:static; flex-direction:row; flex-wrap:wrap; gap:8px 22px; padding:0; border:0; box-shadow:none; }
  .no-js .nav-links a { font-size:14px; padding:8px 0; }
  .nav-links a { font-size:19px; padding:13px 0; }
  .nav-links a[aria-current=page]::after { display:none; }
  .lab-intro-grid { grid-template-columns:1fr 1fr; gap:24px; padding-block:28px; }
  .lab-intro h1 { font-size:36px; }
  .lab-full-name { font-size:17px; }
  .lab-introduction { font-size:15px; }
  .carousel-footer { flex-wrap:wrap; gap:0; font-size:11px; }
  .section { padding:36px 0; }
  .research-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .research-card { display:grid; grid-template-columns:110px minmax(0,1fr); }
  .research-image { aspect-ratio:auto; height:100%; min-height:145px; border:0; border-right:1px solid var(--line); }
  .research-image img { padding:6px; }
  .research-card-copy { padding:14px; }
  .research-card h3 { font-size:15px; }
  .updates-grid { grid-template-columns:1fr; gap:36px; }
  .news-card { grid-template-columns:160px minmax(0,1fr); gap:20px; }
  .publication-preview { grid-template-columns:40px minmax(0,1fr) 24px; }
  .about-grid { grid-template-columns:1fr 2.5fr; gap:28px; }
  .home-gallery img { height:210px; }
  .page-layout.has-sidebar { grid-template-columns:145px minmax(0,1fr); gap:24px; }
  .people-cards { gap:24px 20px; }
  .lab-lives-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
  .footer-grid { gap:24px; }
}
@media(max-width:640px) {
  html { scroll-padding-top:84px; }
  .wrap { width:calc(100% - 40px); }
  .header-inner { min-height:68px; gap:0; }
  .university-emblem { width:32px; height:32px; padding:8px; }
  .wordmark { font-size:20px; }
  .identity { gap:2px; margin-left:-8px; }
  .identity-copy { gap:3px; }
  .identity-text { font-size:9px; letter-spacing:.02em; }
  .header-actions { gap:0; }
  .search-toggle,.menu-toggle { width:44px; height:44px; }
  .nav-links { padding-inline:20px; max-height:calc(100dvh - 71px); }
  .lab-intro-grid { grid-template-columns:1fr; gap:22px; padding-block:24px; }
  .lab-affiliation { font-size:11px; margin-bottom:12px; }
  .lab-intro h1 { font-size:38px; }
  .lab-intro::before { width:360px; bottom:auto; top:40px; left:-170px; }
  .lab-full-name { font-size:18px; }
  .carousel-footer { gap:4px; }
  .section { padding:30px 0; }
  .section-heading { flex-wrap:wrap; gap:12px; margin-bottom:18px; }
  .section h2 { font-size:28px; }
  .section-description { font-size:14px; }
  .text-link { font-size:13px; }
  .research-grid { grid-template-columns:1fr; gap:12px; }
  .research-card { grid-template-columns:112px minmax(0,1fr); }
  .research-image { min-height:125px; }
  .research-card h3 { font-size:16px; margin-bottom:12px; }
  .updates-grid { gap:30px; }
  .news-card { grid-template-columns:96px minmax(0,1fr); gap:14px; padding:18px 0; }
  .news-card h3 { font-size:17px; }
  .news-card p { font-size:14px; }
  .publication-preview { padding:18px 0; }
  .publication-preview p { font-size:15px; }
  .about-grid { grid-template-columns:1fr; grid-template-areas:"heading" "copy" "gallery"; gap:18px; }
  .about-grid .prose { font-size:15px; }
  .about-link { margin-top:10px; }
  .home-gallery { width:100%; max-width:280px; justify-self:center; gap:20px; }
  .home-gallery img { height:auto; max-height:300px; }
  .home-gallery figure:last-child img { height:180px; }
  .page-banner { padding:18px 0 22px; margin-bottom:24px; }
  .breadcrumbs { margin-bottom:16px; font-size:11px; }
  .page-banner h1 { font-size:36px; overflow-wrap:anywhere; }
  .page-banner p { font-size:16px; margin-top:10px; }
  .page-layout { padding-bottom:36px; }
  .page-layout.has-sidebar { display:flex; flex-direction:column; gap:24px; padding-top:0; }
  .section-nav { position:static; display:flex; flex-wrap:wrap; gap:6px 18px; padding-bottom:14px; border-bottom:1px solid var(--line); }
  .section-nav>p,.section-nav a span { display:none; }
  .section-nav a { padding:8px 0; border:0; font-size:12px; }
  .prose { font-size:16px; }
  .prose h2 { font-size:25px; }
  .prose h3 { font-size:22px; }
  .prose table { font-size:13px; min-width:530px; }
  .prose td,.prose th { padding:12px 8px; }
  .prose .alignright { float:none; margin-left:0; }
  .news-entry { padding-bottom:24px; margin-bottom:24px; }
  .news-entry>h2 { font-size:23px; margin:8px 0 14px; }
  .news-entry .prose { font-size:15px; }
  .news-entry .prose h3 { font-size:20px; }
  .news-gallery { grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr)); gap:10px; }
  .news-gallery a { height:190px; }
  .result-count { margin-bottom:20px; }
  .publication-item { grid-template-columns:36px minmax(0,1fr); gap:16px; font-size:15px; padding:18px 0; }
  .publication-item .pub-year { font-size:12px; }
  .publication-group { font-size:18px; }
  .people-cards { gap:20px; }
  .people-group { margin-bottom:30px; }
  .lab-lives { margin-top:36px; }
  .lab-lives-heading { margin-bottom:20px; }
  .lab-lives-year-group { grid-template-columns:1fr; gap:14px; margin-top:24px; }
  .lab-lives-year-heading { font-size:22px; }
  .lab-lives-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
  .lab-life-image { height:auto; aspect-ratio:4/3; }
  .people-group-title { font-size:25px; }
  .person-card h3 { font-size:17px; }
  .faculty-group .person-card { grid-template-columns:96px minmax(0,1fr); column-gap:18px; }
  .faculty-group .person-card h3 { font-size:22px; }
  .person-card p { font-size:11px; }
  .profile-content>.prose>figure:first-of-type,.profile-content>.prose>img:first-child { float:none; max-width:180px; margin:0 0 22px; }
  .project-entry { padding-bottom:24px; margin-bottom:24px; }
  .project-entry>h2 { font-size:24px; }
  .project-entry .prose { font-size:16px; }
  .project-entry .prose>figure { padding:8px; }
  .contact-details { grid-template-columns:1fr; gap:24px; }
  .contact-details p { font-size:23px; }
  .contact-details address { font-size:18px; }
  .contact-institution { font-size:14px; padding:20px; }
  .site-footer { padding-top:28px; }
  .footer-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
  .footer-grid>div,.footer-grid>nav { min-width:0; overflow-wrap:anywhere; }
  .footer-links { grid-template-columns:1fr; }
  .footer-grid>div:first-child { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; gap:10px; }
  .search-dialog header { padding:20px 20px 16px; }
  .search-dialog h2 { font-size:22px; }
  .search-body { padding:0 20px 24px; }
  .image-preview-toolbar { gap:12px; padding:10px 12px; }
  .image-preview-toolbar h2 { font-size:14px; }
  .image-preview-original { max-width:150px; font-size:12px; }
  .image-preview-stage { padding:12px; }
  .image-preview-footer { grid-template-columns:1fr; gap:12px; padding:12px 16px max(16px,env(safe-area-inset-bottom)); }
  .image-preview-caption { font-size:13px; max-height:14vh; text-align:center; }
  .image-preview-navigation { justify-content:center; }
}
html:lang(zh-CN) :is(h1,h2,h3,.lab-full-name) { letter-spacing:0; }

@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; animation:none!important; }
}
@media print {
  .site-header,.site-footer,.search-dialog,.image-preview,.section-nav,.filter-bar,.lab-more,.skip-link { display:none!important; }
  .wrap { width:100%; }
  .page-layout.has-sidebar { display:block; }
  .page-banner { padding:20px 0; }
  .lab-intro { background:white; color:var(--ink); }
  .lab-affiliation,.carousel-footer,.carousel-caption a { color:var(--ink); }
  .lab-intro::before,.page-banner::before { display:none; }
  .section { padding:30px 0; }
  .news-entry,.publication-item,.person-card { break-inside:avoid; }
  a { color:inherit!important; }
}
