/* Simple academic typography, based on the user's preferred reference. */
:root {
  --header-height: 61px;
  --bg: #fff;
  --surface: #fff;
  --text: #494e52;
  --muted: #656b70;
  --line: #e5e7e9;
  --border: #c9ced2;
  --soft: #f5f6f7;
  --link: #365b7b;
  --publication-accent: #ff6c0c;
  --venue-fill: #ff6c0c;
  --venue-text: #fff;
  --paper-ink: #111;
  /* Research-topic palette from the English and Chinese CVs. */
  --topic-ai4or: #7b2cbf;
  --topic-data-mining: #0000ff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1d1f21;
  --surface: #1d1f21;
  --text: #d9dcdf;
  --muted: #b2b7bc;
  --line: #393d41;
  --border: #60666c;
  --soft: #292d31;
  --link: #adcae3;
  --publication-accent: #ff9a55;
  --venue-fill: #ff6c0c;
  --venue-text: #fff;
  --paper-ink: #f1f1f1;
  --topic-ai4or: #cdabeb;
  --topic-data-mining: #a8b8ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Trebuchet MS", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { opacity: .6; cursor: default; }
a, button, input, select, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
strong { font-weight: 700; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--text); }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; top: -60px; left: 16px; padding: 8px; background: var(--bg); z-index: 30; }
.skip-link:focus { top: 8px; }
.site-header { height: 61px; position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; padding: 0 28px; margin: auto; height: 100%; display: flex; align-items: center; gap: 36px; }
.wordmark { font-size: 17px; font-weight: 700; color: var(--text); white-space: nowrap; }
nav { display: flex; gap: 28px; align-items: center; margin-left: auto; height: 100%; }
nav a { color: var(--muted); font-size: 14px; white-space: nowrap; }
nav a.active { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 17px; font-size: 14px; }
.theme-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 6px; }
.theme-toggle:hover { background: var(--soft); }
.sun { display: none; }
[data-theme="dark"] .sun { display: block; }
[data-theme="dark"] .moon { display: none; }
.layout { max-width: 1200px; margin: auto; padding: 37px 28px 0; display: grid; grid-template-columns: 222px minmax(0,1fr); gap: 53px; }
main, .sidebar { min-width: 0; }
.profile { padding-bottom: 16px; }
.portrait-frame { width: 164px; height: 164px; margin-bottom: 18px; }
.portrait-frame img { width: 164px; height: 164px; border-radius: 50%; object-fit: cover; object-position: 50% 45%; }
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 9px; }
h1 span { font-size: 21px; font-weight: 400; margin-left: 6px; }
.role { font-size: 15px; margin-bottom: 14px; }
.location { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.location svg { width: 15px; height: 15px; }
.social-links { display: grid; gap: 9px; }
.social-links a { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.google-scholar-icon { width: 17px; height: 17px; flex-shrink: 0; object-fit: contain; }
.social-links a > span:last-child { display: none; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 17px; height: 17px; border-radius: 1px; background: var(--text); color: var(--bg); line-height: 1; }
.researchgate-icon { font-family: Georgia, serif; font-size: 12px; }
.researchgate-icon sup { font-size: 6px; align-self: flex-start; margin-top: 3px; }
.linkedin-icon { font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; }
.orcid-icon { display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 700; }
.garden { position: sticky; top: calc(var(--header-height) + 24px); margin-top: 18px; max-width: 222px; text-align: center; }
#sunflower-stage { height: 245px; width: 100%; touch-action: pan-y; cursor: grab; }
#sunflower-stage:active { cursor: grabbing; }
#sunflower-stage canvas { display: block; width: 100%; height: 100%; }
#garden-fallback { padding-top: 30px; font-size: 13px; }
#garden-fallback > span { font-size: 100px; }
.garden-controls { position: absolute; inset: 0; pointer-events: none; }
#water-button { position: absolute; width: 44px; height: 44px; padding: 0; transform: translate(-50%,-50%); background: transparent; border: 0; border-radius: 50%; pointer-events: auto; cursor: pointer; }
#water-button:disabled { cursor: default; }
.garden-stats {
  /* Official Radix Colors: Sand 2/11/6 and Brown 3/12.
     https://github.com/radix-ui/colors/blob/main/src/light.ts */
  --garden-label-bg: #f9f9f8;
  --garden-label-text: #63635e;
  --garden-badge-border: #dad9d6;
  --garden-value-bg: #f6eee7;
  --garden-value-text: #3e332e;
  display: grid; justify-items: center; gap: 7px; margin: 2px auto 0; padding-bottom: 8px;
}
[data-theme="dark"] .garden-stats {
  /* Matching official dark scales: Sand 3/11/6 and Brown 4/12. */
  --garden-label-bg: #222221;
  --garden-label-text: #b5b3ad;
  --garden-badge-border: #3b3a37;
  --garden-value-bg: #322922;
  --garden-value-text: #f2e1ca;
}
.garden-badge { display: inline-flex; min-width: 128px; overflow: hidden; border: 1px solid var(--garden-badge-border); border-radius: 5px; font: 11px/1.5 Arial, Helvetica, sans-serif; color: var(--garden-label-text); background: var(--garden-label-bg); white-space: nowrap; }
.badge-label { display: inline-flex; flex: 1; align-items: center; gap: 5px; padding: 3px 8px; }
.badge-label svg { width: 12px; height: 12px; stroke-width: 1.6; }
.badge-value { min-width: 32px; padding: 3px 8px; border-left: 1px solid var(--garden-badge-border); background: var(--garden-value-bg); color: var(--garden-value-text); text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.section { scroll-margin-top: 14px; }
.intro-heading, .section-heading h2 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0; }
.intro-heading { padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.bio p { font-size: 15px; line-height: 1.65; margin-bottom: 15px; text-wrap: pretty; }
.bio a { text-decoration: underline; text-underline-offset: 2px; }
.research-interests h3 { font-size: 17px; margin-bottom: 9px; }
[data-area="ai4or"] { --topic-color: var(--topic-ai4or); }
[data-area="data-mining"] { --topic-color: var(--topic-data-mining); }
.research-direction { color: var(--topic-color); }
.research-interest-group { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 8px 16px; margin-top: 12px; }
.research-interest-group h4 { font-size: 13px; line-height: 1.5; margin: 2px 0 0; color: var(--topic-color); }
.research-interests .interest-tags { display: flex; flex-wrap: wrap; gap: 7px 6px; list-style: none; margin: 0; padding: 0; }
.research-interests .interest-tags li { margin: 0; padding: 0; }
.interest-tags .topic-tag { display: inline-block; }
.news-section { margin-top: 30px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-heading .text-link { font-size: 13px; }
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 83px minmax(0,1fr); gap: 16px; align-items: baseline; }
.news-item time { font-size: 13px; color: var(--muted); }
.news-item p { font-size: 15px; line-height: 1.6; margin: 0; }
.news-item a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.news-item a:hover { color: var(--link); text-decoration-color: currentColor; }
.news-celebration { white-space: nowrap; font-size: .9em; }
.news-closed { color: var(--muted); }
.news-status { font-weight: 700; }
.older-news { margin-top: 18px; font-size: 13px; }
.older-news summary { color: var(--muted); cursor: pointer; }
.older-news .news-list { margin-top: 14px; }
.publications-section { margin-top: 32px; }
.publications-heading { align-items: flex-start; padding-bottom: 14px; margin-bottom: 16px; }
.publications-heading > .text-link { padding-top: 5px; white-space: nowrap; }
.publication-heading-copy { min-width: 0; }
.publication-controls { display: grid; gap: 12px; margin-bottom: 20px; }
.publication-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.publication-tabs { display: flex; align-items: stretch; gap: 24px; }
.publication-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-size: 14px; color: var(--muted); padding: 5px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.publication-tabs button.selected { color: var(--publication-accent); font-weight: 700; border-bottom-color: currentColor; }
.publication-tabs button span { font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.search-box { display: flex; align-items: center; gap: 8px; width: 240px; min-width: 0; height: 36px; border: 1px solid var(--border); border-radius: 3px; padding: 0 10px; }
.search-box svg { width: 15px; height: 15px; color: var(--muted); }
.search-box input { font-size: 13px; border: 0; background: none; width: 100%; min-width: 0; padding: 0; }
.search-box:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.search-box input:focus { outline: 0; }
.publication-meta { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.filter-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 20px; max-width: 500px; }
.filter-controls label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filter-controls select { flex: 1; width: 0; min-width: 0; height: 36px; font-size: 13px; padding: 0 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 3px; }
#paper-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
#paper-list > .paper-year:first-child { margin-top: 0; }
.paper-year { font-size: 17px; font-weight: 700; padding-bottom: 7px; margin: 22px 0 0; border-bottom: 1px solid var(--line); }
.paper { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 24px; padding: 23px 0; border-bottom: 1px solid var(--line); font-family: Arial, Helvetica, sans-serif; color: var(--paper-ink); }
.paper:last-child { border-bottom: 0; }
.paper-venue { padding-top: 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.venue-badge { font-size: 13px; font-weight: 700; padding: 1px 9px; border: 1px solid var(--border); border-radius: 5px; line-height: 1.4; max-width: 100%; min-width: 64px; text-align: center; }
.paper[data-status="published"] .venue-badge { color: var(--venue-text); background: var(--venue-fill); border-color: var(--venue-fill); }
.presentation-badge, .award-badge { font-size: 13px; font-weight: 700; line-height: 1.4; padding: 1px 9px; border: 1px solid var(--publication-accent); border-radius: 4px; color: var(--publication-accent); max-width: 100%; min-width: 53px; text-align: center; }
.award-badge { font-size: 11px; padding: 1px 5px; }
.paper-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 3px; max-width: 100%; }
.rank-tag { font-size: 9px; font-weight: 700; white-space: nowrap; line-height: 1.3; padding: 0 2px; color: #4285f4; border: 1px solid #4285f4; background: transparent; }
.citation-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.scholar-mark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.scholar-mark img { display: block; width: 14px; height: 14px; object-fit: contain; }
.review-badge { font-size: 12px; color: var(--muted); }
.paper h3 { font-size: 17px; line-height: 1.45; margin: 0 0 6px; font-weight: 500; color: var(--paper-ink); }
.paper h3 a { color: inherit; }
.paper-authors { font-size: 14px; line-height: 1.65; margin: 0 0 5px; }
.paper-authors strong { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.paper-authors sup { font-size: 10px; }
.paper-outlet { font-size: 14px; line-height: 1.6; font-style: italic; color: var(--paper-ink); margin: 0 0 8px; }
.paper-topics { display: flex; flex-wrap: wrap; gap: 5px; }
.topic-tag { color: var(--topic-color, var(--muted)); border: 1px solid currentColor; background: transparent; border-radius: 2px; font-size: 11px; line-height: 1.5; padding: 2px 6px; }
button.topic-tag:hover { text-decoration: underline; text-underline-offset: 2px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.paper-links button, .paper-links a { font-size: 12px; line-height: 1.5; color: var(--paper-ink); padding: 3px 6px; border: 1px solid var(--paper-ink); border-radius: 2px; }
.paper-links button:hover, .paper-links a:hover { background: var(--soft); text-decoration: none; }
.paper-summary { font-size: 14px; line-height: 1.6; border-left: 2px solid var(--border); padding: 3px 0 3px 15px; margin-top: 16px; }
.paper-summary p { margin-bottom: 8px; }
.paper-summary a { font-size: 13px; }
.empty-results { padding: 28px 0; color: var(--muted); font-size: 14px; }
.empty-results button { color: var(--link); text-decoration: underline; padding: 0; }
.show-all { display: block; font-size: 14px; margin: 16px 0 0; padding: 6px 0; color: var(--link); }
.show-all:hover { text-decoration: underline; }
.author-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 7px 0 0; }
.author-legend span { white-space: nowrap; }
.experience-section, .service-section { margin-top: 34px; }
.experience-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.small-heading { font-size: 16px; font-weight: 700; margin: 2px 0 18px; }
.timeline article { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.timeline article:first-child { padding-top: 0; }
.timeline article:last-child { border-bottom: 0; }
.institution-logos { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 3px; }
.institution-mark { display: flex; align-items: center; justify-content: center; width: 68px; height: 74px; padding: 4px; background: #fff; border-radius: 3px; }
.institution-mark img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.joint-institutions .institution-mark { width: 52px; height: 52px; padding: 3px; }
/* Display the standalone blue marks from the official composite assets. */
.institution-mark .gbu-logo { object-fit: cover; object-position: left center; }
.institution-mark .ustc-logo { object-fit: cover; object-position: left center; }
.timeline time { font-size: 12px; color: var(--muted); }
.timeline h4 { font-size: 15px; line-height: 1.5; margin: 3px 0; }
.timeline p { font-size: 14px; margin: 0; }
.timeline small { display: block; font-size: 13px; color: var(--muted); }
.mentor-role { font-weight: 700; }
.service-row { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 16px; padding: 9px 0; }
.service-row h3 { font-size: 14px; margin: 0; font-weight: 700; }
.service-row p { font-size: 14px; line-height: 1.7; margin: 0; }
.reviewing-details p + p { margin-top: 8px; }
.muted { color: var(--muted); }
.student-groups h4 { font-size: 14px; margin: 0 0 4px; }
.student-list { list-style: none; padding: 0; margin: 0 0 14px; }
.student-list:last-child { margin-bottom: 0; }
.student-record summary { cursor: pointer; padding: 4px 0; font-size: 14px; }
.student-record summary::marker { color: var(--muted); font-size: 11px; }
.student-info { margin: 3px 0 12px 15px; padding-left: 12px; border-left: 1px solid var(--line); }
.student-name { font-weight: 700; color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.student-name:hover { color: var(--link); text-decoration-color: currentColor; }
.student-info .student-details { margin-top: 3px; color: var(--muted); }
.contact-section { margin: 34px 0 55px; }
.contact-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.contact-method { display: inline-flex; align-items: center; gap: 9px; margin: 0; min-width: 0; color: var(--text); }
.contact-method span { overflow-wrap: anywhere; }
.contact-icon { width: 20px; height: 20px; }
.wechat-icon { stroke-width: 1.4; }
dialog { width: min(630px,calc(100% - 32px)); padding: 24px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; }
dialog::backdrop { background: #0008; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dialog-top h2 { font-size: 21px; margin: 0; }
.dialog-top button { font-size: 27px; width: 35px; height: 35px; padding: 0; }
dialog pre { font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 55vh; overflow: auto; padding: 14px; border: 1px solid var(--line); }
.primary-button { font-size: 14px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 3px; }
#copy-status { font-size: 13px; margin: 8px 0 0; }
@media (max-width: 1000px) {
  :root { --header-height: 91px; }
  .layout { grid-template-columns: 195px minmax(0,1fr); gap: 33px; }
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; padding-top: 11px; padding-bottom: 11px; gap: 9px 16px; }
  .header-actions { margin-left: auto; }
  nav { order: 3; width: 100%; height: auto; margin: 0; flex-wrap: wrap; gap: 6px 23px; }
  nav a { min-height: 28px; display: inline-flex; align-items: center; }
  .filter-controls { gap: 10px; }
  .publication-meta { gap: 12px; }
  .paper { grid-template-columns: 80px minmax(0,1fr); gap: 17px; }
}
@media (max-width: 760px) {
  :root { --header-height: 159px; }
  .header-inner { padding-left: 20px; padding-right: 20px; }
  nav a { font-size: 13px; }
  .layout { grid-template-columns: 1fr; gap: 26px; padding: 25px 20px 0; }
  .profile { padding-left: 123px; padding-bottom: 14px; position: relative; }
  .portrait-frame { position: absolute; left: 0; top: 0; width: 102px; height: 102px; }
  .portrait-frame img { width: 102px; height: 102px; }
  h1 { font-size: 23px; }
  h1 span { font-size: 18px; }
  .role { font-size: 13px; margin-bottom: 9px; }
  .location { font-size: 12px; margin-bottom: 8px; }
  .social-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 21px 0 0 -123px; }
  .social-links a { font-size: 13px; gap: 6px; }
  .social-links svg { width: 15px; height: 15px; }
  .social-links .google-scholar-icon { width: 15px; height: 15px; }
  .garden { position: relative; top: auto; width: 148px; margin: 5px 0 0; }
  #sunflower-stage { height: 165px; }
  .intro-heading, .section-heading h2 { font-size: 21px; }
  .bio p { font-size: 15px; }
  .research-interest-group { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; }
  .news-item { grid-template-columns: 69px minmax(0,1fr); gap: 10px; }
  .news-item time { font-size: 12px; }
  .news-item p { font-size: 14px; }
  .section-heading { gap: 10px; }
  .section-heading .text-link { font-size: 12px; white-space: nowrap; }
  .publications-heading { position: relative; }
  .publication-heading-copy { width: 100%; }
  .publications-heading > .text-link { position: absolute; right: 0; top: 0; }
  .publication-heading-copy h2 { padding-right: 130px; }
  .author-legend { gap: 4px 14px; font-size: 11px; }
  .publication-toolbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .publication-tabs { gap: 20px; }
  .publication-tabs button { font-size: 13px; }
  .search-box { width: 100%; height: 40px; }
  .search-box input { font-size: 13px; }
  .publication-meta { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .filter-controls { width: 100%; max-width: none; gap: 12px; }
  .filter-controls label { display: grid; font-size: 12px; gap: 4px; }
  .filter-controls select { width: 100%; font-size: 12px; height: 40px; }
  #paper-count { justify-self: end; font-size: 12px; }
  .paper { grid-template-columns: 70px minmax(0,1fr); gap: 13px; padding: 22px 0; }
  .venue-badge { font-size: 11px; padding: 1px 5px; min-width: 59px; }
  .presentation-badge, .award-badge, .review-badge { font-size: 11px; }
  .presentation-badge, .award-badge { padding: 1px 5px; }
  .paper h3 { font-size: 16px; line-height: 1.5; }
  .paper-authors, .paper-outlet { font-size: 13px; }
  .topic-tag { font-size: 11px; }
  .paper-links { gap: 6px; }
  .paper-links a, .paper-links button { min-height: 30px; display: inline-flex; align-items: center; font-size: 12px; padding: 3px 7px; }
  .paper-summary { font-size: 13px; padding-left: 12px; }
  .experience-columns { grid-template-columns: 1fr; gap: 16px; }
  .timeline article { grid-template-columns: 58px minmax(0,1fr); gap: 13px; }
  .institution-mark { width: 58px; height: 68px; }
  .service-row { grid-template-columns: 68px minmax(0,1fr); gap: 10px; }
  .service-row h3, .service-row p { font-size: 13px; }
  .student-groups h4, .student-record summary { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* A static deployment may defer counters until its service is configured. */
.garden-stats[hidden] { display: none; }
