/* ==========================================================================
   MODELVIEW 模界模型 - 发展历程时间轴样式 (Timeline)
   ========================================================================== */

.about-timeline-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 0 0 0;
  box-sizing: border-box;
}

.timeline-container {
  position: relative;
  margin: 100px auto;
  padding: 40px 0;
}

/* 贯穿居中的中轴细线 */
.timeline-axis-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: #dcdcdc;
  transform: translateX(-50%);
  z-index: 1;
}

/* 每一行基础布局 */
.timeline-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 70px;
  z-index: 2;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

/* 左右两列分配 */
.timeline-col-year,
.timeline-col-card {
  flex: 1;
  box-sizing: border-box;
}

/* 中间节点同心圆 */
.timeline-node-point {
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.node-circle-outer {
  width: 26px;
  height: 26px;
  background-color: #fcebe9; /* 浅肉粉色外环 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-circle-inner {
  width: 8px;
  height: 8px;
  background-color: #b72814; /* 沉稳深红中心点 */
  border-radius: 50%;
}

/* ================= 年份胶囊与引线 ================= */
.timeline-col-year {
  display: flex;
  align-items: center;
}

.year-badge {
  background-color: #b72814;
  color: #ffffff;
  font-family: 微软雅黑;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2.2px;
  padding: 8px 38px;
  border-radius: 2px;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 4px 12px rgba(183, 40, 20, 0.25);
}

.year-line {
  height: 1px;
  background-color: #dcdcdc;
  flex: 0.1;
}

/* ================= 浅灰色内容卡片 ================= */
.history-card {
  position: relative; /* 核心：为绝对定位的伪元素箭头提供定位锚点 */
  background-color: #eaeaea;
  border-radius: 4px;
  padding: 20px 32px;
  box-sizing: border-box;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.row-left-year .history-card {
  margin-left: 55px;
}
.row-right-year .history-card {
  margin-right: 55px;
}

.history-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
/* 伪元素箭头通用尺寸与垂直居中规则 */
.history-card::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  pointer-events: none;
}

/* ================= 1. 右侧卡片：带有一个【向左居中】的三角箭头 ================= */
/* 当卡片位于右侧列时 (.row-left-year 下的卡片) */
.row-left-year .timeline-col-card .history-card::before {
  left: -10px; /* 贴紧卡片左侧并向外伸出 */
  border-width: 8px 10px 8px 0;
  border-color: transparent #eaeaea transparent transparent; /* 实心灰三角指向左侧 */
}

/* ================= 2. 左侧卡片：带有一个【向右居中】的三角箭头 ================= */
/* 当卡片位于左侧列时 (.row-right-year 下的卡片) */
.row-right-year .timeline-col-card .history-card::before {
  right: -10px; /* 贴紧卡片右侧并向外伸出 */
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent #eaeaea; /* 实心灰三角指向右侧 */
}

.card-header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  /* margin-bottom: 16px; */
}

.card-header-bar.right-align {
  justify-content: flex-end;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 1.8px;
  margin: 0;
}

.red-line-tag {
  display: inline-block;
  width: 2px;
  height: 16px;
  background-color: #b72814;
  border-radius: 1px;
}

.card-desc {
  font-size: 16px;
  color: #666666;
  line-height: 1.85;
}

.card-desc-line {
  display: inline-block;
  width: 100%;
  height: 1px;
  background-color: #dcdddd;
}

.card-summary {
  font-size: 16px;
  font-weight: bold;
  color: #666666;
  line-height: 1.6;
}

/* ================= 左右位置对齐微调 ================= */

/* 1. 年份在左，卡片在右 (row-left-year) */
.row-left-year .timeline-col-year {
  justify-content: flex-end;
  padding-right: 0;
}

.row-left-year .history-card {
  text-align: left;
}

.row-right-year .timeline-col-year {
  justify-content: flex-start;
  padding-left: 0;
}

.row-right-year .history-card {
  text-align: right;
}

.row-right-year .card-desc {
  text-align: right;
}

/* ================= 移动端适配 (<= 768px) ================= */
@media screen and (max-width: 768px) {
  .about-timeline-section {
    padding: 40px 15px 60px 15px;
  }

  /* 中轴线靠左放置 */
  .timeline-axis-line {
    left: 20px;
    transform: none;
  }

  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 45px;
    padding-left: 45px;
  }

  /* 节点圆圈吸附在中轴线上 */
  .timeline-node-point {
    position: absolute;
    left: 4px;
    top: 6px;
    width: auto;
  }

  /* 年份与卡片全端左对齐排布 */
  .timeline-col-year,
  .timeline-col-card {
    width: 100%;
    padding: 0 !important;
  }

  .timeline-col-year {
    justify-content: flex-start !important;
    margin-bottom: 14px;
  }

  .year-badge {
    font-size: 16px;
    padding: 5px 20px;
  }

  .year-line {
    display: none;
  }

  .history-card {
    padding: 20px;
    text-align: left !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  .card-header-bar {
    justify-content: flex-start !important;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc {
    font-size: 12.5px;
    text-align: left !important;
  }

  .card-summary {
    font-size: 12.5px;
    text-align: left !important;
  }
  /* 移动端排版统一靠左，所有卡片均统一为向左的箭头，或者直接隐藏保持极简 */
  .row-right-year .timeline-col-card .history-card::before {
    right: auto;
    left: -8px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #f5f5f5 transparent transparent;
  }

  .row-left-year .timeline-col-card .history-card::before {
    left: -8px;
    border-width: 6px 8px 6px 0;
  }
}
