/* 复用主官网 action-arrows.css 与首页按钮参数。 */
:root {
  --action-arrow-size: 20px;
  --action-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M7 7H17V17' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --circle-arrow-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M4.5%2012H19.5M13.5%206L19.5%2012L13.5%2018'%20fill='none'%20stroke='black'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}
.button,
.brand-copy .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 45px;
  padding: 10px 3em;
  gap: 10px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s;
}
.site-header.is-scrolled .header-cta {
  background: #fff;
}
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #f2f2f2;
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.76,0,.24,1);
}
.button:is(:hover,:focus-visible)::before {
  transform: translateY(0);
}
.action-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--action-arrow-size);
  height: var(--action-arrow-size);
  line-height: 1;
  vertical-align: middle;
  align-self: center;
  overflow: hidden;
}
.button > .action-arrow {
  position: absolute;
  right: 1.1em;
  top: 50%;
  transform: translateY(-50%);
}
.action-arrow::before,
.action-arrow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--action-arrow-mask) center/contain no-repeat;
  mask: var(--action-arrow-mask) center/contain no-repeat;
}
.action-arrow::before {
  translate: var(--arrow-shift-x, 0px) var(--arrow-shift-y, 0px);
  transition: translate var(--arrow-duration, 0s) ease;
}
.action-arrow::after {
  translate: calc(var(--arrow-shift-x, 0px) - 28px) calc(var(--arrow-shift-y, 0px) + 28px);
  transition: translate var(--arrow-duration, 0s) ease;
}
.back-to-top {
  background: #000;
  color: #fff;
  border: 0;
  box-shadow: none;
  transition: all .45s cubic-bezier(.22,1,.36,1);
}
.back-to-top:hover {
  background: #18c968;
  color: #fff;
}
.action-arrow-up {
  width: 18px;
  height: 18px;
}
.action-arrow-up::before {
  -webkit-mask-image: var(--circle-arrow-mask);
  mask-image: var(--circle-arrow-mask);
  rotate: -90deg;
}
.action-arrow-up::after {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  :is(a,button):is(:hover,:focus-visible) .action-arrow:not(.action-arrow-up) {
    --arrow-shift-x: 28px;
    --arrow-shift-y: -28px;
    --arrow-duration: .65s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button::before,
  .back-to-top {
    transition: none;
  }
}
