:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-muted: #eceee6;
  --ink: #1d2528;
  --body: #3f484b;
  --muted: #5f696c;
  --line: #d9ded7;
  --accent: #315c52;
  --accent-strong: #1f433c;
  --accent-warm: #9a5b3f;
  --focus: #a46a2a;
  --shadow: 0 18px 40px rgba(29, 37, 40, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--surface);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
}

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

.shell {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.nav-links a i {
  width: 1em;
  font-size: 0.86em;
  text-align: center;
}

.nav-links a:hover {
  background: rgba(49, 92, 82, 0.08);
  border-color: rgba(49, 92, 82, 0.18);
  color: var(--accent-strong);
}

.nav-links a[aria-current="page"] {
  background: rgba(49, 92, 82, 0.12);
  border-color: rgba(49, 92, 82, 0.34);
  color: var(--accent-strong);
  font-weight: 850;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  line-height: 1;
}

.nav-toggle::before {
  content: "\f0c9";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font: var(--fa-font-solid);
  line-height: 1;
  color: var(--accent-warm);
}

.language-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.theme-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.theme-toggle i {
  font-size: 0.92rem;
}

.nav-links .theme-toggle {
  flex: 0 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.card-meta {
  margin: 0 0 0.65rem;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6.2vw, 4.7rem);
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  margin: 1.2rem 0 0;
  max-width: 720px;
  color: var(--body);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.narrow {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0.68rem 1rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent-strong);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--accent);
}

.language-button {
  background: var(--surface);
  color: var(--accent-strong);
  border-color: var(--line);
}

.hero-language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  align-self: flex-end;
  border-radius: 999px;
  border: 1px solid rgba(154, 91, 63, 0.38);
  background: rgba(154, 91, 63, 0.08);
  color: var(--accent-warm);
  padding: 0.16rem 0.54rem;
  box-shadow: none;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-0.34rem);
}

.hero-language-button:hover {
  border-color: var(--accent-warm);
  background: rgba(154, 91, 63, 0.13);
  color: var(--accent-warm);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.profile-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 0.28rem 0.68rem;
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.92rem;
}

.profile-panel {
  margin: 0;
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.profile-panel figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.stats-band {
  background: var(--ink);
  color: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.stats-grid > div {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  padding: 1.2rem;
}

.stat-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.stat-label {
  color: #c5ceca;
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.section {
  padding-block: clamp(3rem, 5vw, 4.8rem);
}

.section-muted {
  background: var(--surface-muted);
}

.review-section {
  background:
    linear-gradient(180deg, rgba(49, 92, 82, 0.06), rgba(49, 92, 82, 0.025)),
    var(--surface);
  border-block: 1px solid var(--line);
}

.work-section {
  background:
    linear-gradient(180deg, rgba(154, 91, 63, 0.07), rgba(154, 91, 63, 0.025)),
    var(--bg);
}

.project-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.awards-section {
  background:
    linear-gradient(180deg, rgba(154, 91, 63, 0.08), rgba(154, 91, 63, 0.035)),
    var(--bg);
}

.section-accent {
  background: var(--accent-strong);
  color: var(--surface);
}

.section-accent h2,
.section-accent .section-kicker {
  color: var(--surface);
}

.section-accent p {
  color: #dce6e2;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.body-copy p {
  margin: 0 0 1rem;
  color: var(--body);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: 1.32rem;
}

.section-heading.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.text-link,
.read-more {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-color: rgba(49, 92, 82, 0.35);
  text-underline-offset: 0.22em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(29, 37, 40, 0.06);
  padding: 0.48rem 0.82rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.back-link::before {
  content: "\f060";
  font: var(--fa-font-solid);
  font-size: 0.82rem;
}

.back-link:hover {
  border-color: var(--accent);
  transform: translateX(-2px);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.news-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--accent-strong);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-item {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.timeline-date {
  display: block;
  color: var(--accent-warm);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.timeline-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.interest-grid,
.info-columns,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.interest-item,
.info-columns article,
.detail-grid section {
  border-top: 3px solid var(--accent);
  padding-top: 1rem;
}

.interest-item p,
.info-columns p,
.detail-grid p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.project-card,
.publication-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card {
  overflow: hidden;
}

.interactive-card {
  display: grid;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.interactive-card:hover,
.image-publication-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-muted);
}

.card-body {
  display: block;
  padding: 1.15rem;
}

.card-body h2,
.card-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.card-body strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.25;
}

.card-body p:not(.card-meta) {
  color: var(--muted);
  margin: 0.75rem 0 1rem;
}

.card-body span:not(.card-meta):not(:first-child) {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
}

.publication-card {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  min-height: 230px;
  padding: 1.15rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.publication-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.publication-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.25;
}

.publication-card span:not(.card-meta),
.publication-card em {
  color: var(--muted);
}

.publication-card .author-self {
  display: inline;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 800;
}

.image-publication-card {
  overflow: hidden;
  padding: 0;
}

.image-publication-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.image-publication-card .card-meta,
.image-publication-card strong,
.image-publication-card span:not(.card-meta),
.image-publication-card em {
  margin-inline: 1rem;
}

.image-publication-card .card-meta {
  margin-top: 0.95rem;
}

.image-publication-card em {
  margin-bottom: 1rem;
}

.publication-year + .publication-year {
  margin-top: 3.5rem;
}

.publication-list-section {
  margin-bottom: clamp(2.8rem, 5vw, 4rem);
}

.publication-group + .publication-group {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.publication-group h3,
.publication-subheading {
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.publication-list {
  margin: 0;
  padding-left: 3.2rem;
  list-style: decimal;
}

.publication-list li {
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  line-height: 1.72;
}

.publication-list li:first-child {
  border-top: 1px solid var(--line);
}

.publication-list li::marker {
  content: "[" counter(list-item) "] ";
  color: var(--accent-warm);
  font-weight: 900;
}

.publication-list li:target {
  background: rgba(49, 92, 82, 0.07);
  border-radius: var(--radius);
  padding-inline: 0.8rem;
}

.publication-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  text-decoration-color: rgba(49, 92, 82, 0.28);
  text-underline-offset: 0.2em;
}

.publication-list em {
  color: var(--accent-strong);
  font-style: italic;
  font-weight: 650;
}

.publication-doi {
  display: inline-flex;
  vertical-align: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.08rem 0.48rem;
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

.publication-note,
.publication-status {
  color: var(--accent-warm);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.software-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.software-table th,
.software-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.software-table th {
  color: var(--accent-strong);
  background: var(--surface-muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.software-table td {
  color: var(--body);
}

.software-table tr:last-child td {
  border-bottom: 0;
}

.publication-card-section {
  margin-top: clamp(2.8rem, 5vw, 4rem);
}

.publication-year h2,
.publication-section-title {
  margin-bottom: 1rem;
  font-size: 1.42rem;
}

.plain-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 0.45rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 2rem;
  align-items: center;
}

.about-hero {
  padding-block: clamp(2rem, 5vw, 3.1rem);
}

.about-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 1.15rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-hero-copy .lead {
  max-width: none;
  margin-top: 0.7rem;
}

.about-contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 1rem;
}

.about-contact-card h2 {
  margin-bottom: 0.3rem;
  font-size: 1.58rem;
}

.about-contact-affiliation {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.contact-details {
  display: grid;
  gap: 0.4rem;
}

.contact-details a {
  color: var(--accent-strong);
  font-weight: 800;
}

.profile-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.58rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.profile-row:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
}

.profile-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  color: var(--accent-strong);
  font-weight: 850;
}

.profile-platform i {
  width: 1.1rem;
  text-align: center;
  color: inherit;
}

.profile-url {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-accent .contact-details a {
  color: var(--surface);
}

.compact-contact-details {
  gap: 0.48rem;
  font-size: 0.94rem;
}

.compact-contact-details a,
.compact-contact-details span {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.compact-contact-details span {
  color: var(--body);
}

.compact-contact-details i {
  font-size: 0.88rem;
}

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.compact-page-hero {
  padding-block: clamp(2.7rem, 6vw, 3.8rem) clamp(0.8rem, 2vw, 1.2rem);
}

.page-content-section {
  padding-top: clamp(0.55rem, 1.8vw, 0.95rem);
}

.page-hero h1,
.project-detail h1 {
  max-width: none;
  font-size: clamp(1.72rem, 3.8vw, 2.65rem);
}

.project-detail,
.paper-detail {
  padding-block: 3rem 6rem;
}

.project-detail > .back-link,
.paper-detail > .back-link {
  margin-bottom: 1.5rem;
}

.paper-detail h1 {
  max-width: none;
  font-size: clamp(1.68rem, 3.5vw, 2.55rem);
}

.paper-detail-header {
  max-width: none;
}

.paper-detail-meta {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
  color: var(--muted);
}

.paper-detail-meta p {
  margin: 0;
}

.paper-detail-meta span {
  display: inline-block;
  min-width: 74px;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-detail-meta strong {
  color: var(--ink);
  font-weight: 750;
}

.paper-detail-meta strong sup {
  font-size: 0.72em;
}

.paper-detail-meta cite {
  color: var(--accent-strong);
  font-style: italic;
  font-weight: 750;
}

.paper-detail-meta time {
  color: var(--ink);
  font-weight: 750;
}

.doi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: 1.25rem;
  border: 1px solid rgba(49, 92, 82, 0.3);
  border-radius: 999px;
  background: rgba(49, 92, 82, 0.08);
  color: var(--accent-strong);
  padding: 0.46rem 0.78rem;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 800;
}

.detail-section {
  max-width: none;
  margin-top: 2.4rem;
}

.detail-section h2 {
  font-size: 1.42rem;
}

.detail-section p {
  color: var(--body);
}

.paper-summary {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.72;
}

.paper-highlight-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--body);
}

.paper-highlight-list li + li {
  margin-top: 0.45rem;
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.paper-asset-grid {
  gap: 1.1rem;
}

.paper-asset-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.paper-asset-image {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface-muted);
}

.paper-asset-card figcaption {
  padding: 0.78rem 0.88rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.paper-asset-card figcaption span {
  display: block;
}

.paper-asset-card figcaption span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.paper-asset-card .caption-zh {
  margin-top: 0.18rem;
  color: var(--muted);
}

.paper-asset-note {
  display: inline-block;
  margin: 0.55rem 0 1rem;
  max-width: min(820px, 100%);
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 2px solid var(--accent-warm);
  background: transparent;
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent-warm) 10%, transparent) 0%,
    transparent 78%
  );
  color: var(--body);
  font-size: 0.79rem;
  line-height: 1.55;
  text-align: left;
}

.paper-asset-note .caption-zh {
  display: block;
  margin-top: 0.16rem;
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
}

.paper-asset-card.is-portrait {
  max-width: min(560px, 56vw);
  margin-inline: auto;
}

.paper-asset-card.is-squareish {
  max-width: min(860px, 74vw);
  margin-inline: auto;
}

.paper-asset-card.is-narrow-landscape {
  max-width: min(980px, 82vw);
  margin-inline: auto;
}

.detail-image {
  width: 100%;
  max-height: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.project-detail .lead {
  max-width: none;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 0.9rem;
}

.gallery-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 0.9rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-card[role="button"] {
  cursor: zoom-in;
}

.gallery-card[role="button"]:focus-visible {
  outline: 3px solid rgba(49, 92, 82, 0.24);
  outline-offset: 3px;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 180ms ease;
}

.gallery-card[role="button"]:hover img,
.gallery-card[role="button"]:focus-visible img {
  transform: scale(1.015);
}

.gallery-card figcaption {
  padding: 0.68rem 0.78rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.gallery-card figcaption span {
  display: block;
}

.gallery-card figcaption span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.gallery-card .caption-zh {
  margin-top: 0.18rem;
  color: var(--muted);
}

.gallery-lightbox {
  width: min(1280px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.gallery-lightbox::backdrop {
  background: transparent;
  backdrop-filter: none;
}

.gallery-lightbox-panel {
  display: grid;
  gap: 0.9rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f7f7f2;
  backdrop-filter: none;
  box-shadow: none;
}

.gallery-lightbox-header {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: center;
  padding: 12px 68px 0;
  border-bottom: 0;
}

.gallery-lightbox-caption {
  min-width: 0;
  max-width: min(720px, 100%);
  margin-inline: auto;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(18, 24, 26, 0.3);
  backdrop-filter: blur(14px) saturate(125%);
  font-size: 0.94rem;
  line-height: 1.45;
  text-align: center;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gallery-lightbox-caption span {
  display: block;
}

.gallery-lightbox-caption span:first-child {
  color: #ffffff;
  font-weight: 800;
}

.gallery-lightbox-caption .caption-zh {
  margin-top: 0.18rem;
  color: rgba(247, 247, 242, 0.78);
}

.gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(18, 24, 26, 0.3);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(125%);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.gallery-lightbox-close:hover {
  transform: translateY(-1px);
  background: rgba(18, 24, 26, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px 12px;
  background: transparent;
}

.gallery-lightbox-body img {
  width: auto;
  max-width: min(1320px, calc(100vw - 64px));
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.project-detail .detail-grid {
  margin-top: 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.cv-sidebar {
  align-self: start;
  border-top: 3px solid var(--accent);
  padding-top: 1rem;
}

.cv-sidebar p {
  color: var(--muted);
}

.about-section-title {
  font-size: 1.32rem;
}

.cv-content {
  display: grid;
  gap: 2.5rem;
}

.cv-item {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.cv-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.cv-publications {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.cv-publications li + li {
  margin-top: 0.7rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.8rem);
}

.home-page h1 {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
}

.home-intro .eyebrow {
  font-size: 0.72rem;
}

.hero-name-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.68rem;
}

.hero-name-row h1 {
  margin: 0;
}

.home-intro .lead {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero-quote {
  max-width: 680px;
  margin: 1rem 0 0;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.hero-quote p {
  margin: 0;
  color: var(--body);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.55;
}

.hero-affiliation {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--body);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.88rem, 1.28vw, 0.96rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.portrait-card {
  margin: 0;
}

.profile-avatar {
  width: 198px;
  height: 198px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--surface);
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.compact-actions {
  margin-top: 1.05rem;
}

.hero-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.hero-email {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.94rem;
}

.hero-email i {
  color: inherit;
}

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

.hero-email a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.hero-email a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.hero-language-link {
  text-decoration: none;
}

.icon-links {
  gap: 0.5rem;
  margin-top: 1rem;
}

.icon-links a {
  width: 38px;
  height: 38px;
  min-height: 38px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  font-size: 1.05rem;
}

.icon-links a:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.large-icons a {
  width: 46px;
  height: 46px;
  min-height: 46px;
  font-size: 1.2rem;
}

.quick-facts {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
}

.quick-facts dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.quick-facts dt {
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.wechat-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(29, 37, 40, 0.06);
}

.wechat-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.wechat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wechat-card strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.home-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: clamp(1.6rem, 3.2vw, 2.8rem);
}

.mini-panel,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.mini-panel h2,
.contact-card h2 {
  font-size: 1.16rem;
}

.mini-panel p {
  margin: 0.6rem 0 0.75rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tag-list a,
.tag-list span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.28rem 0.52rem;
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.compact-news {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.compact-news time {
  color: var(--accent-strong);
  font-weight: 800;
}

.compact-section {
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
}

.compact-card-grid {
  gap: 0.9rem;
}

.compact-card-grid .project-card img {
  aspect-ratio: 16 / 9;
}

.compact-card-grid .card-body {
  padding: 0.95rem;
}

.compact-card-grid .card-body h3,
.compact-card-grid .card-body strong {
  font-size: 1.12rem;
}

.compact-card-grid .card-body p:not(.card-meta),
.compact-card-grid .card-body span:not(.card-meta):not(:first-child) {
  margin: 0.55rem 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.5;
}

.compact-publication-card {
  min-height: 178px;
  gap: 0.45rem;
  padding: 0.95rem;
}

.compact-publication-card strong {
  font-size: 1.05rem;
}

.compact-publication-card span:not(.card-meta),
.compact-publication-card em {
  font-size: 0.92rem;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-strip article {
  border: 1px solid transparent;
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
}

.awards-section .info-strip article {
  border-color: rgba(154, 91, 63, 0.22);
  border-top-color: var(--accent-warm);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.awards-section .plain-list {
  margin-top: 0.9rem;
}

.awards-section .plain-list li + li {
  margin-top: 0.72rem;
}

.awards-section .plain-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(154, 91, 63, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.awards-section .plain-list a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentcolor;
}

.awards-section .plain-list strong {
  color: var(--ink);
  font-weight: 800;
}


.compact-heading {
  margin-bottom: 0.8rem;
}

.compact-heading h2 {
  font-size: 1.24rem;
}

.call-paper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem 0.85rem;
}

.call-paper-image {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  overflow: hidden;
}

.call-paper-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.call-paper-copy {
  display: grid;
  gap: 0.28rem;
}

.call-paper-copy .card-meta {
  margin: 0;
}

.call-paper-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
  text-decoration-color: rgba(49, 92, 82, 0.34);
  text-underline-offset: 0.18em;
}

.call-paper-title:hover {
  color: var(--accent-strong);
}

.call-paper-copy small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.call-paper-deadline {
  color: var(--accent-strong);
  font-weight: 800;
}

.review-journal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.review-journal-list li {
  display: grid;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.72rem 0.78rem;
}

.review-journal-list li span {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.35;
}

.review-journal-list li strong {
  color: var(--accent-strong);
  font-size: 0.84rem;
}

.compact-list {
  font-size: 0.94rem;
  line-height: 1.5;
}

.compact-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-timeline .timeline-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.contact-page {
  column-count: 2;
  column-gap: 1rem;
}

.contact-page > .contact-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

.contact-card .contact-details {
  margin-top: 1rem;
}

.notes-hero {
  padding-block: clamp(2.1rem, 5vw, 3.2rem) clamp(0.8rem, 2vw, 1.15rem);
}

.news-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(1rem, 2.5vw, 1.45rem);
}

.notes-hero h1 {
  max-width: 680px;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
}

.news-hero-aside {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  border-left: 1px solid rgba(49, 92, 82, 0.16);
  padding-left: clamp(1rem, 3vw, 2rem);
  text-align: right;
}

.news-hero-aside span {
  color: var(--muted);
  font-size: 0.9rem;
}

.news-hero-aside small {
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-hero-aside strong {
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1;
}

.notes-layout {
  width: 100%;
}

.news-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.news-section-header h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.notes-list {
  display: grid;
  gap: 0.72rem;
}

.note-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(49, 92, 82, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 242, 0.9));
  box-shadow: 0 12px 34px rgba(29, 37, 40, 0.065);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.note-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
  opacity: 0.72;
}

.note-card:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 92, 82, 0.3);
  box-shadow: 0 20px 50px rgba(29, 37, 40, 0.11);
}

.note-card a {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(230px, 300px);
  gap: clamp(0.75rem, 2vw, 1.1rem);
  align-items: stretch;
  padding: 0;
  text-decoration: none;
}

.note-date {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 96px;
  border-right: 1px solid rgba(49, 92, 82, 0.1);
  background:
    linear-gradient(180deg, rgba(49, 92, 82, 0.08), rgba(154, 91, 63, 0.07)),
    rgba(236, 238, 230, 0.5);
  color: var(--accent-strong);
  text-align: center;
}

.note-date span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.58rem;
  font-weight: 800;
  line-height: 1;
}

.note-date small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-card-body {
  display: grid;
  gap: 0.3rem;
  padding: 0.74rem 0;
}

.note-thumb {
  align-self: center;
  aspect-ratio: 16 / 9;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(49, 92, 82, 0.14);
  border-radius: 0 16px 16px 0;
  background: var(--surface-muted);
}

.note-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.note-card:hover .note-thumb img {
  transform: scale(1.035);
}

.note-card-meta,
.note-card-footer {
  color: var(--accent-warm);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.note-card-title {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.92rem, 1.24vw, 1.08rem);
  font-weight: 800;
  line-height: 1.18;
}

.note-card-summary {
  max-width: 820px;
  color: var(--body);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.note-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.7rem;
  margin-top: 0.1rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  margin-top: clamp(1.35rem, 3vw, 2.2rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(49, 92, 82, 0.12);
}

.news-pagination button {
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(236, 238, 230, 0.62)),
    var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(29, 37, 40, 0.055);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.news-pagination .news-pagination-edge {
  min-width: 4.4rem;
  padding-inline: 0.9rem;
}

.news-pagination button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(49, 92, 82, 0.32);
  box-shadow: 0 12px 28px rgba(29, 37, 40, 0.09);
  color: var(--accent-strong);
}

.news-pagination button[aria-current="page"] {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--surface);
  box-shadow: 0 12px 30px rgba(49, 92, 82, 0.22);
}

.news-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.news-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.note-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--accent-strong);
}

.note-read-more i {
  font-size: 0.78rem;
  transition: transform 160ms ease;
}

.note-card:hover .note-read-more i {
  transform: translateX(3px);
}

.featured-note {
  border-color: rgba(154, 91, 63, 0.22);
}

.note-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.note-toc h2 {
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-article {
  padding-block: 3rem 6rem;
}

.note-article-header {
  max-width: none;
}

.note-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(1.1rem, 4vw, 3rem);
  align-items: center;
}

.note-article-hero-copy {
  min-width: 0;
}

.note-article-header h1 {
  max-width: 980px;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
}

.note-article-cover {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 92, 82, 0.16);
  border-radius: 18px;
  background: var(--surface-muted);
  box-shadow: 0 18px 45px rgba(29, 37, 40, 0.12);
}

.note-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.note-meta div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.75rem 0.85rem;
}

.note-meta dt {
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-meta dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.note-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2.5rem;
}

.note-content {
  max-width: 780px;
}

.note-content section + section {
  margin-top: 2rem;
}

.note-content h2 {
  font-size: 1.28rem;
}

.note-content p {
  margin: 0.75rem 0 0;
  color: var(--body);
  font-size: 1.03rem;
  line-height: 1.8;
}

.note-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.35rem;
}

.note-toc a {
  border-left: 2px solid var(--line);
  padding: 0.34rem 0 0.34rem 0.65rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.35;
}

.note-toc a:hover {
  border-left-color: var(--accent);
  color: var(--accent-strong);
}

.info-columns.two-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.footer-links-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 1.4rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-links-panel h2 {
  font-size: 1.28rem;
}

.friend-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.friend-links a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.friend-links a:hover {
  border-color: var(--accent);
}

.friend-avatar {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 1.05rem;
  overflow: hidden;
  flex: 0 0 auto;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-links a:hover .friend-avatar {
  border-color: var(--accent);
  background: rgba(49, 92, 82, 0.08);
}

.friend-copy {
  display: grid;
  gap: 0.12rem;
}

.friend-copy > span {
  font-weight: 800;
}

.friend-copy small {
  color: var(--muted);
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

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

.footer-heart {
  color: #e8496a;
}

.footer-unit-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 160px;
}

.footer-unit-logo img {
  width: auto;
  max-width: min(220px, 42vw);
  height: 38px;
  object-fit: contain;
}

.footer-logo-opengms {
  max-width: min(150px, 32vw);
}

.footer-logo-opengms-dark,
.footer-logo-white {
  display: none;
}

.paper-dialog {
  width: min(680px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.paper-dialog::backdrop {
  background: rgba(29, 37, 40, 0.45);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  font-size: 1.05rem;
}

.dialog-close {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.dialog-content {
  padding: 1rem;
  font-size: 0.94rem;
}

.dialog-content p {
  color: var(--muted);
  line-height: 1.55;
}

.dialog-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--surface-muted);
}

.paper-dialog-image {
  aspect-ratio: 16 / 9;
}

.project-dialog-image {
  aspect-ratio: 16 / 9;
}

.dialog-meta {
  display: grid;
  gap: 0.24rem;
  margin-bottom: 0.65rem;
}

.dialog-meta p {
  margin: 0;
}

.dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.dialog-actions {
  justify-content: flex-end;
}

.dialog-links a,
.dialog-disabled-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.62rem;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.dialog-disabled-link {
  color: var(--muted);
  opacity: 0.55;
}

.dialog-links .dialog-primary-link {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--surface);
}

code {
  background: rgba(49, 92, 82, 0.1);
  border-radius: 5px;
  padding: 0.08rem 0.25rem;
}

:root[data-theme="dark"] {
  --bg: #111614;
  --surface: #18201d;
  --surface-muted: #202a25;
  --ink: #eef3ef;
  --body: #d7e0dc;
  --muted: #aebbb5;
  --line: #34423c;
  --accent: #83b7a8;
  --accent-strong: #a9d4c6;
  --accent-warm: #d6a36d;
  --focus: #e1b86e;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .site-header {
  background: rgba(17, 22, 20, 0.92);
}

:root[data-theme="dark"] .awards-section {
  background:
    linear-gradient(180deg, rgba(214, 163, 109, 0.11), rgba(214, 163, 109, 0.045)),
    var(--bg);
}

:root[data-theme="dark"] .review-section {
  background:
    linear-gradient(180deg, rgba(131, 183, 168, 0.09), rgba(131, 183, 168, 0.035)),
    var(--surface);
}

:root[data-theme="dark"] .work-section {
  background:
    linear-gradient(180deg, rgba(214, 163, 109, 0.1), rgba(214, 163, 109, 0.035)),
    var(--bg);
}

:root[data-theme="dark"] .button.primary,
:root[data-theme="dark"] .dialog-links .dialog-primary-link {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #111614;
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .language-button,
:root[data-theme="dark"] .tag-list a,
:root[data-theme="dark"] .tag-list span,
:root[data-theme="dark"] .profile-links a,
:root[data-theme="dark"] .back-link,
:root[data-theme="dark"] .dialog-links a,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .language-link {
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .profile-avatar {
  border-color: var(--surface);
}

:root[data-theme="dark"] .footer-logo-black {
  display: none;
}

:root[data-theme="dark"] .footer-logo-opengms-blue {
  display: none;
}

:root[data-theme="dark"] .footer-logo-opengms-dark,
:root[data-theme="dark"] .footer-logo-white {
  display: block;
}

:root[data-theme="dark"] .stats-grid > div,
:root[data-theme="dark"] .stats-band {
  background: #101513;
}

:root[data-theme="dark"] .stat-label {
  color: var(--muted);
}

:root[data-theme="dark"] .news-hero-panel {
  background: transparent;
}

:root[data-theme="dark"] .note-card {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .news-pagination button {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .note-date {
  background:
    linear-gradient(180deg, rgba(131, 183, 168, 0.1), rgba(214, 163, 109, 0.08)),
    rgba(255, 255, 255, 0.03);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111614;
    --surface: #18201d;
    --surface-muted: #202a25;
    --ink: #eef3ef;
    --body: #d7e0dc;
    --muted: #aebbb5;
    --line: #34423c;
    --accent: #83b7a8;
    --accent-strong: #a9d4c6;
    --accent-warm: #d6a36d;
    --focus: #e1b86e;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  }

  :root:not([data-theme="light"]) .site-header {
    background: rgba(17, 22, 20, 0.92);
  }

  :root:not([data-theme="light"]) .awards-section {
    background:
      linear-gradient(180deg, rgba(214, 163, 109, 0.11), rgba(214, 163, 109, 0.045)),
      var(--bg);
  }

  :root:not([data-theme="light"]) .review-section {
    background:
      linear-gradient(180deg, rgba(131, 183, 168, 0.09), rgba(131, 183, 168, 0.035)),
      var(--surface);
  }

  :root:not([data-theme="light"]) .work-section {
    background:
      linear-gradient(180deg, rgba(214, 163, 109, 0.1), rgba(214, 163, 109, 0.035)),
      var(--bg);
  }

  :root:not([data-theme="light"]) .button.primary,
  :root:not([data-theme="light"]) .dialog-links .dialog-primary-link {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #111614;
  }

  :root:not([data-theme="light"]) .button.secondary,
  :root:not([data-theme="light"]) .language-button,
  :root:not([data-theme="light"]) .tag-list a,
  :root:not([data-theme="light"]) .tag-list span,
  :root:not([data-theme="light"]) .profile-links a,
  :root:not([data-theme="light"]) .back-link,
  :root:not([data-theme="light"]) .dialog-links a,
  :root:not([data-theme="light"]) .theme-toggle,
  :root:not([data-theme="light"]) .language-link {
    background: rgba(255, 255, 255, 0.03);
  }

  :root:not([data-theme="light"]) .profile-avatar {
    border-color: var(--surface);
  }

  :root:not([data-theme="light"]) .footer-logo-black {
    display: none;
  }

  :root:not([data-theme="light"]) .footer-logo-opengms-blue {
    display: none;
  }

  :root:not([data-theme="light"]) .footer-logo-opengms-dark,
  :root:not([data-theme="light"]) .footer-logo-white {
    display: block;
  }

  :root:not([data-theme="light"]) .stats-grid > div,
  :root:not([data-theme="light"]) .stats-band {
    background: #101513;
  }

  :root:not([data-theme="light"]) .stat-label {
    color: var(--muted);
  }

  :root:not([data-theme="light"]) .news-hero-panel {
    background: transparent;
  }

  :root:not([data-theme="light"]) .note-card {
    background: rgba(255, 255, 255, 0.035);
  }

  :root:not([data-theme="light"]) .news-pagination button {
    background: rgba(255, 255, 255, 0.035);
  }

  :root:not([data-theme="light"]) .note-date {
    background:
      linear-gradient(180deg, rgba(131, 183, 168, 0.1), rgba(214, 163, 109, 0.08)),
      rgba(255, 255, 255, 0.03);
  }
}

@media (max-width: 900px) {
  .hero,
  .home-hero,
  .about-hero-card,
  .two-column,
  .contact-panel,
  .cv-layout,
  .contact-page,
  .footer-links-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    max-width: 420px;
  }

  .home-hero {
    align-items: start;
  }

  .profile-avatar {
    width: 162px;
    height: 162px;
  }

  .stats-grid,
  .card-grid,
  .home-overview,
  .interest-grid,
  .info-columns,
  .info-columns.two-up,
  .info-strip,
  .compact-timeline,
  .review-journal-list,
  .friend-links,
  .project-detail .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-page {
    column-count: 1;
  }

  .news-hero-panel {
    grid-template-columns: 1fr;
  }

  .news-hero-aside {
    justify-items: start;
    border-left: 0;
    border-top: 1px solid rgba(49, 92, 82, 0.16);
    padding-top: 0.85rem;
    padding-left: 0;
    text-align: left;
  }

  .note-article-layout {
    grid-template-columns: 1fr;
  }

  .note-article-hero {
    grid-template-columns: 1fr;
  }

  .note-article-cover {
    max-width: 560px;
  }

  .note-toc {
    position: static;
  }

  .note-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paper-asset-card.is-portrait,
  .paper-asset-card.is-squareish,
  .paper-asset-card.is-narrow-landscape {
    max-width: 100%;
  }

  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    min-height: 64px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 64px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem;
  }

  .nav-links .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--radius);
    padding: 0.75rem;
  }

  .section-heading.with-link {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding-block: 1rem;
  }

  .footer-unit-logo {
    order: 1;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    min-width: 0;
  }

  .footer-credit {
    order: 2;
    text-align: center;
  }

  .footer-unit-logo img {
    height: 34px;
    max-width: min(220px, 72vw);
  }

  .footer-logo-opengms {
    max-width: min(180px, 72vw);
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .stats-grid,
  .card-grid,
  .home-overview,
  .interest-grid,
  .info-columns,
  .info-columns.two-up,
  .info-strip,
  .compact-timeline,
  .call-paper-card,
  .friend-links,
  .review-journal-list,
  .project-detail .detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    column-count: 1;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

  .note-meta {
    grid-template-columns: 1fr;
  }

  .note-article {
    padding-block: 2.2rem 4rem;
  }

  .note-date {
    min-height: 0;
    grid-auto-flow: column;
    justify-content: start;
    gap: 0.55rem;
    border-right: 0;
    border-bottom: 1px solid rgba(49, 92, 82, 0.1);
    padding: 0.75rem 1rem 0.65rem;
  }

  .note-date span {
    font-size: 1.32rem;
  }

  .note-date small {
    margin-top: 0;
  }

  .note-card-body {
    padding: 1rem;
  }

  .note-thumb {
    margin: 0;
    border-left: 0;
    border-top: 1px solid rgba(49, 92, 82, 0.14);
    border-radius: 0 0 18px 18px;
  }

  .news-section-header {
    align-items: start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .news-pagination {
    justify-content: flex-start;
    gap: 0.3rem;
  }

  .news-pagination button {
    min-width: 1.9rem;
    min-height: 1.9rem;
    font-size: 0.74rem;
  }

  .news-pagination .news-pagination-edge {
    min-width: 3.6rem;
    padding-inline: 0.65rem;
  }

  .wechat-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .wechat-card img {
    width: 64px;
    height: 64px;
  }

  .home-hero {
    padding-block: 1.6rem 2rem;
  }

  .portrait-card {
    justify-self: center;
  }

  .profile-avatar {
    width: 138px;
    height: 138px;
  }

  .quick-facts {
    border-left: 0;
    border-top: 3px solid var(--accent);
    padding-left: 0;
    padding-top: 0.9rem;
  }

  .stats-grid > div {
    min-height: 92px;
  }

  .publication-card {
    min-height: 0;
  }
}
