@charset "utf-8";
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

.navbar {
    opacity: 0.95;
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

/* 出版物封面图片和视频样式 */
.cover-image {
    width: 300px;
    max-height: 200px;
}

.publication-media {
    max-width: 500px !important;
    max-height: 400px !important;
    width: 100%;
    object-fit: cover;
}

.publication-media-mobile {
    max-height: 400px !important;
    width: 100%;
    object-fit: cover;
}

/* 禁用视频交互 */
.publication-media video,
.publication-media-mobile video {
    pointer-events: none;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.nav-img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.badge-custom {
    font-size: 100%;
}

.email-text {
    font-family: Courier, monospace;
}

.experience-logo {
  width: 48px;   
  height: 48px;
  object-fit: contain;
  margin-right: 10px;  
  vertical-align: middle;
} 

/* Experience Section Styles */
.experience-logo-box {
    width: 140px; /* Fixed width */
    height: 100px; /* Fixed height */
    min-width: 140px; /* Prevent shrinking */
    background-color: #fff; /* White background */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08); /* 3D effect */
}

.experience-logo-img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.experience-logo-large {
    max-width: 90%;
    max-height: 90%;
}

/* Life & Memory Timeline Styles */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual line */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #e9ecef; /* Bootstrap light gray */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid #007bff; /* Bootstrap primary color */
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -10px;
}

/* Fix arrows/triangles pointing to the line (optional) */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white; /* Pointing right */
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent; /* Pointing left */
}


/* Media queries - Responsive timeline on smaller screens */
@media screen and (max-width: 768px) {
  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }
  
  /* Full-width containers */
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  /* Make sure all circles are at the same spot */
  .timeline-container::after {
    left: 21px;
  }
  
  /* Make all right containers behave like the left ones */
  .right {
    left: 0%;
  }

  /* Fix arrows for mobile */
  .left::before, .right::before {
      left: 60px;
      border: medium solid white;
      border-width: 10px 10px 10px 0;
      border-color: transparent white transparent transparent;
  }
}

/* Photo Grid Styles */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.grid-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.grid-item img:hover {
    transform: scale(1.05);
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Publication Highlight */
.publication-highlight {
    background-color: #fff9db !important; /* Light yellow */
    border-left: 4px solid #fcc419 !important; /* Yellow border accent */
}
