:root {
  --link-color: #1a73e8;
  --link-hover: #dd6b20;
  --text-color: #1a1a1a;
  --highlight: #eef6f6;
}

html {
  -webkit-text-size-adjust: 100%;
}

body,
td,
th,
tr,
p,
a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

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

strong {
  font-weight: 700;
}

em {
  color: #555555;
  font-style: italic;
}

h2 {
  margin: 0;
  font-weight: 400;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
}

.name {
  padding-top: 16px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 38px;
  font-weight: 400;
}

.email {
  text-align: center;
  color: #555555;
  font-size: 18px;
  margin: 6px 0 0;
}

.name .zh {
  font-size: 38px;
  margin-left: 6px;
}

/* News list */
.news p {
  margin: 4px 0;
}

.news .date {
  display: inline-block;
  min-width: 66px;
  color: #333333;
  font-weight: 500;
}

/* Publications: slightly smaller text */
.pub {
  font-size: 15px;
  line-height: 1.5;
}

.papertitle {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

/* Highlighted (first / co-first authored) papers */
tr.highlight td {
  background-color: var(--highlight);
}

tr.highlight td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

tr.highlight td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Profile photo: spins a half-turn on hover (direction chosen randomly in JS). */
#profile-photo {
  transition: transform 0.7s ease-in-out;
}

.thumb {
  width: 100%;
  max-width: 192px;
  border-radius: 8px;
}

.thumb-placeholder {
  width: 100%;
  max-width: 192px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef2f7, #d9e2ec);
  color: #486581;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
}
