:root {
  --text: #1f2933;
  --muted: #52606d;
  --link: #1a5f9e;
  --link-hover: #0f3f6b;
  --border: #d9e2ec;
  --box: #f5f7fa;
  --surface: #ffffff;
  --accent: #1f6f78;
  --venue: #9b3b3b;
  --news-date: #1f6f78;
  --max: 880px;
  --shadow: 0 8px 28px rgba(31, 41, 51, 0.06);
  --font-sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 40% at 10% -5%, rgba(31, 111, 120, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 35% at 100% 0%, rgba(26, 95, 158, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  min-height: 100vh;
  padding-top: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(31, 41, 51, 0.04);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.topbar-brand:hover,
.topbar-brand:visited {
  color: var(--text);
  text-decoration: none;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
}

.topbar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.topbar-nav a:hover,
.topbar-nav a:visited {
  color: var(--link);
  text-decoration: none;
}

.topbar-nav a:hover {
  background: rgba(26, 95, 158, 0.1);
}

.page {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.25rem auto 2.5rem;
  padding: 2rem 2rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.profile {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 132px;
  height: 168px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #e4e7eb;
  box-shadow: 0 4px 14px rgba(31, 41, 51, 0.08);
}

.profile-text h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.profile-text .cn {
  font-weight: 500;
  color: var(--muted);
  font-size: 1.2rem;
  margin-left: 0.15rem;
}

.profile-text .title {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #eef1f4;
  color: #3d4a54;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-btn svg {
  flex-shrink: 0;
}

.social-btn:hover,
.social-btn:visited {
  color: #1f2933;
  background: #e4e9ee;
  text-decoration: none;
  border-color: #d0d7de;
}

section {
  margin-bottom: 2rem;
  scroll-margin-top: 4.2rem;
}

h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(31, 111, 120, 0.2);
}

h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.box {
  background: var(--box);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.05rem 1.2rem;
}

.box p {
  margin: 0 0 0.85rem;
}

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

.note {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.news li {
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}

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

.news li:first-child {
  padding-top: 0;
}

.news time {
  color: var(--news-date);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.pub-grid {
  display: grid;
  gap: 0.85rem;
}

.pub-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 41, 51, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  border-color: rgba(31, 111, 120, 0.35);
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.07);
}

.pub-card--text {
  grid-template-columns: 1fr;
}

.pub-thumb {
  width: 148px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #eef2f6;
}

.pub-body {
  min-width: 0;
}

.pub-body .ptitle {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}

.pub-body .authors {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pub-body .blurb {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pub-body .meta {
  margin: 0;
  font-size: 0.88rem;
}

.venue {
  color: var(--venue);
  font-weight: 650;
}

.awards {
  margin: 0;
  padding-left: 1.35rem;
}

.awards li {
  margin-bottom: 0.5rem;
}

footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .topbar-nav {
    gap: 0;
  }

  .topbar-nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0.45rem;
  }

  .page {
    margin: 0.75rem auto 1.5rem;
    padding: 1.25rem 1.1rem 1.75rem;
    border-radius: 12px;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar {
    width: 112px;
    height: 144px;
  }

  .social {
    justify-content: center;
  }

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

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

  .pub-thumb {
    width: 100%;
    height: 140px;
  }
}
