/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #333;
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  color: #fff;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* 头部和导航 */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

/* PC端导航 - 透明样式 */
.pc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 80px;
  gap: 50px;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  transition: color 0.3s;
}

.main-nav {
  flex-grow: 1;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav a {
  position: relative;
  margin: 0 30px;
  min-width: 56px;
  height: 80px;
  line-height: 80px;
  opacity: 1;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: #7e7e7e;
  cursor: pointer;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #ff9d42;
}

/* 滚动时添加背景色 */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
}

/* 确保菜单按钮在滚动时仍然可见 */
header.scrolled .menu-toggle {
  z-index: 1002;
}

/* 确保移动菜单在滚动时仍然正常工作 */
header.scrolled .mobile-menu-overlay {
  z-index: 1001;
}

/* 确保菜单背景遮罩在滚动时正常工作 */
header.scrolled .menu-backdrop {
  z-index: 1000;
}

/* PC导航响应滚动的样式变化 */
header.scrolled .main-nav a {
  color: #333;
}

header.scrolled .logo span {
  color: #333;
}

header.scrolled .menu-icon,
header.scrolled .menu-icon:before,
header.scrolled .menu-icon:after {
  background-color: #333;
}

header.scrolled .menu-toggle.active .menu-icon {
  background-color: transparent;
}

header.scrolled .mobile-nav {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 50px;
  color: #333;
  font-size: 14px;
  position: relative;
  transition: background-color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-selector:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 滚动时的语言选择器样式 */
header .language-selector {
  background-color: rgba(241, 241, 241, 0.7);
  border-color: transparent;
}

.language-selector i {
  font-size: 16px;
  margin-right: 5px;
  color: #444;
}

.language-selector span {
  font-weight: 500;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin-top: 10px;
  min-width: 120px;
  display: none;
  z-index: 1001;
}

/* 由于我们使用JavaScript控制下拉菜单，因此移除hover行为 */
/*.language-selector:hover .language-dropdown {
    display: block;
}*/

.language-option {
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.language-option:hover {
  background-color: #f5f5f5;
}

.language-option.active {
  color: #ff9d42;
  font-weight: 500;
}

/* 移动端导航 */
.mobile-nav {
  display: none;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-nav .logo img {
  height: 36px;
}

.mobile-nav .logo span {
  font-size: 1.3rem;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle {
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f5f5f5;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-icon,
.menu-icon:before,
.menu-icon:after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  position: absolute;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-icon {
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon:before {
  content: "";
  top: -6px;
}

.menu-icon:after {
  content: "";
  bottom: -6px;
}

.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon:before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon:after {
  bottom: 0;
  transform: rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

/* 修复body处理 */
body.menu-closing {
  overflow: hidden;
  pointer-events: none;
  /* 防止菜单关闭期间触发点击 */
}

/* 确保关闭动画过程中样式正确 */
body.menu-closing .mobile-menu-overlay {
  z-index: 1001 !important;
  visibility: visible !important;
}

body.menu-closing .menu-backdrop {
  z-index: 1000 !important;
  opacity: 0;
  visibility: visible !important;
  transition: opacity 0.3s ease;
}

/* 移动端菜单样式改进 */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90%;
  /* 增加宽度 */
  max-width: 420px;
  /* 增加最大宽度 */
  height: 100%;
  background-color: #ffffff;
  display: none !important;
  /* 始终隐藏移动菜单 */
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 1.5rem 2rem;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 针对小屏幕的调整 */
@media (max-width: 480px) {
  .mobile-menu-overlay {
    width: 100%;
    /* 在小屏幕上占满全屏 */
    max-width: none;
  }
}

/* 强制菜单和背景在所有状态下保持最高层级 */
body.menu-open .mobile-menu-overlay,
body.menu-closing .mobile-menu-overlay,
header.scrolled .mobile-menu-overlay {
  z-index: 1001 !important;
}

body.menu-open .menu-backdrop,
body.menu-closing .menu-backdrop,
header.scrolled .menu-backdrop {
  z-index: 1000 !important;
}

body.menu-open .menu-toggle,
body.menu-closing .menu-toggle,
header.scrolled .menu-toggle {
  z-index: 1002 !important;
}

/* 菜单打开时的背景遮罩 */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  -webkit-tap-highlight-color: transparent;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: none !important;
  /* 始终隐藏背景遮罩 */
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
  display: block;
  /* 显示遮罩 */
}

body.menu-open .mobile-menu-overlay {
  transform: translateX(0);
}

.mobile-menu-overlay nav {
  width: 100%;
  margin: 0 auto;
}

.mobile-menu-overlay ul {
  list-style: none;
  padding: 10px 0;
}

.mobile-menu-overlay li {
  border-bottom: 1px solid #f1f1f1;
}

.mobile-menu-overlay a {
  color: #333;
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 15px 0;
  transition: color 0.2s ease;
  text-align: left;
}

.mobile-menu-overlay a:hover {
  color: #ff9d42;
}

.overlay-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.overlay-actions .language-selector {
  color: #333;
  font-size: 0.9rem;
  background-color: #f1f1f1;
}

/* 英雄区块 - 动画和特效 */
@keyframes float {

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

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background: #fff;
  color: #333;
  padding: 8rem 5% 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 1440px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  animation: fadeInUp 1s ease-out;
}

.hero-content .gradation-1 {
  position: absolute;
  z-index: -1;
  width: 2351px;
  height: 1075px;
  border-radius: 50%;
  left: calc(50% - 1191.29px);
  bottom: -950px;
  background: #ffe1c5;
  -webkit-filter: blur(75px);
  filter: blur(75px);
}

.hero-content .gradation-2 {
  position: absolute;
  z-index: -1;
  width: 542px;
  height: 733px;
  left: 0;
  bottom: -700px;
  background: #c4ffda;
  -webkit-filter: blur(75px);
  filter: blur(75px);
  -webkit-transform: rotate(38.04deg);
  transform: rotate(38.04deg);
}

.hero-phone {
  position: relative;
  z-index: 10;
  margin: 0 auto 3rem;
  max-width: 250px;
  animation: float 6s ease-in-out infinite;
}

.hero-phone::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}

.hero-phone img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.app-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.app-icon {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 36px;
  transition: all 0.5s ease;
}

.app-icon.icon1 {
  top: 28%;
  left: 4%;
  filter: blur(5px);
  opacity: .5;
  animation: pulse 8s ease-in-out infinite;
}

.app-icon.icon2 {
  top: 10%;
  right: 20%;
  animation: float 7s ease-in-out infinite 1s;
}

.app-icon.icon3 {
  top: 10%;
  left: 20%;
  animation: float 9s ease-in-out infinite 0.5s;
}

.app-icon.icon4 {
  top: 60%;
  right: 33%;
  width: 100px;
  height: 100px;
  animation: pulse 10s ease-in-out infinite 2s;
  border-radius: 20px;
}

.app-icon.icon5 {
  top: 24%;
  right: 2%;
  filter: blur(5px);
  opacity: .5;
  animation: pulse 12s ease-in-out infinite 1.5s;
}

.hero-title {
  color: #000;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 4px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff9d42, #ff7b00);
  border-radius: 2px;
}

.hero-subtitle {
  color: #555;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.app-store-btn {
  display: inline-block;
  height: 48px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-store-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s;
}

.app-store-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-store-btn:hover::before {
  opacity: 1;
  animation: rotate 1s forwards;
}

.app-store-btn img {
  height: 100%;
  width: auto;
}

.features {
  position: relative;
  overflow: hidden;
  background: -webkit-gradient(linear, left top, left bottom, from(#ff9d42), color-stop(32.6%, #ffe1c5), color-stop(65%, #fff8e6), to(#fff));
  background: linear-gradient(180deg, #ff9d42, #ffe1c5 32.6%, #fff8e6 65%, #fff);
}

.features section {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  height: 680px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: #1b1d38;
  padding: 276px 130px 0;
}

.features .feature-games section:first-of-type {
  padding: 152px 130px 0;
  color: #fff;
}

.features .feature-games .games-section {
  margin-top: 100px;
}

.features section .title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
}

.features .feature-games .bg-overlay {
  position: absolute;
  top: 30px;
  right: calc(-800px + 50vw);
  width: 100%;
  height: 660px;
  background: url("../images/section-1-bg.png") 100% / contain no-repeat;
  mix-blend-mode: overlay;
}

.features .section-1-ip {
  position: absolute;
  z-index: 1;
  width: 1022px;
  height: 680px;
  top: 0;
  right: 0;
}

.features .section-scene-container {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 139px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.features .section-scene-container .section-scene {
  width: 380px;
  height: 176px;
}

.features .align-right {
  padding-left: 830px;
}

.features .scene-left {
  height: 550px;
  position: absolute;
  top: 0;
  left: 130px;
  width: 380px;
  display: flex;
  justify-content: center;
}

.features .section-2-extra1 {
  position: absolute;
  top: 168px;
  left: -2px;
  width: 121px;
  height: 176px;
}

.features .section-2-extra2 {
  position: absolute;
  top: 425px;
  right: -40px;
  width: 197px;
  height: 186px;
}

.features .scene-right {
  height: 550px;
  position: absolute;
  top: 0;
  right: 130px;
  width: 380px;
  display: flex;
  justify-content: center;
}

.features .section-3-extra1 {
  position: absolute;
  top: 420px;
  left: 550px;
  height: 400px;
}

.features .bottom-sharp {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 438px;
  background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(hsla(0, 0%, 96%, 0)));
  background: linear-gradient(180deg, #f4f4f4, hsla(0, 0%, 96%, 0));
}

.features .bottom-sharp .sharp {
  position: absolute;
  top: -233px;
  left: 50%;
  width: 2684px;
  height: 233px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.features .more-game {
  position: relative;
  height: 250px;
  background-color: #fff;
  overflow: hidden;
}

.more-game .game-icons-container {
  position: relative;
  height: 200px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.game-icons-container .game-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  position: absolute;
  transform: translateX(100vw);
  animation: slideFromRight 30s linear infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
  cursor: pointer;
}

.game-icons-container .game-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.game-icons-container .game-icon:nth-child(1) {
  top: 40px;
  animation-delay: 0s;
  animation-duration: 28s;
}

.game-icons-container .game-icon:nth-child(2) {
  top: 40px;
  animation-delay: 4s;
  animation-duration: 32s;
}

.game-icons-container .game-icon:nth-child(3) {
  top: 40px;
  animation-delay: 8s;
  animation-duration: 30s;
}

.game-icons-container .game-icon:nth-child(4) {
  top: 40px;
  animation-delay: 12s;
  animation-duration: 34s;
}

.game-icons-container .game-icon:nth-child(5) {
  top: 40px;
  animation-delay: 16s;
  animation-duration: 29s;
}

.game-icons-container .game-icon:nth-child(6) {
  top: 40px;
  animation-delay: 20s;
  animation-duration: 31s;
}

.features .socials {
  position: relative;
  background: -webkit-gradient(linear, left top, left bottom, from(#5ad295), color-stop(38%, #deffed), color-stop(76%, #fff));
  background: linear-gradient(180deg, #5ad295, #deffed 38%, #fff 76%);
}

.features .socials section:first-of-type {
  padding: 152px 130px 0;
  height: 841px;
  color: #fff;
}

.features .socials .bg-overlay {
  position: absolute;
  top: 0;
  right: calc(-900px + 50vw);
  width: 100%;
  height: 900px;
  background: url("../images/section-5-bg.png") 100% / contain no-repeat;
  mix-blend-mode: overlay;
}

.features .section-5-ip {
  position: absolute;
  z-index: 1;
  width: 800px;
  top: 0;
  right: 0;
}

.features .section-5-scene-container {
  position: relative;
  z-index: 2;
  margin-top: 74px;
}

.features .section-5-scene-container .section-5-scene1,
.features .section-5-scene-container .section-5-scene2 {
  height: 450px;
}

.features .section-5-scene-container .section-5-scene1 {
  position: relative;
  left: 900px;
}

.features .section-6-extra1 {
  position: absolute;
  height: 200px;
  top: 100px;
  right: 150px;
}

.features .section-7-extra1 {
  position: absolute;
  height: 160px;
  top: 120px;
  left: 380px;
}

.features .section-8-extra1 {
  position: absolute;
  width: 180px;
  top: 110px;
  right: 550px;
}

/* 游戏图标从右向左滑动动画 */
@keyframes slideFromRight {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100vw);
  }
}

/* 页脚 */
footer {
  background-color: #fff2e6;
}

footer .ip-icons {
  width: 100vw;
  height: 96px;
  background: url("../images/ip-icons.png") 50% / cover repeat-x;
  -webkit-animation: bgScroll 200s linear infinite;
  animation: bgScroll 200s linear infinite;
}

@keyframes bgScroll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 3000px 0;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
}

.app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-block;
  height: 48px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-store-btn:hover {
  transform: translateY(-3px);
}

.app-store-btn img {
  height: 100%;
  width: auto;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ff9d42;
  color: #fff;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: #ff7b00;
}

.copyright {
  margin-top: 60px;
  width: 100%;
  height: 80px;
  background-color: #fff;
  padding: 0 80px;
  font-size: 14px;
  font-weight: 500;
  color: #999cb4;
  line-height: 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.copyright-text {
  display: flex;
  gap: 40px;
}

.legal-links a {
  color: #00ccf9;
  font-size: 0.9rem;
  margin-right: 10px;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 8rem;
  }

  .app-buttons {
    justify-content: center;
  }

  .app-showcase {
    flex-direction: column;
    text-align: center;
  }

  .showcase-text h2 {
    text-align: center;
  }

  .feature-list li {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .feature-games img,
  .socials img {
    width: 300px !important;
  }

  .pc-nav {
    display: none;
  }

  .mobile-nav {
    padding: 10px 16px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .mobile-nav .logo {
    display: flex;
    align-items: center;
  }

  .mobile-nav .logo a {
    display: flex;
    align-items: center;
  }

  .mobile-menu-overlay {
    padding-top: 70px;
    padding-bottom: 80px;
    width: 100%;
  }

  body {
    padding-top: 56px;
    overflow-x: hidden;
    width: 100%;
  }

  .mobile-nav .logo img {
    height: 30px;
  }

  .mobile-nav .logo span {
    font-size: 1.1rem;
  }

  .charge-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .language-dropdown {
    width: 120px;
    right: 0;
  }

  .mobile-actions .language-selector {
    font-size: 12px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
  }

  .mobile-actions .language-selector i {
    margin-right: 5px;
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .app-buttons {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-content img {
    order: 2;
  }

  .footer-content .app-download-buttons {
    order: 1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .app-icon {
    width: 60px;
    height: 60px;
  }

  .hero-phone {
    max-width: 250px;
  }

  /* 修复移动端布局问题 */
  .hero {
    padding-top: 2rem;
    min-height: auto;
  }

  .hero-container {
    width: 100%;
  }

  .hero-content {
    max-width: 100%;
  }

  /* 修复hero区域溢出问题 */
  .hero-content .gradation-1,
  .hero-content .gradation-2 {
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    transform: none;
  }

  /* 优化H5模式下features模块 */
  .features {
    overflow-x: hidden;
    padding-bottom: 30px;
  }

  .features section {
    height: auto;
    padding: 30px 0px !important;
    overflow: hidden;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
  }

  .features section .title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .features section .desc {
    font-size: 16px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: #666;
  }

  .features .socials section:first-of-type {
    height: 100%;
  }

  .features .align-right {
    padding-left: 0;
    text-align: center;
  }

  /* 统一图片样式 */
  .features .section-1-ip,
  .features .scene-left,
  .features .scene-right,
  .features .section-5-ip,
  .features .section-5-scene-container img,
  .features .section-scene-container .section-scene,
  .features .section-5-scene1 {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 15px auto;
    display: block;
  }

  .features .scene-left,
  .features .scene-right,
  .features .section-5-scene1,
  .section-scene-container .section-scene {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 90% !important;
  }

  .features .section-5-scene1,
  .features .section-5-scene2 {
    height: auto !important;
  }

  /* 优化场景容器 */
  .features .section-scene-container {
    flex-direction: column;
    margin-top: 20px;
    align-items: center;
    gap: 15px;
  }

  .features .section-scene-container .section-scene {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
  }

  /* 强化视觉层次 */
  .features .section-5-scene-container {
    text-align: center;
    margin-top: 15px;
  }

  /* 隐藏装饰元素 */
  .features .section-2-extra1,
  .features .section-2-extra2,
  .features .section-3-extra1,
  .features .section-6-extra1,
  .features .section-7-extra1,
  .features .section-8-extra1,
  .features .section-5-ip {
    display: none;
  }

  /* 游戏图标区域优化 */
  .features .more-game {
    height: 200px;
    padding: 30px 0;
    background-color: #f8f8f8;
    border-radius: 0;
  }

  .more-game .game-icons-container {
    height: 100px;
  }

  .game-icons-container .game-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }

  .game-icons-container .game-icon:nth-child(1),
  .game-icons-container .game-icon:nth-child(2),
  .game-icons-container .game-icon:nth-child(3),
  .game-icons-container .game-icon:nth-child(4),
  .game-icons-container .game-icon:nth-child(5),
  .game-icons-container .game-icon:nth-child(6) {
    animation-duration: 20s;
  }

  /* 隐藏Google和Huawei的下载按钮 */
  .app-download-buttons a:nth-child(2),
  .app-download-buttons a:nth-child(3) {
    display: none;
  }

  /* 底部锯齿修复 */
  .features .bottom-sharp {
    display: none;
  }

  .copyright {
    height: auto;
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }

  .copyright-text {
    text-align: center;
    display: block;
    line-height: 30px;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-content .ip {
    max-width: 90%;
    height: auto;
  }

  /* 调整手机内图片的尺寸 */
  .hero-phone img {
    width: 100%;
    max-width: 250px;
  }

  /* 确保图片不会溢出容器 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 修复IP-icons的滚动效果 */
  footer .ip-icons {
    height: 48px;
    background-size: auto 100%;
  }

  /* 确保小屏幕上菜单项更易点击 */
  .mobile-menu-overlay a {
    padding: 18px 0;
    font-size: 16px;
  }

  /* 使菜单项视觉更清晰 */
  .mobile-menu-overlay li:last-child {
    border-bottom: none;
  }

  .features .feature-games .games-section {
    margin-top: 0px;
  }

  .features .feature-games .bg-overlay {
    top: -90px;
    right: 0;
  }
}

/* 为移动端下拉菜单添加样式 */
.mobile-actions .language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin-top: 10px;
  min-width: 120px;
  z-index: 1002;
}

.mobile-actions .language-selector span {
  display: inline-block;
  font-weight: bold;
  color: #333;
  font-size: 12px;
}

/* 粒子背景效果 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

  .hero-phone,
  .app-icon,
  .hero-content,
  .app-download-buttons,
  .particle {
    animation: none !important;
  }
}

/* 图片放大特效 */
.zoomable {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.zoomable:hover {
  transform: scale(1.05);
}

/* 放大图片的模态窗口 */
.modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal.show {
  opacity: 1;
  display: flex;
}

.modal-content {
  margin: 0 auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  object-fit: contain;
}

.modal-content.show {
  opacity: 1;
  transform: scale(1);
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1501;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 移动设备上的模态窗口调整 */
@media only screen and (max-width: 700px) {
  .modal-content {
    max-width: 95%;
  }
}

/* 模拟手机边框 */
.like-phone {
  border: 6px solid #000;
  border-radius: 30px;
}

.phone-bg {
  position: absolute;
  top: 220px;
  left: 0;
  width: 100%;
  height: 100%;
}

.game-2-bg {
  background: url("../images/game-2-bg.png") 100% / contain no-repeat;
}

.phone-1-bg {
  background: url("../images/phone-1-bg.png") 100% / contain no-repeat;
}

.phone-2-bg {
  z-index: -1;
  background: url("../images/phone-2-bg.png") 100% / contain no-repeat;
}

.phone-3-bg {
  background: url("../images/phone-3-bg.png") 100% / contain no-repeat;
}

