.kkcn-history {
  --track-height: 220vh;
  --step-distance: 40vh;
  --step-count: 4;
  --sticky-top: 0px;
  --image-width: 54%;
  --mobile-image-height: 330px;
  --fade: 320ms;
  --copy-fade: 220ms;
  --panel-offset: 24px;
  --media-scale: 1.035;
  --overlay: #0f110e42;
  --line-width: 1px;
  --line-bg: #1d211d2e;
  --dot-size: 7px;
  --dot-hit-size: 32px;
  --progress-duration: 220ms;
  background: #eee8dd;
  color: #1d211d;
  font: 400 16px/1.6 Arial,"Microsoft YaHei","PingFang SC",sans-serif;
}

.kkcn-history,
.kkcn-history * {
  box-sizing: border-box;
}

.kkcn-history :is(p, h2) {
  padding: 0;
  margin: 0;
}

.kkcn-history .kh-track {
  height: auto;
}

.kkcn-history.is-scroll .kh-track {
  height: var(--computed-track-height, var(--track-height));
  min-height: var(--computed-track-min-height, var(--track-height));
}

.kkcn-history .kh-stage {
  display: grid;
  grid-template-columns: minmax(0, var(--image-width)) minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
}

.kkcn-history.is-scroll .kh-stage {
  position: sticky;
  top: var(--sticky-top);
  height: calc(100svh - var(--sticky-top));
}

.kkcn-history .kh-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #cbc1b2;
}

.kkcn-history .kh-visual::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  content: '';
  background:
    linear-gradient(90deg, transparent 65%, rgb(20 22 18 / 12%)),
    linear-gradient(0deg, var(--overlay), transparent 34%);
}

.kkcn-history .kh-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(var(--media-scale));
  transition:
    opacity var(--effective-fade, var(--fade)) ease,
    transform calc(var(--effective-fade, var(--fade)) + 200ms) cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.kkcn-history .kh-image.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.kkcn-history .kh-index {
  position: absolute;
  z-index: 3;
  left: 43px;
  bottom: 36px;
  color: #fff;
  font: 400 10.88px/1.6 Arial,"Microsoft YaHei","PingFang SC",sans-serif;
  letter-spacing: 1.7408px;
  transition: transform var(--fade);
}

.kkcn-history .kh-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 86.4px 30px;
  background: #eee8dd;
}

.kkcn-history .kh-eyebrow {
  margin-bottom: 30px;
  color: #776d5d;
  font: 600 11.52px/1.6 Arial,"Microsoft YaHei","PingFang SC",sans-serif;
  letter-spacing: 1.3824px;
  text-transform: uppercase;
}

.kkcn-history .kh-panels {
  min-width: 0;
  display: grid;
}

.kkcn-history .kh-panel {
  grid-area: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(var(--panel-offset));
  transition:
    opacity var(--copy-fade) ease,
    transform var(--copy-fade) ease,
    visibility 0s linear var(--copy-fade);
  pointer-events: none;
}

.kkcn-history .kh-panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity var(--copy-fade) ease,
    transform calc(var(--copy-fade) + 80ms) cubic-bezier(.22, .61, .36, 1);
  pointer-events: auto;
}

.kkcn-history .kh-year {
  display: block;
  margin-bottom: 25px;
  color: #8b7c65;
  font: 500 23.04px/1.6 Arial,"Microsoft YaHei","PingFang SC",sans-serif;
  letter-spacing: 1.8432px;
}

.kkcn-history .kh-heading {
  margin-bottom: 34px;
  overflow-wrap: anywhere;
  color: #1d211d;
  font: 500 47.52px/1.08 Arial,"Microsoft YaHei","PingFang SC",sans-serif;
  letter-spacing: -.85536px;
  text-transform: uppercase;
}

.kkcn-history .kh-heading em {
  color: #8b7c65;
  font: inherit;
}

.kkcn-history .kh-description {
  max-width: 540px;
  overflow-wrap: anywhere;
  color: #5f625c;
  font: 400 15.12px/1.6 Arial,"Microsoft YaHei","PingFang SC",sans-serif;
  white-space: pre-line;
}

.kkcn-history .kh-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: var(--line-width);
  margin-top: 32px;
  background: transparent;
}

.kkcn-history .kh-progress::before {
  position: absolute;
  inset: 0 calc(var(--dot-hit-size) / 2);
  content: '';
  background: var(--line-bg);
}

.kkcn-history .kh-fill {
  position: absolute;
  z-index: 1;
  inset: 0 calc(var(--dot-hit-size) / 2);
  background: #1d211d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--progress-duration) cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.kkcn-history .kh-dot {
  position: relative;
  z-index: 1;
  width: var(--dot-hit-size);
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.kkcn-history .kh-dot::after {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  content: '';
  background: #b9ae9c;
  transition: transform 180ms ease, background-color 180ms ease;
}

.kkcn-history .kh-dot:is(.is-active, :hover)::after {
  background: #1d211d;
  transform: scale(1.2);
}

.kkcn-history .kh-dot:focus-visible {
  outline: 2px solid #8b7c65;
  outline-offset: 2px;
}

.kkcn-history .kh-video.is-active {
  pointer-events: auto;
}

.kkcn-history .kh-video:not(.is-active) {
  visibility: hidden;
}

.kkcn-history .kh-visual.has-video-controls::after {
  bottom: 54px;
}

.kkcn-history .kh-visual.has-video-controls .kh-index {
  transform: translateY(-54px);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .kkcn-history {
    --step-distance: 36vh;
  }

  .kkcn-history .kh-stage {
    min-height: 620px;
  }

  .kkcn-history .kh-copy {
    padding: 70px 35px 30px;
  }
}

@media (max-width: 767px) {
  .kkcn-history {
    --track-height: 200vh;
    --step-distance: 34vh;
    --panel-offset: 16px;
  }

  .kkcn-history .kh-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--mobile-image-height) minmax(0, 1fr);
    min-height: 620px;
  }

  .kkcn-history .kh-copy {
    padding: 30px 20px;
  }

  .kkcn-history .kh-year {
    margin-bottom: 13px;
    font-size: 16px;
  }

  .kkcn-history .kh-eyebrow {
    margin-bottom: 20px;
  }

  .kkcn-history .kh-heading {
    margin-bottom: 18px;
    font-size: 34px;
  }

  .kkcn-history .kh-progress {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kkcn-history * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.kkcn-history .kh-era-link{display:block;color:inherit;text-decoration:none;cursor:pointer}
.kkcn-history .kh-era-link:hover .kh-heading{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.kkcn-history .kh-era-link:focus-visible{outline:2px solid #8b7c65;outline-offset:6px}
