:root {
  --nav-h: 56px;
  --bg: #2a2d35;
  --features: #23272e;
  --yellow: #f7c43b;
  --text: #ffffff;
  --muted: #b7b7b7;
  --faint: #b7b7b7;
  --header: rgba(6, 8, 12, 0.28);
  --header-solid: rgba(8, 10, 14, 0.8);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

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

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

[hidden] {
  display: none !important;
}

#hero,
#features {
  scroll-margin-top: var(--nav-h);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--header);
  transition: background 0.25s ease;
  padding: 12px 0;
}

.site-header.is-solid {
  background: var(--header-solid);
}

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 min(4.2vw, 80px) 0 min(4.2vw, 80px);
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo {
  width: clamp(120px, 248 / 1920 * 100vw, 248px);
}

.desktop-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 8px 0 10px;
  font-size: clamp(16px, 30 / 1920 * 100vw, 26px);

  line-height: 1;
  font-family: "SourceHanSansCN";
}
html[lang="zh-CN"] .nav-link {
  font-size: 24px;
}

.desktop-nav .nav-link.active::after,
.desktop-nav .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 21px;
  background: linear-gradient(
    to bottom,
    var(--yellow) 0 2px,
    rgba(220, 150, 20, 0.4) 2px,
    transparent
  );
  pointer-events: none;
}

.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.lang-switch button.is-active {
  color: var(--yellow);
}

.lang-switch button:hover {
  color: var(--yellow);
}

.nav-store img {
  width: clamp(120px, 240 / 1920 * 100vw, 240px);
}

html[lang="zh-CN"] .nav-store img {
  width: clamp(120px, 206 / 1920 * 100vw, 160px);
}

html:not([lang="zh-CN"]) .only-zh,
html[lang="zh-CN"] .only-en {
  display: none;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.mobile-menu-btn img {
  width: 26px;
  height: auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) 24px 32px;
  background: rgba(8, 10, 14, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  max-width: 100%;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

html[lang="zh-CN"] .mobile-menu a {
  letter-spacing: 0.22em;
}

.mobile-menu a.active,
.mobile-menu a:hover {
  color: var(--yellow);
}

.pressable {
  display: inline-flex;
  line-height: 0;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.pressable:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.pressable:active {
  filter: brightness(0.94);
  transform: translateY(1px);
}

.hero {
  position: relative;
  background: #2b2e36;
}

.hero-kv {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1058;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

.hero-slogan {
  position: absolute;
  z-index: 2;
  left: 6%;
  top: 22%;
  width: min(460px, 36%);
  height: auto;
}

.hero-watermark {
  position: absolute;
  left: 3%;
  bottom: -3%;
  z-index: 1;
  width: calc(1550 / 1920 * 100vw);
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 50%,
    transparent 60%
  );
  mask-image: linear-gradient(to top, #000 0%, #000 50%, transparent 60%);
}

.hero-bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 3.4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 0 min(4.2vw, 80px) 0 min(4.2vw, 80px);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.store-row .pressable img {
  width: max(calc(195 / 1920 * 100vw), 120px);
}

html[lang="zh-CN"] .store-row .pressable img {
  width: max(calc(180 / 1920 * 100vw), 120px);
}

.store-row .js-official-store img {
  width: max(calc(240 / 1920 * 100vw), 120px);

}
.nav-store.pressable:hover,
.store-row .pressable:hover {
  filter: brightness(1.12);
}

.follow {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  font-size: clamp(16px, 30 / 1920 * 100vw, 30px);
  font-family: "SourceHanSansCN";
  color: #ffffff;
}

.follow-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.follow-links img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.social-link {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.18s ease;
}

.social-link:hover {
  transform: scale(1.08);
}

.social-link:active {
  transform: scale(0.96);
}

.features {
  padding-top: 38px;
  padding-bottom: 84px;
  width: calc(1735 / 1920 * 100vw);
  margin: 0 auto;
}

.features-head {
  width: 100%;
}

.features-title {
  width: 100%;
  height: auto;
}

.features-title--mobile {
  display: none;
}

.features-wrap {
  width: 1735px;
  margin-inline: auto;
  zoom: min(calc(1900px / 1735px), calc(100vw / 1920px));
}

.features-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.9%;
  background: url("../images/features-frame.png") center / 100% 100%
    no-repeat;
  padding: 1.3% 1.2% 1.3% 1%;
  margin: 20px auto 0px;
  aspect-ratio: 1741 / 806;
}

.features-panel {
  display: none;
}

.feature-frame {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.feature-frame-img {
  width: 100%;
  height: auto;
}

.feature-photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.18s ease;
}

.feature-photo.is-switching {
  opacity: 0.45;
}

.feature-index {
  position: absolute;
  z-index: 4;
  top: 49.5%;
  right: 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translateY(-50%);
  pointer-events: none;
}

.feature-index-item {
  display: block;
  width: 7px;
  height: 14px;
  background: #33353d;
  transform: skewY(25deg);
  transition:
    height 0.18s ease,
    background-color 0.18s ease;
}

.feature-index-item.is-active {
  height: 24px;
  background: #f7c43b;
}

.feature-thumbs {
  position: relative;
  z-index: 3;
  flex: 0 0 19.5%;
  width: 19.5%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-thumb {
  --cut: 38.4px;
  --bd: 2px;
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: #14181f;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(0.4);
  transition: filter 0.18s ease;
}

.feature-thumb.is-active {
  background: #f0b323;
}

.feature-thumb.is-active img {
  filter: none;
  clip-path: polygon(
    var(--bd) var(--bd),
    calc(100% - var(--bd)) var(--bd),
    calc(100% - var(--bd)) calc(100% - var(--cut) - var(--bd) * 0.414),
    calc(100% - var(--cut) - var(--bd) * 0.414) calc(100% - var(--bd)),
    var(--bd) calc(100% - var(--bd))
  );
}

.feature-thumb.is-empty {
  cursor: default;
}

.feature-thumb:not(.is-empty):not(.is-active):hover img {
  filter: brightness(0.58);
}

.feature-thumb.is-active:not(.is-empty):hover img {
  filter: brightness(1.06);
}

.site-footer {
  background: #111215;
  padding: 40px 20px 30px;
  text-align: center;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin: 0 auto 22px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  color: var(--muted);
  font-size: 20px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-mail {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 20px;
}

.footer-mail:hover {
  color: #fff;
}

.footer-rating {
  width: 328px;
  height: auto;
  margin: 22px auto 0;
}

.copyright {
  margin: 18px auto 0;
  color: var(--faint);
  font-size: 20px;
  line-height: 1.7;
}

.footer-coolfish {
  height: 42px;
  width: auto;
  margin: 22px auto 0;
}

@media (max-width: 1024px) {
  :root {
    --nav-h: 64px;
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 0 12px;
  }

  .site-header {
    overflow: hidden;
  }

  .nav-actions {
    position: absolute;
    right: 8px;
    top: 0;
    height: 100%;
    margin: 0;
    gap: 10px;
  }

  .lang-switch {
    white-space: nowrap;
  }

  .brand,
  .nav-actions {
    min-width: 0;
  }

  .brand-logo {
    height: 32px;
    width: auto;
  }

  .desktop-nav,
  .nav-store {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-store img {
    height: 40px;
  }
}

@media (max-width: 750px) {
  :root {
    --nav-h: 56px;
  }

  .brand-logo {
    height: 28px;
  }

  .lang-switch {
    font-size: 13px;
    gap: 6px;
  }

  .hero {
    height: 100vh;
    height: 100dvh;
  }

  .hero-kv {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
  }

  .hero-slogan {
    left: 50%;
    top: 58%;
    width: min(320px, 78%);
    transform: translateX(-50%);
  }

  .hero-watermark {
    display: none;
  }

  .hero-bar {
    bottom: 4%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 16px;
  }

  .store-row {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 15px;
    width: min(240px, 47%);
  }

  .store-row .js-official-store {
    order: -1;
  }

  .store-link--desktop {
    display: none;
  }

  .store-row .pressable,
  .store-row .pressable img,
  html[lang="zh-CN"] .store-row .pressable img {
    width: 100%;
    height: auto;
  }

  .follow { 
    font-size: 14px;
  }

  .follow-links img {
    width: 24px;
    height: 24px;
  }
  .features {
    padding-top: 0px;
    padding-bottom: 28px;
    width: 100%;
  }

  .features-title--pc {
    display: none;
  }

  .features-title--mobile {
    display: block;
  }

  .features-wrap {
    width: calc(100% - 28px);
    margin: 18px auto 0;
    zoom: 1;
  }

  .features-stage {
    flex-direction: column;
    gap: 0;
    height: auto;
    aspect-ratio: auto;
    margin-top: 0;
    padding: 0;
    background: none;
  }

  .feature-frame {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 2.5% 2% 2.5%;
    background: url("../images/features-panel.png") center / 100% 100%
      no-repeat;
  }

  .feature-photo {
    position: static;
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 6vw),
      calc(100% - 6vw - 2px) 100%,
      0 100%
    );
  }
  .feature-thumbs {
    flex: none;
    width: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 10px;
  }

  .feature-thumb {
    flex: none;
    aspect-ratio: 16 / 9;
    --cut: 10px;
  }

  .feature-index {
    position: absolute;
    z-index: 4;
    top: auto;
    right: 50%;
    transform: translateX(50%);
    bottom: 17.2%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    pointer-events: none;
  }
  
  .feature-index-item {
    display: block;
    height: 4.5px;
    width: 10px;
    background: #33353d;
    transform: skewX(25deg);
    transition:
      height 0.18s ease,
      background-color 0.18s ease;
  }
  
  .feature-index-item.is-active {
    width: 23px;
    height: 4.5px;
    background: #f7c43b;
  }
  

  .site-footer {
    padding: 25px 14px 36px;
  }
  .footer-logo {
    height: 17px;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
  }
  .footer-mail {
    font-size: 14px;
  }
  .footer-rating {
    width: 220px;
    margin-top: 10px;
  }
  .copyright {
    font-size: 14px;
    margin-top: 10px;
  }
  .footer-coolfish {
    height: 32px;
    margin-top: 26px;
  }
}

@media (hover: none) {
  .pressable:hover {
    filter: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
