/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --text: #222222;
  --text2: #555555;
  --accent: #2563eb;
  --border: #e5e7eb;
  --card-bg: #f9fafb;
  --max-w: 820px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== Nav ===== */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-name { font-weight: 700; color: var(--text); font-size: 16px; }
.nav-links a { margin-left: 20px; color: var(--text2); font-size: 14px; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ===== Main ===== */
main {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px 60px;
}

section { margin-top: 48px; }
h2 {
  font-size: 20px; font-weight: 700;
  padding-bottom: 8px; margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ===== About ===== */
.about { margin-top: 36px; }
.about-grid {
  display: flex; gap: 32px; align-items: flex-start;
}
.avatar { flex-shrink: 0; }
.avatar img {
  width: 160px; height: 160px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--border);
}
.bio h1 { font-size: 26px; line-height: 1.3; }
.name-cn { font-size: 18px; font-weight: 400; color: var(--text2); }
.bio .title { color: var(--text2); margin-top: 4px; }
.bio .affiliation { color: var(--text2); font-size: 14px; margin-top: 4px; }
.bio .affiliation a { color: var(--text2); }
.bio .affiliation a:hover { color: var(--accent); }
.bio .intro { margin-top: 12px; }
.links { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.links a {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 13px; color: var(--text2); transition: all 0.15s;
}
.links a:hover {
  border-color: var(--accent); color: var(--accent); text-decoration: none;
}

/* ===== News ===== */
.news-list { list-style: none; }
.news-list li {
  padding: 6px 0; font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.date {
  display: inline-block; width: 72px;
  font-weight: 600; color: var(--accent); font-size: 13px;
}

/* ===== Publications ===== */
.pub {
  display: flex; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.pub:last-child { border-bottom: none; }
.pub-img { flex-shrink: 0; }
.pub-img img {
  width: 180px; height: 110px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--border);
}
.pub-title { font-weight: 600; font-size: 15px; line-height: 1.4; }
.pub-authors { font-size: 13px; color: var(--text2); margin-top: 4px; }
.pub-venue { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.pub-links { margin-top: 8px; display: flex; gap: 10px; }
.pub-links a {
  font-size: 12px; padding: 2px 10px;
  border: 1px solid var(--border); border-radius: 3px;
  color: var(--text2);
}
.pub-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ===== Projects ===== */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; background: var(--card-bg);
}
.project-card img {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 4px; margin-bottom: 12px;
}
.project-card h3 { font-size: 15px; margin-bottom: 6px; }
.project-card p { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.project-card a { font-size: 13px; }

/* ===== Experience ===== */
.exp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.exp-block-title {
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text2);
  margin-bottom: 16px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.exp-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px;
}
.exp-logo {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 8px; border: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--card-bg);
}
.exp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.exp-role { font-weight: 600; font-size: 14px; line-height: 1.3; }
.exp-org { font-size: 13px; color: var(--text2); }
.exp-meta { font-size: 12px; color: var(--text2); font-style: italic; }
.exp-date { font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 2px; }

/* ===== Footer ===== */
footer {
  text-align: center; padding: 24px;
  font-size: 13px; color: var(--text2);
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .about-grid { flex-direction: column; align-items: center; text-align: center; }
  .links { justify-content: center; }
  .pub { flex-direction: column; }
  .pub-img img { width: 100%; height: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
}
