/* ===== Fonts ===== */
@font-face {
  font-family: 'Lato';
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-display: swap;
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
}

/* ===== Theme ===== */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #5f6b7a;
  --border: #e4e7ee;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --accent-hover: #d9480f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 10px 28px rgba(16, 24, 40, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover, a:focus { color: var(--accent-hover); }

strong { font-weight: 700; }

.page {
  max-width: 880px;
  margin: 40px auto;
  padding: 44px 52px 28px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text { flex: 1 1 auto; }
.hero-photo { flex: 0 0 210px; text-align: center; }

.avatar {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-hover);
  transition: transform .25s ease;
}
.avatar:hover { transform: scale(1.03); }

.name {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.zh-name {
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.tagline {
  margin: 6px 0 18px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
}

.interests {
  margin: -6px 0 0;
  padding-left: 22px;
}
.interests li { margin: 4px 0; padding-left: 2px; }
.interests li::marker { color: var(--accent); font-weight: 700; }
@media (max-width: 720px) {
  .interests { text-align: left; }
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: all .15s ease;
}
.pill svg { width: 16px; height: 16px; }
.pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.email-text {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Sections ===== */
section { margin-top: 44px; }

h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.muted { color: var(--muted); }
.small { font-size: 13px; margin-top: -8px; }

/* Research tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 13px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
}

/* News */
.news {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}
.news li {
  display: flex;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}
.news li:last-child { border-bottom: none; }
.news .date {
  flex: 0 0 76px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding-top: 1px;
}

/* Publications */
.paper {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 16px;
  margin: 0 -16px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.paper:hover {
  background: #fbfcff;
  border-color: var(--border);
  box-shadow: var(--shadow-hover);
}
.paper-thumb {
  flex: 0 0 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.paper-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.paper:hover .paper-thumb img { transform: scale(1.04); }

.paper-info { flex: 1 1 auto; font-size: 15px; }
.papertitle {
  display: block;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}
.papertitle:hover { color: var(--accent); }
.authors { color: #3b4654; margin-bottom: 6px; }
.authors strong { color: var(--text); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .35); text-underline-offset: 3px; }
.venue { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.badge {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 4px;
  border-radius: 5px;
  background: #fde8e8;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}
.paper-links a {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.paper-links a:hover { border-color: var(--accent-hover); }

/* Education */
.edu {
  padding: 4px 0 4px 16px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent-soft);
}
.edu-school { font-weight: 700; }

/* Lists */
.plain { margin: 0; padding-left: 20px; }

/* Footer */
footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { font-size: 13px; }

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .page { margin: 0; padding: 28px 20px; border-radius: 0; box-shadow: none; }
  .hero { flex-direction: column-reverse; gap: 20px; text-align: center; }
  .hero-photo { flex-basis: auto; }
  .avatar { width: 160px; height: 160px; }
  .hero-text p { text-align: left; }
  .links { justify-content: center; }
  .hero-text .email-text { text-align: center; }
  .zh-name { display: block; margin: 4px 0 0; }
  .paper { flex-direction: column; align-items: stretch; }
  .paper-thumb { flex-basis: auto; height: 170px; }
  .news li { flex-direction: column; gap: 0; }
  .news .date { flex-basis: auto; }
}
