@font-face {
  font-family: "Alimama ShuHeiTi";
  src: url("./assets/fonts/AlimamaShuHeiTi-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Alimama ShuHeiTi", "Alibaba PuHuiTi", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #001b4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
  background: #001b4a;
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #001b4a;
}

.background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.background img {
  position: absolute;
  top: 0.05%;
  left: -7.65%;
  width: 108.23%;
  height: 108.28%;
  max-width: none;
}

.hero-title {
  position: absolute;
  top: 12.5926%;
  left: 50%;
  width: 44.6354%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  font-style: normal;
  line-height: normal;
  text-align: left;
  white-space: nowrap;
}

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

.hero-title h1 {
  font-size: 3.75vw;
  letter-spacing: 0.3375vw;
  text-shadow: 0 0.3704vh 0.3704vh rgba(0, 0, 0, 0.8);
}

.hero-title p {
  margin-top: -0.3704vh;
  margin-left: 0.4167vw;
  font-size: 1.6667vw;
  letter-spacing: 0.0333vw;
  text-shadow: 0 0.3704vh 0.3704vh rgba(0, 0, 0, 0.6);
}

.system-grid {
  position: absolute;
  inset: 0;
}

.system-card {
  position: absolute;
  display: block;
  width: 20.78125vw;
  height: 21.7593vh;
  overflow: hidden;
  border: 0;
  border-radius: 0.8333vw;
  color: #fff;
  text-decoration: none;
  background: #fff;
  box-shadow: inset 0 0 0 0.5208vw rgba(255, 255, 255, 0.3);
  isolation: isolate;
}

.system-card::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5208vw rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.system-card > img {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 102%;
  object-fit: cover;
}

.shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.system-card__title,
.system-card__subtitle,
.system-card__button {
  position: absolute;
  z-index: 2;
  left: 50%;
  display: block;
  transform: translateX(-50%);
  font-style: normal;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}

.system-card__title {
  top: 27.6596%;
  font-size: 1.6667vw;
  font-weight: 700;
  letter-spacing: 0.0333vw;
}

.system-card__subtitle {
  top: 45.9574%;
  font-size: 1.25vw;
  font-weight: 700;
}

.system-card__button {
  top: 65.1064%;
  width: 29.5739%;
  height: 14.0426%;
  border-radius: 999px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.8333vw;
  font-weight: 600;
  line-height: 3.0556vh;
  background: rgba(255, 255, 255, 0.2);
}

.system-card--cloud-movie,
.system-card--shengshi-ai {
  left: 14.6354%;
}

.system-card--cloud-render,
.system-card--cloud-dcp {
  left: 64.4792%;
}

.system-card--cloud-movie,
.system-card--cloud-render {
  top: 30.5556%;
}

.system-card--shengshi-ai,
.system-card--cloud-dcp {
  top: 61.7593%;
}

.system-card--inactive {
  cursor: default;
  user-select: none;
}

@media (min-aspect-ratio: 16 / 9) {
  .hero-title h1 {
    font-size: 6.6667vh;
    letter-spacing: 0.6vh;
  }

  .hero-title p {
    margin-left: 0.7407vh;
    font-size: 2.963vh;
    letter-spacing: 0.0593vh;
  }

  .system-card {
    width: 36.9444vh;
    border-radius: 1.4815vh;
  }

  .system-card::after {
    box-shadow: inset 0 0 0 0.9259vh rgba(255, 255, 255, 0.3);
  }

  .system-card__title {
    font-size: 2.963vh;
    letter-spacing: 0.0593vh;
  }

  .system-card__subtitle {
    font-size: 2.2222vh;
  }

  .system-card__button {
    font-size: 1.4815vh;
  }
}

@media (max-width: 760px), (max-aspect-ratio: 3 / 4) {
  html,
  body {
    overflow: auto;
  }

  .page {
    min-height: 100svh;
    height: auto;
    padding: 9svh 7vw 8svh;
    overflow: hidden;
  }

  .background img {
    left: -92%;
    width: 290%;
    height: 118%;
    object-fit: cover;
  }

  .hero-title {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    text-align: center;
  }

  .hero-title h1 {
    font-size: clamp(25px, 7.5vw, 38px);
    letter-spacing: 0.06em;
  }

  .hero-title p {
    margin: 1.2vh 0 0;
    font-size: clamp(11px, 3.25vw, 17px);
    letter-spacing: 0.02em;
  }

  .system-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.2svh;
    margin-top: 7svh;
  }

  .system-card,
  .system-card--cloud-movie,
  .system-card--cloud-render,
  .system-card--shengshi-ai,
  .system-card--cloud-dcp {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 399 / 235;
    border-radius: 16px;
  }

  .system-card::after {
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.3);
  }

  .system-card__title {
    font-size: clamp(22px, 6.4vw, 32px);
    letter-spacing: 0.02em;
  }

  .system-card__subtitle {
    font-size: clamp(16px, 4.8vw, 24px);
  }

  .system-card__button {
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: normal;
    padding-top: 1.4%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a.system-card {
    transition: filter 160ms ease;
  }

  a.system-card:hover,
  a.system-card:focus-visible {
    filter: brightness(1.08);
  }
}

a.system-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
