:root {
  --bg: #f5f2ec;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #18202a;
  --muted: #5c6572;
  --accent: #fff;
  --mint: #16c0a0;
  --shadow: 0 22px 70px rgba(39, 24, 17, 0.18);
  --radius-xl: 32px;
  --content-width: min(1180px, calc(100vw - 40px));
  --font-display: "Bahnschrift", "Trebuchet MS", "Microsoft YaHei UI", sans-serif;
  --font-body: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}


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

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

button {
  font: inherit;
}

.page-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
  opacity: 0.8;
}

.orb-a {
  top: 120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(240, 177, 189, 0.64), rgba(240, 177, 189, 0));
}

.orb-b {
  bottom: 80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(252, 191, 95, 0.44), rgba(252, 191, 95, 0));
}

.orb-c {
  bottom: 200px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(98, 93, 216, 0.38), rgba(98, 93, 216, 0));
}

.page-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 30%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.9), transparent 18%);
  pointer-events: none;
}

.site-header {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  z-index: 30;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: 0;
}

.header-content {
  width: 100%;
  margin: 0;
  padding: 18px 50px;
  border-radius: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
}

.brand img {
  width: 146px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.site-nav button,
.copy-link-button,
.lang-trigger,
.lang-option {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav a,
.site-nav button {
  padding: 10px 16px;
}

.lang-menu {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.lang-trigger {
  width: 40px;
  height: 46px;
  padding: 0;
  min-width: 40px;
  background: url("./assets/image/home/语言.png") center no-repeat;
}

.lang-panel {
  position: absolute;
  top: 90%;
  left: 50%;
  z-index: 40;
  width: 156px;
  padding: 18px 0 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.lang-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 28px solid rgba(255, 255, 255, 0.96);
  transform: translateX(-50%);
}

.lang-menu:hover .lang-panel,
.lang-menu:focus-within .lang-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.96);
  color: #2c2c2c;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.lang-option:first-child {
  border-radius: 14px 14px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 14px 14px;
}

.lang-option.is-active {
  background: linear-gradient(180deg, #f04747, #cf2d38);
  color: white;
}

.copy-link-button {
  width: 36px;
  height: 36px;
  padding: 0;
  min-width: 36px;
  margin-left: 30px;
  background: url("./assets/image/home/组 35.png") center/33px 31px no-repeat;
}

main {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column
}

#games {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
}

body[data-page="game"] main {
  padding-bottom: 0;
}

.section-shell,
.hero-section,
.detail-hero {
  width: var(--content-width);
  margin: 26px auto 0;
}

.hero-section {
  position: relative;
  /* min-height: 78vh; */
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

body[data-page="home"] .hero-section {
  width: 100%;
  margin-top: 0;
  border-radius: 0;
}

body[data-page="game"] .detail-hero {
  width: 100%;
  margin-top: 0;
  border-radius: 0;
}

.hero-slider {
  position: relative;
  min-height: inherit;
}

.swiper {
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slider,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
  height: 100%;
}

.hero-slide {
  min-height: inherit;
}

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* animation: heroZoom 13s ease-in-out infinite; */
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.action-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
  font-weight: 700;
}

.action-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), #f64e68);
  box-shadow: 0 12px 28px rgba(219, 22, 61, 0.3);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}


.slider-arrow,
.store-arrow {
  position: absolute;
  top: 50%;
  width: 62px;
  height: 110px;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
}

.slider-arrow-left {
  left: 24px;
  background-image: url("./assets/image/home/切换按钮1.png");
}

.slider-arrow-right {
  right: 24px;
  background-image: url("./assets/image/home/切换按钮2.png");
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, width 0.24s ease;
}

.slider-dot.is-active {
  width: 42px;
  background: var(--accent);
}

.section-shell {
  position: relative;
  padding: 42px 0 0;
}

.section-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(25, 28, 35, 0.08);
}

.section-heading-row,
.feature-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  margin-top: 18px;
}

.section-heading-row h2,
.feature-header p {
  margin: 0;
}

.section-heading-row h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading-row p,
.feature-header p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
  margin-top: 0;
  align-items: start;
  justify-items: center;
}

.product-card {
  width: min(100%, 262px);
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.28s ease;
}

.product-card:nth-child(1) .product-card-top {
  top: 22px;
}

.product-card:nth-child(1) .product-card-bottom {
  bottom: 29px;
}

.product-card:nth-child(2) .product-card-top {
  top: 22px;
}

.product-card:nth-child(2) .product-card-bottom {
  bottom: 29px;
}

.product-card:nth-child(3) .product-card-top {
  top: 22px;
}

.product-card:nth-child(3) .product-card-top .product-card-top-text-line {
  line-height: 1.3;
}

.product-card:nth-child(4) .product-card-top {
  top: 22px;
}

.product-card:nth-child(4) .product-card-bottom {
  bottom: 29px;
}

.card-rise {
  opacity: 0;
  transform: translateY(84px);
  transition:
    opacity 0.72s ease,
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--card-delay, 0ms);
}

.card-rise.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card-frame {
  position: relative;
  display: block;
  aspect-ratio: 580 / 766;
  width: 100%;
  transform-origin: center bottom;
  transition: transform 0.28s ease, filter 0.28s ease;
  filter: drop-shadow(0 22px 34px rgba(58, 38, 22, 0.16));
}

.product-card:hover .product-card-frame {
  filter: drop-shadow(0 28px 42px rgba(58, 38, 22, 0.22));
}

.product-card-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-top,
.product-card-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-card-top {
  top: 18px;
  gap: 2px;
}


.product-card-top.is-compact::before {
  margin-bottom: 5px;
}

.product-card-top-text-line {
  display: block;
  font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
  max-width: 100%;
  font-size: clamp(20px, 1.45vw, 24px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  font-size: 17px;
}

/* .product-card-top.is-compact .product-card-top-text-line {
  font-size: clamp(18px, 1.25vw, 21px);
}

.product-card-top.is-wide .product-card-top-text-line {
  font-size: clamp(16px, 1.08vw, 18px);
}

.product-card-top.is-compact.is-wide .product-card-top-text-line {
  font-size: clamp(14px, 0.95vw, 17px);
} */

.product-card-figure-shell {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 76px;
  bottom: 72px;
  z-index: 3;
}

.product-card-figure {
  position: absolute;
  left: 50%;
  z-index: 1;
  max-width: none;
  transform: translateX(-50%);
  transform-origin: center bottom;
  filter: drop-shadow(0 18px 22px rgba(38, 24, 16, 0.18));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.product-card:hover .product-card-figure {
  transform: translateX(-50%) scale(1.08);
  filter: drop-shadow(0 24px 28px rgba(38, 24, 16, 0.24));
}

.product-card-bottom {
  bottom: 22px;
  gap: 3px;
}

.product-card-bottom-title-line {
  display: block;
  font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
  max-width: 100%;
  /* font-size: clamp(15px, 1.05vw, 18px); */
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.product-card-bottom-copy {
  max-width: 92%;
}

.product-card-bottom-copy-line {
  display: block;
  font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
  max-width: 100%;
  /* font-size: clamp(11px, 0.8vw, 14px); */
  font-size: 10px;
  font-weight: 400;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.product-card-bottom.is-dense .product-card-bottom-title-line {
  /* font-size: clamp(13px, 0.92vw, 16px); */
  font-size: 12px;
}

.product-card-bottom.is-dense .product-card-bottom-copy-line {
  text-align: center;
  line-height: 1.15;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    margin: 0 auto;
  }

 .site-footer .footer-links{
  flex-direction: column;
 }

  .site-footer .footer-copy{
    flex-direction: column;
    align-items: start;
  }

  .feature-section .feature-title-image{
    margin: 0px auto 180px;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 280px;
  }
}

.site-footer {
  width: var(--content-width);
  margin: 52px auto 40px;
}

body[data-page="home"] .site-footer {
  width: 100%;
  margin: 52px 0 0;
}

body[data-page="game"] .site-footer {
  width: 100%;
  margin: 0;
}

.footer-card {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(40, 39, 39, 0.96), rgba(36, 35, 35, 0.96)),
    url("./assets/image/home/底_03.jpg") center/cover no-repeat;
  color: white;
  box-shadow: var(--shadow);
}

body[data-page="home"] .footer-card {
  border-radius: 0;
}

body[data-page="game"] .footer-card {
  border-radius: 0;
}

.footer-logo {
  width: 128px;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.footer-copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.footer-link {
  color: white;
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 18px;
}


.footer-link-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-link-icon-privacy {
  background-image: url("./assets/image/common/fotter1.png");
}

.footer-link-icon-terms {
  background-image: url("./assets/image/common/fotter2.png");
}

.footer-link-text {
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}


.toast {
  position: fixed;
  left: 50%;
  top: 88px;
  z-index: 50;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(24, 32, 42, 0.92);
  color: white;
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.detail-hero {
  position: relative;
  min-height: 0;
  aspect-ratio: 2560 / 1140;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

.detail-hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: none;
}

.detail-hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02));
}

.detail-summary {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 34px 0 30px;
  background:
    url("./assets/image/home/底_02.jpg") center/cover no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.detail-summary-inner {
  width: min(880px, calc(100vw - 48px));
  margin: 0 auto;
}

.detail-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 26px 30px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

.detail-summary-card::before,
.detail-summary-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.detail-summary-card::before {
  width: 58px;
  height: 58px;
  right: 46px;
  top: 36px;
  background: rgba(121, 221, 232, 0.52);
}

.detail-summary-card::after {
  width: 112px;
  height: 112px;
  right: -32px;
  top: -30px;
  background: rgba(253, 192, 205, 0.66);
}

.detail-summary-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-icon-card {
  flex: 0 0 90px;
  width: 90px;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  border: 0;
}

.detail-icon {
  width: 100%;
  margin-top: 0;
  border-radius: 12px;
  box-shadow: none;
}

.detail-title-image {
  width: min(220px, 100%);
  margin-top: 0;
}

.detail-description {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  max-width: 100%;
  color: rgba(37, 43, 56, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.detail-button-image {
  display: block;
  width: 100%;
  height: auto;
}

.detail-summary-copy {
  position: relative;
  min-height: 132px;
  padding: 2px 14px 2px 0;
}

.action-button {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.action-button:hover {
  transform: translateY(-2px);
}

.feature-section {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 26px 0 44px;
  background:
    url("./assets/image/gameDetail/产品页底_03.jpg") center/cover no-repeat,
    linear-gradient(180deg, rgba(244, 245, 248, 0.94), rgba(244, 245, 248, 0.94));
}

.feature-inner {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
}

.feature-showcase {
  padding: 42px 34px 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-title-image {
  display: block;
  width: 40%;
  max-width: 636px;
  margin: 0 auto 50px;
}


.swiper-wrapper .store-card.swiper-slide-prev img,
.swiper-wrapper .store-card.swiper-slide-next img {
  transform: scale(.8);
  transition: all .3s;
}

.store-arrow {
  top: 50%;
  width: 34px;
  height: 64px;
  z-index: 6;
  opacity: 0.92;
}

.store-arrow-left {
  left: 50px;
  background-image: url("./assets/image/gameDetail/切换按钮2.png");
}

.store-arrow-right {
  right: 50px;
  background-image: url("./assets/image/gameDetail/切换按钮.png");
}


@media (max-width: 960px) {
  .detail-hero {
    min-height: 0;
  }

  .detail-summary {
    padding: 24px 0 24px;
  }

  .detail-summary-inner {
    width: min(92vw, 760px);
  }

  .detail-summary-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .detail-summary-media {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-actions {
    width: min(100%, 220px);
  }

  .feature-showcase {
    padding: 34px 18px 18px;
  }

  .feature-inner {
    width: min(92vw, 980px);
  }

  .feature-section .feature-title-image{
    margin: 0px auto 180px;
  }
}

@media (max-width: 640px) {
  .detail-hero {
    min-height: 0;
  }

  .detail-summary {
    padding: 18px 0 20px;
  }

  .detail-summary-inner {
    width: calc(100vw - 24px);
  }

  .detail-summary-card {
    gap: 16px;
    padding: 18px 16px;
  }

  .detail-summary-media {
    gap: 14px;
  }

  .detail-icon-card {
    width: 76px;
    flex-basis: 76px;
  }

  .detail-description {
    font-size: 11px;
    line-height: 1.7;
  }

  .feature-section  {
    padding: 18px 0 26px;
  }

  .feature-section .feature-title-image{
    margin: 0px auto 180px;
  }

  .feature-inner {
    width: calc(100vw - 24px);
  }

  .feature-showcase {
    padding: 42px 10px 18px;
  }

  .store-carousel {
    padding: 0 56px;
  }

  .store-track {
    padding: 6px 0 2px;
  }

}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-24px, -18px, 0);
  }
}

@keyframes heroZoom {

  0%,
  100% {
    transform: scale(1.03);
  }

  50% {
    transform: scale(1.1);
  }
}