:root {
  --bg: #eef2f0;
  --bg-subtle: #e4eae7;
  --card: #ffffff;
  --ink: #1e1e2e;
  --ink-2: #4a4a5e;
  --ink-3: #8b8ba0;
  --border: #d8dae5;

  /* accents — teal & green family */
  --blue: #0d9488;
  --blue-light: #dff3f0;
  --purple: #0f766e;
  --purple-light: #d8efe9;
  --teal: #14b8a6;
  --teal-light: #e0f7f2;
  --orange: #16a34a;
  --orange-light: #e6f6ec;
  --rose: #0ea5a5;
  --rose-light: #e0f5f4;
  --green: #65a30d;
  --green-light: #eef6df;

  --shadow-sm: 0 1px 3px rgba(30,30,46,0.04), 0 1px 2px rgba(30,30,46,0.06);
  --shadow-md: 0 4px 14px rgba(30,30,46,0.07);
  --shadow-lg: 0 10px 36px rgba(30,30,46,0.10);
  --radius: 12px;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }
a { color: var(--blue); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--purple); }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 640px) { .container { padding: 0 1rem; } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(238,240,245,0.75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-name {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em;
}

.nav-links { list-style: none; display: flex; gap: 0.3rem; }

.nav-links a {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-2);
  padding: 0.35rem 0.75rem; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { background: var(--card); color: var(--blue); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 24px; height: 18px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  position: absolute; left: 0; transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(238,240,245,0.97); backdrop-filter: blur(20px);
    padding: 0.8rem 1.2rem; gap: 0.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ── HERO ── */
.hero-wrap {
  padding-top: 5.5rem; padding-bottom: 1rem;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  display: grid; grid-template-columns: 190px 1fr; gap: 2.5rem;
  align-items: start;
  position: relative; overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--teal), var(--orange));
}

.hero-portrait {
  width: 180px; height: 220px; border-radius: 10px;
  overflow: hidden; background: var(--bg);
  border: 1px solid var(--border);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; color: var(--ink-3); font-size: 0.72rem;
}

.hero-info h1 {
  font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 0.25rem;
}

.hero-info .affil {
  font-size: 1rem; color: var(--ink-2); margin-bottom: 1rem;
}
.hero-info .affil a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.hero-info .affil a:hover { color: var(--blue); text-decoration-color: var(--blue); }

.hero-info .bio {
  font-size: 0.92rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 1.4rem;
}
.hero-info .bio strong { color: var(--ink); font-weight: 600; }

.pills { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.76rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--ink-2); transition: all 0.2s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.pill svg { width: 13px; height: 13px; flex-shrink: 0; }

@media (max-width: 700px) {
  .hero-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.8rem; }
  .hero-portrait { width: 140px; height: 170px; justify-self: center; }
  .hero-info h1 { font-size: 2rem; }
}

/* ── SECTION ── */
.sec { padding: 1.5rem 0; }

.sec-head {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem;
}

.sec-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

.sec-head h2 {
  font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700;
}

.sec-head .sec-line {
  flex: 1; height: 1px; background: var(--border);
}

/* ── NEWS ── */
.news-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.2rem 1.5rem;
}

.news-row {
  display: flex; gap: 1rem; padding: 0.5rem 0.4rem;
  border-radius: 6px; transition: background 0.15s;
}
.news-row:hover { background: var(--bg); }
.news-row + .news-row { border-top: 1px solid var(--bg-subtle); }

.news-date {
  font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--ink-3); min-width: 78px; padding-top: 2px;
}
.news-body { font-size: 0.9rem; color: var(--ink-2); }
.news-body strong { color: var(--ink); font-weight: 600; }

/* ═══════ PUBLICATIONS ═══════ */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }

.pub-entry {
  display: grid; grid-template-columns: 210px 1fr; gap: 1.4rem;
  background: var(--card); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
}

.pub-entry:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pub-entry:nth-child(1) { border-left-color: var(--blue); }
.pub-entry:nth-child(2) { border-left-color: var(--purple); }
.pub-entry:nth-child(3) { border-left-color: var(--teal); }
.pub-entry:nth-child(4) { border-left-color: var(--orange); }

.pub-thumb {
  width: 100%; height: 135px; border-radius: 8px;
  overflow: hidden; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.pub-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.pub-thumb .thumb-ph {
  color: var(--ink-3); font-size: 0.68rem; text-align: center; padding: 0.5rem;
}
.pub-thumb .thumb-ph svg { display: block; margin: 0 auto 0.25rem; opacity: 0.2; }

.pub-info { display: flex; flex-direction: column; justify-content: center; }

.pub-title-text {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 0.25rem;
}
.pub-title-text a { color: var(--ink); }
.pub-title-text a:hover { color: var(--blue); }

.pub-authors { font-size: 0.83rem; color: var(--ink-2); margin-bottom: 0.1rem; line-height: 1.5; }
.pub-authors .me {
  font-weight: 700; color: var(--ink);
  background: linear-gradient(to top, var(--blue-light) 45%, transparent 45%);
  padding: 0 2px;
}

.pub-venue { font-size: 0.85rem; font-style: italic; font-weight: 600; color: var(--purple); margin-bottom: 0.5rem; }

.pub-venue .award {
  font-style: normal; font-weight: 700; font-size: 0.72rem;
  color: #b45309; background: #fef3c7;
  padding: 0.12rem 0.5rem; border-radius: 100px;
  margin-left: 0.4rem; display: inline-block;
}

.pub-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.pub-badge {
  font-size: 0.7rem; font-family: var(--font-mono); font-weight: 500;
  padding: 0.2rem 0.55rem; border-radius: 6px;
  color: var(--blue); background: var(--blue-light);
  border: 1px solid transparent; transition: all 0.2s;
}
.pub-badge:hover { background: var(--blue); color: #fff; }

.pub-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.55rem; }
.pub-tag {
  font-size: 0.74rem; font-family: var(--font-mono); font-weight: 500;
  color: var(--teal); cursor: default;
}
.pub-tag::before { content: '#'; opacity: 0.6; }
.pub-tag:hover { color: var(--purple); }

.pub-abstract { margin-top: 0.55rem; }
.pub-abstract summary {
  font-size: 0.76rem; font-family: var(--font-mono); font-weight: 500;
  color: var(--ink-3); cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  user-select: none; transition: color 0.2s;
}
.pub-abstract summary::-webkit-details-marker { display: none; }
.pub-abstract summary::before { content: '▸'; font-size: 0.7rem; transition: transform 0.2s; }
.pub-abstract[open] summary::before { transform: rotate(90deg); }
.pub-abstract summary:hover { color: var(--teal); }
.pub-abstract p {
  font-size: 0.83rem; color: var(--ink-2); line-height: 1.65;
  margin-top: 0.5rem; padding: 0.7rem 0.9rem;
  background: var(--bg); border-radius: 8px;
  border-left: 3px solid var(--teal);
}

@media (max-width: 640px) {
  .pub-entry { grid-template-columns: 1fr; gap: 0.8rem; }
  .pub-thumb { height: 150px; }
}

/* ═══════ EXPERIENCE ═══════ */
.exp-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}

.exp-item {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem;
  align-items: start; padding: 1.1rem 1.5rem;
  transition: background 0.15s;
}
.exp-item:hover { background: var(--bg); }
.exp-item + .exp-item { border-top: 1px solid var(--bg-subtle); }

.exp-logo {
  width: 44px; height: 44px; border-radius: 10px; object-fit: contain;
  background: var(--teal-light); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
  color: var(--purple);
}
img.exp-logo { background: #fff; padding: 3px; }

.exp-main { min-width: 0; }
.exp-org-name {
  font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; color: var(--ink);
  line-height: 1.25;
}
.exp-org-name a { color: inherit; text-decoration: none; }
.exp-org-name a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.exp-role {
  font-size: 0.85rem; font-style: italic; font-weight: 600;
  color: var(--teal); margin-top: 1px;
}
.exp-note { font-size: 0.83rem; color: var(--ink-2); margin-top: 0.35rem; line-height: 1.55; }
.exp-note::before { content: '✦'; color: var(--teal); margin-right: 0.4rem; }

.exp-when { text-align: right; white-space: nowrap; padding-top: 2px; }
.exp-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); }
.exp-loc { font-size: 0.74rem; color: var(--ink-3); margin-top: 3px; }

@media (max-width: 600px) {
  .exp-item { grid-template-columns: 40px 1fr; gap: 0.8rem; }
  .exp-when { grid-column: 2 / 3; text-align: left; margin-top: 0.4rem; padding-top: 0; }
  .exp-loc { margin-top: 1px; }
}

/* ── FOOTER ── */
footer {
  margin-top: 2rem; padding: 2rem 0;
}

.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.78rem; color: var(--ink-3);
}
.footer-inner a { color: var(--ink-3); }
.footer-inner a:hover { color: var(--blue); }
.footer-links { display: flex; gap: 1.2rem; }

/* ── ANIM ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-card { animation: rise 0.6s ease both; }
.sec { animation: rise 0.5s ease both; }

/* ── RESEARCH KEYWORDS (plain bulleted list) ── */
.kw-list-plain { margin: 0; padding-left: 1.3rem; }
.kw-list-plain li {
  font-size: 0.9rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 0.4rem;
}
.kw-list-plain li::marker { color: var(--teal); }
.kw-list-plain strong { color: var(--ink); font-weight: 700; }

/* ── RESEARCH SECTION ── */
.research-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.5rem 1.75rem;
}
.research-text {
  font-size: 0.92rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 1.4rem;
}
.research-text strong { color: var(--ink); font-weight: 700; }
.research-interests {
  font-size: 0.9rem; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 1.4rem; padding: 0.7rem 0.9rem;
  background: var(--teal-light); border-radius: 8px;
  border-left: 3px solid var(--teal);
}
.research-interests strong { color: var(--purple); font-weight: 700; }
.research-interests em { color: var(--ink); font-style: italic; }
.ri-title { font-weight: 700; color: var(--purple); margin-bottom: 0.5rem; font-size: 0.92rem; }
.ri-list { margin: 0; padding-left: 1.2rem; }
.ri-list li { font-size: 0.88rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 0.35rem; }
.ri-list li:last-child { margin-bottom: 0; }
.ri-list li::marker { color: var(--teal); }
.kw-title {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.9rem;
}
@media (max-width: 600px) {
  .research-card { padding: 1.3rem 1.3rem; }
}

/* ── SEEKING / CALLOUT ── */
.seeking {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: var(--teal-light);
  border: 1px solid var(--teal); border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.3rem;
  font-size: 0.86rem; color: var(--ink-2); line-height: 1.6;
}
.seeking svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); margin-top: 3px; }
.seeking strong { color: var(--purple); font-weight: 700; }
.seeking a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }

.name-zh {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 0.3rem;
  letter-spacing: 0.02em;
}
