/* Set general fonts */
html,
h2,
h3,
h4,
h5,
h6,
a,
span,
div,
p,
th,
td {
  font-family: "PT Serif", "Quicksand", 'Hiragino Sans GB', Tahoma, Helvetica, Arial, sans-serif;
}

body,
p,
.about p,
.news p,
.papers p,
.description p {
  font-family: 'PT Serif', serif;
}

/* Headings */
h1 {
  font-family: 'Hiragino Sans GB', sans-serif;
  font-weight: 700;
  color: #996600;
}

h1.text-center {
  font-size: 22px;
  font-weight: 700;
}

a:link,
a:visited {
  /* color: #008b96; */
}

/* Navbar */
.navbar {
  background: white;
}

.navbar .navbar-collapse {
  margin: 0px 7%;
}

.navbar-nav .nav-item {
  width: auto;
}

.navbar-nav .nav-link {
  display: inline-block;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.nav-link,
.navbar-brand {
  color: grey;
  cursor: pointer;
  padding: 8px;
}

.nav-link {
  margin-right: 1em !important;
}

.nav-link:hover,
.navbar-brand:hover {
  background-color: #003366;
  color: #f4f4f4;
  border-radius: 5px;
}

.navbar-collapse {
  justify-content: flex-end;
}

.fa-bars {
  margin-top: 5px;
  color: grey;
}

/* Header */
.header {
  background-image: url("finalCover.jpeg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  text-align: center;
  display: block;
}

/* Description section */
.description img {
  width: 180px;
  height: auto;
  margin-top: 40px;
}

.about .description h1 {
  color: #414042;
  font-weight: bold;
  font-size: 150%;
  margin-top: 20px;
}

.about .description p {
  color: #1c1c1c;
  font-size: 16px;
  margin: 5px 0;
}

.description h6 {
  color: #1c1c1c;
  font-size: 14px;
}

.arrow {
  color: black;
  height: 1000%;
  margin: auto;
}

.description button {
  background: #317191;
  color: #fff;
  font-size: 15px;
  margin: 70px 0;
  box-shadow: 2px 2px 4px #383838;
}

.description .btn a {
  color: white;
}

.description .btn a:hover {
  color: #d8d8d8;
  text-decoration: none;
}

/* About section */
.about {
  margin: 30px 10%;
}

.about h1 {
  margin: 2em 0 1em;
  font-family: 'PT Serif', serif;
}

.about p {
  margin-top: 10%;
}

.about a {
  display: inline;
}

/* News section */
.news {
  margin: 0 10%;
}

.news h1 {
  margin: 2em 0 1em;
  font-family: 'PT Serif', serif;
}

.news a {
  display: inline;
}

.responsive {
  width: 100%;
  height: auto;
}

/* Papers */
.papers {
  margin: 10px 10%;
  position: relative;
}

.papers h1 {
  margin: 2em 0 1em;
  font-family: 'PT Serif', serif;
}

.papers h4 {
  margin: 0px 0px 30px;
  font-weight: bold;
  color: grey;
  font-size: 180%;
}

.papers h5 {
  font-family: 'Hiragino Sans GB', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.papers h6 {
  font-size: 14px;
}

.paper h8 {
  font-size: 16px;
  color: rgb(16, 125, 180);
  font-style: italic;
  font-weight: bolder;
}

.paper p {
  font-size: 15px;
  margin: 0 0 6px;
  font-family: 'PT Serif', serif;
}

.paper span,
.about span {
  font-family: 'Hiragino Sans GB', sans-serif !important;
  display: inline;
  font-weight: bold;
  font-size: 14px;
}

.papers a {
  display: inline;
}

/* Buttons */
.btn {
  font-family: 'Hiragino Sans GB', sans-serif;
  padding: 2px 4px !important;
  height: 20px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.btn-primary.arxiv {
  background: #dc3545;
  border-color: #dc3545;
}

.btn-primary.circ {
  background: #28A745;
  border-color: #28A745;
}

.btn-primary.github {
  background: #343a40;
  border-color: #343a40;
}

.btn-outline-primary.arxiv {
  border-color: #dc3545;
  color: #dc3545;
}

.btn-outline-primary.circ {
  border-color: #28A745;
  color: #28A745;
}

.btn-outline-primary.github {
  border-color: #343a40;
  color: #343a40;
}

.btn-outline-primary.blog {
  border-color: #00adbb;
  color: #00adbb;
}

.btn-outline-primary.talk {
  border-color: #003366;
  color: #003366;
}

.btn-outline-primary.slides {
  border-color: #0484c9;
  color: #0484c9;
}

/* Footer */
.featurette-divider {
  margin: 30px 10% 40px 10%;
}

.footer a {
  color: grey;
  text-decoration: underline;
}

.flex-container {
  margin: 30px 10%;
  display: flex;
  justify-content: space-between;
}

.flex-container .footer_link {
  color: #317191;
}

.visiting-table-container {
  overflow-x: auto;
  /* 核心：在内容溢出时启用水平滚动 */
  -webkit-overflow-scrolling: touch;
  /* 为移动设备提供流畅的滚动体验 */
  margin: 2rem 10%;
  /* 与页面其他部分 (.news, .papers) 的外边距保持一致 */
  border-radius: 8px;
  /* 圆角设计，增加现代感 */
  border: 1px solid #e9ecef;
  /* 使用更柔和的边框颜色 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  /* 稍微增强阴影，提升立体感 */
}

/* 2. 表格基础样式 */
.table-visiting {
  width: 100%;
  /* 表格宽度充满容器 */
  border-collapse: collapse;
  /* 移除单元格间距，使边框合并 */
  margin-bottom: 0;
  /* 移除 Bootstrap 可能添加的默认下外边距 */
}

/* 3. 表头 (thead) 样式 */
.table-visiting thead th {
  background-color: #f8f9fa;
  /* 清爽的浅灰色表头背景 */
  border-bottom: 2px solid #996600;
  /* 沿用你的主题色作为视觉强调 */
  padding: 1rem 1.2rem;
  /* 增加左右内边距，让内容更舒展 */
  font-weight: 700;
  /* 加粗字体 */
  color: #212529;
  /* 更深的标题颜色，提高对比度 */
  text-align: left;
  /* 文本左对齐 */
  white-space: nowrap;
  /* 防止表头文字换行 */
  font-family: 'Hiragino Sans GB', sans-serif;
}

/* 4. 表格主体 (tbody) 样式 */
.table-visiting tbody td {
  padding: 0.85rem 1.2rem;
  /* 调整内边距，与表头对齐 */
  vertical-align: middle;
  /* 垂直居中对齐 */
  border-top: 1px solid #e9ecef;
  /* 使用柔和的颜色作为行分隔线 */
  color: #495057;
  /* 为正文设置柔和的字体颜色 */
}

/* 斑马条纹：奇数行（比偶数行更直观）*/
.table-visiting tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
  /* 为奇数行设置非常淡的背景色 */
}

/* 鼠标悬停高亮 */
.table-visiting tbody tr:hover {
  background-color: rgba(153, 102, 0, 0.08);
  /* 使用主题色的半透明颜色作为高亮 */
  cursor: default;
}

/* 5. 列的特定行为控制 (Column-specific behaviors) */

/* 年份列 (Year) - 第2列 */
.table-visiting th:nth-child(2),
.table-visiting td:nth-child(2) {
  text-align: center;
  width: 100px;
  /* 你原来的设定保留 */
  white-space: nowrap;
  /* 关键：不换行 */
  font-variant-numeric: tabular-nums;
  /* 数字等宽，更整齐 */
  font-size: clamp(0.9rem, 1.6vw + 0.2rem, 1rem);
  /* 小屏稍微变小 */
  line-height: 1.2;
}

/* 职位列 (Position) - 第3列 */
.table-visiting td:nth-child(3) {
  /* 这一列内容可能很长，让它可以自然换行 */
  white-space: normal;
}

@media (max-width: 768px) {

  .visiting-table-container {
    margin-left: 0rem;
    margin-right: 0rem;
  }

  .table-visiting thead th {
    white-space: normal;
  }

  .table-visiting thead th:not(:nth-child(2)) {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate__animated {
    animation: none !important;
    transition: none !important;
  }
}