/* Locally hosted rounded body type with variable weight support. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-latin.ttf') format('truetype');
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-latin-italic.ttf') format('truetype');
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2122;
}

/* Locally hosted handwritten navigation. */
@font-face {
  font-family: 'Zeyu Navigation';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/kalam-navigation.ttf?v=2') format('truetype');
}

/* Locally hosted name lettering, subset to the characters used on this page. */
@font-face {
  font-family: 'Zeyu Handwritten';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/caveat-name.ttf') format('truetype');
  unicode-range: U+0020, U+0059-005A, U+0061, U+0065, U+006E, U+0075, U+0079;
}

@font-face {
  font-family: 'Zeyu Signature';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ma-shan-zheng-name.ttf') format('truetype');
  unicode-range: U+5B87, U+6CFD, U+95EB;
}

/* White background with cool text and blue-violet accents. */
:root {
  --content-width: 850px;
  --navigation-height: 56px;
  color-scheme: light;
  --page-rgb: 255, 255, 255;
  --page: rgb(var(--page-rgb));
  --surface: #ffffff;
  --surface-tint: #f5f5f5;
  --highlight: #f3f4fe;
  --highlight-strong: #e3e6fb;
  --text: #373c4a;
  --heading: #45498b;
  --muted: #6b7080;
  --accent-rgb: 79, 83, 153;
  --accent: rgb(var(--accent-rgb));
  --accent-hover: var(--heading);
  --accent-wash: rgba(var(--accent-rgb), 0.08);
  --border: #e2e5f0;
  --border-strong: #b7bce8;
  --success: #5d8570;
  --venue: var(--accent);
  --venue-surface: #f4f5f8;
  --venue-border: #dce0e9;
  --sans: 'Nunito', Verdana, sans-serif;
  --serif: Georgia, 'Palatino Linotype', 'Songti SC', SimSun, serif;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--sans);
  font-weight: inherit;
}

.site-navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--page);
}

.site-navigation-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: var(--content-width);
  min-height: var(--navigation-height);
  margin: 0 auto;
  padding: 8px 16px;
}

.site-navigation-inner a {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--text);
  font-family: 'Zeyu Navigation', var(--sans);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
  white-space: nowrap;
}

.site-navigation-inner .site-navigation-brand {
  flex-shrink: 0;
  justify-content: flex-start;
}

.site-navigation-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-left: auto;
}

.site-navigation-inner a:hover,
.site-navigation-inner a:focus-visible {
  color: var(--accent);
}

#about,
.navigation-target {
  scroll-margin-top: calc(var(--navigation-height) + 16px);
}

@media (max-width: 820px) {
  :root {
    --navigation-height: 96px;
  }

  .site-navigation-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .site-navigation-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 4px;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --navigation-height: 136px;
  }

  .site-navigation-inner {
    width: calc(100% - 24px);
  }

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

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.profile-divider {
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* Blend the logo's white canvas into the page without redrawing the emblem. */
.zju-logo {
  mix-blend-mode: multiply;
}

.profile-table p:not(.contact-links) a {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.profile-table p:not(.contact-links) a:hover {
  text-decoration-color: var(--accent);
}

#news-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  cursor: pointer;
}

#news-toggle:hover {
  color: var(--accent-hover);
}

.publication-note {
  width: 96%;
  margin: 1em auto;
}

.publication-venue {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid var(--venue-border);
  border-radius: 4px;
  background: var(--venue-surface);
  color: var(--venue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}


a {
  color: var(--accent);
  text-decoration: none;
}
b {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
c {
  color: var(--text);
  text-decoration: none;
}

a:focus,
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

a.a1 { color:var(--accent);}
a.a1:focus,
a.a1:hover { color:var(--accent-hover);
  text-decoration: none;}

.contact-links {
  text-align: left;
}

.contact-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  line-height: 1.8;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #000;
}

.contact-links a:hover,
.contact-links a:focus {
  color: #000;
}

.contact-links .email-link {
  gap: 6px;
  max-width: 100%;
}

.contact-links .email-link .contact-sub {
  display: inline-block;
  max-width: 230px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.82;
  letter-spacing: 0;
}

.contact-links .email-link:hover .contact-sub,
.contact-links .email-link:focus .contact-sub {
  color: var(--muted);
}

.contact-links .contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: -2px;
}

.contact-links .contact-icon--email {
  color: #5f6368;
}

.contact-links .contact-icon--scholar {
  color: #4285f4;
}

.contact-links .contact-icon--github {
  color: #181717;
}



body,
td,
th,
tr,
p,
a {
  font-family: var(--sans);
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

.page-section {
  scroll-margin-top: 24px;
}

.section-drip-nav {
  position: fixed;
  top: 50%;
  right: 377px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.section-drip-nav.is-footer-visible {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.section-drip-nav::before {
  content: '';
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 11px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(229, 231, 235, 0), var(--border) 12%, var(--border) 88%, rgba(229, 231, 235, 0));
}

.section-drip-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: var(--muted);
  text-decoration: none;
  outline: none;
}

.section-drip-nav a::before {
  content: '';
  width: 11px;
  height: 15px;
  margin: 0 12px 0 6px;
  border: 1px solid var(--border);
  border-radius: 999px 999px 999px 2px;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transform: rotate(-45deg);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.section-drip-nav span {
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(var(--page-rgb), 0.9);
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.72;
  transition: opacity 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.section-drip-nav a:hover::before,
.section-drip-nav a:focus::before {
  border-color: var(--accent);
  background: var(--surface-tint);
  transform: rotate(-45deg) scale(1.12);
}

.section-drip-nav a:hover span,
.section-drip-nav a:focus span {
  opacity: 1;
  color: var(--heading);
  border-color: var(--border);
  background: var(--surface);
}

#awards {
  scroll-margin-top: 96px;
  scroll-margin-bottom: 220px;
}

.awards-list {
  margin: 1em 0 0;
  padding-left: 20px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.awards-list li + li {
  margin-top: 3px;
}


strong {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  color: var(--heading);
  font-weight: 400;
  letter-spacing: 0.035em;
  font-size: 27px;
  line-height: 1.3;
}

.section-heading-mark {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-2px);
}

.section-heading-label {
  position: relative;
  padding-bottom: 5px;
}

.section-heading-label::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(var(--accent-rgb), 0.14));
}

/* News Timeline */
.news-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  position: relative;
}
/* vertical connecting line */
.news-list::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.35;
}
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px 10px 0;
  margin-bottom: 2px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1.65;
  position: relative;
  animation: newsSlideIn 0.4s ease both;
}
.news-item:nth-child(1) { animation-delay: 0s; }
.news-item:nth-child(2) { animation-delay: 0.08s; }
.news-item:nth-child(3) { animation-delay: 0.08s; }
.news-item:nth-child(4) { animation-delay: 0.16s; }
.news-item:nth-child(5) { animation-delay: 0.24s; }
@keyframes newsSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.news-item:hover {
  background: var(--accent-wash);
  transform: translateX(3px);
}
/* Collapse: hide items after 5th */
.news-list:not(.expanded) .news-item:nth-child(n+6) {
  display: none;
}
.news-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 0 3px var(--accent-wash);
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-item:hover .news-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.18);
}
.news-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.news-date {
  font-size: inherit;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news-entry {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  column-gap: clamp(10px, 1.5vw, 14px);
  align-items: baseline;
  line-height: 1.6;
}
#news p {
  margin: 0;
}
#news p.news-row + p.news-row {
  margin-top: 3px;
}
#news p.news-first-entry {
  margin-top: 1em;
}
#news #news-toggle-row {
  margin: 18px 0 0;
  text-align: right;
}
#news {
  margin-bottom: 24px;
}
.news-highlight {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.news-text {
  font: inherit;
  color: var(--text);
}
.news-text .venue {
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
/* Show more / less toggle */
.news-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 0 2px 23px;
  font-family: inherit;
  transition: color 0.2s;
}
.news-toggle:hover {
  color: var(--accent-hover);
}
.news-toggle.visible {
  display: block;
}

heading2 {
  font-family: var(--serif);
  color: var(--heading);
  font-size: 27px;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Publication filters, cards, and copy feedback */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px auto 0;
  justify-content: center;
}
.tag-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent-hover);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.tag-btn:hover {
  border-color: var(--border-strong);
  background: var(--accent-wash);
  color: var(--accent-hover);
}
.tag-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: none;
}
.tag-count {
  display: inline-block;
  background: rgba(0,0,0,0.15);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  text-align: center;
  margin-left: 5px;
  vertical-align: middle;
}
.tag-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.tag-btn:not(.active) .tag-count {
  background: var(--accent-wash);
  color: var(--accent-hover);
}
.publications-table tr[data-tags] > td {
  padding: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.publications-table tr[data-tags] > td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 2px 0 0 2px;
}
.publications-table tr[data-tags] > td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 2px 2px 0;
}
.publication-media {
  width: 30%;
  vertical-align: middle;
}

.publication-details {
  width: 70%;
  vertical-align: top;
}

.publication-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  line-height: 1.55;
}

.publication-content > *,
.publication-authors {
  margin: 0;
}

.publication-content > .publication-venue {
  align-self: flex-start;
}

.publication-title-line,
.publication-links {
  line-height: 1.5;
}

.publication-title-line a,
.publication-title-line papertitle,
.publication-abstract {
  color: var(--text);
}

.publication-authors,
.publication-authors a {
  color: #6b7280;
}

.publication-authors {
  font-size: 14.5px;
  font-style: italic;
}

.publication-authors a,
.publication-authors strong {
  font-size: inherit;
}

.publication-authors strong {
  color: var(--text);
  font-weight: 750;
}

/* 自定义复制提示框样式 */
.toast-message {
  position: fixed;
  top: var(--toast-y, 20px);
  left: var(--toast-x, 50%);
  transform: translate(-50%, -120%);
  background: var(--surface);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.05);
}
.toast-message.show {
  opacity: 1;
  transform: translate(-50%, -135%);
}

papertitle {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700
}

.publication-authors-shell {
  position: relative;
  padding-right: 24px;
  line-height: 1.5;
}

.publication-authors-shell:not(.expanded) .publication-authors {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.publication-authors-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}

.publication-authors-toggle:hover,
.publication-authors-toggle:focus-visible {
  color: var(--accent);
  outline: none;
}

.publication-authors-toggle svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  vertical-align: middle;
}

.publication-authors-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

name {
  font-family: var(--serif);
  color: #000;
  font-size: 32px;
  font-weight: 600;
}

.name-en {
  display: inline-block;
  font-family: 'Zeyu Handwritten', 'Segoe Print', cursive;
  font-size: 1.18em;
  font-style: normal;
  font-weight: 500;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.name-separator {
  display: inline-block;
  margin: 0 12px;
  color: var(--border-strong);
  font-family: var(--sans);
  font-size: 0.75em;
  font-weight: 500;
}

.name-signature {
  display: inline-block;
  white-space: nowrap;
}

.name-cn {
  display: inline-block;
  font-family: 'Zeyu Signature', 'STXingkai', 'KaiTi', cursive;
  font-size: 0.98em;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.1;
  letter-spacing: 0.035em;
  vertical-align: -0.03em;
  white-space: nowrap;
}

.bio-copy-btn {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin-left: 3px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  line-height: 1;
  vertical-align: -0.08em;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.bio-copy-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.bio-copy-btn:hover {
  background: var(--accent-wash);
  color: var(--accent-hover);
}

abs {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--accent);
}
.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: var(--highlight);
}

.yellow-background {
  background-color: var(--highlight);
}

/* Tag Cloud Styles */
#tagcloud-container {
  width: 100%;
  max-width: var(--content-width);
  height: 300px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  /* background: #fcfcfc; */
  /* border: 1px solid #eee; */
  border-radius: 8px;
}

.tagcloud-item {
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transform-origin: 50% 50%;
  transition: color 0.2s;
  cursor: pointer;
  will-change: transform, opacity, filter;
}

.tagcloud-item:hover {
  color: var(--accent) !important;
  z-index: 1000 !important;
}

/* Screenshot Projects */
.screenshot-projects {
  width: 100%;
  margin: 8px auto 22px;
  overflow: hidden;
}

.screenshot-projects-track {
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
}

.screenshot-projects.is-scrollable .screenshot-projects-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.screenshot-project-card {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
  text-align: center;
  font-family: var(--sans);
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.screenshot-project-card:hover,
.screenshot-project-card:focus-visible {
  border-color: var(--border-strong);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.screenshot-project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-tint);
}

.screenshot-project-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.project-online-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(93, 133, 112, 0.16);
}

.screenshot-project-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.screenshot-project-modal.active {
  display: flex;
}

.screenshot-project-dialog {
  position: relative;
  width: min(620px, 100%);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.26);
  padding: 26px 26px 24px;
}

.screenshot-project-dialog > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  background: var(--surface-tint);
}

.screenshot-project-dialog h3 {
  margin: 0 36px 12px 0;
  color: var(--heading);
  font-size: 22px;
  line-height: 1.35;
}

.screenshot-project-dialog p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.screenshot-project-dialog a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.screenshot-project-dialog a:hover {
  background: var(--accent-hover);
  color: #fff;
}

.screenshot-project-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.screenshot-project-close:hover,
.screenshot-project-close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  color: var(--heading);
  outline: none;
}

@media (max-width: 680px) {
  .screenshot-projects-track {
    grid-auto-columns: calc((100% - 16px) / 3);
    gap: 8px;
  }

  .screenshot-project-card {
    padding: 7px;
  }

  .screenshot-project-dialog {
    padding: 22px 20px 20px;
  }
}

@media (max-width: 540px) {
  .profile-table > tbody > tr {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  .profile-table > tbody > tr > td {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
  }

  .profile-table > tbody > tr > td:last-child {
    width: 120px !important;
    padding-top: 20px !important;
    text-align: center;
  }

  name {
    font-size: 29px;
  }

  .publications-table tr[data-tags] > td {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
  }

  .publications-table tr[data-tags] > td:first-child {
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
    padding-bottom: 0 !important;
  }

  .publications-table tr[data-tags] > td:last-child {
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 2px 2px;
  }

}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border: none;
  outline: none;
  background: rgba(var(--accent-rgb), 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s, background 0.2s;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
#backToTop:active {
  transform: translateY(0);
}
#backToTop svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}
#backToTop:hover svg {
  transform: translateY(-2px);
}

/* A compact typographic colophon closes the page. */
.site-footer {
  margin-top: 30px;
  padding: 0 0 32px;
}

.site-footer-inner {
  width: 100%;
}

.site-footer-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 28px;
  align-items: baseline;
  box-sizing: border-box;
  width: min(calc(var(--content-width) - 32px), calc(100% - 48px));
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.site-footer-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.site-footer-meta .site-footer-signature {
  color: #000;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.025em;
}

.site-footer-signature .name-cn {
  font-size: 22.88px;
}

.site-footer-signature .signature-separator {
  margin: 0 8px;
  color: inherit;
}

.site-footer-meta p:nth-child(2) {
  text-align: right;
}

.site-footer-map {
  width: min(420px, calc(100% - 48px));
  margin: 24px auto 0;
}

.visitor-map-canvas {
  position: relative;
  aspect-ratio: 2.04 / 1;
}

.visitor-map-world {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: #2d78ad;
}

.visitor-map-points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.visitor-map-marker {
  fill: #ff1717;
  stroke: #ffffff;
  stroke-width: 0.9;
  cursor: pointer;
  pointer-events: all;
}

.visitor-map-marker.is-online {
  fill: #f79a00;
}

.visitor-map-marker:hover,
.visitor-map-marker:focus-visible,
.visitor-map-marker[aria-pressed="true"] {
  outline: none;
  stroke: #ffffff;
  stroke-width: 3;
}

.visitor-map-tooltip {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  max-width: calc(100% - 8px);
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 12.5px;
  line-height: 1.5;
  pointer-events: none;
}

.visitor-map-tooltip strong,
.visitor-map-tooltip span {
  display: block;
  font-size: inherit;
}

.visitor-map-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  text-align: center;
}

.visitor-map-metrics dt {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.visitor-map-metrics dd {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.visitor-map-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.visitor-map-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 540px) {
  .site-footer {
    padding-bottom: 76px;
  }

  .site-footer-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .site-footer-meta p:nth-child(2) {
    text-align: left;
  }
}



@media (max-width: 1500px), (max-height: 560px) {
  .section-drip-nav {
    display: none;
  }
}
