/* 
 * Sakura Nexus 
 * ROADMAP路线图样式文件
 */

/* 路线图共享样式 */
.roadmap {
  background: linear-gradient(to right, var(--background-light), #FFFAFC);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

/* 桌面版路线图样式 */
.roadmap-desktop {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 60px;
  width: 100%;
}

/* 装饰元素 */
.roadmap-decoration {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.roadmap-decoration.left {
  left: 0;
}

.roadmap-decoration.right {
  right: 0;
}

.decoration-left,
.decoration-right {
  height: auto;
  max-width: 100%;
}

/* 路线图内容区域 */
.roadmap-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  position: relative;
}

/* 路线图项目容器 */
.roadmap-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  position: relative;
  margin-top: 40px;
}

/* 第一行和第二行路线图项目 */
.roadmap-row {
  width: 100%;
  position: relative;
  height: 300px;
}

.roadmap-row-1 {
  margin-bottom: 0px; /* 调整为0，保证与.timeline间距一致 */
}

/* 路线图时间线 */
.roadmap-timeline {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin: 40px 0;
  z-index: 2;
}

.roadmap-timeline-strip {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0 5px;
}

.roadmap-timeline-strip img {
  height: 56px;
  width: auto;
}

.roadmap-icon {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.roadmap-icon img {
  height: 80px;
  width: auto;
}

/* 单个路线图项目 */
.roadmap-item {
  position: absolute;
  top: 0;
  width: 370px; /* 保持宽度 */
  /* left值由JS动态设置 */
}

/* 季度文本样式 */
.roadmap-quarter {
  font-family: 'Aclonica', sans-serif;
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left; /* 改为左对齐，便于观察效果 */
  width: 100%;
}

/* 调整第一行路线图项目的季度文本位置 */
.roadmap-row-1 .roadmap-item .roadmap-quarter {
  order: 2;
  margin-top: 20px;
  margin-bottom: 0;
}

/* 路线图卡片 */
.roadmap-card {
  width: 364px; /* 原来280px的1.3倍 */
  background-color: transparent;
  border-left: 3px solid var(--primary-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 238px; /* 原来272px的7/8 */
  align-self: flex-start;
}

.roadmap-card-header {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* 标题样式 */
.roadmap-title {
  font-family: 'Aclonica', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--primary-color);
  margin: 0;
  padding: 12px 20px; /* 恢复原来的内边距 */
  text-align: left;
}

.roadmap-card-content {
  padding: 20px; /* 恢复原来的内边距 */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 任务列表样式 */
.roadmap-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.roadmap-tasks li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--dark-color);
  display: flex;
  align-items: flex-start;
}

.task-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* 移动版路线图样式 */
.roadmap-mobile {
  display: none;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px;
  margin-top: 40px;
}

.roadmap-mobile-item {
  width: 100%;
  max-width: 492px;
  margin: 0 auto;
}

/* 移动版卡片布局 */
.roadmap-mobile-card {
  width: 100%;
  background-color: transparent;
  display: flex;
}

/* 左侧图片区域 */
.roadmap-mobile-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 15px;
  min-width: 80px;
}

.roadmap-mobile-images .roadmap-icon-img {
  height: 80px;
  width: 80px;
  margin-bottom: 5px;
}

.roadmap-mobile-images .roadmap-strip-img {
  height: auto;
  width: 24px;
}

/* 右侧整体区域 */
.roadmap-mobile-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 季度标题 */
.roadmap-mobile-quarter {
  font-family: 'Aclonica', sans-serif;
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

/* 移动版内容区域 */
.roadmap-mobile-content {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* 移动版标题 */
.roadmap-mobile-title {
  font-family: 'Aclonica', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* 移动版任务列表 */
.roadmap-mobile-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-mobile-tasks li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--dark-color);
  display: flex;
  align-items: flex-start;
}

.roadmap-mobile-tasks .task-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .roadmap-card {
    width: 320px;
  }
}

/* 移动端显示的媒体查询，保留但实际切换由JavaScript控制 */
@media (max-width: 768px) {
  /* 默认显示设置由JavaScript控制，这里不再强制切换 */
}

@media (max-width: 576px) {
  .roadmap-mobile-quarter {
    font-size: 24px;
  }
  
  .roadmap-mobile-title {
    font-size: 18px;
  }
  
  .roadmap-mobile-tasks li {
    font-size: 14px;
  }
  
  .roadmap {
    padding: 40px 0;
  }
}



