:root {
  --text: #2b2b2b;
  --muted: #5a5a5a;
  --accent: #1a73e8;
  --rule: #ececec;
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  max-width: 900px;
  margin: 56px auto;
  padding: 0 32px;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p { margin: 0 0 1em 0; }


/* ---------- Header ---------- */

.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 56px;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}

.header .photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header .name {
  font-size: 2.1em;
  font-weight: 800;
  margin: 0 0 0.5em 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.header .name-zh {
  font-family: "Ma Shan Zheng", "STKaiti", "KaiTi", "Songti SC", "Noto Serif SC", serif;
  font-size: 2em;
  margin: 0 0 0.35em 0;
  line-height: 1.1;
  color: #3a3a3a;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.header .icons {
  display: flex;
  gap: 20px;
  font-size: 1.2em;
  margin-top: 0.8em;
}

.header .icons a {
  color: #4a4a4a;
  transition: color 0.15s ease;
}

.header .icons a:hover { color: var(--accent); }

.header .right { text-align: right; }

.header .role {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}

.header .affil {
  color: var(--muted);
  font-size: 1.2em;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .header {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .header .photo { margin: 0 auto; }
  .header .icons { justify-content: center; }
  .header .right { text-align: center; }
}


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

h2 {
  font-size: 1.35em;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
}

.news, .pubs { font-size: 0.97em; }

.news .item { margin-bottom: 6px; }
.news .date { color: var(--muted); margin-right: 6px; }

.news-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
  border-left: 2px solid var(--rule);
  padding-left: 14px;
}

.pub { margin-bottom: 16px; }
.pub .title { font-weight: 600; color: #111; }
.pub .venue { color: var(--muted); }

.me { font-weight: 700; }

ul.plain { padding-left: 18px; margin: 0 0 1em 0; }
ul.plain li { margin-bottom: 4px; }
