:root {
  --content-width: 1150px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* full-width top bar */
.site-header {
  width: 100%;
  border-bottom: 1px solid #e6e6e6;
  position: relative;
  background: linear-gradient(
    to right,
    #660874 0%,
    #660874 66.666%,
    #d93379 100%
  );
  /* height: 150px; */
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 80px 20px 80px;
}

.intro-block{
  margin: 8px 0 26px;
  padding: 16px 18px 18px;
  background: #fafbfc;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
}

.intro-title{
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
}

.intro-lead{
  font-size: 18px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 14px;
  text-align: justify;
  text-justify: inter-word;
}

.intro-highlight{
  font-size: 17px;
  line-height: 1.9;
  color: #111;
  font-weight: 700;
  padding-left: 14px;
  border-left: 4px solid rgba(102, 8, 116, 0.7);
  margin: 12px 0 14px;
  text-align: justify;
  text-justify: inter-word;
}

.intro-body{
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 10px;
  text-align: justify;
  text-justify: inter-word;
}

.nav {
  font-size: 20px;
  display: flex;
  gap: 28px;
}

.nav a {
  position: relative;
  color: thistle;
  text-decoration: none;
  font-weight: 700;
  padding-bottom: 4px;

  transition: transform 0.15s ease, color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;

  background: linear-gradient(90deg,
    rgb(102, 8, 116),
    rgb(217, 51, 121)
  );

  transition: width 0.25s ease;
}

/* hover 效果 */
.nav a:hover {
  transform: translateX(4px);
  color: #ffffff;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: #ffffff;
}

.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: #ffffff;
}

.nav a.active::after {
  width: 100%;
}

.nav a.active:hover {
  transform: none;
}

.lang-btn{
  flex: 0 0 auto;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.lang-btn:hover{
  background: rgba(255,255,255,0.18);
}

@media (max-width: 820px){
  .header-inner{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .lang-btn{
    margin-left: auto;
  }
}

main {
  padding: 28px 0 60px;
}

h1 { font-size: 35px; margin: 0; }
h2 { font-size: 25px; margin-top: 30px; }
p  { font-size: 18px; margin: 10px 0; }

/* ===== Research TOC ===== */
.research-layout{
  display: block;
}

.toc{
  margin: 10px 0 18px;
  width: auto;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fafbfc;
  position: static;
}

.toc-title{
  font-size: 15px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
}

.toc-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  flex-direction: column;
  align-items: flex-start;
}

.toc-links a{
  text-decoration: none;
  color: #003a8f;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  line-height: 1.4;
  display: block;
}

.toc-links a.toc-sub{
  font-weight: 500;
  font-size: 14px;
  color: #355a9b;
  padding-left: 12px;
  line-height: 1.4;
}

.toc-links a:hover{
  border-color: #003a8f;
}

@media (max-width: 900px){
  .toc-links{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

/* ===== Research Grid ===== */

.research-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* 单个研究方向卡片 */
.research-card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 16px 14px 18px;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* 标题 */
.research-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: #003a8f;
}

/* 插图：略小于 card 宽度 + margin */
.research-card img {
  width: calc(100% - 12px);
  margin: 6px auto 10px;
  display: block;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

/* 文字 */
.research-card p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.research-card p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;     /* 显示 5 行，自己调 */
  line-clamp: 5;
  overflow: hidden;
}

/* 响应式：屏幕变窄时自动调整 */
@media (max-width: 700px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo 样式 */
.site-logo {
  position: absolute;
  left: 20px;
  top: 30px;
  width: clamp(50px, calc(50vw - 610px), 140px);
  height: auto;
  display: block;
}

.hero-figure {
  margin: 20px 0 10px;
}

.hero-slider{
  position: relative;
  overflow: hidden;
  border-radius: 14px;

  /* 关键：给容器一个稳定高度（选一个你喜欢的比例） */
  aspect-ratio: 3 / 2;       /* 适合组照/人物 */
  /* aspect-ratio: 16 / 9;   适合横向 banner */
  width: 100%;
}

/* 所有 slide 永远叠在同一位置 */
.hero-slider .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;      /* 非激活的不接受鼠标，避免 hover-caption 干扰 */
}

.hero-slider .slide.active{
  opacity: 1;
  pointer-events: auto;
}

/* 图片填满容器，裁切居中 */
.hero-slider .slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 保证不会撑破布局 */
  object-position: center;
  display: block;
  border-radius: 14px;
}
.slide img{
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* 圆点 */
.slider-dots{
  text-align: center;
  margin-top: 10px;
}

.slider-dots span{
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 5px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dots span.active{
  background: rgb(102, 8, 116);
  transform: scale(1.3);
}

.hover-caption {
  width: 100%;
  /* min-width: 500px; */
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.hover-caption img {
  width: 100%;
  height: auto;
  display: block;
}

.caption-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;

  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hover-caption:hover .caption-box {
  opacity: 1;
  transform: translateY(0);
}

.hover-caption:focus-within .caption-box {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .caption-box {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 图 + 研究方向 横向排列 */
.hero-research-row {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 图片更宽，文字窄一点 */
  gap: 40px;                       /* 中间间距，可随便调 */
  align-items: start;
  margin-top: 20px;
}

/* 小屏幕时自动变上下排列 */
@media (max-width: 700px) {
  .hero-research-row {
    grid-template-columns: 1fr;
  }
}

.research-text h2{
  margin: 20px 10px;
}

.research-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.research-card-link-first{
  display: block;

  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;

  border: 1px solid rgba(0,0,0,0.06);

  font-size: 16px;
  font-weight: 800;
  color: #333;
  text-decoration: none;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.research-card-link-first:hover{
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.research-item-title{
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.research-item-title-link{
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.research-item-title-link:hover{
  border-color: #333;
}

.research-pill{
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: #003a8f;
  background: rgba(0,58,143,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.research-pill:hover{
  background: rgba(0,58,143,0.12);
  transform: translateX(2px);
}

.research-item-link a {
  font-size: 18px;
}

.research-card-link {
  text-decoration: none;   /* 去掉下划线 */
  color: inherit;
  display: block;
}

/* hover 效果：整卡变灰 */
.research-card-link:hover .research-card {
  background: #f5f6f8;     /* 非常轻的灰，学术风 */
}

/* 防止 hover / visited 又出现下划线 */
.research-card-link:hover,
.research-card-link:focus,
.research-card-link:visited {
  text-decoration: none;
  color: inherit;
}

.pill-rainbow{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;

  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.2px;

  /* 炫彩：用你们主题紫红渐变 */
  background: linear-gradient(45deg,
    rgb(102, 8, 116) 0%,
    rgb(217, 51, 121) 100%
  );

  /* 细边框 + 轻微立体 */
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 24px rgba(102, 8, 116, 0.18);

  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* Hover：发光 + 右移一点（延续你网站的动效语言） */
.pill-rainbow:hover{
  transform: translateX(4px);
  box-shadow:
    0 14px 30px rgba(102, 8, 116, 0.22),
    0 10px 24px rgba(217, 51, 121, 0.16);
  filter: brightness(1.05);
}

/* 点击：轻微按下感 */
.pill-rainbow:active{
  transform: translateX(2px) translateY(1px);
  box-shadow: 0 8px 18px rgba(102, 8, 116, 0.16);
}

.pill-rainbow{
  position: relative;
  overflow: hidden;
}

.pill-rainbow::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.22) 35%,
    rgba(255,255,255,0.0) 70%
  );
  transform: translateX(-60%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.pill-rainbow:hover::after{
  transform: translateX(60%);
}

/* ===== Research page: stacked rows ===== */

.research-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.research-row {
  display: grid;
  grid-template-columns: 275px 1fr; /* 左图固定宽度，右文自适应 */
  gap: 22px;
  align-items: start;

  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px 16px 18px;

  transition: none;
}

.research-row--full{
  grid-template-columns: 1fr;
}

.research-row--full .research-row__text{
  grid-column: 1 / -1;
}

.research-row:hover {
  transform: none;
  box-shadow: none;
  background: #ffffff;
}

.research-row__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}

/* 右侧文字区 */
.research-row__text h2 {
  margin: 0 0 10px;
  font-size: 25px;
  color: #003a8f;
}

.research-row__text h2.research-title-dark{
  color: #000000;
}

.research-row__text h2.research-title-dark#toc-collective{
  margin-bottom: 32px;
}

.research-row__text p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  text-justify: inter-word;
}

.research-subsection-title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #003a8f;
}

.research-subsection-title.research-subsection-title--first{
  margin: 0 0 12px;
  padding-top: 40px;
}

.research-subsection-title--spaced{
  margin-top: 0;
  padding-top: 40px;
}

.research-subsection-title + .research-subsection-title{
  margin-top: 32px;
}

.research-row__media{
  margin: 0 0 14px;
}

.research-row__media img,
.research-row__media video{
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}

.research-row__media--right-half img,
.research-row__media--right-half video{
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

#ne-figure-1 img,
#ne-figure-2 img,
#ne-figure-2 video{
  width: 77%;
}

.research-row__media--collective img{
  width: 55.4%;
}

.research-row__media--collective img.research-figure--narrow{
  width: 44.4%;
}

.research-figure{
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.research-figure--pair{
  width: 100%;
  justify-items: stretch;
}

.research-figure--pair .research-media-pair{
  width: 100%;
}

.research-figure--pair .research-figure__caption{
  max-width: 100%;
  text-align: center;
}

.research-figure__caption{
  font-size: 14px;
  line-height: 1.4;
  color: #555;
  text-align: center;
  max-width: 70%;
}

.research-figure__caption a{
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
  color: var(--pub-link);
}

.research-figure__caption a:visited{
  color: var(--pub-link);
}

.research-figure__caption a:hover,
.research-figure__caption a:focus{
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
}

.research-row__media--stack{
  display: grid;
  gap: 4em;
}

.research-media-row{
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
}

.research-media-text{
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  text-justify: inter-word;
}

/* Inline publication links inside research text */
.research-row__text p a,
.research-media-text a{
  text-decoration: none;
  text-decoration-line: none;
  border-bottom: 1px solid transparent;
  color: var(--pub-link);
  font-weight: 400;
  transition: border-color 0.15s ease;
}

.research-row__text p a:hover,
.research-media-text a:hover{
  border-color: var(--pub-link);
}

.figure-link{
  color: #003a8f;
  text-decoration: none;
}

.figure-link:hover{
  text-decoration: none;
}

.research-media-text--wide{
  margin: 0 0 12px;
}

.research-media-pair{
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-items: end;
}

.research-media-pair--equal{
  justify-items: center;
  align-items: start;
}

.research-media-pair--align-center{
  align-items: center;
}

.research-row__media--collective .research-media-pair--equal img,
.research-row__media--collective .research-media-pair--equal video{
  width: 100%;
  height: auto;
}

.research-row__media--collective .research-media-pair--equal img.research-figure--narrow{
  width: 81%;
}

.research-media-pair .research-figure{
  width: 100%;
}

.research-media-pair--captions{
  margin-top: 6px;
}

.research-media-pair--captions .research-figure__caption{
  text-align: justify;
  text-justify: inter-word;
  max-width: 100%;
}

.research-row__media--collective .research-media-pair--captions .research-figure__caption{
  text-align: left;
  text-justify: auto;
}

.research-media-pair .research-row__media{
  margin: 0;
}

.research-media-pair .research-row__media img,
.research-media-pair .research-row__media video{
  width: 100%;
  height: 400px;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 700px){
  .research-media-row{
    grid-template-columns: 1fr;
  }

  .research-media-pair{
    grid-template-columns: 1fr;
  }
}

/* Representative pubs */
.rep-pubs__label {
  font-size: 18px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.rep-pubs__list {
  margin: 0;
  padding-left: 18px;

  display: grid;
  grid-template-columns: 1fr 1fr;  /* 两列 */
  column-gap: 28px;               /* 列间距，可调 */
  row-gap: 6px;
}

.rep-pubs__list--narrow{
  max-width: 720px;
}


.rep-pubs__list a {
  text-decoration: none !important;
  color: #003a8f;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.rep-pubs__list a:link,
.rep-pubs__list a:visited,
.rep-pubs__list a:hover,
.rep-pubs__list a:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
  border-bottom: 1px solid transparent;
  box-shadow: none !important;
}

.rep-pubs__list a:hover{
  border-color: #003a8f;
}

/* hard reset to prevent inherited decorations */
.research-row .rep-pubs__list,
.research-row .rep-pubs__list *{
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* 小屏：上下排列（图片在上，文字在下） */
@media (max-width: 700px) {
  .research-row {
    grid-template-columns: 1fr;
  }
}

.rep-pubs__list {
  list-style: none;
  padding-left: 0;
}

/* ===== blocks ===== */
.block {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  padding: 25px 60px 25px;
  margin: 0 0 18px;
}

/* ===== Faculty intro (4:6 split) ===== */
.faculty-grid{
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 22px;
  align-items: start;
}

.faculty-name{
  margin-top: 12px;
  font-size: 25px;
  font-weight: 700;
  text-align: left;
}

.faculty-title{
  margin-top: 4px;
  font-size: 18px;
  color: #555;
  text-align: left;
}

.faculty-meta{
  margin: 12px 0 0;
  padding-left: 18px;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

.kv-section{
  margin-bottom: 14px;
}

.kv-section h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #003a8f;
}

.kv-section ul{
  margin: 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.bio{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.bio h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #003a8f;
}

.bio p{
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* ===== Photo framing (center-crop) ===== */
/* 通用相框：固定尺寸 + 中心裁剪 */
.photo-frame{
  width: 145px;               /* 你可以调：140/160/180 */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  margin-top: 4px;
}

.photo-64{
  aspect-ratio: 1;
}

/* 导师照片如果想更竖一点，可用 portrait（可选） */
.photo-portrait{
  aspect-ratio: 1;
}

.photo-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* 核心：裁掉多余部分，只显示中间 */
  object-position: center;    /* 核心：取中间区域 */
  display: block;
}

/* ===== People blocks: 2 columns grid of fixed-size cards ===== */
.people-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.person-card{
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 14px;
  align-items: start;

  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  background: #fff;

  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.person-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  background: #f5f6f8;
}

.person-info{
  min-width: 0;
}

.person-head{
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.person-name{
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.person-role{
  font-size: 16px;
  font-weight: 600;
  color: #003a8f;
}

.person-line{
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

.person-blurb{
  margin-top: 6px;
  font-size: 16px;
  color: #444;
  line-height: 1.4;
}

/* ===== Responsive ===== */
@media (max-width: 800px){
  .people-grid{
    grid-template-columns: 1fr;
  }
  .person-card{
    grid-template-columns: 1fr;
  }
  .photo-frame{
    width: 220px;
  }
}

@media (max-width: 800px){
  .faculty-grid{
    grid-template-columns: 1fr;
  }
}

.subheading{
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #003a8f;
}

/* Text-only alumni grid (no photos) */
.alumni-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}

.alumni-item{
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.alumni-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  background: #f5f6f8;
}

.alumni-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alumni-name{
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.alumni-meta{
  font-size: 15px;
  font-weight: 700;
  color: #555;
}

.alumni-line{
  margin-top: 6px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alumni-ug{
  padding: 24px 14px;
  min-height: 60px;
}

.alumni-ug .alumni-line{
  display: none;
}

@media (max-width: 800px){
  .alumni-grid{
    grid-template-columns: 1fr;
  }
}

:root{
  --pub-bg: #f5f6f8;
  --pub-accent: #3a3f5c;
  --pub-link: #003a8f;
}

.pub-toplink{
  margin: 10px 0 14px;
}
.pub-toplink a{
  text-decoration: none;
  color: var(--pub-link);
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.pub-toplink a:hover{
  border-color: var(--pub-link);
}

.pub-panel{
  background: var(--pub-bg);
  border-radius: 16px;
  padding: 18px;
}

.pub-layout{
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 35px;
  align-items: start;
}

.pub-nav{
  position: sticky;
  top: 18px;
  align-self: start;

  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}

.pub-nav__title{
  font-size: 14px;
  font-weight: 800;
  color: var(--pub-accent);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.pub-nav a{
  display: block;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 10px;
  text-decoration: none;
  color: var(--pub-accent);
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pub-nav a:hover{
  background: rgba(0,0,0,0.05);
  transform: translateX(4px);
}

.pub-year{
  margin-bottom: 18px;
}

.pub-year__title{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--pub-accent);
}

.pub-list-global{
  margin: 0;
  padding-left: 28px;
}

.pub-item::marker{
  content: "[" counter(list-item) "] ";
  color: var(--pub-accent);
  font-weight: 900;
}

.pub-year-divider{
  margin: 16px 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--pub-accent);
}

.pub-item{
  list-style-position: outside;

  background: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  margin-bottom: 12px;

  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pub-item:hover{
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  background: #ffffff;
}

.pub-title{
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.pub-authors{
  font-size: 16px;
  color: #444;
  margin-bottom: 8px;
}

.pub-links{
  font-size: 16px;
  color: #444;
}

.pub-links a{
  text-decoration: none;
  color: var(--pub-link);
  border-bottom: 1px solid transparent;
  font-weight: 700;
}

.pub-links a:hover{
  border-color: var(--pub-link);
}

.pub-links .sep{
  margin: 0 8px;
  color: #999;
}

@media (max-width: 900px){
  .pub-layout{
    grid-template-columns: 1fr;
  }
  .pub-nav{
    position: static;
  }
}

.news-intro{
  margin: 6px 0 14px;
  color: #444;
  line-height: 1.7;
}

.filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.filter-btn{
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #333;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.filter-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.filter-btn.is-active{
  background: #f5f6f8;
  border-color: rgba(0,0,0,0.12);
}

.timeline{
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
}

.event-card{
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 16px;
  margin: 0 0 14px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.event-card::before{
  content: "";
  position: absolute;
  left: -23px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}

.event-card:hover{
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  background: #ffffff;
}

.event-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.event-date{
  font-size: 14px;
  color: #666;
  font-weight: 700;
}

.event-tag{
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f6f8;
  color: #333;
}

.tag-research{ background: rgba(0,58,143,0.08); color: #003a8f; }
.tag-photos{ background: rgba(217,51,121,0.10); color: #8a1f4d; }
.tag-meetings{ background: rgba(0,0,0,0.06); color: #333; }
.tag-awards{ background: rgba(255,165,0,0.12); color: #8a5a00; }
.tag-talks{ background: rgba(75,0,130,0.10); color: #3b1a78; }
.tag-wechat{ background: rgba(0,128,0,0.10); color: #1f6f2b; }

.event-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

.event-desc{
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.event-links{
  font-size: 15px;
  color: #444;
}

.event-links a{
  text-decoration: none;
  color: #003a8f;
  font-weight: 800;
  border-bottom: 1px solid transparent;
}

.event-links a:hover{
  border-color: #003a8f;
}

.event-links .sep{
  margin: 0 8px;
  color: #aaa;
}

.gallery{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery img{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .timeline{ padding-left: 22px; }
  .timeline::before{ left: 8px; }
  .event-card::before{ left: -19px; }
  .gallery{ grid-template-columns: 1fr; }
}

.link-fancy{
  position: relative;
  text-decoration: none;
  color: #003a8f;
  font-weight: 800;
  transition: transform 0.15s ease, color 0.15s ease;
}

.link-fancy::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;

  background: linear-gradient(90deg,
    rgb(102, 8, 116),
    rgb(217, 51, 121)
  );

  transition: width 0.25s ease;
}

/* hover 效果 */
.link-fancy:hover{
  transform: translateX(4px);
  color: rgb(102, 8, 116);
}

.link-fancy:hover::after{
  width: 100%;
}

.site-header{
  color: #fff;
}

.header-text{
  flex: 1 1 auto;
  min-width: 0;
}

.site-title{
  margin: 0 0 6px;
  font-size: clamp(26px, 2.0vw, 40px);
  font-weight: 900;
  letter-spacing: 0.2px;

  font-family:
    "Krungthep",
    "Avenir Next",
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

.site-subtitle{
  margin: 0 0 12px;
  font-size: clamp(26px, 2.0vw, 40px);
  opacity: 0.92;

  font-family:
    "Times New Roman",
    Times,
    "Noto Serif",
    serif;
}

/* CN Settings */
.title-cn {
  margin: 0 0 6px;
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 900;
  letter-spacing: 0.2px;
  color: white;
  font-family:
    "Heiti",
    "Microsoft YaHei",
    "WenQuanYi Micro Hei",
    sans-serif;
  }

.subtitle-cn {
  color: white;
  margin: 0 0 12px;
  font-size: clamp(20px, 1.5vw, 25px);
  opacity: 0.92;
  font-weight: 700;
  font-family:
    "Songti",
    "SimSun",
    "STSong",
    serif;
}

.subtitle-cn strong{
  font-weight: 700;
  font-family:
    "Heiti",
    "Microsoft YaHei",
    "WenQuanYi Micro Hei",
    sans-serif;
}

.site-footer{
  margin-top: 60px;
  padding: 26px 0 18px;

  color: #eee;

  background: linear-gradient(90deg,
    rgb(60, 6, 70) 0%,
    rgb(60, 6, 70) 70%,
    rgb(130, 30, 90) 100%
  );
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* 左侧 logo */
.footer-logo{
  height: 60px;
  opacity: 0.85;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

/* 中间链接 */
.footer-center{
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-center a{
  text-decoration: none;
  color: #f3d9ff;
  font-weight: 700;
  position: relative;
  transition: transform 0.15s ease, color 0.15s ease;
}

.footer-center a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;

  background: linear-gradient(90deg,
    rgb(102, 8, 116),
    rgb(217, 51, 121)
  );

  transition: width 0.25s ease;
}

.footer-center a:hover{
  transform: translateX(4px);
  color: #ffffff;
}

.footer-center a:hover::after{
  width: 100%;
}
.footer-contact{
  position: relative;
  cursor: pointer;
}

.contact-trigger{
  color: #f3d9ff;
  font-weight: 700;
  position: relative;
}

.contact-trigger::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg,
    rgb(102, 8, 116),
    rgb(217, 51, 121)
  );
  transition: width 0.25s ease;
}

.footer-contact:hover .contact-trigger::after{
  width: 100%;
}

/* 悬浮信息卡片 */
.contact-card{
  position: absolute;
  bottom: 42px;
  left: 0;

  width: 260px;
  padding: 18px 18px 18px;
  border-radius: 18px;

  background:
    linear-gradient(90deg,
      rgb(102, 8, 116),
      rgb(217, 51, 121)
    ) top / 100% 4px no-repeat,
    rgba(255,255,255,0.72);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.22),
    0 6px 16px rgba(102, 8, 116, 0.15);

  color: #222;
  font-size: 14px;
  line-height: 1.7;

  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;

  transition: opacity 0.22s ease, transform 0.22s ease;
}


.footer-contact.show .contact-card{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.footer-right{
  font-size: 14px;
  opacity: 0.8;
  white-space: nowrap;
}

@media (max-width: 800px){
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
