/* ===== Base ===== */
:root {
  --primary: #1a5276;
  --primary-dark: #154360;
  --accent: #2e86c1;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --bg: #ffffff;
  --bg-alt: #f8f9f9;
  --border: #e5e8e8;
  --max-width: 860px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; text-decoration: none; }

/* ===== Hero ===== */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.subtitle {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.tagline {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.contact-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.contact-links a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ===== Sections ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

section { padding: 2rem 0 1rem; }

section h2 {
  color: var(--primary);
  font-size: 1.45rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

section p { margin-bottom: 0.8rem; }

.section-note {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: -0.6rem;
}

/* ===== Entries ===== */
.entry { margin-bottom: 1.6rem; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.entry-head h3 { font-size: 1.08rem; color: var(--text); }

.date {
  color: var(--text-light);
  font-size: 0.92rem;
  white-space: nowrap;
}

.entry-sub {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.entry ul {
  margin-left: 1.3rem;
  margin-top: 0.3rem;
}

.entry ul li { margin-bottom: 0.3rem; }

/* ===== Publications ===== */
.pub-list {
  margin-left: 1.4rem;
}

.pub-list li { margin-bottom: 1.1rem; }

.pub-title { font-weight: 600; color: var(--text); }

.pub-venue {
  color: var(--text-light);
  font-style: italic;
}

/* ===== Awards ===== */
.award-list { list-style: none; }

.award-list li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border);
}

.award-name { font-weight: 600; }

.date-inline {
  color: var(--text-light);
  font-size: 0.92rem;
  float: right;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .contact-links { justify-content: center; }
  .nav-inner { justify-content: center; gap: 0.5rem; }
  .date-inline { float: none; display: block; }
}
