﻿@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* === Brand variables === */
:root {
  --brand-dark: #3d3229;
  --brand-brown: #6b5a48;
  --brand-gold: #c9a46b;
  --brand-blue: #4a8fd6;
  --brand-blue-dark: #2e6299;
  --brand-teal: #3fb4b1;
  --brand-orange: #e58b4a;
  --brand-green: #7cb85f;
  --brand-bg: #fdfbf7;
  --brand-soft: #f6f3ee;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-card: 0 18px 40px rgba(61, 50, 41, 0.1);
  --shadow-float: 0 24px 60px rgba(61, 50, 41, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--brand-dark);
  background: var(--brand-bg);
  margin: 0;
  line-height: 1.6;
}

/* === Layout helpers === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { position: relative; overflow: hidden; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 50, 41, 0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  height: 104px;
  gap: 0.5rem;
}
.site-logo {
  height: 76px;
  width: auto;
  max-width: 100%;
  display: block;
}
.logo-link { width: 100%; display: flex; justify-content: center; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .2s;
  width: 100%;
}
.nav-item:hover { transform: translateY(-3px); }
.nav-icon {
  height: 66px;
  width: auto;
  max-width: 100%;
  display: block;
  transition: transform .2s;
}
/* Active state: keep the icon, add a gold underline (matches design reference) */
.nav-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-gold);
  transform: translateX(-50%);
  transition: width .25s;
}
.nav-item:hover::after { width: 60%; }
.nav-item.active::after { width: 60%; }
.nav-icon-link { display: inline-flex; }

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
  pointer-events: none;
  z-index: 60;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--brand-brown);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand-blue-dark); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #5fa8ec 0%, #3b8ad9 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(74, 143, 214, 0.35);
}
.btn-gold {
  background: linear-gradient(135deg, #dcc390 0%, #bfa070 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 164, 107, 0.35);
}
.btn-orange {
  background: linear-gradient(135deg, #f2a36a 0%, #d97a35 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(229, 139, 74, 0.35);
}
.btn-blue {
  background: linear-gradient(135deg, #5fa8ec 0%, #3b8ad9 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(74, 143, 214, 0.35);
}
.btn-teal {
  background: linear-gradient(135deg, #5fd1cd 0%, #35a8a4 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(63, 180, 177, 0.35);
}
.btn-outline {
  background: rgba(255,255,255,0.85);
  color: var(--brand-brown);
  border: 2px solid rgba(61,50,41,0.12);
  box-shadow: 0 6px 18px rgba(61,50,41,0.08);
}
.btn-outline:hover { background: #fff; }

/* === Hero CTA (Shop the Games) === */
.hero-cta { display: inline-block; transition: transform .25s, filter .25s; }
.hero-cta img { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s, filter .35s; will-change: transform; }
.hero-cta:hover { transform: translateY(-4px); }
.hero-cta:hover img { transform: scale(1.06); filter: drop-shadow(0 10px 18px rgba(74, 143, 214, .55)); }

/* === Hero 首页第1屏：手机端 purpose.jpg 作背景，文字叠在上部空白区 === */
.hero-mobile { display: none; }
@media (max-width: 640px) {
  .home-hero {
    background-image: none !important;
    background: #ffffff;
    padding: 0 !important; /* 手机端该区域不需要 .py-16 的 4rem 上下内边距，归零 */
    align-items: flex-start !important;
  }
  .home-hero .hero-overlay { display: none !important; }
  .home-hero .hero-desktop { display: none !important; }
  .hero-mobile { display: block !important; }
  .hero-mobile-img { display: block; width: 100%; height: auto; }
  .hero-mobile-copy {
    position: absolute;
    left: 50%;
    top: 7%;
    transform: translateX(-50%);
    width: 86%;
    text-align: center;
  }
  .hero-mobile-title {
    font-size: 23px; font-weight: 800; color: #2a2520; line-height: 1.3;
    margin: 0 0 8px;
  }
  .hero-mobile-sub { font-size: 14px; color: #6b5a48; margin: 0 0 16px; }
  .hero-mobile-cta {
    display: inline-block;
    background: linear-gradient(90deg, #3a8fdb, #6cc0f2);
    color: #fff; font-weight: 700; font-size: 15px;
    padding: 12px 28px; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(74, 143, 214, .35);
    text-decoration: none;
  }
}

/* === Cards === */
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.6);
}

/* === Footer === */
.site-footer {
  background: url('../images/footer.jpg') center / 100% 100% no-repeat;
  padding: 6rem 0 2.5rem;
  min-height: 420px;
  position: relative;
}
.site-footer .container.footer-inner { display: block; width: 0; height: 0; overflow: visible; padding: 0; margin: 0; max-width: none; font-size: 0; line-height: 0; }

/* 4 栏独立绝对定位 */
.site-footer .footer-col.footer-brand {
  position: absolute;
  left: 11%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  z-index: 2;
}
.site-footer .footer-col.footer-col-1 {
  position: absolute;
  left: 36%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
}
.site-footer .footer-col.footer-col-2 {
  position: absolute;
  left: 58%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
}
.site-footer .footer-col.footer-social {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
}
.footer-logo-link { display: inline-block; }
.footer-logo { width: 140px; height: auto; display: block; }
.footer-copy {
  color: #2e6299;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-link {
  color: #2e6299;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.7;
  transition: color .2s;
}
.footer-link:hover { color: var(--brand-brown); text-decoration: underline; }
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #2e6299;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s;
}
.social-link:hover { transform: translateX(4px); color: var(--brand-brown); }
.social-link img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

/* === Section backgrounds === */
.bg-section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* === Form === */
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(61,50,41,0.15);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(74,143,214,0.12);
}
label {
  display: block;
  font-weight: 700;
  color: var(--brand-brown);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

/* === Utilities === */
.text-brand { color: var(--brand-dark); }
.text-brown { color: var(--brand-brown); }
.text-gold { color: var(--brand-gold); }
.text-blue { color: var(--brand-blue-dark); }
.bg-soft { background: var(--brand-soft); }

/* === Skills cards hover === */
.skill-box { cursor: pointer; transition: transform .4s ease, box-shadow .4s ease; }
.skill-box:hover { transform: translateY(-10px); }
.skill-box:hover h3 { color: #c9a46b; }
.skill-box h3 { transition: color .3s ease; }

/* === Reveal animation === */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease-out, transform .7s cubic-bezier(.22,.61,.36,1);
}
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(44px);
}
.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .header-inner { height: 84px; gap: 0.25rem; }
  .site-logo { height: 60px; }
  .nav-icon { height: 50px; }
  .nav-item.active::after { width: 55%; bottom: -4px; height: 2px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; min-height: auto; padding-top: 1rem; }
}

@media (max-width: 640px) {
  .header-inner { height: 80px; gap: 0; }
  .site-logo { height: 2.95rem; }
  .nav-icon { height: 2.95rem; }
  .nav-item::after { height: 2px; bottom: -2px; }
  .nav-item.active::after { width: 50%; height: 2px; }

  /* 手机端 footer：yejiao.jpg 背景，用 CSS Grid 排布避免重叠（logo 顶部居中、导航左右两栏带竖分隔线、社交图标在下），隐藏版权 */
  .site-footer {
    background: url('../images/yejiao.jpg') center center / cover no-repeat !important;
    min-height: 420px !important;
    padding: 2.5rem 1.5rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'brand brand'
      'left  right'
      'social social';
    align-content: center;
    row-gap: 1.75rem;
    box-sizing: border-box;
  }
  /* 取消桌面端绝对定位，改为 grid 子项自然排列 */
  .site-footer .footer-col {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  .site-footer .footer-col.footer-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  /* 手机端隐藏版权文字 */
  .site-footer .footer-copy { display: none !important; }
  .site-footer .footer-col.footer-col-1 {
    grid-area: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    border-right: 1px solid rgba(46,98,153,0.25);
    padding-right: 2.5rem;
  }
  .site-footer .footer-col.footer-col-2 {
    grid-area: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding-left: 2.5rem;
  }
  .site-footer .footer-links-col .footer-link {
    font-size: 0.95rem;
    line-height: 1.4;
    padding-bottom: 5px;
    border-bottom: 1px solid #d7e2ee;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  .site-footer .footer-link:hover { text-decoration: none; }
  .site-footer .footer-col.footer-social {
    grid-area: social;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.25rem;
  }
  .site-footer .social-link span { display: none; }
  .site-footer .social-link img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .btn { padding: 0.75rem 1.5rem; }
}

/* === Skills section responsive === */
.skills-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .skills-title { font-size: 32px !important; margin-bottom: 44px !important; }
}
@media (max-width: 640px) {
  /* 移动端:一排2个,网格布局 */
  .skills-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    overflow: visible;
    padding-bottom: 0;
  }
  .skills-grid > div {
    flex: none;
    padding: 0;
  }
  .skills-grid { max-width: 650px; }
  .skills-title { font-size: 26px !important; margin-bottom: 36px !important; }

/* Difference 区块标题颜色 */
.difference-title { color: #39755b; }

/* Difference 区块遮罩 - 仅手机端显示 */
.difference-overlay {
  display: none;
}

/* Difference 区块移动端适配:整屏 bak2.jpg 背景,仅显示"效果图一"移动版文字叠加上部 */
@media (max-width: 640px) {
  .difference-section {
    display: block !important;
    padding: 0 !important;
    min-height: 112vw;
    background-image: url('../images/bak2.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  .difference-overlay {
    display: none !important;
  }
  /* 桌面版原装文字在手机端隐藏 */
  .difference-section .difference-desktop {
    display: none !important;
  }
  .difference-section .container {
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center;
  }
  /* 效果图一移动版文字:覆盖内联 display:none,叠加在上部 */
  .difference-section .difference-mobile {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 5% 12px 0 !important;
    text-align: center;
  }
  .difference-title { font-size: 22px !important; }
  .difference-section .difference-mobile p { font-size: 14px !important; }
  .difference-section .difference-mobile .difference-traits { font-size: 14px !important; }
}
  /* 移动端:卡片内的标题和描述字号(2列窄卡片,防串行) */
  .skill-title { font-size: 16px !important; line-height: 1.2 !important; margin-bottom: 6px !important; }
  .skill-desc { font-size: 15px !important; line-height: 1.4 !important; }
}


/* Collections icons responsive */
.collections-desktop .collection-item img {
  max-width: 60px !important;
  width: 100%;
  height: auto;
}
.collections-desktop .collection-item h3 { font-size: 20px !important; }
.collections-desktop .collection-item p { font-size: 13px !important; }
.collections-desktop .collection-item { width: 180px !important; }
.collections-desktop .collection-item.storytelling-wide { width: 240px !important; }

/* hover 动效：图标上浮放大 + 标题上移（只作用于子元素 img/h3，避免与 reveal 的 translateX(-50%) 冲突） */
.collections-desktop .collection-item img,
.collections-desktop .collection-item h3 {
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  will-change: transform;
}
.collections-desktop .collection-item:hover img {
  transform: translateY(-10px) scale(1.15);
}
.collections-desktop .collection-item:hover h3 {
  transform: translateY(-5px);
}

/* reveal 动画兼容绝对定位（保留 translateX(-50%) 居中，同时向上滑入） */
.js-enabled .collections-desktop .collection-item.reveal {
  transform: translateX(-50%) translateY(30px) !important;
}
.js-enabled .collections-desktop .collection-item.reveal.visible {
  transform: translateX(-50%) translateY(0) !important;
}

/* 小屏 (<=1590px) 时只显示图标和 h3，鼠标经过弹出 p */
@media (max-width: 1590px) {
  .collections-desktop .collection-item p {
    opacity: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease;
  }
  .collections-desktop .collection-item:hover p {
    opacity: 1 !important;
    max-height: 80px;
  }
  /* 文字遮罩：h3 常驻白底；p 在 hover 时显示白底气泡 */
  .collections-desktop .collection-item h3 {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
  }
  .collections-desktop .collection-item:hover p {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px;
    padding: 8px 10px;
  }
  .collections-desktop .collection-item > * {
    margin-left: auto;
    margin-right: auto;
  }
  .collections-desktop .collection-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 10px 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  /* 前面两个（Adventure/Storytelling）在下半区，hover 文字改为向上弹出，避免溢出底部 */
  .collections-desktop .collection-item.collection-pop-top { position: relative; }
  .collections-desktop .collection-item.collection-pop-top p {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 5;
    margin-top: 0;
  }
}

@media (max-width: 1200px) {
  .collections-title { font-size: 36px !important; }
  .collections-desktop .collection-party { top: 22% !important; }
  .collections-desktop .collection-explore { top: 38% !important; }
}
@media (max-width: 1024px) {
  .collections-title { font-size: 24px !important; }
  .collections-desktop .collection-item { width: 160px !important; }
  .collections-desktop .collection-item img { max-width: 55px !important; }
  .collections-desktop .collection-item h3 { font-size: 18px !important; }
  .collections-desktop .collection-item p { font-size: 12px !important; }
  .collections-desktop .collection-party { top: 18% !important; }
  .collections-desktop .collection-explore { top: 32% !important; }
}
@media (max-width: 768px) {
  .collections-title { font-size: 20px !important; }
  .collections-desktop .collection-item { width: 140px !important; }
  .collections-desktop .collection-item img { max-width: 45px !important; }
  .collections-desktop .collection-item h3 { font-size: 16px !important; }
  .collections-desktop .collection-item p { font-size: 11px !important; }
  .collections-desktop .collection-party { top: 15% !important; }
  .collections-desktop .collection-explore { top: 28% !important; }
}
@media (max-width: 640px) {
  .collections-desktop { display: none !important; }
  .collections-mobile { display: block !important; }
  .collections-mobile-tag { width: 34% !important; }
  .collections-mobile-tag-title { white-space: nowrap; }
  .collections-mobile-tag-desc { white-space: nowrap; }
  .skills-section-title { margin-bottom: 20px !important; }
}
@media (max-width: 380px) {
  .collections-mobile-tag-desc { display: none !important; }
}

/* === Games page: mobile all 5 screens === */
@media (max-width: 768px) {
  section.games-hero {
    min-height: 400px !important;
    padding: 40px 0;
  }
  section.games-hero > .absolute.inset-0.bg-gradient-to-r {
    display: none;
  }
  section.games-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.82);
    z-index: 1;
    pointer-events: none;
  }
  section.games-hero > .container {
    z-index: 2;
  }
  section.games-hero .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  section.games-hero h2 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.2;
  }
  section.games-hero p {
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.5;
  }

  /* 5th screen Coming Soon */
  body[data-page="games"] section.bg-section:not(.games-hero) {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 400px !important;
  }
  body[data-page="games"] section.bg-section:not(.games-hero) > div.absolute.inset-0 {
    background-color: rgba(255,255,255,0.82) !important;
  }
}

/* === About page: mobile background transparency === */
.about-mobile-art { display: none; }

@media (max-width: 768px) {
  section.about-hero {
    min-height: auto !important;
    padding: 0;
  }
  section.about-hero > .absolute.inset-0.bg-gradient-to-r,
  section.about-hero > .about-desktop {
    display: none !important;
  }
  section.about-hero::before {
    display: none;
  }
  section.about-hero .about-mobile-art {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* === Partnership page: desktop/mobile layout switch === */
.partnership-desktop { display: block; }
.partnership-mobile { display: none; }

@media (max-width: 640px) {
  .partnership-desktop { display: none !important; }
  .partnership-mobile { display: block !important; }
}

/* ===== 修复代码 20260820 2100 ===== Adventure page: <img> full-width + overlay */
/* Full-width image that preserves aspect ratio */
.adv-bg-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Hero ---- */
.adv-hero {
  position: relative;
  overflow: hidden;
}
.adv-hero-text {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}
.adv-hero-text h1 {
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #3d3229;
  text-shadow: 0 2px 12px rgba(255,255,255,0.6);
  margin-bottom: 0.1em;
  line-height: 1.15;
}
.adv-hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #6b5a48;
  text-shadow: 0 1px 8px rgba(255,255,255,0.5);
  margin-top: 0;
}

/* Hero text overlay - 手机端文字可读 */
.adv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* 手机端 Hero 适配 */
@media (max-width: 640px) {
  .adv-hero {
    max-height: 50vh;
  }
  .adv-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  .adv-hero::after {
    background: rgba(255, 255, 255, 0.45);
  }
  .adv-hero-text {
    top: 45%;
    transform: translateY(-50%);
    padding: 0 20px;
  }
  .adv-hero-text h1 {
    font-size: 1.5rem !important;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
  }
  .adv-hero-text p {
    font-size: 0.95rem !important;
    color: #000 !important;
  }
}

/* ---- Game sections ---- */
.adv-game {
  position: relative;
  overflow: hidden;
}
.adv-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36%;
  display: flex;
  align-items: center;
  padding: 2.5rem 2rem;
  z-index: 2;
}
.adv-overlay-left { left: 0; }
.adv-overlay-right { right: 0; }

/* Text panel */
.adv-panel {
  width: 100%;
  padding: 1.75rem 1.75rem;
  border-radius: 1.2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.adv-panel-dark {
  background: rgba(10, 14, 30, 0.72);
  border: 1px solid rgba(201, 164, 107, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.adv-panel-green {
  background: rgba(12, 35, 20, 0.72);
  border: 1px solid rgba(201, 164, 107, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.adv-panel-blue {
  background: rgba(15, 45, 80, 0.68);
  border: 1px solid rgba(201, 164, 107, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Panel text */
.adv-title {
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.adv-subtitle {
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  color: #f0c96a;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.adv-desc {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}
.adv-tagline {
  margin-top: 1rem;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 800;
  color: #f0c96a;
}

/* Table */
.adv-table {
  width: 100%;
  text-align: left;
  font-size: clamp(0.75rem, 0.9vw, 0.88rem);
  border-collapse: collapse;
}
.adv-table tr {
  border-bottom: 1px solid rgba(240, 201, 106, 0.15);
}
.adv-table tr:last-child { border-bottom: none; }
.adv-table td {
  padding: 0.5rem 0;
  vertical-align: top;
}
.adv-table td:first-child {
  color: #f0c96a;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 0.6rem;
}
.adv-table td:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.adv-icon {
  display: inline-block;
  width: 1.4em;
  text-align: center;
  margin-right: 0.3rem;
  font-size: 1.05em;
}

/* ---- Discover more ---- */
.adv-discover {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  background: linear-gradient(180deg, #f8fbfd 0%, #f0f5f8 100%);
}
.adv-discover-title {
  text-align: center;
  margin-bottom: 1rem;
  padding: 0 1rem;
}
.adv-discover-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, #4a6fa5, #8b7355, #c9a46b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.adv-discover-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(auto, 510px));
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 2rem;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.adv-card {
  position: relative;
  display: block;
  text-decoration: none;
  transition: transform 0.3s;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 510 / 400;
}
.adv-card-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
.adv-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 14% 10% 6% 10%;
  pointer-events: none;
}
.adv-card:hover { transform: translateY(-5px); }
.adv-card-overlay h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.05rem);
  font-weight: 800;
  margin: 0 0 6% 0;
  line-height: 1.2;
  text-align: left;
}
.adv-card:nth-child(1) .adv-card-overlay h3 { color: #1a3a5c; }
.adv-card:nth-child(1) .adv-card-overlay p { color: #2d4a6b; }
.adv-card:nth-child(2) .adv-card-overlay h3 { color: #4a3520; }
.adv-card:nth-child(2) .adv-card-overlay p { color: #5a4530; }
.adv-card:nth-child(3) .adv-card-overlay h3 { color: #1a4a30; }
.adv-card:nth-child(3) .adv-card-overlay p { color: #2a5a40; }
.adv-card-overlay p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.4;
  text-align: left;
  margin: 0 0 6% 0;
}
.adv-card-btn {
  width: auto;
  max-width: 180px;
  height: auto;
  transition: transform 0.3s;
  pointer-events: auto;
  align-self: center;
}
.adv-card:hover .adv-card-btn { transform: scale(1.05); }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .adv-discover-cards { grid-template-columns: repeat(3, minmax(auto, 400px)); }
}
@media (max-width: 1024px) {
  .adv-discover-cards { grid-template-columns: repeat(3, minmax(auto, 350px)); }
  .adv-card-overlay { padding: 10% 10% 0 10%; }
  .adv-card-overlay h3 { font-size: clamp(1.2rem, 3vw, 2.2rem); margin: 0 0 5% 0; }
  .adv-card-overlay p { font-size: clamp(0.85rem, 2.2vw, 1.6rem); margin: 0 0 5% 0; }
  .adv-card-btn { max-width: 150px; }
}

@media (max-width: 900px) {
  .adv-discover-cards {
    grid-template-columns: minmax(auto, 480px);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .adv-discover {
    background: linear-gradient(180deg, #f8fbfd 0%, #f0f5f8 100%);
    padding: 1.5rem 0;
  }
  .adv-discover-title {
    position: relative;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  .adv-discover-title h2 { font-size: 1.3rem; }
  .adv-discover-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    grid-template-columns: none;
    gap: 1rem;
    padding: 0 1rem;
  }
  .adv-card {
    width: 100%;
    max-width: none;
    border-radius: 1rem;
  }
  .adv-card-overlay { padding: 1.25rem 1.5rem; }
  .adv-card-overlay h3 { font-size: 1.2rem; margin: 0 0 0.5rem 0; }
  .adv-card-overlay p { font-size: 0.95rem; margin: 0 0 10px 0; line-height: 1.5; }
  .adv-card-btn { max-width: 160px; }
}

@media (max-width: 640px) {
  .adv-hero-text { top: 5%; }
  .adv-discover-cards { padding: 0 0.75rem; }
  .adv-card-overlay { padding: 1rem 1.25rem; }
  .adv-card-overlay h3 { font-size: 1.1rem; margin: 0 0 0.5rem 0; }
  .adv-card-overlay p { font-size: 0.9rem; margin: 0 0 10px 0; }
  .adv-card-btn { max-width: 150px; }
}



/* ===== Games page: mobile redesign per design 2合集 ===== */
/* 手机端按设计稿「2合集.jpg」改版：整幅场景图 + 叠加标题/标语/按钮；桌面端保持原样 */
/* ===== 修复代码 20260915 ===== */

/* 桌面端隐藏手机版专用结构 */
.gm-hero,
.gm-art,
.gm-overlay { display: none; }

@media (max-width: 768px) {
  /* 隐藏旧版桌面结构（渐变遮罩、文字容器，含 discover 区不带 .container 的文字块） */
  body[data-page="games"] section.gm-section > .absolute.inset-0,
  body[data-page="games"] section.gm-section > .container,
  body[data-page="games"] section.gm-section > div.relative.z-10 { display: none !important; }
  body[data-page="games"] section.gm-section {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  body[data-page="games"] section.gm-section::before { display: none !important; }

  /* 手机版 Hero：Our Game Collections */
  .gm-hero { display: block; position: relative; }

  /* 整幅场景图全宽显示 */
  .gm-art {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
  }
  .gm-section, .gm-hero { position: relative; }

  /* 叠加层：标题 + 标语 + 按钮，自上而下排列 */
  .gm-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 10% 6% 0 6%;
    text-align: center;
  }
  .gm-overlay h2 {
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.12;
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.55rem, 5.6vw, 2.35rem);
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }
  .gm-overlay .gm-sub {
    font-weight: 700;
    letter-spacing: .04em;
    font-size: clamp(0.95rem, 3.4vw, 1.35rem);
    margin: 0 0 0.9rem 0;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }
  .gm-btn { display: inline-block; }
  .gm-btn img {
    display: block;
    max-width: clamp(170px, 46vw, 250px);
    width: 100%;
    height: auto;
  }

  /* 各系列标题色：跟随设计稿系列专属色 */
  .gm-section:nth-of-type(2) .gm-overlay h2 { color: #4a3b28; }
  .gm-section:nth-of-type(3) .gm-overlay h2 { color: #8a4d1f; }
  .gm-section:nth-of-type(4) .gm-overlay h2 { color: #1e4d8f; }
  .gm-section:nth-of-type(5) .gm-overlay h2 { color: #16336b; }
  .gm-section:nth-of-type(2) .gm-overlay .gm-sub { color: #7a6848; }
  .gm-section:nth-of-type(3) .gm-overlay .gm-sub { color: #c67a3a; }
  .gm-section:nth-of-type(4) .gm-overlay .gm-sub { color: #3b6cb8; }
  .gm-section:nth-of-type(5) .gm-overlay .gm-sub { color: #2f5aa8; }

  /* Hero overlay 文案 */
  .gm-hero-overlay h2 {
    color: #2e3a59;
    font-size: clamp(1.7rem, 6.2vw, 2.6rem);
  }
  .gm-hero-overlay .gm-sub { color: #45618a; font-size: clamp(1.05rem, 3.8vw, 1.5rem); }
  .gm-hero-overlay .gm-desc {
    color: #55637a;
    font-size: clamp(0.8rem, 2.9vw, 1.05rem);
    line-height: 1.5;
    margin: 0;
    max-width: 88%;
    text-shadow: 0 1px 2px rgba(255,255,255,.9);
  }

  /* Discover overlay：标题置顶 */
  .gm-discover-overlay {
    padding-top: 6%;
  }
  .gm-discover-overlay h2 {
    color: #3d3229;
    font-size: clamp(1.35rem, 5vw, 2rem);
    max-width: 94%;
  }

  /* 手机版页脚：与首页一致，使用共享 site-footer（components.js 注入），不再单独定制 */
}

/* ===== Adventure page mobile: design 2合集 ===== */
/* 修复代码 20260915 */

/* Desktop: hide mobile-only elements */
.gm-sub-art,
.gm-sub-overlay,
.gm-sub-btn,
.gm-discover-bg,
.gm-discover-body,
.gm-discover-title,
.gm-discover-cards,
.gm-discover-card,
.gm-card-bg,
.gm-card-btn,
.gm-hot { display: none; }

@media (max-width: 768px) {
  /* Show mobile elements, hide desktop elements */
  body[data-page="adventure"] .adv-hero .adv-bg-img,
  body[data-page="adventure"] .adv-hero .adv-hero-text,
  body[data-page="adventure"] .adv-hero::after,
  body[data-page="adventure"] .adv-game .adv-bg-img,
  body[data-page="adventure"] .adv-discover .adv-discover-title,
  body[data-page="adventure"] .adv-discover .adv-discover-cards { display: none !important; }

  body[data-page="adventure"] .gm-sub-art,
  body[data-page="adventure"] .gm-sub-overlay,
  body[data-page="adventure"] .gm-sub-btn,
  body[data-page="adventure"] .gm-discover-bg,
  body[data-page="adventure"] .gm-discover-body,
  body[data-page="adventure"] .gm-discover-title,
  body[data-page="adventure"] .gm-discover-cards,
  body[data-page="adventure"] .gm-discover-card,
  body[data-page="adventure"] .gm-card-bg,
  body[data-page="adventure"] .gm-card-btn { display: block; }

  /* Section containers */
  body[data-page="adventure"] .adv-hero,
  body[data-page="adventure"] .adv-game,
  body[data-page="adventure"] .adv-discover { position: relative; overflow: hidden; }
  body[data-page="adventure"] .adv-hero { max-height: none !important; }

/* Background images */
  body[data-page="adventure"] .gm-sub-art { width: 100%; height: auto; display: block; }
  body[data-page="adventure"] .adv-hero .gm-sub-art { width: 100%; height: auto; display: block; }

  /* Discover hotspot links (透明跳转热区) */
  body[data-page="adventure"] .gm-hot {
    display: block; position: absolute; z-index: 3;
    background: transparent; text-decoration: none; border: 0; padding: 0; margin: 0;
  }
  body[data-page="adventure"] .gm-hot-1 { left: 14%; top: 15%; width: 37%; height: 29%; }
  body[data-page="adventure"] .gm-hot-2 { left: 49%; top: 34%; width: 40%; height: 36%; }
  body[data-page="adventure"] .gm-hot-3 { left: 15%; top: 61%; width: 42%; height: 28%; }

  /* Hero overlay */
  body[data-page="adventure"] .gm-sub-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 10% 6% 0 6%; text-align: center;
  }
  body[data-page="adventure"] .gm-sub-overlay h2 {
    font-weight: 800; letter-spacing: .01em; line-height: 1.12;
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.55rem, 5.6vw, 2.35rem);
    color: #3d3229;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }
  body[data-page="adventure"] .gm-sub-overlay p {
    font-weight: 700; letter-spacing: .04em;
    font-size: clamp(0.95rem, 3.4vw, 1.35rem);
    margin: 0; color: #6b5a48;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }

  /* Discover */
  body[data-page="adventure"] .gm-discover-bg { display: block; width: 100%; height: auto; }
  body[data-page="adventure"] .gm-discover-body {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; inset: 0; z-index: 2;
    padding: 2% 3% 0 3%;
  }
  body[data-page="adventure"] .gm-discover-title {
    display: block;
    font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 800;
    background: linear-gradient(90deg, #4a6fa5, #8b7355, #c9a46b);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 0 0 0.5rem 0; text-align: center;
  }
  body[data-page="adventure"] .gm-discover-cards {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.3rem; width: 100%; position: relative;
  }
  body[data-page="adventure"] .gm-discover-card {
    display: block; width: 36%; position: relative; text-decoration: none;
  }
  body[data-page="adventure"] .gm-discover-card:nth-child(1) { align-self: flex-start; margin-left: 3%; }
  body[data-page="adventure"] .gm-discover-card:nth-child(2) { align-self: flex-end; margin-right: 3%; }
  body[data-page="adventure"] .gm-discover-card:nth-child(3) { align-self: flex-start; margin-left: 8%; }
  body[data-page="adventure"] .gm-card-bg { display: block; width: 100%; height: auto; border-radius: 0.75rem; }
  body[data-page="adventure"] .gm-card-btn {
    display: block; position: absolute;
    bottom: 6%; left: 50%; transform: translateX(-50%);
    width: 55%; height: auto;
  }

  /* Reveal fix */
  body[data-page="adventure"] .js-enabled .gm-discover-card.reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Storytelling page mobile ===== */
@media (max-width: 768px) {
  body[data-page="storytelling"] .adv-hero .adv-bg-img,
  body[data-page="storytelling"] .adv-hero .adv-hero-text,
  body[data-page="storytelling"] .adv-hero::after,
  body[data-page="storytelling"] .adv-game .adv-bg-img,
  body[data-page="storytelling"] .adv-discover .adv-discover-title,
  body[data-page="storytelling"] .adv-discover .adv-discover-cards { display: none !important; }

  body[data-page="storytelling"] .gm-sub-art,
  body[data-page="storytelling"] .gm-sub-overlay,
  body[data-page="storytelling"] .gm-sub-btn,
  body[data-page="storytelling"] .gm-discover-bg,
  body[data-page="storytelling"] .gm-discover-body,
  body[data-page="storytelling"] .gm-discover-title,
  body[data-page="storytelling"] .gm-discover-cards,
  body[data-page="storytelling"] .gm-discover-card,
  body[data-page="storytelling"] .gm-card-bg,
  body[data-page="storytelling"] .gm-card-btn { display: block; }

  body[data-page="storytelling"] .adv-hero,
  body[data-page="storytelling"] .adv-game,
  body[data-page="storytelling"] .adv-discover { position: relative; overflow: hidden; }
  body[data-page="storytelling"] .adv-hero { max-height: none !important; }
  body[data-page="storytelling"] .gm-sub-art { width: 100%; height: auto; }
  body[data-page="storytelling"] .adv-hero .gm-sub-art { width: 100%; height: auto; display: block; }

  /* Discover hotspot links (透明跳转热区) */
  body[data-page="storytelling"] .gm-hot {
    display: block; position: absolute; z-index: 3;
    background: transparent; text-decoration: none; border: 0; padding: 0; margin: 0;
  }
  body[data-page="storytelling"] .gm-hot-1 { left: 10%; top: 16%; width: 39%; height: 33%; }
  body[data-page="storytelling"] .gm-hot-2 { left: 50%; top: 19%; width: 42%; height: 41%; }
  body[data-page="storytelling"] .gm-hot-3 { left: 16%; top: 56%; width: 56%; height: 34%; }
  body[data-page="storytelling"] .gm-sub-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 10% 6% 0 6%; text-align: center;
  }
  body[data-page="storytelling"] .gm-sub-overlay h2 {
    font-weight: 800; letter-spacing: .01em; line-height: 1.12;
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.55rem, 5.6vw, 2.35rem);
    color: #3d3229;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }
  body[data-page="storytelling"] .gm-sub-overlay p {
    font-weight: 700; letter-spacing: .04em;
    font-size: clamp(0.95rem, 3.4vw, 1.35rem);
    margin: 0; color: #6b5a48;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }

  body[data-page="storytelling"] .gm-discover-bg { display: block; width: 100%; height: auto; }
  body[data-page="storytelling"] .gm-discover-body {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; inset: 0; z-index: 2;
    padding: 2% 3% 0 3%;
  }
  body[data-page="storytelling"] .gm-discover-title {
    display: block;
    font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 800;
    background: linear-gradient(90deg, #4a6fa5, #8b7355, #c9a46b);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 0 0 0.5rem 0; text-align: center;
  }
  body[data-page="storytelling"] .gm-discover-cards {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.3rem; width: 100%; position: relative;
  }
  body[data-page="storytelling"] .gm-discover-card {
    display: block; width: 36%; position: relative; text-decoration: none;
  }
  body[data-page="storytelling"] .gm-discover-card:nth-child(1) { align-self: flex-start; margin-left: 3%; }
  body[data-page="storytelling"] .gm-discover-card:nth-child(2) { align-self: flex-end; margin-right: 3%; }
  body[data-page="storytelling"] .gm-discover-card:nth-child(3) { align-self: flex-start; margin-left: 8%; }
  body[data-page="storytelling"] .gm-card-bg { display: block; width: 100%; height: auto; border-radius: 0.75rem; }
  body[data-page="storytelling"] .gm-card-btn {
    display: block; position: absolute;
    bottom: 6%; left: 50%; transform: translateX(-50%);
    width: 55%; height: auto;
  }
  body[data-page="storytelling"] .js-enabled .gm-discover-card.reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Party page mobile ===== */
@media (max-width: 768px) {
  body[data-page="party"] .adv-hero .adv-bg-img,
  body[data-page="party"] .adv-hero .adv-hero-text,
  body[data-page="party"] .adv-hero::after,
  body[data-page="party"] .adv-game .adv-bg-img,
  body[data-page="party"] .adv-discover .adv-discover-title,
  body[data-page="party"] .adv-discover .adv-discover-cards { display: none !important; }

  body[data-page="party"] .gm-sub-art,
  body[data-page="party"] .gm-sub-overlay,
  body[data-page="party"] .gm-sub-btn,
  body[data-page="party"] .gm-discover-bg,
  body[data-page="party"] .gm-discover-body,
  body[data-page="party"] .gm-discover-title,
  body[data-page="party"] .gm-discover-cards,
  body[data-page="party"] .gm-discover-card,
  body[data-page="party"] .gm-card-bg,
  body[data-page="party"] .gm-card-btn { display: block; }

  body[data-page="party"] .adv-hero,
  body[data-page="party"] .adv-game,
  body[data-page="party"] .adv-discover { position: relative; overflow: hidden; }
  body[data-page="party"] .adv-hero { max-height: none !important; }
  body[data-page="party"] .gm-sub-art { width: 100%; height: auto; }
  body[data-page="party"] .adv-hero .gm-sub-art { width: 100%; height: auto; display: block; }

  /* Discover hotspot links (透明跳转热区) */
  body[data-page="party"] .gm-hot {
    display: block; position: absolute; z-index: 3;
    background: transparent; text-decoration: none; border: 0; padding: 0; margin: 0;
  }
  body[data-page="party"] .gm-hot-1 { left: 13%; top: 33%; width: 38%; height: 35%; }
  body[data-page="party"] .gm-hot-2 { left: 48%; top: 15%; width: 39%; height: 35%; }
  body[data-page="party"] .gm-hot-3 { left: 44%; top: 59%; width: 42%; height: 33%; }
  body[data-page="party"] .gm-sub-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 10% 6% 0 6%; text-align: center;
  }
  body[data-page="party"] .gm-sub-overlay h2 {
    font-weight: 800; letter-spacing: .01em; line-height: 1.12;
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.55rem, 5.6vw, 2.35rem);
    color: #3d3229;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }
  body[data-page="party"] .gm-sub-overlay p {
    font-weight: 700; letter-spacing: .04em;
    font-size: clamp(0.95rem, 3.4vw, 1.35rem);
    margin: 0; color: #6b5a48;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }

  body[data-page="party"] .gm-discover-bg { display: block; width: 100%; height: auto; }
  body[data-page="party"] .gm-discover-body {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; inset: 0; z-index: 2;
    padding: 2% 3% 0 3%;
  }
  body[data-page="party"] .gm-discover-title {
    display: block;
    font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 800;
    background: linear-gradient(90deg, #4a6fa5, #8b7355, #c9a46b);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 0 0 0.5rem 0; text-align: center;
  }
  body[data-page="party"] .gm-discover-cards {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.3rem; width: 100%; position: relative;
  }
  body[data-page="party"] .gm-discover-card {
    display: block; width: 36%; position: relative; text-decoration: none;
  }
  body[data-page="party"] .gm-discover-card:nth-child(1) { align-self: flex-start; margin-left: 3%; }
  body[data-page="party"] .gm-discover-card:nth-child(2) { align-self: flex-end; margin-right: 3%; }
  body[data-page="party"] .gm-discover-card:nth-child(3) { align-self: flex-start; margin-left: 8%; }
  body[data-page="party"] .gm-card-bg { display: block; width: 100%; height: auto; border-radius: 0.75rem; }
  body[data-page="party"] .gm-card-btn {
    display: block; position: absolute;
    bottom: 6%; left: 50%; transform: translateX(-50%);
    width: 55%; height: auto;
  }
  body[data-page="party"] .js-enabled .gm-discover-card.reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Explorer page mobile ===== */
@media (max-width: 768px) {
  body[data-page="explorer"] .adv-hero .adv-bg-img,
  body[data-page="explorer"] .adv-hero .adv-hero-text,
  body[data-page="explorer"] .adv-hero::after,
  body[data-page="explorer"] .adv-game .adv-bg-img,
  body[data-page="explorer"] .adv-discover .adv-discover-title,
  body[data-page="explorer"] .adv-discover .adv-discover-cards { display: none !important; }

  body[data-page="explorer"] .gm-sub-art,
  body[data-page="explorer"] .gm-sub-overlay,
  body[data-page="explorer"] .gm-sub-btn,
  body[data-page="explorer"] .gm-discover-bg,
  body[data-page="explorer"] .gm-discover-body,
  body[data-page="explorer"] .gm-discover-title,
  body[data-page="explorer"] .gm-discover-cards,
  body[data-page="explorer"] .gm-discover-card,
  body[data-page="explorer"] .gm-card-bg,
  body[data-page="explorer"] .gm-card-btn { display: block; }

  body[data-page="explorer"] .adv-hero,
  body[data-page="explorer"] .adv-game,
  body[data-page="explorer"] .adv-discover { position: relative; overflow: hidden; }
  body[data-page="explorer"] .adv-hero { max-height: none !important; }
  body[data-page="explorer"] .gm-sub-art { width: 100%; height: auto; }
  body[data-page="explorer"] .adv-hero .gm-sub-art { width: 100%; height: auto; display: block; }

  /* Discover hotspot links (透明跳转热区) */
  body[data-page="explorer"] .gm-hot {
    display: block; position: absolute; z-index: 3;
    background: transparent; text-decoration: none; border: 0; padding: 0; margin: 0;
  }
  body[data-page="explorer"] .gm-hot-1 { left: 8%; top: 15%; width: 36%; height: 33%; }
  body[data-page="explorer"] .gm-hot-2 { left: 44%; top: 17%; width: 50%; height: 44%; }
  body[data-page="explorer"] .gm-hot-3 { left: 14%; top: 60%; width: 52%; height: 25%; }
  body[data-page="explorer"] .gm-sub-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 10% 6% 0 6%; text-align: center;
  }
  body[data-page="explorer"] .gm-sub-overlay h2 {
    font-weight: 800; letter-spacing: .01em; line-height: 1.12;
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.55rem, 5.6vw, 2.35rem);
    color: #3d3229;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }
  body[data-page="explorer"] .gm-sub-overlay p {
    font-weight: 700; letter-spacing: .04em;
    font-size: clamp(0.95rem, 3.4vw, 1.35rem);
    margin: 0; color: #6b5a48;
    text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 0 8px rgba(255,255,255,.6);
  }

  body[data-page="explorer"] .gm-discover-bg { display: block; width: 100%; height: auto; }
  body[data-page="explorer"] .gm-discover-body {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; inset: 0; z-index: 2;
    padding: 2% 3% 0 3%;
  }
  body[data-page="explorer"] .gm-discover-title {
    display: block;
    font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 800;
    background: linear-gradient(90deg, #4a6fa5, #8b7355, #c9a46b);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 0 0 0.5rem 0; text-align: center;
  }
  body[data-page="explorer"] .gm-discover-cards {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.3rem; width: 100%; position: relative;
  }
  body[data-page="explorer"] .gm-discover-card {
    display: block; width: 36%; position: relative; text-decoration: none;
  }
  body[data-page="explorer"] .gm-discover-card:nth-child(1) { align-self: flex-start; margin-left: 3%; }
  body[data-page="explorer"] .gm-discover-card:nth-child(2) { align-self: flex-end; margin-right: 3%; }
  body[data-page="explorer"] .gm-discover-card:nth-child(3) { align-self: flex-start; margin-left: 8%; }
  body[data-page="explorer"] .gm-card-bg { display: block; width: 100%; height: auto; border-radius: 0.75rem; }
  body[data-page="explorer"] .gm-card-btn {
    display: block; position: absolute;
    bottom: 6%; left: 50%; transform: translateX(-50%);
    width: 55%; height: auto;
  }
  body[data-page="explorer"] .js-enabled .gm-discover-card.reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== 子页面游戏区按钮叠层（素材按钮图，对齐各自效果预览） ===== */
/* 修复代码 20260915-12 */
@media (max-width: 768px) {
  body[data-page="adventure"] .gm-sub-btn,
  body[data-page="storytelling"] .gm-sub-btn,
  body[data-page="party"] .gm-sub-btn,
  body[data-page="explorer"] .gm-sub-btn { display: block; position: absolute; height: auto; z-index: 2; }
  body[data-page="adventure"] .gm-sub-btn img,
  body[data-page="storytelling"] .gm-sub-btn img,
  body[data-page="party"] .gm-sub-btn img,
  body[data-page="explorer"] .gm-sub-btn img { pointer-events: none; }
  body[data-page="adventure"] .gm-btn-magical     { left: 32.87%; top: 65.84%; width: 36.2%; }
  body[data-page="adventure"] .gm-btn-dinoclash   { left: 32.69%; top: 64.68%; width: 34.72%; }
  body[data-page="adventure"] .gm-btn-ocean       { left: 32.5%;  top: 59.72%; width: 34.54%; }
  body[data-page="storytelling"] .gm-btn-zombie   { left: 34.81%; top: 62.78%; width: 29.91%; }
  body[data-page="storytelling"] .gm-btn-hero-tale{ left: 32.69%; top: 66.34%; width: 32.13%; }
  body[data-page="party"] .gm-btn-spell-sprint    { left: 32.04%; top: 59.8%;  width: 34.07%; }
  body[data-page="explorer"] .gm-btn-brain-rush   { left: 23.06%; top: 62.86%; width: 31.2%; }
}

/* ===== 桌面端子页面游戏区按钮叠层（素材按钮图，覆盖效果图内已画好的按钮） =====
   坐标按各效果图测量，容器为 .adv-game（position:relative），百分比直接通用。 */
/* 修复代码 20261010-2 */
@media (min-width: 769px) {
  .adv-game .gm-sub-btn {
    display: block;
    position: absolute;
    height: auto;
    z-index: 3;
  }
  .adv-game .gm-sub-btn img {
    display: block;
    width: 100%;
    height: auto;
  }
  body[data-page="adventure"] .gm-btn-magical     { left: 59.0%; top: 80.0%; width: 18.0%; }
  body[data-page="adventure"] .gm-btn-dinoclash   { left: 62.0%; top: 83.5%; width: 20.0%; }
  body[data-page="adventure"] .gm-btn-ocean       { left: 62.0%; top: 72.5%; width: 20.5%; }
  body[data-page="storytelling"] .gm-btn-zombie   { left: 13.5%; top: 65.5%; width: 19.5%; }
  body[data-page="storytelling"] .gm-btn-hero-tale{ left: 24.5%; top: 62.5%; width: 20.0%; }
  body[data-page="party"] .gm-btn-spell-sprint    { left: 38.5%; top: 83.0%; width: 21.0%; }
  body[data-page="explorer"] .gm-btn-brain-rush   { left: 6.5%;  top: 63.5%; width: 21.0%; }
  /* ===== 首页「Our Game Collections」Visit Amazon Store 按钮（设计稿第一面第四张） ===== */
  .collections-desktop .gm-sub-btn { display: block; position: absolute; z-index: 3; }
  .collections-desktop .gm-sub-btn img { display: block; width: 100%; height: auto; }
  .collections-desktop .gm-btn-amazon-store      { left: 37.5%; top: 14.5%; width: 22.5%; }
}
