@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --tsinghua-purple: #660874;
  --tsinghua-purple-700: #4c0758;
  --tsinghua-purple-500: #82318e;
  --ink: #191a1a;
  --muted: #5f6064;
  --page: #f7f7f4;
  --panel: #ffffff;
  --panel-tint: #faf7fb;
  --line: #e4e1e6;
  --line-soft: #ece9ee;
  --shadow: 0 8px 24px rgba(25, 26, 26, 0.045);
}

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

/* 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: var(--tsinghua-purple);
  text-decoration: none;
}

a:focus,
a:hover {
  color: var(--tsinghua-purple-500);
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px
}

body {
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  padding: 28px 14px 48px;
}

.site-shell {
  max-width: 1040px !important;
}

.profile-card {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 10px !important;
  padding: 42px 34px !important;
  width: 100% !important;
}

.profile-card h2 {
  color: var(--ink) !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  margin-top: 0 !important;
}

.profile-card p {
  color: var(--muted) !important;
}

.profile-card a {
  color: var(--tsinghua-purple) !important;
}

.profile-card a:hover {
  color: var(--tsinghua-purple-500) !important;
}

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

heading {
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

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

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

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

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

img {
  border-radius: 6px;
}

.research-topic {
  border-top: 1px solid var(--line-soft);
  margin: 0;
  overflow: hidden;
  padding: 24px 0 10px;
  width: 100%;
}

.research-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tsinghua-purple);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 20px;
  padding: 0 20px 10px;
  width: calc(100% - 40px);
}

.research-panel .research-topic:first-child {
  border-top: 0;
}

.info-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tsinghua-purple);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  padding: 20px;
  width: 100%;
}

.research-intro-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tsinghua-purple);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  padding: 20px;
  width: 100%;
}

.research-intro-panel heading {
  display: block;
  margin-bottom: 10px;
}

.research-intro-panel b {
  background: var(--panel-tint) !important;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--tsinghua-purple);
  display: inline-block;
  margin: 3px 2px;
  padding: 3px 8px;
}

.info-panel heading {
  display: block;
  margin-bottom: 14px;
}

.info-panel p {
  margin: 8px 0;
}

.research-topic h3 {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.research-topic table {
  width: 100%;
}

.research-topic tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.research-topic tr:hover {
  background-color: var(--panel-tint);
}

.title {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.mb-2 {
  color: var(--muted);
  margin-bottom: 7px;
}

.news-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tsinghua-purple);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
  width: 100%;
}

.news-header {
  align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  gap: 12px;
}

.news-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.news-phase {
  margin: 2px 0 8px;
}

.news-phase-title {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
}

.news-phase-title::after {
  background: var(--line-soft);
  content: "";
  flex: 1;
  height: 1px;
}

.news-item {
  align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
  column-gap: 12px;
  display: grid;
  grid-template-columns: 86px 74px 1fr;
  line-height: 1.45;
  padding: 9px 0;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item.featured {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 2px 0 6px;
  padding: 10px 12px;
}

.news-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.news-badge {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--tsinghua-purple);
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  text-align: center;
  white-space: nowrap;
}

.news-text {
  color: var(--ink);
}

.news-archive {
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
  padding-top: 10px;
}

.news-archive summary {
  color: var(--tsinghua-purple);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style-position: outside;
  padding: 5px 0;
}

.news-archive summary:hover {
  color: var(--tsinghua-purple-500);
}

.archive-list {
  margin-top: 6px;
}

.profile-nav {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tsinghua-purple);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  column-gap: 42px;
  justify-content: flex-start;
  padding: 18px 20px;
  row-gap: 14px;
  width: 100%;
}

.profile-nav a {
  color: var(--tsinghua-purple);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 0 4px;
  position: relative;
}

.profile-nav a::after {
  background: var(--tsinghua-purple);
  bottom: -5px;
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.18s ease;
  width: 100%;
}

.profile-nav a:hover {
  color: var(--tsinghua-purple-700);
}

.profile-nav a:hover::after {
  opacity: 1;
}

.recruiting-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tsinghua-purple);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: hidden;
  padding: 34px;
  width: 100%;
}

.recruiting-eyebrow {
  color: var(--tsinghua-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.recruiting-hero {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 22px;
  padding-bottom: 24px;
}

.recruiting-hero h2 {
  color: var(--tsinghua-purple);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 14px;
}

.recruiting-hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.direction-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.direction-card {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.direction-number {
  color: var(--tsinghua-purple);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.direction-card h3,
.requirements-panel h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.direction-card p,
.requirements-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.requirements-panel {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 22px;
  grid-template-columns: 0.85fr 1.15fr;
  margin-top: 12px;
  padding: 22px;
}

.requirements-panel h3 {
  color: var(--ink);
}

.requirements-panel p {
  color: var(--muted);
}

.requirements-list {
  margin: 0;
  padding-left: 18px;
}

.requirements-list li {
  margin-bottom: 8px;
}

.recruiting-link {
  align-self: end;
  background: var(--tsinghua-purple);
  border-radius: 999px;
  color: #ffffff;
  display: inline-block;
  font-weight: 700;
  justify-self: start;
  padding: 9px 14px;
}

.recruiting-link:hover {
  background: var(--tsinghua-purple-700);
  color: #ffffff;
}

#avatar {
  background-image: url("assets/images/wdeng.jpg");
  background-repeat: no-repeat;
  background-size: 180px 180px;
  background-position: center;
}

#avatar:hover {
  /*filter: brightness(80%);*/
  background-image: url("assets/images/dwj.jpg");
}

@media (max-width: 640px) {
  body {
    padding: 12px 8px 32px;
  }

  .profile-card {
    padding: 22px 16px !important;
  }

  .news-panel {
    padding: 14px;
  }

  .research-topic {
    margin: 0;
    width: 100%;
  }

  .research-panel {
    margin: 12px 8px;
    padding: 0 14px 8px;
    width: calc(100% - 16px);
  }

  .news-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .news-item,
  .news-item.featured {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .news-badge {
    justify-self: start;
  }

  .profile-nav {
    column-gap: 20px;
    justify-content: flex-start;
    padding: 14px;
  }

  .profile-nav a {
    font-size: 14px;
  }

  .recruiting-panel {
    padding: 22px 16px;
  }

  .recruiting-hero h2 {
    font-size: 28px;
  }

  .direction-grid,
  .requirements-panel {
    grid-template-columns: 1fr;
  }
}
