:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #1f2933;
  --muted: #66727f;
  --line: #dce3eb;
  --accent: #1d6f8f;
  --accent-strong: #134b63;
  --accent-soft: #e8f5f8;
  --link: #1f5faa;
  --shadow: 0 18px 48px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 260px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a:hover {
  text-decoration: underline;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon,
.nav-icon,
.link-icon,
.section-icon,
.card-icon,
.inline-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-icon,
.link-icon,
.inline-icon {
  width: 15px;
  height: 15px;
}

.section-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.card-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--accent);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-button,
.theme-select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

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

.theme-select {
  padding: 0 8px;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 28px 72px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 86px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-panel:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.avatar {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  padding: 6px;
  object-fit: contain;
  object-position: center top;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.profile-panel h1 {
  margin: 0 0 4px;
  padding-left: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 750;
  text-align: center;
}

.name-cn,
.position,
.institution,
.location {
  margin: 0;
}

.name-cn,
.institution,
.location {
  color: var(--muted);
}

.name-cn {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
}

.position {
  max-width: 230px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.institution {
  max-width: 230px;
  margin: 2px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.location {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 22px;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
}

.profile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-top: 14px;
  padding-left: 22px;
}

.profile-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.profile-link::before {
  content: none;
}

.profile-link:hover {
  color: var(--link);
  text-decoration: underline;
  transform: none;
}

.profile-link .link-icon,
.location .link-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  stroke-width: 2;
}

.content-column {
  min-width: 0;
}

.summary {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.76;
}

.biography-section .summary p {
  text-align: justify;
  text-justify: inter-ideograph;
}

.summary p,
.content-section p {
  margin: 0 0 13px;
  color: var(--muted);
}

.content-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.recruiting-note {
  margin: 4px 0 28px;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 650;
}

.recruiting-note p {
  margin: 0;
}

.content-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 25px;
  line-height: 1.3;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.topic-list,
.news-list,
.compact-list,
.publication-list,
.timeline-list {
  margin: 0;
  padding-left: 22px;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-left: 0;
}

.topic-list li,
.compact-list li,
.publication-list li {
  margin-bottom: 10px;
}

.topic-list strong {
  display: block;
  color: var(--text);
}

.topic-list span,
.news-list span {
  color: var(--muted);
}

.research-module,
.publication-group,
.news-group {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.research-module {
  min-height: 100%;
  padding: 16px 18px;
}

.research-module:hover,
.publication-group:hover,
.news-group:hover,
.project-item:hover,
.app-item:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 18px 40px rgba(31, 41, 51, 0.11);
  transform: translateY(-3px);
}

.module-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  transition: background-color 160ms ease, color 160ms ease;
}

.module-summary:hover {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-soft) 70%, var(--surface-soft)));
}

.publication-group .module-summary,
.news-group .module-summary {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.module-summary::-webkit-details-marker {
  display: none;
}

.module-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.module-title h3,
.module-title strong {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.module-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease, color 180ms ease;
}

.module-summary:hover .module-icon,
.card-heading:hover .card-icon {
  color: var(--accent-strong);
  transform: scale(1.08) rotate(-3deg);
}

.toggle-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

details[open] > .module-summary .toggle-mark {
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.module-description {
  padding: 0;
  margin: 0 0 12px;
}

html[lang="zh-CN"] .research-module .module-description,
html[lang="zh-CN"] .research-module .module-points li {
  text-align: justify;
  text-justify: inter-ideograph;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 0 12px;
}

.keyword-row span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.module-points {
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--muted);
}

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

.news-year-list {
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
}

.news-year-list li {
  display: grid;
  grid-template-columns: 92px 24px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0 0;
  border-top: 1px dashed var(--line);
}

.news-year-list li + li {
  margin-top: 4px;
}

.news-date {
  color: var(--accent);
  font-weight: 750;
}

.news-bullhorn {
  line-height: 1.7;
}

.publication-groups {
  display: grid;
  gap: 14px;
}

.publication-group h3 {
  margin: 0;
  font-size: 18px;
}

.group-meta {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.publication-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
  list-style: none;
  counter-reset: publication;
}

.publication-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  counter-increment: publication;
}

.publication-item::before {
  content: counter(publication);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.publication-body {
  color: var(--muted);
}

.self-author {
  color: var(--text);
  font-weight: 800;
}

.publication-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 2px;
  color: var(--text);
}

.pub-tag {
  color: var(--accent);
  font-weight: 800;
}

.publication-list strong {
  font-weight: 700;
}

.pub-links {
  display: inline-flex;
  gap: 8px;
}

.text-link::before,
.card-link::before {
  content: "[";
}

.text-link::after,
.card-link::after {
  content: "]";
}

.project-list,
.app-grid {
  display: grid;
  gap: 12px;
}

.project-compact-list {
  padding-left: 22px;
}

.project-compact-list li {
  margin-bottom: 10px;
}

.project-compact-list strong {
  color: var(--text);
}

.project-compact-list span {
  color: var(--muted);
}

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

.project-item,
.app-item {
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-item h3,
.app-item h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(2px);
}

.project-item p,
.app-item p {
  margin-bottom: 8px;
}

.timeline-list {
  list-style: none;
  padding-left: 0;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}

.timeline-time {
  color: var(--accent);
  font-weight: 750;
  white-space: nowrap;
}

.timeline-list strong {
  display: block;
}

.timeline-list p {
  margin: 3px 0 0;
}

.contact-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0;
}

.contact-list dt {
  font-weight: 750;
}

.contact-list dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 14px;
}

.footer-inner span {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 20px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .toolbar {
    justify-content: space-between;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 20px 54px;
  }

  .profile-panel {
    position: static;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}

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

  .profile-links {
    padding-left: 0;
    align-items: center;
  }

  .news-list li,
  .timeline-list li,
  .contact-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .news-bullhorn {
    display: none;
  }

  .publication-group .module-summary,
  .news-group .module-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .group-meta {
    display: none;
  }

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

  .publication-item::before {
    display: none;
  }

  .contact-list dd {
    margin-bottom: 8px;
  }
}

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

  .profile-panel:hover,
  .research-module:hover,
  .publication-group:hover,
  .news-group:hover,
  .project-item:hover,
  .app-item:hover,
  .profile-link:hover,
  .card-link:hover {
    transform: none;
  }
}
