:root {
  color-scheme: dark;
  --page-max: 1200px;
  --purple-1: #7b10ff;
  --purple-2: #39106e;
  --purple-3: #28124f;
  --text: #ffffff;
  --muted: #c6b7f0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #070b18;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  /* background:
    radial-gradient(circle at 50% 62%, rgba(34, 101, 166, 0.58) 0 6%, transparent 24%),
    radial-gradient(circle at 70% 34%, rgba(80, 38, 143, 0.36) 0 8%, transparent 28%),
    radial-gradient(circle at 24% 22%, rgba(28, 55, 111, 0.34) 0 6%, transparent 30%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px) 0 0 / 151px 91px,
    linear-gradient(#07101f, #020611 62%, #040816); */
    background: url('img/background.png') no-repeat center center;
    background-size: cover;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px);
  background-position:
    20px 30px,
    77px 112px;
  background-size:
    145px 113px,
    211px 167px;
  opacity: 0.5;
}

.star-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.star-container2 {
  background: none;
}

.star-container .meteor {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  background-color: transparent;
  opacity: 0;
  animation: meteor 15s linear infinite;
  will-change: transform, opacity;
}

.star-container .meteor.meteor--right {
  animation-name: meteor-right;
}

.star-container .meteor::after {
  display: block;
  content: "";
  border: 1px solid #fff;
  border-width: 0 90px 2px 90px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.5);
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.star-container .meteor.meteor--right::after {
  transform: rotate(-135deg);
}

@keyframes meteor {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-800px, 100vh);
  }
}

@keyframes meteor-right {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(800px, 100vh);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--page-max), calc(100vw - 48px));
  margin: 0 auto;
  padding: 50px 0;
}

.notice {
  width: 100%;
  height: 30px;
  margin: 0 0 9px;
  overflow: hidden;
  font-size: 16px;
  line-height: 30px;
}

.notice-track {
  transform: translateY(0);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.notice-item {
  height: 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-layout {
  display: grid;
  grid-template-columns: 595px 185px 400px;
  grid-template-rows: repeat(3, 135px);
  gap: 10px;
  align-items: start;
}

.hero-card {
  position: relative;
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 38%, rgba(255, 255, 255, 0.14), transparent 21%),
    linear-gradient(105deg, #7b13ff 0%, #8000fa 45%, #4a0f87 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 36px 20px 19px;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  color: #f0ddff;
  font-size: 14px;
  line-height: 20px;
}

.hero-title-block h1 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 42px;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-title-block p {
  margin: 0;
  color: #fff5de;
  font-size: 14px;
  line-height: 20px;
}

.primary-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 153px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  color: #33105f;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition:
    background-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible,
.primary-cta.animate {
  background-color: #ffb01b;
  box-shadow: 0 2px 16px #ffb01b;
  transform: scale(0.99);
}

.primary-cta:active {
  transform: scale(0.94);
  box-shadow: 0 2px 25px rgba(255, 176, 27, 0.24);
}

.primary-cta::before,
.primary-cta::after {
  position: absolute;
  left: -20%;
  z-index: -1;
  display: none;
  width: 140%;
  height: 100%;
  content: "";
  background-repeat: no-repeat;
  transition: all ease-in-out 500ms;
}

.primary-cta::before {
  top: -75%;
  background-image:
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, #ffb01b 20%, transparent 30%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #ffb01b 15%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
}

.primary-cta::after {
  bottom: -75%;
  background-image:
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #ffb01b 15%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%),
    radial-gradient(circle, #ffb01b 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
}

.primary-cta.animate::before {
  display: block;
  animation: topBubbles 750ms ease-in-out forwards;
}

.primary-cta.animate::after {
  display: block;
  animation: bottomBubbles 750ms ease-in-out forwards;
}

.primary-cta span {
  margin-left: 4px;
  font-size: 11px;
}

@keyframes topBubbles {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
  }
  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
  }
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

@keyframes bottomBubbles {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
  }
  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
  }
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

.hero-art {
  align-self: center;
  width: 300px;
  margin: 20px 18px 0 -5px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.34));
}

.book-grid {
  display: contents;
}

.book-card {
  position: relative;
  display: grid;
  grid-template-columns: 117px minmax(0, 1fr) 18px;
  height: 135px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(48, 19, 88, 0.96);
}

.book-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(96deg, #650DFD 2.68%, #710AAE 51.34%, #2E0765 100%);

  opacity: 0;
  transition: opacity 260ms ease;
}

.book-card > * {
  position: relative;
  z-index: 1;
}

.book-card--compact {
  grid-column: 3;
}

.book-card:hover::before,
.book-card:focus-visible::before {
  opacity: 1;
}

.book-card:hover .logo-box,
.book-card:focus-visible .logo-box {
  background: rgba(52, 24, 86, 0.96);
}

.book-card:hover .card-arrow,
.book-card:focus-visible .card-arrow {
  background: linear-gradient(180deg, #8a20ff, #6412f2);
  color: #fff;
}

.book-card--wide {
  width: auto;
}

.book-card:nth-child(1) {
  grid-row: 1;
}

.book-card:nth-child(2) {
  grid-row: 2;
}

.book-card:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

.book-card:nth-child(4) {
  grid-column: 2 / span 2;
  grid-row: 3;
}

.logo-box {
  display: grid;
  place-items: center;
  width: 117px;
  height: 114px;
  margin: 11px 0 0 10px;
  border-radius: 14px;
  background: rgba(75, 35, 116, 0.78);
  transition: background 260ms ease;
}

.logo-box img {
  width: 97px;
  max-height: 54px;
  object-fit: contain;
}

.book-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px 8px 0 20px;
}

.book-copy strong {
  overflow: hidden;
  color: #c5a8ff;
  font-size: 20px;
  line-height: 28px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.book-copy span {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.book-copy span:first-of-type {
  margin-top: 9px;
}

.book-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 18px;
  height: 100%;
  margin-left: auto;
  background: #341E5A;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  transition:
    background 260ms ease,
    color 260ms ease;
}

.book-card--wide .book-copy {
  padding-left: 30px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  transition: grid-template-columns 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: grid-template-columns;
}

.app-grid.is-active-1 {
  grid-template-columns: 3fr 1fr 1fr 1fr;
}

.app-grid.is-active-2 {
  grid-template-columns: 1fr 3fr 1fr 1fr;
}

.app-grid.is-active-3 {
  grid-template-columns: 1fr 1fr 3fr 1fr;
}

.app-grid.is-active-4 {
  grid-template-columns: 1fr 1fr 1fr 3fr;
}

.app-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 200px;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    box-shadow 220ms ease,
    filter 220ms ease;
}

.app-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(68deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px) 0 0 / 30px 30px,
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 18px);
  opacity: 0.4;
}

.app-card--feature {
  background: linear-gradient(110deg, #ff7900 0%, #ff9400 42%, #ffe000 100%);
}

.app-card--blue {
  background: linear-gradient(135deg, #2034d9, #6b14ff);
}

.app-card--red {
  background: linear-gradient(135deg, #db061d, #ff0066);
}

.app-card--cyan {
  background: linear-gradient(135deg, #069dd0, #0bc3d7);
}

.app-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* width: min(190px, 100%); */
  min-height: 86px;
  padding: 0 8px;
  transition:
    opacity 300ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.app-copy strong {
  color: #fff;
  font-size: 20px;
  line-height: 28px;
}

.app-copy span {
  margin-top: 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.app-copy small {
  margin-top: 9px;
  color: #fff2c0;
  font-size: 13px;
  line-height: 18px;
}

.app-player {
  position: absolute;
  right: -24px;
  bottom: -38px;
  z-index: 1;
  width: 155px;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(34px) scale(0.88);
  transform-origin: right bottom;
  backface-visibility: hidden;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.32));
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.app-card.is-active,
.app-card:focus-visible {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  filter: saturate(1.08);
}

.app-card.is-active .app-copy,
.app-card:focus-visible .app-copy {
  /* width: 232px; */
  padding: 0 0 0 27px;
  transform: translateX(0);
}

.app-grid[class*="is-active-"] .app-card:not(.is-active) .app-copy {
  opacity: 0.82;
  transform: translateX(-6px) scale(0.98);
}

.app-card.is-active .app-player,
.app-card:focus-visible .app-player {
  right: 26px;
  bottom: 0px;
  width: 173px;
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (min-width: 768px) and (max-width: 1280px) {
  .page-shell {
    width: min(var(--page-max), calc(100vw - 32px));
  }

  .top-layout {
    grid-template-columns: minmax(450px, 595px) minmax(110px, 185px) minmax(340px, 400px);
  }

}

@media (max-width: 767px) {
  body {
    /* background:
      radial-gradient(circle at 82% 72%, rgba(31, 111, 174, 0.64) 0 8%, transparent 30%),
      radial-gradient(circle at 30% 31%, rgba(68, 36, 134, 0.44) 0 7%, transparent 27%),
      linear-gradient(#07101f, #020611 62%, #040816); */
      background: url('img/background.png') no-repeat center center;
      background-size: cover;
  }

  .page-shell {
    /* width: min(343px, calc(100vw - 32px)); */
    margin: 0 3%;
    padding: 12px 0;
    width: 94%;
  }

  .notice {
    height: 30px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 30px;
  }

  .top-layout,
  .book-grid,
  .app-grid {
    display: block;
  }

  .hero-card {
    display: block;
    min-height: 372px;
    border-radius: 16px;
  }

  .hero-copy {
    position: static;
    display: block;
    padding: 24px 14px 0;
  }

  .category-row {
    gap: 0 13px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero-title-block {
    margin-top: 10px;
  }

  .hero-title-block h1 {
    margin-bottom: 5px;
    font-size: 25px;
    line-height: 33px;
    white-space: nowrap;
  }

  .hero-title-block p {
    overflow: hidden;
    font-size: 12px;
    line-height: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .primary-cta {
    position: absolute;
    left: 50%;
    bottom: 25px;
    z-index: 2;
    transform: translateX(-50%);
    width: 153px;
  }

  .hero-art {
    position: absolute;
    left: 50%;
    top: 127px;
    width: 211px;
    margin: 0;
    transform: translateX(-50%);
  }

  .book-grid {
    margin-top: 8px;
  }

  .book-card,
  .book-card--compact,
  .book-card--wide {
    grid-template-columns: 109px minmax(0, 1fr) 15px;
    width: 100%;
    height: 115.76px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .logo-box {
    width: 100px;
    height: 97.75px;
    margin: 9.43px 0 0 8.57px;
    border-radius: 13px;
  }

  .logo-box img {
    width: 83px;
    max-height: 43px;
  }

  .book-copy,
  .book-card--wide .book-copy {
    padding: 9px 4px 0 9px;
  }

  .book-copy strong {
    font-size: 18px;
    line-height: 24px;
  }

  .book-copy span {
    font-size: 14px;
    line-height: 19px;
  }

  .book-copy span:first-of-type {
    margin-top: 7px;
  }

  .book-copy small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 16px;
  }

  .card-arrow {
    width: 15.44px;
    font-size: 12px;
  }

  .app-grid {
    margin-top: 12px;
  }

  .app-card {
    min-height: 150px;
    border-radius: 16px;
  }

  .app-card:not(.app-card--feature) {
    display: none;
  }

  .app-copy {
    width: 240px;
    padding: 0 0 0 8px;
  }

  .app-copy strong {
    font-size: 20px;
    line-height: 28px;
  }

  .app-copy span {
    margin-top: 9px;
    font-size: 16px;
    line-height: 22px;
  }

  .app-copy small {
    margin-top: 9px;
  }

  .app-player {
    right: 10px;
    bottom: 0px;
    width: 125px;
    opacity: 1;
    transform: none;
  }
  .app-card.is-active .app-player, .app-card:focus-visible .app-player{
    width: 125px;
  }

}

@media (max-width: 360px) {
  .hero-title-block h1 {
    font-size: 23px;
  }

  .category-row {
    gap: 0 8px;
    font-size: 13px;
  }

  .book-copy span {
    font-size: 13px;
  }
}
