:root {
  --main-bg: #39013d;
  --footer: #7c0796c5;
  --font: #ffffff;
  --menu: #1a1a1a;
}

* {
  box-sizing: border-box;
}

#app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body {
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--font);
  background: var(--main-bg);
  background-size: contain;
}

html {
  font-size: 16px;
}

a {
  line-height: 20px;
  text-decoration: none;
  color: var(--a);
}

a:hover,
a:active {
  text-decoration: none;
}

strong {
  font-weight: bolder;
}

.fx-r {
  display: flex;
  flex-direction: row;
}

.fx-h {
  display: flex;
  flex-direction: column;
}

.fx-ac {
  justify-content: center;
}

.fx-bc {
  align-items: center;
}

/* 定义全局滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  border-radius: 4px;
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #c1c1c1;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 回到顶部按钮样式 */
#back-to-top {
  font-size: 24px;
  position: fixed;
  right: 20px;
  bottom: 20%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s;
  color: white;
  border: none;
  border-radius: 50%;
  background-color: #f3ac05;
  z-index: 10;
}

#back-to-top:hover {
  opacity: 0.8;
}

/* 搜索弹窗动画 */
.search-modal-enter-active,
.search-modal-leave-active {
  transition: opacity 0.3s;
}

.search-modal-enter,
.search-modal-leave-to {
  opacity: 0;
}

.search-modal-content-enter-active,
.search-modal-content-leave-active {
  transition: transform 0.3s ease;
}

.search-modal-content-enter,
.search-modal-content-leave-to {
  transform: translateX(100%);
}

.mainContainer {
  background: var(--main-bg);
}

.navContainer {
  padding: 10px;
  width: 100%;
  background: var(--main-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.searchInput {
  outline: none;
  border: none;
  border-radius: 30px;
  padding-left: 15px;
  background: rgba(255, 255, 255, 0.2);
  width: 50%;
}

.logo {
  width: 36px;
  height: 36px;
  margin-right: 10px;
}

.menu_icon {
  width: 24px;
  height: 24px;
}

.logo_long {
  width: 36px;
  height: 36px;
  margin-right: 10px;
}

.recommendGameContainer {
  width: 100%;
}

.gamename {
  font-family: "Nunito", "Nunito Fallback", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
}

.playBtn {
  background: #6842ff;
  font-size: 18px;
}

.back {
  z-index: 2;
  position: absolute;
  top: 5%;
  left: 5px;
  padding: 4px 10px;
  background-color: #fff;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;

  img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-size: 100% 100%;
  }
}

.gameImg {
}

.gameCard {
  width: calc(33.3% - 11px);
}

@media (max-width: 768px) {
}
