:root {
--ink: #172033;
--muted: #667085;
--line: #d7deea;
--paper: #fffdf8;
--wash: #f6f0ff;
--blue: #2563eb;
--cyan: #00a6a6;
--rose: #e11d48;
--amber: #d97706;
--green: #16a34a;
--shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
color: var(--ink);
background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.14), transparent 26rem),
    radial-gradient(circle at 84% 10%, rgba(225, 29, 72, 0.13), transparent 23rem),
    linear-gradient(135deg, #fffdf8 0%, #f8fbff 43%, #fff7ed 100%);
font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
line-height: 1.6;
}

/* Conference name/year highlight in news */
.conf-highlight {
    color: #c62828;
    font-weight: 600;
}

/* First author highlight in news */
.first-author-highlight {
    color: #c62828;
    font-weight: 600;
}


a {
color: var(--blue);
text-decoration: none;
text-underline-offset: 0.18em;
}

a:hover,
a:focus {
text-decoration: underline;
}

.page {
width: min(1080px, calc(100% - 32px));
margin: 0 auto;
}

.topbar {
position: sticky;
top: 0;
z-index: 5;
border-bottom: 1px solid rgba(215, 222, 234, 0.86);
background: rgba(255, 253, 248, 0.84);
backdrop-filter: blur(14px);
}

.nav {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 62px;
gap: 18px;
}

.brand {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--ink);
font-weight: 800;
letter-spacing: 0;
}

.brand-mark {
display: grid;
width: 34px;
height: 34px;
place-items: center;
border: 1px solid rgba(37, 99, 235, 0.22);
border-radius: 8px;
background: linear-gradient(135deg, #2563eb, #00a6a6 52%, #f59e0b);
color: white;
font-size: 0.88rem;
box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.nav-left {
display: flex;
align-items: center;
gap: 12px;
}

.top-socials {
display: flex;
align-items: center;
gap: 6px;
}

.top-socials a {
display: inline-grid;
width: 34px;
height: 34px;
place-items: center;
border-radius: 8px;
}

.top-socials a:hover,
.top-socials a:focus {
background: rgba(37, 99, 235, 0.08);
text-decoration: none;
}

.top-socials .social-icon {
flex-basis: 28px;
width: 28px;
height: 28px;
}

.top-socials .social-icon svg {
width: 17px;
height: 17px;
}

.nav-links {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 6px;
}

.nav-links a {
display: inline-flex;
align-items: center;
min-height: 34px;
border-radius: 8px;
padding: 0 10px;
color: #344054;
font-size: 0.93rem;
font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus {
background: rgba(37, 99, 235, 0.08);
text-decoration: none;
}

main {
padding: 46px 0 56px;
}

.hero {
display: grid;
grid-template-columns: minmax(0, 1fr) 190px;
align-items: center;
gap: 36px;
padding: 34px 0 22px;
}

.eyebrow {
display: inline-flex;
width: fit-content;
align-items: center;
gap: 8px;
border: 1px solid rgba(0, 166, 166, 0.24);
border-radius: 999px;
padding: 5px 11px;
background: rgba(0, 166, 166, 0.08);
color: #0f766e;
font-size: 0.83rem;
font-weight: 760;
}

h1 {
margin: 18px 0 24px; /* increased bottom margin to create more space before .role-line */
font-size: clamp(2.7rem, 8vw, 5.7rem);
line-height: 0.95;
letter-spacing: 0;
}

.chinese-name {
display: inline-block;
margin-left: 0.18em;
color: var(--ink);
font-family: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", serif;
font-size: 0.55em;
font-weight: 700;
letter-spacing: 0;
vertical-align: 0.08em;
}

.subtitle {
margin: 0;
color: #344054;
font-size: clamp(1.05rem, 2vw, 1.35rem);
font-weight: 620;
}

.role-line {
margin: 12px 0 0; /* slightly larger gap from the heading */
color: #475467;
font-size: 1rem;
font-weight: 650;
}

.intro {
max-width: 720px;
margin: 22px 0 0;
color: #475467;
font-size: 1.03rem;
}

.focus-highlight {
display: inline-flex;
align-items: center;
border: 1px solid rgba(37, 99, 235, 0.22);
border-radius: 999px;
padding: 0.05em 0.48em;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(0, 166, 166, 0.12));
color: var(--ink);
font-weight: 900;
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 24px;
}

.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
border: 1px solid rgba(37, 99, 235, 0.25);
border-radius: 8px;
padding: 0 15px;
background: #ffffff;
color: var(--ink);
font-weight: 760;
box-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
}

.button.primary {
border-color: transparent;
background: linear-gradient(135deg, var(--blue), #7c3aed 48%, var(--rose));
color: white;
}

.button:hover,
.button:focus {
transform: translateY(-1px);
text-decoration: none;
}

.portrait-card {
position: relative;
width: 190px;
}

.avatar {
display: block;
width: 190px;
height: 190px;
max-width: 100%;
border: 3px solid #ffffff;
border-radius: 50%;
object-fit: cover;
object-position: center 28%;
background: linear-gradient(135deg, #dbeafe, #fce7f3);
box-shadow: 0 10px 26px rgba(23, 32, 51, 0.14);
}

.caption {
margin: 12px 2px 0;
color: var(--muted);
font-size: 0.88rem;
}

.quick-facts {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin: 34px 0 14px;
}

.fact {
min-height: 96px;
border: 1px solid rgba(215, 222, 234, 0.88);
border-radius: 8px;
padding: 16px;
background: rgba(255, 255, 255, 0.64);
box-shadow: 0 12px 30px rgba(23, 32, 51, 0.07);
}

.fact strong {
display: block;
color: var(--ink);
font-size: 1.2rem;
}

.fact span {
display: block;
margin-top: 4px;
color: var(--muted);
font-size: 0.9rem;
}

section {
scroll-margin-top: 84px;
padding: 38px 0 6px;
}

.section-head {
display: flex;
align-items: end;
justify-content: space-between;
gap: 18px;
margin-bottom: 18px;
border-bottom: 2px solid var(--line);
}

h2 {
position: relative;
margin: 0;
padding-bottom: 10px;
font-size: clamp(1.55rem, 3vw, 2.1rem);
line-height: 1.1;
letter-spacing: 0;
}

.pub-list {
display: grid;
gap: 16px;
counter-reset: pubs;
}

.news-list,
.education-list {
display: grid;
gap: 12px;
}

.news-list {
    position: relative;
    padding-left: 34px; /* space for timeline */
}

.news-list::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(34, 62, 120, 0.06);
    border-radius: 2px;
}

.news-item,
.edu-item {
    border-radius: 8px;
    padding: 8px 0;
}

/* timeline dot */
.news-item {
    position: relative;
    background: transparent;
    box-shadow: none;
    padding: 10px 0;
}

.news-item::before {
    display: none; /* remove blue-white node */
}

.news-item h4 {
    margin: 0 0 4px 0;
}

/* News line: separate time and event styles */
.news-item .news-line {
    margin: 0;
    font-size: 0.98rem;
}

.news-time {
    color: var(--muted);
    font-weight: 700;
    margin-right: 6px;
}

.news-event {
    color: var(--ink);
    font-weight: 600;
}

.news-item h4,
.edu-item h4 {
margin: 0;
font-size: 1rem;
}

.news-meta {
margin-top: 6px;
color: var(--muted);
font-size: 0.92rem;
}

.publication {
display: grid;
grid-template-columns: 300px minmax(0, 1fr); /* wider poster column to enlarge poster */
gap: 18px;
align-items: stretch;
border: 1px solid rgba(215, 222, 234, 0.9);
border-left: 5px solid var(--blue);
border-radius: 8px;
padding: 18px;
background: rgba(255, 255, 255, 0.76);
box-shadow: 0 12px 30px rgba(23, 32, 51, 0.07);
}

.publication:nth-child(2) {
border-left-color: var(--rose);
}

.publication:nth-child(3) {
border-left-color: var(--cyan);
}

.pub-index {
display: grid;
width: 42px;
height: 42px;
place-items: center;
border-radius: 8px;
background: var(--wash);
color: #7c3aed;
font-weight: 850;
}

.poster-thumb {
    /* fill the publication card height while keeping 2:1 aspect ratio */
    height: calc(100% - 36px); /* publication padding (18px top+bottom) */
    width: auto; /* width is determined by aspect-ratio */
    aspect-ratio: 2 / 1; /* width = 2 * height */
    max-width: 100%; /* never overflow column */
    border-radius: 8px;
    background: linear-gradient(135deg, #e6eefc, #fff1f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.06);
    flex-shrink: 0;
    align-self: stretch; /* stretch to fill available grid row */
    position: relative;
    overflow: hidden;
    padding: 6px; /* small inner margin */
    box-sizing: border-box;
}

.poster-thumb svg {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
opacity: 0.95;
display: block;
}

/* poster image (PNG) inside thumbnail */
.poster-thumb .poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-tag {
position: absolute;
top: 8px;
left: 8px;
background: linear-gradient(135deg, #163b7a, #2563eb);
color: #ffffff;
font-size: 0.72rem;
padding: 5px 9px;
border-radius: 999px;
font-weight: 700;
box-shadow: 0 6px 16px rgba(22, 59, 122, 0.25);
letter-spacing: 0.02em;
}

.publication h3,
.repo-card h3 {
margin: 0;
font-size: 1.08rem;
line-height: 1.35;
}

.meta {
margin: 7px 0 0;
color: var(--muted);
font-size: 0.94rem;
}

.author-me {
display: inline-flex;
align-items: center;
border-radius: 999px;
padding: 1px 8px;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(225, 29, 72, 0.12));
color: var(--ink);
font-weight: 850;
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.tags,
.link-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}

.tag,
.mini-link {
display: inline-flex;
align-items: center;
min-height: 28px;
border-radius: 999px;
padding: 0 10px;
font-size: 0.82rem;
font-weight: 760;
}

.tag {
background: #ecfdf3;
color: #027a48;
}

.mini-link {
border: 1px solid rgba(37, 99, 235, 0.18);
background: #eff6ff;
}

.repo-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 14px;
}

.repo-card {
display: flex;
min-height: 206px;
flex-direction: column;
justify-content: space-between;
border: 1px solid rgba(215, 222, 234, 0.9);
border-radius: 8px;
padding: 18px;
background: rgba(255, 255, 255, 0.78);
box-shadow: 0 12px 30px rgba(23, 32, 51, 0.07);
}

.repo-card p {
margin: 10px 0;
color: #475467;
font-size: 0.94rem;
}

.repo-meta {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
color: var(--muted);
font-size: 0.86rem;
}

.language-dot {
display: inline-block;
width: 9px;
height: 9px;
margin-right: 6px;
border-radius: 999px;
background: var(--amber);
}

.socials {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}

.social-link {
display: flex;
align-items: center;
gap: 12px;
min-height: 88px;
border: 1px solid rgba(215, 222, 234, 0.88);
border-radius: 8px;
padding: 16px;
background: rgba(255, 255, 255, 0.72);
color: var(--ink);
box-shadow: 0 12px 30px rgba(23, 32, 51, 0.07);
}

.social-icon {
display: inline-grid;
flex: 0 0 42px;
width: 42px;
height: 42px;
place-items: center;
border-radius: 50%;
background: #eff6ff;
color: var(--blue);
}

.social-icon.github {
background: #f2f4f7;
color: #101828;
}

.social-icon.scholar {
background: #ffffff;
color: #4285f4;
}

.social-icon.email {
background: #fff1f2;
color: var(--rose);
}

.social-icon svg {
width: 22px;
height: 22px;
fill: currentColor;
}

.social-link strong {
display: block;
}

.social-text span {
display: block;
margin-top: 3px;
color: var(--muted);
font-size: 0.9rem;
}

.social-link:hover,
.social-link:focus {
border-color: rgba(37, 99, 235, 0.42);
transform: translateY(-1px);
text-decoration: none;
}

footer {
margin-top: 42px;
border-top: 1px solid var(--line);
padding: 24px 0 34px;
color: var(--muted);
font-size: 0.9rem;
}

.status {
color: var(--muted);
font-size: 0.94rem;
}

@media (max-width: 860px) {
.hero {
    grid-template-columns: 1fr;
}

.portrait-card {
    width: 180px;
}

.avatar {
    width: 180px;
    height: 180px;
}

.quick-facts,
.repo-grid,
.socials {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 620px) {
.page {
    width: min(100% - 22px, 1080px);
}

.nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
}

.nav-links {
    justify-content: flex-start;
}

.nav-left {
    width: 100%;
    justify-content: space-between;
}

main {
    padding-top: 22px;
}

.hero {
    gap: 24px;
    padding-top: 18px;
}

.quick-facts,
.repo-grid,
.socials {
    grid-template-columns: 1fr;
}

.publication {
    grid-template-columns: 1fr;
}

.publication .poster-thumb {
    width: 100%;
    max-height: none;
    aspect-ratio: 2 / 1;
}

}

.ppt li {
  position: relative;
  padding-left: 30px;
}

.ppt {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* 默认 icon */
.ppt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
}

/* level 1 → 实心圆 */
.ppt li[data-level="1"]::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink); /* solid black circle */
}

/* level 2 → 空心圆 */
.ppt li[data-level="2"]::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--ink); /* empty circle */
    box-sizing: border-box;
}

/* level 3 → 点 */
.ppt li[data-level="3"]::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
}

/* increase left padding per nesting level so items appear indented */
.ppt li[data-level="1"] { padding-left: 30px; }
.ppt li[data-level="2"] { padding-left: 54px; }
.ppt li[data-level="3"] { padding-left: 78px; }

/* position the node inside the indent area per level */
.ppt li[data-level="1"]::before { left: 8px; }
.ppt li[data-level="2"]::before { left: 32px; }
.ppt li[data-level="3"]::before { left: 56px; }

/* Typography: level 1 uses same font as .edu-item h4 */
.ppt li[data-level="1"] {
    font-size: 1rem;
    margin: 0;    
    border-radius: 8px;
}

/* level 2 uses same font/color as .news-meta */
.ppt li[data-level="2"] {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

