.case-detail-page {
  background-color: #000002;
  background-image: url("assets/case-detail-top-back.png?v=20261015-bg-3");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.case-detail-hero {
  height: 1184px;
  background: transparent;
}

.case-detail-hero__backdrop {
  top: 104px;
  height: 1080px;
  border-radius: 0 0 80px 80px;
  background: transparent;
}

.case-detail-hero__backdrop::after {
  display: none;
}

.case-detail-title {
  position: absolute;
  z-index: 2;
  left: calc(50% - 496px);
  top: 243px;
  width: 989px;
  height: 336px;
  color: #fff;
  text-align: center;
  transform: none;
}

.case-detail-title h1,
.case-detail-title p {
  margin: 0;
}

.case-detail-title h1 {
  height: 40px;
  font-size: 56px;
  line-height: 40px;
  font-weight: 700;
}

.case-detail-title__en {
  height: 40px;
  margin-top: 44px !important;
  font-family: Arial, sans-serif;
  font-size: 40px;
  line-height: 40px;
  font-weight: 400;
}

.case-detail-title__url {
  position: relative;
  left: 1.5px;
  width: 496px;
  height: 47px;
  margin-top: 48px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  line-height: 40px;
  transition: color .25s ease, translate .25s cubic-bezier(.22, 1, .36, 1);
}

.case-detail-title__url::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.case-detail-title__url:hover,
.case-detail-title__url:focus-visible {
  color: #c3d6ff;
  translate: 0 -2px;
  outline: none;
}

.case-detail-title__url:hover::after,
.case-detail-title__url:focus-visible::after {
  transform: scaleX(1);
}

.case-detail-tags {
  margin-top: 68px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-detail-tags .service-pill {
  padding: 0 24px;
}

.case-detail-tags .service-pill:nth-child(1),
.case-detail-tags .service-pill:nth-child(2) {
  width: 188px;
}

.case-detail-tags .service-pill:nth-child(3) {
  width: 128px;
}

.case-detail-tags .service-pill:nth-child(4) {
  width: 164px;
}

.case-detail-showcase {
  position: relative;
  z-index: 2;
  width: min(1520px, calc(100% - 80px));
  margin: -515px auto 0;
  padding: 120px 0;
  overflow: hidden;
  background: #fff url("assets/case-detail-under.png") center top / 100% 100% no-repeat;
}

.case-detail-showcase > img {
  width: 100%;
  max-width: 65.7894736842%;
  height: auto;
  margin-left: 16.5789473684%;
  display: block;
  box-shadow: 0 24px 60px rgba(31, 73, 145, .035);
}

/* 第二张起：去掉向上拉进 hero 的负边距与顶部内边距，从上往下依次无缝紧贴 */
.case-detail-showcase + .case-detail-showcase {
  margin-top: 0;
  padding-top: 0;
}

.case-detail-contact {
  margin-top: 200px;
}

@media (max-width: 1500px) and (min-width: 901px) {
  .case-detail-title {
    left: 50%;
    transform: translateX(-50%) scale(.82);
    transform-origin: top center;
  }

  .case-detail-showcase {
    padding-top: 98px;
    padding-bottom: 98px;
  }

  .case-detail-contact {
    margin-top: 164px;
  }
}

@media (max-width: 900px) {
  .case-detail-page {
    background-position: center top;
    background-size: cover;
  }

  .case-detail-page section.case-detail-hero {
    height: 780px !important;
    background: transparent;
  }

  .case-detail-hero__backdrop {
    top: 78px;
    height: 702px;
    border-radius: 0;
  }

  .case-detail-title {
    left: 50%;
    top: 178px;
    width: calc(100% - 48px);
    height: auto;
    transform: translateX(-50%);
  }

  .case-detail-title h1 {
    height: auto;
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.35;
  }

  .case-detail-title__en {
    height: auto;
    margin-top: 22px !important;
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.3;
  }

  .case-detail-title__url {
    left: 0;
    width: auto;
    height: 35px;
    margin-top: 32px;
    font-size: clamp(17px, 4.8vw, 24px);
    line-height: 29px;
  }

  .case-detail-tags {
    height: auto;
    margin-top: 42px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .case-detail-tags .service-pill,
  .case-detail-tags .service-pill:nth-child(n) {
    width: auto;
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }

  .case-detail-showcase {
    width: 100%;
    margin-top: 0;
    padding: 64px 24px;
    border-radius: 0;
    background-size: 100% 100%;
  }

  .case-detail-showcase > img {
    width: 100%;
    max-width: none;
    margin-left: 0;
    box-shadow: 0 18px 42px rgba(31, 73, 145, .06);
  }

  .case-detail-contact {
    margin-top: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-detail-title__url,
  .case-detail-title__url::after,
  .case-detail-tags .service-pill {
    transition-duration: .01ms;
  }
}
