/* 年会页 11/11：保留画面，缓动切换；避免整块重新出现。 */
:root {
  --annual-ease: cubic-bezier(.22, .68, .26, 1);
  --annual-switch-duration: 360ms
}

/* 案例容器不再向上移动，不切换不可插值的渐变背景。 */
#cases .case,
#cases .case:hover {
  background: linear-gradient(145deg, #f9eddb, #efddc2);
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#cases .case {
  border-color: #e8cda9;
  box-shadow: 0 12px 28px rgba(109, 24, 16, .15);
  transition: border-color 160ms ease, box-shadow 200ms var(--annual-ease);
}

#cases .case:hover {
  border-color: #fff0d0;
  box-shadow: 0 18px 34px rgba(88, 19, 12, .22)
}

#cases .case img {
  transform: scale(1);
  transition: transform 340ms var(--annual-ease);
  backface-visibility: hidden
}

#cases .case:hover img {
  transform: scale(1.025)
}

/* 三个阶段共用固定画布，以常驻图文层交叉过渡。 */
#service .timeline-tabs button {
  background: #f6e6ce;
  background-image: none;
  color: #853b2d;
  transform: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .6);
  border-color: #ecd2ad;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

#service .timeline-tabs button:not(.active):hover {
  background: #fff0d9;
  color: #853b2d;
  border-color: #fff0d0;
  transform: none
}

#service .timeline-tabs button.active {
  background: #9e3329;
  background-image: none;
  color: #fff2dd;
  border-color: #e9c08d;
  box-shadow: inset 0 1px rgba(255, 241, 215, .3), 0 6px 16px rgba(97, 23, 18, .15);
  transform: none
}

#service .timeline-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  animation: none !important
}

#service .timeline-scene {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--service-offset, 12px), 0, 0);
  transition: opacity var(--annual-switch-duration) ease, transform 360ms var(--annual-ease);
}

#service .timeline-scene.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0)
}

#service .timeline-scene .timeline-img {
  min-width: 0;
  backface-visibility: hidden
}

#service .timeline-scene .timeline-copy {
  min-width: 0
}

@media(max-width:900px) {
  #service .timeline-scene {
    grid-template-columns: 1fr
  }

  #service .timeline-scene .timeline-img {
    min-height: 280px
  }
}

@media(prefers-reduced-motion:reduce) {

  #cases .case,
  #cases .case img,
  #service .timeline-tabs button,
  #service .timeline-scene {
    transition: none !important;
    animation: none !important
  }

  #cases .case:hover img {
    transform: none
  }

  #service .timeline-scene {
    transform: none
  }
}