/* 基础样式配置 */
:root {
  --content-max-width: 65em;
  --base-font-size: 17px;
  --theme-color: #558fb5;
  --theme-color-dark: #366482;
  --theme-color-light: #7ba7cc;
  --theme-color-gradient: linear-gradient(135deg, #558fb5 0%, #7ba7cc 50%, #366482 100%);
  --theme-color-gradient-hover: linear-gradient(135deg, #366482 0%, #558fb5 50%, #7ba7cc 100%);
  --link-color--hover: #366482;
  --link-color: var(--theme-color);
  --base-font-family: "KaTeX_Main", "zhongsong", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --emoji-size: calc(var(--base-line-height) * 0.7em);
  --link-text-decoration: none;
  --navbar-root-color--hover: var(--theme-color);
  --navbar-root-transition: all var(--duration-medium);
  --navbar-menu-link-color--hover: var(--theme-color);
  --navbar-menu-link-color--active: var(--theme-color);
  --navbar-menu-link-border-radius: 6px;
  --content-max-width: 70em;
  --notice-tip-border-color: var(--theme-color);
  --sidebar-toggle-offset-top: 0;
}

/* 字体加载优化：使用字体显示策略避免空白 */
body {
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 确保字体加载期间有回退字体 */
.markdown-section {
  font-family: var(--base-font-family);
  font-display: swap;
}

/* 华文中宋字体定义 - 使用swap显示策略避免空白 */
@font-face {
  font-family: "zhongsong";
  src: url('../fonts/zs.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 简历页面样式 */
.markdown-section p,
.markdown-section li {
  margin: 0.4em 0 0.4em 0;
}

.markdown-section ul {
  margin: 0.6em 0 0.6em 0;
}

.markdown-section h2 {
  margin: 1.5rem 0 1rem;
  padding: 0;
}

.duration {
  float: right;
}

.profile {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.profile .image {
  max-width: 180px;
  padding: 2px;
}

.profile .image img {
  border-radius: 50%;
}

.profile .info {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  padding-left: 2rem;
}

@media (min-width: 481px) {
  .profile .info .name {
    margin-left: -6px;
  }
}

.profile .info .name {
  font-size: 2.5rem;
  padding-bottom: 8px;
  text-align: center;
  /* margin-left: -6px; */
  background: var(--theme-color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.profile .info .name:hover {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.25);
  /* transform: translateX(8px); */
}

.profile .info .socials {
  display: flex;
  flex-direction: row;
}

.profile .info .socials img {
  width: 1.3rem;
  margin: 0 0.6rem 0 0;
  cursor: pointer;
}

.profile .info .contact .email {
  font-family: Courier New, Courier, monospace;
}

.profile .info .cv a {
  background: var(--theme-color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* font-weight: 600; */
  transition: all 0.3s ease;
  position: relative;
}

.profile .info .cv a:hover {
  background: var(--theme-color-gradient-hover);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-1px);
}

.profile .info .cv a[target="_blank"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--theme-color-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.profile .info .cv a[target="_blank"]:hover::after {
  transform: scaleX(1);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile .image {
    max-width: 220px;
    /* margin-bottom: 0.5rem; */
  }

  .profile .info {
    padding-left: 0;
    align-items: center;
  }

  .profile .info .name {
    font-size: 2.7rem;
    /* margin-bottom: 0.5rem; */
  }

  .profile .info .socials {
    justify-content: center;
    /* margin-bottom: 0.5rem; */
  }

  .profile .info .socials img {
    width: 1.5rem;
    margin: 0 0.4rem;
    padding: 0.25rem;
  }

  .profile .info .contact .email {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .profile .info .cv {
    font-size: 0.9rem;
  }

  .duration {
    float: none;
  }
}

/* 桌面端：CV和publications页面都隐藏sidebar */
[data-page*="cv"] .sidebar,
[data-page*="cv"] .sidebar-toggle,
[data-page*="publications"] .sidebar,
[data-page*="publications"] .sidebar-toggle {
  display: none;
}

[data-page*="cv"] .content,
[data-page*="publications"] .content {
  margin-left: 0;
}

/* 移动端：CV页面隐藏sidebar，publications页面显示sidebar */
@media (max-width: 480px) {

  [data-page*="cv"] .sidebar,
  [data-page*="cv"] .sidebar-toggle {
    display: none;
  }

  [data-page*="cv"] .content {
    margin-left: 0;
  }

  /* publications页面在移动端显示sidebar */
  [data-page*="publications"] .sidebar,
  [data-page*="publications"] .sidebar-toggle {
    display: flex;
  }

}

/* Publications页面精美美化 */
body[data-page*="publications"] .markdown-section {
  max-width: 78em;
  line-height: 1.7;
}

body[data-page*="publications"] .markdown-section>ol {
  padding-left: 0;
}

/* Publications页面标题增强美化 - 使用更高优先级选择器 */
body[data-page*="publications"] .markdown-section h1 {
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  color: #2c3e50 !important;
  margin: 0 auto 3rem auto !important;
  text-align: center !important;
  position: relative !important;
}

/* Education Timeline Styles */
.education-timeline {
  position: relative;
  margin: 2rem 0;
  padding: 0;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--theme-color-gradient);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 45px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--theme-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--theme-color-light);
  z-index: 1;
}

.timeline-content {
  position: relative;
  background: #fff;
  border-left: 1px solid #e8eef4;
  border-top: 1px solid #e8eef4;
  border-bottom: 1px solid #e8eef4;
  border-radius: 8px;
  padding: 1.5rem;
  margin-left: 15px;
  width: calc(100% - 45px);
  transition: all 0.3s ease;
}

/* 对话框尖角 */
.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
  z-index: 1;
}

.timeline-content::after {
  content: '';
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid #e8eef4;
  z-index: 0;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  /* color: var(--theme-color-dark); */
  margin-bottom: 0.5rem;
}

.timeline-duration {
  font-size: 1rem;
  color: var(--theme-color);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.timeline-details {
  margin: 0;
  padding-left: 1rem;
}

.timeline-details li {
  margin: 0.3rem 0;
  color: #4a5568;
  line-height: 1.5;
}

.timeline-details li::marker {
  color: var(--theme-color-light);
}


/* 简化标记点动画 - 去除连续脉冲效果 */
.timeline-item:hover .timeline-marker {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 0 3px rgba(85, 143, 181, 0.3);
  transition: all 0.3s ease;
}

/* 标记点悬浮效果 */
.timeline-marker:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 0 4px rgba(85, 143, 181, 0.4);
  transition: all 0.3s ease;
}


/* 内容卡片悬浮效果 - 调整为更温和的动画 */
.timeline-content:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 1px 5px rgba(85, 143, 181, 0.2);
}

/* 移动端响应式设计 */
@media (max-width: 480px) {
  .education-timeline::before {
    left: 5px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -1px;
    width: 16px;
    height: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .timeline-content {
    padding: 0.5rem;
    margin-left: 0px;
    width: calc(100% - 12px);
  }

  .timeline-content::before {
    left: -8px;
    border-right: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }

  .timeline-content::after {
    left: -9px;
    border-right: 9px solid #e8eef4;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }

  .timeline-title {
    font-size: 1.1rem;
  }
}

/* Looking for Students Section Styling */
.students-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f9ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(85, 143, 181, 0.08);
  position: relative;
  overflow: hidden;
}

.students-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /* background: var(--theme-color-gradient); */
}

.students-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--theme-color-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.students-title::before {
  content: '✨';
  font-size: 1.4rem;
}

/* .students-content {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.5rem;
} */

.students-highlight {
  background: var(--theme-color-light);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  margin: 0 0.2rem;
}

.students-requirements {
  background: #fff;
  border-left: 4px solid var(--theme-color);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.students-requirements ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.students-requirements li {
  margin: 0.3rem 0;
  color: #4a5568;
}

/* 通用按钮动画类 */
.btn-animate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--theme-color-gradient);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(85, 143, 181, 0.2);
  border: none;
  cursor: pointer;
}

.btn-animate::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-animate:hover {
  background: var(--theme-color-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 143, 181, 0.4);
  letter-spacing: 0.5px;
}

.btn-animate:hover::after {
  left: 100%;
}

.btn-animate:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(85, 143, 181, 0.3);
  transition: all 0.1s ease;
}

/* 学生按钮专用样式 */
.students-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--theme-color-gradient);
  color: white !important;
  padding: 0.2rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(85, 143, 181, 0.2);
  border: none;
  cursor: pointer;
}

.students-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.students-cta:hover {
  background: var(--theme-color-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 143, 181, 0.4);
  letter-spacing: 0.5px;
}

.students-cta:hover::before {
  transform: scale(1.2) translateX(2px);
}

.students-cta:hover::after {
  left: 100%;
}

.students-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(85, 143, 181, 0.3);
  transition: all 0.1s ease;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .btn-animate {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-animate::before {
    font-size: 1rem;
  }
}

/* Collapsible Students Section */
.students-collapsible {
  cursor: pointer;
  user-select: none;
}

.students-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  margin: 0;
}

.students-toggle-content {
  flex: 1;
}

.students-toggle:hover .students-title {
  color: var(--theme-color);
}

.students-toggle-icon {
  font-size: 1.2rem;
  color: var(--theme-color);
  transition: transform 0.3s ease;
  font-weight: bold;
  margin-top: 0.2rem;
}

.students-toggle.expanded .students-toggle-icon {
  transform: rotate(180deg);
}

.students-content-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.students-summary {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.students-summary .students-highlight {
  /* background: var(--theme-color-light); */
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  margin: 0 0.2rem;
}

/* Responsive design for students section */
@media (max-width: 480px) {
  .students-section {
    padding: 1.2rem;
    margin: 1.5rem 0;
  }

  .students-title {
    font-size: 1.2rem;
  }

  .students-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

body[data-page*="publications"] .markdown-section h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--theme-color), #7ba7cc, transparent);
  border-radius: 3px;
}

/* 修复论文编号位置 */
body[data-page*="publications"] .markdown-section ol>li,
body[data-page*="publications"] .markdown-section ul>li {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: none;
  border-left: 5px solid var(--theme-color);
  border-radius: 12px;
  padding: 2rem 2rem 2rem 2rem;
  margin: 2rem 0 2rem 0;
  box-shadow: 0 4px 20px rgba(85, 143, 181, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: visible;
  white-space: normal;
  counter-increment: paper-counter;
  list-style: none;
}

body[data-page*="publications"] .markdown-section ol>li::before,
body[data-page*="publications"] .markdown-section ul>li::before {
  content: counter(paper-counter);
  position: absolute;
  left: -19px;
  top: 2.1rem;
  width: 38px;
  height: 38px;
  background: var(--theme-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(85, 143, 181, 0.3);
  z-index: 1;
}

/* body[data-page*="publications"] .markdown-section ul li::before {
  content: none;
} */

body[data-page*="publications"] .markdown-section ol li:hover,
body[data-page*="publications"] .markdown-section ul li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(85, 143, 181, 0.15);
  border-left-color: #366482;
}

/* 论文标题美化 - 移除渐变 */
body[data-page*="publications"] .markdown-section li strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.5;
  white-space: normal;
  display: inline;
}

/* 作者美化 */
body[data-page*="publications"] .markdown-section li u {
  color: var(--theme-color);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(120deg, var(--theme-color), #7ba7cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.05rem;
}

/* 会议/期刊美化 */
body[data-page*="publications"] .markdown-section li em {
  color: #5a6c7d;
  font-style: italic;
  font-size: 1rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

body[data-page*="publications"] .markdown-section .pubtag a::after {
  display: none !important;
}

body[data-page*="publications"] .markdown-section .pubtag a[href*="doi."],
body[data-page*="publications"] .markdown-section .pubtag a[href*="eprint"],
body[data-page*="publications"] .markdown-section .pubtag a[href*="youtube"] {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0 2px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: none !important;
  background: none !important;
}

body[data-page*="publications"] .markdown-section .pubtag a[href*="eprint"] {
  background: linear-gradient(135deg, var(--theme-color), #366482) !important;
}

body[data-page*="publications"] .markdown-section .pubtag a[href*="doi"] {
  background: linear-gradient(135deg, #007ccf, #006ab1) !important;
}

body[data-page*="publications"] .markdown-section .pubtag a[href*="youtube"] {
  background: linear-gradient(135deg, var(--theme-color), #366482) !important;
}

body[data-page*="publications"] .markdown-section .pubtag a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 悬停装饰 */
body[data-page*="publications"] .markdown-section li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(85, 143, 181, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

body[data-page*="publications"] .markdown-section li:hover::before {
  opacity: 1;
}

/* 移动端适配 */
@media (max-width: 480px) {
  body[data-page*="publications"] .markdown-section ul li {
    padding: 1.5rem 1rem 1.5rem 2.5rem;
    margin: 1rem 0 1rem 0.5rem;
  }

  body[data-page*="publications"] .markdown-section ul li::before {
    left: -8px;
    top: 1.5rem;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  body[data-page*="publications"] .markdown-section>h1 {
    font-size: 2rem;
  }

  body[data-page*="publications"] .markdown-section li strong {
    font-size: 1.1rem;
  }

  body[data-page*="publications"] h1 {
    font-size: 2rem;
  }

  body[data-page*="publications"] h2 {
    font-size: 1.5rem;
  }
}

/* 优化：论文影响力标签 - 简化设计 */
.impact-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  margin: 0 0.2rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  vertical-align: middle;
}

/* DOI链接优化展示 */
.doi-link {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  margin: 0.2rem 0;
  background: #f0f8ff;
  border: 1px solid #558fb5;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #558fb5;
  text-decoration: none;
  transition: all 0.3s ease;
}

.doi-link:hover {
  background: #558fb5;
  color: white;
  transform: translateY(-1px);
}

.doi-container {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* 新增：年份分组标题 */
.year-divider {
  position: relative;
  text-align: center;
  margin: 3rem 0 2rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-color);
}

.year-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
  z-index: -1;
}

.year-divider span {
  background: white;
  padding: 0 2rem;
  position: relative;
}

/* 新增：论文类型标签 */
.pub-type {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  margin: 0 0.2rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pub-type.conference {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.pub-type.journal {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
}

.pub-type.workshop {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
}

/* 新增：合作作者显示 */
.co-authors {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.co-authors .highlight {
  color: var(--theme-color);
  font-weight: 600;
}

/* 新增：加载动画 */
/* .publications-container {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* 新增：统计信息栏 */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-color);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 新增：搜索和筛选 */
.search-container {
  margin: 2rem 0;
  text-align: center;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(85, 143, 181, 0.1);
}

/* 新增：过滤按钮 */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--theme-color);
  background: transparent;
  color: var(--theme-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--theme-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(85, 143, 181, 0.3);
}

/* 字体样式优化 */
body[data-page="docs/cv.md"] h2 {
  font-variant: small-caps;
}

body[data-page="docs/cv.md"] .last {
  font-variant: small-caps;
}

/* 链接样式 */
.markdown-section a.anchor:hover {
  text-decoration: none;
  text-decoration-color: var(--theme-color);
  text-underline-offset: 10px;
  text-decoration-thickness: 3px;
  transition: none;
}

.markdown-section a {
  transition: color, 0.25s;
}

/* 按钮样式 */
a.btn-outline-primary {
  color: #558fb5;
  background-color: #fff;
  border-color: #558fb5;
}

a.btn-outline-primary:hover {
  color: #fff;
  background-color: #558fb5;
  border-color: #558fb5;
}

a.btn {
  border: 1px solid #558fb5;
  display: inline-block;
  text-align: center;
  vertical-align: baseline;
  user-select: none;
  padding: 0 .375rem;
  font-size: 0.9rem;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

a.btn:hover {
  border: 1px solid #558fb5;
}

/* 交互元素 */
.profile .image img {
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.profile .image img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(85, 143, 181, 0.3);
}

/* --- Social Icon Enhancements --- */
.socials a img {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

.socials a:hover img {
  transform: scale(1.15);
  opacity: 1;
}


span.scroll-to-top {
  border: 1px solid #ddd;
  transition: color 0.25s ease, border-color 0.25s ease;
}

span.scroll-to-top:hover {
  color: var(--theme-color);
  border-color: var(--theme-color);
}

a.btn {
  transition: all 0.15s ease-in-out;
}

a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 出版物卡片效果 */
.publist ul li {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #eee;
  padding-left: 12px;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  margin-left: -30px;
  list-style: none;
}

.publist ul li:hover {
  border-left: 3px solid var(--theme-color);
  transform: translateX(2px);
}

/* 链接优雅效果 - 优化选择器 */
.markdown-section p a:not(.btn):not(.emoji),
.markdown-section li a:not(.btn):not(.emoji) {
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

.markdown-section p a:not(.btn):not(.emoji)::after,
.markdown-section li a:not(.btn):not(.emoji)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--theme-color);
  transition: width 0.3s ease;
}

.markdown-section p a:not(.btn):not(.emoji):hover::after,
.markdown-section li a:not(.btn):not(.emoji):hover::after {
  width: 100%;
}

/* Teaching - 简洁列表式 */
.compact-teaching {
  margin: 1rem 0;
}

.teaching-level {
  margin-bottom: 0.8rem;
}

.teaching-level h4 {
  font-size: 1.1rem;
  /* color: var(--theme-color-dark); */
  margin: 0 0 0.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--theme-color-light);
}

.teaching-courses {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.teaching-courses li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  font-size: 0.95rem;
  color: #4a5568;
  position: relative;
  transition: all 0.15s ease;
}

.teaching-courses li::before {
  content: '▸';
  color: var(--theme-color);
  position: absolute;
  left: 0.5rem;
  transition: all 0.15s ease;
}

.teaching-courses li:hover {
  color: var(--theme-color-dark);
  padding-left: 1.55rem;
}

.teaching-courses li:hover::before {
  transform: translateX(1px);
}

/* Students - 极简标签式 */
.compact-students {
  margin: 1rem 0;
}

.student-group {
  margin-bottom: 1.2rem;
}

.student-group h4 {
  font-size: 1.1rem;
  /* color: var(--theme-color-dark); */
  margin: 0 0 0.6rem 0;
  display: flex;
  align-items: center;
}

.student-group h4::before {
  content: '🎓';
  margin-right: 0.5rem;
  font-size: 1rem;
}

.student-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

.student-tag {
  background: rgba(85, 143, 181, 0.08);
  border: 1px solid rgba(85, 143, 181, 0.2);
  border-radius: 16px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: #4a5568;
  transition: all 0.2s ease;
  display: inline-block;
}

.student-tag:hover {
  background: rgba(85, 143, 181, 0.12);
  border-color: var(--theme-color-light);
  color: var(--theme-color-dark);
  transform: translateY(-0.5px);
}

/* 响应式优化 - 紧凑版本 */
@media (max-width: 480px) {
  .teaching-courses li {
    font-size: 0.9rem;
    transition: all 0.1s ease;
  }
  
  .teaching-courses li:hover {
    padding-left: 1.52rem;
  }
  
  .teaching-courses li:hover::before {
    transform: translateX(0.5px);
  }

  .student-tags {
    gap: 0.4rem;
  }

  .student-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    transition: all 0.15s ease;
  }
  
  .student-tag:hover {
    transform: translateY(-0.3px);
  }
}

/* 标题悬停效果统一 */
.markdown-section h2 {
  position: relative;
  margin-bottom: 1rem;
}

.markdown-section h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--theme-color-gradient);
  transition: width 0.3s ease;
  pointer-events: none;
}

.markdown-section h2:hover::after {
  width: 100%;
}

.pubtag {
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.publist:hover .pubtag {
  opacity: 1;
  transform: translateX(2px);
}

/* 特殊效果 */
.markdown-section s {
  color: transparent;
  background: rgba(187, 187, 187, .7);
  transition: all .3s ease-in-out;
  text-decoration: none;
}

.markdown-section s:hover {
  color: var(--base-color);
  background: transparent;
}

/* 移动端优化 */
@media (max-width: 480px) {
  .markdown-section {
    padding: 2rem 15px;
  }

  :root {
    --base-font-size: 16px;
  }

  .publist .pubtag {
    opacity: 1.0;
  }

  body[data-page*="publications"] .markdown-section li::before {
    opacity: 1;
  }
}

/* 发表列表样式 */
.publist .pubtag {
  opacity: 0.0;
  transition: all 200ms, opacity 300ms;
}

.publist:hover .pubtag {
  opacity: 1.0;
}

.pubtag {
  transition: all 200ms, opacity 300ms;
}

/* 地图容器样式 */
#map-container {
  margin: 1rem 0 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(85, 143, 181, 0.12);
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.3s ease;
}

#map-container:hover {
  box-shadow: 0 12px 40px rgba(85, 143, 181, 0.15);
}

#amap-container {
  border-radius: 16px 16px 0 0;
}

/* 地图按钮样式 */
.map-button {
  display: block;
  width: 100%;
  padding: 0.2rem 1.5rem;
  background: var(--theme-color);
  color: white !important;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(85, 143, 181, 0.2);
}

.map-button:hover {
  background: var(--theme-color-dark);
  box-shadow: 0 4px 12px rgba(85, 143, 181, 0.3);
}

.map-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(85, 143, 181, 0.2);
}

@media (max-width: 480px) {
  .map-button {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

.address-wrapper {
  display: block;
  padding-left: 0;
  transition: none;
  position: relative;
}

.address-wrapper:hover {
  border-left-color: transparent;
  transform: none;
}

.address-container {
  line-height: 2;
  transition: none;
}

.address-container .room-info {
  display: block;
  margin: 0.3rem 0;
  font-size: 1.2em;
  font-weight: 600;
}

/* 地址切换提示 */
.address-container[data-lang="en"]::after {
  content: " 点击切换中文";
  font-size: 0.8em;
  color: #cbd5e1;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.address-container[data-lang="cn"]::after {
  content: " Click for English";
  font-size: 0.8em;
  color: #cbd5e1;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.address-container:hover::after {
  color: var(--theme-color-light);
}

/* 响应式地图样式 */

@media (min-width: 481px) {
  #amap-container {
    height: 450px;
  }


}

@media (max-width: 480px) {
  #amap-container {
    height: 250px;
  }

  .address-container .room-info {
    font-size: 1em;
  }
}