/* Clean single-column style (inspired by jianshu-she.github.io) */
:root {
  --text: #222;
  --muted: #666;
  --link: #0366d6;
  --rule: #e0e0e0;
  --badge-bg: #e6f4ea;
  --badge-fg: #1e7e34;
  --award-bg: #fff4d6;
  --award-fg: #8a5a00;
}
* { box-sizing: border-box; }
body {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 600; }

/* header and navigation */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 6px; }
.site-name { font-weight: 700; font-size: 18px; color: var(--text); }
.site-name:hover { text-decoration: none; }
.site-nav a { margin-left: 18px; color: var(--muted); }
.site-nav a.active { color: var(--text); font-weight: 600; }

/* headings */
h1 { font-size: 34px; line-height: 1.2; margin: 18px 0 16px; }
h2 { font-size: 24px; line-height: 1.3; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 18px; margin: 24px 0 8px; }

/* home page hero: photo + links on the left, About on the right */
.hero { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.hero h2 { margin-top: 0; }
.profile-photo { width: 280px; max-width: 100%; height: auto; border-radius: 6px; display: block; margin-bottom: 10px; }
.affiliation { margin: 0 0 8px; }
.links { margin: 0; line-height: 1.9; }
.links a { margin-right: 14px; white-space: nowrap; }

/* lists */
ul { padding-left: 22px; }
li { margin: 4px 0; }
li > ul { margin: 2px 0; }

/* news */
table.news { border-collapse: collapse; width: 100%; }
.news td { vertical-align: top; padding: 4px 0 10px; }
.news td.news-date { width: 120px; padding-right: 20px; color: var(--muted); font-size: 15px; white-space: nowrap; }

/* publications */
.pub { margin: 0 0 22px; }
.pub-title { font-weight: 600; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--link); text-decoration: none; }
.pub-authors { font-size: 15px; color: #333; }
.pub-venue { font-size: 15px; color: #444; }
.pub-venue .venue { font-style: italic; }
.badge { display: inline-block; font-size: 12px; line-height: 1.6; padding: 0 6px; margin-left: 8px; border-radius: 4px; background: var(--badge-bg); color: var(--badge-fg); }
.badge-award { background: var(--award-bg); color: var(--award-fg); }
.pub-tldr { font-size: 15px; }
.pub-tldr .tldr { color: var(--link); font-weight: 600; }
.pub-links { font-size: 15px; }

.more { margin: 4px 0 0; }
.note { color: var(--muted); font-size: 14px; }

/* footer */
.site-footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
  h1 { font-size: 28px; }
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .profile-photo { width: 240px; }
  .news td.news-date { width: 88px; padding-right: 12px; }
}
