/* Typography and visual proportions follow the supplied academic homepage. */
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  --bg: #fbfbfd;
  --surface: #fff;
  --soft: #f4f5f7;
  --ink: #17171a;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-2: #6a5cff;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --border: rgba(0, 0, 0, 0.09);
  --header: rgba(251, 251, 253, 0.88);
  --gradient: linear-gradient(120deg, #2997ff, #6a5cff);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.13);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --badge-venue-bg: #eaf0f7;
  --badge-venue-ink: #405671;
  --badge-name-bg: #deebff;
  --badge-name-ink: #185ba5;
  --badge-a-bg: #eee4ff;
  --badge-a-ink: #6735a8;
  --badge-b-bg: #ddf3ed;
  --badge-b-ink: #176a57;
  --badge-cited-bg: #ffe4ed;
  --badge-cited-ink: #a32d56;
  --badge-oral-bg: #e8f2d9;
  --badge-oral-ink: #46641f;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0e;
  --surface: #15151a;
  --soft: #131318;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #69b3ff;
  --accent-2: #a496ff;
  --accent-soft: rgba(10, 132, 255, 0.14);
  --border: rgba(255, 255, 255, 0.1);
  --header: rgba(11, 11, 14, 0.88);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.55);
  --badge-venue-bg: #222d3d;
  --badge-venue-ink: #c3d0e3;
  --badge-name-bg: #1c3355;
  --badge-name-ink: #add0ff;
  --badge-a-bg: #38264e;
  --badge-a-ink: #ddc3ff;
  --badge-b-bg: #193d35;
  --badge-b-ink: #9be3cc;
  --badge-cited-bg: #4c2938;
  --badge-cited-ink: #ffc1d5;
  --badge-oral-bg: #2c3a20;
  --badge-oral-ink: #cde5ab;
  color-scheme: dark;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent);
  color: white;
}
strong {
  font-weight: 600;
  color: var(--ink);
}
a,
button {
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s,
    border-color 0.25s;
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.wrap {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 24px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  z-index: 100;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 15px;
}
.wordmark {
  font: 600 13.5px var(--mono);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.wordmark span {
  color: var(--accent-2);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  position: relative;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
.site-nav a[aria-current] {
  color: var(--accent);
}
.site-nav a[aria-current]:after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.theme-toggle:hover {
  transform: rotate(15deg);
  border-color: var(--accent);
}
.theme-toggle svg {
  grid-area: 1/1;
  width: 16px;
  height: 16px;
}
.sun {
  display: none;
}
:root[data-theme="dark"] .sun {
  display: block;
}
:root[data-theme="dark"] .moon {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}
h1 {
  font: 700 clamp(40px, 6vw, 54px)/1.08 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
h1 em {
  font-style: normal;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
h1 .chinese-name {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--muted);
  margin-left: 15px;
  vertical-align: middle;
}
.hero-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-role a {
  border-bottom: 1px dashed var(--border);
}
.hero-role a:hover {
  color: var(--accent);
}
.hero-role > span:last-child {
  color: var(--accent-2);
  font-weight: 600;
}
.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;
}
.focus-display { display: inline-grid; vertical-align: bottom; }
.focus-sizer, .focus-text { grid-area: 1 / 1; white-space: nowrap; }
.focus-sizer { visibility: hidden; padding-right: 6px; }
.focus-text.is-animated::after {
  content: "";
  display: inline-block;
  height: .95em;
  margin-left: 3px;
  border-right: 1.5px solid currentColor;
  vertical-align: -.08em;
  animation: focus-caret 1s step-end infinite;
}
@keyframes focus-caret { 50% { opacity: 0; } }
.bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.bio p + p {
  margin-top: 16px;
}
.bio a {
  color: var(--accent);
  font-weight: 500;
}
.bio a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.portrait-frame {
  width: 208px;
  height: 208px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    var(--shadow-lg),
    0 0 0 6px var(--bg),
    0 0 0 7.5px var(--border);
  background: var(--gradient);
  transition: transform 0.4s;
}
.portrait-frame:hover {
  transform: scale(1.035);
}
.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.button svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}
.button:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.section {
  padding: 46px 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-index {
  font: 600 13px var(--mono);
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
h2 {
  font: 700 clamp(26px, 4vw, 32px)/1.2 var(--serif);
  letter-spacing: -0.015em;
}
.text-link {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
}
.section-intro {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 20px;
}
.equal-note {
  font-size: 12px;
  margin-left: 6px;
}
.news-list {
  list-style: none;
  padding: 0 0 0 26px;
  margin: 0;
  position: relative;
}
.news-list:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--accent-2),
    transparent
  );
  opacity: 0.55;
}
.news-list li {
  position: relative;
  padding-bottom: 26px;
}
.news-list li:last-child {
  padding-bottom: 0;
}
.news-list li:before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 11px;
  height: 11px;
  border: 2.5px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
  border-radius: 50%;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.news-list time {
  font: 600 12.5px var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.news-badge {
  font: 600 10.5px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2.5px 10px;
  border-radius: 100px;
  color: var(--accent);
  background: var(--accent-soft);
}
.news-badge[data-kind="work"] {
  color: #1d8a41;
  background: rgba(52, 199, 89, 0.14);
}
:root[data-theme="dark"] .news-badge[data-kind="work"] {
  color: #4cd964;
}
.news-text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}
.news-archive {
  margin-top: 20px;
}
.news-archive > summary {
  display: flex;
  width: max-content;
  gap: 12px;
  align-items: center;
  font: 600 12.5px var(--mono);
  color: var(--muted);
  padding: 8px 18px;
  border: 1px dashed var(--border);
  border-radius: 100px;
  margin-bottom: 20px;
}
.news-archive > summary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.news-archive[open] > summary span,
.paper-details[open] > summary span {
  transform: rotate(45deg);
}
summary span {
  display: inline-block;
  transition: transform 0.2s;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.research-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.research-figure {
  height: 168px;
  display: block;
  position: relative;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}
.research-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s;
}
.research-figure:hover img {
  transform: scale(1.04);
}
.figure-expand {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4f5f7d9;
  color: #0071e3;
  font-size: 13px;
}
.card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font: 600 17.5px/1.35 var(--serif);
}
.card-body h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-venue {
  font: 600 11.5px/1.6 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--badge-venue-ink);
  background: var(--badge-venue-bg);
  width: fit-content;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 6px;
  margin: 8px 0;
}
.card-venue-journal { text-transform: none; letter-spacing: 0; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.card-authors {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 14px;
}
.card-body .paper-links {
  margin-top: auto;
}
.paper-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.paper-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3.5px 12px;
  border-radius: 100px;
}
.paper-links a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}
.publication-toolbar {
  display: flex;
  align-items: start;
  gap: 12px;
  flex-direction: column;
  margin-bottom: 10px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  font: 500 12px/1.5 var(--mono);
  padding: 6.5px 14px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}
.filters button:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
#publication-count {
  font: 11px var(--mono);
  color: var(--muted);
}
.publication-group {
  margin-top: 36px;
}
.publication-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  margin-bottom: 6px;
}
.group-count {
  font: 12px var(--mono);
  color: var(--muted);
}
.publication {
  padding: 20px 2px;
  border-bottom: 1px solid var(--border);
}
.publication h4 {
  font: 600 16.5px/1.4 var(--serif);
}
.publication h4 a:hover {
  color: var(--accent);
}
.publication-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.pub-venue {
  font: 500 11.5px/1.6 var(--mono);
  color: var(--badge-venue-ink);
  background: var(--badge-venue-bg);
  padding: 3px 9px;
  border-radius: 6px;
  max-width: 100%;
}
.venue-badge,
.ccf-badge,
.cited-badge,
.oral-badge {
  display: inline-flex;
  align-items: center;
  font: 600 10.5px/1.6 var(--mono);
  letter-spacing: 0.02em;
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.venue-badge { background: var(--badge-name-bg); color: var(--badge-name-ink); }
.ccf-badge { background: var(--badge-a-bg); color: var(--badge-a-ink); }
.ccf-badge--b { background: var(--badge-b-bg); color: var(--badge-b-ink); }
.cited-badge { background: var(--badge-cited-bg); color: var(--badge-cited-ink); }
.oral-badge { background: var(--badge-oral-bg); color: var(--badge-oral-ink); }
.authors {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 10px;
}
.authors strong,
.card-authors strong {
  font-weight: 650;
}
sup {
  color: var(--accent);
  font-size: 10px;
}
.paper-details {
  margin-top: 0;
}
.paper-details summary {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 3.5px 11px;
  color: var(--muted);
  font: 600 12px/1.65 var(--mono);
  width: max-content;
  margin-left: auto;
  margin-top: -28px;
}
.paper-details summary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.paper-details > div {
  margin: 14px 0 2px;
  padding: 12px 16px;
  background: var(--soft);
  border-left: 2.5px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.paper-details code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.journey-list {
  padding-left: 28px;
  position: relative;
}
.journey-list:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--accent-2),
    transparent
  );
}
.journey-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 28px;
  position: relative;
  padding-bottom: 30px;
}
.journey-item:last-child {
  padding-bottom: 0;
}
.journey-item:before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--accent-2);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.journey-date {
  font: 600 12px/1.7 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.journey-item h3 {
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.journey-item h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.journey-item p {
  font-size: 14.5px;
  color: var(--muted);
}
.journey-logo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.journey-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.honors-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.honors-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 76px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.honors-list li:first-child { padding-top: 0; }
.honors-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.honor-year {
  font: 12px/1.9 var(--mono);
  color: var(--accent);
}
.honor-copy h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.honor-copy p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.honor-copy p strong { font-weight: 600; color: var(--ink); }
.honors-list li:not(.honor-with-certificate) .honor-copy { grid-column: 2 / -1; }
.honor-certificate {
  display: block;
  width: 76px;
  border-radius: 4px;
  cursor: zoom-in;
  opacity: .85;
  transition: opacity .2s;
}
.honor-certificate:hover,
.honor-certificate:focus-visible { opacity: 1; }
.honor-certificate img {
  display: block;
  width: 76px;
  height: 54px;
  object-fit: contain;
  border-radius: 3px;
}
@media (max-width: 600px) {
  .journey-item { grid-template-columns: minmax(0, 1fr) 60px; gap: 12px; align-items: start; }
  .journey-logo { width: 60px; height: 60px; margin-top: 4px; border-radius: 12px; }
  .journey-logo img { width: 44px; height: 44px; }
  .honors-list li { grid-template-columns: 32px minmax(0, 1fr) 56px; gap: 10px; }
  .honor-certificate { width: 56px; }
  .honor-certificate img { width: 56px; height: 42px; }
}
.contact-section {
  text-align: center;
  padding: 56px 0 30px;
}
.contact-section h2 {
  font: 700 clamp(30px, 5vw, 42px)/1.2 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-section > p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
}
.contact-section .button {
  font-size: 13px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-block: 22px 30px;
  font: 11px/1.7 var(--mono);
  color: var(--muted);
}
.site-footer > div {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.site-footer a:hover {
  color: var(--accent);
}
.figure-dialog {
  width: 95vw;
  max-width: 1200px;
  max-height: 94dvh;
  padding: 48px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.figure-dialog::backdrop {
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(10px);
}
.figure-dialog img {
  width: 100%;
  height: auto;
  max-height: 74dvh;
  object-fit: contain;
  background: white;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 14px;
  background: var(--soft);
  font-size: 12px;
}
.figure-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.hero-copy,
.hero-aside {
  animation: rise 0.7s backwards;
}
.hero-aside {
  animation-delay: 0.15s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0 44px;
  }
  .hero-aside {
    order: -1;
    align-items: flex-start;
  }
  .hero-role {
    font-size: 14px;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-figure {
    height: 220px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-actions {
    flex: 1;
    justify-content: flex-end;
  }
  .site-nav a {
    font-size: 12px;
    padding: 6px 7px;
  }
  .wordmark {
    font-size: 12px;
  }
  .site-nav {
    gap: 0;
  }
  .section {
    padding-block: 36px;
  }
  .section-heading {
    gap: 12px;
  }
  .section-heading > div {
    gap: 11px;
  }
  .section-heading > .text-link {
    font-size: 11px;
  }
  .card-body h3 {
    font-size: 18px;
  }
  .card-body {
    padding: 22px;
  }
  .paper-details summary {
    margin-top: 10px;
    margin-left: 0;
  }
  .contact-section .social-links {
    gap: 10px;
  }
  .contact-section .button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero-aside .social-links {
    justify-content: flex-start;
  }
}
@media (max-width: 520px) {
  html {
    scroll-padding-top: 112px;
  }
  .wrap {
    padding-inline: 22px;
  }
  .header-inner {
    position: relative;
    min-height: 100px;
    padding-top: 14px;
    padding-bottom: 49px;
    align-items: flex-start;
  }
  .header-actions {
    flex: 0;
  }
  .site-nav {
    position: absolute;
    bottom: 9px;
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }
  .site-nav a {
    font-size: 11.5px;
    padding: 7px 4px;
  }
  .wordmark {
    line-height: 34px;
  }
  .portrait-frame {
    width: 168px;
    height: 168px;
  }
  .hero {
    padding-top: 39px;
    gap: 30px;
  }
  .hero-aside {
    gap: 22px;
  }
  h1 .chinese-name {
    font-size: 18px;
    margin-left: 12px;
  }
  .bio {
    font-size: 15px;
  }
  .hero-role {
    font-size: 13px;
    gap: 4px 8px;
  }
  .hero-role > span[aria-hidden] {
    display: none;
  }
  .hero-role > span:last-child {
    width: 100%;
  }
  .hero-role {
    margin-bottom: 20px;
  }
  .section-heading > .text-link {
    display: none;
  }
  .section-heading {
    margin-bottom: 24px;
  }
  .section-heading > div {
    gap: 11px;
  }
  h2 {
    font-size: 27px;
  }
  .section-index {
    font-size: 12px;
  }
  .news-text {
    font-size: 14px;
  }
  .news-list time {
    font-size: 11.5px;
  }
  .research-figure {
    height: 190px;
  }
  .card-body {
    padding: 20px;
  }
  .filters {
    gap: 7px;
  }
  .filters button {
    font-size: 10.5px;
    padding: 6.5px 11px;
  }
  .publication h4 {
    font-size: 16px;
  }
  .authors {
    font-size: 12.5px;
  }
  .pub-venue {
    font-size: 11px;
  }
  .venue-badge {
    font-size: 9px;
  }
  .paper-links {
    gap: 7px;
  }
  .paper-links a {
    font-size: 11.5px;
    padding: 4px 11px;
  }
  .equal-note {
    display: block;
    margin: 6px 0 0;
  }
  .section-intro {
    font-size: 12px;
  }
  .journey-item h3 {
    font-size: 16px;
  }
  .journey-item h4 {
    font-size: 13px;
  }
  .journey-item p {
    font-size: 14px;
  }
  .journey-date {
    font-size: 10.5px;
  }
  .contact-section > p {
    font-size: 14px;
  }
  .site-footer {
    font-size: 10px;
    padding-inline: 22px;
  }
  .site-footer > div {
    gap: 13px;
  }
  .figure-dialog {
    padding-inline: 8px;
  }
  .button {
    font-size: 12px;
    padding: 8px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .reading-progress,
  .publication-toolbar,
  .figure-dialog,
  .social-links,
  .paper-details,
  .site-footer > div {
    display: none !important;
  }
  :root {
    --bg: white;
    --surface: white;
    --ink: #111;
    --muted: #444;
    --accent: #0071e3;
    --accent-2: #6a5cff;
    --border: #ccc;
  }
  .wrap {
    max-width: none;
  }
  .hero {
    padding: 20px 0;
  }
  .section {
    padding: 20px 0;
  }
  .research-card,
  .publication,
  .journey-item {
    break-inside: avoid;
  }
  .publication[hidden],
  .publication-group[hidden] {
    display: block !important;
  }
  .research-figure {
    height: 150px;
  }
}
