:root {
  /* 主色调 - 桃粉色系 */
  --primary: #25467d;
  --primary-hover: #356cb1;
  --primary-light: #e3e8fb;

  /* 文本色 */
  --text-primary: #46433b;
  --text-secondary: #7b7b7b;
  --text-white: #fff;
  --text-black: #000;

  /* 背景色 */
  --bg-body: aliceblue;
  --bg-card: #fff;
  --bg-subtle: #f9f9f9;

  /* 边框色 */
  --border-light: #eee;
  --border-warm: #b4bedf;

  /* 海浪色 */
  --wave-1: #182f5d;
  --wave-2: #25467d;
  --wave-3: #356cb1;
  --wave-4: white;

  /* 功能色 */
  --footer-bg: rgba(23, 48, 93, 0.9);
  --shadow: #c7c6b6;
}

div {
  /* font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  color: var(--text-primary);
  line-height: 150%;
  hyphens: auto;
}
a {
  color: var(--primary);
  word-break: break-all;
}
a:hover {
  color: var(--primary-hover);
}
a#clustrmaps-widget-v2,
#clustrmaps-widget-v2 {
  min-height: 30px !important;
}
.backboard {
  margin: 0 !important;
  background-attachment: fixed;
  background-size: cover;
  margin-bottom: 30px;
  background-color: var(--bg-body);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: scroll;
}
.board {
  background-color: var(--bg-card);
  min-height: calc(100vh - 40px);
  height: 100%;
  width: calc(100vw - 190px);
  margin: 20px;
  border-radius: 17px;
  padding: 60px;
  max-width: 800px;
  font-size: 14px;
}

.basic-info {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
  align-items: center;
}
.nav {
  height: fit-content;
  margin-top: -30px;
  border-bottom: 2px solid var(--border-warm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.nav-text {
  text-align: center;
  align-self: center;
  font-weight: 800;
  margin-right: 40px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-text:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-text.nav-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-items {
  display: flex;
  flex-direction: row;
  gap: 40px;

  overflow-x: auto;
}

.nav-items .nav-text {
  margin-right: 0;
}
.name {
  text-align: center;
  align-self: center;
  font-weight: 600;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 5px 40px 5px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.avatar {
  width: 20vw;
  max-width: 200px;
  border-radius: 20px;
  margin-top: 40px;
  height: 100%;
}
.side_bar {
  display: flex;
  flex-direction: column;
  max-width: 20vw;
  margin-right: 20px;
}

.paper-img {
  width: 20vw;
  max-width: 150px;
  margin-right: 20px;
  box-shadow: 3px 3px 3px var(--shadow);
}
.title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: start;
  margin-top: 30px;
  text-decoration: underline;
}

.title-small {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: start;
  margin-top: 20px;
  text-decoration: underline;
}
.publication-block {
  padding: 10px;
  margin-top: 10px;
  width: calc(100% - 20px);
  border-radius: 5px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.publication-main-content {
  width: 100%;
}
.publication-text {
  max-width: calc(100% - 170px);
  line-height: 130%;
  width: 100%;
  color: var(--text-primary);
  text-align: start;
  font-size: 14px;
}
.paper_title {
  font-size: 16px;
  font-weight: 600;
}
.paper_authors {
  font-size: 14px;
}

.paper_publication {
  line-height: 1.4;
}

.venue-tag {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.2;
}
.main-block {
 
  width: 100%;
  margin-top: 20px;
  text-align: justify;
  font-size: 16px;
  padding: 10px;
}
.sub-text {
  font-size: 14px;
}
.list-item {
  margin: 10px;
  font-size: 16px;
  margin-top: 20px;
}
.infolist-item {
  margin-top: 5px;
  margin-bottom: 5px;
}
.news-block {
  display: flex;
  margin-top: 15px;
  margin-left: 5px;
  flex-direction: row;
  line-height: 110%;
}
.news-time {
  font-size: 16px;
  font-weight: 600;
  width: 100px;
  line-height: 100%;
  color: var(--text-primary);
  margin-right: 50px;
}
.news-text {
  font-size: 14px;
  width: 100%;
  line-height: 1.3;
}
.avatar-block {
  display: flex;
  flex-direction: column;
}
.teaching {
  margin: 20px;
}
.teaching-content {
  margin-left: 50px;
}
.research-img {
  width: 100%;
}

.abstract-content {
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
    padding 0.3s ease;
  background-color: var(--bg-subtle);
  border: 0.5px solid var(--border-light);
  border-radius: 5px;
}

.abstract-content.expanded {
  max-height: 1000px;
  opacity: 1;
  padding: 15px;
  margin-top: 10px;
}

.abstract-text {
  font-size: 14px;
  line-height: 150%;
  color: var(--text-secondary);
  text-align: justify;
}

.abstract-toggle {
  color: var(--primary);
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.abstract-toggle:hover {
  color: var(--primary-hover);
  text-decoration: none !important;
}

/* Talk block styling */
.talk-block {
  padding: 15px;
  margin-top: 15px;
  width: calc(100% - 30px);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
}

.talk-main-content {
  width: 100%;
}

.talk-video-wrapper {
  flex-shrink: 0;
  margin-right: 20px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  width: 38%;
}

.talk-video-preview {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.talk-video-wrapper:hover .talk-video-preview {
  transform: scale(1.02);
}

.talk-text {
  flex: 1;
  line-height: 140%;
  color: var(--text-primary);
  text-align: start;
  font-size: 14px;
}

.talk_title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.talk_event {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--primary);
}

.talk_meta {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-style: italic;
}

.talk_description {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 150%;
  color: var(--text-primary);
}

.talk_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
}

.talk_tag {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


/* Publication links styling */
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: -8px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;

  text-decoration: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 4px;
}

.pub-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  text-decoration: none;
}

.pub-icon {
  flex-shrink: 0;
  fill: currentColor;
}

.pub-link span {
  white-space: nowrap;
}

.arrow {
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  color: inherit;
  transform-origin: center;
  transform: rotate(0deg);
}

.arrow.rotated {
  transform: rotate(180deg);
}

p {
  hyphens: auto;
}

/* Clustrmaps container styling */
#clustrmaps-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  position: relative;
}

/* Style the clustrmaps widget */
#clustrmaps-container #clustrmaps-widget-v2 {
  /* max-width: 150px; */
  height: auto;
  width: 300px;
  position: relative;
}

/* Add overlay to hide controls in bottom left */
#clustrmaps-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 50px;
  background-color: #2c466d;
  z-index: 10;
  pointer-events: none;
}

/* Social links styling */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  align-items: flex-start;
  width: -webkit-fill-available;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--primary-hover);
  background-color: var(--bg-subtle);
}

.social-icon {
  flex-shrink: 0;
}

.social-text {
  font-weight: 500;
}

/* SVG icon styling */
.social-icon path {
  fill: var(--primary);
}

/* Wave SVG styling */
.wave-svg g path:nth-child(1) {
  fill: var(--wave-1);
}

.wave-svg g path:nth-child(2) {
  fill: var(--wave-2);
}

.wave-svg g path:nth-child(3) {
  fill: var(--wave-3);
}

.wave-svg g path:nth-child(4) {
  fill: var(--wave-4);
}

/* Footer bar styling */
.footer-bar {
  background-color: var(--footer-bg);
  backdrop-filter: blur(10px);
  width: -webkit-fill-available;
  border-top: none;
  margin-top: -120px;
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  padding: 0 20%;
}

.footer-left {
  display: flex;
  align-items: flex-start;
  flex: 1;
  width: 50%;
}

.footer-right {
  display: flex;
  align-items: center;
  width: 50%;
  justify-content: flex-end;
}

.footer-info {
  max-width: 400px;
}

.footer-greeting {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.footer-description {
  font-size: 14px;
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-update {
  font-size: 12px;
  color: var(--text-white);
  opacity: 0.7;
}

.visitor-info {
  display: flex;
  align-items: center;
}

/* Wave effect styling */
.wave-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin: 0 0 80px 0;
  padding: 0;
}

.wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120%;
  height: 100%;
  animation: waveMove 8s ease-in-out infinite;
}
.clustrmaps-map-container {
  background-color: none !important;
}

@keyframes waveMove {
  0%,
  100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(-20px);
  }
}

@media screen and (max-width: 700px) {
  .publication-text {
    width: 100%;
    padding: 5px;
    max-width: 100%;
    line-height: 130%;
  }
  .teaching-content {
    margin-left: 10px;
  }

  .abstract-content.expanded {
    padding: 12px;
    
  }

  .abstract-text {
    font-size: 13px;
    line-height: 145%;
  }

  .arrow {
    font-size: 11px;
  }

  .publication-block {
    padding: 10px;
    width: calc(100% - 20px);
    font-size: 14px;
  }
  .intro {
    font-size: 16px;
    padding: 5px;
  }

  .infolist-item {
    justify-content: center;
  }
  .side_bar {
    display: flex;
    flex-direction: column;
    margin-right: 0px;
    max-width: 100%;
  }
  .title {
    margin-top: 20px;
  }
  .paper_title {
    font-size: 16px;
    font-weight: 600;
  }
  .paper_authors {
    font-size: 14px;
  }

  .title-small {
    margin-top: 10px;
  }
  .news_list {
    width: 100%;
  }
  .paper-img {
    width: 100%;
    max-width: 100%;
    margin-right: 0px;
    box-shadow: 3px 3px 3px var(--shadow);
  }
  .avatar-block {
    display: flex;
    align-items: center;
  }
 
  .avatar {
    width: 60vw;
    max-width: 300px;
    border-radius: 30vw;
    margin-top: 20px;
    height: 60vw;
    max-height: 300px;
    object-fit: cover;
  }
  .basic-info {
    justify-content: center;
  }
  .main-block {
    width: calc(100vw - 50px);
    margin-left: 0px;
    margin-top: 0px;
    text-align: justify;
    font-size: 16px;
    padding: 5px;
    max-width: calc(100vw - 40px);
  }
  .main-content {
    flex-direction: column;
  }
  .board {
    background-color: var(--bg-card);
    min-height: calc(100vh - 40px);
    height: 100%;
    width: calc(100vw - 40px);
    margin: 0;
    border-radius: 17px;
    padding: 15px;
  }
  .nav-text {
    text-align: center;
    align-self: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 5px;
    cursor: pointer;
  }
  .name {
    text-align: center;
    align-self: center;
    width: -webkit-fill-available;
    margin: 10px 0 10px 0;
    font-size: 28px;
    margin-top: 30px;
  }
  .nav-items {
    width: 90vw;
    display: flex;
    justify-content: space-evenly;
  }
  ul {
    padding-inline-start: 20px;
  }

  /* Mobile styles for clustrmaps */
  #clustrmaps-container {
    min-height: 30px;
    border-radius: 10px;
  }

  #clustrmaps-container #clustrmaps-widget-v2 {
    max-width: 140px;
  }

  /* Mobile styles for social links */
  .social-links {
    flex-direction: row;
    gap: 6px;
  }

  .social-link {
    font-size: 12px;
    padding: 3px 6px;
    gap: 6px;
  }

  .social-icon {
    width: 16px;
    height: 16px;
  }

  /* Mobile styles for footer */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 15px;
  }
  .footer-right {
    width: 100%;
    justify-content: center;
  }
  .footer-left {
    align-items: center;
    width: 100%;
  }

  .footer-info {
    max-width: 100%;
    text-align: center;
  }

  .footer-greeting {
    font-size: 15px;
  }

  .footer-description {
    font-size: 13px;
  }

  .footer-update {
    font-size: 11px;
  }

  /* Mobile styles for wave effect */
  .wave-container {
    height: 120px;
  }

  .footer-bar {
    margin-top: -80px;
    padding: 10px 0;
  }

  /* Mobile styles for publication links */
  .publication-links {
    gap: 8px;
  }

  .pub-link {
    padding: 4px 8px;
    font-size: 12px;
    gap: 4px;
    border-radius: 4px;
  }
  .news-time {
    font-size: 14px;
    
    margin-right: 10px;
  }
  .pub-icon {
    width: 14px;
    height: 14px;
  }

/* Mobile styles for talks */
.talk-block {
  padding: 12px;
  width: calc(100% - 24px);
  margin-top: 12px;
}

.talk-video-wrapper {
  width: 100%;
  margin-right: 0;
  margin-bottom: 10px;
  align-self: center;
}

.talk-video-preview {
  width: 100%;
  height: auto;
}

.talk-main-content {
  flex-direction: column;
}

.talk_title {
  font-size: 16px;
}

.talk_event {
  font-size: 13px;
}

.talk_meta {
  font-size: 12px;
}

.talk_description {
  font-size: 13px;
}

.talk-links {
  gap: 8px;
}

}


/* 项目网格布局 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.project-section {
  margin-bottom: 40px;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--border-warm);
}

.project-card-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 2px;
  margin-bottom: 8px;
  border: 0.5px solid var(--border-light);
}

.project-card-description {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: justify;
  flex-grow: 1;
  margin-top: auto;
}

/* 通用区域介绍样式 */
.section-intro {
  margin: 60px 0 40px 0;
  text-align: center;
}

/* Medium screens */
@media screen and (max-width: 900px) and (min-width: 701px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

/* Mobile styles */
@media screen and (max-width: 600px) {
  .section-intro {
    margin: 40px 0 30px 0;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .project-card {
    padding: 16px;
  }
  
  .project-card-image {
    height: 120px;
  }
  
  .project-card-description {
    font-size: 12px;
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .projects-grid {
    gap: 12px;
  }
  
  .project-card {
    padding: 12px;
  }
}

