:root {
  --yingan-brand: #625ce8;
  --yingan-ink: #17172a;
}

html,
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

.release-spirit,
.animated-text-big,
.animated-text:not(.yingan-copy),
.yingan-legacy-case,
.text-icon-bird,
.text-icon-bird-2,
.text-icon-feather-white {
  display: none !important;
}

header .logo-link {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--yingan-ink);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  white-space: nowrap;
}

header .logo-link::after {
  content: "Linux ELF / .so 程序保护";
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgb(255 255 255 / 72%);
  transition: color 300ms ease, text-shadow 300ms ease;
}

header .logo-wrapper {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

header .logo-wrapper img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
}

header .logo-wrapper-2 {
  display: none !important;
}

header:has(.simple-button.dark) .logo-link::after,
header:has(.mobile-menu-button .text-white) .logo-link::after {
  color: #fff;
  text-shadow: 0 1px 12px rgb(0 0 0 / 38%);
}

.yingan-narrative,
.yingan-narrative span {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-style: normal !important;
}

.yingan-narrative {
  line-height: 1.22;
}

.yingan-emphasis {
  font-weight: 650 !important;
}

.yingan-script {
  font-family: TheSeasons, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

.yingan-product {
  line-height: 1.16;
}

.yingan-product-kicker {
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.yingan-product-title {
  font-weight: 650;
}

.yingan-product[data-yingan-copy-updated="true"] .yingan-product-message {
  display: inline-block;
  font-size: 0.76em;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.yingan-product[data-yingan-copy-updated="true"] .yingan-product-service {
  display: inline-block;
  font-size: 0.64em;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.home-hero h1 {
  font-size: 16vw !important;
  transform: translate(13.5vw) !important;
  white-space: nowrap;
}

.home-hero h2 {
  margin-bottom: 3.5vw !important;
  font-size: clamp(52px, 4.3vw, 84px) !important;
  line-height: 1 !important;
}

.home-hero h2 span {
  font-size: 1em !important;
}

.yingan-copy-1 .yingan-narrative {
  font-size: clamp(32px, 3.35vw, 48px) !important;
  white-space: nowrap;
}

footer p {
  max-width: 620px !important;
}

footer img[alt="影安加固 logo"] {
  object-fit: contain;
}

.preloader .wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.preloader .wrapper img {
  display: none !important;
}

.preloader .wrapper::before {
  content: "YingAn.Tech";
  color: #f9f7ff;
  font-family: TheSeasons, serif;
  font-size: clamp(64px, 9vw, 148px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-shadow: 0 14px 44px rgb(86 64 181 / 18%);
}

.preloader .wrapper::after {
  content: "Linux ELF / .so 程序保护";
  color: rgb(23 23 42 / 72%);
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

@keyframes yingan-preloader-timeout {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.preloader {
  animation: yingan-preloader-timeout 240ms ease 760ms forwards;
}

@media (max-width: 767px) {
  header .logo-link {
    gap: 8px;
  }

  header .logo-link::after {
    content: "ELF / .so 保护";
    font-size: 13px;
  }

  header .logo-wrapper {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  header .logo-wrapper img {
    width: 32px !important;
    height: 32px !important;
  }

  .home-hero h1 {
    font-size: 13.8vw !important;
    transform: translate(12vw) !important;
  }

  .home-hero h2 {
    margin-bottom: 5vw !important;
    font-size: clamp(38px, 11vw, 50px) !important;
  }

  .yingan-copy {
    width: 100vw;
    padding-inline: 20px;
  }

  .yingan-copy .yingan-narrative {
    width: 100%;
    font-size: clamp(21px, 5.8vw, 25px) !important;
    line-height: 1.35;
    white-space: normal;
  }

  .yingan-copy-2 .yingan-narrative {
    text-align: center !important;
  }

  .yingan-copy-2 .yingan-narrative > .inline-block {
    margin-right: 0 !important;
  }

  .yingan-product[data-yingan-copy-updated="true"] .yingan-product-message {
    font-size: 0.84em;
    white-space: normal;
  }

  .yingan-product[data-yingan-copy-updated="true"] .yingan-product-service {
    font-size: 0.76em;
    white-space: normal;
  }

  footer p {
    max-width: min(88vw, 440px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    animation-duration: 1ms;
  }
}

.yingan-feature-story {
  position: fixed;
  z-index: 9;
  inset: 0;
  display: block;
  pointer-events: none;
  color: #fff;
  visibility: hidden;
}

.yingan-feature-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: min(calc(100% - 108px), 1220px);
  margin: auto;
  transform-origin: center;
  will-change: opacity, transform;
}

.yingan-feature-slide--left {
  justify-content: flex-start;
}

.yingan-feature-slide--right {
  justify-content: flex-end;
}

.yingan-feature-card {
  width: min(100%, 650px);
  padding: clamp(28px, 3.1vw, 52px) clamp(28px, 3.5vw, 60px);
  border-block: 1px solid rgb(255 255 255 / 48%);
  border-inline-start: 2px solid rgb(183 179 255 / 92%);
  background: linear-gradient(90deg, rgb(20 19 42 / 64%), rgb(20 19 42 / 10%));
  box-shadow: 0 18px 52px rgb(8 7 24 / 18%);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}

.yingan-feature-slide--right .yingan-feature-card {
  border-inline: 0 2px solid rgb(183 179 255 / 92%);
  background: linear-gradient(270deg, rgb(20 19 42 / 64%), rgb(20 19 42 / 10%));
  text-align: right;
}

.yingan-feature-index {
  margin: 0 0 18px;
  color: rgb(228 226 255 / 88%);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.yingan-feature-title {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(42px, 4.55vw, 78px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.yingan-feature-copy {
  max-width: 31em;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(15px, 1.32vw, 20px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.7;
}

.yingan-feature-slide--right .yingan-feature-title,
.yingan-feature-slide--right .yingan-feature-copy {
  margin-inline-start: auto;
}

.yingan-feature-rule {
  display: block;
  width: min(100%, 260px);
  height: 1px;
  margin-top: 28px;
  background: linear-gradient(90deg, rgb(183 179 255 / 90%), transparent);
}

.yingan-feature-slide--right .yingan-feature-rule {
  margin-inline-start: auto;
  background: linear-gradient(270deg, rgb(183 179 255 / 90%), transparent);
}

.yingan-feature-compare {
  width: min(calc(100% - 108px), 1180px);
  justify-content: center;
}

.yingan-feature-compare .yingan-feature-card {
  width: 100%;
  max-width: none;
  padding: clamp(18px, 1.8vw, 30px);
  border-inline: 1px solid rgb(255 255 255 / 34%);
  background: rgb(19 18 40 / 58%);
  text-align: center;
}

.yingan-feature-compare .yingan-feature-title,
.yingan-feature-compare .yingan-feature-copy {
  max-width: none;
  margin-inline: auto;
}

.yingan-feature-compare .yingan-feature-title {
  font-size: clamp(30px, 2.8vw, 46px);
}

.yingan-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(16px, 1.8vw, 24px);
}

.yingan-comparison-slot {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 36%);
  background: rgb(255 255 255 / 4%);
}

.yingan-comparison-media {
  display: grid;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  place-items: center;
  background: rgb(235 239 242 / 96%);
}

.yingan-comparison-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yingan-comparison-slot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-top: 1px solid rgb(255 255 255 / 22%);
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.yingan-comparison-slot figcaption span:last-child {
  color: rgb(218 215 255 / 74%);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .yingan-feature-story {
    padding: 76px 20px 28px;
  }

  .yingan-feature-slide,
  .yingan-feature-compare {
    width: 100%;
  }

  .yingan-feature-card,
  .yingan-feature-slide--right .yingan-feature-card {
    width: 100%;
    padding: 26px 24px 28px;
    border-inline: 1px solid rgb(255 255 255 / 36%);
    border-inline-start: 2px solid rgb(183 179 255 / 92%);
    background: rgb(20 19 42 / 68%);
    text-align: left;
  }

  .yingan-feature-index {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .yingan-feature-title,
  .yingan-feature-compare .yingan-feature-title {
    max-width: 10em;
    margin-inline: 0;
    font-size: clamp(31px, 9.4vw, 42px);
    letter-spacing: -0.06em;
    line-height: 1.1;
  }

  .yingan-feature-copy,
  .yingan-feature-slide--right .yingan-feature-copy,
  .yingan-feature-compare .yingan-feature-copy {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .yingan-feature-rule,
  .yingan-feature-slide--right .yingan-feature-rule {
    width: 120px;
    margin: 22px 0 0;
    background: linear-gradient(90deg, rgb(183 179 255 / 90%), transparent);
  }

  .yingan-feature-compare .yingan-feature-card {
    padding: 18px 14px 14px;
    text-align: center;
  }

  .yingan-feature-compare .yingan-feature-title,
  .yingan-feature-compare .yingan-feature-copy {
    margin-inline: auto;
  }

  .yingan-comparison-grid {
    gap: 7px;
    margin-top: 14px;
  }

  .yingan-comparison-slot figcaption {
    display: block;
    padding: 9px 10px;
    font-size: 11px;
    line-height: 1.4;
  }

  .yingan-comparison-slot figcaption span:last-child {
    display: block;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yingan-feature-slide {
    will-change: auto;
  }
}
