@charset "utf-8";
/* Adapted from the cloned WD7ang/WowPage template (MIT).
   Foundation: assets/css/home.css, _sass/_sidebar.scss, _sass/_variables.scss.
   Nunito is self-hosted under the SIL Open Font License.
   Licenses: docs/licenses/. See docs/design-reference.md. */
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/nunito-latin.woff2") format("woff2");
}
:root {
    --ink: #494e52;
    --heading: #292d32;
    --muted: #69717b;
    --accent: #af525e;
    --welcome: #ca6f6f;
    --venue: #5c7897;
    --rule: #ececed;
    --panel: #f9f9fa;
    --body-font: "Nunito", "Arial Rounded MT Bold", "Comic Sans MS", sans-serif;
    --nav-height: 70px;
    --soft-shadow: 0 5px 18px rgba(35, 42, 52, .04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 600 16px/1.7 var(--body-font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; transition: color .18s ease; }
a:hover { text-decoration: underline; color: #a14e57; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, summary { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p { margin: 0 0 18px; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; font-weight: 800; }
h1 { font-size: 29px; font-weight: 900; letter-spacing: -.025em; color: var(--welcome); text-align: center; margin: 0 0 30px; }
h2 { font-size: 23px; letter-spacing: -.025em; margin: 0 0 24px; }
h3 { font-size: 17px; margin: 0 0 6px; }
strong { font-weight: 800; }
.site-icon { display: inline-block; width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
/* WowPage's quiet masthead, with one navigation order on all screens. */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--rule); }
.site-nav { max-width: 1280px; margin: auto; min-height: var(--nav-height); padding: 12px 16px; display: flex; align-items: center; gap: 30px; }
.site-brand { color: var(--ink); font-size: 17px; font-weight: 800; white-space: nowrap; }
.section-nav { display: flex; align-items: center; justify-content: flex-start; gap: 23px; }
.section-nav a { font-size: 16px; font-weight: 700; color: #727b83; white-space: nowrap; position: relative; padding: 5px 0; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--accent); text-decoration: none; }
.section-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--welcome); }
.nav-toggle { display: none; background: white; border: 1px solid var(--rule); border-radius: 8px; padding: 7px 12px; color: var(--ink); }
/* Keep the original avatar / author / social-link rhythm. */
.site-shell { display: grid; grid-template-columns: 212px minmax(0,1fr); gap: 52px; max-width: 1280px; padding: 44px 16px 0; margin: auto; align-items: start; }
.profile-sidebar { position: sticky; top: calc(var(--nav-height) + 32px); }
.profile-portrait { width: 175px; height: 175px; border-radius: 50%; object-fit: cover; padding: 5px; border: 1px solid var(--rule); margin-bottom: 23px; }
.profile-sidebar h2 { font-size: 24px; margin-bottom: 10px; }
.profile-affiliation { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.profile-status { font-size: 13.5px; font-weight: 600; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.profile-links { list-style: none; margin: 28px 0 0; padding: 0; font-size: 15px; font-weight: 800; }
.profile-links li { margin: 0 0 14px; min-height: 28px; }
.profile-links li, .profile-links a { display: flex; align-items: center; gap: 11px; }
.profile-links a { color: var(--ink); padding: 2px 0; }
.profile-links a:hover { color: var(--accent); text-decoration: none; }
.profile-links .site-icon { width: 21px; height: 21px; }
.icon-scholar { color: #65aff1; }
.icon-github { color: #24292f; }
.icon-cv { color: var(--welcome); }
.home-content { min-width: 0; }
.home-section { margin-bottom: 58px; scroll-margin-top: calc(var(--nav-height) + 24px); }
.home-section > h2 { padding-bottom: 13px; border-bottom: 1px solid var(--rule); }
.introduction p { line-height: 1.75; margin-bottom: 20px; }
.introduction .intro-phd-note { border-left: 3px solid #e6b5b9; border-radius: 0 10px 10px 0; background: #fcf8f9; padding: 14px 18px; font-size: 14px; line-height: 1.8; }
.intro-phd-note strong { color: var(--ink); }
.intro-phd-note span { color: var(--muted); font-size: 13px; }
.introduction { margin-bottom: 48px; }
.welcome-wave { display: inline-block; font-size: 32px; line-height: 1; vertical-align: -3px; margin: 0 3px; transform-origin: 75% 75%; animation: hello-wave 1.6s ease-in-out 2; }
@keyframes hello-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(16deg); } 65% { transform: rotate(-8deg); } }
/* Reuse the template's scroll box and date-first news layout. */
.news-box { max-height: 225px; overflow-y: auto; padding: 20px 24px; background: var(--panel); border: 1px solid #f0edef; border-radius: 16px; scrollbar-width: thin; scrollbar-color: #d4c3c5 transparent; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 16px; line-height: 1.7; margin-bottom: 17px; font-size: 14.5px; }
.news-list li:last-child { margin-bottom: 0; }
.news-list time { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.news-celebration { display: inline-block; margin-right: 2px; }
.subheading { margin: 25px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.education-list, .experience-container { display: flex; flex-direction: column; gap: 16px; }
/* These card dimensions and soft shadows come from WowPage home.css. */
.education-entry, .experience-card { display: flex; align-items: center; gap: 22px; background: var(--panel); border: 1px solid #f0eef0; border-radius: 16px; padding: 22px 24px; box-shadow: var(--soft-shadow); transition: box-shadow .22s ease; }
.education-entry:hover, .experience-card:hover { box-shadow: 0 8px 18px rgba(35,42,52,.075); }
.education-icon, .intern-logo-wrap { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.education-icon { background: #fff; padding: 4px; }
.education-icon img { width: 100%; height: 100%; object-fit: contain; }
.intern-logo-wrap { padding: 4px; background: white; overflow: hidden; }
.intern-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.intern-logo-zju { transform: scale(1.6); }
.experience-info { flex: 1; min-width: 0; }
.experience-info h3 { font-size: 17px; line-height: 1.45; font-weight: 800; margin-bottom: 5px; }
.organization-link { color: var(--ink); }
.experience-info p { color: var(--ink); font-size: 14px; line-height: 1.7; margin: 0; }
.experience-info .education-detail { color: var(--accent); font-weight: 700; margin-top: 3px; }
.experience-info time { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
/* Independent, compact project cards: content is not repeated elsewhere. */
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; border: 1px solid #e8e7e9; border-radius: 16px; padding: 24px; min-width: 0; background: #fff; box-shadow: var(--soft-shadow); transition: box-shadow .22s ease, border-color .22s ease; }
.project-card:hover { border-color: #ded5d6; box-shadow: 0 8px 20px rgba(35,42,52,.055); }
.project-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.project-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: #f4f1f2; color: var(--accent); border-radius: 9px; }
.project-icon .site-icon { width: 18px; height: 18px; }
.project-category { font-size: 11px; font-weight: 700; line-height: 1.5; color: var(--muted); margin: 0; }
.project-external { color: var(--muted); margin-left: auto; }
.project-external .site-icon { width: 18px; height: 18px; }
.project-card h3 { font-size: 16px; margin-bottom: 10px; }
.project-card h3 a { color: var(--heading); }
.project-card p:not(.project-category) { font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 18px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-stack span { font-size: 11px; font-weight: 700; line-height: 1.5; color: #616a75; background: #f4f5f6; border-radius: 6px; padding: 4px 9px; }
.project-card details { border-top: 1px solid var(--rule); padding-top: 13px; margin-top: 18px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.project-card summary { cursor: pointer; color: var(--accent); }
.project-card ul { padding-left: 17px; margin-bottom: 0; }
.project-card li { margin-bottom: 8px; }
.award-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.award-card { min-width: 0; border: 1px solid #ebe7e9; border-radius: 16px; padding: 22px 24px; background: #fff; box-shadow: var(--soft-shadow); }
.award-card--featured { grid-column: 1 / -1; background: #fcf7f8; border-color: #ecd9df; }
.award-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.award-emblem { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: #9a6e34; background: #faf3e7; }
.award-emblem .site-icon { width: 19px; height: 19px; }
.award-prize { font-size: 12px; font-weight: 800; line-height: 1.5; color: var(--accent); }
.award-card time { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.award-card h3 { color: var(--ink); font-size: 16px; line-height: 1.5; margin: 0; }
.award-card--featured h3 { font-size: 18px; }
.award-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin: 9px 0 0; }
.award-meta span + span { padding-left: 14px; border-left: 1px solid #ddd5d8; }
/* WowPage-style pill filters and 320px figure-first research cards. */
.publication-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.publication-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.publication-filter { border: 1px solid #e2e4e7; border-radius: 999px; background: #f5f5f5; color: var(--ink); padding: 9px 16px; font-size: 13px; line-height: 1.5; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.publication-filter:hover { background: #eee8e9; border-color: #dcc8cb; }
.publication-filter[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.publication-filter span { display: inline-block; font-size: 12px; line-height: 1.5; margin-left: 5px; opacity: .8; }
.publication-count { white-space: nowrap; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }
.publication-legend { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 22px; }
.publication-card { display: grid; grid-template-columns: 320px minmax(0,1fr); align-items: center; gap: 24px; padding: 18px; border: 1px solid #e5e5e8; border-radius: 16px; margin-bottom: 22px; background: white; box-shadow: var(--soft-shadow); transition: box-shadow .22s ease, border-color .22s ease; }
.publication-card:hover { box-shadow: 0 8px 20px rgba(35,42,52,.07); border-color: #d3d7dc; }
.publication-media { min-width: 0; background: #fff; border-radius: 6px; overflow: hidden; }
.publication-cover { width: 100%; height: 180px; object-fit: contain; }
.publication-body { min-width: 0; padding: 7px 5px 7px 0; }
.publication-body h3 { font-size: 17px; line-height: 1.5; color: var(--heading); margin-bottom: 9px; }
.publication-authors { font-size: 13px; line-height: 1.65; margin-bottom: 9px; color: #6b7280; }
.publication-authors a { color: inherit; }
.publication-authors strong { color: var(--welcome); font-weight: 700; }
.publication-authors mark { display: none; }
.publication-venue { font-size: 14px; font-weight: 800; line-height: 1.6; color: var(--venue); margin-bottom: 0; }
.badge-publication { display: inline-block; color: #72707b; border: 1px solid #e9dede; background: #fcf7f7; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 2px 8px; margin-left: 5px; vertical-align: 1px; }
.publication-summary { font-size: 14px; font-weight: 600; line-height: 1.75; color: #5f6368; margin: 0 0 11px; }
.publication-links { margin: 9px 0 0; font-size: 13px; font-weight: 800; line-height: 1.5; }
.publication-links a { display: inline-flex; align-items: center; min-height: 30px; border-bottom: 1px solid #dfb8be; }
.publication-links a:hover { text-decoration: none; border-color: var(--accent); }
#service { margin-top: 46px; padding-bottom: 38px; }
#service > p { font-size: 14px; }
.service-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 24px; }
.service-panel p { font-size: 14px; margin: 0; }
.service-venues { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.service-venues li { font-size: 13px; font-weight: 800; color: var(--ink); border: 1px solid #e5dfe2; border-radius: 8px; background: white; padding: 6px 12px; }
.not-found { grid-column: 1 / -1; text-align: center; padding: 60px 20px 100px; }
.site-footer { max-width: 1248px; border-top: 1px solid var(--rule); margin: 8px auto 0; padding: 23px 0 28px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 1120px) {
    .site-nav { gap: 22px; }
    .section-nav { gap: 16px; }
    .section-nav a { font-size: 15px; }
    .site-shell { gap: 35px; grid-template-columns: 185px minmax(0,1fr); }
    .publication-card { grid-template-columns: 260px minmax(0,1fr); gap: 18px; }
    .site-footer { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 1024px) {
    :root { --nav-height: 62px; }
    .nav-toggle { display: block; margin-left: auto; }
    .site-nav { position: relative; }
    .section-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 24px 20px; background: white; border-bottom: 1px solid var(--rule); box-shadow: 0 8px 16px rgba(35,42,52,.05); flex-wrap: wrap; gap: 15px 25px; }
    .section-nav.is-open { display: flex; }
    .section-nav a { font-size: 16px; }
    .publication-card { grid-template-columns: 220px minmax(0,1fr); }
    .project-grid { gap: 16px; }
    .project-card { padding: 18px; }
}
@media (max-width: 820px) {
    .site-shell { display: block; padding-top: 28px; }
    .profile-sidebar { position: static; display: grid; grid-template-columns: 105px minmax(0,1fr); column-gap: 23px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
    .profile-portrait { width: 105px; height: 105px; grid-row: 1 / 4; margin: 0; }
    .profile-sidebar h2 { font-size: 22px; margin-bottom: 3px; }
    .profile-affiliation { margin-bottom: 4px; }
    .profile-status { font-size: 13px; }
    .profile-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; font-size: 13px; }
    .profile-links li { margin: 0; }
    .profile-links .site-icon { width: 18px; height: 18px; }
    .profile-links li, .profile-links a { gap: 7px; }
    .home-section { margin-bottom: 44px; }
    .publication-card { grid-template-columns: 250px minmax(0,1fr); }
    .publication-cover { height: 170px; }
}
@media (max-width: 620px) {
    .publication-card { grid-template-columns: minmax(0,1fr); padding: 14px; gap: 12px; }
    .publication-cover { height: auto; aspect-ratio: 16 / 9; }
    .publication-body { padding: 0; }
    .publication-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
    .publication-count { font-size: 11px; }
    .publication-filter { padding: 8px 12px; font-size: 12px; }
    .project-grid { grid-template-columns: minmax(0,1fr); }
    .award-grid { grid-template-columns: minmax(0,1fr); }
    .award-card { padding: 20px; }
    .award-card--featured { grid-column: auto; }
}
@media (max-width: 540px) {
    body { font-size: 14px; }
    .site-shell, .site-nav { padding-left: 20px; padding-right: 20px; }
    .site-brand { font-size: 16px; }
    h1 { font-size: 24px; margin-bottom: 25px; }
    .welcome-wave { font-size: 28px; }
    h2 { font-size: 19px; }
    .profile-sidebar { grid-template-columns: 92px minmax(0,1fr); gap: 0 18px; }
    .profile-portrait { width: 92px; height: 92px; }
    .profile-sidebar h2 { font-size: 20px; }
    .profile-status { font-size: 12px; }
    .education-entry, .experience-card { gap: 14px; padding: 17px 15px; border-radius: 11px; }
    .education-icon, .intern-logo-wrap { width: 48px; height: 48px; flex-basis: 48px; }
    .experience-info h3 { font-size: 14px; }
    .experience-info p, .experience-info time { font-size: 13px; }
    .news-box { padding: 16px; }
    .news-list li { gap: 10px; grid-template-columns: 58px minmax(0,1fr); font-size: 13px; }
    .award-card-top { gap: 8px; }
    .award-prize { font-size: 11.5px; }
    .award-card h3, .award-card--featured h3 { font-size: 15px; }
    .publication-body h3 { font-size: 15px; }
    .publication-summary { font-size: 13px; }
    .site-footer { display: block; margin-left: 20px; margin-right: 20px; }
    .site-footer span { display: block; margin-bottom: 5px; }
    .service-panel { padding: 18px; gap: 12px; }
    .service-venues { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
    .service-venues li { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
