/* ========================================
   愿景展示 - 统一水平时间线设计
   参考用户提供的设计图：
   - 一条水平蓝色线
   - 4个空心圆节点在线上
   - 内容交替显示在上方和下方
   - 图标和箭头连接
   ======================================== */

/* 统一时间线容器 - 纯白背景 */
#unified-vision-timeline {
  position: relative;
  width: 100%;
  min-height: 280px;
  margin: 2rem 0;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* 主时间线 - 水平蓝色线 */
#unified-vision-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, 
    #3b82f6 0%, 
    #2563eb 50%,
    #3b82f6 100%);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 时间线光效 */
#unified-vision-timeline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.6) 0%, 
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.6) 100%);
  transform: translateY(-50%);
  z-index: 2;
}

/* 时间线节点容器 */
.timeline-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 8%;
  z-index: 3;
}

/* 单个节点项 */
.timeline-node-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  max-width: 180px;
  height: 100%;
}

/* 第1项（使命）- 下箭头，内容在线的下方 */
.timeline-node-item:nth-child(1) {
  flex-direction: column;
  justify-content: flex-start;
}

.timeline-node-item:nth-child(1) .timeline-content {
  margin-top: -2px; /* 负边距让卡片顶部紧贴线条 */
}

/* 第2项（愿景）- 上箭头，内容在线的上方 */
.timeline-node-item:nth-child(2) {
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.timeline-node-item:nth-child(2) .timeline-content {
  margin-bottom: 50px;
}

/* 第3项（短期目标）- 下箭头，内容在线的下方 */
.timeline-node-item:nth-child(3) {
  flex-direction: column;
  justify-content: flex-start;
}

.timeline-node-item:nth-child(3) .timeline-content {
  margin-top: -2px; /* 负边距让卡片顶部紧贴线条 */
}

/* 第4项（长期目标）- 上箭头，内容在线的上方 */
.timeline-node-item:nth-child(4) {
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.timeline-node-item:nth-child(4) .timeline-content {
  margin-bottom: 50px;
}

/* 节点圆圈 - 隐藏 */
.timeline-node {
  display: none;
}

/* 连接线（从节点到内容） - 移除箭头 */
.timeline-connector {
  display: none;
}

/* 内容卡片 - 增大尺寸 */
.timeline-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06),
              0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.08);
  max-width: 180px;
  min-height: 120px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.timeline-node-item:hover .timeline-content {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1),
              0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(59, 130, 246, 0.15);
}

/* 标题 */
.timeline-content h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  font-family: var(--font-display, sans-serif);
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

/* 描述 */
.timeline-content p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  font-family: var(--font-sans, sans-serif);
  position: relative;
  z-index: 2;
}

/* 副标题标签 - 统一样式 */
.timeline-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

/* 隐藏旧的容器 */
#vision-container,
#goal-container {
  display: none !important;
}

/* 移动端适配 - 垂直时间线 */
@media (max-width: 768px) {
  #unified-vision-timeline {
    min-height: 200px;
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }
  
  /* 垂直时间线 */
  #unified-vision-timeline::before {
    top: 1.5rem;
    bottom: 1.5rem;
    left: 2rem;
    right: auto;
    width: 3px;
    height: auto;
    transform: none;
  }
  
  .timeline-nodes {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    padding-left: 3rem;
    gap: 1rem;
  }
  
  .timeline-node-item {
    width: 100%;
    flex-direction: row !important;
    align-items: flex-start;
    max-width: 100%;
    height: auto;
  }
  
  .timeline-node-item .timeline-content {
    margin: 0 !important;
    max-width: 100%;
    min-height: 100px;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .timeline-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .timeline-content p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .timeline-eyebrow {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
  }
}
