*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #525252;
  --border: #e0e0e0;
  --title-blue: #224b8d;
  --radius: 4px;
}

body {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--title-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ── */
.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.site-nav .nav-title {
  font-weight: bold;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav .nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-nav .nav-links a:hover {
  color: var(--title-blue);
  text-decoration: none;
}

/* ── Layout ── */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 100px;
}

/* ── Hero ── */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 130px;
  height: 160px;
  border-radius: 4px;
  background: #dde8f5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 6px;
}

.hero-text .affiliation {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

.hero-text .affiliation a {
  color: var(--title-blue);
}

.hero-text .bio {
  font-size: 0.88rem;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 560px;
}

/* ── Social links ── */
.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f0f0f0;
  color: #333;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background .15s;
}

.social-links a:hover {
  background: #ddd;
  text-decoration: none;
}

.social-links a svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.social-links a.disabled {
  opacity: .4;
  pointer-events: none;
}

/* ── Sections ── */
section {
  margin-bottom: 52px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--title-blue);
}

/* ── Research Interests ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #eef3fb;
  color: var(--title-blue);
  font-size: 0.82rem;
}

/* ── Publications ── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:first-child {
  border-top: 1px solid var(--border);
}

.pub-thumb {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 2px;
  background: #f0f4f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.75rem;
  text-align: center;
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-body {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: var(--title-blue);
  margin-bottom: 5px;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.pub-venue {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 10px;
}

.pub-highlight {
  display: inline;
  margin-left: 4px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

/* ── Publication link badges ── */
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pub-links a {
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  transition: opacity .15s;
}

.pub-links a:hover {
  opacity: .75;
  text-decoration: none;
}

.pub-links .link-project {
  background: #eef3fb;
  color: var(--title-blue);
}

.pub-links .link-arxiv {
  background: #f5f0ff;
  color: #5a3ea1;
}

.pub-links .link-paper {
  background: #e8e8e8;
  color: #333;
}

.pub-links .link-code {
  background: #e8e8e8;
  color: #333;
}

.pub-links .link-video {
  background: #e8e8e8;
  color: #333;
}


/* ── Projects ── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.project-item:first-child {
  border-top: 1px solid var(--border);
}

.project-thumb {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 2px;
  background: #f0f4f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.75rem;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  flex: 1;
}

.project-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: var(--title-blue);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 0.83rem;
  color: #444;
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.project-tag {
  font-size: 0.73rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eef3fb;
  color: var(--title-blue);
}

.project-links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.project-links a {
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 20px;
  background: #e8e8e8;
  color: #333;
  text-decoration: none;
}

.project-links .link-project {
  background: #eef3fb;
  color: var(--title-blue);
}

.project-links .link-arxiv {
  background: #f5f0ff;
  color: #5a3ea1;
}

.project-links a:hover {
  opacity: .75;
  text-decoration: none;
}

/* ── TBU placeholder ── */
.tbu {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Footer ── */
footer {
  margin-top: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page {
    padding: 32px 18px 80px;
  }

  .hero {
    flex-direction: column;
    gap: 20px;
  }

  .avatar {
    width: 100px;
    height: 120px;
  }

  .pub-item,
  .project-item {
    flex-direction: column;
  }

  .pub-thumb,
  .project-thumb {
    width: 100%;
    height: 140px;
  }

  .site-nav {
    padding: 0 18px;
  }
}