@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg: #f8f8f7;
  --surface: #ffffff;
  --text: #1f2a33;
  --muted: #5d6973;
  --accent: #0a3a98;
  --accent-soft: #d7ebf5;
  --border: #d9dee3;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 5% 5%, #f2f6f8 0, #f8f8f7 45%, #f7f4f0 100%);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--border);
  padding: 36px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.profile {
  text-align: center;
}

.profile img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 20px rgba(15, 34, 51, 0.12);
}

.profile h1 {
  margin: 14px 0 4px;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.profile .name-zh {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

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

.nav {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.nav a.active,
.nav a:hover {
  background: var(--accent-soft);
  color: #003f5d;
  text-decoration: none;
}

.sidebar-footer {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.sidebar-footer .icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--accent);
}

.sidebar-footer .icon-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.main {
  padding: 40px 34px 56px;
}

.main h2 {
  margin: 0 0 12px;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 2rem;
}

.main h3 {
  margin: 30px 0 8px;
  font-family: "Crimson Pro", Georgia, serif;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 14px rgba(17, 36, 54, 0.06);
}

.badge {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #355064;
  font-size: 0.84rem;
  border: 1px solid #d8e2ea;
}

.news-list,
.simple-list {
  padding-left: 18px;
  margin: 10px 0;
}

.news-list li,
.simple-list li {
  margin: 6px 0;
}

.filter-row {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-label {
  font-weight: 700;
  font-size: 1rem;
  margin-right: 4px;
}

.filter-btn,
.filter-select,
.filter-input {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 1rem;
}

.filter-btn {
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent-soft);
  border-color: #b8d7e8;
  color: #003f5d;
}

.pub-item {
  padding: 14px 0 16px;
  border-bottom: 1px dashed #d8dee4;
}

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

.pub-title {
  font-weight: 600 !important;
  font-size: 1rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.2;
  color: #0a3a98;
  margin-bottom: 4px;
}

.pub-title-link {
  font-weight: 600 !important;
  color: #0a3a98;
  text-decoration: none;
}

.pub-title-link:hover {
  text-decoration: underline;
}

.pub-authors {
  font-size: 1rem;
  color: #141a20;
  margin-bottom: 2px;
}

.pub-authors a {
  color: #0a3a98;
}

.pub-meta {
  color: #161616;
  font-size: 1rem;
  margin-bottom: 2px;
}

.pub-venue-tag {
  color: #048b98;
  font-style: italic;
}

.pub-award {
  color: #b51218;
  font-size: 1rem;
  font-weight: 600;
}

.pub-media {
  margin-top: 2px;
  font-size: 0.95rem;
}

.pub-impact {
  margin-top: 2px;
  font-size: 0.95rem;
}

.pub-media-label {
  color: #161616;
  font-weight: 400;
}

.pub-impact-label {
  color: #161616;
  font-weight: 400;
}

.pub-media a,
.pub-media a:visited,
.pub-media a:hover,
.pub-media a:active {
  color: #b509ac;
  font-weight: 600;
}

.pub-impact a,
.pub-impact a:visited,
.pub-impact a:hover,
.pub-impact a:active {
  color: #b509ac;
  font-weight: 600;
}

.pub-authors sup,
.pub-title sup {
  font-size: 0.9em;
  vertical-align: 0.2em;
}

.pub-links {
  margin-top: 5px;
  font-size: 0.9rem;
}

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

.mobile-bar {
  display: none;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: #f8f8f7;
  }

  .sidebar.open {
    display: block;
  }

  .main {
    padding: 24px 18px 40px;
  }

  .mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(248, 248, 247, 0.9);
    position: sticky;
    top: 0;
    backdrop-filter: blur(4px);
    z-index: 2;
  }

  .mobile-bar button {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 7px 10px;
  }
}
