/* 全局样式 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Press Start 2P', monospace, 'Microsoft YaHei', 'Noto Sans JP', 'Noto Sans KR', Arial, sans-serif;
  background: #0a1e3a;
  color: #fff;
  box-sizing: border-box;
}

/* 顶部导航栏样式 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #102c5a;
  border-bottom: 2px solid #1e4fa1;
}

.logo {
  font-size: 2rem;
  font-family: 'Press Start 2P', monospace;
  color: #4fc3f7;
  letter-spacing: 2px;
  user-select: none;
}

.lang-switcher {
  display: flex;
  gap: 12px;
}

.lang-btn {
  background: #1e4fa1;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-btn.active, .lang-btn:hover {
  background: #4fc3f7;
  color: #0a1e3a;
}

/* 主内容区样式 */
main {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 游戏容器样式 */
.game-container {
  position: relative;
  width: 85vw;
  height: 85vh;
  background: #222;
  overflow: hidden;
  margin: 0 auto; /* 居中显示 */
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 全屏按钮样式 */
.fullscreen-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: #4fc3f7;
  color: #0a1e3a;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px #0005;
  transition: background 0.2s;
}

.fullscreen-btn:hover {
  background: #1e4fa1;
  color: #fff;
}

/* 游戏截图区整体样式 */
.screenshots {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* 整个截图区居中 */
}

.screenshot-grid {
  display: flex;
  justify-content: center;   /* 图片横向居中 */
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 16px;
  width: 100%;
}

.screenshots img {
  display: block;
  margin: 0 auto;
  width: 290px;
  height: 163px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #4fc3f7;
  background: #fff1;
  transition: transform 0.2s;
}

.screenshots img:hover {
  transform: scale(1.05);
  border-color: #1e4fa1;
}

/* Section 标题样式 */
h1, h2, h3 {
  font-family: 'Press Start 2P', monospace;
  color: #4fc3f7;
  margin: 24px auto 12px;
  text-align: center;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

/* Section 内容样式 */
section {
  background: #102c5a;
  border-radius: 10px;
  padding: 24px 0;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px #0003;
  text-align: center;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* 列表样式 */
ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding: 0;
  list-style-position: inside;
}

/* 评论区样式 */
.comments {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 100%;
}

.comment {
  background: #1e4fa1;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 1px 6px #0002;
  width: 80%;
  max-width: 800px;
  text-align: center;
}

/* 页脚样式 */
footer {
  background: #0a1e3a;
  color: #4fc3f7;
  text-align: center;
  padding: 18px 8px 8px 8px;
  font-size: 0.95rem;
  border-top: 2px solid #1e4fa1;
  margin-top: 32px;
}

footer a {
  color: #4fc3f7;
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 900px) {
  main { padding: 8px; }
  .screenshots img { width: 140px; height: 80px; }
  section { padding: 14px; }
}

@media (max-width: 600px) {
  header { flex-direction: column; gap: 10px; padding: 10px 4px; }
  .logo { font-size: 1.2rem; }
  .lang-btn { font-size: 0.9rem; padding: 4px 8px; }
  .iframe-container { aspect-ratio: 16/10; }
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.9rem; }
  main { padding: 0; }
}

/* 域名说明块样式 */
.domain-text {
  width: 100%;
  max-width: none;
  margin: 24px 0 0 0;
  border-radius: 10px;
  background: #eaf6e3;
  color: #222;
  font-family: 'Press Start 2P', monospace, Arial, sans-serif;
  font-size: 1.2rem;
  text-align: center;
  border: 2px solid #222;
  box-shadow: 0 2px 8px #0001;
  letter-spacing: 1px;
  padding: 16px 0;
} 