/* 时间轴样式 */
.timeline-section {
  padding: 80px 0;
  position: relative;
}

.timeline-section::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: url(../image/noise-a6f1278e.png) repeat top left;
  background-size: 15.625rem 15.625rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

.timeline {
  position: relative;
  max-width: 75rem;
  margin: 50px auto;
  padding: 0 1.25rem;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: linear-gradient(to bottom, #00C66B, #3fccff);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
  z-index: 2;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #00C66B;
  border: 4px solid #fafafa; /* 使用网站背景色 */
  top: 15px;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 10px rgba(0,198,107,0.3);
  transition: all 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(0,198,107,0.5);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #fafafa; /* 使用网站背景色 */
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #fafafa;
}

.timeline-item.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #fafafa; /* 使用网站背景色 */
  border-width: 10px 10px 10px 0;
  border-color: transparent #fafafa transparent transparent;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-item.left::after {
  right: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(52,52,52,.2);
  border-left: 4px solid #00C66B;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.timeline-item.right .timeline-content {
  border-left: none;
  border-right: 4px solid #3fccff;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(52,52,52,.3);
}

.timeline-date {
  font-weight: 600;
  color: #00C66B;
  margin-bottom: 10px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-item.right .timeline-date {
  color: #3fccff;
}

.timeline-title {
  font-family: playfair display, times new roman, Times, serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #343434;
  line-height: 1.2;
}

.timeline-desc {
  color: #666;
  line-height: 1.8;
  font-size: 0.875rem;
}

.timeline-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    min-height: 30px;
    line-height: 1;
}

.timeline-item.right .timeline-icon {
  color: #3fccff;
}

/* 与现有highlights-header样式保持一致 */
.timeline-section .highlights-header {
  padding-top: 0;
  padding-bottom: 3rem;
}

/* 响应式设计 */
@media screen and (max-width: 64em) {
  .timeline-section {
    padding: 60px 0;
  }
  
  .timeline {
    margin: 40px auto;
    padding: 0 2.5rem;
  }
}

@media screen and (max-width: 48em) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 60px;
    border: medium solid #fafafa;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fafafa transparent transparent;
  }

  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 21px;
  }

  .timeline-item.right .timeline-content {
    border-left: 4px solid #00C66B;
    border-right: none;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  }

  .timeline-item.right .timeline-date {
    color: #00C66B;
  }

  .timeline-item.right .timeline-icon {
    color: #00C66B;
  }
  
  .timeline-title {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 40em) {
  .timeline-section {
    padding: 40px 0;
  }
  
  .timeline {
    margin: 30px auto;
    padding: 0 1.25rem;
  }
  
  .timeline-content {
    padding: 15px 20px;
  }
  
  .timeline-title {
    font-size: 1.125rem;
  }
  
  .timeline-desc {
    font-size: 0.8rem;
  }
}

/* 一言样式 */
      .hitokoto-container {
        margin-top: 30px;
        text-align: center;
        position: relative;
        min-height: 60px;
      }
      
      .hitokoto-text {
        font-family: playfair display, times new roman, Times, serif;
        font-size: 1.2rem;
        color: rgba(250, 250, 250, 0.8);
        line-height: 1.6;
        margin: 0 auto;
        max-width: 600px;
        padding: 0 20px;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        position: absolute;
        width: 100%;
        left: 0;
      }
      
      .hitokoto-text.active {
        opacity: 1;
      }
      
      .hitokoto-author {
        font-size: 0.9rem;
        color: rgba(250, 250, 250, 0.6);
        margin-top: 8px;
        font-style: italic;
      }
      
      .hitokoto-refresh {
        background: transparent;
        border: none;
        color: rgba(250, 250, 250, 0.5);
        cursor: pointer;
        font-size: 0.8rem;
        margin-top: 15px;
        transition: color 0.3s ease;
      }
      
      .hitokoto-refresh:hover {
        color: rgba(250, 250, 250, 0.8);
      }
      
      /* 响应式调整 */
      @media screen and (max-width: 768px) {
        .hitokoto-text {
          font-size: 1rem;
          padding: 0 15px;
        }
      }
      
      @media screen and (max-width: 480px) {
        .hitokoto-text {
          font-size: 0.9rem;
        }
        
        .hitokoto-container {
          min-height: 50px;
        }
      }