/* Year strip: fixed row band + consistent year control height */
.vsw-history-timeline .vsw-history-years {
  margin-bottom: 28px;
  position: relative;
  padding: 0 2px 12px;
  min-height: var(--vsw-history-years-strip-min-h, 76px);
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: space-around;
  row-gap: 28px;
  column-gap: var(--vsw-history-year-gap, 55px);
  cursor: default;
  box-sizing: border-box;
}

.vsw-history-timeline .vsw-history-years .vsw-history-year::after,
.vsw-history-timeline .vsw-history-years .vsw-history-year::before {
  display: none;
  content: none;
}

.vsw-history-timeline .vsw-history-year {
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  padding: 0;
  margin-right: 0;
  color: inherit;
  min-width: 44px;
  min-height: 60px;
  box-sizing: border-box;
}

.vsw-history-timeline .vsw-history-year:last-child {
  margin-right: 0;
}

/* 第 2、4、6… 行：倒序后整行靠右 */
.vsw-history-timeline .vsw-history-years .vsw-history-year.vsw-year-snake-return {
  margin-left: auto;
}

.vsw-history-timeline .item-dot {
  color: #c2c8cf;
  margin: 0 auto 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: #f2f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsw-history-timeline .item-dot svg {
  display: block;
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.vsw-history-timeline .vsw-history-year.is-active .item-dot {
  color: #00508f;
  background: #00508f;
  border-color: #00508f;
}

.vsw-history-timeline .vsw-history-year.is-active .item-dot svg {
  fill: #fff;
}

.vsw-history-timeline .item-year {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  min-height: 1.1em;
  color: #666;
}

.vsw-history-timeline .vsw-history-year.is-active .item-year {
  color: #00508f;
}

.vsw-history-timeline .vsw-history-content {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.vsw-history-timeline .vsw-history-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform var(--vsw-history-speed, 500ms) ease;
  will-change: transform;
}

.vsw-history-timeline .vsw-history-content.is-dragging {
  cursor: grabbing;
}

.vsw-history-timeline .vsw-history-panel {
  display: block !important;
  flex: 0 0 100%;
  width: 100%;
}

.vsw-history-timeline .vsw-history-panel .item-wrap {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  column-gap: 24px;
  row-gap: 24px;
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.65), rgba(255, 255, 255, 0.85));
  padding: 16px 0;
  min-height: var(--vsw-history-card-min-h, 280px);
}

.vsw-history-timeline .item-info {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.vsw-history-timeline .item-info-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vsw-history-timeline .item-subtitle {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.vsw-history-timeline .vsw-history-media {
  order: 2;
  flex: 0 0 clamp(200px, 32%, 320px);
  max-width: clamp(200px, 32%, 320px);
  width: clamp(200px, 32%, 320px);
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.vsw-history-timeline .vsw-history-media-frame {
  position: relative;
  width: 100%;
  height: var(--vsw-history-media-h, 240px);
  flex: 0 0 var(--vsw-history-media-h, 240px);
  overflow: hidden;
  border-radius: 0;
  background: #ebedf0;
  align-self: flex-start;
}

.vsw-history-timeline .vsw-history-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vsw-history-timeline .vsw-history-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--vsw-history-media-h, 240px);
  background: linear-gradient(145deg, #eef0f3 0%, #e3e6ea 100%);
}

.vsw-history-timeline .item-title {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 14px;
  color: #111;
  flex-shrink: 0;
}

.vsw-history-timeline .item-content {
  font-size: 18px;
  line-height: 1.7;
  color: #6b6f75;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.vsw-history-timeline .item-content p {
  margin: 0;
}

.vsw-history-timeline .item-more {
  width: 26px;
  height: 26px;
  background: #ff7e00;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
  align-self: flex-start;
  cursor: pointer;
}

.vsw-history-timeline .item-more svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 1199.98px) {
  .vsw-history-timeline .item-more {
    width: 26px;
    height: 26px;
    background: #ff7e00;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }

  .vsw-history-timeline .item-more svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }
}

@media (max-width: 1024px) {
  .vsw-history-timeline .item-content {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  /* 手机端：年份条单行横向滑动，更紧凑 */
  .vsw-history-timeline .vsw-history-years {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    row-gap: 0;
    column-gap: 10px;
    margin-bottom: 16px;
    padding: 0 2px 6px;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .vsw-history-timeline .vsw-history-years::-webkit-scrollbar {
    display: none;
  }

  .vsw-history-timeline .vsw-history-years .vsw-history-year.vsw-year-snake-return {
    margin-left: 0;
  }

  .vsw-history-timeline .vsw-history-year {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    padding: 2px 4px;
    scroll-snap-align: center;
  }

  .vsw-history-timeline .item-dot {
    width: 16px;
    height: 16px;
    margin-bottom: 4px;
    border-width: 1.5px;
  }

  .vsw-history-timeline .item-dot svg {
    width: 8px;
    height: 8px;
  }

  .vsw-history-timeline {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .vsw-history-timeline .vsw-history-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .vsw-history-timeline .vsw-history-track {
    width: 100%;
    max-width: 100%;
  }

  .vsw-history-timeline .vsw-history-panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .vsw-history-timeline .vsw-history-panel .item-wrap {
    flex-wrap: wrap;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .vsw-history-timeline .vsw-history-panel .item-wrap > [class*='col'] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .vsw-history-timeline .vsw-history-media {
    order: 2;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .vsw-history-timeline .vsw-history-media-frame {
    align-self: stretch;
    max-width: 100%;
    width: 100%;
  }

  .vsw-history-timeline .vsw-history-media-img {
    max-width: 100%;
  }

  .vsw-history-timeline .item-info {
    order: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .vsw-history-timeline .item-info-main,
  .vsw-history-timeline .item-title,
  .vsw-history-timeline .item-subtitle,
  .vsw-history-timeline .item-content {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 手机端隐藏「下一条」圆形按钮 */
  .vsw-history-timeline .item-more {
    display: none !important;
  }

  .vsw-history-timeline .item-year {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    min-height: 0;
  }

  .vsw-history-timeline .item-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .vsw-history-timeline .item-content {
    font-size: 16px;
  }
}

