:root { color-scheme: light; --ink: #292a30; --muted: #6e7078; --blue: #276b9b; --accent: #704496; --line: #e7e7eb; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 Arial, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; }
a:focus-visible, button:focus-visible, [role="tabpanel"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #eae2f1; }
.page { max-width: 1140px; margin: 0 auto; padding: 0 36px 56px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: 12px; padding: 8px 15px; background: #fff; z-index: 50; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.profile { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 48px; align-items: center; padding: 44px 0 38px; }
.portrait { display: block; width: 180px; height: 252px; object-fit: contain; }
.profile h1 { font-size: 34px; line-height: 1.2; font-weight: 400; letter-spacing: -.8px; margin: 0 0 10px; }
.name-cn { font-size: 21px; letter-spacing: 1px; margin-left: 12px; color: #555; }
.profile-role { font-size: 15px; margin: 0 0 3px; }
.profile-affiliation { margin: 0 0 15px; font-size: 14px; color: var(--muted); }
.profile p.bio { margin: 0 0 15px; font-size: 16px; line-height: 1.65; }
.research-intro { margin-bottom: 17px; }
.research-intro p { margin: 0 0 10px; }
.research-principles { padding-left: 19px; margin: 0; }
.research-principles li { padding-left: 3px; margin: 3px 0; }
.contacts { display: flex; flex-wrap: wrap; column-gap: 19px; row-gap: 4px; font-size: 14px; }

.news { margin-bottom: 34px; }
.news-title { margin: 0 0 10px; font-size: 25px; line-height: 1.3; font-weight: 400; letter-spacing: -.4px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { padding: 4px 0; font-size: 14px; line-height: 1.65; }
.news-controls { display: flex; gap: 18px; overflow-anchor: none; }
.news-toggle { min-height: 44px; padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; -webkit-tap-highlight-color: transparent; }

.research-title { font-size: 25px; line-height: 1.3; font-weight: 400; letter-spacing: -.4px; margin: 0; }
.research-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; }
.map-view-switch { display: inline-grid; grid-template-columns: repeat(2,1fr); flex-shrink: 0; gap: 2px; padding: 2px; border: 1px solid #ded9e5; border-radius: 7px; }
.map-view-option { appearance: none; min-height: 38px; min-width: 66px; padding: 5px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.map-view-option[aria-pressed="true"] { background: #f0eaf5; color: #603982; }
.map-scroll { max-width: 100%; padding-right: 20px; }
.map-scroll-hint { display: none; }
.research-map { position: relative; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin-inline: auto; }
.representations { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; text-align: center; min-height: 53px; padding-bottom: 12px; font-size: 14px; line-height: 1.5; }
.pure-math { grid-column: span 2; }
.years { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; position: relative; isolation: isolate; height: 44px; text-align: center; font-size: 14px; font-style: italic; line-height: 1; }
.years::before { content: ""; position: absolute; inset: 18% 0; z-index: -1; background: #e2e2e5; }
.years::after { content: ""; position: absolute; left: 100%; top: 0; width: 20px; height: 100%; z-index: -1; background: #e2e2e5; clip-path: polygon(0 0,100% 50%,0 100%); }
.timeline-boundaries { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.timeline-boundaries path { fill: none; stroke: #827f86; stroke-width: .8; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.timeline-boundaries .math-boundary { stroke: #c2616b; }
.paradigms { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; height: 43px; align-items: center; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); }
.pre-cv, .hand-crafted { grid-column: span 2; }
.reference-grid { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; position: relative; align-items: start; }
.correspondence-arrows { display: block; grid-column: 1 / -1; width: 100%; height: 28px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.correspondence-trunk, .correspondence-arrow { fill: none; stroke: #827d8a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.contributions { display: contents; }
.math-reference, .history-reference { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 8px; width: 100%; transition: opacity .2s ease; }
.math-reference { align-self: start; padding-top: 10px; }
.reference-grid img { width: auto; max-width: 100%; height: 138px; object-fit: contain; display: block; }
.reference-title { font-size: 13px; line-height: 1.5; font-weight: 400; padding: 0 5px; min-height: 39px; }
.reference-authors { display: block; font-size: 13px; font-style: italic; color: #75747e; line-height: 1.5; padding: 0 4px; }
.reference-authors > span { display: block; }
.research-tab { appearance: none; position: relative; display: flex; align-self: stretch; align-items: center; justify-content: center; width: 100%; padding: 10px 5px 0; border: 0; border-radius: 0; background: none; color: var(--ink); cursor: pointer; }
.history-reference { align-self: flex-start; }
.own-contributions { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; opacity: 0; pointer-events: none; font-size: 14px; line-height: 1.5; color: var(--blue); transition: opacity .2s ease; }
.own-contributions > span { white-space: nowrap; }
.contribution-label { position: absolute; top: 0; left: 0; width: 33.3333%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; font-size: 15px; line-height: 1.45; transition: opacity .2s ease; }
.contribution-label > span { text-align: center; }
.contribution-hint { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contribution-label .contribution-brace { position: absolute; right: 22px; }
.contribution-brace { width: 20px; height: 154px; overflow: visible; }
.contribution-brace path { fill: none; stroke: #6e6b74; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.current-focus { font-size: 15px; line-height: 1.55; color: inherit; }
.history-question img { width: 125px; }
.question-caption { margin-top: 26px; font-style: italic; }
.research-map[data-view="contributions"] .history-reference,
.research-map[data-view="contributions"] .math-reference { opacity: 0; }
.research-map[data-view="contributions"] .own-contributions,
.research-map[data-view="contributions"] .contribution-label,
.research-map[data-view="contributions"] .correspondence-arrows { opacity: 1; }
.research-tab:focus-visible .own-contributions > span,
.research-tab:focus-visible .current-focus { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.research-tab:focus-visible .own-contributions { color: var(--accent); }
.research-map:has(#tab-global:focus-visible) .arrow-global,
.research-map:has(#tab-local:focus-visible) .arrow-local,
.research-map:has(#tab-hierarchical:focus-visible) .arrow-hierarchical,
.research-map:has(#tab-foundational:focus-visible) .arrow-foundational { stroke: var(--accent); }
@media (hover: hover) {
 .research-tab:hover .own-contributions { color: var(--accent); }
 .research-tab:hover .own-contributions > span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
 .research-map:has(#tab-global:hover) .arrow-global,
 .research-map:has(#tab-local:hover) .arrow-local,
 .research-map:has(#tab-hierarchical:hover) .arrow-hierarchical,
 .research-map:has(#tab-foundational:hover) .arrow-foundational { stroke: var(--accent); }
}

.paper-panel { padding-top: 18px; margin-top: 14px; border-top: 1px solid var(--line); }
.paper-list { display: grid; grid-template-columns: 1fr; gap: 32px; }
.paper { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 30px; align-items: center; min-width: 0; }
.paper-figure { margin: 0; display: flex; align-items: center; justify-content: center; }
.paper-figure a { display: flex; align-items: center; justify-content: center; width: 100%; height: 127px; }
.paper-figure img { max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.paper-title { font-size: 18px; line-height: 1.45; font-weight: 400; margin: 0 0 8px; letter-spacing: -.1px; }
.paper-title a { color: var(--ink); }
.paper-title a:hover { color: var(--blue); }
.paper-authors { font-size: 14px; line-height: 1.6; color: #6b6d75; margin: 0 0 8px; }
.paper-venue { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: #53555e; }
.paper-notes { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--accent); }
.note-divider { color: #aaa5b1; }
.paper-links { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 5px; font-size: 14px; }
.paper-panel.is-entering { animation: enter .18s ease-out; }
@keyframes enter { from { opacity: .4; } to { opacity: 1; } }

@media (max-width: 1000px) {
 .page { padding: 0 28px 48px; }
 .profile { grid-template-columns: 155px 1fr; gap: 35px; padding-top: 36px; }
 .portrait { width: 155px; height: 217px; }
 .profile h1 { font-size: 31px; }
 .reference-grid img { height: 120px; }
 .history-question img { width: 112px; }
 .reference-title { font-size: 12px; }
 .reference-authors { font-size: 12px; }
 .paper { grid-template-columns: 160px minmax(0,1fr); gap: 25px; }
}
@media (max-width: 700px) {
 .page { padding: 0 22px 38px; }
 .profile { display: block; padding: 30px 0 32px; }
 .profile::after { content: ""; display: block; clear: both; }
 .portrait { float: right; width: 100px; height: 140px; margin: 0 0 18px 20px; }
 .profile h1 { font-size: 30px; line-height: 1.4; padding-top: 3px; }
 .name-cn { display: block; margin: 0; font-size: 19px; }
 .profile-role { margin-top: 8px; font-size: 14px; }
 .profile-affiliation { font-size: 12px; margin-bottom: 20px; }
 .profile p.bio { clear: both; padding-top: 7px; }
 .research-principles li { margin: 8px 0; }
 .research-title { font-size: 24px; }
 .map-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #ccc7d2 transparent; padding-bottom: 8px; }
 .map-scroll-hint { display: block; margin: -8px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
 .research-map { min-width: 960px; }
 .reference-title, .reference-authors { font-size: 13px; }
 .paper { grid-template-columns: 105px minmax(0,1fr); gap: 19px; }
 .paper-title { font-size: 17px; }
 .paper-figure a { height: 100px; }
 .paper-links { column-gap: 15px; }
}
@media (max-width: 360px) {
 .page { padding-left: 18px; padding-right: 18px; }
 .portrait { width: 86px; height: 120px; margin-left: 16px; }
 .profile h1 { font-size: 27px; }
 .paper { grid-template-columns: 1fr; gap: 16px; }
 .paper-figure a { height: 120px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .paper-panel[hidden] { display: block !important; } .paper { break-inside: avoid; } .own-contributions, .correspondence-arrows { opacity: 0 !important; } .history-reference, .math-reference { opacity: 1 !important; } .contribution-label { opacity: 0 !important; } }
