/* v1.1.21：首页月度考评时间线。强调流程、角色和截止节点，兼顾桌面与移动端。 */

.dashboard-timeline {
  position: relative;
  margin-bottom: 12px;
  padding: 18px 19px 13px;
  overflow: hidden;
  border: 1px solid rgba(188, 203, 231, 0.9);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-panel, 10px);
  background:
    linear-gradient(90deg, rgba(47, 111, 228, 0.055) 0, rgba(47, 111, 228, 0) 38%),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft, 0 12px 28px rgba(35, 70, 130, 0.08));
}

.dashboard-timeline::after {
  content: "08";
  position: absolute;
  top: -28px;
  right: 18px;
  color: rgba(47, 111, 228, 0.045);
  font: 800 118px/1 Georgia, "Times New Roman", serif;
  pointer-events: none;
}

.dashboard-timeline-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
}

.dashboard-timeline-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.dashboard-timeline-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.dashboard-timeline-deadline {
  display: grid;
  min-width: 126px;
  padding: 7px 11px;
  border-left: 3px solid var(--blue);
  background: rgba(47, 111, 228, 0.07);
}

.dashboard-timeline-deadline span {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.3;
}

.dashboard-timeline-deadline strong {
  margin-top: 2px;
  color: var(--blue-deep);
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-timeline-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 13px 0 0;
  border-top: 1px solid rgba(188, 203, 231, 0.75);
  list-style: none;
}

.dashboard-timeline-track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 5.2%;
  right: 5.2%;
  height: 1px;
  background: rgba(47, 111, 228, 0.25);
}

.dashboard-timeline-track li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: 31px auto;
  justify-items: center;
  padding: 0 10px;
  text-align: center;
}

.dashboard-timeline-track time {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0 7px;
  color: white;
  border: 4px solid white;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(47, 111, 228, 0.2);
  font-variant-numeric: tabular-nums;
}

.dashboard-timeline-track time strong {
  font: 750 10px/1 var(--sans);
}

.dashboard-timeline-track time span {
  font-size: 8px;
  line-height: 1;
}

.dashboard-timeline-track li:nth-child(4) time {
  min-width: 52px;
  background: var(--blue-deep);
}

.dashboard-timeline-track li:last-child time {
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(197, 48, 43, 0.22);
}

.dashboard-timeline-track li > div {
  min-width: 0;
  padding-top: 7px;
}

.dashboard-timeline-track b {
  display: block;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.dashboard-timeline-track p {
  margin: 4px auto 0;
  max-width: 126px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.dashboard-timeline-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding-top: 10px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(188, 203, 231, 0.65);
  font-size: 10px;
  line-height: 1.45;
}

.dashboard-timeline-note span {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--blue);
  font: 700 10px/1 Georgia, serif;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .dashboard-timeline-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 13px;
  }

  .dashboard-timeline-track::before {
    display: none;
  }

  .dashboard-timeline-track li {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    justify-items: start;
    gap: 8px;
    padding: 0 10px;
    text-align: left;
  }

  .dashboard-timeline-track li > div {
    padding-top: 1px;
  }

  .dashboard-timeline-track p {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .dashboard-timeline {
    margin-bottom: 9px;
    padding: 15px 14px 12px;
  }

  .dashboard-timeline::after {
    right: 7px;
    font-size: 92px;
  }

  .dashboard-timeline-heading {
    align-items: center;
    padding-bottom: 11px;
  }

  .dashboard-timeline-heading h2 {
    font-size: 22px;
  }

  .dashboard-timeline-deadline {
    min-width: 104px;
    padding: 6px 8px;
  }

  .dashboard-timeline-track {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0 0;
  }

  .dashboard-timeline-track::before {
    top: 18px;
    bottom: 18px;
    left: 14px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .dashboard-timeline-track li {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    justify-items: start;
    gap: 9px;
    min-height: 47px;
    padding: 4px 0;
    text-align: left;
  }

  .dashboard-timeline-track time {
    width: 30px;
    min-width: 30px;
    padding: 0 4px;
  }

  .dashboard-timeline-track li:nth-child(4) time {
    width: 38px;
    min-width: 38px;
    margin-left: -4px;
    padding: 0 3px;
  }

  .dashboard-timeline-track li > div {
    display: grid;
    width: 100%;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    padding: 0;
  }

  .dashboard-timeline-track p {
    max-width: none;
    margin: 0;
  }

  .dashboard-timeline-note {
    align-items: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 430px) {
  .dashboard-timeline-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .dashboard-timeline-deadline {
    width: 100%;
  }

  .dashboard-timeline-track li > div {
    grid-template-columns: 66px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-timeline,
  .dashboard-timeline * {
    scroll-behavior: auto;
  }
}
