.game {
    width: 100%;
    height: 100%;
}
.game .gameBox {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
.game .gameBox ul {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 16px;
    list-style: none;
}
.game .gameBox ul li {
    cursor: pointer;
    padding: 10px 15px;
    position: relative;
}
.game .gameBox ul li a {
    position: relative;
    z-index: 5;
    color: #333;
    text-decoration: none;
}
.game .gameBox ul li.active::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 2px;
    background: #4ed462;
    z-index: 1;
}
/* .game .gameBox .gameList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    color: #fff;
}
.game .gameBox .gameList .gamesItem {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 1px 1px 10px 1px rgba(48,147,63,0.10);
    padding: 10px;
    border-radius: 10px;
}
.game .gameBox .gameList .gamesItem:hover {
  transform: translateY(-6px);
}
.game .gameBox .gameList .gamesItem img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
}
.game .gameBox .gameList .gamesItem .gamesDesc{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  width: 100%;
  min-width: 0;
}
.game .gameBox .gameList .gamesItem .gamesDesc span{
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 14px;
  color: #333;
}
.game .gameBox .gameList .gamesItem .gamesDesc button,
.game .gameBox .gameList .gamesItem button {
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #4ed462, #30933f 98%);
  color: #fff;
  max-width: fit-content;
} */

/* 移动端样式区域 */
.mobileCard {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.mobileCard .mobileItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .1);
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  min-width: 0;
  /* margin: 10px 0; */
}
.mobileCard .mobileItem .mobileLeft {
  display: flex;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.mobileCard .mobileItem .mobileLeft .gamesDesc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #333;
  min-width: 0;
  width: 100%;
}
.mobileCard .mobileItem .mobileLeft .gamesDesc span {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.mobileCard .mobileItem .mobileLeft .gamesDesc p span {
  line-height: 12px;
  display: inline-block;
  text-align: center;
  border-radius: 8px;
  padding: 3px;
  transform: scale(0.88);
  max-height: fit-content;
  max-width: fit-content;
}
.mobileCard .mobileItem .mobileLeft .gamesDesc p span:first-child{
  color: #30933f;
  border: 1px solid #30933f;
}
.mobileCard .mobileItem .mobileLeft .gamesDesc p span:nth-child(2){
  color: #ffba00;
  border: 1px solid #ffba00;
}
.mobileCard .mobileItem .mobileLeft .gamesDesc p span:last-child{
  color: #a560ce;
  border: 1px solid #a560ce;
}
.mobileCard .mobileItem .mobileLeft .game-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.mobileCard .mobileItem .mobileBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: fit-content;
}
.mobileCard .mobileItem .mobileBtn button {
  border: none;
  padding: 3px 5px;
  font-size: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #4ed462, #30933f 98%);
  color: #fff;
  min-width: fit-content;
  max-height: fit-content;
}

@media screen and (max-width: 992px) {
    .game .gameBox {
        width: 100%;
    }
    .game .gameBox ul {
        height: auto;                
        flex-wrap: nowrap;           
        overflow-x: auto;            
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;       
        gap: 5px; 
    }
    .game .gameBox ul::-webkit-scrollbar {
        display: none;
    }
    .game .gameBox ul li {
        flex: 0 0 auto;           
        font-size: 14px;
        padding-bottom: 10px;
        background: none;
    }
    .game .gameBox ul li.active::after {
        display: none;       
    }
    .game .gameBox ul li.active {
        border: none;                     
        position: relative;
    }
    .game .gameBox ul li.active::before {
        content: '';
        position: absolute;
        bottom: 2px;                       
        left: 50%;
        transform: translateX(-50%);
        width: 100%;                        
        height: 2px;
        background: #4ed462;          
        border-radius: 1px;
    }
    .game .gameBox .gameList {
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 60px;
        gap: 0;
    }
    .mobileCard {
      display: grid;
      grid-template-columns: repeat(1,1fr);
      gap: 10px;
      /* margin: 10px 0; */
    }
    .mobileCard .mobileItem:last-child {
      margin-bottom: 50px;
    }
}