main {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.container {
  max-width: 1440px;
  padding: 0;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  main {
    margin-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.game-container {
  background-color: #ffffff;
  position: relative;
  height: auto;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .game-container {
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
}

.mobile-game {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background-color: #000000;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .mobile-game {
    display: none;
  }
}
.video-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.video-container video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.4);
}
.game-cover {
  height: 50%;
  background-color: #000000;
}
.game-cover > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: -20%;
}
.game-cover > div > img {
  width: 50%;
  border-radius: 0.5rem;
  z-index: 10;
}
.game-cover > div > p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: center;
  z-index: 1;
}
.game-cover > div > button {
  width: 50%;
  background-image: linear-gradient(to right, #15803d, #2563eb);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.game-cover > div > button:hover {
  background-image: linear-gradient(to right, #166534, #1d4ed8);
}
.game-cover > div > button > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.game-cover > div > button > span > svg {
  width: 1.25rem;
  height: 1.25rem;
}
.game-cover > div > div {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  flex-direction: column;
}
.game-cover > div > div > p {
  padding: 0 1rem;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.game-container > h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: none;
}

#recommended-games-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background-color: #000000;
  padding: 0.5rem;
}
#recommended-games-container > #game-container {
  grid-column: span 2;
  grid-row: span 4;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding-bottom: 2.5rem;
  display: none;
}

@media (min-width: 640px) {
  #recommended-games-container > #game-container {
    grid-column: span 2;
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  #recommended-games-container > #game-container {
    grid-column: span 3;
    display: block;
  }
}

@media (min-width: 1024px) {
  #recommended-games-container > #game-container {
    grid-column: span 4;
  }
}

@media (min-width: 640px) {
  #recommended-games-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background-color: transparent;
  }
}

@media (min-width: 768px) {
  #recommended-games-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #recommended-games-container {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .game-container > h1 {
    display: block;
  }
}

iframe {
  width: 98%;
  border-radius: 15px;
  background-color: #eeeeee;
  height: 80%;
  margin: 0 auto;
}

#game-container div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  #game-container div {
    gap: 1rem;
  }
}

#fullscreen-btn {
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

#fullscreen-btn:hover {
  background-color: #2563eb;
}

@media (min-width: 768px) {
  #fullscreen-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
}

#restart-btn {
  background-color: #22c55e;
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

#restart-btn:hover {
  background-color: #16a34a;
}

@media (min-width: 768px) {
  #restart-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
}
#restart-btn svg {
  width: 1rem;
  height: 1rem;
}

article > section {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
article > section > h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2563eb;
  border-bottom: 1px solid rgba(229, 231, 235);
  padding-bottom: 0.5rem;
}
article > section > h2 > span {
  display: inline-block;
  margin-right: 0.5rem;
}
.introduction div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.introduction div p {
  color: #374151;
}

.features > .content,
.how-to-play > .content,
.tips > .content {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features > .content,
  .how-to-play > .content,
  .tips > .content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.features > .content > div,
.how-to-play > .content > div,
.tips > .content > div {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.features > .content > div,
.faq > .content > div {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 300ms ease;
}
.features > .content > div:hover,
.faq > .content > div:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.how-to-play > .content > div {
  border-left: 4px solid #3b82f6;
  transition: transform 300ms ease;
}

.how-to-play > .content > div:hover {
  transform: translateX(8px);
}

.tips > .content > div {
  border: 2px solid #3b82f6;
  transition: background-color 300ms ease;
}

.tips > .content > div:hover {
  background-color: #eff6ff;
}

.features > .content > div > h3,
.how-to-play > .content > div > h3,
.tips > .content > div > h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #3b82f6;
}

.features > .content > div > p,
.how-to-play > .content > div > p,
.tips > .content > div > p {
  color: #374151;
}
.faq > .content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.faq > .content > div {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}
.faq > .content > div > h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #3b82f6;
}
.faq > .content > div > p {
  color: #374151;
}

.cta .content {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}
.cta .content > p {
  color: #374151;
  margin-bottom: 1rem;
}
.cta .content > div {
  text-align: center;
  margin-top: 1.5rem;
}
.cta .content > div > a {
  display: inline-block;
  background-image: linear-gradient(to right, #15803d, #2563eb);
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  transition: all 300ms;
  transform: scale(1);
}
.cta .content > div > a:hover {
  background-image: linear-gradient(to right, #166534, #1d4ed8);
  transform: scale(1.05);
}
.cta .content > div > p {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 1rem;
}

.game-container iframe {
  display: none;
}

@media (min-width: 768px) {
  .game-container iframe {
    display: block;
  }
}

.mobile-fullscreen iframe {
  display: block !important; /* 全屏时强制显示 */
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 100%; */
  padding: 0 1.5rem;
}

.language-dropdown {
  position: relative;
  width: 100%;
  text-align: center;
}

.language-button {
  width: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.language-button:hover {
  color: #5ffd47;
}

.dropdown-arrow {
  width: 1rem;
  height: 1rem;
}

.dropdown-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  width: 12rem;
  background-color: #1a2335;
  border-radius: 0.375rem;
  box-shadow: 0 1px 1px -3px rgba(255, 255, 255, 0.1);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}

.language-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
}

.dropdown-item:hover {
  background-color: #3f4247;
}

.iframe-container-fullscreen {
  display: block;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 9999;
  background-color: rgb(0, 0, 0);
}
.iframe-fullscreen {
  display: block;
  width: 100vh;
  height: 100vw;
  transform: rotate(90deg);
  transform-origin: left top;
  position: absolute;
  top: 0px;
  left: 100%;
}
