:root {
  --bg: #ffffff; --fg: #0f172a; --muted: #64748b;
  --brand: #0ea5e9; --brand-strong: #0284c7;
  --card: #f8fafc; --card-hover: #f1f5f9; --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.1), 0 12px 32px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --fg: #e5e7eb; --muted: #94a3b8;
    --brand: #38bdf8; --brand-strong: #0ea5e9;
    --card: #0f172a; --card-hover: #1e293b; --border: #1f2937;
    --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
    --shadow-hover: 0 4px 12px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.7; font-size: 16px;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; padding: 14px 32px; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.brand a { color: var(--fg); text-decoration: none; }
.nav-links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-links a, .nav-links button {
  background: none; border: none; cursor: pointer;
  color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 7px;
  font: inherit; font-size: 14px; font-weight: 500; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links button:hover { color: var(--fg); background: var(--card); }
.nav-links a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding: 48px 0 0; }
.hero-text .kicker { font-size: 12px; letter-spacing: .7px; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 14px; }
.hero h1, .research-interest-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -1.5px; margin: 0 0 16px; line-height: 1.1; }
.hero-desc { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--fg); }
.btn-ghost:hover { background: var(--card); transform: translateY(-1px); }
.hero-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid var(--border); box-shadow: var(--shadow); transition: box-shadow .2s; }
.hero-photo img:hover { box-shadow: var(--shadow-hover); }
.home-section { padding: 0; }
.section-label { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -.8px; margin: 4px 0 0; }
.see-all { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: border-color .15s; }
.see-all:hover { border-bottom-color: var(--brand); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-grid, .home-teach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.research-card .card-tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.research-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.3px; }
.research-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }
.cv-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cv-desc { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.7; }
.cv-card:hover { transform: none; }
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.pub-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.pub-title { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--fg); text-decoration: none; display: block; }
.pub-title:hover { color: var(--brand); }
.conf-title { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--fg); display: block; }
.conf-venue { font-style: italic; }
.pub-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pub-authors { font-size: 13px; color: var(--muted); width: 100%; margin-bottom: 2px; }
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.badge-venue { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-strong); }
.badge-year { background: var(--border); color: var(--muted); }
.badge-cite { background: color-mix(in srgb, #f59e0b 12%, transparent); color: #b45309; }
.badge-oral { background: color-mix(in srgb, #10b981 12%, transparent); color: #047857; }
.badge-invited { background: color-mix(in srgb, #f59e0b 15%, transparent); color: #b45309; }
.badge-poster { background: color-mix(in srgb, #8b5cf6 12%, transparent); color: #6d28d9; }
.badge-location { background: var(--border); color: var(--muted); }
.badge-upcoming { background: color-mix(in srgb, #f43f5e 12%, transparent); color: #be123c; }
@media (prefers-color-scheme: dark) {
  .badge-venue { color: var(--brand); }
  .badge-cite, .badge-invited { color: #fbbf24; }
  .badge-oral { color: #34d399; }
  .badge-poster { color: #a78bfa; }
  .badge-upcoming { color: #fb7185; }
}
.teach-block { margin-top: 48px; }
.teach-sub { font-size: clamp(18px, 2.5vw, 22px); font-weight: 700; letter-spacing: -.5px; margin: 0 0 20px; }
.section-header { padding: 56px 0 0; }
.kicker { font-size: 12px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
h1.page-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -1px; margin: 0 0 10px; }
.section-desc { color: var(--muted); font-size: 15px; margin: 0 0 8px; line-height: 1.7; }
footer { margin-top: 80px; padding: 28px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 28px; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 110px; height: 110px; }
  .card-grid, .home-teach-grid { grid-template-columns: 1fr; }
  .cv-card { flex-direction: column; align-items: flex-start; }
}

.research-card { display: flex; flex-direction: column; }
.research-card p { flex: 1; margin: 0; }
.res-paper-link {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
  transition: color .15s;
}
.res-paper-link:hover { color: var(--brand); }

.research-interest-title { margin-top: 28px; }

.brand { display: flex; align-items: center; gap: 2px; }
.brand-social { color: var(--muted); display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 5px; transition: color .15s, background .15s; }
.brand-social:hover { color: var(--fg); background: var(--card); }

.hero-text p:last-of-type { margin-bottom: 0; }
