:root {
  --ink: #1a2230;
  --muted: #5a6275;
  --soft: #f4f6f9;
  --line: #e3e7ee;
  --accent: #2b6cb0;
  --accent-2: #4a90c9;
  --accent-dark: #1e3a5f;
  --panel: #ffffff;
  --shadow: 0 14px 40px rgba(30, 40, 60, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Noto Sans", Arial, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

/* ===== Page layout: sidebar + content ===== */
.page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  max-width: 1420px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding: 40px 28px;
}

.sidebar-inner {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 14px 32px rgba(43, 108, 176, 0.28);
}

.name {
  margin: 18px 0 0;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.name-cn {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.role {
  margin: 12px 0 0;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 500;
  color: var(--accent-dark);
  font-size: 1rem;
}

.affil {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.location {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.social {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: #eaf1f8;
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.side-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.side-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted);
  text-align: left;
}

.side-nav a:hover { background: #eaf1f8; color: var(--accent-dark); }

/* ===== Main content ===== */
.content {
  padding: 48px 52px 60px;
  min-width: 0;
}

section { margin-bottom: 44px; }

.block-title {
  margin: 0 0 18px;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.content p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* ---- Education ---- */
.edu { display: flex; flex-direction: column; gap: 14px; }

.edu-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.edu-school {
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}

.edu-date {
  color: var(--accent);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.edu-degree { color: var(--muted); font-size: 0.92rem; margin-top: -6px; }

/* ---- Research chips ---- */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: #eaf1f8;
  color: var(--accent-dark);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.chip.current {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

/* ---- Publications ---- */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pub {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.pub:last-child { border-bottom: none; padding-bottom: 0; }

.pub-thumb {
  width: 230px;
  height: 132px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30, 40, 60, 0.08);
  cursor: zoom-in;
}

.pub-thumb:hover { border-color: var(--accent-2); }

.pub-thumb::before { content: attr(data-label); }
.pub-thumb.has-image::before { content: none; }

.pub-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.pub-title {
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--ink);
}

.pub-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}
.pub-meta .venue {
  color: var(--accent-dark);
  font-weight: 700;
}

.pub-authors {
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.88rem;
  white-space: nowrap;
}
.pub-desc { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }

.pub-links { margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }

.pub-links a {
  color: var(--accent);
  font-weight: 700;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

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

.figure-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(12, 18, 28, 0.72);
}

.figure-lightbox[aria-hidden="false"] { display: flex; }

.figure-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Footer ===== */
.footer {
  padding: 28px 24px;
  color: var(--muted);
  background: #eef2f7;
  text-align: center;
}
.footer p { margin: 0; font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 36px 24px 28px;
  }
  .sidebar-inner { position: static; }
  .side-nav { display: none; }
  .content { padding: 36px 24px 48px; }
}

@media (max-width: 560px) {
  .pub { grid-template-columns: 1fr; }
  .pub-thumb {
    width: 100%;
    height: 132px;
  }
  .figure-lightbox { padding: 18px; }
}
