:root {
  --bg: #e2e8f0;
  --panel-bg: #f8fafc;
  --ink: #2f3e56;
  --muted: #506078;
  --accent: #425c85;
  --accent-strong: #37465f;
  --accent-deep: #2f3e56;
  --accent-soft: #d8e1ee;
  --line: #c9d4e2;
  --shadow: 0 14px 32px rgba(47, 62, 86, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  background:
    radial-gradient(circle at 20% 0%, #eef3f8, transparent 48%),
    radial-gradient(circle at 95% 10%, #d7dfeb, transparent 42%),
    var(--bg);
  color: var(--ink);
  line-height: 1.72;
}

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

.site-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

.sidebar {
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.brand-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.brand-name {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  margin: 0;
  line-height: 1.2;
}

.brand-role {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-link {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.section-link:hover {
  background: #dde5ef;
  transform: translateX(3px);
  text-decoration: none;
}

.section-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent) 100%);
}

.area-nav-block {
  margin-top: 18px;
}

.area-nav-title {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.area-chip {
  border: 1px solid #b9c8da;
  background: #e9eff6;
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.area-chip.active,
.area-chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.sidebar-meta {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 6px;
}

.sidebar-meta a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.content-area {
  display: grid;
  gap: 24px;
  max-width: 1040px;
}

.hero,
.panel {
  background: var(--panel-bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.hero-content h2 {
  margin: 0;
  font-size: 1.4rem;
}

.pronunciation {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.audio-btn {
  margin: 10px 0 12px;
  border: 1px solid var(--line);
  background: #eef3f8;
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 7px 14px;
  cursor: pointer;
}

.audio-btn:hover {
  background: var(--accent-soft);
}

.hero-lead {
  margin: 0 0 16px;
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--accent-deep);
  max-width: 64ch;
}

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

.contact-wide {
  grid-column: 1 / -1;
}

.contact-label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  padding: 24px 26px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-head h2 {
  font-family: "Merriweather", serif;
  margin: 0;
  font-size: 1.62rem;
  color: var(--accent-deep);
}

.panel p,
.timeline-item,
.pub-authors,
.pub-venue,
.eval-links,
.student-list li {
  font-size: 1.03rem;
}

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

.timeline-item {
  border-left: 3px solid #bcc9da;
  padding-left: 12px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

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

.news-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbe3ee;
  color: var(--accent-strong);
  border: 1px solid #bcc9da;
}

.news-icon svg {
  width: 14px;
  height: 14px;
}

.pub-controls {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  background: #edf2f8;
}

.pub-filter-title {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-filter-btn {
  border: 1px solid #b9c8da;
  background: #f9fbfd;
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pub-filter-btn.active,
.pub-filter-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.pub-result-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-groups {
  display: grid;
  gap: 16px;
}

.pub-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #f9fbfd;
}

.pub-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pub-group-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent-deep);
}

.pub-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.pub-list {
  display: grid;
  gap: 12px;
}

.pub-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.pub-item img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.pub-title {
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.pub-authors,
.pub-venue {
  color: #3b4b63;
  font-weight: 400;
  font-style: normal;
}

.author-self {
  font-weight: 700;
  color: #2f3e56;
}

.pub-authors {
  margin-bottom: 6px;
}

.pub-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.pub-group.all-view .pub-group-head {
  display: none;
}

.pub-group.all-view .pub-list {
  gap: 10px;
}

.pub-group.all-view .pub-item {
  border-radius: 8px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.9rem;
  margin-left: 20px;
}

.award-label {
  color: #b3261e;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 6px;
  white-space: nowrap;
}

.pub-links a {
  white-space: nowrap;
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.badge-row img {
  width: auto;
  height: 28px;
  border: none;
}

.teaching-list {
  display: grid;
  gap: 10px;
}

.teaching-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f3f7fb;
}

.teaching-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eval-links {
  color: var(--muted);
  font-size: 0.95rem;
}

.student-list {
  margin: 0;
  padding-left: 20px;
}

.student-list li + li {
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .site-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .sidebar-inner {
    position: static;
    max-height: none;
  }

  .section-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 6px;
  }

  .section-link {
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-photo-wrap {
    max-width: 220px;
  }

  .panel {
    padding: 18px;
  }
}

@media (max-width: 700px) {
  .pub-item {
    grid-template-columns: 1fr;
  }

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