:root {
  --bg: #f7f7f5;
  --bg-soft: #eeeeeb;
  --panel: #ffffff;
  --panel-soft: #fafaf8;
  --line: #deded8;
  --line-soft: rgba(222, 222, 216, 0.62);
  --text: #111111;
  --body: #3f3f46;
  --muted: #71717a;
  --primary: #18181b;
  --primary-soft: rgba(24, 24, 27, 0.06);
  --shadow: 0 18px 45px rgba(24, 24, 27, 0.07);
  --title-font: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #fbfbfa 0%, var(--bg) 42%, #f1f1ee 100%);
  color: var(--body);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
.section-title,
.nav-name {
  font-family: var(--title-font);
}

.top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  background: rgba(250, 250, 249, 0.82);
  border-bottom: 1px solid rgba(222, 222, 216, 0.48);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.top-nav.is-scrolled {
  background: rgba(250, 250, 249, 0.92);
  border-bottom-color: rgba(24, 24, 27, 0.08);
  box-shadow: 0 10px 30px rgba(24, 24, 27, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-name {
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 64px;
  border-bottom: 2px solid transparent;
  color: #71717a;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-bottom-color: rgba(24, 24, 27, 0.42);
  color: #18181b;
}

.nav-links a:hover {
  transform: translateY(-1px);
}

main {
  padding-top: 64px;
}

.section {
  padding: 24px 0;
  scroll-margin-top: 80px;
}

.js-ready .section {
  opacity: 0;
  transform: translateY(12px);
}

.js-ready .section.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.section-first {
  padding-top: 38px;
}

.section-muted {
  background: transparent;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-card,
.simple-card,
.publication-card,
.research-item {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.about-card,
.simple-card,
.publication-card,
.research-list {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.about-card:hover,
.simple-card:hover,
.publication-card:hover,
.research-list:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 24, 27, 0.08);
  box-shadow: 0 22px 48px rgba(24, 24, 27, 0.1);
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  overflow: visible;
}

.profile-column {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  padding: 24px 32px 28px 24px;
  border-right: 0;
  background: rgba(244, 244, 241, 0.82);
  border-radius: 18px 0 0 18px;
}

.avatar {
  width: 224px;
  height: 224px;
  margin-bottom: 12px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 62%;
  box-shadow: 0 14px 30px rgba(24, 24, 27, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.avatar:hover {
  transform: scale(1.018) rotate(-0.6deg);
  box-shadow: 0 18px 38px rgba(24, 24, 27, 0.16);
  filter: saturate(1.04);
}

.profile-meta {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 260px;
  margin: 8px 0 24px;
  color: #4b5563;
  font-size: 14px;
  text-align: center;
}

.profile-meta p {
  margin: 0;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 26px;
  width: 100%;
  margin-top: 4px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #18181b;
  transition: color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.social-links svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.social-links a:hover {
  color: #000000;
  filter: drop-shadow(0 8px 12px rgba(24, 24, 27, 0.14));
  transform: translateY(-2px) scale(1.04);
}

.about-content a:hover,
.paper-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-content {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
}

.about-content h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.about-content p {
  margin: 12px 0 0;
}

.about-content p:not(.position),
.news-list li,
.education-list p,
.research-item p,
.publication-body p {
  font-size: 14px;
}

.about-content > * {
  width: min(100%, 980px);
  margin-right: auto;
  margin-left: auto;
}

.about-content .position {
  margin: 4px 0 0;
  color: var(--primary);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.about-content a {
  color: var(--primary);
  text-decoration-color: rgba(24, 24, 27, 0.28);
  text-decoration-thickness: 1px;
}

.interest-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.interest-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #f6f6f4;
  transition: background 160ms ease, transform 160ms ease;
}

.interest-item:hover {
  background: #f0f0ed;
  transform: translateX(2px);
}

.interest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.interest-item p {
  margin: 0;
  color: #27272a;
  font-size: 12px;
  font-weight: 650;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ececea;
  color: #3f3f46;
  font-size: 11px;
  font-weight: 600;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-title::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 24, 27, 0.16), transparent);
}

.simple-card {
  padding: 18px 20px;
}

.news-list,
.education-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  position: relative;
  padding-left: 16px;
  color: #27272a;
}

.news-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #18181b;
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.06);
}

.news-list span {
  display: inline-flex;
  min-width: 70px;
  color: var(--primary);
  font-weight: 800;
}

.education-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  transition: transform 160ms ease;
}

.education-list li:hover {
  transform: translateX(2px);
}

.education-list strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.education-list p {
  margin: 4px 0 0;
}

.education-list span {
  display: inline-flex;
  flex: 0 0 auto;
  color: #71717a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.research-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.research-item {
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: background 160ms ease, padding-left 160ms ease;
}

.research-item:hover {
  padding-left: 24px;
  background: #fafaf8;
}

.research-item + .research-item {
  border-top: 1px solid rgba(222, 222, 216, 0.7);
}

.research-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0;
}

.research-item p {
  margin: 6px 0 0;
}

.publication-note {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.publication-list {
  display: grid;
  gap: 16px;
}

.publication-card {
  display: flex;
  overflow: hidden;
  border: 0;
}

.publication-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 192px;
  padding: 10px;
  background: #f4f4f1;
  overflow: hidden;
}

.publication-image img {
  width: 176px;
  height: auto;
  max-height: 132px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.publication-card:hover .publication-image img {
  transform: scale(1.035);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.publication-body {
  flex: 1;
  min-width: 0;
  padding: 13px 15px 15px;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.publication-body h3 {
  display: inline;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0;
}

.publication-body p {
  margin: 8px 0 0;
  color: #3f3f46;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 4px 12px;
  border: 1px solid rgba(24, 24, 27, 0.16);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
  color: #18181b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.publication-card:hover .venue-badge {
  transform: translateY(-1px);
}

.badge-soft {
  border-color: rgba(63, 63, 70, 0.9);
  background: #3f3f46;
  box-shadow: 0 4px 12px rgba(63, 63, 70, 0.16);
  color: #f8f8f6;
}

.paper-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.paper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eeeeeb;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.035);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.paper-links a:hover {
  background: #e5e5e1;
  box-shadow: 0 4px 10px rgba(24, 24, 27, 0.06);
  transform: translateY(-1px);
}

.site-footer {
  padding: 24px;
  color: #71717a;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 760px) {
  .top-nav {
    height: auto;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 18px;
    height: auto;
    margin-top: 8px;
  }

  .nav-links a {
    height: auto;
    padding-bottom: 4px;
  }

  main {
    padding-top: 112px;
  }

  .section {
    scroll-margin-top: 120px;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .profile-column {
    border-right: 0;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    padding: 24px;
  }

  .avatar {
    grid-row: auto;
  }

  .about-content {
    padding: 22px;
  }

  .about-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .about-content .position {
    font-size: 14px;
  }

  .education-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-card {
    flex-direction: column;
  }

  .publication-image {
    flex-basis: auto;
  }

  .publication-image img {
    width: min(100%, 260px);
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js-ready .section {
    opacity: 1;
    transform: none;
  }
}
