.motion-button {
  position: relative;
  display: inline-flex;
  min-width: 2.2rem;
  min-height: 0.56rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 0.34rem;
  border: 1px solid transparent;
  border-radius: 999px;
  isolation: isolate;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease,
    border-color 0.3s ease;
}
.motion-button-label {
  position: relative;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.motion-button:before {
  display: none !important;
}
.motion-button:after {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block !important;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  content: "" !important;
  pointer-events: none;
  transform: translateX(-135%);
  transition: transform .62s cubic-bezier(.16,1,.3,1);
}
.motion-button-light:after {
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.92) 50%, transparent 70%);
}
.motion-button:hover:after,
.motion-button:focus-visible:after { transform: translateX(135%); }
.motion-button-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(0.5rem - 15px);
  width: 0.18rem;
  height: 0.112rem;
  opacity: 0;
  pointer-events: none;
  background: url("../assets/icons/白色箭头.svg") center / contain no-repeat;
  transform: translate(-0.112rem, -50%);
  transition:
    opacity 0.25s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.motion-button-arrow:before {
  display: none;
  content: none;
}
.motion-button-arrow:after {
  display: none;
  content: none;
}
.motion-button:hover .motion-button-arrow,
.motion-button:focus-visible .motion-button-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}
.motion-button:hover .motion-button-label,
.motion-button:focus-visible .motion-button-label {
  transform: translateX(calc(0.22rem - 9px));
}
.faq-agent .motion-button:hover .motion-button-label,
.faq-agent .motion-button:focus-visible .motion-button-label {
  transform: translateX(.15rem) !important;
}
.footer-resources .resource-download .motion-button-arrow {
  left: calc(0.5rem - 29px) !important;
  background-image: url("../assets/icons/白色箭头.svg") !important;
}
.motion-button-dark {
  border-color: #1c2225;
  background: #1c2225;
  color: #fff;
}
.nav-cta.motion-button-dark,
.mega-primary.motion-button-dark,
.service-button.motion-button-dark {
  border-color: #1c2225 !important;
  background: #1c2225 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}
.site-nav .nav-cta.motion-button {
  width: 1.77rem !important;
  min-width: 1.77rem !important;
  min-height: .49rem !important;
  height: .49rem !important;
  border-color: #1c2225 !important;
  background: #1c2225 !important;
  color: #fff !important;
}
.site-nav .nav-cta.motion-button:hover,
.site-nav .nav-cta.motion-button:focus-visible {
  border-color: #282f32 !important;
  background: #282f32 !important;
  color: #fff !important;
}
.site-nav .nav-cta .motion-button-arrow {
  left: calc(0.5rem - 28px);
}
.motion-button-dark:hover,
.motion-button-dark:focus-visible {
  border-color: #282f32;
  background: #282f32;
  color: #fff;
}
.nav-cta.motion-button-dark:hover,
.mega-primary.motion-button-dark:hover,
.service-button.motion-button-dark:hover {
  border-color: #282f32 !important;
  background: #282f32 !important;
  color: #fff !important;
}
.motion-button-light {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-button.motion-button-light,
.dot-button.light.motion-button-light,
.service-button.motion-button-light,
.contact-submit.motion-button-light,
.footer-resources .resource-download.motion-button-light {
  border-color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
.motion-button-light:hover,
.motion-button-light:focus-visible {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.glass-button.motion-button-light:hover,
.dot-button.light.motion-button-light:hover,
.service-button.motion-button-light:hover,
.contact-submit.motion-button-light:hover,
.footer-resources .resource-download.motion-button-light:hover {
  border-color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
.motion-button:focus-visible {
  outline: 2px solid #448af4;
  outline-offset: 3px;
}
@media (hover: none) {
  .motion-button-arrow {
    display: none;
  }
}
@media (max-width: 768px) {
  .site-nav .nav-cta.motion-button {
    width: 1.63rem !important;
    min-width: 1.63rem !important;
  }
}

/* Keep glass controls compact; hover only moves the light sweep. */
.motion-button-light:not(.contact-submit):not(.resource-download) {
  min-width: 1.8rem;
  height: .48rem;
  min-height: .48rem;
  padding: 0 .26rem;
}
.case-detail-button.motion-button-light {
  width: 1.8rem;
}
.motion-button-light .motion-button-arrow {
  display: none !important;
}
.motion-button-light .motion-button-label,
.motion-button-light:hover .motion-button-label,
.motion-button-light:focus-visible .motion-button-label {
  transform: none !important;
}
@media (min-width: 769px) {
  .contact-submit.motion-button-light {
    min-width: 1.8rem;
    height: .48rem;
    min-height: .48rem;
  }
  .footer-resources .resource-download.motion-button-light {
    min-width: 1.25rem !important;
    height: .4rem;
    min-height: .4rem !important;
    padding: 0 .22rem;
  }
}
@media (max-width: 768px) {
  .motion-button-light:not(.contact-submit):not(.resource-download) {
    min-width: 100px;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
  }
  .case-detail-button.motion-button-light {
    width: 100px;
  }
  .benchmark-content .dot-button.light.motion-button-light:hover,
  .benchmark-content .dot-button.light.motion-button-light:focus-visible {
    background: #1c2225 !important;
  }
}

.industries > .dot-button.motion-button-light:hover,
.industries > .dot-button.motion-button-light:focus-visible {
  color: #fff !important;
}

/* Compact content actions; navigation and case-study detail controls retain their sizes. */
body main .motion-button.motion-button:not(.case-detail-button),
#foot .site-footer .contact-submit.motion-button {
  width: auto !important;
  min-width: 1.55rem !important;
  height: .42rem !important;
  min-height: .42rem !important;
  padding: 0 .22rem !important;
  flex-basis: auto !important;
  white-space: nowrap;
}
body main .motion-button.motion-button:not(.case-detail-button) .motion-button-arrow {
  display: none !important;
}
body main .motion-button.motion-button:not(.case-detail-button) .motion-button-label,
body main .motion-button.motion-button:not(.case-detail-button):hover .motion-button-label,
body main .motion-button.motion-button:not(.case-detail-button):focus-visible .motion-button-label {
  transform: none !important;
}
.site-footer .footer-resources .resource-download.motion-button {
  min-width: 1.15rem !important;
  height: .36rem !important;
  min-height: .36rem !important;
  padding: 0 .18rem !important;
}
main .round-arrow,
main .insight-arrow {
  width: .44rem !important;
  min-width: .44rem !important;
  height: .44rem !important;
  min-height: .44rem !important;
  flex-basis: .44rem !important;
}
@media (max-width: 768px) {
  body main .motion-button.motion-button:not(.case-detail-button),
  #foot .site-footer .contact-submit.motion-button {
    min-width: 88px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    align-self: flex-start;
    font-size: 13px !important;
  }
  .geo-page .geo-diagnosis .motion-button {
    min-width: 124px !important;
    align-self: center;
  }
  .site-footer .footer-resources .resource-download.motion-button {
    min-width: 80px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
  }
  main .round-arrow,
  main .insight-arrow {
    width: min(34px, .5rem) !important;
    min-width: min(34px, .5rem) !important;
    height: min(34px, .5rem) !important;
    min-height: min(34px, .5rem) !important;
    flex-basis: min(34px, .5rem) !important;
  }
}

@media (max-width: 768px) {
  body main .faq-agent .motion-button:not(.case-detail-button) {
    min-width: 112px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 768px) {
  main :is(.brand-grid,.asset-grid) .motion-button {
    position: relative;
    inset: auto;
    margin-top: 16px;
  }
}
