/* 文字链接的反色擦过效果，仅作用于招聘页。 */
html body.zc-page .site-footer a:not(.zh-footer-qr-link),
html body.zc-page .zc-hero-mail,
html body.zc-page .zc-mail {
  position: relative;
}

html body.zc-page .site-footer a:not(.zh-footer-qr-link),
html body.zc-page .zc-mail { display: inline-block; }

html body.zc-page .site-footer a:not(.zh-footer-qr-link)::after,
html body.zc-page .zc-hero-mail::after,
html body.zc-page .zc-mail::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -1px -2px;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .52s cubic-bezier(.4, 0, .2, 1);
}

html body.zc-page .site-footer a:not(.zh-footer-qr-link):hover::after,
html body.zc-page .site-footer a:not(.zh-footer-qr-link):focus-visible::after,
html body.zc-page .zc-hero-mail:hover::after,
html body.zc-page .zc-hero-mail:focus-visible::after,
html body.zc-page .zc-mail:hover::after,
html body.zc-page .zc-mail:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 动画可用时，每次悬停都生成独立的擦过层，快速划过多项也能完整退场。 */
html.zc-wipe-motion body.zc-page .site-footer a:not(.zh-footer-qr-link):hover::after,
html.zc-wipe-motion body.zc-page .zc-hero-mail:hover::after,
html.zc-wipe-motion body.zc-page .zc-mail:hover::after { transform: scaleX(0); }

html body.zc-page .zc-wipe-bar {
  position: absolute;
  z-index: 2;
  inset: -1px -2px;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

html body.zc-page .site-footer a:not(.zh-footer-qr-link):hover { text-decoration: none; }
html body.zc-page main#main-content .zc-hero a.zc-hero-mail:hover,
html body.zc-page .zc-mail:hover { color: #1d1d1d !important; }

@media (prefers-reduced-motion: reduce) {
  html body.zc-page .site-footer a:not(.zh-footer-qr-link)::after,
  html body.zc-page .zc-hero-mail::after,
  html body.zc-page .zc-mail::after { transition: none; }
}
