:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-strong: #eef3f4;
  --text: #1f2933;
  --muted: #5b6775;
  --light: #d9e0e6;
  --accent: #0f766e;
  --accent-strong: #0b5e57;
  --accent-warm: #b35c2e;
  --link: #1d4f91;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
  --topbar-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover,
a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid var(--light);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  position: absolute;
  left: 34px;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.quick-nav {
  display: flex;
  min-width: 0;
  max-width: min(900px, calc(100% - 220px));
  flex: 0 1 auto;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.quick-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.quick-nav a:hover,
.quick-nav a:focus-visible,
.quick-nav a.active {
  background: var(--surface-strong);
  color: var(--accent-strong);
  text-decoration: none;
}

.site-shell {
  display: grid;
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 50px;
  margin: 36px auto 72px;
}

.profile-sidebar {
  min-width: 0;
}

.profile-card {
  position: sticky;
  top: 88px;
  overflow: visible;
  padding: 22px 20px 20px;
  border: 1px solid var(--light);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-photo {
  display: block;
  width: 150px;
  height: 178px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #edf0f2;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface);
}

.profile-name-block,
.profile-title,
.profile-affiliation,
.profile-links,
.profile-meta {
  margin-right: 0;
  margin-left: 0;
}

.profile-name-block {
  margin-top: 16px;
}

.profile-name-block h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.cn-name {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.profile-title {
  margin-top: 16px;
  margin-bottom: 4px;
  font-weight: 720;
  line-height: 1.35;
}

.profile-affiliation {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--light);
}

.icon-link,
.text-button,
.filter-row button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
}

.icon-link {
  gap: 8px;
  padding: 8px 10px;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-links .icon-link {
  flex-direction: column;
  gap: 6px;
  min-height: 68px;
  padding: 10px 6px;
}

.icon-link img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.icon-link span {
  min-width: 0;
}

.icon-link:hover,
.text-button:hover,
.filter-row button:hover,
.filter-row button.active {
  border-color: rgba(15, 118, 110, 0.24);
  background: #edf7f5;
  color: var(--accent-strong);
  text-decoration: none;
}

.profile-meta {
  margin-top: 20px;
  text-align: left;
}

.profile-meta p {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-meta img {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.profile-meta strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content {
  min-width: 0;
}

.section-block {
  padding: 14px 0 58px;
  border-bottom: 1px solid var(--light);
}

.section-block:first-child {
  padding-top: 0;
}

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

h2 {
  margin: 0 0 20px;
  color: #121820;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: #16202b;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
}

.about-copy {
  max-width: 820px;
}

.about-copy p {
  color: #22303c;
  font-size: 16px;
  line-height: 1.65;
}

.publication-meta,
.project-category-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.text-button {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 0 14px;
  cursor: pointer;
}

.section-action .text-button {
  margin-top: 0;
}

.text-link {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.timeline-list,
.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li,
.simple-list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid #edf0f2;
}

.timeline-list li::before,
.simple-list li::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline-date {
  display: inline-block;
  min-width: 78px;
  color: var(--accent-warm);
  font-weight: 760;
}

.news-new {
  color: #dc143c;
  margin-right: 4px;
}

.timeline-list li.is-hidden {
  display: none;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-card,
.publication-item,
.project-card,
.contact-panel {
  border: 1px solid var(--light);
  border-radius: 8px;
  background: #fff;
}

.research-card {
  padding: 20px;
}

.research-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.project-category {
  margin-top: 28px;
}

.project-category:first-child {
  margin-top: 0;
}

.project-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.project-category-header h3 {
  font-size: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  overflow: hidden;
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.project-media video,
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 16px;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-venue {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 780;
}

.project-paper-link {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 720;
}

.project-body p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-start;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: var(--surface);
}

.filter-row button {
  padding: 0 12px;
  cursor: pointer;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.publication-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  align-items: start;
}

.publication-item.is-filtered-out {
  display: none;
}

.publication-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #edf0f2;
  border-radius: 6px;
  background: #fff;
}

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

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0 10px;
}

.publication-meta span {
  padding: 4px 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  background: #edf7f5;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.1;
}

.publication-authors {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.publication-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 720;
}

.two-column {
  columns: 2;
  column-gap: 34px;
}

.two-column li {
  break-inside: avoid;
}

.contact-panel {
  padding: 22px;
  background: var(--surface);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.contact-actions .icon-link {
  justify-content: flex-start;
  min-height: 44px;
  padding: 9px 14px;
}

.site-footer {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 22px;
  }

  .brand {
    position: static;
  }

  .quick-nav {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .site-shell {
    width: min(760px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .profile-card {
    position: static;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 0 22px;
    padding: 18px;
    text-align: left;
  }

  .profile-photo {
    grid-row: span 5;
    width: 138px;
    height: 164px;
    border-radius: 8px;
  }

  .profile-name-block,
  .profile-title,
  .profile-affiliation,
  .profile-links,
  .profile-meta {
    margin-right: 0;
    margin-left: 0;
  }

  .profile-name-block {
    margin-top: 0;
  }

  .profile-links {
    grid-template-columns: repeat(3, minmax(0, 92px));
    padding-top: 14px;
  }

}

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

  html {
    scroll-padding-top: 112px;
  }

  .topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-shell,
  .site-footer {
    width: min(100% - 24px, 680px);
  }

  h2 {
    font-size: 25px;
  }

  .profile-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0 16px;
    padding: 14px;
  }

  .profile-photo {
    width: 110px;
    height: 132px;
  }

  .profile-name-block h1 {
    font-size: 24px;
  }

  .profile-meta {
    grid-column: 1 / -1;
  }

  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .text-button,
  .text-link {
    margin-top: -8px;
    margin-bottom: 16px;
  }

  .research-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-category-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .publication-item {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 16px;
  }

  .publication-item h3 {
    font-size: 16px;
  }

  .two-column {
    columns: 1;
  }
}

@media (max-width: 460px) {
  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 132px;
    height: 158px;
    max-width: 54%;
    grid-row: auto;
    margin-bottom: 14px;
  }

  .profile-meta {
    grid-column: auto;
  }

  .profile-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .publication-item {
    grid-template-columns: 1fr;
  }

  .publication-thumb {
    width: min(260px, 100%);
  }
}
