:root {
  --accent: #1772d0;
  --accent-light: rgba(23, 114, 208, 0.06);
  --accent-hover: #f09228;
  --text: #2d3436;
  --text-muted: #636e72;
  --bg: #ffffff;
  --card-bg: #f8f9fa;
  --border: #e9ecef;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --max-width: 880px;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  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');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  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');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  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');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ========== Profile Header ========== */

.profile {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-bottom: 2.5rem;
  margin-bottom: 1rem;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--text);
}

.chinese-name {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.4rem;
  margin-left: 0.25rem;
}

.profile-info p {
  margin: 0 0 0.65rem;
  line-height: 1.7;
}

.profile-photo {
  flex-shrink: 0;
  width: 200px;
}

.profile-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--border), var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-photo img:hover {
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--accent), var(--shadow-hover);
  transform: scale(1.02);
}

/* ========== Social Links ========== */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ========== Section Headings ========== */

section {
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ========== Entry Cards (Papers & Blog) ========== */

.entries {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entry {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.entry:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.entry-img {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-img img {
  width: 100%;
  border-radius: 6px;
}

.entry-content {
  flex: 1;
  min-width: 0;
}

.entry-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.entry-title a {
  color: var(--text);
}

.entry-title a:hover {
  color: var(--accent);
}

.entry-authors {
  margin: 0.3rem 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.entry-venue {
  color: var(--text-muted);
  font-size: 14px;
}

.entry-links {
  margin-top: 0.4rem;
  font-size: 14px;
  line-height: 1.8;
}

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

.entry-date {
  color: var(--text-muted);
  font-size: 13.5px;
  font-style: italic;
  margin-bottom: 0.4rem;
}

.entry-description {
  margin-top: 0.4rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.blog-thumb {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.25rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.blog-thumb .highlight {
  color: #e74c3c;
}

/* ========== Experience Entries ========== */

.exp-entries {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exp-entry {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  align-items: flex-start;
  transition: background 0.25s ease;
}

.exp-entry:hover {
  background: var(--card-bg);
}

.exp-logo {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
}

.exp-logo img {
  width: 100%;
}

.exp-details {
  flex: 1;
}

.exp-details h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--text);
}

.exp-period {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 0.6rem;
}

.exp-role {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 0.15rem;
}

.exp-location {
  color: var(--text-muted);
  font-size: 13.5px;
}

.exp-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 0.3rem;
}

.exp-thesis {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ========== Awards ========== */

.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.awards-list li {
  padding: 0.6rem 0 0.6rem 1.25rem;
  border-left: 3px solid var(--border);
  margin-bottom: 0.35rem;
  font-size: 14.5px;
  transition: border-color 0.2s ease, padding-left 0.2s ease;
}

.awards-list li:hover {
  border-left-color: var(--accent);
  padding-left: 1.5rem;
}

.award-year {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 0.5rem;
}

/* ========== Footer ========== */

footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent);
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.25rem;
  }

  .profile {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
    align-items: center;
  }

  .profile-photo {
    width: auto;
  }

  .profile-photo img {
    width: 150px;
    height: 150px;
  }

  .profile-info h1 {
    font-size: 1.7rem;
  }

  .chinese-name {
    font-size: 1.2rem;
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .social-links {
    justify-content: center;
  }

  .entry {
    flex-direction: column;
    gap: 0.75rem;
  }

  .entry-img {
    width: 100%;
    max-width: 280px;
  }

  .exp-entry {
    gap: 1rem;
  }

  .exp-logo {
    width: 56px;
  }

  .section-heading {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .profile-photo img {
    width: 130px;
    height: 130px;
  }

  .profile-info h1 {
    font-size: 1.5rem;
  }

  .entry {
    padding: 0.75rem;
  }

  .entry-img {
    max-width: 220px;
  }

  .exp-entry {
    gap: 0.75rem;
  }

  .exp-logo {
    width: 48px;
  }

  .social-links a {
    padding: 0.3rem 0.75rem;
    font-size: 12.5px;
  }
}
