:root {
  --ink: #172033;
  --muted: #5f697b;
  --line: #dfe4ea;
  --soft-line: #ebeff3;
  --paper: #ffffff;
  --wash: #f6f8fa;
  --accent: #8f1d2c;
  --accent-dark: #70121f;
  --link: #184e8e;
  --green: #276749;
  --blue-wash: #eaf1f9;
  --green-wash: #eaf6ef;
  --row-height: 42px;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
.news-window:focus-visible {
  outline: 3px solid rgba(24, 78, 142, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--ink);
  color: white;
  padding: 8px 14px;
}

.skip-link:focus {
  transform: translateY(0);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 228, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1080px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: #394459;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 24px;
}

section {
  margin: 0 0 44px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 24px;
  line-height: 1.3;
  padding-bottom: 9px;
}

h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: -11px;
  background: var(--accent);
}

.profile-section {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 38px;
  margin-bottom: 52px;
}

.portrait-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #ccd2da;
  border-radius: 4px;
  background: var(--wash);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-copy h1 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 600;
  line-height: 1.14;
}
.profile-copy h1 span:not([lang]) {
  font-size: 0.6em;
}

.profile-copy h1 span {
  display: block;
}

.profile-copy h1 span[lang] {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: "STKaiti", "KaiTi", "Noto Serif CJK SC", serif;
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.role {
  margin-bottom: 14px;
  color: #394459;
  font-size: 20px;
  font-style: italic;
}

.affiliation {
  margin-bottom: 16px;
  color: #495468;
  line-height: 1.55;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #b8c6d8;
  text-decoration: none;
}

.institution-marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-left: 20px;
  border-left: 1px solid var(--soft-line);
}

.institution-marks a {
  display: block;
}

.institution-marks img {
  display: block;
  width: 132px;
  height: auto;
  object-fit: contain;
}

.institution-marks .nju-mark {
  width: 76px;
  max-height: 96px;
}

.interest-tags,
.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tags span,
.paper-tags span {
  border: 1px solid #d7dee7;
  border-radius: 999px;
  background: var(--wash);
  color: #465267;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  padding: 5px 10px;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.section-heading-row h2 {
  flex: 1;
  border: 0;
  margin-bottom: 0;
}

.scroll-hint,
.section-note,
.result-count {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
}

.scroll-hint {
  white-space: nowrap;
}

.news-window {
  height: calc(var(--row-height) * 5 + 10px);
  overflow-y: scroll;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfd;
  scrollbar-color: #b7c0cb transparent;
  scrollbar-width: thin;
}

.news-list {
  margin: 5px 14px;
  padding: 0;
  list-style: none;
}

.news-list li {
  min-height: var(--row-height);
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px dashed #e0e5eb;
  font-size: 15px;
  line-height: 1.35;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list time {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.publications-heading {
  align-items: flex-end;
}

.publications-heading > div {
  flex: 1;
}

.publications-heading h2 {
  padding-bottom: 4px;
}

.section-note {
  margin: 0 0 9px;
}

.result-count {
  margin-bottom: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.publication-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.search-box {
  position: relative;
  width: min(100%, 640px);
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #6e7888;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid #cfd6df;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 76px 0 42px;
}

.search-box input::placeholder {
  color: #8992a1;
}

.search-box input:focus {
  border-color: var(--link);
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 7px 3px;
}

.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.no-results button {
  border: 1px solid #cfd6df;
  border-radius: 999px;
  background: white;
  color: #465267;
  cursor: pointer;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 8px 13px;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.filter-button:hover {
  border-color: #9aa7b6;
  color: var(--ink);
}

.filter-button span {
  margin-left: 5px;
  color: #7c8797;
  font-size: 11px;
}

.filter-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.filter-button.is-active span {
  color: #f3cdd3;
}

.publication-list {
  display: grid;
  gap: 0;
}

.publication-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--soft-line);
  padding: 24px 0;
}

.publication-card:first-child {
  padding-top: 4px;
}

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

.publication-visual {
  display: block;
  align-self: start;
  overflow: hidden;
  border: 1px solid #d5dbe3;
  border-radius: 4px;
  background: var(--wash);
  box-shadow: 0 4px 12px rgba(24, 32, 51, 0.06);
  line-height: 0;
}

.publication-visual:hover {
  border-color: #9aa7b6;
}

.publication-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 180ms ease;
}

.publication-visual:hover img {
  transform: scale(1.02);
}

.publication-copy h3 {
  margin: 5px 0 8px;
  font-size: 20px;
  line-height: 1.36;
}

.publication-copy h3 a {
  color: var(--ink);
  text-decoration: none;
}

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

.publication-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.type-badge {
  border-radius: 3px;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-badge.journal {
  background: var(--green-wash);
  color: var(--green);
}

.type-badge.conference {
  background: var(--blue-wash);
  color: var(--link);
}

.authors,
.venue {
  margin-bottom: 5px;
  color: #4c576a;
  font-size: 15px;
  line-height: 1.45;
}

.authors strong {
  color: var(--accent);
}

.venue {
  margin-bottom: 12px;
  color: var(--muted);
  font-style: italic;
}

.paper-tags span {
  padding: 4px 8px;
  font-size: 11px;
}

.no-results {
  border: 1px dashed #cfd6df;
  border-radius: 5px;
  background: var(--wash);
  padding: 42px 20px;
  text-align: center;
}

.no-results[hidden] {
  display: none;
}

.no-results > span {
  display: block;
  color: #8a94a3;
  font-size: 38px;
  line-height: 1;
}

.no-results h3 {
  margin: 12px 0 4px;
  font-size: 19px;
}

.no-results p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14px;
}

.no-results button {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.correspondence-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: #fbfcfd;
  padding: 24px;
}

.correspondence-card p {
  margin: 0 0 8px;
  color: #4b5668;
  font-size: 15px;
  line-height: 1.55;
}

.correspondence-card p:last-child {
  margin-bottom: 0;
}

.correspondence-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
}

.site-footer > div {
  width: min(1080px, calc(100% - 40px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

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

@media (max-width: 850px) {
  .profile-section {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }

  .institution-marks {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 52px;
    padding: 20px 0 0;
    border-top: 1px solid var(--soft-line);
    border-left: 0;
  }

  .publication-card {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }

  .correspondence-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .page-shell,
  .site-footer > div {
    width: min(100% - 28px, 1080px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0 9px;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
  }

  .page-shell {
    padding-top: 34px;
  }

  section {
    margin-bottom: 36px;
  }

  .profile-section {
    grid-template-columns: minmax(125px, 38vw) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .profile-copy h1 {
    font-size: clamp(25px, 8vw, 36px);
  }

  .role {
    font-size: 17px;
  }

  .affiliation {
    font-size: 14px;
  }

  .email-link {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .institution-marks {
    gap: 42px;
  }

  .institution-marks img {
    width: 116px;
  }

  .institution-marks .nju-mark {
    width: 60px;
  }

  h2 {
    font-size: 21px;
  }

  .news-list {
    margin-right: 9px;
    margin-left: 9px;
  }

  .news-list li {
    grid-template-columns: 67px minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
  }

  .scroll-hint {
    display: none;
  }

  .publication-card {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .publication-copy h3 {
    font-size: 17px;
  }

  .authors,
  .venue {
    font-size: 13px;
  }

  .publication-visual {
    position: sticky;
    top: 102px;
  }

  .filter-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -14px;
    padding: 1px 14px 6px 1px;
    scrollbar-width: thin;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .site-footer > div {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}

@media (max-width: 430px) {
  .profile-section {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    width: min(230px, 70vw);
  }

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

  .publication-visual {
    position: static;
    width: min(260px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .publication-tools,
  .scroll-hint,
  .site-footer {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding-top: 0;
  }

  .news-window {
    height: auto;
    overflow: visible;
  }

  .publication-card[hidden] {
    display: grid;
  }
}
