:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3f5f8;
  --border: #e6e0d5;
  --text: #2c3b53;
  --heading: #1f2b44;
  --muted: #6f7b8d;
  --accent: #d89f4e;
  --accent-soft: #f5ede0;
  --shadow: 0 22px 45px rgba(36, 47, 71, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 159, 78, 0.03), transparent 30%),
    linear-gradient(180deg, #fffefd 0%, #fdfbf7 100%);
}

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

a:hover {
  color: #c18735;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 56px;
  border-bottom: 1px solid rgba(230, 224, 213, 0.7);
  background: rgba(253, 252, 250, 0.9);
  backdrop-filter: blur(14px);
}

.brand,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--heading);
}

.brand {
  font-size: 2rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  color: inherit;
}

.brand span,
.profile-block h1 span {
  color: #5f6a7b;
  font-size: 0.64em;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  padding: 12px 18px;
  border-radius: 14px;
  color: #516078;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--heading);
  transform: translateY(-1px);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: #5c6a7f;
  box-shadow: 0 10px 24px rgba(51, 65, 85, 0.06);
}

.page {
  max-width: 1420px;
  margin: 0 auto;
  padding: 44px 56px 72px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 52px;
}

.subpage {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 56px 80px;
}

.subpage-section {
  background: transparent;
}

.subpage-subsection {
  margin-top: 34px;
}

.subpage-title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  color: var(--heading);
}

.subpage-subtitle {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--heading);
}

.papers-page {
  max-width: 1320px;
}

.sidebar {
  position: sticky;
  top: 116px;
  align-self: start;
  max-height: calc(100vh - 136px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 106, 123, 0.35) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(95, 106, 123, 0.28);
  border-radius: 999px;
}

.portrait-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 220px;
  margin: 0 auto;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
}

.profile-block {
  padding: 14px 6px 6px;
  text-align: center;
}

.profile-block h1 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1;
}

.profile-block h1 .name-en,
.profile-block h1 .name-zh {
  display: block;
}

.profile-block h1 .name-en {
  font-size: 0.8em;
}

.profile-block h1 .name-zh {
  margin-top: 8px;
  font-size: 0.7em;
}

.role {
  margin: 14px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.affiliation {
  margin: 0;
  color: #607086;
  font-size: 0.96rem;
  line-height: 1.5;
}

.icon-grid {
  margin: 22px auto 26px;
  display: grid;
  grid-template-columns: repeat(5, 48px);
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

.icon-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #55637a;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(230, 224, 213, 0.55);
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.icon-grid a:hover {
  transform: translateY(-2px);
  color: var(--accent);
  background: var(--surface);
}

.side-card,
.paper-card,
.timeline article {
  background: var(--surface);
  border: 1px solid rgba(230, 224, 213, 0.65);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 22px 20px;
  border-radius: 20px;
  max-width: 320px;
  margin: 0 auto;
}

.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.side-card p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
  color: #56657d;
}

.content {
  padding-top: 10px;
}

.content-section {
  margin-bottom: 48px;
}

.welcome-section {
  margin-bottom: 20px;
}

.content-section .welcome-text {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--heading);
}

.content-section h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

.content-section p {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #4a5970;
}

.about-list,
.plain-list {
  margin: 16px 0 0;
  padding-left: 28px;
  color: #4a5970;
}

.plain-list-page {
  max-width: 920px;
}

.service-groups {
  max-width: 980px;
}

.service-group + .service-group {
  margin-top: 28px;
}

.service-group-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  color: var(--heading);
}

.service-card {
  max-width: 920px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(230, 224, 213, 0.7);
  box-shadow: var(--shadow);
}

.service-list-inner {
  margin-top: 0;
}

.about-list li,
.plain-list li {
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 1.08rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 0;
}

.view-all {
  font-weight: 700;
  white-space: nowrap;
}

.view-all::after {
  content: " ->";
}

.news-list {
  display: grid;
  gap: 8px;
}

.news-list article {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 5px;
  align-items: start;
  padding-bottom: 2px;
}

.news-list time {
  font-weight: 500;
  font-size: 1.2rem;
  color: #8190a4;
}

.news-list p {
  margin: 0;
  line-height: 1.4;
}

.news-list-full {
  gap: 12px;
}

.news-list-full article {
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-list-full article:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.awards-list {
  max-width: 920px;
}

.publication-note {
  margin: 0 0 8px;
  color: #617089;
  font-size: 1rem;
  line-height: 1.55;
}

.publication-note-secondary {
  margin-bottom: 18px;
  font-size: 0.96rem;
}

.publication-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 0 24px;
}

.publication-filter input,
.publication-filter select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(139, 161, 191, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.publication-filter input {
  flex: 1;
}

.publication-filter select {
  flex: 0 0 160px;
  cursor: pointer;
}

.publication-filter input::placeholder {
  color: #8a96a7;
}

.publication-filter input:focus,
.publication-filter select:focus {
  border-color: #8ba1bf;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(139, 161, 191, 0.16);
}

.publication-view-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid rgba(139, 161, 191, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(36, 47, 71, 0.08);
}

.publication-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #66758b;
  cursor: pointer;
}

.publication-view-toggle button.is-active {
  background: #eaf2ff;
  color: #1d5fbd;
}

.view-icon {
  width: 22px;
  height: 22px;
  background: currentColor;
}

.view-icon-list {
  mask: linear-gradient(#000 0 0) 8px 3px / 13px 2px no-repeat,
    linear-gradient(#000 0 0) 8px 10px / 13px 2px no-repeat,
    linear-gradient(#000 0 0) 8px 17px / 13px 2px no-repeat,
    radial-gradient(circle, #000 58%, transparent 60%) 2px 1px / 5px 5px no-repeat,
    radial-gradient(circle, #000 58%, transparent 60%) 2px 8px / 5px 5px no-repeat,
    radial-gradient(circle, #000 58%, transparent 60%) 2px 15px / 5px 5px no-repeat;
}

.view-icon-card {
  mask: linear-gradient(#000 0 0) 3px 3px / 7px 7px no-repeat,
    linear-gradient(#000 0 0) 13px 3px / 7px 7px no-repeat,
    linear-gradient(#000 0 0) 3px 13px / 7px 7px no-repeat,
    linear-gradient(#000 0 0) 13px 13px / 7px 7px no-repeat;
}

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

.paper-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 22px;
  border-radius: 24px;
  margin-bottom: 18px;
  align-items: center;
}

.paper-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paper-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-figure {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid rgba(230, 224, 213, 0.85);
  box-shadow: 0 12px 24px rgba(36, 47, 71, 0.08);
}

.paper-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

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

.paper-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #edd8ba;
  background: #fffaf2;
  color: var(--accent);
  font-weight: 400;
  font-size: 0.95rem;
  vertical-align: middle;
}

.paper-tag-highlight {
  display: inline-block;
  border-color: transparent;
  background: transparent;
  color: #d91f2f;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

.paper-card h3 {
  margin: 0 0 4px;
  font-family: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #334766;
  line-height: 1.08;
}

.authors,
.venue {
  margin: 0;
  color: #617089;
}

.content-section .authors {
  margin-bottom: 4px;
  color: #080d18;
  font-size: 0.95rem;
  line-height: 1.45;
}

.content-section .authors strong {
  font-weight: inherit;
}

.content-section .venue {
  margin: 0;
  color: #080d18;
  font-size: 0.95rem;
  line-height: 1.55;
}

.content-section .paper-summary {
  margin: 4px 0 0;
  color: #5d6d84;
  font-size: 0.9rem;
  line-height: 1.45;
}

.content-section .paper-summary strong {
  color: inherit;
  font-weight: inherit;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #ead8bf;
  background: #fffdfa;
  color: #55637a;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.paper-link:hover {
  color: var(--accent);
  border-color: #e1bf8b;
  background: #fff7ea;
  transform: translateY(-1px);
}

.paper-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.papers-year-section {
  margin-bottom: 34px;
}

.papers-year-title {
  margin: 0 0 16px;
  font-family: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #55637a;
}

.papers-year-list {
  border-left: 5px solid #8ba1bf;
}

.papers-year-section-card .papers-year-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-left: 0;
}

.papers-empty {
  margin: 24px 0 0;
  color: #617089;
  font-size: 1rem;
}

.papers-entry {
  padding: 18px 0 10px 22px;
  border-bottom: 1px solid rgba(190, 203, 220, 0.45);
}

.papers-card-entry {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(190, 203, 220, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.papers-card-head {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.papers-card-badges {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.papers-card-head .papers-entry-badge {
  width: auto;
  min-width: 104px;
}

.papers-card-highlight {
  color: #d91f2f;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

.papers-card-entry .papers-entry-authors,
.papers-card-entry .papers-entry-venue {
  font-size: 0.95rem;
  line-height: 1.25;
}

.papers-card-entry .papers-entry-authors {
  margin-bottom: 4px;
}

.papers-card-entry .papers-entry-venue {
  color: #223149;
}

.papers-card-entry .papers-entry-actions {
  margin-top: auto;
  padding-top: 14px;
}

.papers-entry-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: flex-start;
  column-gap: 16px;
}

.papers-entry-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.papers-entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 150px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid #b8c7db;
  background: #f7f9fc;
  color: #4e607a;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.papers-entry-badge-journal {
  border-radius: 8px;
  border-color: #9aa8ba;
  background: #f9fafc;
}

.papers-entry-highlight {
  color: #d91f2f;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.papers-entry-text {
  min-width: 0;
  flex: 1;
}

.papers-entry-authors,
.papers-entry-venue {
  margin: 0;
  color: #52627b;
  font-size: 1rem;
  line-height: 1.00;
}

.papers-entry-authors {
  margin-bottom: 1px;
}

.papers-entry-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  font-family: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
}

.papers-entry-title a {
  color: #1d2738;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.papers-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.papers-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid #d8dfeb;
  background: #ffffff;
  color: #55637a;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.papers-action:hover {
  background: #fff7ea;
  border-color: #e1bf8b;
  color: var(--accent);
}

.papers-action.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

.bib-modal[hidden] {
  display: none;
}

.bib-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.bib-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 29, 43, 0.48);
  backdrop-filter: blur(4px);
}

.bib-modal-panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  margin: 8vh auto 0;
  padding: 20px;
  border-radius: 22px;
  background: #fffdf9;
  border: 1px solid rgba(230, 224, 213, 0.9);
  box-shadow: 0 30px 80px rgba(21, 29, 43, 0.22);
}

.bib-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.bib-modal-head h2 {
  margin: 0;
  font-size: 1.9rem;
}

.bib-modal-close,
.bib-action-button {
  border: 1px solid #ead8bf;
  background: #fff7ea;
  color: #55637a;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bib-modal-content {
  margin: 0;
  max-height: 52vh;
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: #f8f5ef;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.bib-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-page {
  max-width: 920px;
}

.timeline-page {
  max-width: 920px;
}

.timeline article {
  padding: 22px 24px;
  border-radius: 20px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 1180px) {
  .site-header {
    padding: 20px 24px;
  }

  .page {
    padding: 28px 24px 60px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .subpage {
    padding: 32px 24px 60px;
  }

  .sidebar {
    position: sticky;
    top: 100px;
    max-width: 720px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin: 0 auto;
  }

  .content {
    max-width: 920px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .brand {
    font-size: 1.6rem;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav-button {
    display: none;
  }

  .profile-block h1,
  .content-section h2 {
    font-size: 2.4rem;
  }

  .paper-card,
  .news-list article,
  .two-column {
    grid-template-columns: 1fr;
  }

  .publication-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .publication-filter select {
    flex-basis: auto;
  }

  .papers-year-section-card .papers-year-list {
    grid-template-columns: 1fr;
  }

  .papers-entry-main {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .papers-entry-badge {
    max-width: 220px;
  }
}
