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

:root {
  --text: #1a1a1a;
  --text-muted: #555;
  --text-light: #888;
  --text-faint: #aaa;
  --accent: #1e40af;
  --surface: #f8f8f6;
  --border: #e5e5e5;
  --max-w: 880px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--max-w);
  width: 90%;
  margin: 0 auto;
  padding: 72px 0 48px;
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  margin-bottom: 48px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.chinese {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 22px;
  margin-left: 4px;
}

.affiliation {
  color: var(--text-muted);
  margin-bottom: 3px;
  font-size: 15px;
}

.links {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.links a {
  font-weight: 500;
}

/* Sections */
section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

section p {
  line-height: 1.75;
  color: #333;
}

/* Projects */
.proj-cat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 24px;
}

.proj-cat:first-of-type {
  margin-top: 0;
}

.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  font-size: 14px;
  color: #555;
  padding: 3px 0;
  line-height: 1.65;
}

.skills-list li strong {
  color: #1a1a1a;
  font-weight: 600;
}

.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0 4px 12px;
  line-height: 1.65;
  border-left: 2px solid transparent;
}

.project-list li:hover {
  border-left-color: var(--border);
}

.project-list li strong {
  color: var(--text);
  font-weight: 600;
}

.project-list li a {
  font-size: 14px;
}

/* Publications */
.pubs {
  list-style: none;
  padding: 0;
}

.pubs li {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.pub-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
  line-height: 1.5;
}

.pub-authors {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pub-venue {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 2px;
}

.pub-links {
  font-size: 13px;
  margin-top: 2px;
}

.pub-links a {
  font-weight: 500;
}

/* Footer */
footer {
  max-width: var(--max-w);
  width: 90%;
  margin: 0 auto;
  padding: 0 0 40px;
  font-size: 13px;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  main {
    padding-top: 40px;
  }

  header h1 {
    font-size: 26px;
  }

  .project-list li:hover {
    border-left-color: transparent;
  }
}
