.services-hero__backdrop {
  background: #020713;
}

.service-work {
  z-index: 2;
  height: 8070px;
  border-radius: 0 0 80px 80px;
  background: #fbfcff url("assets/service-type-back.png?v=20261016-five-services-1") center top / 100% 100% no-repeat;
}

.service-work__canvas {
  position: absolute;
  z-index: 1;
  left: var(--side);
  top: 0;
  width: 1520px;
  height: 8070px;
}

.service-panel {
  position: absolute;
  left: 0;
  width: 1520px;
  height: 1476px;
}

.service-panel--website {
  top: 1706px;
  height: 1466px;
}

.service-panel--apps {
  top: 3342px;
}

.service-panel--overseas {
  top: 120px;
}

.service-panel--brand-operation {
  top: 4938px;
  height: 1426px;
}

.service-panel--brand-promotion {
  top: 6484px;
  height: 1466px;
}

/* 五个业务板块共用一次性入场时间轴，所有元素在 2s 时同时完成。 */
.service-panel.service-panel-motion-ready > h2 {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transform: translateY(18px);
  will-change: opacity, clip-path, transform;
}

.service-panel.service-panel-motion-ready .service-panel__word,
.service-panel.service-panel-motion-ready .service-panel__visual {
  opacity: 0;
  scale: .5;
  transform-origin: center;
  will-change: opacity, scale;
}

.service-panel.service-panel-motion-ready .service-panel__intro {
  opacity: 1;
}

.service-intro__line {
  display: block;
  opacity: 0;
  text-align: justify;
  text-align-last: justify;
  will-change: opacity;
}

.service-intro__line:last-child {
  text-align: left;
  text-align-last: auto;
}

.service-panel.service-panel-motion-ready.is-panel-visible > h2 {
  animation: service-title-mask-rise 2s cubic-bezier(.22, 1, .36, 1) both;
}

.service-panel.service-panel-motion-ready.is-panel-visible .service-panel__word {
  animation: service-word-scale-in 2s cubic-bezier(.22, 1, .36, 1) both;
}

.service-panel.service-panel-motion-ready.is-panel-visible .service-panel__visual {
  animation: service-visual-scale-in 2s cubic-bezier(.22, 1, .36, 1) both;
}

.service-panel.service-panel-motion-ready.is-panel-visible .service-intro__line {
  animation: service-intro-line-fade 2s cubic-bezier(.22, 1, .36, 1) var(--service-line-delay) both;
}

@keyframes service-title-mask-rise {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes service-word-scale-in {
  from {
    opacity: 0;
    scale: .5;
  }
  to {
    opacity: .08;
    scale: 1;
  }
}

@keyframes service-visual-scale-in {
  0%, 6% {
    opacity: 0;
    scale: .5;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes service-intro-line-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.service-panel > h2 {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  margin: 0;
  font-size: 80px;
  line-height: 128px;
  font-weight: 700;
  letter-spacing: -.055em;
  white-space: nowrap;
  background: linear-gradient(90deg, #3864ec 0%, #b2c5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-panel__word {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 166px;
  width: 1520px;
  height: 241px;
  display: block;
  object-fit: contain;
  opacity: .08;
  pointer-events: none;
  user-select: none;
}

.service-panel__visual {
  position: absolute;
  z-index: 2;
  display: block;
  object-fit: contain;
  user-select: none;
}

.service-panel--website .service-panel__visual {
  left: 430px;
  top: 200px;
  width: 580px;
  height: 408px;
}

.service-panel--apps .service-panel__visual {
  left: 490px;
  top: 182px;
  width: 460px;
  height: 524px;
}

.service-panel--overseas .service-panel__visual {
  left: 440px;
  top: 133px;
  width: 560px;
  height: 556px;
}

.service-panel--brand-operation .service-panel__visual {
  left: 489px;
  top: 185px;
  width: 542px;
  height: 438px;
}

.service-panel--brand-promotion .service-panel__visual {
  left: 422px;
  top: 195px;
  width: 676px;
  height: 400px;
}

.service-panel__intro {
  position: absolute;
  z-index: 3;
  left: 1150px;
  top: 515px;
  width: 370px;
  margin: 0;
  color: #000b2c;
  font-size: 18px;
  line-height: 36px;
  text-align: justify;
}

.service-panel--apps .service-panel__intro,
.service-panel--overseas .service-panel__intro {
  top: 525px;
}

.service-panel--brand-operation .service-panel__intro {
  left: 1142px;
  width: 378px;
}

.service-panel--brand-promotion .service-panel__intro {
  left: 1167px;
  width: 353px;
}

.service-accordion {
  position: absolute;
  z-index: 4;
  left: 160px;
  bottom: 0;
  width: 1200px;
  height: 616px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-accordion::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #d9d9d9;
  pointer-events: none;
  transition: opacity .26s ease;
}

.service-option {
  position: relative;
  flex: 0 0 auto;
  height: 178px;
  transition: height .68s cubic-bezier(.22, 1, .36, 1);
  will-change: height;
}

.service-option > button {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #000b2c;
  text-align: left;
  cursor: pointer;
  transition: color .42s ease, background-color .68s cubic-bezier(.22, 1, .36, 1), border-radius .68s cubic-bezier(.22, 1, .36, 1), box-shadow .42s ease;
}

.service-option > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #d9d9d9;
  transition: opacity .26s ease;
}

.service-option__title {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 65px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -.025em;
  transition: left .68s cubic-bezier(.22, 1, .36, 1), top .68s cubic-bezier(.22, 1, .36, 1), color .42s ease;
}

.service-option__plus {
  position: absolute;
  z-index: 3;
  right: 40px;
  top: 50%;
  width: 32px;
  height: 32px;
  color: #000b2c;
  translate: 0 -50%;
  transform: rotate(0deg);
  transform-origin: center;
  transition: right .68s cubic-bezier(.22, 1, .36, 1), top .68s cubic-bezier(.22, 1, .36, 1), color .42s ease, transform .68s cubic-bezier(.22, 1, .36, 1);
}

.service-option__plus::before,
.service-option__plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
}

.service-option__plus::after {
  transform: rotate(90deg);
}

.service-option__detail {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .34s ease, transform .5s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .68s;
}

.service-option__detail > span {
  position: absolute;
  left: 40px;
  top: 102px;
  width: 479px;
  color: #fafdff;
  font-size: 18px;
  line-height: 36px;
  font-weight: 400;
}

.service-option__detail > img {
  position: absolute;
  left: 693px;
  top: 50px;
  width: 285px;
  height: 160px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

.service-option.is-open {
  height: 260px;
}

.service-option.is-open > button {
  border-radius: 24px;
  background: #3864ec;
  color: #fafdff;
  box-shadow: 0 22px 60px rgba(56, 100, 236, .16);
}

.service-option.is-open > button::after {
  opacity: 0;
}

/* 展开卡片上下不保留灰色分隔线；收起后由状态移除自动恢复。 */
.service-option:has(+ .service-option.is-open) > button::after,
.service-accordion:has(.service-option:last-child.is-open)::after {
  opacity: 0;
}

.service-option.is-open .service-option__title {
  left: 40px;
  top: 50px;
  color: #fafdff;
}

.service-option.is-open .service-option__plus {
  right: 40px;
  top: 50%;
  color: #f9fcff;
  transform: rotate(45deg);
}

.service-option.is-open .service-option__detail {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .16s, .12s, 0s;
}

.service-option > button:hover .service-option__title,
.service-option > button:focus-visible .service-option__title {
  color: #3864ec;
}

.service-option.is-open > button:hover .service-option__title,
.service-option.is-open > button:focus-visible .service-option__title {
  color: #fff;
}

.service-option > button:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(56, 100, 236, .28);
}

.service-option.is-open > button:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .62), 0 22px 60px rgba(56, 100, 236, .16);
}

@media (max-width: 1500px) and (min-width: 901px) {
  .service-work__canvas {
    transform: scale(.82);
    transform-origin: top left;
  }
}

@media (max-width: 900px) {
  .services-hero__backdrop {
    background: #020713 url("assets/services-mobile-bg.png") center / cover no-repeat;
  }

  .services-hero__video {
    display: none;
  }

  .services-page .case-banner {
    background: #030916 url("assets/services-banner-mobile-bg.png") center / cover no-repeat;
  }

  .services-page .case-banner__video {
    display: none;
  }

  .service-work {
    height: auto;
    padding: 82px 24px 40px;
    background-size: cover;
  }

  .service-work__canvas {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
  }

  .service-panel,
  .service-panel--website,
  .service-panel--apps,
  .service-panel--overseas,
  .service-panel--brand-operation,
  .service-panel--brand-promotion {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 1160px;
    margin: 0 0 86px;
  }

  .service-panel:last-child {
    margin-bottom: 0;
  }

  .service-panel > h2 {
    position: relative;
    left: auto;
    top: auto;
    font-size: clamp(42px, 12vw, 66px);
    line-height: 1.25;
    white-space: normal;
  }

  .service-panel__word {
    left: 0;
    top: 108px;
    width: 100%;
    height: auto;
    opacity: .08;
  }

  .service-panel--website .service-panel__visual,
  .service-panel--apps .service-panel__visual,
  .service-panel--overseas .service-panel__visual,
  .service-panel--brand-operation .service-panel__visual,
  .service-panel--brand-promotion .service-panel__visual {
    left: 50%;
    top: 145px;
    width: min(86vw, 460px);
    height: 320px;
    transform: translateX(-50%);
  }

  .service-panel__intro,
  .service-panel--apps .service-panel__intro,
  .service-panel--overseas .service-panel__intro,
  .service-panel--brand-operation .service-panel__intro,
  .service-panel--brand-promotion .service-panel__intro {
    left: 0;
    top: 475px;
    width: 100%;
    font-size: 15px;
    line-height: 29px;
    text-align: left;
  }

  .service-accordion {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 484px;
  }

  .service-option {
    height: 92px;
  }

  .service-option.is-open {
    height: 300px;
  }

  .service-option__title {
    top: 29px;
    max-width: calc(100% - 62px);
    font-size: 18px;
    line-height: 30px;
  }

  .service-option__plus {
    right: 22px;
    top: 50%;
    width: 26px;
    height: 26px;
  }

  .service-option__plus::before,
  .service-option__plus::after {
    top: 11px;
    width: 26px;
    height: 3px;
  }

  .service-option.is-open .service-option__title {
    left: 22px;
    top: 24px;
  }

  .service-option.is-open .service-option__plus {
    right: 22px;
    top: 50%;
  }

  .service-option__detail > span {
    left: 22px;
    top: 70px;
    width: calc(100% - 44px);
    padding-right: 0;
    font-size: 14px;
    line-height: 25px;
  }

  .service-option__detail > img {
    left: 22px;
    top: 190px;
    width: 160px;
    height: 90px;
  }
}

@media (max-width: 500px) {
  .service-panel,
  .service-panel--website,
  .service-panel--apps,
  .service-panel--overseas,
  .service-panel--brand-operation,
  .service-panel--brand-promotion {
    height: 1220px;
  }

  .service-panel__intro,
  .service-panel--apps .service-panel__intro,
  .service-panel--overseas .service-panel__intro,
  .service-panel--brand-operation .service-panel__intro,
  .service-panel--brand-promotion .service-panel__intro {
    top: 455px;
  }

  .service-option.is-open {
    height: 330px;
  }

  .service-accordion {
    height: 514px;
  }

  .service-option__detail > img {
    top: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel.service-panel-motion-ready > h2 {
    opacity: 1;
    clip-path: none;
    transform: translateY(0);
  }

  .service-panel.service-panel-motion-ready .service-panel__word {
    opacity: .08;
    scale: 1;
  }

  .service-panel.service-panel-motion-ready .service-panel__visual,
  .service-panel.service-panel-motion-ready .service-panel__intro {
    opacity: 1;
    scale: 1;
  }

  .service-panel.service-panel-motion-ready .service-intro__line {
    opacity: 1;
  }

  .service-option,
  .service-option > button,
  .service-option__title,
  .service-option__plus,
  .service-option__detail {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
