:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #dde3ea;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #e6f4f1;
  --badge-blue: #2563eb;
  --blue-soft: #eef4fb;
  --chip: #eef6f5;
  --shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
  --shadow-soft: 0 8px 24px rgba(31, 41, 51, 0.06);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 260px),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 48px auto 60px;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 88px;
  padding: 30px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.avatar {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  object-fit: cover;
  background: #dfe8ee;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(31, 41, 51, 0.1);
}

.profile-panel h1 {
  margin: 20px 0 6px;
  font-size: 1.68rem;
  line-height: 1.15;
}

.role {
  margin: 0 0 20px;
  color: var(--accent-strong);
  font-weight: 700;
}

.profile-meta {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  text-align: left;
}

.profile-meta li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.profile-meta a {
  color: var(--muted);
}

.profile-meta a:hover {
  color: var(--accent-strong);
}

.profile-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.profile-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  color: var(--accent-strong);
}

.content {
  min-width: 0;
  max-width: 100%;
}

.section {
  padding: 0 0 34px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 1.46rem;
  line-height: 1.25;
}

.section p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.section p a {
  overflow-wrap: anywhere;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 2px 0;
}

time {
  color: var(--accent-strong);
  font-weight: 700;
}

.publication {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.publication:first-of-type {
  border-top: 1px solid var(--line);
}

.publication:hover {
  border-color: #bfd8d4;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.09);
  transform: translateY(-1px);
}

.pub-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 210px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pub-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pub-label {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--badge-blue);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.pub-body h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pub-body h3 a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pub-body h3 a:hover {
  color: var(--accent-strong);
}

.authors,
.venue {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.venue {
  margin-bottom: 0;
}

.footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 28px;
  }

  .profile-panel {
    position: static;
  }

  .publication {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }

  .pub-thumb {
    width: min(100%, 220px);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .page-shell,
  .nav,
  .footer {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .profile-panel {
    padding: 24px 18px;
    max-width: calc(100vw - 22px);
  }

  .content,
  .section {
    width: 100%;
    max-width: calc(100vw - 22px);
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pub-thumb,
  .pub-body {
    grid-column: auto;
  }

  .pub-thumb {
    width: 100%;
    max-width: 320px;
  }
}
