:root {
  --bg-1: #eef4ff;
  --bg-2: #f8f2ff;
  --bg-3: #f8fbff;

  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(255, 255, 255, 0.45);

  --text: #18212f;
  --muted: #5d6b82;
  --soft: #8a96ab;

  --primary: #4f6df5;
  --primary-dark: #2f4dd8;

  --shadow-lg: 0 18px 50px rgba(43, 61, 103, 0.12);
  --shadow-md: 0 10px 28px rgba(43, 61, 103, 0.08);

  --radius-xl: 26px;
}

/* 2026 unified refinement */
:root {
  --ink: #182129;
  --muted: #5e6a73;
  --soft: #83909a;
  --primary: #345d73;
  --primary-dark: #234759;
  --paper: #f7f7f4;
  --card: rgba(255, 255, 252, .84);
  --border: rgba(31, 47, 55, .11);
  --radius-xl: 18px;
  --shadow-md: 0 12px 36px rgba(32, 46, 52, .055);
}

html { scroll-behavior: smooth; background: var(--paper); }
body {
  color: var(--ink);
  background: linear-gradient(180deg, #f5f6f3 0, #fafaf8 42%, #f4f5f2 100%);
  font-family: Inter, "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s ease, transform .35s ease;
}
body.page-ready { opacity: 1; transform: none; }
body.page-leaving { opacity: 0; transform: translateY(-3px); }
body::before, body::after { opacity: .24; filter: saturate(.55); }

.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: 68px;
  background: rgba(247, 247, 244, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.nav-container { max-width: 1040px; height: 100%; padding: 0 24px; }
.nav-name { font-family: Georgia, "Noto Serif SC", serif; font-weight: 600; letter-spacing: .025em; }
.nav-actions, .nav-links { display: flex; align-items: center; }
.nav-actions { gap: 16px; }
.nav-links { gap: 2px; }
.nav-links a { position: relative; padding: 8px 11px; border-radius: 8px; font-size: .88rem; font-weight: 560; }
.nav-links a.active { color: var(--ink); background: transparent; box-shadow: none; }
.nav-links a.active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1.5px; background: var(--primary); }
.nav-links a:hover { background: rgba(48, 81, 96, .06); }
.language-toggle { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.56); color: var(--soft); cursor: pointer; font: inherit; font-size: .72rem; }
.language-toggle i { width: 1px; height: 11px; background: var(--border); }
.language-toggle span { transition: color .2s ease, font-weight .2s ease; }
.language-toggle span.active { color: var(--primary-dark); font-weight: 800; }

.container, .page-container { max-width: 1040px; }
header, section { border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.home-hero { padding: 42px; grid-template-columns: 214px 1fr; gap: 42px; }
.profile-photo { width: 190px; height: 190px; border-radius: 13px; box-shadow: 0 10px 30px rgba(31, 43, 49, .12); }
h1 { font-family: Georgia, "Noto Serif SC", serif; font-weight: 500; font-size: clamp(2.25rem, 4vw, 3.3rem); }
.subtitle { line-height: 1.72; }
section { padding: 28px 30px; margin-top: 18px; }
section h2 { margin-bottom: 18px; padding-left: 0; font-family: Georgia, "Noto Serif SC", serif; font-weight: 500; font-size: 1.5rem; }
section h2::before { display: none; }
.intro-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intro-card { padding: 16px; border-radius: 12px; box-shadow: none; border-color: var(--border); }
.intro-label { padding: 0; background: none; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; }
.news-list li { padding: 10px 0; }
.compact-publications li { margin-bottom: 11px; }

.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 15px; }
.section-heading-row h2 { margin: 3px 0 0; }
.section-kicker { color: var(--primary); font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.service-count { display: flex; align-items: baseline; gap: 7px; color: var(--soft); font-size: .78rem; white-space: nowrap; }
.service-count strong { color: var(--primary-dark); font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.service-list li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.service-journal { font-weight: 650; }
.service-years { color: var(--soft); font-variant-numeric: tabular-nums; }
.service-note { margin: 10px 0 0; color: var(--soft); font-size: .8rem; }

.site-footer { padding: 30px 16px 44px; }
@media (max-width: 760px) {
  .site-nav { height: 62px; }
  .nav-container { flex-direction: row; align-items: center; padding: 0 15px; gap: 10px; }
  .nav-name { font-size: .94rem; white-space: nowrap; }
  .nav-actions { gap: 5px; margin-left: auto; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 6px; font-size: .76rem; }
  .nav-links a.active::after { left: 6px; right: 6px; }
  .language-toggle { gap: 4px; padding: 4px 6px; font-size: .66rem; }
  .container, .page-container { padding: 22px 13px 45px; }
  .home-hero { padding: 25px 20px; gap: 21px; }
  .intro-grid { grid-template-columns: 1fr; }
  section { padding: 22px 18px; }
  .section-heading-row { align-items: flex-start; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 20%, rgba(125, 171, 255, 0.25), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(173, 127, 255, 0.20), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(104, 211, 255, 0.18), transparent 26%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
}

body::before {
  width: 280px;
  height: 280px;
  top: 80px;
  left: -60px;
  background: #96b8ff;
}

body::after {
  width: 340px;
  height: 340px;
  right: -100px;
  top: 280px;
  background: #d6a3ff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

strong {
  color: #101828;
}

em {
  color: #334155;
}

/* ---------------------------Layout--------------------------- */

.container,
.page-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 46px 24px 80px;
}

/* Header */

header {
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 44px 42px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle, rgba(133, 164, 255, 0.25), transparent 68%);
}

header::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  left: -60px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(198, 147, 255, 0.18), transparent 68%);
}

/* ---------------------------Navigation--------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.nav-name:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  background: rgba(79, 109, 245, 0.08);
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-links a.active {
  background: linear-gradient(135deg, #4f6df5, #7c5cff);
  color: white;
  box-shadow: 0 8px 20px rgba(79, 109, 245, 0.22);
}

/* ---------------------------Homepage hero--------------------------- */

.home-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.hero-photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 34px rgba(43, 61, 103, 0.14);
  background: rgba(255, 255, 255, 0.6);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-links a {
  color: var(--primary-dark);
}

.hero-links a:hover {
  text-decoration: underline;
}

.hero-links span {
  color: var(--soft);
  font-weight: 500;
}

.hero-intro {
  position: relative;
  z-index: 1;
}

.hero-intro h1 {
  margin-bottom: 10px;
}

.hero-intro .subtitle {
  margin-top: 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.subtitle {
  margin: 0;
  max-width: 780px;
  font-size: 1.06rem;
  color: var(--muted);
}

.affiliation {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 109, 245, 0.10);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------------------------Normal sections--------------------------- */

section {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 34px;
  margin-top: 26px;
}

section h2 {
  margin: 0 0 24px;
  font-size: 1.65rem;
  line-height: 1.2;
  color: #0f172a;
  position: relative;
  padding-left: 16px;
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 1.2em;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f6df5, #8b5cf6);
}

section h3 {
  color: #172033;
  margin-top: 24px;
}

/* ---------------------------Intro--------------------------- */

.intro-section {
  padding: 34px;
}

.intro-lead {
  margin: 0 0 22px;
  max-width: 860px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.intro-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 22px rgba(43, 61, 103, 0.05);
}

.intro-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 109, 245, 0.09);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.intro-card p {
  margin: 0;
  color: #445066;
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ---------------------------News section--------------------------- */

.news-section {
  padding: 30px 34px;
}

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

.news-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

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

.news-date {
  color: black;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.news-text {
  color: #334155;
  line-height: 1.6;
}

.news-text a {
  font-weight: 700;
  margin-left: 4px;
}

@media (max-width: 700px) {
  .news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* ---------------------------Selected publications--------------------------- */

.compact-publications {
  padding-left: 1.2rem;
}

.compact-publications li {
  margin-bottom: 14px;
  line-height: 1.35;
}

.pub-title-line {
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.pub-title-line a {
  color: #111827;
  text-decoration: none;
}

.pub-title-line a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.pub-author-line {
  color: #445066;
  font-size: 0.94rem;
  margin-bottom: 1px;
}

.pub-info-line {
  color: var(--soft);
  font-size: 0.9rem;
}

.pub-highlight {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------------------------Footer--------------------------- */

.site-footer {
  text-align: center;
  color: #7d889b;
  padding: 28px 16px 50px;
  font-size: 0.94rem;
}

/* ---------------------------Mobile--------------------------- */

@media (max-width: 760px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .container,
  .page-container {
    padding: 28px 16px 56px;
  }

  header,
  section {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 24px;
  }

  .hero-photo-block {
    align-items: flex-start;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 24px;
  }

  .hero-links {
    justify-content: flex-start;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-card {
    padding: 16px;
  }
}
