/* ===== 全站统一标题美化（大厂风格） ===== */
:root {
  --funx-accent: #06b6d4;
  --funx-accent-2: #22c55e;
  --funx-title-color: #0f172a;
  --funx-subtle: #64748b;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.6rem;
}
.section-header-line {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(6,182,212,.3) 0%, rgba(34,197,94,.3) 100%);
}
.section-header-title {
  grid-column: 2 / 3;
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 4.2vw, 1.6rem);
  line-height: 1.2;
  color: var(--funx-title-color);
  letter-spacing: -0.2px;
  background: linear-gradient(90deg, #0f172a 0%, #0b3b3f 40%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-header-sub {
  margin: 0.25rem auto 0.8rem;
  max-width: 58ch;
  text-align: center;
  color: var(--funx-subtle);
  font-size: clamp(.82rem, 3.2vw, .95rem);
}

/* ===== 热门活动 Tabs & 轮播布局优化 ===== */
.activities-section .activities-container { gap: 14px; }
.activity-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  align-items: stretch;
}
.activity-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, .15);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .1px;
  transition: all .2s ease;
  white-space: nowrap;
}
.activity-tab:hover { box-shadow: 0 4px 12px rgba(2,132,199,.08); transform: translateY(-1px); }
.activity-tab.active {
  color: #075985;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
  border-color: rgba(2,132,199,.35);
}

.activity-carousel { position: relative; border-radius: 14px; overflow: hidden; }
.activity-carousel::after { /* 细阴影提升层次 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
}
.activity-carousel img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
}
.activity-carousel.loading img { filter: blur(2px) saturate(0.9); }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(2,6,23,0.10);
  box-shadow: 0 8px 22px rgba(2,6,23,0.10);
  color: #0f172a;
  backdrop-filter: saturate(140%) blur(6px); -webkit-backdrop-filter: saturate(140%) blur(6px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.carousel-nav:hover { transform: translateY(-50%) scale(1.04); box-shadow: 0 12px 30px rgba(2,6,23,0.14); background: rgba(255,255,255,0.9); }
.carousel-nav:active { transform: translateY(-50%) scale(0.98); }
.carousel-nav:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,0.35), 0 10px 28px rgba(2,6,23,0.18); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* 活动轮播进度条（制造紧迫感） */
.activity-carousel .carousel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.18); }
.activity-carousel .carousel-progress .bar { width: 0%; height: 100%; background: linear-gradient(90deg, #22d3ee, #a78bfa); transition: width .2s linear; }

/* 活动轮播：一次性滑动提示（仅触摸设备） */
.activity-carousel .swipe-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.60);
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 28px rgba(2,6,23,0.22);
  pointer-events: none;
  opacity: 0;
  animation: swipe-hint-fade 2.8s ease forwards;
}
.activity-carousel .swipe-hint .hand {
  display: inline-block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
  animation: swipe-hand 1.6s ease-in-out infinite;
}
@keyframes swipe-hand {
  0% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  100% { transform: translateX(-10px); }
}
@keyframes swipe-hint-fade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.activity-info.funx-card { padding: 12px 12px 10px; border-radius: 14px; }
.activity-info.funx-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}
.activity-title { font-weight: 800; letter-spacing: -.2px; }
.activity-description { color: #475569; margin-top: .25rem; font-size: .92rem; }
@media (max-width: 600px) {
  .activity-info .activity-description {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; 
  line-clamp: 3;
  }
}

/* Banner 紧迫徽章（倒计时） */
.banner-urgency { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 10px; padding: 6px 10px; border-radius: 999px; background: rgba(15,23,42,0.55); color: #fff; backdrop-filter: blur(8px) saturate(140%); border: 1px solid rgba(255,255,255,0.18); }
.banner-urgency .hot-dot { width: 8px; height: 8px; border-radius: 999px; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.6); animation: pulse-dot 1.6s infinite; }
.banner-countdown { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .5px; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); } 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

/* ===== 邀请裂变：默认精简展示 + 折叠更多 ===== */
.invite-section.funx-card { padding: 14px 12px; }
.invite-feature-unified-bg-clean { padding: 10px 12px; }
.invite-detail-inner-block-clean { padding: 10px 12px; }
.invite-more-wrap { text-align: center; margin-top: 8px; }
.invite-extra { margin-top: 8px; }
.invite-extra.is-hidden { display: none; }

/* ===== 本地服务与优势区：更紧凑的文案与栅格 ===== */
.services-section.funx-card { padding: 14px 12px; border-radius: 16px; }
.services-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: stretch; }
@media (min-width: 900px) { .services-metrics { grid-template-columns: repeat(4, 1fr); } }
.metric-card { min-height: 120px; display: grid; place-items: center; text-align: center; gap: 2px; }
.metric-number { font-weight: 900; font-size: clamp(1.4rem, 5vw, 1.8rem); color: #0f172a; }
.metric-unit { color: #0ea5e9; font-weight: 800; margin-top: -2px; }
.metric-label { color: #64748b; font-size: .9rem; }

.advantages-section .feature-card { border-radius: 14px; padding: 12px; }
.advantages-section .fc-row {
  display: grid;
  grid-template-columns: 48px 1fr auto; /* 图标 / 文本 / 右侧徽章 */
  align-items: center;
  gap: 10px;
}
.advantages-section .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  justify-self: start; /* 严格贴左 */
  margin: 0; /* 移除任何默认外边距 */
}
.advantages-section .feature-icon i { font-size: 18px; line-height: 1; }
.advantages-section .feature-title { margin: 0; }
.advantages-section .feature-badge { justify-self: end; }
.feature-description { color: #475569; font-size: .92rem; line-height: 1.5; }

/* ====================================
  FunX Mobile Optimized CSS (modular index)
  Sections:
  1) Banner / Carousel
  2) Partners
  3) Games
  4) Activities (tabs, carousel, info)
  5) Invite (features, calculator, detail)
  6) Services
  7) Footer + Footer Modal
  8) Cookie Bar
  9) Modals (Loading / Certificate)
  10) Utilities (helpers/tools)
  ==================================== */

  /* 全站统一：满宽且居中铺满的区块工具类 */
  .fullbleed {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* 应用到常见区块，保证一致性 */
  /* 若需要为其它区块启用满宽，可在 HTML 上加 class="fullbleed" */

/* ========== 1) Banner / Carousel ========== */
/* 主banner区块-大厂级满屏贴顶样式 */
.banner-carousel-full,
.banner-carousel-topzero {
  position: relative;
  width: 100vw;
  /* 统一与活动区相同的铺满方式，避免出现整体“靠左” */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-width: 100vw;
  max-width: 100vw;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 18px 64px rgba(16,185,129,0.18), 0 8px 32px rgba(0,0,0,0.10);
  z-index: 10;
  margin-top: 0 !important;
  margin-bottom: 2.8rem !important;
  padding-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Banner主图样式，单独分离，安全放大溢出 */
 .banner-carousel-full .banner-images img,
 .banner-carousel-topzero .banner-images img {
  width: 100vw !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  border-radius: 0 0 32px 32px !important;
  display: block;
  position: absolute;
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) scale(1) !important;
  transition: opacity 0.7s cubic-bezier(.4,1.6,.6,1), transform 0.7s cubic-bezier(.4,1.6,.6,1);
  opacity: 0;
  pointer-events: none;
  /* 移除额外阴影与滤镜，避免柔化边缘导致模糊感 */
  box-shadow: none;
  filter: none;
  image-rendering: optimizeQuality;
}

.banner-images img.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  transform: translateX(-50%) scale(1) !important;
}
.banner-gradient-mask {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  z-index: 3;
  /* 减弱压暗范围与强度，避免整体“雾感” */
  background: linear-gradient(180deg, rgba(0,0,0,0.00) 72%, rgba(0,0,0,0.18) 92%, rgba(0,0,0,0.30) 100%);
  pointer-events: none;
}
/* 可选：在 body 上添加 .no-banner-mask 可完全关闭蒙层 */
body.no-banner-mask .banner-gradient-mask { display: none !important; }
.banner-overlay-content {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end; /* 底部对齐，避免文本遮挡主体画面 */
  pointer-events: none;
  will-change: transform;
  padding: 0.9rem 1rem 1.1rem 1rem; /* 更克制的内边距 */
  gap: 0.35rem;
}
.banner-overlay-content .banner-title,
.banner-overlay-content .banner-subtitle { text-align: left; align-self: flex-start; }
.banner-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: auto;
  text-align: center;
  line-height: 1.2;
}
.banner-subtitle {
  font-size: 1.35rem;
  filter: brightness(1.03);
  color: #f1f5f9;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: auto;
  text-align: center;
  line-height: 1.3;
}
.banner-cta-btn {
  /* 品牌质感按钮：统一渐变、边框与阴影 */
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: 1.2rem 4rem;
  box-shadow: 0 8px 28px rgba(16,185,129,0.28), 0 4px 14px rgba(2,6,23,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.banner-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}
.banner-cta-btn:hover::before {
  left: 100%;
}
.banner-cta-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 44px rgba(16,185,129,0.35), 0 6px 20px rgba(2,6,23,0.14);
}
.banner-cta-btn:active {
  transform: scale(0.98);
  box-shadow: 0 6px 20px rgba(16,185,129,0.25), 0 2px 8px rgba(2,6,23,0.10);
}
.banner-cta-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(16,185,129,0.25), 0 10px 32px rgba(16,185,129,0.35); }
.banner-indicators {
  position: absolute;
  left: 0; right: 0; bottom: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  z-index: 5;
  pointer-events: auto;
  background: none;
}
.banner-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(16,185,129,0.65);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(16,24,40,0.12);
  backdrop-filter: saturate(120%) blur(2px);
  cursor: pointer;
  opacity: 0.75;
}
.banner-dot:hover {
  background: rgba(255,255,255,0.7);
  border-color: #10b981;
  transform: scale(1.15);
  opacity: 0.9;
}
.banner-dot.active {
  background: linear-gradient(135deg,#10b981 0%,#34d399 100%);
  border: 2px solid #fff;
  transform: scale(1.4);
  opacity: 1;
  box-shadow: 0 4px 16px rgba(16,185,129,0.25), 0 0 0 4px rgba(16,185,129,0.15);
  animation: pulse-glow 2s ease-in-out infinite;
}
.banner-dot:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(16,185,129,0.25), 0 4px 16px rgba(16,185,129,0.25); }

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(16,185,129,0.25), 0 0 0 4px rgba(16,185,129,0.15);
  }
  50% {
    box-shadow: 0 6px 24px rgba(16,185,129,0.35), 0 0 0 8px rgba(16,185,129,0.25);
  }
}
@media (max-width: 600px) {
  .banner-carousel-full,
  .banner-carousel-topzero {
    min-height: 180px;
    max-height: 320px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
  .banner-title { font-size: 1.25rem; }
  .banner-subtitle { font-size: 0.98rem; }
  .banner-cta-btn { font-size: 1.05rem; padding: 0.7rem 2.1rem; }
  /* 移除重复定义，主样式已全局覆盖 */
}
/* Large phones: fill a bit more space for titles/buttons */
@media (min-width: 390px) and (max-width: 480px) {
  .banner .banner-title { font-size: 1.32rem; }
  .banner .banner-subtitle { font-size: 1.02rem; }
  .banner .banner-cta-btn { padding: 0.74rem 2.3rem; }
}
@media (max-width: 400px) {
  .banner-carousel-full,
  .banner-carousel-topzero { min-height: 120px; }

/* ================================
   Games Pro Enhancements – 统一到大厂水准
   - 标签指示器
   - 图片容器比例/阴影/骨架屏
   - 与活动区块风格一致
   ================================ */

/* 游戏Tabs容器：允许横向滚动并放置指示器 */
.game-tabs { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.game-tab { scroll-snap-align: center; }

/* 游戏Tabs滑动指示器 */
.game-tab-indicator {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 36px;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(16,185,129,0.22);
  transition: transform .28s cubic-bezier(.22,1,.36,1), width .28s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

/* 游戏图片容器：比例/圆角/阴影，与活动一致 */
.game-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  isolation: isolate;
}
.game-image-container::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.08) 100%);
  z-index: 2;
}

/* 游戏图片样式：铺满+入场动效，覆盖任何早期规则 */
.game-image-container > img#game-image {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  opacity: 1; transform: translateX(0) scale(1.0);
  filter: contrast(1.03) saturate(1.06);
  transition: opacity .6s ease, transform 1.0s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}

/* 视频作为主媒体时的样式，保持与图片一致 */
.game-image-container > video#game-image,
.game-image-container > video.funx-game-media {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  opacity: 1; transform: translateX(0) scale(1.0);
  filter: contrast(1.03) saturate(1.06);
  transition: opacity .6s ease, transform 1.0s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
  background: #0b1220; /* 视频首帧前避免闪白 */
}
/* Tap to Play 覆盖层美化，兼容安卓/主流内置浏览器 */
.tap-to-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(15,23,42,0.82) 60%, rgba(16,185,129,0.12) 100%);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  pointer-events: auto;
  transition: opacity 0.4s;
  opacity: 1;
}
.tap-to-play-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.tap-to-play-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tap-to-play-btn {
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: 0.9em 2.2em;
  box-shadow: 0 8px 28px rgba(16,185,129,0.18), 0 4px 14px rgba(2,6,23,0.10);
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.tap-to-play-btn:active {
  transform: scale(0.98);
}
.tap-to-play-icon {
  font-size: 2.6rem;
  color: #10b981;
  filter: drop-shadow(0 2px 8px rgba(16,185,129,0.18));
}
.tap-to-play-text {
  font-size: 1.08rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  letter-spacing: 0.5px;
  text-align: center;
}
@media (max-width: 600px) {
  .tap-to-play-content { gap: 10px; }
  .tap-to-play-btn { font-size: 1rem; padding: 0.7em 1.4em; }
  .tap-to-play-icon { font-size: 2rem; }
  .tap-to-play-text { font-size: 0.98rem; }
}

/* 大厂级：双层切换过渡层（次级图片层） */
.game-image-container .game-image-layer {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: contrast(1.03) saturate(1.06);
  will-change: opacity, transform;
  pointer-events: none;
  /* 与主图保持一致的过渡参数 */
  transition: opacity .6s ease, transform 1.2s cubic-bezier(.22,1,.36,1);
}
/* 视频进入层：与图片相同的类名，复用过渡样式 */
.game-image-container video.game-image-layer {
  object-fit: cover !important;
  background: #0b1220;
}
/* 进入与退出的动画状态（仅通过添加/移除类驱动） */
/* 水平微滑切换，避免上下位移感；支持通过 CSS 变量设置方向 */
.game-image-container .gi-enter { opacity: 0; transform: translateX(var(--gi-enter-x, 12px)) scale(1.02); }
.game-image-container .gi-enter.gi-enter-active { opacity: 1; transform: translateX(0) scale(1.0); }
.game-image-container .gi-exit { opacity: 1; transform: translateX(0) scale(1.0); }
.game-image-container .gi-exit.gi-exit-active { opacity: 0; transform: translateX(var(--gi-exit-x, -12px)) scale(1.0); }

/* 内嵌媒体控制条（声音/全屏） */
.game-media-controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 8px;
  z-index: 4; /* 高于骨架屏的 z-index:3 */
  pointer-events: auto;
}
.game-media-controls .gm-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.5);
  backdrop-filter: saturate(120%) blur(4px);
  cursor: pointer;
}
.game-media-controls .gm-btn:hover { background: rgba(0,0,0,0.65); }
.game-media-controls .gm-btn:active { background: rgba(0,0,0,0.8); }
.game-media-controls .gm-btn[aria-pressed="true"] { background: rgba(16,185,129,0.7); }

/* 移动端比例微调 */
@media (max-width: 768px) {
  .game-image-container { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); max-width: 100%; }
}

@media (max-width: 480px) {
  .game-media-controls { right: 6px; bottom: 6px; gap: 6px; }
  .game-media-controls .gm-btn { padding: 5px 8px; font-size: 13px; border-radius: 6px; }
}

/* 游戏图片骨架屏（与活动区块一致的闪动效果） */
.game-image-container.loading::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.08) 37%, rgba(255,255,255,0.02) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  z-index: 3;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

}
@media (max-width: 370px) {
  .banner-title { font-size: 1.05rem; }
  .banner-subtitle { font-size: 0.85rem; }
}
/* 全屏Banner动画-大厂感模糊背景+前景主视觉 */
.fullscreen-banner-bg {
  position: absolute;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 1;
  /* 动态由 JS 设置为当前轮播图（PNG 优先，WEBP 兜底） */
  background: radial-gradient(1200px 600px at 50% 20%, rgba(16,185,129,0.15), rgba(2,6,23,0.6)) center/cover no-repeat;
  filter: blur(18px) brightness(0.7) saturate(1.2);
  transition: opacity 1.2s;
}
.fullscreen-banner.shrink .fullscreen-banner-bg {
  opacity: 0.2;
}
.fullscreen-banner-foreground-img {
  width: 82vw;
  max-width: 420px;
  height: auto;
  border-radius: 1.2em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin: 0 auto 1.2em;
  display: block;
  position: relative;
  z-index: 2;
  object-fit: cover;
  object-position: center;
  background: #222;
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1), opacity 0.8s;
  image-rendering: optimizeQuality;
  -ms-interpolation-mode: bicubic;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
}
.fullscreen-banner.shrink .fullscreen-banner-foreground-img {
  transform: scale(0.18, 0.12) translateY(-180vh);
  opacity: 0.2;
}
/* 全屏Banner动画样式 */
.fullscreen-banner {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
  opacity: 1;
}
.fullscreen-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.fullscreen-banner.images-hide .fullscreen-banner-bg,
.fullscreen-banner.images-hide .fullscreen-banner-foreground-img,
.fullscreen-banner.images-hide .fullscreen-banner-img {
  opacity: 0 !important;
}
/* 文字绝不在淡出阶段变暗/消失（保障“红色框两行字不要淡出”） */
.fullscreen-banner.images-hide .fullscreen-banner-content,
.fullscreen-banner.images-hide .banner-title,
.fullscreen-banner.images-hide .banner-subtitle { opacity: 1 !important; visibility: visible !important; }
.fullscreen-banner-img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1), opacity 0.8s;
  opacity: 1;
}
.fullscreen-banner.shrink .fullscreen-banner-img {
  transform: scale(0.18, 0.12) translateY(-180vh);
  opacity: 0.2;
}
.fullscreen-banner.shrink .fullscreen-banner-content { opacity: 1; }
.fullscreen-banner-content {
  position: relative;
  z-index: 3; /* 提升层级，确保盖在前景图之上 */
  color: #fff;
  text-align: center;
  margin-top: 0;
  animation: bannerContentFadeIn 1.2s;
}
/* 高级感：柔和玻璃拟态底板，不影响交互 */
/* 默认开启，如需关闭在 body 或根容器加 .no-glass */
.fullscreen-banner-content::before {
  content: '';
  position: absolute;
  inset: -10px -14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(2,6,23,0.28) 0%, rgba(2,6,23,0.22) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  pointer-events: none;
}

/* 一键关闭玻璃底板 */
.no-glass .fullscreen-banner-content::before { display: none !important; }
@keyframes bannerContentFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.fullscreen-banner .banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.6em;
  letter-spacing: 0.04em;
  /* 关键覆盖：取消普通 Banner 的渐变透明文字，使用纯白保证可读性 */
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.65);
}
.fullscreen-banner .banner-subtitle {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
  /* 提升对比度与清晰度 */
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  text-shadow: 0 2px 5px rgba(0,0,0,0.55);
}
.fullscreen-banner .banner-date {
  font-size: 1rem;
  margin-bottom: 1.2em;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.fullscreen-banner .banner-cta {
  font-size: 1.12rem;
  padding: 0.78em 2.3em;
  border-radius: 2em;
  background: linear-gradient(90deg,#10b981,#34d399);
  color: #fff;
  border: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(16,185,129,0.18);
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 2px 6px rgba(0,0,0,0.75), 0 10px 24px rgba(0,0,0,0.45);
  -webkit-text-stroke: 0.6px rgba(0,0,0,0.45);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.2;
}
.fullscreen-banner .banner-cta:hover {
  background: linear-gradient(90deg,#34d399,#10b981);
  box-shadow: 0 6px 22px rgba(16,185,129,0.35), inset 0 0 0 1px rgba(255,255,255,.2);
}
.fullscreen-banner .banner-cta:active {
  transform: translateY(1px);
}
/* ================================
   游戏区域Logo样式升级 - 与活动区域保持一致
   ================================ */

/* 游戏区域Logo容器升级 */
.game-providers .logo-wrap {
  position: relative !important;
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.02) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  cursor: pointer !important;
}

.game-providers .logo-wrap:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(16,185,129,0.3) !important;
  box-shadow: 0 4px 20px rgba(16,185,129,0.15), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

/* 游戏区域Logo图片统一 */
.game-providers .logo-wrap img,
.game-providers .logo-wrap .logo-effect-img {
  width: 44px !important;
  height: 44px !important;
  position: absolute !important;
  left: 2px !important;
  top: 2px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
}

/* 游戏区域黑白/彩色效果统一 */
.game-providers .logo-wrap .logo-bw {
  opacity: 1 !important;
  z-index: 1 !important;
  filter: grayscale(1) brightness(0.9) contrast(0.95) !important;
}

.game-providers .logo-wrap .logo-color {
  opacity: 0 !important;
  z-index: 2 !important;
  filter: brightness(1.1) contrast(1.1) saturate(1.2) !important;
}

.game-providers .logo-wrap:hover .logo-bw {
  opacity: 0 !important;
}

.game-providers .logo-wrap:hover .logo-color {
  opacity: 1 !important;
  filter: brightness(1.2) contrast(1.15) saturate(1.3) drop-shadow(0 2px 8px rgba(0,0,0,0.2)) !important;
}

/* 游戏区域活跃状态 */
.game-providers .logo-wrap.active {
  background: rgba(16,185,129,0.1) !important;
  border-color: rgba(16,185,129,0.4) !important;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.game-providers .logo-wrap.active .logo-bw {
  opacity: 0 !important;
}

.game-providers .logo-wrap.active .logo-color {
  opacity: 1 !important;
}
/* 热门游戏logo区块美化为大厂水准，每排4个，响应式居中，专业特效 */
.game-providers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 6px;
  justify-items: center;
  align-items: center;
  padding: 18px 0 0 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 8px;
  min-height: 80px;
  position: relative;
}

/* 游戏区域整体包装器美化 - 与活动区域保持一致 */
.game-providers::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -12px;
  right: -12px;
  bottom: -8px;
  background: linear-gradient(135deg, rgba(16,185,129,0.02) 0%, rgba(52,211,153,0.01) 100%);
  border-radius: 12px;
  border: 1px solid rgba(16,185,129,0.05);
  z-index: -1;
}

/* 游戏区域移动端适配 */
@media (max-width: 600px) {
  .game-providers {
    grid-template-columns: repeat(4, 1fr);
    gap: 0 4px;
    padding: 12px 0 0 0;
    min-height: 60px;
  }
  
  .game-providers .logo-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important;
  }
  
  .game-providers .logo-wrap img,
  .game-providers .logo-wrap .logo-effect-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 4px !important;
  }
  
  .game-providers .logo-wrap:hover {
    transform: translateY(-1px) scale(1.03) !important;
  }
}
/* ================================
   统一Logo效果图片样式 - 大厂专业水准
   ================================ */

.logo-effect-img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  border-radius: 6px;
  position: absolute;
  left: 2px;
  top: 2px;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}

/* 统一黑白/彩色图片定位和效果 */
.logo-bw {
  opacity: 1;
  z-index: 1;
  position: absolute;
  left: 2px; 
  top: 2px;
  filter: grayscale(1) brightness(0.9) contrast(0.95);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.logo-color {
  opacity: 0;
  z-index: 2;
  position: absolute;
  left: 2px; 
  top: 2px;
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* 统一悬停效果 */
.logo-bw:hover,
.logo-wrap:hover .logo-bw {
  opacity: 0;
}

.logo-bw:hover + .logo-color,
.logo-color:hover,
.logo-wrap:hover .logo-color {
  opacity: 1;
  filter: brightness(1.2) contrast(1.15) saturate(1.3) drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.game-providers {
  position: relative;
}

.game-providers .logo-effect-img {
  margin-bottom: 0;
}

/* 游戏logo黑白和彩色切换特效 */
.game-provider.logo-effect {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.game-provider.logo-effect img.logo-bw {
  display: block;
  filter: grayscale(1) brightness(0.95);
  transition: opacity 0.3s;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.game-provider.logo-effect img.logo-color {
  display: block;
  opacity: 0;
  transition: opacity 0.3s;
  position: relative;
  z-index: 2;
}
.game-provider.logo-effect:hover img.logo-bw,
.game-provider.logo-effect.active img.logo-bw {
  opacity: 0;
}
.game-provider.logo-effect:hover img.logo-color,
.game-provider.logo-effect.active img.logo-color {
  opacity: 1;
}
.game-provider.logo-effect img {
  width: 48px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* 热门游戏栏目图标美化 */
.footer-quicklinks-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.7rem 1.2rem !important;
  margin-top: 1.2rem !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
}
.footer-quicklink {
  color: #10b981 !important;
  font-weight: 600 !important;
  background: rgba(16,185,129,0.07) !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.7rem !important;
  text-align: center !important;
  display: block !important;
  text-decoration: none !important;
  font-size: 0.93rem !important;
}
.footer-quicklink:hover {
  background: #10b981 !important;
  color: #fff !important;
}
/* ====================================
/* 合作伙伴区块-标题描述美化 */
.partners-header-block .section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  text-align: center;
}
.partners-header-block .section-header-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light) 0%, var(--primary-green) 50%, var(--border-light) 100%);
  max-width: 100px;
  min-width: 32px;
  margin: 0 1rem;
  border-radius: 1px;
  opacity: 1;
}

.partners-header-block .section-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  margin: 0 0.5rem;
  white-space: nowrap;
}

/* 横线样式与其他区块完全一致 */
.partners-header-block .section-header-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light) 0%, var(--primary-green) 50%, var(--border-light) 100%);
  max-width: 100px;
  margin: 0 1rem;
  border-radius: 1px;
}

.partners-section {
  margin-top: 3.2rem;
  padding-top: 0.5rem;
  background: #f8fdfa;
  box-shadow: 0 6px 32px rgba(16,185,129,0.06);
}
.partners-header-block {
  padding: 0 1.5rem 0.5rem 1.5rem;
  text-align: left;
}
/* ========== 2) Partners ========== */
/* 热门活动区块-内容信息美化 */
.activity-info-section {
  text-align: left;
}
/* 使用统一的 activity-info 卡片样式，详见下方去重后的定义 */
.activity-info .activity-title {
  font-size: 1.13rem;
  font-weight: 700;
  color: #22223b;
  margin-bottom: 0.3rem;
}
.activity-info .activity-percentage {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  margin-left: 0.3em;
  background: var(--gradient-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.activity-info .activity-description {
  color: #64748b;
  font-size: 1.01rem;
  margin-bottom: 1.1rem;
  line-height: 1.7;
}

/* ========== 3) Games ========== */
/* feature-card 大厂级美化 */
.fc-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin-bottom: 0.05rem;
  flex-wrap: wrap; /* allow title/badge to wrap onto next line on small screens */
}
.feature-title {
  font-size: 1.01rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
/* 删除顶部重复定义，保留下方主定义 */
.game-title-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  /* 无背景，仅SVG */
}
.feature-icon i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}
.game-title-icon.purple {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
}
.fi-yellow {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}
.feature-badge {
  padding: 0.18rem 0.7rem;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(16,185,129,0.06);
  margin-left: auto;
  transition: background var(--transition), color var(--transition);
}
.fb-green {
  background: rgba(16,185,129,0.09);
  color: #10b981;
}
.fb-blue {
  background: rgba(59,130,246,0.09);
  color: #3b82f6;
}
.fb-purple {
  background: rgba(168,85,247,0.09);
  color: #a855f7;
}
.fb-yellow {
  background: rgba(245,158,11,0.09);
  color: #f59e0b;
}
.fc-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}
.fc-bar-green {
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
}
.fc-bar-blue {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
}
.fc-bar-purple {
  background: linear-gradient(90deg, #a855f7 0%, #c084fc 50%, #a855f7 100%);
}
.fc-bar-yellow {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
}
@media (max-width: 700px) {
  .feature-card {
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
  }
}

:root {

/* Mobile-only CTA under activity tabs */
.activity-inline-cta-mobile {
  display: none;
  text-align: center;
  margin: 0.25rem 0 0.5rem;
  /* fade-in on first view */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.activity-inline-cta-mobile.is-visible {
  opacity: 1;
  transform: none;
}
.activity-inline-cta-btn { border-radius: 999px; }
@media (max-width: 768px) {
  .activity-inline-cta-mobile { display: block; }
  .activity-inline-cta-btn.funx-btn--sm { padding: 0.5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-inline-cta-mobile {
    transition: none;
    transform: none;
  }
}
  /* 主色调 */
  --primary-green: #10b981;
  --primary-green-light: #34d399;
  --primary-green-dark: #059669;
  --primary-blue: #3b82f6;
  
  /* 辅助色彩 */
  --accent-teal: #14b8a6;
  --accent-cyan: #06b6d4;
  --accent-slate: #475569;
  
  /* 背景色彩 */
  --bg-primary: #f0fdfa;
  --bg-secondary: #ecfdf5;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --bg-dark: #0f172a;
  
  /* 文字色彩 */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  /* 边框色彩 */
  --border-light: #e2e8f0;
  --border-green: rgba(16, 185, 129, 0.15);
  
  /* 字体 */
  /* 加入孟加拉语更友好的字体栈 */
  --font-base: 'Inter', 'Noto Sans Bengali', 'Hind Siliguri', 'Baloo Da 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  --font-display: 'Poppins', var(--font-base);
  
  /* 尺寸 */
  --navbar-height: 64px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-green: 0 4px 12px rgba(16, 185, 129, 0.15);
  
  /* 动画 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
  --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #20d9d2 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --gradient-slate: linear-gradient(135deg, #475569 0%, #64748b 100%);
  /* 容器与节奏 */
  --container-max: 1120px;
  --gutter: 16px;
  --section-space: 2rem;
}

/* ====================================
   2. 基础重置样式
   ==================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 防止个别子元素误用 100vw 导致横向滚动 */
}

/* 统一版心容器（页面壳） */
.page-shell {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-shell > section { margin-top: var(--section-space); margin-bottom: var(--section-space); }
/* Remove extra gap below last section to avoid blank space above footer */
.page-shell > section:last-of-type { margin-bottom: 0; }

@media (max-width: 600px) {
  :root { --gutter: 2px; --section-space: 1.4rem; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-fast);
}

button:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* ====================================
   4a. FunX 按钮系统（大厂风格统一）
   - 仅提供通用基类与尺寸，默认无背景，避免覆盖现有 .banner-cta-btn
   - 变体：--primary / --secondary / --ghost
   ==================================== */
.funx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.66rem 1.1rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.funx-btn i { font-size: 1em; }
.funx-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(16,185,129,0.22); }
.funx-btn:active { transform: translateY(0); }
.funx-btn[disabled], .funx-btn.disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.1); }

/* 尺寸 */
.funx-btn--sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.funx-btn--md { padding: 0.66rem 1.1rem; font-size: 1rem; }
.funx-btn--lg { padding: 0.85rem 1.4rem; font-size: 1.05rem; }

/* 语义变体（默认不加，避免影响 .banner-cta-btn） */
.funx-btn--primary {
  color: #fff;
  background: var(--gradient-primary);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 8px 22px rgba(16,185,129,0.22);
}
.funx-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(16,185,129,0.28); }
.funx-btn--primary:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(16,185,129,0.18); }

.funx-btn--secondary {
  color: #065f46;
  background: linear-gradient(135deg, rgba(236,253,245,0.95), rgba(209,250,229,0.95));
  border-color: rgba(16,185,129,0.25);
  box-shadow: 0 4px 14px rgba(16,185,129,0.15);
}
.funx-btn--secondary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16,185,129,0.18); }

.funx-btn--ghost {
  color: var(--primary-green);
  background: rgba(255,255,255,0.85);
  border-color: rgba(16,185,129,0.22);
}
.funx-btn--ghost:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

/* 合并规则：当 banner CTA 同时使用 funx-btn 变体时，保留原有更强的动效与阴影 */
.banner-cta-btn.funx-btn--primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 44px rgba(16,185,129,0.35), 0 6px 20px rgba(2,6,23,0.14);
}
.banner-cta-btn.funx-btn--primary:active {
  transform: scale(0.98);
  box-shadow: 0 6px 20px rgba(16,185,129,0.25), 0 2px 8px rgba(2,6,23,0.10);
}
.banner-cta-btn.funx-btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.25), 0 10px 32px rgba(16,185,129,0.35);
}

/* 还原 banner-cta-btn 原有边框，避免被 funx-btn 的默认边框覆盖 */
.banner-cta-btn.funx-btn { border: 1px solid rgba(255,255,255,0.14); }

/* ====================================
   3. 加载动画
   ==================================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.1rem;
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Loading modal overlay */
.loading-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  backdrop-filter: blur(3px);
  display: none;
}

.is-hidden { display: none !important; }
.text-primary { color: var(--primary-green); }

.loading-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loading-subtext {
  font-size: 0.97rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.1px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ====================================
   4. 导航栏样式
   ==================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  background: linear-gradient(135deg, rgba(16,185,129,0.88) 0%, rgba(52,211,153,0.88) 50%, rgba(110,231,183,0.88) 100%);
  box-shadow: var(--shadow-green);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  z-index: 1000;
  transition: var(--transition);
}

/* 滚动收缩状态：高度与内容轻微缩小，保持大厂级克制动效 */
.navbar.shrink { height: 52px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.navbar.shrink .navbar-logo { height: 30px; }
.navbar.shrink .nav-link,
.navbar.shrink .navbar-lang { padding: 0.4rem 0.8rem; }

.navbar-container {
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem;
}

.nav-link,
.navbar-lang {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-green);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover,
.navbar-lang:hover {
  background: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.navbar-menu .nav-link:hover i { filter: drop-shadow(0 2px 6px rgba(16,185,129,0.35)); }

.navbar-right {
  display: flex;
  align-items: center;
}

/* 下载按钮更美观的样式 */
.nav-download {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(15, 118, 110, 0.15);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-download i { font-size: 0.95rem; }
.nav-download span { font-weight: 700; letter-spacing: 0.2px; }
.navbar-menu { gap: 0.6rem; }
.nav-android { background: linear-gradient(135deg, rgba(236,253,245,0.9), rgba(209,250,229,0.9)); color: #065f46; }
.nav-ios { background: linear-gradient(135deg, rgba(240,249,255,0.9), rgba(219,234,254,0.9)); color: #0c4a6e; }
.nav-download:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(2,132,199,0.18); }
.nav-download:active { transform: translateY(0); }

@media (max-width: 480px) {
  .navbar-menu { gap: 0.4rem; }
  .nav-download { padding: 0.4rem 0.7rem; }
}

/* ====================================
   5. Banner轮播样式
   ==================================== */
.banner {
  margin-top: var(--navbar-height);
  width: 100%;
  position: relative;
}

.banner-carousel {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.banner-images {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  image-rendering: optimizeQuality;
  -ms-interpolation-mode: bicubic;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.banner-image.active {
  opacity: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.banner-content {
  text-align: center;
  color: var(--text-white);
  max-width: 90%;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Missing selector fixed: styles below belong to .banner-subtitle */
.banner-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-green-light);
}

.banner-date {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.banner-cta {
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}

.banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.banner-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

/* Scope small dots to in-page banner only to avoid conflicting with fullscreen banner styles */
.banner .banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner .banner-dot.active {
  background: var(--primary-green);
  transform: scale(1.2);
}

/* ====================================
   6. 通用区块样式
   ==================================== */
section {

  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem; /* 副标题移除后收紧底部间距 */
  text-align: center;
}

.section-header-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light) 0%, var(--primary-green) 50%, var(--border-light) 100%);
  max-width: 100px;
  margin: 0 1rem;
  border-radius: 1px;
  opacity: 0.9;
  box-shadow: 0 0 0.5px rgba(16,185,129,0.4), 0 0 6px rgba(16,185,129,0.15) inset;
}

.section-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  margin: 0 0.5rem;
  white-space: nowrap;
  will-change: opacity, transform;
}

/* Subtle entrance animation for section titles (reduced motion respected) */
@media (prefers-reduced-motion: no-preference) {
  .section-header-title { animation: sh-title-in .5s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes sh-title-in {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1.0); }
}

.section-header-sub {
  display: none !important;
}
.section-header + .section-header-sub { display: block !important; margin-top: 6px; color: var(--funx-subtitle-color, #475569); }

/* 活动小logo：按需求隐藏 */
#activity-logos { display: none !important; }

/* 服务/优势 连续版心布局 */
.advantages-section.page-section { background: var(--bg-white); }
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 800px) {
  .advantages-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  position: relative;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}
.feature-description { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }

/* 强制服务指标为2×2 */
.services-metrics { display: grid; grid-template-columns: repeat(2, 1fr) !important; gap: 0.9rem; }

/* ====================================
   7. 合作伙伴滚动样式
   ==================================== */
.partners-section {
  background: var(--bg-white);
}

.partner-scroll-container {
  max-width: 1200px;
  margin: 0 auto;
}

.partner-scroll-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  touch-action: pan-y;
  /* 关键修复：全站 RTL 时强制本区块使用 LTR，避免 Flex 排列与动画方向被反转 */
  direction: ltr;
}

/* 两侧渐隐遮罩，营造无缝滚动的高级感 */
.partner-scroll-wrapper::before,
.partner-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 2;
}
.partner-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
.partner-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

.partner-scroll-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transform: translateZ(0);
  /* 关键修复：确保轨道同样为 LTR 排列，配合 translateX 负向动画实现无缝 */
  direction: ltr;
}

/* 仅当 wrapper 就绪后再启动动画，避免首轮加载时出现空白 */
.partner-scroll-wrapper.ready .partner-scroll-track {
  animation: partner-scroll 20s linear infinite;
}

/* 悬停/触摸时暂停滚动 */
.partner-scroll-wrapper:hover .partner-scroll-track,
.partner-scroll-wrapper.paused .partner-scroll-track { animation-play-state: paused; }

.partner-card {
  width: 128px;
  height: auto;
  min-height: 128px;
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,251,255,0.95));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 内部纵向布局：Logo + 品牌名 */
.partner-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0.25rem;
}

.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  flex: 1 1 auto;
}

.partner-card img {
  display: block;
  width: auto;
  height: auto;
  /* 防止极端情况下高度/宽度塌陷导致不可见 */
  min-width: 40px;
  min-height: 24px;
  max-width: 94%;
  max-height: 78%;
  object-fit: contain;
  /* 尽量避免滤镜导致的边缘软化 */
  filter: none;
  /* 提示浏览器做更清晰的采样与独立合成图层 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: var(--transition);
}

.partner-card:hover img {
  transform: scale(1.02);
}

.partner-card-name {
  font-size: 11px;
  line-height: 1;
  color: var(--text-600);
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.partner-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #10b981);
  opacity: 0.9;
  margin-top: -2px;
}

/* 骨架闪烁占位 */
.partner-card.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240,242,255,0.6) 0%, rgba(255,255,255,0.8) 50%, rgba(240,242,255,0.6) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.partner-card.is-loading .partner
.partner-card.is-loading .partner-card-name { opacity: 0; }

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

@keyframes partner-scroll {
  0% { transform: translate3d(0, 0, 0); }
  /* 默认使用 -50%，若 JS 设置了 --partner-shift，则按像素精确滚动 */
  100% { transform: translate3d(var(--partner-shift, -50%), 0, 0); }
}

/* Mobile fine-tuning for partner cards */
@media (max-width: 480px) {
  .partner-scroll-track { gap: 0.5rem; }
  .partner-card { width: 80px; height: auto; min-height: 72px; padding: 0.3rem; }
  .partner-card-name { font-size: 10px; }
}
@media (max-width: 360px) {
  .partner-card { width: 88px; height: auto; min-height: 88px; padding: 0.25rem; }
  .partner-card-name { font-size: 9.5px; }
}

/* 尊重系统的“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  .partner-scroll-track { animation: none !important; }
}

/* Prevent image dragging on key visuals */
.fullscreen-banner-foreground-img,
#game-image,
.partner-card img,
.logo-effect-img {
  -webkit-user-drag: none;
  user-select: none;
}

/* 底部18+圆形图标着色 */
.footer-icon-blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border: 1px solid rgba(59,130,246,0.35);
}

/* 统一不同区块的细节留白（更克制一致） */
@media (max-width: 600px) {
  :root { --section-space: 1.2rem; }
}

/* 本地服务小logo图标对齐修正 */
.feature-icon { display: flex; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; }
.feature-icon i { line-height: 1; vertical-align: middle; transform: translateY(0); }

/* Dev-only safe area guides (enable by adding .dev-guides on body) */
body.dev-guides .banner-images::after,
body.dev-guides #activity-carousel::before,
body.dev-guides .game-image-container::before {
  content: '';
  position: absolute; inset: 10% 5% 10% 5%;
  border: 1.5px dashed rgba(16,185,129,0.6);
  border-radius: 12px;
  pointer-events: none;
  z-index: 9;
}

/* ====================================
   8. 游戏区域样式
   ==================================== */
.games-section {
  /* 修复在有内边距容器内设置 100vw 导致的横向溢出 */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ====================================
   Invite 区块扁平化与留白收紧（视觉美化）
   - 尽量不改DOM，仅通过样式消除“套娃卡片感”
   ==================================== */
.invite-section.funx-card {
  background: #fff;
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 4px 14px rgba(2,6,23,0.04);
}
@media (max-width: 600px) {
  .invite-section.funx-card { padding: 0.7rem; }
}

/* 移除内层多重卡片外观，仅保留内容层次 */
.invite-main-card-clean,
.invite-feature-unified-bg-clean,
.invite-detail-inner-block-clean,
.player-showcase-card.funx-card,
.model-desc-card.funx-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 统一“功能点”模块为单层，柔化留白 */
.invite-feature-unified-bg-clean { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.invite-feature-item-clean { border: 1px solid rgba(2,6,23,0.06) !important; box-shadow: 0 6px 18px rgba(2,6,23,0.05) !important; padding: 0.7rem 0.6rem !important; border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important; }
.invite-feature-icon-clean {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.6) 100%) !important;
  border: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 8px 22px rgba(2,6,23,0.06);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: saturate(140%) blur(6px); -webkit-backdrop-filter: saturate(140%) blur(6px);
  margin-bottom: 0.4rem !important;
}
.invite-feature-icon-clean i { font-size: 20px; color: #065f46; }
.invite-feature-title-clean { margin-bottom: 0.25rem; }
.invite-feature-list-clean li { margin: 0.18rem 0 !important; }

/* 装饰元素与多余分隔弱化 */
.invite-bg-left,
.invite-bg-right,
.shimmer-bar,
.shimmer-bar-clean { display: none !important; }
.invite-section .funx-card { margin-bottom: 0.4rem !important; }
.invite-detail-inner-block { padding: 0.5rem 0 !important; border: 0 !important; }

/* ====================================
   Services 本地服务区：网格对齐与等高卡片
   ==================================== */
.services-section.funx-card {
  margin: 0 !important;
  padding: 1rem !important;
  border-radius: 16px !important;
}
.services-metrics {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.8rem !important;
  align-items: stretch !important;
}
@media (min-width: 900px) {
  .services-metrics { grid-template-columns: repeat(4, 1fr) !important; }
}
.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  padding: 1rem !important;
  gap: 0.15rem;
}

/* 热门游戏卡片大厂级美化 */
.game-content-card {
  background: linear-gradient(120deg, #f0fdfa 60%, #e0e7ef 100%);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(16,185,129,0.10), 0 1px 4px rgba(0,0,0,0.03);
  padding: 1.5rem 1.1rem 1.1rem 1.1rem;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
  transition: box-shadow 0.22s;
  gap: 1.2rem;
  min-height: 120px;  /* Added uniform min-height */
}
.game-content-card:hover {
  box-shadow: 0 8px 32px rgba(16,185,129,0.13), 0 2px 12px rgba(59,130,246,0.08);
}
.game-title-desc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  max-width: 120px;
  flex-shrink: 0;
  gap: 0.7rem;
}
.game-title-icon {
display: none !important;
}
.mega-title {
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(90deg,#10b981 0%,#34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.1em 0;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(16,185,129,0.08);
}
.game-desc-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.mega-desc, .game-description {
  color: #166534;
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.2em 0;
  line-height: 1.9;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 0.4em 1.1em 0.4em 0.7em;
  box-shadow: 0 1px 4px rgba(16,185,129,0.04);
  word-break: break-all;
  transition: background 0.2s;
}
.mega-desc:hover, .game-description:hover {
  background: #f0fdfa;
}
@media (max-width: 700px) {
  .game-content-card {
    padding: 1rem 0.7rem 1rem 0.7rem;
    gap: 0.7rem;
  }
  .game-title-icon {
    display: none !important;
  }
  .mega-title {
    font-size: 1.08rem;
  }
  .mega-desc, .game-description {
    font-size: 0.97rem;
    padding: 0.2em 0.6em 0.2em 0.3em;
  }
}
@media (max-width: 500px) {
  .game-content-card {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    border-radius: 13px;
    gap: 0.3rem;
  }
  .game-title-icon {
    display: none !important;
  }
  .mega-title {
    font-size: 0.95rem;
  }
  .mega-desc, .game-description {
    font-size: 0.89rem;
    padding: 0.1em 0.3em 0.1em 0.1em;
  }

.game-image-container img {
  height: auto;
  display: block;
  border-radius: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.game-image-container:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(16,185,129,0.16), 0 4px 12px rgba(0,0,0,0.08);
}

.game-info-card {
  background: linear-gradient(120deg, #f0fdfa 60%, #e0e7ef 100%);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(16,185,129,0.10), 0 1px 4px rgba(0,0,0,0.03);
  padding: 1.5rem 1.1rem 1.1rem 1.1rem;
  border: 1.5px solid #d1fae5;
  position: relative;
  overflow: hidden;
  min-height: 120px;  /* Added uniform min-height */
}
.game-info-card:before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg,#10b981 0%,#34d399 100%);
  border-radius: 18px 18px 0 0;
}

.game-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* 可换行，便于居中 */
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  justify-content: center; /* 居中 */
  align-items: center;
}

.game-tab {
  flex: 0 0 auto; /* 自适应宽度，便于整体居中 */
  min-width: 92px;
  padding: 0.65rem 0.2rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #10b981;
  background: #f0fdfa;
  border: 1.5px solid #d1fae5;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(16,185,129,0.04);
  letter-spacing: 0.5px;
  margin: 0;
}

/* 小屏下标签双行省略，提升可读性与可点面积 */
@media (max-width: 380px) {
  .game-tabs { row-gap: 0.5rem; }
  .game-tab {
    min-width: 86px;
    max-width: 44vw;
    padding: 0.56rem 0.4rem;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: normal;
    display: -webkit-box;
  /* Standard property for line clamp where supported */
  line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 小屏换行时隐藏滑动指示器避免覆盖 */
  .game-tab-indicator { display: none; }
}

.game-tab.active,
.game-tab:hover {
  color: #fff;
  background: linear-gradient(90deg,#10b981 0%,#34d399 100%);
  border-color: #10b981;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 20px rgba(16,185,129,0.18);
  filter: brightness(1.08) saturate(1.2);
}

.game-content {
  animation: fadeIn 0.3s ease;
  padding-top: 0.5rem;
}

.game-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #10b981;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: flex-start;
}
/* Cookie声明条底部间距，避免遮挡内容（独立选择器） */
#cookie-bar {
  margin-bottom: 10px;
}
.game-title:before {
  content: '🎮';
  font-size: 1.3rem;
  margin-right: 0.2rem;
}

.game-description {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg,#f0fdfa 0%,#f8fafc 100%);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 500;
}

.game-link-box {
  /* 玻璃态胶囊容器 */
  background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.52) 100%);
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
  position: relative;
  white-space: normal;
  overflow: hidden;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .game-link-box { background: #ecfdf5; border-color: rgba(16,185,129,0.12); }
}

.game-link-box:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.12); transform: translateY(-1px); }
.game-link-box:active { transform: translateY(0); }
.game-link-box:focus-within { outline: 2px solid rgba(34,211,238,0.55); outline-offset: 2px; }
/* 在减少动态时，移除轻微位移，避免晕动 */
@media (prefers-reduced-motion: reduce) {
  .game-link-box { transition: box-shadow var(--transition-fast), background var(--transition-fast); }
  .game-link-box:hover, .game-link-box:active { transform: none; }
}

/* Mobile: center the URL pill and place description below it */
@media (max-width: 768px) {
  .game-link-box { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .game-link-desc { display: block; width: 100%; text-align: center; }
}

/* hover 效果在上方统一 */

.game-link {
  color: #065f46;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(2, 132, 199, 0.12);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  word-break: break-word;
  overflow-wrap: anywhere;
  margin-right: 0.2em;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  max-width: 100%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.game-link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-size: 1em 1em;
  background-position: center;
  /* 使用内联 SVG，跟随文字颜色（currentColor） */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%2010V8a5%205%200%200110%200v2%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%2214%22%20height%3D%2210%22%20rx%3D%222%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22/%3E%3C/svg%3E");
}
.game-link:hover {
  color: #064e3b;
  background: #ffffff;
  border-color: rgba(16,185,129,0.25);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2,132,199,0.18);
}
.game-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(34,211,238,0.65), 0 8px 20px rgba(2,132,199,0.18);
}
@media (prefers-reduced-motion: reduce) {
  .game-link:hover { transform: none; }
}

.game-link-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 600;
  margin-top: 0;
  display: inline-block;
  vertical-align: middle;
  padding-left: 0.2em;
  letter-spacing: 0.02em;
  text-shadow: none;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}
@media (prefers-reduced-motion: reduce) {
  .game-link-box, .game-link { transition: none; transform: none; }
}

.game-providers {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.7rem;
}

.game-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: #f0fdfa;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  box-shadow: 0 1px 4px rgba(16,185,129,0.04);
  min-width: 70px;
}

/* ========== 4) Activities (tabs, carousel, info) ========== */
.activities-header-block {
  padding: 0 0 0.25rem 0; /* 收紧与内容的垂直距离 */
  text-align: left;
}

.activities-section {
  background: var(--bg-white);
  /* 全宽铺满，消除两侧白边（仅作用于该区块） */
  position: relative;
  width: 100vw;
  max-width: 100vw;
  /* 用 calc(50% - 50vw) 居中铺满，避免出现“整体靠左”的视觉偏差 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.activities-container {
  /* 与页面主内容容器对齐，使活动图片宽度与上方视频一致 */
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto; /* 居中，避免整体“靠左” */
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  /* 两行布局：第一行 图片 + 右侧内容；第二行 仅左侧为 Tab，右侧留空，以保证右侧内容仅与图片同高 */
  grid-template-areas:
    "carousel info"
    "tabs     .";
  grid-auto-rows: auto;
  column-gap: 0.75rem; /* 收紧列间距，减少“白边”感 */
  row-gap: 0.5rem;
  align-items: stretch; /* 让右侧内容撑满与图片一致的高度 */
}

/* 活动轮播图片容器 - 大厂级视觉：比例/圆角/阴影/压暗蒙层 */
#activity-carousel {
  grid-area: carousel;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7; /* 拉长高度，视觉更满 */
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); /* 占位底色 */
  isolation: isolate; /* 分层确保蒙层不影响子元素层级 */
}

/* 更强覆盖：确保图片完全铺满，不留白边 */
#activity-carousel img.activity-carousel-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  aspect-ratio: auto !important;
}

/* 左右切换按钮 */
#activity-carousel .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
  opacity: 0.92;
}
#activity-carousel .carousel-nav:hover { background: rgba(0,0,0,0.55); transform: translateY(-50%) scale(1.04); }
#activity-carousel .carousel-nav:active { transform: translateY(-50%) scale(0.98); }
#activity-carousel .carousel-prev { left: 8px; }
#activity-carousel .carousel-next { right: 8px; }
@media (max-width: 420px) {
  #activity-carousel .carousel-nav { width: 32px; height: 32px; }
  #activity-carousel .carousel-prev { left: 6px; }
  #activity-carousel .carousel-next { right: 6px; }
}

/* 轻微压暗与四周晕影，突出图片主体 */
#activity-carousel::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 60%),
  linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.14) 100%);
  z-index: 2;
}

/* 轮播图片 - 覆盖铺满，淡入缩放动效 */
img.activity-carousel-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.04);
  /* 轻微提升层次感，与游戏主图风格一致 */
  filter: contrast(1.03) saturate(1.06);
  transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
  z-index: 1;
}
img.activity-carousel-img.active { opacity: 1; transform: scale(1); z-index: 1; }
/* Tabs 放在第二行，仅占左列 */
#activity-tabs { grid-area: tabs; }
.activity-image-tabs-block { display: contents; }

/* 右侧信息区占据右列两行，并与图片同高 */
.activity-info-section { grid-area: info; align-self: stretch; }
.activity-info-section .activity-info.funx-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* 活动Tab的高端选中态与焦点环 */
.activity-tabs .activity-tab[aria-selected="true"],
.activity-tabs button[aria-selected="true"] {
  color: #0f5132;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.34);
  box-shadow: 0 3px 10px rgba(16,185,129,0.16);
}
.activity-tabs .activity-tab:focus-visible,
.activity-tabs button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,0.22); }

/* 游戏Tab的选中态与焦点环（与活动Tab保持一致的可见性） */
.game-tabs .game-tab[aria-selected="true"],
.game-tabs button[aria-selected="true"] {
  color: #0f5132;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.34);
  box-shadow: 0 3px 10px rgba(16,185,129,0.16);
}
.game-tabs .game-tab:focus-visible,
.game-tabs button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,0.22); }

/* 降低动画以兼容“减少动态效果”偏好 */
@media (prefers-reduced-motion: reduce) {
  .banner-cta-btn,
  .banner-dot,
  img.activity-carousel-img,
  .fullscreen-banner-content,
  .game-image-container > img#game-image,
  .game-image-container .game-image-layer,
  .game-image-container:hover img { transition: none !important; animation: none !important; transform: none !important; }
}

/* 移动端比例微调，提供更高的主体占比 */
@media (max-width: 768px) {
  #activity-carousel { aspect-ratio: 9 / 6; border-radius: var(--radius-lg); }
  /* 移动端保持与主内容相同的左右留白，使宽度与上方视频一致 */
  .activities-section { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .activities-container { 
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
    gap: 0.6rem; 
    grid-template-columns: 1fr; 
    grid-template-areas:
      "carousel"
      "info"
      "tabs";
  }
}

/* 活动轮播图和Tab按钮的容器布局优化 - 使用负边距完全消除间距 */
.activity-image-tabs-block { margin-bottom: 0 !important; padding: 0 !important; }
.activity-carousel { margin-bottom: 6px !important; padding-bottom: 0 !important; }
.activity-carousel + .activity-tabs,
#activity-carousel + #activity-tabs { margin-top: 6px !important; padding-top: 0 !important; }

.activity-tabs {
  display: flex;
  flex-wrap: wrap; /* 允许换行，保证一屏可见 */
  justify-content: center; /* 居中更协调 */
  gap: 0.5rem 0.5rem;
  margin-bottom: 1.2rem;
  margin-top: -10px !important; /* 负边距让Tab按钮向上靠近轮播图 */
  padding: 0 0.5rem; /* 两侧留白 */
  overflow: visible; /* 取消横向滚动 */
}

.activity-tab {
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-green);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-green);
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  /* 多行布局不再需要滚动吸附 */
}

.activity-tab.active {
  color: var(--text-white);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px) scale(1.03);
}

.activity-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* 移动端活动区域间距优化 - 使用负边距完全消除间距 */
@media (max-width: 768px) {
  /* 小屏：上下堆叠，收紧间距 */
  .activities-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .activity-carousel { margin-bottom: 6px !important; padding-bottom: 0 !important; }
  
  .activity-image-tabs-block { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  
  .activity-tabs { gap: 0.4rem 0.4rem; margin-bottom: 1rem; margin-top: 6px !important; padding-top: 0 !important; }
  
  .activity-tab { padding: 0.55rem 1rem; font-size: 0.82rem; }
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.activity-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: auto;
}

.activity-info {
  /* 修复：缺少 display 导致布局异常 */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* 可选：精简滚动条样式（仅影响 WebKit） */
/* 多行布局后不需要横向滚动条 */
.activity-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.activity-tabs::-webkit-scrollbar-track { display: none; }
.activity-tabs::-webkit-scrollbar-thumb { display: none; }

.activity-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
}

.activity-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
  box-shadow: var(--shadow-green);
}

.activity-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-percentage {
  color: var(--primary-green);
  font-weight: 800;
}

.activity-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================
   活动区域Logo样式 - 对标游戏区域专业水准
   ================================ */

/* 基础布局 - 完全复制游戏区域网格系统 */
.activity-logos.game-providers-style {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 6px !important;
  justify-items: center !important;
  align-items: center !important;
  padding: 18px 0 0 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 8px !important;
  min-height: 80px !important;
  position: relative !important;
}

/* Logo容器统一 - 与游戏区域保持一致 */
.activity-logos.game-providers-style .logo-wrap,
.activity-logos.game-providers-style .logo-wrap.activity-provider {
  position: relative !important;
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.02) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  cursor: pointer !important;
}

/* Logo图片基础样式 - 完全对标游戏区域 */
.activity-logos.game-providers-style .logo-wrap img,
.activity-logos.game-providers-style .logo-wrap.activity-provider img,
.activity-logos.game-providers-style .logo-wrap img.logo-effect-img,
.activity-logos.game-providers-style .logo-wrap.activity-provider img.logo-effect-img {
  width: 44px !important;
  height: 44px !important;
  position: absolute !important;
  left: 2px !important;
  top: 2px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  cursor: pointer !important;
}

/* 黑白图片效果 - 完全对标游戏区域滤镜 */
.activity-logos.game-providers-style .logo-wrap .logo-bw,
.activity-logos.game-providers-style .logo-wrap.activity-provider .logo-bw { 
  opacity: 1 !important; 
  z-index: 1 !important;
  filter: grayscale(1) brightness(0.9) contrast(0.95) !important;
}

/* 彩色图片效果 - 增强版滤镜 */
.activity-logos.game-providers-style .logo-wrap .logo-color,
.activity-logos.game-providers-style .logo-wrap.activity-provider .logo-color { 
  opacity: 0 !important; 
  z-index: 2 !important;
  filter: brightness(1.1) contrast(1.1) saturate(1.2) !important;
}

/* 悬停状态 - 专业级交互效果 */
.activity-logos.game-providers-style .logo-wrap:hover,
.activity-logos.game-providers-style .logo-wrap.activity-provider:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(16,185,129,0.3) !important;
  box-shadow: 0 4px 20px rgba(16,185,129,0.15), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

.activity-logos.game-providers-style .logo-wrap:hover .logo-bw,
.activity-logos.game-providers-style .logo-wrap.activity-provider:hover .logo-bw { 
  opacity: 0 !important; 
}

.activity-logos.game-providers-style .logo-wrap:hover .logo-color,
.activity-logos.game-providers-style .logo-wrap.activity-provider:hover .logo-color { 
  opacity: 1 !important; 
  filter: brightness(1.2) contrast(1.15) saturate(1.3) drop-shadow(0 2px 8px rgba(0,0,0,0.2)) !important;
}

/* 活跃状态 - 类似游戏区域的选中效果 */
.activity-logos.game-providers-style .logo-wrap.active,
.activity-logos.game-providers-style .logo-wrap.activity-provider.active {
  background: rgba(16,185,129,0.1) !important;
  border-color: rgba(16,185,129,0.4) !important;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.activity-logos.game-providers-style .logo-wrap.active .logo-bw,
.activity-logos.game-providers-style .logo-wrap.activity-provider.active .logo-bw {
  opacity: 0 !important;
}

.activity-logos.game-providers-style .logo-wrap.active .logo-color,
.activity-logos.game-providers-style .logo-wrap.activity-provider.active .logo-color {
  opacity: 1 !important;
}

.activity-logos.game-providers-style .logo-effect-img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  background: rgba(255,255,255,0.8) !important;
  position: relative !important;
  margin: 0 !important;
  padding: 2px !important;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
  cursor: pointer !important;
  min-width: 48px !important;
  max-width: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}

/* 活动区域logo悬停动画效果 */
/* ================================
   移动端响应式适配 - 保持专业水准
   ================================ */

@media (max-width: 600px) {
  .activity-logos.game-providers-style {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 4px !important;
    padding: 12px 0 0 0 !important;
    min-height: 60px !important;
  }
  
  .activity-logos.game-providers-style .logo-wrap,
  .activity-logos.game-providers-style .logo-wrap.activity-provider {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important;
  }
  
  .activity-logos.game-providers-style .logo-wrap img,
  .activity-logos.game-providers-style .logo-wrap.activity-provider img,
  .activity-logos.game-providers-style .logo-wrap img.logo-effect-img,
  .activity-logos.game-providers-style .logo-wrap.activity-provider img.logo-effect-img {
    width: 40px !important;
    height: 40px !important;
    left: 2px !important;
    top: 2px !important;
    border-radius: 4px !important;
  }
  
  .activity-logos.game-providers-style .logo-wrap:hover,
  .activity-logos.game-providers-style .logo-wrap.activity-provider:hover {
    transform: translateY(-1px) scale(1.03) !important;
  }
}

/* Activities - 整体区域协调性优化 */

/* 活动信息区域与logo区域的协调 */
.activity-info.funx-card {
  padding: var(--spacing-lg) !important;
  background: linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(241,245,249,0.6) 100%) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(16,185,129,0.1) !important;
  box-shadow: 0 4px 20px rgba(16,185,129,0.05), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

/* 活动标题区域美化 */
.activity-title.funx-title {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  -webkit-background-clip: text !important;

  background-clip: text !important;
  font-weight: 800 !important;
}

/* 活动描述区域 */
.activity-description.funx-subtitle {
  color: rgba(55,65,81,0.8) !important;
  line-height: 1.6 !important;
}

/* Activity section inline CTA */
.activity-cta { margin-top: 0.25rem; margin-bottom: 0.5rem; }
.activity-cta-btn { border-radius: 999px; }
.activity-cta-btn.funx-btn--sm { padding: 0.45rem 0.85rem; }
@media (max-width: 414px) {
  .activity-cta { margin-top: 0.15rem; }
  .activity-cta-btn.funx-btn--sm { padding: 0.4rem 0.8rem; font-size: 0.92rem; }
}

/* Logo区域整体包装器美化 */
.activity-logos.game-providers-style::before {
  content: '' !important;
  position: absolute !important;
  top: 8px !important;
  left: -12px !important;
  right: -12px !important;
  bottom: -8px !important;
  background: linear-gradient(135deg, rgba(16,185,129,0.02) 0%, rgba(52,211,153,0.01) 100%) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(16,185,129,0.05) !important;
  z-index: -1 !important;
}

/* 移除热门游戏底部 providers 小logo */
#game-providers { display: none !important; }

/* 左侧跟随客服按钮 */
.floating-support {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 11000;
  pointer-events: none;
}
.floating-support .support-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  pointer-events: auto;
}
.floating-support .support-btn:hover { transform: translateY(-1px) scale(1.06); box-shadow: 0 10px 26px rgba(0,0,0,0.22); filter: saturate(1.1); }
.floating-support .support-btn.tg { background: #229ED9; }
.floating-support .support-btn.wa { background: #25D366; }
.floating-support .support-btn.live { background: linear-gradient(135deg, #10b981, #34d399); }
/* 留位显示：默认轻微不透明，强调可见性 */
.floating-support { opacity: 0.98; }
.floating-support .support-btn { opacity: 0.98; }
@media (max-width: 480px) {
  /* 与返回顶部和Cookie条拉开更大安全间距 */
  .floating-support { right: 10px; top: auto; bottom: 168px; transform: none; gap: 12px; }
  .floating-support .support-btn { width: 42px; height: 42px; font-size: 17px; }
}

/* ====================================
   10. 邀请区域样式
   ==================================== */
.invite-section {
  background: linear-gradient(135deg, var(--bg-gray) 0%, #e2e8f0 100%);
}

/* 外迁原内联：容器边距/圆角/溢出与定位 */
.invite-section.funx-card {
  margin: var(--spacing-md);
  padding: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
}

/* 背景左右装饰块（原为内联background+opacity） */
.invite-bg-left,
.invite-bg-right {
  position: absolute;
  inset: -15% -25% 40% -25%; /* 扩展出界以形成柔和渐变 */
  background: var(--gradient-primary);
  opacity: 0.05; /* 降低色彩干扰，弱化绿色偏色 */
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}
.invite-bg-right {
  inset: 40% -25% -15% -25%;
}

.invite-calculator {
  max-width: 800px;
  margin: 0 auto;
}

.invite-advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.advantage-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.advantage-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.advantage-list {
  list-style: none;
}

.advantage-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.advantage-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

.calculator-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.calculator-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}



.input-unit {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.calc-button {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--text-white);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
}

.calc-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.invite-results {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

/* ====================================
   11. 服务区域样式
   ==================================== */
.services-section {
  background: linear-gradient(135deg, var(--bg-gray) 0%, #e2e8f0 100%);
}

/* 外迁原内联：容器边距/内边距/圆角 */
.services-section.funx-card {
  margin: var(--spacing-md);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-2xl);
}

.services-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;

  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .services-metrics { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}

.metric-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* 修复：无效嵌套和无效选择器，改为标准写法 */

.metric-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.metric-unit {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.metric-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.services-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
  overflow-x: hidden; /* prevent horizontal scroll in this section */
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  transition: var(--transition);
  max-width: 100%;
  position: relative;
  isolation: isolate; /* 确保伪元素不溢出 */
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Ambient glow without layout shift */
.feature-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(220px 60% at 30% 0%, rgba(16,185,129,0.10), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.feature-card:hover::after { opacity: 1; }

/* Feature 卡片颜色变体（与页面 HTML 的 fc-blue / fc-purple / fc-yellow 对应）*/
.feature-card.fc-blue  { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border: 1px solid #e5e7eb; }
.feature-card.fc-purple{ background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%); border: 1px solid #ede9fe; }
.feature-card.fc-yellow{ background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border: 1px solid #ffedd5; }

/* Feature 图标颜色（与 HTML 的 fi-blue / fi-purple / fi-yellow 对应）*/
.fi-blue   { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.fi-purple { background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%); }
/* .fi-yellow 已存在，保留上方定义 */

/* 热门游戏信息卡统一使用主题渐变底色（更大厂）*/
.games-section .game-info-card { background: var(--gradient-card); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}
.feature-icon i { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; line-height: 1; font-size: 1em; filter: none; transform: none; background: transparent !important; box-shadow: none !important; }

.feature-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.35rem;
  white-space: normal; /* override earlier nowrap to allow wrapping in long BN text */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.advantages-section { overflow-x: hidden; }

/* ensure services section itself does not cause horizontal overflow */
.services-section { overflow-x: hidden; }

/* ====================================
   12. 页脚样式
   ==================================== */
.footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 50%, #334155 100%);
  color: var(--text-white);
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 背景装饰可按需添加，这里仅保证语法与布局正确 */
  z-index: 1;
}

.footer-partners {
  text-align: center;
  margin-bottom: 3rem;
}

.partners-title {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.partners-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-partner {
  width: 60px;
  height: 60px;
  filter: grayscale(0.3) brightness(1.2);
  transition: var(--transition);
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
}

.footer-partner:hover {
  filter: grayscale(0) brightness(1.3);
  transform: scale(1.1);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.footer-certifications {
  text-align: center;
  margin-bottom: 3rem;
}

.certifications-title {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.certifications-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-certification {
  width: 70px;
  height: 70px;
  filter: grayscale(0.2) brightness(1.3) contrast(1.15);
  transition: var(--transition);
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.footer-certification:hover {
  filter: grayscale(0) brightness(1.4) contrast(1.3);
  transform: scale(1.08);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.3);
  background: rgba(255, 255, 255, 0.18);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: var(--transition);
  padding: 0.5rem;
}

.footer-nav a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-contact {
  text-align: center;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  color: var(--primary-green);
  font-size: 1.25rem;
}

.contact-label {
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-value {
  color: var(--primary-green);
  font-size: 1rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: #94a3b8;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-green);
  transform: scale(1.1);
}

.footer-certificate {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

.certificate-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 1rem;
}

.certificate-text {
  color: #35598d;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.certificate-description {
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.certificate-status {
  margin-bottom: 1rem;
}

.status-active {
  color: var(--primary-green);
  font-weight: 600;
}

.gcb-logo {
  width: 100px;
  height: auto;
  margin: 1rem auto;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.gcb-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.certificate-links {
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.certificate-links a {
  color: #c39d5d;
}

.footer-age-restriction {
  text-align: center;
}

.age-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #60a5fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.age-number {
  color: var(--text-white);
  font-size: 1.125rem;
  font-weight: 700;
}

.age-label {
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.gcb-verification {
  cursor: pointer;
  transition: var(--transition);
}

.gcb-verification img {
  width: 80px;
  height: auto;
  margin: 0 auto;
}

.gcb-verification:hover {
  transform: scale(1.05);
}

.footer-copyright {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* ====================================
   13. 回到顶部按钮
   ==================================== */
.scroll-to-top {
  position: fixed;
  /* 额外抬高，避免与悬浮按钮和Cookie条重叠 */
  bottom: calc(2.2rem + 60px);
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1000;
  display: none;
  transition: var(--transition);
  color: var(--accent-slate);
  font-size: 1.25rem;
}

.scroll-to-top:hover {
  background: var(--primary-green);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

/* ====================================
   14. 证书弹窗样式
   ==================================== */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  /* 使用视口单位并覆盖所有安全区，防止溢出 */
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  /* 使用网格确保绝对居中，避免 flex margin/尺寸导致的水平漂移 */
  display: grid;
  place-items: center;
  z-index: 9999;
  /* 安全区内边距，避免刘海/底部条遮挡 */
  padding: calc(0.75rem + env(safe-area-inset-top)) calc(0.75rem + env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) calc(0.75rem + env(safe-area-inset-left));
  overscroll-behavior: contain; /* 阻止背景滚动反弹 */
}

.cert-modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  /* 限制宽高在视口内，避免小屏溢出 */
  width: min(92vw, 640px);
  max-width: 640px;
  max-height: min(88dvh, 720px);
  overflow-y: auto; /* 内部滚动 */
  -webkit-overflow-scrolling: touch; /* iOS 弹性滚动 */
  touch-action: pan-y; /* 允许纵向滚动 */
  box-sizing: border-box;
  /* 强制在遮罩层中水平置中 */
  margin: 0 auto;
  align-self: center; /* 兼容旧浏览器的居中 */
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* 兜底高优先级，防止外部规则影响弹窗水平位置 */
#cert-modal .cert-modal-content { margin-left: auto !important; margin-right: auto !important; justify-self: center; }

/* 终极兜底：在部分旧安卓/内置浏览器上，使用固定定位+位移确保绝对居中 */
@supports (-webkit-appearance: none) {
  #cert-modal .cert-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* 低端设备友好：折叠区块延迟渲染，进入视口再布局/绘制 */
.partner-scroll-container,
.brand-sponsor-block,
.activities-section,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* 弹窗内的图片/视频自适应，避免撑破容器 */
.cert-modal-content img,
.cert-modal-content video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 小屏优化：缩小内边距与圆角，进一步降低最小高度和最大高 */
@media (max-width: 480px) {
  .cert-modal-content {
    padding: 1rem;
    border-radius: 12px;
    max-height: min(88dvh, 600px);
  }
  .cert-main {
    padding: 16px 14px 14px;
    min-height: auto;
  }
}

.cert-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: var(--bg-gray);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}

.cert-modal-close:hover {
  background: var(--primary-green);
  color: var(--text-white);
}

.curacao-cert-official {
  text-align: center;
}

/* 证书弹窗细节样式（替代行内样式） */
.cert-watermark {
  position: absolute;
  inset: 0;
  background: #f8f9fa;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}
.cert-watermark .wm {
  position: absolute;
  font-family: 'Times New Roman', serif;
  font-weight: 200;
  white-space: nowrap;
  color: rgba(180,180,180,0.6);
}
.cert-watermark .wm.a { top: 14%; left: 6%; transform: rotate(-28deg); font-size: 30px; color: rgba(175,175,175,0.65); letter-spacing: 1.8px; }
.cert-watermark .wm.b { top: 28%; right: 8%; transform: rotate(22deg); font-size: 26px; color: rgba(185,185,185,0.55); letter-spacing: 1.2px; }
.cert-watermark .wm.c { top: 42%; left: 10%; transform: rotate(-22deg); font-size: 24px; letter-spacing: 0.8px; }
.cert-watermark .wm.d { top: 56%; right: 6%; transform: rotate(27deg); font-size: 28px; letter-spacing: 1.5px; }
.cert-watermark .wm.e { top: 70%; left: 4%; transform: rotate(-32deg); font-size: 22px; color: rgba(190,190,190,0.55); letter-spacing: 0.6px; }
.cert-watermark .wm.f { bottom: 22%; right: 10%; transform: rotate(20deg); font-size: 20px; color: rgba(183,183,183,0.55); letter-spacing: 1.2px; }

.cert-header { text-align: center; margin-bottom: 18px; }
.cert-logo-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.cert-logo { height: 65px; object-fit: contain; filter: brightness(0.96) contrast(1.08); transition: all 0.3s ease; }
.cert-title { color: #1e40af; font-size: 21px; font-weight: 400; margin: 0; letter-spacing: 0.8px; font-family: 'Times New Roman', Georgia, serif; }

.cert-body { text-align: center; font-size: 12.5px; line-height: 1.45; color: #2d3748; margin-bottom: 18px; padding: 0 12px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.cert-body p { margin: 0 0 14px 0; font-weight: 400; }
.cert-status { background: #16a34a; color: #fff; padding: 2px 7px; border-radius: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px; }

/* 防止超长单词/链接导致横向溢出 */
.cert-body,
.cert-footer-inner {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cert-gcb { display: grid; place-items: center; margin: 18px 0; width: 100%; text-align: center; }
.cert-gcb-logo { display: block; margin: 0 auto; height: 48px; object-fit: contain; filter: brightness(0.96) contrast(1.12) drop-shadow(0 0.5px 1px rgba(0,0,0,0.08)); border-radius: 3px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.03); transition: all 0.3s ease; }

.cert-footer { margin-top: var(--spacing-lg); padding: var(--spacing-md); background: var(--gradient-card); border-radius: var(--radius-lg); }
.cert-footer-inner { text-align: center; font-size: 10.5px; color: var(--text-secondary); line-height: 1.35; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.cert-footer-inner p { margin: 0 0 6px 0; font-weight: 400; }
.cert-footer-links { margin-top: 6px; }
.cert-footer-links .funx-link { color: var(--primary-green); text-decoration: none; font-size: 10.5px; font-weight: 500; transition: color 0.2s ease; }
.cert-footer-links .funx-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #a7f3d0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.cert-footer-links .funx-link:hover { background: rgba(255,255,255,0.14); color: #d1fae5; transform: translateY(-1px); }
.cert-footer-links .sep { color: var(--text-light); margin: 0 3px; font-weight: 400; }

/* =============================
   Footer Modern 样式（外迁内联）
   ============================= */
.footer-modern {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}
.footer-bg-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}
.footer-inner { max-width: 90%; margin: 0 auto; padding: 0 1rem; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.footer-col.text-center { text-align: center; }

.footer-card { border-radius: 1rem; padding: 1.2rem; }
.footer-card:hover { box-shadow: 0 6px 20px rgba(255,255,255,0.08) inset, 0 8px 28px rgba(0,0,0,0.18); transform: translateY(-2px); transition: transform .18s ease, box-shadow .18s ease; }
.footer-card-green { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); }
.footer-card-blue  { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); }

.footer-icon-circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.8rem; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.footer-icon-green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.footer-icon-blue  { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }
.footer-icon { color: #fff; font-size: 1.1rem; }

.footer-card-title { color: #f1f5f9; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.footer-card-email { color: #10b981; font-size: 0.8rem; font-weight: 500; }

.footer-cert-header { margin-bottom: 1rem; }
.footer-cert-brand { height: 40px; margin-bottom: 0.5rem; opacity: 0.9; display: block; margin-left: auto; margin-right: auto; }
.footer-cert-title { color: #cbd5e1; font-size: 1rem; font-weight: 600; margin-bottom: 0.8rem; }
.footer-cert-meta { color: #94a3b8; font-size: 0.75rem; line-height: 1.4; margin-bottom: 1rem; }
.footer-cert-active { color: #10b981; font-weight: 600; }
.footer-cert-trigger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.footer-cert-logo { display: block; margin: 0 auto; height: 35px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.footer-cert-trigger-text { color: #10b981; font-size: 0.7rem; font-weight: 500; margin-top: 0.3rem; }

.footer-age-mark { color: #fff; font-size: 1rem; font-weight: 700; }
.footer-age-label { color: #f1f5f9; font-size: 0.9rem; font-weight: 600; }

.footer-bottombar { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottomtext { color: #64748b; font-size: 0.8rem; margin-bottom: 0.5rem; }

/* 响应式：小屏改为单列/双列 */
@media (max-width: 1024px) {
  .footer-inner { max-width: 96%; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.curacao-cert-cga-logo {
  max-width: 150px;
  height: auto;
  margin: 0 auto 1rem;
}

.curacao-cert-title {
  color: #35598d;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.curacao-cert-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.curacao-cert-status {
  color: var(--primary-green);
  font-weight: 600;
}

.curacao-cert-gcb-logo {
  max-width: 120px;
  height: auto;
  margin: 1rem auto;
}

.curacao-cert-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.curacao-cert-footer a {
  color: #c39d5d;
}

/* ====================================
   15. 响应式设计
   ==================================== */
@media (min-width: 640px) {
  .games-container {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .game-image-container {
    flex: 1;
  }
  
  .game-info-card {
    flex: 1;
  }
  
  .activity-content {
    flex-direction: row;
    align-items: center;
  }
  
  .activity-image {
    flex: 1;
  }
  
  .activity-info {
    flex: 1;
  }
  
  .invite-advantages {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    grid-template-columns: 1fr 3fr 1fr;
  }
}

@media (min-width: 768px) {
  .section-header-title {
    font-size: 1.75rem;
  }
  
  .banner-title {
    font-size: 2.25rem;
  }
  
  .navbar-menu a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .section-header-title {
    font-size: 1.25rem;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .banner-subtitle {
  font-size: 1rem;
  text-shadow: 0 1px 1px rgba(0,0,0,0.45);
  }
  
  .navbar-menu {
    gap: 0.25rem;
  }
  
  .navbar-menu a,
  .navbar-lang {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .metric-card {
    padding: 1.5rem;
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
  
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-certificate {
    order: 1;
  }
  
  .footer-contact {
    order: 2;
  }
  
  .footer-age-restriction {
    order: 3;
  }
}

/* ====================================
   16. 动画和关键帧
   ==================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 无障碍：仅屏幕阅读器可见 */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ====================================
   17. 细化响应式微调（414/375/360/320）
   ==================================== */
/* 414 及以下：适度收紧导航按钮与标题换行优化 */
@media (max-width: 414px) {
  .navbar-container { padding-left: calc(0.75rem + env(safe-area-inset-left)); padding-right: calc(0.75rem + env(safe-area-inset-right)); }
  .nav-link, .navbar-lang { padding: 0.45rem 0.8rem; }
  .section-header-title, .section-header-sub { text-wrap: balance; }
  .game-link { font-size: 0.92rem; padding: 0.45rem 0.7rem; }
}

/* 375 及以下：Tabs 与小按钮再收紧，避免换行抖动 */
@media (max-width: 375px) {
  .nav-link, .navbar-lang { padding: 0.4rem 0.7rem; }
  .game-tab { font-size: 0.95rem !important; padding: 0.5rem 0.4rem !important; }
  .activity-tab { font-size: 0.78rem !important; padding: 0.5rem 0.8rem !important; }
  .funx-btn--sm { padding: 0.45rem 0.75rem; font-size: 0.88rem; }
  .activity-inline-cta-btn.funx-btn--sm { padding: 0.45rem 0.8rem; }
}

/* 360 及以下：进一步收紧；强化标题的平衡换行 */
@media (max-width: 360px) {
  .nav-link, .navbar-lang { padding: 0.38rem 0.65rem; }
  .section-header-title { font-size: 1.08rem; text-wrap: balance; }
  .section-header-sub { font-size: 0.96rem; text-wrap: balance; }
  .game-link { font-size: 0.9rem; padding: 0.42rem 0.62rem; }
}

/* 320 及以下：极窄屏兜底 */
@media (max-width: 320px) {
  .nav-link, .navbar-lang { padding: 0.34rem 0.6rem; }
  .game-tab { font-size: 0.92rem !important; }
  .activity-tab { font-size: 0.76rem !important; }
  .funx-btn--sm { font-size: 0.86rem; padding: 0.42rem 0.7rem; }
}

/* 安全区：底部与提示条 */
.footer-bottombar { padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ====================================
   17. 实用工具类
   ==================================== */
.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-in {
  animation: slideIn 0.3s ease;
}

.pulse {
  animation: pulse 2s infinite;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ====================================
   18. 性能优化
   ==================================== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ====================================
   19. 无障碍访问
   ==================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====================================
   20. 内联样式迁移
   ==================================== */

/* ——— 统一热门游戏两个区块的媒体尺寸（确保后面的视频与前面一致） ——— */
.games-section .game-image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9; /* 固定比例，两个区块一致 */
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.games-section .game-image-container > .current-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Partners Section */
.partners-section-clean {
  padding: 0 1.2rem;
  margin-top: 2.6rem;
}

.partners-header-block-clean {
  margin-top: 2.6rem;
  padding-top: 0.7rem;
  background: #f8fdfa;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 6px 32px rgba(16,185,129,0.06);
}

/* ========== 5) Invite (features, calculator, detail) ========== */
.invite-main-card-clean {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(16,185,129,0.10), 0 4px 16px rgba(0,0,0,0.04);
  padding: 1.5rem 0.5rem 2.2rem 0.5rem;
  position: relative;
  z-index: 2;
}

.invite-title-gradient-clean {
  font-size: 1.2rem;
}

.invite-sub-clean {
  font-size: 1rem;
}

.invite-feature-unified-bg-clean {
  margin-bottom: 1.2rem;
  padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  box-shadow: none;
  border-radius: 18px;
}

.invite-feature-item-clean {
  padding: 1.2rem 0.8rem;
  min-width: 0;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16,185,129,0.10);
}

.invite-feature-icon-clean {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #fff;
  margin-bottom: 0.7rem;
}

.invite-feature-title-clean {
  font-size: 1.08rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.5rem;
}

.invite-feature-list-clean {
  font-size: 0.97rem;
  color: #166534;
  line-height: 1.7;
}

.invite-detail-inner-block-clean {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 1.1rem 0.5rem;
  margin-bottom: 1.1rem;
}

.shimmer-bar-clean {
  height: 4px;
  border-radius: 8px;
}

.invite-calculator-wrapper {
  position: relative;
  z-index: 1;
}

.invite-calculator-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.invite-calculator-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.invite-calculator-title-main {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(16,185,129,0.18);
  font-size: 1rem;
  line-height: 1.1;
}

.invite-calculator-title-icon {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.invite-calculator-title-text {
  font-size: 1rem;
  font-weight: 800;
}

.invite-calculator-title-badge {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  padding: 0.32rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(16,185,129,0.13);
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.invite-calculator-title-badge-text {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: normal;
}

.invite-calculator-desc {
  color: #6b7280;
  font-size: 0.97rem;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

.invite-input-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  max-width: 100%;
  overflow-x: hidden;
}

.invite-input-container {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 0.7rem 0.7rem;
  border: 2px solid rgba(16,185,129,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
  flex-wrap: wrap; /* allow label/input to wrap on very narrow screens */
}

.invite-input-label {
  color: #374151;
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.97rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-shrink: 0;
}

.invite-input-field {
  width: 60px;
  min-width: 40px;
  padding: 0.5rem 0.5rem;
  border: 2px solid rgba(16,185,129,0.15);
  border-radius: 8px;
  font-size: 0.97rem;
  background: white;
  color: #374151;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 600;
  flex-shrink: 0;
}

.invite-input-field:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.1);
  outline: none;
}

/* Make calculator inputs wrap more gracefully on extra-narrow devices */
/* Allow the label to take a full row on more devices to avoid overflow */
@media (max-width: 480px) {
  .invite-input-label { flex-basis: 100%; margin-bottom: 0.3rem; }
  .invite-input-unit { margin-left: 0; }
}

/* ========== 8) Cookie Bar (disabled) ========== */
#cookie-bar, .cookie-bar { display: none !important; }

/* ========== 7) Footer + Footer Modal ========== */
.footer-modal-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  z-index: 10010;
}

.footer-modal-content {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.18);
  z-index: 10011;
  min-width: 270px;
  max-width: 92vw;
  width: 340px;
  padding: 0;
  overflow: hidden;
}

.footer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
}

.footer-modal-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #22223b;
}

.footer-modal-header { position: relative; }
.footer-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 3;
}

.footer-modal-close:hover {
  background: rgba(100,116,139,0.1);
}

.footer-modal-body {
  padding: 1.1rem 1.2rem 1.2rem 1.2rem;
  font-size: 1.01rem;
  color: #334155;
  max-height: 60vh;
  overflow-y: auto;
}

/* 证书模态框关闭按钮 */
/* 去重：下方重复的 cert-modal-close 块已删除，保留上方定义 */

/* ========== 9) Modals (Loading / Certificate) ========== */
/* 证书容器与主体 */
.cert-shell {
  background: #f8f9fa;
  min-height: 100%;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.cert-main {
  position: relative;
  z-index: 2;
  padding: 24px 20px 20px;
  /* 最小高度随视口自适应，避免在矮屏上强制溢出 */
  min-height: min(60vh, 560px);
}
.cert-strong-brown { color: #b45309; font-weight: 700; }
.cert-strong-dark { color: #1a202c; font-weight: 700; }
.cert-strong-blue { color: #2563eb; font-weight: 700; }

/* ========== 10) Utilities (helpers/tools) ========== */
/* 邀请区域剩余样式 */
.income-summary {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border-radius: 16px;
  padding: 1.1rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(16,185,129,0.13);
  margin-bottom: 1.1rem;
}

.income-summary-label {
  color: rgba(255,255,255,0.93);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.income-summary-value {
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.income-summary-amount {
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-size: 1.3rem;
}

.income-summary-currency {
  font-size: 1rem;
  opacity: 0.85;
}

.income-detail-collapse-clean {
  margin-bottom: 1.1rem;
}

.income-detail-collapse-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.7rem;
  cursor: pointer;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid rgba(2,6,23,0.06);
  transition: background 0.2s, box-shadow 0.2s;
}
.income-detail-collapse-header-clean:hover { background: #f8fafc; box-shadow: 0 2px 8px rgba(2,6,23,0.05); }
.income-detail-collapse-header-clean.active .income-detail-collapse-icon { transform: rotate(180deg); }

.income-detail-collapse-text {
  font-size: 0.97rem;
  font-weight: 700;
  color: #059669;
}

.income-detail-collapse-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.income-detail-grid-clean {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.income-detail-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid rgba(16,185,129,0.1);
  box-shadow: 0 6px 18px rgba(16,185,129,0.08);
}

.income-detail-card-text {
  color: #6b7280;
  font-size: 0.85rem;
}

/* 折叠明细辅助类 */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-dark-600 { color: #374151; }
.text-097-600 { font-size: 0.97rem; font-weight: 600; }
.text-primary-strong { color: #10b981; font-size: 1rem; font-weight: 800; }

/* 模型说明卡片 */
.model-desc-card { background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%); border: 1px solid rgba(251,191,36,0.18); border-radius: 16px; padding: 1.1rem 0.5rem; margin-bottom: 1.1rem; }
.model-desc-toggle {
  display: flex; align-items: center; cursor: pointer; padding: 0.7rem 0.5rem; user-select: none;
}
.model-desc-icon {
  width: 36px; height: 36px; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 0.7rem;
  box-shadow: 0 3px 10px rgba(251,191,36,0.13);
}
.model-desc-text { flex: 1; }
.model-desc-title { font-size: 1.05rem; font-weight: 800; color: #1a202c; margin-bottom: 0.1rem; }
.model-desc-sub { font-size: 0.85rem; color: #6b7280; }
.model-desc-arrow { font-size: 1rem; color: #f59e0b; transition: transform 0.3s; }
.model-desc-toggle.active .model-desc-arrow { transform: rotate(180deg); }
.model-desc-panel { padding: 0.5rem; }
.model-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.model-item { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-radius: 10px; padding: 0.7rem; border: 1px solid rgba(251,191,36,0.13); position: relative; }
.model-badge { position: absolute; top: -8px; left: 12px; background: #f59e0b; color: #7c3aed; padding: 0.2rem 0.5rem; border-radius: 8px; font-size: 0.7rem; font-weight: 700; }
.model-item-title { color: #92400e; font-weight: 700; margin-bottom: 0.2rem; font-size: 0.95rem; }
.model-item-desc { color: #78350f; font-size: 0.85rem; }
.model-summary { margin-top: 1rem; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); border-radius: 10px; padding: 0.7rem; text-align: center; }
.model-summary-title { color: white; font-size: 0.98rem; font-weight: 800; margin-bottom: 0.2rem; }
.model-summary-sub { color: rgba(255,255,255,0.9); font-size: 0.85rem; }

/* 玩家展示卡片 */
.player-showcase-card { background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%); border: 1px solid rgba(16,185,129,0.12); border-radius: 16px; padding: 1.1rem 0.5rem; margin-bottom: 1.1rem; box-shadow: 0 8px 28px rgba(16,185,129,0.12); }
.player-showcase-header { display: flex; align-items: center; padding: 0.7rem 0.5rem 0.3rem 0.5rem; }
.player-showcase-icon { width: 36px; height: 36px; background: linear-gradient(135deg, #10b981 0%, #34d399 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 0.7rem; box-shadow: 0 3px 10px rgba(16,185,129,0.13); }
.player-showcase-title { font-size: 1.05rem; font-weight: 800; color: #1a202c; margin-bottom: 0.1rem; }
.player-showcase-sub { font-size: 0.85rem; color: #6b7280; }
.player-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.player-card { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border-radius: 10px; padding: 0.7rem; text-align: center; border: 1px solid rgba(16,185,129,0.12); position: relative; overflow: hidden; }
.player-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #10b981 0%, #34d399 100%); border-radius: 50%; margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; font-weight: 900; box-shadow: 0 3px 10px rgba(16,185,129,0.13); }
.player-name { font-size: 0.98rem; color: #1f2937; font-weight: 800; margin-bottom: 0.1rem; }
.player-badge { background: rgba(16,185,129,0.08); color: #0f5132; padding: 0.2rem 0.5rem; border-radius: 8px; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; display: inline-block; }
.player-income { color: #059669; font-size: 1.1rem; font-weight: 900; }
.player-cta { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); border-radius: 10px; padding: 0.7rem; margin-top: 0.7rem; text-align: center; }
.player-cta-title { color: white; font-size: 0.98rem; font-weight: 700; margin-bottom: 0.1rem; }
.player-cta-sub { color: rgba(255,255,255,0.9); font-size: 0.85rem; }

/* CTA容器与按钮 */
.invite-cta-inner { position: relative; display: inline-block; }
.invite-cta-btn-lg { padding: 1.05rem 2.8rem; font-size: 1.15rem; }
.invite-cta-wrap .invite-pulse-bg { pointer-events: none; }
.invite-tip { margin-top: 1.1rem; color: #6b7280; font-size: 0.95rem; max-width: 320px; margin-left: auto; margin-right: auto; line-height: 1.5; padding: 0.7rem; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 10px; border: 1px solid rgba(16,185,129,0.1); }
.invite-tip-title { color: #10b981; font-weight: 700; margin-bottom: 0.2rem; }
.invite-tip-text { color: #374151; }

/* CTA按钮更显眼（主色渐变 + 高对比 + 光晕 + 脉冲） */
.invite-cta-inner .invite-pulse-bg {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: radial-gradient(160px 160px at 50% 50%, rgba(16,185,129,0.28), transparent 60%);
  filter: blur(8px);
  animation: invitePulse 2.2s ease-in-out infinite;
  z-index: 0;
}
@keyframes invitePulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.05); }
}
.invite-cta-btn {
  position: relative;
  z-index: 1;
  border: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 12px 36px rgba(16,185,129,0.35), 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.invite-cta-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 16px 44px rgba(16,185,129,0.45), 0 6px 16px rgba(0,0,0,0.10); filter: saturate(1.05); }
.invite-cta-btn:active { transform: translateY(0) scale(.99); box-shadow: 0 10px 28px rgba(16,185,129,0.35); }
.invite-cta-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(16,185,129,0.25), 0 12px 36px rgba(16,185,129,0.35); }

/* 细节对齐 */
.mt-1-2 { margin-top: 1.2rem; }

/* 所有其他内联样式处理 */
.centered-text { text-align: center; }
.mb-1-2 { margin-bottom: 1.2rem; }
.mb-1-1 { margin-bottom: 1.1rem; }
.mb-0-5 { margin-bottom: 0.5rem; }
.mb-0-2 { margin-bottom: 0.2rem; }
.p-0-7 { padding: 0.7rem; }
.p-0-5 { padding: 0.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-0-7 { gap: 0.7rem; }
.gap-0-3 { gap: 0.3rem; }
.border-radius-10 { border-radius: 10px; }
.border-radius-8 { border-radius: 8px; }
.position-relative { position: relative; }
.z-index-1 { z-index: 1; }
.overflow-hidden { overflow: hidden; }
.display-inline-block { display: inline-block; }
}

/* 全局统一：卡片/标题/副标题（大厂风格） */
.funx-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(248,250,252,0.92) 100%);
  border: 1px solid rgba(16,185,129,0.10);
  border-radius: var(--radius-2xl);
  box-shadow: 0 6px 24px rgba(16,185,129,0.08), 0 2px 8px rgba(0,0,0,0.03);
  backdrop-filter: blur(8px);
}
.funx-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #0f172a 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.funx-subtitle {
  color: #475569;
  font-weight: 600;
}

/* ==============================
   Activities Pro Enhancements
   - Tab indicator, polished tabs, skeleton, logo shine & stagger
   ============================== */
/* Tabs: container positioning for indicator */
.activity-tabs { position: relative; }

/* 去除热门活动区块的侧边留白（按需可切换） */
.activities-section .activities-container,
.activities-section .activity-image-tabs-block { padding-left: 0 !important; padding-right: 0 !important; }

/* Activities: premium pill tabs and tidy info card */
.activities-section .activity-tabs { row-gap: 8px; }
.activities-section .activity-tab {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(2,132,199,0.18) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}
.activities-section .activity-tab.active {
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%) !important;
  color: #075985 !important;
  border-color: rgba(2,132,199,0.35) !important;
  box-shadow: 0 8px 22px rgba(2,132,199,0.12) !important;
}

/* Activity info card tidy look */
.activities-section .activity-info.funx-card {
  padding: 14px 14px 12px !important;
  border: 1px solid rgba(2,6,23,0.06) !important;
  box-shadow: 0 4px 16px rgba(2,6,23,0.04) !important;
}
.activities-section .activity-title.funx-title {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #0f172a !important;
}
.activities-section .activity-description {
  color: #475569 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-top: 0.4rem !important;
}

/* Carousel nav subtle glass buttons */
#activity-carousel .carousel-nav {
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(2,132,199,0.25) !important;
  box-shadow: 0 4px 12px rgba(2,132,199,0.12) !important;
  backdrop-filter: saturate(120%) blur(4px);
}

/* Polished tab style (override previous) */
.activity-tab {
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f5132;
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.9) 100%);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(16,185,129,0.08), 0 2px 14px rgba(16,185,129,0.06);
  backdrop-filter: saturate(120%) blur(6px);
}
.activity-tab:hover { box-shadow: 0 8px 24px rgba(16,185,129,0.15); transform: translateY(-2px); }
/* 热门活动Tab选中态：提高对比度，避免白字看不清 */
.activity-tab.active {
  color: #0f5132;
  background: rgba(16,185,129,0.14);
  border-color: rgba(16,185,129,0.34);
  box-shadow: 0 6px 20px rgba(16,185,129,0.18);
  transform: translateY(-1px) scale(1.04);
}

/* Sliding indicator under active tab */
/* 多行布局下隐藏滑动指示器 */
.activity-tab-indicator { display: none !important; }

/* Carousel: skeleton shimmer when switching */
#activity-carousel.loading::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(226,232,240,0.35) 0%, rgba(241,245,249,0.6) 20%, rgba(226,232,240,0.35) 40%);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite;
  z-index: 3;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Logo: glossy shine overlay */
.activity-logos.game-providers-style .logo-wrap::after,
.game-providers .logo-wrap::after {
  content: '';
  position: absolute;
  top: -120%; left: -120%;
  width: 240%; height: 240%;
  background: linear-gradient(60deg, rgba(255,255,255,0.0) 40%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.0) 60%);
  transform: rotate(8deg);
  transition: transform .5s ease, opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
.activity-logos.game-providers-style .logo-wrap:hover::after,
.game-providers .logo-wrap:hover::after { opacity: 1; transform: rotate(8deg) translate3d(12px,12px,0); }

/* Logo: stagger-in animation */
.logo-stagger-in { opacity: 0; transform: translateY(8px) scale(.98); animation: logoIn .4s forwards; }
@keyframes logoIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* ==============================
   14) 覆盖增强：隐藏活动小logo + 邀请/服务/底部精修
   放在文件末尾确保优先级
============================== */
/* 1) 热门活动小logo隐藏 */
#activity-logos { display: none !important; }

/* 2) 邀请裂变区块精修 */
.invite-section.funx-card {
  /* 更中性的白/雾面渐变，提高与全局一致性 */
  background: linear-gradient(180deg, rgba(248,250,252,0.9) 0%, rgba(255,255,255,0.98) 50%, #ffffff 100%);
  border: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 6px 28px rgba(2,6,23,0.06);
  padding: 1.2rem;
}

/* 2.1) 热门游戏区块：显示副标题（覆盖全局隐藏） */
.games-section > .section-header-sub {
  display: block !important;
  margin-top: 6px;
  margin-bottom: 0.6rem;
  text-align: center;
  font-weight: 900;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  letter-spacing: .3px;
  color: #0f172a;
  background: linear-gradient(90deg, #0f172a 0%, #065f46 40%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* 副标题：前置图标（统一游戏感） */
.games-section > .section-header-sub::before {
  content: '🎮';
  display: inline-block;
  margin-right: 8px;
  transform: translateY(1px);
  filter: drop-shadow(0 2px 6px rgba(16,185,129,0.18));
  /* 确保图标不受渐变文字影响 */
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

/* 副标题：渐变下划线增强层次 */
.games-section > .section-header-sub::after {
  content: '';
  display: block;
  width: 84px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #10b981);
  box-shadow: 0 6px 18px rgba(16,185,129,0.22);
}

/* 动效（尊重“减少动态”设置） */
@media (prefers-reduced-motion: no-preference) {
  .games-section > .section-header-sub { animation: gs-sub-in .5s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes gs-sub-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* —— 针对两个热门游戏区块设置专属图标与下划线颜色 —— */
/* 第一块（紧随合作伙伴区块之后） */
.partners-section + .games-section > .section-header-sub::before { content: '💎'; }
.partners-section + .games-section > .section-header-sub::after { background: linear-gradient(90deg, #22d3ee, #6366f1); }
/* 第二块（第一块之后的下一个 .games-section） */
.partners-section + .games-section + .games-section > .section-header-sub::before { content: '💰'; }
.partners-section + .games-section + .games-section > .section-header-sub::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.invite-main-card,
.invite-main-card-clean {
  /* 等同移除这一层包裹：子元素直接参与父容器布局 */
  display: contents !important;
  /* 彻底去除装饰，以免残留空白影响视觉 */
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.invite-main-card-clean {
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 6px 20px rgba(2,6,23,0.06);
  padding: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.invite-title-gradient-clean { letter-spacing: 0.2px; line-height: 1.2; margin-bottom: .35rem; }
.invite-sub-clean { color: #475569; margin-bottom: .8rem; }
.invite-feature-unified-bg-clean { background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); border: 1px solid rgba(2,6,23,0.06); border-radius: 14px; padding: .75rem; }
.invite-feature-item-clean { background: #fff; border: 1px solid rgba(2,6,23,0.06); border-radius: 12px; padding: .85rem; box-shadow: 0 4px 16px rgba(2,6,23,0.06); }
.invite-feature-item-clean { transition: transform .25s ease, box-shadow .25s ease; }
.invite-feature-item-clean:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(2,6,23,0.08); }
.invite-feature-icon-clean { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #10b9811a, #34d3991a); color: #0f5132; margin-bottom: .4rem; }
.invite-feature-title-clean { font-weight: 800; }
.invite-feature-list-clean { color: #475569; list-style: none; padding-left: 0; margin-left: 0; }
.invite-feature-list-clean li { margin: .25rem 0; list-style: none; }
.invite-detail-inner-block-clean { background: #fff; border: 1px solid rgba(2,6,23,0.06); border-radius: 14px; box-shadow: 0 6px 20px rgba(2,6,23,0.06); }
.invite-input-unit { margin-left: .35rem; color: #64748b; font-weight: 700; }
.invite-input-field { height: 44px; border-radius: 10px; border: 1px solid rgba(15,81,50,0.25); box-shadow: inset 0 1px 2px rgba(2,6,23,0.05); }
.invite-cta-btn.invite-cta-btn-lg { border-radius: 999px; box-shadow: 0 10px 28px rgba(16,185,129,0.3); }

/* Certificate modal footer links: readable color on light background */
.cert-footer .funx-link {
  color: #0f5132 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cert-footer .funx-link:hover { color: #0ea5e9 !important; }

/* ==============================
  覆盖：隐藏首页主 Banner 的文案与按钮
  说明：仅作用于页面内的 #banner 区块，不影响启动页 fullscreen-banner
============================== */
#banner .banner-overlay-content { display: none !important; }
body.show-banner-copy #banner .banner-overlay-content { display: grid !important; }
.invite-tip { background: linear-gradient(135deg, #f0fdfa 0%, #e6fffb 100%); border: 1px solid rgba(16,185,129,0.18); }
@media (min-width: 768px) {
  .invite-feature-unified-bg-clean { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
}

/* 3) 服务区块精修 */
.services-section.funx-card { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%); border: 1px solid rgba(2,6,23,0.06); box-shadow: 0 6px 24px rgba(2,6,23,0.06); border-radius: 16px; padding: 1.1rem; }
.services-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.services-metrics .metric-number { font-weight: 800; color: #0f5132; font-size: 1.35rem; }
.services-metrics .metric-label { color: #64748b; }
@media (max-width:768px){ .services-metrics { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }
.services-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (max-width:768px){ .services-features { grid-template-columns: 1fr; } }

/* 4) 底部区块精修 */
.footer-modern { background: radial-gradient(1200px 60% at 50% -10%, rgba(16,185,129,0.15), transparent 60%), #0b1220; }
.footer-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.footer-bottombar { border-top: 1px solid rgba(148,163,184,0.16); }
.footer-bottomtext { color: #8aa0b8; }

/* --- Micro-polish: Invite reveal + Footer ripple + Enforced hide logos --- */
/* Invite section reveal animation */
.invite-section.funx-card .invite-main-card-clean,
.invite-section.funx-card .invite-feature-item-clean,
.invite-section.funx-card .invite-calculator-wrapper {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.invite-section.funx-card.invite-appear .invite-main-card-clean,
.invite-section.funx-card.invite-appear .invite-feature-item-clean,
.invite-section.funx-card.invite-appear .invite-calculator-wrapper {
  opacity: 1;
  transform: translateY(0);
}
.invite-section.funx-card.invite-appear .invite-main-card-clean { transition-delay: .04s; }
.invite-section.funx-card.invite-appear .invite-feature-item-clean:nth-child(1) { transition-delay: .08s; }
.invite-section.funx-card.invite-appear .invite-feature-item-clean:nth-child(2) { transition-delay: .12s; }
.invite-section.funx-card.invite-appear .invite-feature-item-clean:nth-child(3) { transition-delay: .16s; }
.invite-section.funx-card.invite-appear .invite-calculator-wrapper { transition-delay: .20s; }

/* Footer ripple press feedback */
.footer-modern .footer-cert-trigger,
.footer-modern .footer-quicklink,
.footer-modern #cert-trigger {
  position: relative;
  overflow: hidden;
}
.footer-modern .footer-cert-trigger::after,
.footer-modern .footer-quicklink::after,
.footer-modern #cert-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at var(--rx,50%) var(--ry,50%), rgba(255,255,255,.25), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.footer-modern .footer-cert-trigger:active::after,
.footer-modern .footer-quicklink:active::after,
.footer-modern #cert-trigger:active::after { opacity: 1; transition: none; }

/* Enforce activity logos hidden even if inline tries to show */
#activity-logos { display: none !important; height: 0 !important; padding: 0 !important; margin: 0 !important; }
/* ========== Overrides: Buttons & Invite flattening & Cookie ========== */
/* 1) 游戏/活动Tab按钮更精致、更有间距节奏 */
.game-tabs { gap: 0.8rem !important; }
.game-tab { padding: 0.7rem 0.6rem !important; letter-spacing: .3px; }
.game-tab.active { transform: translateY(-2px) scale(1.05) !important; }

.activity-tabs { gap: 0.6rem 0.6rem !important; }
.activity-tab { border-radius: 999px !important; padding: 0.7rem 1.1rem !important; }
.activity-tab.active { transform: translateY(-2px) scale(1.04) !important; }

@media (max-width: 480px) {
  .game-tab { font-size: 0.98rem !important; padding: 0.6rem 0.4rem !important; }
  .activity-tab { font-size: 0.8rem !important; padding: 0.55rem 0.9rem !important; }
}

/* 更清晰的键盘可访问性焦点样式 */
:where(a, button, .game-tab, .activity-tab, .funx-btn, .footer-quicklink, #cert-trigger):focus-visible {
  outline: 3px solid rgba(34,197,94,.6);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}

/* 2) 邀请裂变容器扁平化视觉：减少“层层容器”的厚重感 */
.invite-section.funx-card { box-shadow: 0 4px 16px rgba(2,6,23,0.04) !important; border: 1px solid rgba(2,6,23,0.06) !important; }
.invite-main-card-clean { box-shadow: none !important; border: none !important; padding-top: 0.25rem !important; }
.invite-feature-unified-bg-clean { box-shadow: none !important; border-color: rgba(2,6,23,0.05) !important; background: linear-gradient(180deg,#fafafa 0%,#ffffff 100%) !important; }
.invite-detail-inner-block-clean { box-shadow: none !important; border-color: rgba(2,6,23,0.05) !important; }
.model-desc-card { box-shadow: none !important; }
.player-showcase-card { box-shadow: none !important; }

/* 容器间距统一收紧一点，避免层层间距叠加显厚重 */

.invite-detail-inner-block { padding: 0.75rem 0.6rem !important; }

/* CTA 统一更突出且留白更充分 */
.invite-cta-wrap { margin-top: 0.75rem !important; }
.invite-cta-inner { padding: 0.25rem !important; }
.invite-cta-btn-lg { padding: 0.8rem 1.2rem !important; border-radius: 999px !important; }

/* 3) Cookie声明条由JS控制显示隐藏；不再强制 display，避免 !important 阻止关闭 */
/* 保留基础样式见 .cookie-bar 规则 */
body { padding-bottom: 0; }

/* =============== Flat UI（零风险扁平化开关） ===============
   给 <body> 添加 .flat-ui 即可启用，移除则还原。仅弱化阴影/渐变/边框，不改变布局结构。 */
.flat-ui .funx-card,
.flat-ui .invite-section.funx-card,
.flat-ui .services-section.funx-card,
.flat-ui .feature-card,
.flat-ui .fc-bar,
.flat-ui .fc-blue, .flat-ui .fc-purple, .flat-ui .fc-yellow,
.flat-ui .activity-info.funx-card,
.flat-ui .game-tabs .game-tab,
.flat-ui .activity-tabs .activity-tab,
.flat-ui .invite-main-card-clean,
.flat-ui .invite-feature-unified-bg-clean,
.flat-ui .invite-detail-inner-block-clean,
.flat-ui .model-desc-card,
.flat-ui .player-showcase-card,
.flat-ui .footer-modern .footer-cert-trigger,
.flat-ui .footer-modern .footer-quicklink,
.flat-ui .footer-modern #cert-trigger {

  /* 扁平化降级：弱化阴影、边框、背景渐变 */
  box-shadow: none !important;
  border-color: rgba(2,6,23,0.06) !important;
  background-image: none !important;
  backdrop-filter: none !important;
}

/* 渐变弱化为纯色，避免层次感过强 */
.flat-ui .invite-feature-unified-bg-clean,
.flat-ui .model-desc-card,
.flat-ui .player-showcase-card,
.flat-ui .feature-card,
.flat-ui .fc-blue, .flat-ui .fc-purple, .flat-ui .fc-yellow,
.flat-ui .fc-bar,
.flat-ui .footer-icon-green,
.flat-ui .footer-icon-blue {
  background: #ffffff !important;
}

/* 边框减淡，圆角统一中性 */
.flat-ui .funx-card,
.flat-ui .invite-feature-unified-bg-clean,
.flat-ui .invite-detail-inner-block-clean,
.flat-ui .model-desc-card,
.flat-ui .player-showcase-card {
  border-color: rgba(2,6,23,0.06) !important;
  border-width: 1px !important;
  border-radius: 12px !important;
}

/* CTA按钮仍保持可点击感，但弱化发光 */
.flat-ui .invite-cta-btn,
.flat-ui .banner-cta-btn,
.flat-ui .nav-download,
.flat-ui .support-btn {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}
.flat-ui .invite-cta-btn:hover,
.flat-ui .banner-cta-btn:hover,
.flat-ui .nav-download:hover,
.flat-ui .support-btn:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}

/* Tab 视觉更“扁”：去除浮起缩放，仅颜色区分态 */
.flat-ui .game-tab,
.flat-ui .activity-tab {
  transform: none !important;
}
.flat-ui .game-tab.active,
.flat-ui .activity-tab.active {
  transform: none !important;
  filter: none !important;
}

/* Cookie Bar 在扁平模式下也不遮挡内容 */
body.flat-ui { padding-bottom: 0; }

/* a11y: 可聚焦元素使用清晰的可见焦点 */
:focus-visible {
  outline: 3px solid rgba(59,130,246,0.45);
  outline-offset: 2px;
}

/* 减少动效模式：尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Footer 18+ 徽章在扁平模式下的可读性修复 */
.flat-ui .footer-icon-blue,
.flat-ui .footer-icon-green {
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,0.12) !important; /* 细边框提升轮廓 */
}
.flat-ui .footer-age-mark { color: #0f172a !important; }

/* ===== Partners override: hide name text and green dot below logos ===== */
.partners-section .partner-card-name,
.partners-section .partner-brand-dot {
  display: none !important;
}

/* ===== Footer 18+ badge color fixes ===== */
.footer-modern .footer-icon-circle.footer-icon-blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%) !important;
  border: 1px solid rgba(59,130,246,0.35) !important;
}
.footer-modern .footer-age-mark {
  color: #ffffff !important;
}
.footer-modern .footer-age-label {
  color: #10b981 !important; /* brand green */
  font-weight: 700 !important;
}

/* ====================================
   Global: Centered premium section headers (dual lines)
   ==================================== */
.section-header {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: center !important;
  text-align: center !important;
}
.section-header .section-header-line {
  height: 2px !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, var(--funx-accent) 0%, var(--funx-accent-2) 100%) !important;
  box-shadow: 0 0 0.5px rgba(6,182,212,0.25), 0 0 6px rgba(34,197,94,0.12) inset !important;
  margin: 0 !important;
}
/* 放置到左右两侧网格列 */
.section-header .section-header-line:first-child { grid-column: 1 !important; }
.section-header .section-header-line:last-child { grid-column: 3 !important; }

.section-header .section-header-title {
  grid-column: 2 !important;
  margin: 0 !important;
  color: var(--funx-title-color) !important;
  font-weight: 800 !important;
}

/* Premium typography tightening */
.funx-subtitle, .section-header-sub, .activity-description { max-width: 58ch; margin-left: auto; margin-right: auto; }
.invite-sub-clean { max-width: 56ch; }
.activity-description { line-height: 1.6; }
.invite-tip-text { line-height: 1.55; }

/* =====================
   Bengali (bn) layout fixes
   ===================== */
html[lang="bn"] body {
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Banner text size/spacing tuning for Bengali */
html[lang="bn"] .fullscreen-banner .banner-title { font-size: 2rem; line-height: 1.25; letter-spacing: 0; }
html[lang="bn"] .fullscreen-banner .banner-subtitle { font-size: 1.15rem; }
html[lang="bn"] .fullscreen-banner .banner-date { font-size: 0.95rem; }
html[lang="bn"] .fullscreen-banner .banner-cta { font-size: 1rem; padding: 0.65em 2em; }

/* Tabs: allow wrap and normalize text */
html[lang="bn"] .game-tabs,
html[lang="bn"] .activity-tabs { flex-wrap: wrap; row-gap: 0.5rem; }
html[lang="bn"] .game-tab,
html[lang="bn"] .activity-tab { white-space: normal; line-height: 1.3; padding: 0.6rem 0.9rem; }

/* Primary buttons slightly smaller to reduce wrapping */
html[lang="bn"] .invite-cta-btn,
html[lang="bn"] .banner-cta-btn,
html[lang="bn"] .nav-download { font-size: 0.95rem; }

/* Titles and paragraphs line-height */
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3,
html[lang="bn"] .section-title, html[lang="bn"] .section-subtitle { line-height: 1.3; }
html[lang="bn"] p { line-height: 1.7; }

/* ==============================
   Small-screen finetune (<=414px, <=360px)
   Tighten paddings and font sizes to reduce wrapping on very narrow devices
============================== */
@media (max-width: 414px) {
  /* Buttons */
  .funx-btn--lg { padding: 0.72rem 1.1rem; font-size: 1rem; }

  /* Nav spacing */
  .navbar-menu { gap: 0.3rem; }
  .navbar-menu a { font-size: 0.92rem; }

  /* Section titles */
  .section-header-title { font-size: 1.15rem; line-height: 1.25; }

  /* Game link pill */
  .game-link { font-size: 0.95rem; padding: 0.5rem 0.75rem; }
  .game-link-desc { font-size: 0.9rem; }

  /* Footer certificate links (pills) */
  .cert-footer-links .funx-link { padding: 4px 8px; font-size: 9.5px; }

  /* Feature badges on service cards */
  .feature-badge { font-size: 0.72rem; padding: 0.25rem 0.5rem; }
}

@media (max-width: 360px) {
  /* Buttons */
  .funx-btn--lg { padding: 0.66rem 1rem; font-size: 0.98rem; }

  /* Banner heading subtle downscale */
  .fullscreen-banner .banner-title { font-size: 1.75rem; }
  .fullscreen-banner .banner-subtitle { font-size: 1.05rem; }

  /* Nav spacing */
  .navbar-menu { gap: 0.25rem; }
  .navbar-menu a { font-size: 0.9rem; }

  /* Section titles */
  .section-header-title { font-size: 1.05rem; }

  /* Game link pill */
  .game-link { font-size: 0.9rem; padding: 0.45rem 0.65rem; }
  .game-link-desc { font-size: 0.86rem; }

  /* Footer certificate links (pills) */
  .cert-footer-links .funx-link { padding: 3px 7px; font-size: 9px; }

  /* Feature badges */
  .feature-badge { font-size: 0.68rem; }
}
.fullscreen-banner .banner-title {
  text-shadow: 0 3px 8px rgba(0,0,0,.45), 0 12px 32px rgba(0,0,0,.4);
}
.fullscreen-banner .banner-subtitle {
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.fullscreen-banner-picture, .fullscreen-banner-picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================
  Premium add-ons (Invite / Services / Footer)
  ============================= */
/* Invite trust chips */
.invite-trust-chips { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .6rem; }
.trust-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 999px; font-size: .88rem; color: #0f172a; background: linear-gradient(180deg, #ffffff, #f8fafc); border: 1px solid rgba(2,6,23,.06); box-shadow: 0 4px 16px rgba(2,6,23,.06); }
.trust-chip i { color: #0ea5e9; }

/* Service highlights row */
.service-highlights { display: flex; gap: .6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
.service-highlight { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 10px; background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid rgba(2,6,23,.06); color: #0f172a; box-shadow: 0 4px 16px rgba(2,6,23,.06); }
.service-highlight i { color: #22c55e; }

/* Footer trust bar */
.footer-trust { margin: 1.2rem auto .6rem; padding: .8rem .6rem; position: relative; border-radius: 14px; background: linear-gradient(180deg,#ffffff 0%, #f8fafc 100%);  box-shadow: 0 8px 24px rgba(2,6,23,.05); }
.footer-trust::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 999px; background: linear-gradient(90deg,#60a5fa,#34d399,#a78bfa); opacity: .45; }
.footer-trust-title { text-align: center; font-weight: 700; color: #0f172a; margin-bottom: .5rem; }
.footer-trust-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; align-items: center; justify-items: center; }
@media (max-width: 520px) { .footer-trust-logos { grid-template-columns: repeat(4, 1fr); } }
.footer-trust-logos img { height: 28px; width: auto; opacity: .9; filter: saturate(0.9); }