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

:root {
  --primary-color: #428bca;
  --default-bg: #fff;
}

html {
  color: #373a3c;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  /* 
   * 控制单词的换行行为，可选值有：
   * normal: 使用默认换行规则，仅在空格或连字符等自然位置换行；
   * break-all: 在任意字符间都可以断行（适用于英文或无空格的长字符串）。
   * keep-all: 禁止在单词中间断行（常用于中文或日文，要求整词显示）。
   * break-word: 当内容太长时允许在单词中间断行以防溢出。
   * 其中 break-word 用得最多，它在文本长度合适时类似 normal，在文本过长时又类似 break-all。
   */
  word-break: break-word;
  /* overflow-wrap: break-word; 是标准写法。work-break: break-word; 是兼容写法，两者作用相同。*/
  overflow-wrap: break-word;
}

ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

a {
  text-decoration: none;
  color: #428bca;
  cursor: pointer;
}

section {
  margin-bottom: 3rem;
}

a:hover,
a:active {
  color: #014c8c;
}

body {
  margin: 0;
}

blockquote {
  background-color: #eceeef;
  border-radius: 0.3rem;
  padding: 1.25rem 2rem;
  margin: 0;
}

footer {
  border-top: 1px solid #e5e5e5;
  color: #777;
  font-size: 12px;
  text-align: center;
  padding: 1rem 0;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

h4 {
  font-size: 1.1rem;
  font-weight: normal;
  margin: 0;
}

i {
  font-size: 0.75rem;
  color: #888;
  font-style: normal;
}

p {
  margin: 0 0 1rem;
}

time {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 8px 24px;
  position: sticky;
  top: 0;
  background-color: var(--default-bg);
}

.menu-item a {
  display: inline-block;
  height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: 0.25rem;
  line-height: 2.25rem;
}

.menu-item-selected a {
  background-color: #0275d8;
  color: #fff;
  cursor: default;
}

.page-title {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.page-title h1,
.page-title h2 {
  margin: 0;
}

.page-title h1 {
  font-size: 1.25rem;
}

.page-title h2 {
  font-size: 1rem;
}

.logo {
  height: 3.5rem;
  vertical-align: middle;
}

.page-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 0.875rem;
  padding-top: 1rem;
}

.header-nav {
  display: flex;
  flex: 1;
  user-select: none;
}

.menu-list {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}

.language-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  width: 80px;
  justify-content: flex-end;
  cursor: pointer;
}
.language-switch:hover {
  color: var(--primary-color);
}

.lang-icon {
  width: 18px;
  height: 18px;
}
.lang-text {
  font-size: 14px;
}

.people-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.graduate-student-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ellipsis-1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.people-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  align-items: center;
}
.people-item img,
.people-item .img-placeholder {
  width: 4.375rem;
  height: 4.375rem;
  background-color: #f5f5f5;
  border-radius: 999px;
  vertical-align: middle;
}
.people-item > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.people-item > div > i {
  margin-top: 0.5rem;
}

.alumni-list i {
  margin-left: 0.625rem;
}

.card-list {
  column-count: 1;
  /* column-gap: 1.25rem; */
}

.card-list-item {
  /* 父节点设置了 column-count, 子节点需要设置 display: inline-block; 否则高度无法自动； */
  display: inline-block;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
}

.card-list-item:hover {
  box-shadow: 2px 3px 3px #999;
  border-color: #ccc;
}

.left-area {
  flex: 1;
}
.right-cover {
  width: 240px;
}
.right-cover {
  background-repeat: no-repeat;
  background-size: cover;
}

.card-list-item > .left-area > a {
  color: inherit;
  display: block;
  width: 100%;
  height: auto;
  padding: 1rem;
}
.card-list-item h4 {
  margin-top: 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: bold;
  gap: 1rem;
}
.card-list-item h4 > img {
  height: 3rem;
}
.card-list-item p {
  margin-bottom: 0;
}

.avatar-list {
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-flow: row wrap;
  gap: 0.25rem;
}

.avatar-list-item {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  overflow: hidden;
}

.avatar-list-item img,
.avatar-list-item a {
  width: 100%;
  height: 100%;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  border-color: gray;
}
td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #eceeef;
}

.year {
  font-size: 1rem;
}

.search-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-wrapper input {
  width: 200px;
  height: 28px;
  border-radius: 4px;
  padding: 0 6px;
  outline: none;
  border: 1px solid #999;
}
.search-wrapper input:hover,
.search-wrapper input:focus {
  border-color: var(--primary-color);
}
.search-wrapper > svg {
  width: 1rem;
  color: #666;
  position: relative;
  right: 32px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}
