/* 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;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.section {
  width: 100%;
  border: 0px;
  border-spacing: 0px;
  border-collapse: separate;
  margin-right: auto;
  margin-left: auto;
}

.box {
  display: inline-block;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 20px;
  vertical-align: middle;
}

.clear {
  clear: both;
}

.left {
  float: left;
  width: 25%;
}

.left img {
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.right {
  float: right;
  width: 75%;
}

#profile {
  flex: 1;
}

#profile_photo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  display: block;
  margin: 0 auto;
}

/* Heading with Blue Bar (like Guangxuan Xiao's site) */
.heading-wrapper {
  display: inline-block;
  position: relative;
}

.heading-wrapper heading {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.2px;
}

.heading-blue-bar {
  display: block;
  width: 100%;
  height: 3.5px;
  background: #1976d2;
  border-radius: 2px;
  margin-top: 6px;
}

/* Social icons bar matching design screenshot */
.social-icons-container {
  text-align: center;
  margin: 20px 0 10px 0;
}

.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 6px;
}

.social-icons-row a,
.social-icons-row .icon-btn {
  color: #111;
  font-size: 30px;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.social-icons-row a:hover,
.social-icons-row .icon-btn:hover {
  color: #555;
  transform: translateY(-2px);
}

.social-icons-row i {
  display: inline-block;
}

.best-by-email {
  font-size: 14px;
  color: #555;
  margin: 4px 0 15px 0;
  text-align: center;
}

/* Publications Tab & Toggle */
.pub-toggle-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 30px;
  margin-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.pub-tabs {
  display: flex;
  gap: 12px;
}

.pub-tab-btn {
  background: #f4f4f5;
  border: 1px solid #e2e8f0;
  color: #4b5563;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pub-tab-btn:hover {
  background: #e2e8f0;
  color: #111;
}

.pub-tab-btn.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.pub-view-all-btn {
  display: block;
  width: fit-content;
  margin: 30px auto 10px auto;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pub-view-all-btn:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* WeChat Modal */
.wechat-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.wechat-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 24px;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  position: relative;
}

.wechat-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  font-weight: bold;
}

.wechat-modal-close:hover {
  color: #000;
}

@media (max-width: 633px) {
  .left {
    display: none;
  }
  .right {
    width: 100%;
  }
  #profile {
    width: 100%;
  }
  #profile_photo {
    display: none;
  }
  .social-icons-row {
    gap: 15px;
  }
  .social-icons-row a,
  .social-icons-row .icon-btn {
    font-size: 24px;
  }
}

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

span.highlight {
  background-color: #ffffd0;
}