:root {
  --accent: #224b8d;
  --accent-dark: #1a386a;
  --accent-soft: #e9edf4;
  --attention: #d40000;
  --badge-bg: #00369f;
  --text: #494e52;
  --heading: #313131;
  --muted: #7a8288;
  --line: #f2f3f3;
  --line-strong: #bdc1c4;
  --surface: #ffffff;
  --surface-soft: #f8f9f9;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.125);
  --image-shadow: 3px 3px 6px #888;
  --container: 1290px;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Trebuchet MS", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

a:hover,
a:focus {
  color: var(--accent-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.navbar {
  width: 100%;
  max-width: 100%;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--heading);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: var(--heading);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}

.nav-links a {
  position: relative;
  display: block;
  margin: 0 0.62rem;
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #5c6266;
}

.nav-links a:hover::before,
.nav-links a:focus::before {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
}

.site-layout {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: minmax(220px, 293px) minmax(0, 1fr);
  column-gap: 30px;
  align-items: start;
}

.profile-column {
  position: sticky;
  top: 100px;
  min-width: 0;
}

.profile-card {
  padding: 2rem 0 1rem;
  text-align: left;
}

.avatar {
  width: min(180px, 72vw);
  aspect-ratio: 1;
  display: block;
  margin: 0 0 0.9rem;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
  background: #fff;
}

.profile-card h1 {
  margin: 0 0 0.28rem;
  color: var(--heading);
  font-family: inherit;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
}

.name-cn {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.profile-role {
  margin: 0 0 1rem;
  color: var(--heading);
  line-height: 1.42;
}

.profile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.profile-links li {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.35;
}

.profile-links i {
  width: 1.15rem;
  padding-top: 0.15rem;
  color: #000;
  text-align: center;
}

.profile-links a {
  color: inherit;
  text-decoration: none;
}

.profile-links a:hover,
.profile-links a:focus {
  color: var(--accent);
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-column {
  min-width: 0;
  padding-top: 30px;
}

.content-column p,
.content-column li,
.content-column h3 {
  overflow-wrap: anywhere;
}

.section {
  padding: 1.6rem 0 1.85rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 1.1rem);
}

.about-section {
  padding-top: 0.8rem;
}

.section-heading {
  margin-bottom: 0.8rem;
}

h2 {
  margin: 0 0 0.78rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-heading h2 {
  margin-bottom: 0.45rem;
}

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

.citation-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
}

.citation-overview .metric-link {
  vertical-align: middle;
}

.citation-stats {
  color: var(--muted);
  font-size: 0.92rem;
}

.about-copy {
  max-width: 950px;
  font-size: 1rem;
}

.about-copy p {
  margin: 0 0 0.62rem;
}

.notice-line {
  color: var(--attention);
  font-weight: 700;
}

.quick-facts {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quick-facts strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--heading);
  font-size: 0.96rem;
}

.quick-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.about-copy p:last-child,
.focus-item p:last-child,
.publication p:last-child,
.timeline-item p:last-child,
.skill-groups p:last-child {
  margin-bottom: 0;
}

.news-list {
  margin: 0;
  padding-left: 1.35rem;
}

.news-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.1rem;
}

.news-list time {
  color: var(--heading);
  font-style: italic;
  font-weight: 700;
}

.news-list time::after {
  content: ": ";
}

.publication-fields {
  display: grid;
  gap: 1.1rem;
}

.publication-field {
  display: grid;
  gap: 0.55rem;
}

.publication-field + .publication-field {
  padding-top: 0.7rem;
}

.publication-field-heading {
  margin: 0.35rem 0 0;
  color: var(--heading);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.publication-list {
  display: grid;
}

.publication {
  display: grid;
  grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.45rem 0;
  border-bottom: 1px solid #efefef;
}

.publication:last-child {
  border-bottom: none;
}

.pub-figure {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
  color: inherit;
  text-decoration: none;
}

.pub-figure:hover,
.pub-figure:focus {
  text-decoration: none;
}

.pub-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--image-shadow);
  object-fit: contain;
}

.pub-figure:hover img,
.pub-figure:focus img {
  border-color: var(--line-strong);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.pub-body {
  min-width: 0;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pub-figure > .badge {
  position: absolute;
  top: 0.5rem;
  left: -0.5rem;
  z-index: 1;
  box-shadow: var(--shadow);
}

.badge-primary,
.badge-conference {
  color: #fff;
  background: var(--badge-bg);
}

.badge-report {
  color: #fff;
  background: var(--badge-bg);
}

.badge-role {
  color: #475061;
  background: #eef0f4;
}

.badge-ccf {
  color: #8a5400;
  background: #fff2d9;
}

.badge-period {
  color: #526070;
  background: #f3f5f8;
}

.publication h3,
.timeline-item h3,
.skill-groups h3 {
  margin: 0 0 0.32rem;
  color: var(--heading);
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
}

.publication h3 a {
  color: var(--accent);
  text-decoration: underline;
}

.publication h3 a::after {
  content: " 🔗";
  color: #9ba1a6;
  font-size: 0.86em;
  font-weight: 400;
  text-decoration: none;
}

.publication h3 a:hover,
.publication h3 a:focus {
  color: var(--accent-dark);
}

.authors {
  margin: 0 0 0.3rem;
  color: var(--text);
  font-size: 0.96rem;
}

.pub-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
}

.metric-link {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: inherit;
  text-decoration: none;
}

.metric-link:hover,
.metric-link:focus {
  text-decoration: none;
}

.metric-link img {
  display: block;
  height: 20px;
  max-width: 100%;
}

.pub-summary {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.pub-summary li {
  position: relative;
  margin: 0 0 0.18rem;
  padding-left: 0.95rem;
  line-height: 1.42;
}

.pub-summary li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.15rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--accent);
}

.pub-summary li:last-child {
  margin-bottom: 0;
}

.pub-summary strong {
  color: var(--accent-dark);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.pub-links a {
  color: var(--accent);
  font-size: 0.93rem;
  text-decoration: underline;
}

.pub-links a::before {
  content: "[";
  color: var(--muted);
  text-decoration: none;
}

.pub-links a::after {
  content: "]";
  color: var(--muted);
  text-decoration: none;
}

.full-list-link {
  margin: 0.55rem 0 0;
}

.additional-publications {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.additional-publications h3 {
  margin: 0 0 0.55rem;
  color: var(--heading);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.additional-publications ul {
  margin: 0;
  padding-left: 1.25rem;
}

.additional-publications li {
  margin-bottom: 0.55rem;
}

.additional-publications a {
  color: var(--accent);
  font-weight: 700;
}

.additional-publications span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

.focus-list {
  display: block;
}

.focus-item {
  margin-bottom: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.focus-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.focus-item h3 {
  margin: 0 0 0.15rem;
  color: var(--heading);
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 700;
}

.focus-subtitle {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-style: normal;
}

.focus-item p {
  margin: 0 0 0.45rem;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 11.2rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-date {
  color: var(--heading);
  font-style: italic;
}

.timeline-item p {
  margin: 0;
}

.skill-groups {
  display: grid;
  gap: 0.85rem;
}

.skill-groups > div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.skill-groups > div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.skill-groups p {
  margin: 0;
}

.visitor-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1.28fr);
  gap: 1.2rem;
  align-items: start;
}

.visitor-location {
  min-width: 0;
}

.visitor-location h3 {
  margin: 0 0 0.35rem;
  color: var(--heading);
  font-family: inherit;
  font-size: 1rem;
}

.visitor-location p {
  margin: 0 0 0.45rem;
}

.visitor-note {
  color: var(--muted) !important;
  font-size: 0.91rem;
}

.visitor-map {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.visitor-map:hover,
.visitor-map:focus {
  text-decoration: none;
}

.visitor-map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

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

.site-footer p {
  margin: 0;
}

.attention-highlight {
  color: var(--attention);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .site-layout {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    column-gap: 2.4rem;
  }

  .publication {
    grid-template-columns: minmax(230px, 40%) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0.45rem 1rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.25rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 40px;
    margin: 0;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
  }

  .nav-links a::before {
    display: none;
  }

  .site-layout {
    max-width: 100%;
    padding: 2rem 1rem 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-column {
    position: static;
  }

  .profile-card {
    padding: 0 0 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .avatar {
    width: 150px;
  }

  .profile-links {
    max-width: 560px;
  }

  .content-column {
    padding-top: 0;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .pub-body {
    order: 1;
  }

  .pub-figure {
    order: 2;
    max-width: 360px;
  }

  .visitor-panel {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (max-width: 620px) {
  html {
    font-size: 14.5px;
  }

  .section {
    padding: 1.35rem 0 1.55rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .quick-facts {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .news-list,
  .additional-publications ul {
    padding-left: 1.05rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .badge {
    font-size: 0.72rem;
  }

  .pub-figure > .badge {
    top: 0.45rem;
    left: -0.35rem;
    max-width: calc(100% - 0.2rem);
    white-space: normal;
  }

  .pub-links {
    gap: 0.28rem 0.55rem;
  }
}
