/* 全局样式重置与基础设置 */
* { box-sizing: border-box; } /* 统一盒模型计算方式 */

img {
  border: none !important; /* 移除所有图片边框 */
  outline: none !important; /* 移除所有图片轮廓 */
}
p {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif, Tahoma, Geneva, Verdana, sans-serif;
  background: #001c1f;      

  width: 100%;
  min-height: 100vh;

  position: relative;
  z-index: 1;
  left: 0;
  top: 0;
  
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}


/* 图片轮播区域样式 */
.image-slider {
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.image-slider.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.image-slider .slider-container {
  position: relative;
  width: 100%;
  height: 320px !important;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease-out;
  height: 100%;
  touch-action: pan-y;
  user-select: none;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7)); /* 渐变背景 */
  padding: 30px;
  color: white; /* 文字颜色 */
}

/* 轮播标题样式 */
.slider-title {
  font-size: 24px; /* 文字大小 */
  font-weight: 600; /* 文字粗细 */
  margin-bottom: 10px; /* 底部外边距 */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字阴影 */
}

/* 轮播描述样式 */
.slider-description {
  font-size: 16px; /* 文字大小 */
  opacity: 0.9; /* 透明度 */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* 文字阴影 */
}

/* 轮播指示器容器 */
.slider-dots {
  position: absolute; /* 绝对定位 */
  bottom: 20px; /* 底部20px */
  left: 50%; /* 左侧50% */
  transform: translateX(-50%); /* 水平居中 */
  display: flex; /* 使用Flex布局 */
  gap: 10px; /* 间距 */
}

/* 轮播指示器样式 */
.slider-dot {
  width: 10px; /* 宽度 */
  height: 10px; /* 高度 */
  border-radius: 50%; /* 圆形 */
  background: rgba(255,255,255,0.4); /* 背景色 */
  cursor: pointer; /* 鼠标指针 */
  transition: all 0.3s ease; /* 动画过渡效果 */
}

/* 活动状态的轮播指示器 */
.slider-dot.active {
  background: #ffffff; /* 白色背景 */
  transform: scale(1.3); /* 放大 */
  box-shadow: 0 0 10px rgba(255,255,255,0.5); /* 阴影效果 */
}

/* 鼠标悬停的轮播指示器 */
.slider-dot:hover {
  background: rgba(255,255,255,0.7); /* 背景色变亮 */
}

/* 触摸拖拽样式 */
.slider-track.dragging {
  transition: none; /* 禁用过渡效果 */
  cursor: grabbing; /* 鼠标指针 */
}

.slider-container.dragging {
  cursor: grabbing; /* 鼠标指针 */
}



.notice {
  font-size: 18px;
  color: #fff;
  text-align: center;

  padding: 18px 15px;
}

.notice-highlight {
  color: #018ffc;

  text-align: center;
  text-decoration: underline;
  text-decoration-color: #018ffc;
  text-underline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 27px 16px;
  position: relative;
  z-index: 2;

  padding: 18px;
}

.game-item {
  position: relative;

  max-width: 240px;
  text-align: center;

  background: radial-gradient(58.11% 49.11% at 10.27% 8.11%, #248174 0%, rgba(2, 112, 77, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, radial-gradient(53.78% 45.46% at 95.95% 97.75%, #027551 0%, rgba(2, 112, 77, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, linear-gradient(0deg, #154036, #154036);
  box-shadow: 4px 5.5px 4.95px rgba(0, 0, 0, 0.25), inset 3.5px 2.5px 2.9px rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  border: 2px solid #247973;

  padding-bottom: 13px;
}

.game-item__name {
  font-family: Arial, sans-serif, Tahoma, Geneva, Verdana;
  font-size: 20px;
  font-weight: bold;

  margin: 0 auto;
  padding: 0 10px;
  color: #fff;
  text-align: center;

  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.game-item__name.normal {
  margin-top: 16px;
}
.game-item__name.long-text {
  margin-top: 10px;
  font-size: 14px;
}

.game-item__img {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 111px;
  height: 111px;

  background: #001D20;
  
  border: 2px solid #FFFFFF;
  box-shadow: 0px 0px 4.7px #000000, 3px 6px 3.25px rgba(0, 0, 0, 0.4);
  border-radius: 20px;

  margin: 9px auto 0 auto;
  object-fit: cover;
}
.game-item__img img {
  display: block;
  width: 96px;
  height: 96px;
}

.game-item__btn {
  margin: 16px auto 0 auto;

  width: 127px;
  height: 37px;

  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-size: 16px;
  line-height: 19px;

  background: linear-gradient(1.33deg, #2F314B 1.2%, #464B69 23.76%, #6C7299 58.06%, #9AA2D4 81.08%, #A7ABE1 98.94%);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.62), 2px 7px 6.8px rgba(0, 0, 0, 0.51), inset 0px 4px 5px rgba(227, 229, 255, 0.71), inset 0px -5px 8.4px rgba(0, 0, 0, 0.5);
  border-radius: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #FCDD19;
  text-decoration: none;
  
  animation: bounce 2s ease-in-out infinite;
}

.game-item__popularity {
  margin-top: 13px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
}
.game-item .game-item__badge {
  position: absolute;
  top: 14px;
  left: 0;

  width: 60px;
  height: 26px;
}
.game-item .game-item__badge img {
  width: 100%;
}

.gold {
  color: #fdd11b
}
.white {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 关键帧 */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* 为不同按钮设置延迟效果 */
.game-item:nth-child(1) .game-item__btn { animation-delay: 0s; }
.game-item:nth-child(2) .game-item__btn { animation-delay: 0.2s; }
.game-item:nth-child(3) .game-item__btn { animation-delay: 0.4s; }
.game-item:nth-child(4) .game-item__btn { animation-delay: 0.6s; }
.game-item:nth-child(5) .game-item__btn { animation-delay: 0.8s; }
.game-item:nth-child(6) .game-item__btn { animation-delay: 1s; }
.game-item:nth-child(7) .game-item__btn { animation-delay: 1.2s; }
.game-item:nth-child(8) .game-item__btn { animation-delay: 1.4s; }
.game-item:nth-child(9) .game-item__btn { animation-delay: 1.6s; }
.game-item:nth-child(10) .game-item__btn { animation-delay: 1.8s; }
.game-item:nth-child(11) .game-item__btn { animation-delay: 2s; }
.game-item:nth-child(12) .game-item__btn { animation-delay: 2.2s; }



/* 社交媒体链接区域样式 */
.social-links {
  /* 半透明渐变背景 */
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  backdrop-filter: blur(20px); /* 毛玻璃效果 */
  -webkit-backdrop-filter: blur(20px); /* Safari浏览器支持 */
  margin-top: 40px; /* 顶部外边距 */
  padding: 20px 0; /* 内边距 */
  border-top: 1px solid rgba(255,255,255,0.1); /* 顶部边框 */
  opacity: 0; /* 初始透明 */
  transform: translateY(30px); /* 初始向下偏移 */
  transition: all 0.8s ease-out; /* 动画过渡效果 */
}

/* 社交媒体链接区域入场动画 */
.social-links.animate-in {
  opacity: 1; /* 完全不透明 */
  transform: translateY(0); /* 回到原位 */
}

/* 社交媒体链接容器 */
.social-container {
  max-width: 1200px; /* 最大宽度 */
  margin: 0 auto; /* 水平居中 */
  padding: 0 20px; /* 内边距 */
  text-align: center; /* 内容居中 */
}

/* 社交媒体标题 */
.social-title {
  color: #ffffff; /* 文字颜色 */
  font-size: 20px; /* 文字大小 */
  font-weight: 600; /* 文字粗细 */
  margin-bottom: 12px; /* 底部外边距 */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字阴影 */
}

/* 社交媒体副标题 */
.social-subtitle {
  color: #ffffff; /* 文字颜色 */
  font-size: 16px; /* 文字大小 */
  font-weight: 500; /* 文字粗细 */
  margin-bottom: 8px; /* 底部外边距 */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字阴影 */
}

/* 社交媒体描述 */
.social-description {
  color: rgba(153, 153, 153, 0.9); /* 文字颜色 */
  font-size: 13px; /* 文字大小 */
  margin-bottom: 6px; /* 底部外边距 */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* 文字阴影 */
  line-height: 1.4; /* 行高 */
}

/* 社交媒体图标容器 */
.social-icons {
  display: flex; /* 使用Flex布局 */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  gap: 25px; /* 间距 */
  flex-wrap: wrap; /* 自动换行 */
  margin-bottom: 20px; /* 底部外边距 */
}

/* 社交媒体文本容器 */
.social-text {
  text-align: center; /* 文字居中 */
}

/* 社交媒体链接样式 */
.social-link {
  display: flex; /* 使用Flex布局 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  padding: 15px; /* 内边距 */
  background: rgba(255,255,255,0.1); /* 背景色 */
  border: 2px solid rgba(255,255,255,0.2); /* 边框 */
  border-radius: 12px; /* 圆角 */
  color: #ffffff; /* 文字颜色 */
  text-decoration: none; /* 移除下划线 */
  transition: all 0.3s ease; /* 动画过渡效果 */
  width: 65px; /* 宽度 */
  height: 65px; /* 高度 */
  backdrop-filter: blur(10px); /* 毛玻璃效果 */
  -webkit-backdrop-filter: blur(10px); /* Safari浏览器支持 */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* 阴影效果 */
}

/* 社交媒体链接悬停效果 */
.social-link:hover {
  background: rgba(255,255,255,0.2); /* 背景色变亮 */
  border-color: rgba(255,255,255,0.4); /* 边框色变亮 */
  transform: translateY(-5px) scale(1.05); /* 向上偏移并放大 */
  box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* 阴影增强 */
}

/* 社交媒体图标样式 */
.social-link i {
  font-size: 28px; /* 图标大小 */
}

/* 指引图区域样式 */
.guide-section {
  padding: 30px 0; /* 内边距 */
  opacity: 0; /* 初始透明 */
  transform: translateY(30px); /* 初始向下偏移 */
  transition: all 0.8s ease-out; /* 动画过渡效果 */
}

/* 指引图区域入场动画 */
.guide-section.animate-in {
  opacity: 1; /* 完全不透明 */
  transform: translateY(0); /* 回到原位 */
}

/* 指引图容器 */
.guide-container {
  max-width: 800px; /* 最大宽度 */
  margin: 0 auto; /* 水平居中 */
  padding: 0 20px; /* 内边距 */
  text-align: center; /* 内容居中 */
}

/* 指引图标题 */
.guide-title {
  color: #ffffff; /* 文字颜色 */
  font-size: 24px; /* 文字大小 */
  font-weight: 600; /* 文字粗细 */
  margin-bottom: 20px; /* 底部外边距 */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字阴影 */
}

/* 指引图图片容器 */
.guide-image {
  margin: 30px 0; /* 外边距 */
  display: flex; /* 使用Flex布局 */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
}

/* 指引图图片样式 */
.guide-image img {
  max-width: 100%; /* 最大宽度 */
  height: auto; /* 高度自适应 */
  transition: all 0.3s ease; /* 动画过渡效果 */
}

/* 指引图图片悬停效果 */
.guide-image img:hover {
  transform: scale(1.02); /* 放大 */
  box-shadow: 0 12px 35px rgba(0,0,0,0.4); /* 阴影增强 */
}

/* 指引图描述 */
.guide-description {
  color: rgba(255,255,255,0.9); /* 文字颜色 */
  font-size: 16px; /* 文字大小 */
  font-weight: 500; /* 文字粗细 */
  margin-top: 20px; /* 顶部外边距 */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* 文字阴影 */
  line-height: 1.6; /* 行高 */
}

/* 社交媒体平台特定颜色 */
.social-link[title*="Whatsapp"]:hover {
  background: rgba(37, 211, 102, 0.3); /* WhatsApp绿色 */
  border-color: rgba(37, 211, 102, 0.6); /* 边框色 */
}

.social-link[title*="Telegram"]:hover {
  background: rgba(0, 136, 204, 0.3); /* Telegram蓝色 */
  border-color: rgba(0, 136, 204, 0.6); /* 边框色 */
}

.social-link[title*="Facebook"]:hover {
  background: rgba(24, 119, 242, 0.3); /* Facebook蓝色 */
  border-color: rgba(24, 119, 242, 0.6); /* 边框色 */
}

/* 客服图标样式 */
.service {
  position: fixed;
  bottom: 5px;
  right: 5px;
  z-index: 10;
  width: 64px;
  height: 64px;
  border-radius: 50%;

  background: url('./web/service-icon.png') no-repeat center center;
  background-size: 64px 64px;

  cursor: pointer;
}

.service-popup {
  position: absolute;
  z-index: 11;
  top: -266px;
  right: 0;

  width: 198px;
  height: 269px;
  
  background: url('./web/service-popup.png') no-repeat;
  background-size: 198px 269px;

  padding: 23px 20px 35px 20px;
  text-align: center;

  display: none;
}
.service-popup__title {
  color: #fff;

  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.service-item {
  text-decoration: none;
  outline: none;
  border: none;

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  margin-top: 16px;
  padding: 8px 16px 6px 16px;
  background-color: #027551;

  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  letter-spacing: -0.01em;
  color: #FFFFFF;

  background: linear-gradient(1.33deg, #2F314B 1.2%, #464B69 23.76%, #6C7299 58.06%, #9AA2D4 81.08%, #A7ABE1 98.94%);
  border: 1px solid #969ECF;
  box-shadow: 1px 3.5px 3.4px rgba(0, 0, 0, 0.51);
  border-radius: 8px;
}

.service-item__name {
  margin-left: 12px;
}


/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 自适应列数，最小宽度150px */
    gap: 27px 16px;
    padding: 18px 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    grid-template-columns: repeat(2, 1fr); /* 固定2列 */
    gap: 27px 16px;
    padding: 18px 20px;
  }

  .image-slider .slider-container {
    height: 180px !important;
  }
  .slider-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
}

/* 响应式设计 - 小屏幕手机 360 */
@media (max-width: 375px) {
  .container {
    grid-template-columns: repeat(2, 1fr); /* 固定2列 */
    gap: 27px 16px;
    padding: 18px 20px;
  }
  .image-slider .slider-container {
    height: 180px !important;
  }
  .slider-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .game-item__name {
    font-size: 18px;
  }
}
