@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500&family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');
:root{color-scheme:light;--bg:#fcfcfa;--heading:#202b39;--text:#3c4652;--accent:#315e88;--muted:#64748b;--line:#e2e6ea;--surface:#f0f3f6;--serif:'Source Serif 4',Georgia,serif;--sans:'Source Sans 3',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#151b23;--heading:#e6ebf1;--text:#cbd5e1;--accent:#9ac0e5;--muted:#a3b1c1;--line:#343e4b;--surface:#202a36}
@media(prefers-color-scheme:dark){:root:not([data-theme]){color-scheme:dark;--bg:#151b23;--heading:#e6ebf1;--text:#cbd5e1;--accent:#9ac0e5;--muted:#a3b1c1;--line:#343e4b;--surface:#202a36}}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.7 var(--sans);min-height:100vh;display:flex;flex-direction:column}a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}a:hover{text-decoration:underline}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}img{max-width:100%;display:block}h1,h2,h3{color:var(--heading);margin:0;font-weight:600;line-height:1.35}h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.025em}h1{font-size:42px}h2{font-size:28px;margin-bottom:21px}h3{font-size:19px}p{margin:0 0 14px}p:last-child{margin-bottom:0}strong{font-weight:600;color:var(--heading)}.container{width:min(100% - 72px,960px);margin-inline:auto}.site-header{border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:74px}.brand{font:600 22px/1.3 var(--serif);color:var(--heading);text-decoration:none;white-space:nowrap}.header-inner nav{display:flex;align-items:center;gap:28px}.header-inner nav a{color:var(--muted);font-size:16px;text-decoration:none;padding:7px 0;border-bottom:1px solid transparent}.header-inner nav a:hover,.header-inner nav a[aria-current]{color:var(--accent);border-color:var(--accent)}.header-inner nav a[aria-current]{font-weight:600}.theme-toggle{background:none;border:0;display:grid;place-items:center;width:30px;height:34px;color:var(--muted);padding:4px}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sun{display:none}:root[data-theme=dark] .moon{display:none}:root[data-theme=dark] .sun{display:block}main.container{padding-top:48px;padding-bottom:32px;flex:1}.intro{display:grid;grid-template-columns:minmax(0,1fr) 200px;align-items:center;gap:44px;margin-bottom:32px}.portrait{width:200px;height:auto;aspect-ratio:3/4;object-fit:cover;background:var(--surface);border-radius:5px}.affiliation{font-size:19px;color:var(--muted);line-height:1.5;margin-top:10px}.profile-links,.resource-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;font-size:15px}.profile-links a,.resource-links a,.more,.section-nav a,.site-footer a{font-weight:500;text-decoration:none}.profile-links a:hover,.resource-links a:hover,.more:hover,.section-nav a:hover,.site-footer a:hover{text-decoration:underline}.keywords{font-size:15px;font-weight:600;color:var(--accent);margin:20px 0 0}.bio{max-width:800px}.section{border-top:1px solid var(--line);margin-top:36px;padding-top:28px}.section[id],article[id]{scroll-margin-top:24px}.publication{display:flex;align-items:flex-start;gap:24px;margin-bottom:20px}.publication+.publication{border-top:1px solid var(--line);padding-top:23px}.pub-figure{flex:0 0 24%;margin:0}.pub-figure img{width:100%;height:auto;border-radius:4px;border:1px solid var(--line)}.pub-body{min-width:0;flex:1}.publication h3 a{color:var(--accent);text-decoration:none}.publication h3 a:hover{text-decoration:underline}.authors{font-size:16px;margin:5px 0 0}.venue{font-size:15px;color:var(--muted);font-weight:600;margin:2px 0 9px}.pub-summary{margin-bottom:8px}.resource-links{gap:8px 16px}.publication details{font-size:15px;margin-top:8px}.publication summary{cursor:pointer;color:var(--accent);width:fit-content}.publication details p{margin-top:8px}.bibtex-inner{background:var(--surface);padding:12px 16px;margin-top:8px;border-radius:4px}.bibtex pre{font:13px/1.6 ui-monospace,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 10px}.copy-bib,.action{display:inline-flex;align-items:center;border:1px solid var(--accent);border-radius:4px;background:none;color:var(--accent);padding:6px 13px;font-weight:600;font-size:15px;text-decoration:none}.copy-status{font-size:14px;margin-left:10px}.more{display:inline-block;margin-top:12px;font-size:15px}.topics{display:grid;gap:22px}.topic{border-left:2px solid var(--line);padding-left:16px}.topic h3 a{color:var(--heading);text-decoration:none}.topic h3 a:hover{color:var(--accent);text-decoration:underline}.topic p{margin:6px 0 0}.topic .question{font:italic 17px/1.6 var(--serif);color:var(--muted);margin:5px 0 9px}.topic .tags{font-size:14px;color:var(--accent);margin-top:10px}.page-intro{max-width:820px}.subtitle{font-size:18px;color:var(--muted);margin:8px 0 0}.section-nav{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:18px;font-size:15px}.archive{padding:17px 0;border-bottom:1px solid var(--line)}.archive:first-of-type{padding-top:0}.archive:last-child{border-bottom:0}.archive .meta{font-size:14px;color:var(--muted);margin:5px 0}.archive p{margin-bottom:5px}.small{font-size:14px}.muted{color:var(--muted)}.cv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin:20px 0 24px;font-size:15px}.pdf-viewer{display:block;width:100%;height:850px;height:min(78vh,1050px);min-height:450px;border:1px solid var(--line);border-radius:4px;background:var(--surface)}.pdf-viewer+p{margin-top:8px}.personal-lead{font:400 23px/1.55 var(--serif);color:var(--heading);margin:15px 0}.map-wrap{border:1px solid var(--line);border-radius:5px;overflow:hidden;background:var(--surface)}.map-wrap iframe{width:100%;height:440px;border:0;display:block}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}.gallery figure{margin:0}.gallery img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:var(--surface)}.gallery-link{display:block}.gallery figcaption{font-size:14px;line-height:1.4;color:var(--muted);margin-top:8px}dialog{max-width:min(94vw,1100px);max-height:95vh;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:12px;overflow:auto}dialog::backdrop{background:#000b}.dialog-top{display:flex;justify-content:flex-end}.close-dialog{background:none;border:0;font-size:28px;line-height:1;padding:3px 10px}.dialog-top+img{max-height:77vh;object-fit:contain;margin:auto}#lightbox-caption{text-align:center;font-size:15px;margin-top:10px}.site-footer{border-top:1px solid var(--line);padding:20px 0 24px;display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);margin-top:18px}.site-footer div{display:flex;gap:18px}.site-footer a{color:var(--muted)}.skip{position:absolute;left:10px;top:-100px;background:var(--bg);padding:10px;z-index:100}.skip:focus{top:10px}
@media(max-width:650px){body{font-size:16px;line-height:1.65}.container{width:calc(100% - 40px)}.header-inner{min-height:62px;gap:8px;flex-wrap:wrap;padding-block:12px}.brand{font-size:19px}.header-inner nav{gap:15px}.header-inner nav a{font-size:14px}.theme-toggle{width:24px;height:26px}.theme-toggle svg{width:17px;height:17px}main.container{padding-top:30px;padding-bottom:22px}h1{font-size:33px}h2{font-size:24px;margin-bottom:17px}h3{font-size:18px}.intro{grid-template-columns:minmax(0,1fr) 116px;gap:18px;margin-bottom:24px;align-items:start}.portrait{width:116px}.affiliation{font-size:16px}.profile-links{font-size:14px;gap:5px 12px}.keywords{font-size:14px;margin-top:14px}.section{margin-top:28px;padding-top:22px}.topic{padding-left:12px}.topics{gap:19px}.topic .question{font-size:16px}.publication{gap:14px}.pub-figure{flex-basis:24%}.authors{font-size:15px}.section-nav{gap:7px 15px}.pdf-viewer{display:none}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px}.map-wrap iframe{height:340px}.personal-lead{font-size:20px}.site-footer{font-size:13px;flex-wrap:wrap}.site-footer div{gap:13px}}
@media(max-width:390px){.header-inner nav{gap:12px}.header-inner{justify-content:center}.brand{width:100%;text-align:center}.intro{grid-template-columns:minmax(0,1fr) 94px;gap:12px}.portrait{width:94px}h1{font-size:30px}.affiliation{font-size:15px}.profile-links{gap:4px 10px}.keywords{font-size:13px}.publication{display:block}.pub-figure{width:120px;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.site-header,.site-footer,.theme-toggle,.profile-links,.more,.section-nav,button{display:none}body{color:#000;background:#fff}.container{width:100%}main.container{padding:0}}

/* Publication figures: original manuscript crops retain their white canvas in both themes. */
.pub-figure img{background:#fff;padding:10px}.pub-figure figcaption{font-size:13px;line-height:1.35;color:var(--muted);text-align:center;margin-top:6px}@media(max-width:650px){.pub-figure img{padding:5px}.pub-figure figcaption{font-size:11px}}@media(max-width:390px){.pub-figure{width:165px}}

/* Publication visuals: a compact model diagram and full-width density comparison. */
.pub-visuals{flex:0 0 34%;min-width:0;display:grid;gap:12px}.pub-visuals .pub-figure{width:100%;margin:0;min-width:0}.pub-visuals .pub-figure:first-child img{max-width:205px;margin-inline:auto}.pub-visuals .pub-figure img{padding:5px}.pub-visuals .pub-figure figcaption{font-size:12px;margin-top:5px}.pub-visuals .pub-figure:nth-child(2) img{width:100%}
@media(max-width:650px){.publication{display:flex;flex-direction:column;gap:16px}.pub-body{order:0;width:100%}.pub-visuals{order:1;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);align-items:center;gap:10px}.pub-visuals .pub-figure figcaption{font-size:11px}}
@media(max-width:430px){.pub-visuals{grid-template-columns:1fr;gap:14px}.pub-visuals .pub-figure:first-child img{max-width:175px}.pub-visuals .pub-figure:nth-child(2) img{max-width:100%}}

/* v2.3: signature bilingual name on Home only. */
.bilingual-name{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:18px;row-gap:3px;line-height:1.13;letter-spacing:normal}
.name-en{font-family:'EB Garamond',Garamond,Georgia,serif;font-size:52px;font-weight:500;letter-spacing:-.025em}
.name-zh{font-family:'Kaiti SC',STKaiti,KaiTi,'AR PL KaitiM GB','AR PL UKai CN','Noto Serif CJK SC',serif;font-size:27px;font-weight:400;letter-spacing:.12em;color:var(--muted);white-space:nowrap}
@media(max-width:650px){.bilingual-name{column-gap:12px;row-gap:5px}.name-en{font-size:36px}.name-zh{font-size:22px}}
@media(max-width:390px){.name-en{font-size:30px}.name-zh{font-size:21px}}

/* v2.4: compact 4:5 portrait, integrated biography on Home. */
.home-intro{display:flow-root}
.home-intro .intro{display:block;margin-bottom:14px}
.home-intro .portrait{float:right;width:180px;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center;margin:2px 24px 14px 30px}
.home-intro .bio{max-width:none}
.home-intro .keywords{margin-top:16px}
.home-intro .profile-links{gap:6px 15px}
@media(max-width:650px){.home-intro .intro{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:14px;align-items:start;margin-bottom:16px}.home-intro .intro>.portrait{grid-column:2;grid-row:1;float:none;width:110px;margin:3px 0 0;align-self:start}.home-intro .intro>.identity{grid-column:1;grid-row:1}.home-intro .keywords{margin-top:12px}}
@media(max-width:390px){.home-intro .intro{grid-template-columns:minmax(0,1fr) 90px;gap:10px}.home-intro .portrait{width:90px}}

/* Personal page: a single compact introductory heading. */
h1.personal-lead{font-size:clamp(24px,3vw,30px);line-height:1.45;letter-spacing:-.015em;margin:0 0 14px}

/* Orienteering accents: decorative emoji with compact navigation spacing. */
.nav-compass{font-size:.9em;vertical-align:baseline;display:inline-block}.header-inner nav a{white-space:nowrap}.personal-emoji{font-size:.75em;vertical-align:baseline;white-space:nowrap}
@media(max-width:390px){.header-inner nav{gap:9px;flex-wrap:wrap;justify-content:center}}
