body {
  background: #F5F5F5;
  color: #002244;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background: #E31837;
  color: #fff;
  padding: 1.5rem 2rem;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* 新增，便于绝对定位 */
}

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 3px;
}

.logo-img {
  width: 72px;
  height: 72px;
  vertical-align: middle;
  margin-right: 8px;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: normal;
  margin-left: 2rem;
}

.main-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  max-width: 900px; /* 原480px，改为更宽 */
  text-align: center;
}

button {
  background: #0071CE;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s;
}

button:hover {
  background: #005fa3;
}

.iframe-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 800px;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-left: auto;
  margin-right: auto;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  background: #f5f5f5;
}

@media (max-width: 800px) {
  .iframe-container {
    max-width: 100%;
    height: 400px;
  }
}

footer {
  margin-top: 3rem;
  padding: 1rem 0;
  text-align: center;
  color: #888;
  font-size: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
}

.game-category {
  margin-top: 2rem;
  text-align: left;
}
.game-category h2 {
  font-size: 1.3rem;
  color: #E31837;
  margin-bottom: 0.5rem;
}
.game-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.game-category li {
  margin-bottom: 0.5rem;
}
.game-category a {
  color: #0071CE;
  text-decoration: none;
  font-size: 1.08rem;
  transition: color 0.2s;
}
.game-category a:hover {
  color: #005fa3;
  text-decoration: underline;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-right a {
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}

.header-right a:hover {
  background: #f5f5f5;
  color: #E31837;
}

.game-category-nav {
  display: flex;
  gap: 1rem;
}

.category-link,
#langBtn {
  color: #fff;
  background: #E31837;
  padding: 0.4rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1.5;
  margin: 0;
}

.category-link:hover,
.category-link:focus,
#langBtn:hover,
#langBtn:focus {
  background: #b9152c;
  color: #fff;
}

.iframe-actions {
  margin: 1.2rem auto 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.iframe-actions button {
  background: #E31837;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.iframe-actions button:hover,
.iframe-actions button:focus {
  background: #b9152c;
}

@media (max-width: 600px) {
  .header-right {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
}