:root {
  --main: #e63946;
  --h1  : #f1faee;
}

* {
  margin     : 0;
  padding    : 0;
  box-sizing : border-box;
  font-family: "Montserrat-SemiBold", serif;
}

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

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

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

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

.center {
  display        : flex;
  justify-content: center;
  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;
}

a {
  text-decoration: none;
}

img {
  object-fit: cover;
  transition: opacity 0.3s ease;
}



header {
  background-color: var(--main);
  width           : 100%;
  display         : flex;
  align-items     : center;
  justify-content : center;
  position        : sticky;
  top             : 0;
  z-index         : 5;
}

.header_container {
  padding        : 15px 0;
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  width          : 100%;
  max-width      : 900px;
}

h1 {
  color    : var(--h1);
  font-size: 20px;
}

h2 {
  color        : var(--h1);
  font-size    : 18px;
  margin-bottom: 15px;
}

body::before {
  position        : fixed;
  content         : "";
  z-index         : -1;
  top             : 0;
  left            : 0;
  width           : 100%;
  height          : 100%;
  background-image: url("./assets/img/bg.png");
}

.header_logo {
  width : 36px;
  height: 36px;
  cursor: pointer;
}

.header_title {
  gap           : 10px;
  flex-direction: row;
}

section {
  padding: 10px 0;
}

.game_container {
  margin   : auto;
  max-width: 900px;
}

.game_wrapper {
  display              : grid;
  grid-template-columns: repeat(2, 1fr);
  gap                  : 20px;
}

.game_wrapper_2 {
  display              : grid;
  grid-template-columns: repeat(3, 1fr);
  gap                  : 8px;
}

.game_img {
  width        : 100%;
  aspect-ratio : 16/9;
  border-radius: 14px;
  object-fit   : cover;
}

.game_img_2 {
  width        : 100%;
  aspect-ratio : 1/1;
  border-radius: 14px;
  object-fit   : cover;
}

/* 跳转按钮样式 */
.more_games_btn {
  display         : inline-block;
  background-color: var(--main);
  color           : white;
  padding         : 12px 30px;
  text-decoration : none;
  border-radius   : 25px;
  font-size       : 16px;
  font-weight     : 600;
  margin          : 20px auto;
  text-align      : center;
  transition      : all 0.3s ease;
  box-shadow      : 0 4px 15px rgba(3, 98, 241, 0.3);
  cursor          : pointer;
}

.more_games_btn:hover {
  background-color: #0256d9;
  transform       : translateY(-2px);
  box-shadow      : 0 6px 20px rgba(3, 98, 241, 0.4);
}

.more_games_btn:active {
  transform : translateY(0);
  box-shadow: 0 2px 10px rgba(3, 98, 241, 0.3);
}

.about_container {
  margin       : 0 auto;
  max-width    : 900px;
  margin-bottom: 40px;
}

/* 页脚样式 */
footer {
  background-color: var(--main);
  border-top      : 2px solid #e6e6e6;
  padding         : 20px;
  text-align      : center;
}

footer img {
  width        : 64px;
  height       : 64px;
  margin-bottom: 15px;
}

footer nav {
  margin-bottom: 15px;
}

footer nav a {
  text-decoration: none;
  margin         : 0 10px;
  font-size      : 14px;
  color          : #fff;
}

footer nav a:hover {
  opacity: 0.8;
}

footer p {
  font-size  : 12px;
  font-weight: 600;
  margin     : 0;
  color      : #fff;
}

@media screen and (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  .header_container {
    padding: 0;
  }

  section {
    padding: 10px;
  }

  .game_wrapper {
    gap: 10px;
  }

  .more_games_btn {
    padding  : 10px 25px;
    font-size: 14px;
    margin   : 15px auto;
  }

  footer {
    padding: 15px;
  }

  footer img {
    width        : 48px;
    height       : 48px;
    margin-bottom: 10px;
  }

  footer nav a {
    display  : block;
    margin   : 5px 0;
    font-size: 13px;
  }
}