﻿:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --max-width: 1160px;
  --sidebar-width: 290px;
  --header-height: 64px;
  --anchor-offset: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e7ebf3;
  backdrop-filter: blur(10px) saturate(1.1);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 26px -20px rgba(15, 23, 42, 0.48);
  border-bottom-color: #dfe6f2;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  min-width: 0;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.16s ease;
}

.brand:hover {
  text-decoration: none;
  background: #f8fafc;
}

.brand-home-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.brand-avatar-placeholder,
.avatar-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8eef7, #cbd8ea);
  color: #385578;
  font-weight: 700;
  user-select: none;
}

.brand-avatar-placeholder {
  flex: 0 0 auto;
}

#nav-name {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.lang-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-left: 8px;
  width: 84px;
  height: 30px;
  padding: 2px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff 0%, #eaf2ff 100%);
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease, box-shadow 0.16s ease;
  flex-shrink: 0;
}

.lang-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 3px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #93c5fd;
  box-shadow: 0 4px 10px -8px rgba(29, 78, 216, 0.7);
  transition: transform 0.18s ease;
}

.lang-toggle[data-lang="en"]::before {
  transform: translateX(100%);
}

.lang-toggle-option {
  position: relative;
  z-index: 1;
  text-align: center;
  pointer-events: none;
}

.lang-toggle[data-lang="en"] .lang-toggle-en,
.lang-toggle[data-lang="zh"] .lang-toggle-zh {
  color: #1d4ed8;
}

.lang-toggle:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #e0ecff 100%);
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.5);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  gap: 8px;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.site-nav a:hover {
  text-decoration: none;
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.site-nav a.active {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
  box-shadow: 0 8px 16px -12px rgba(37, 99, 235, 0.8);
}

.site-nav a.nav-overflow-hidden {
  display: none;
}

.site-header.nav-overflow .nav-toggle {
  display: inline-flex;
}

.nav-overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 20px;
  z-index: 130;
  width: min(280px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 30px -18px rgba(15, 23, 42, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.site-header.nav-overflow.nav-open .nav-overflow-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-overflow-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.nav-overflow-menu a:hover {
  text-decoration: none;
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.nav-overflow-menu a.active {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 42px;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.avatar {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  border: 2px solid #f3f4f6;
}

.avatar.avatar-placeholder {
  display: grid;
  place-items: center;
  font-size: 3.6rem;
  letter-spacing: -0.08em;
}

.name {
  margin: 0;
  text-align: center;
  font-size: 1.72rem;
  line-height: 1.2;
}

.college {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.94rem;
  color: var(--muted);
  white-space: pre-line;
}

.tagline {
  margin: 16px 0 12px;
  text-align: center;
  color: #374151;
  font-size: 0.9rem;
  white-space: pre-line;
}

.social-icons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: min(100%, 190px);
  margin: 0 auto;
}

.icon-link {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  padding: 4px 7px;
  font: inherit;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease,
    transform 0.16s ease;
}

.icon-link:hover {
  text-decoration: none;
  color: #2563eb;
  background: #eff6ff;
  transform: translateX(2px);
}

.icon-link:focus-visible {
  outline: none;
  color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.icon-link:active {
  color: #1d4ed8;
  background: #dbeafe;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.icon-link-text {
  min-width: 0;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.icon-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.email-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  max-width: min(100%, 220px);
  margin: 0 auto 5px;
  padding: 5px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
}

.email-reveal[hidden] {
  display: none;
}

.email-at-icon,
.email-dot-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #2563eb;
  flex: 0 0 auto;
}

.email-dot-icon {
  width: 7px;
}

.email-at-icon svg,
.email-dot-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.main {
  min-width: 0;
}

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

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + var(--anchor-offset));
}

h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.45;
}

p {
  margin: 0 0 12px;
}

.main p,
.main li {
  text-align: justify;
  text-justify: inter-word;
}

html[lang^="en"] .main p,
html[lang^="en"] .main li {
  hyphens: auto;
}

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

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

.simple-list {
  margin: 0;
  padding-left: 20px;
}

.news-list li,
.simple-list li {
  margin-bottom: 8px;
}

.news-list li {
  display: block;
}

.news-list li::after {
  content: "";
  display: block;
  clear: both;
}

.news-list .news-main {
  display: inline;
}

.news-list .news-link {
  float: right;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid #dbe7f3;
  background: #f8fbff;
  color: #3b82f6;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.news-list .news-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(-45deg);
}

.news-list .news-link:hover {
  color: #0062ff;
  border-color: #cbd5e1;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.news-list .news-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.publication-list {
  margin: 0;
  padding-left: 1.45rem;
  list-style-type: disc;
}

.publication-list li {
  padding: 8px 0 10px 4px;
  color: #4b5563;
  line-height: 1.62;
  border-top: 1px solid #f1f5f9;
}

.publication-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.publication-list strong {
  color: var(--text);
  font-weight: 700;
}

.publication-levels {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  vertical-align: 0.08em;
}

.publication-level {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.publication-level-ccf-a { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.publication-level-ccf-b { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.publication-level-ccf-c { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.publication-level-zone { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.publication-level-arxiv { color: #9f1239; background: #fff1f2; border-color: #fecdd3; }
.publication-level-index { color: #475569; background: #f8fafc; border-color: #cbd5e1; }

.publication-role-levels {
  margin-left: 5px;
}

.publication-role {
  color: #475569;
  background: #f8fafc;
  border-color: #dbe3ec;
}

.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.award-toggle-item {
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  margin-top: 8px;
}

.award-fold-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.awards-fold-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.awards-fold-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe7f3;
  background: #f8fbff;
  color: #3b82f6;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.awards-fold-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.awards-fold-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.awards-fold-toggle:hover {
  color: #0062ff;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.awards-fold-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.award-item {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.award-item-text-only {
  grid-template-columns: 1fr;
}

.award-item:first-child {
  border-top: none;
  padding-top: 0;
}

/* Keep the separator above the first item in the expandable awards list. */
.awards-fold-list > .award-item:first-child {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.award-thumb {
  width: 136px;
  height: 84px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
  background: #f8fafc;
}

.award-thumb-group {
  width: 136px;
  height: 84px;
  display: grid;
  grid-template-columns: repeat(var(--thumb-cols, 2), minmax(0, 1fr));
  gap: 4px;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.award-thumb-split-trigger {
  border-radius: 8px;
  overflow: hidden;
}

.award-thumb-split {
  border: 0;
  border-radius: 8px;
}

.award-thumb-group .award-thumb-trigger {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.award-thumb-group .award-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.award-thumb-trigger {
  width: 136px;
  height: 84px;
  display: block;
  border: none;
  padding: 0;
  background: none;
  border-radius: 10px;
  cursor: zoom-in;
}

.award-thumb-trigger:hover .award-thumb {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px -16px rgba(37, 99, 235, 0.85);
}

.award-thumb-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 213, 255, 0.7);
}

.award-thumb-placeholder {
  display: block;
}

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

.award-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.award-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  box-shadow: 0 36px 56px -28px rgba(15, 23, 42, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 1rem;
  cursor: pointer;
}

.item {
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.item.item-with-figure {
  padding: 14px 16px 16px;
}

#representative-list .item + .item {
  margin-top: 18px;
  padding-top: 14px;
  border-top-color: #e2e8f0;
}

#representative-list .item {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.7), 0 2px 8px -6px rgba(15, 23, 42, 0.25);
}

#representative-list .item:first-child {
  padding-top: 14px;
}

#representative-list .item-content {
  width: 100%;
}

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

.publication-figure-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 5px;
  padding: 8px 14px;
  background: #ffffff;
}

.publication-figure-trigger {
  width: min(72%, 520px);
  max-width: 100%;
  display: block;
  border: none;
  border-radius: 10px;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.publication-figure-trigger-compact {
  width: min(62%, 450px);
}

.publication-figure-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.publication-figure {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.publication-figure-trigger:hover .publication-figure {
  border-color: #dbe7f3;
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.6);
  transform: translateY(-1px);
}

.item:first-child {
  border-top: none;
  padding-top: 0;
}

.edu-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.edu-item:first-child {
  border-top: none;
  padding-top: 0;
}

.edu-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-logo-link {
  display: inline-flex;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.edu-logo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px -9px rgba(15, 23, 42, 0.55);
}

.edu-logo-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.42);
}

.edu-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0;
}

.edu-logo-placeholder {
  background: #f1f5f9;
}

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

.edu-content .item-meta {
  margin-bottom: 1px;
}

.edu-content > p.muted {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.item-meta {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.representative-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.representative-description {
  width: 100%;
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.58;
}

.representative-levels {
  margin-left: 0;
}

.representative-actions-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.publication-detail-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.publication-detail-toggle {
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.publication-detail-toggle:hover,
.publication-detail-toggle.active {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.publication-detail-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.38);
}

.publication-detail-panel {
  margin-top: 8px;
  padding: 9px 11px;
  border-left: 3px solid #93c5fd;
  border-radius: 0 7px 7px 0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.65;
}

.publication-detail-panel[hidden] {
  display: none;
}

.publication-detail-panel p {
  margin: 0;
}

.publication-citation-panel {
  overflow-wrap: anywhere;
}

.citation-format-block + .citation-format-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.citation-format-label {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.citation-text-block {
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.bibtex-block pre {
  max-width: 100%;
  margin: 0;
  padding: 10px 11px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre;
  overflow-wrap: normal;
}

.bibtex-block code {
  font: inherit;
}

.edu-inline-tip-wrap {
  display: inline-flex;
  align-items: center;
}

.edu-inline-tip-content {
  display: none;
}

.edu-inline-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.08em;
  height: 1.08em;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.66em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: 0 2px 6px -5px rgba(15, 23, 42, 0.35);
  position: relative;
  top: -0.22em;
  transform: none;
}

.edu-tip-float {
  position: fixed;
  left: var(--edu-tip-left, 8px);
  top: var(--edu-tip-top, 8px);
  width: min(360px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.46;
  text-align: left;
  white-space: normal;
  box-shadow: 0 14px 24px -16px rgba(15, 23, 42, 0.5);
  transform: translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  z-index: 220;
}

.edu-tip-float.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

.edu-tip-float::before {
  content: "";
  position: absolute;
  left: var(--edu-tip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  border-left: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  background: #ffffff;
}

.edu-tip-float[data-placement="top"]::before {
  top: 100%;
  transform: translate(-50%, -5px) rotate(-45deg);
}

.edu-tip-float[data-placement="bottom"]::before {
  bottom: 100%;
  transform: translate(-50%, 5px) rotate(135deg);
}

.edu-tip-float-content {
  overflow-wrap: break-word;
}

.edu-tip-link {
  color: #334155;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(100, 116, 139, 0.5);
  text-underline-offset: 2px;
}

.edu-tip-link:hover {
  color: #0f172a;
  text-decoration-color: rgba(15, 23, 42, 0.62);
}

.edu-inline-tip:hover {
  color: #475569;
  border-color: #94a3b8;
  background: #f1f5f9;
}

.edu-inline-tip.open {
  color: #475569;
  border-color: #94a3b8;
  background: #f1f5f9;
}

.edu-inline-tip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.35);
}

.badges {
  margin: 6px 0 4px;
}

.badge {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

.project-link-badge {
  height: 18px;
  display: inline-flex;
  align-items: stretch;
  border-radius: 3px;
  overflow: hidden;
  color: #ffffff;
  font-family: Verdana, "PingFang SC", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 18px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.project-link-badge-label,
.project-link-badge-source {
  display: inline-block;
  padding: 0 5px;
  white-space: nowrap;
}

.project-link-badge-label {
  background: #555b63;
}

.project-link-badge-source {
  background: var(--badge-color, #64748b);
}

.publication-code-links {
  display: inline-flex;
  margin-left: 6px;
  vertical-align: middle;
}

.project-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.project-link-disabled,
.project-link-disabled:hover,
.project-link-disabled:focus-visible {
  text-decoration: none;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.56;
  filter: grayscale(0.3);
}

.footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: center;
}

.footer a {
  color: #2563eb;
}

.footer-icp {
  margin-top: 4px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.72rem;
  line-height: 1.35;
}

.footer-quote {
  position: relative;
  width: fit-content;
  max-width: min(100%, 720px);
  margin: 4px auto 0;
  padding: 0 18px 0 28px;
  color: #e5e7eb;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
  font-style: normal;
}

.footer-quote cite {
  display: inline;
  margin-left: 0.45em;
  color: #e7e9ed;
  font-style: normal;
}

.footer-quote cite::before {
  content: "— ";
}

.footer-quote::before {
  content: "“";
  position: absolute;
  left: 8px;
  top: -1px;
  color: #eef0f3;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 16px 36px;
  }

  .sidebar {
    position: static;
  }

}

@media (max-width: 640px) {

  .nav-overflow-menu {
    right: 8px;
    width: min(260px, calc(100vw - 16px));
  }

  .name {
    font-size: 1.5rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .icon-link {
    width: 30px;
    height: 30px;
  }

  .edu-tip-float {
    width: min(320px, calc(100vw - 16px));
    font-size: 0.9rem;
  }

  .award-item {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }

  .edu-item {
    grid-template-columns: 62px 1fr;
    gap: 10px;
  }

  .edu-logo {
    width: 54px;
    height: 54px;
    padding: 0;
  }

  .award-thumb {
    width: 100px;
    height: 66px;
  }

  .award-thumb-group {
    width: 100px;
    height: 66px;
  }

  .award-thumb-trigger {
    width: 100px;
    height: 66px;
  }

  .award-title {
    font-size: 0.93rem;
  }

  .publication-figure {
    max-width: 100%;
  }

  .publication-figure-wrap {
    padding: 7px 6px;
  }

  .publication-figure-trigger {
    width: 86%;
  }

  .publication-figure-trigger-compact {
    width: 76%;
  }

  .award-desc {
    font-size: 0.83rem;
  }

  .image-lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  h2 {
    font-size: 1.22rem;
  }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-width: 960px) and (max-height: 560px) {
  :root {
    --header-height: 56px;
    --anchor-offset: 4px;
  }

  body {
    font-size: 14px;
    line-height: 1.58;
  }

  .site-header-inner {
    padding: 0 12px;
  }

  .brand {
    padding: 3px 6px;
    font-size: 0.84rem;
  }

  .brand-avatar {
    width: 32px;
    height: 32px;
  }

  .site-nav a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .nav-toggle {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .lang-toggle {
    width: 74px;
    height: 27px;
    font-size: 0.68rem;
  }

  .page {
    grid-template-columns: minmax(180px, 32vw) minmax(0, 1fr);
    padding: 14px 14px 30px;
    gap: 18px;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--header-height) + 12px);
  }

  .avatar {
    width: 138px;
    height: 138px;
    margin-bottom: 10px;
  }

  .name {
    font-size: 1.34rem;
  }

  .college {
    font-size: 0.88rem;
  }

  .tagline {
    margin: 10px 0 8px;
    font-size: 0.86rem;
  }

  .section {
    padding: 16px 0;
  }

  .main p,
  .main li {
    font-size: 0.88em;
    line-height: 1.48;
  }

  .main h3 {
    font-size: 0.95em;
  }

  h2 {
    margin-bottom: 10px;
    font-size: 1.18rem;
  }
}
