:root {
  --bg: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.94);
  --text: #18181b;
  --muted: #52525b;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --border: #e4e4e7;
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.nav-name:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.about-page {
  min-height: calc(100vh - var(--nav-height) - 78px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 3.5rem;
  align-items: start;
}

.about-text h1,
.publications-page h1 {
  margin-bottom: 0.3rem;
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.affiliation {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1rem;
}

.bio {
  max-width: 650px;
  margin-bottom: 1.7rem;
  color: var(--text);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.contact-links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.about-photo img {
  display: block;
  width: 190px;
  height: 190px;
  object-fit: cover;
  border: 3px solid var(--border);
  border-radius: 50%;
}

.publications-page {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.publications-page h1 {
  margin-bottom: 2.2rem;
}

.pub-year-group {
  margin-bottom: 2.1rem;
}

.pub-year-group:last-child {
  margin-bottom: 0;
}

.year-label {
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-entry {
  margin-bottom: 0.1rem;
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 3px solid transparent;
  transition: border-color 0.15s;
}

.pub-entry:hover {
  border-left-color: var(--accent);
}

.pub-title {
  margin-bottom: 0.22rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.5;
}

.pub-title a {
  color: var(--text);
}

.pub-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.pub-authors {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pub-venue {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.pub-note {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-conf {
  color: #1d4ed8;
  background: #eff6ff;
}

.badge-journal {
  color: #15803d;
  background: #f0fdf4;
}

.badge-arxiv {
  color: #4b5563;
  background: #f3f4f6;
}

footer {
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .about-photo {
    order: -1;
  }

  .about-photo img {
    width: 138px;
    height: 138px;
  }

  .about-text h1,
  .publications-page h1 {
    font-size: 2.05rem;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 1.1rem;
  }

  .nav-name {
    display: none;
  }

  .nav-inner {
    justify-content: center;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .about-page {
    align-items: flex-start;
    min-height: auto;
    padding: 3rem 0;
  }

  .contact-links a {
    width: calc(50% - 0.375rem);
    justify-content: center;
  }
}
