:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 10px;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--blue-300, var(--blue-500));
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--blue-600);
  text-decoration: none;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--blue-100);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.35);
}

.hero-text h1 {
  margin: 0 0 2px;
  font-size: 26px;
  color: var(--ink);
  font-weight: 700;
}

.hero-text .zh {
  font-weight: 400;
  color: var(--muted);
  font-size: 18px;
  margin-left: 8px;
}

.hero-role {
  margin: 4px 0 14px;
  color: var(--blue-700);
  font-size: 15px;
  font-weight: 600;
}

.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.hero-links a:hover {
  color: var(--blue-700);
  border-color: var(--blue-200, var(--blue-100));
  background: var(--blue-50);
  text-decoration: none;
}

.hero-links svg {
  width: 14px;
  height: 14px;
}

/* ---------- Sections ---------- */

section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  margin: 0 0 18px;
}

.section-title::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.bio p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.bio p:last-child {
  margin-bottom: 0;
}

/* ---------- Tags ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 12.5px;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Timeline entries ---------- */

.subgroup + .subgroup {
  margin-top: 22px;
}

.subgroup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.entry {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.entry:last-child {
  border-bottom: none;
}

.entry-main {
  flex: 1;
}

.entry-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.entry-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.entry-date {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 2px;
}

/* ---------- Publications / Awards lists ---------- */

.pub-list, .award-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li, .award-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.pub-list li:last-child, .award-list li:last-child {
  border-bottom: none;
}

.pub-list li::before, .award-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.award-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.award-year {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12.5px;
  padding-top: 2px;
}

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

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 60px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--blue-600);
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 36px;
  }

  .nav-links {
    gap: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-photo {
    width: 88px;
    height: 88px;
  }

  .entry {
    flex-direction: column;
    gap: 2px;
  }

  .award-list li {
    flex-direction: column;
    gap: 2px;
  }
}
