/* ================= 全局变量 ================= */
:root {
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --border-radius: 5px;
  --spacing-sm: 4px;
  --spacing-md: 8px;
  --spacing-lg: 16px;
}

/* ================= 通用基础样式 ================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f9f9f9;
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* 轻微改善游戏页面的行间距 */
.game-info p {
  margin-bottom: 0.35rem; /* 从Bootstrap默认0.25rem轻微增加到0.35rem */
}

/* 改善段落和文本间距 */
p, div {
  line-height: 1.4;
}

/* 改善列表项间距 */
.links-area p, .game-info p {
  margin-bottom: 0.4rem;
}

/* 改善按钮和链接的可点击区域 */
a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
}

/* 按钮专门样式 - 文字居中 */
.btn, button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

/* ================= 容器样式 ================= */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-md);
  padding-bottom: 15px;
  background-color: #fff;
  box-shadow: 0px 4px 8px var(--shadow-color);
  border-radius: var(--border-radius);
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
}

/* 中等屏幕及以上样式 */
@media screen and (min-width: 768px) {
  body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }

  .container {
    max-width: 800px;
    border-radius: 0px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  }
}

/* 小屏幕样式调整 */
@media (max-width: 576px) {
  .container {
    padding: var(--spacing-sm);
    padding-bottom: 15px;
  }
}

/* ================= 通用链接样式 ================= */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}