* {
    box-sizing: border-box;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

body {
    font-family: Arial, sans-serif;
    padding-bottom: 10px;
    padding-top: 10px;
    margin: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    text-decoration: none;
}

footer {
    position: flex;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    color: black;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .container {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    gap: 20px; /* 设置链接之间的间距 */
    width: 100%; /* 确保容器占据整个宽度 */
}

main {
    padding: 5px 20px; /* 确保内容不会被header和footer遮挡 */
    margin-bottom: 20px;
}

.content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;  /* 只左右内边距 */
    box-sizing: border-box;
    width: 100%;      /* 直接占满父容器 */
    overflow-x: hidden;
}

.page-title {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.page-desc {
    text-align: left;
    font-size: 14px;
    color: #00008B;  /* 深灰色 */
    margin-top: 8px;
}

.game-list-1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 每行2个，自动分配宽度 */
  gap: 10px;  /* 每个游戏项之间的间隙 */
  width: 100%;
  box-sizing: border-box;
}

.game-item-1 {
  background-color: white;
  border: 1px solid #ccc;  /* 恢复灰色边框 */
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;  /* 确保宽度充满容器 */
  box-sizing: border-box;
}

.game-item-1 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.game-item-1 img {
  width: 60px;
  height: 60px;
  margin: 0 0 8px 0;
  object-fit: contain;
}

.game-item-1 h2 {
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  color: #333;
  white-space: nowrap;          /* 不换行 */
  overflow: hidden;             /* 超出隐藏 */
  text-overflow: ellipsis;      /* 超出显示省略号 */
  text-align: center;          /* 标题居中 */
  width: 100%;                  /* 占满父容器宽度 */
  cursor: default;
  transition: all 0.3s ease;
}

.game-list-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 每行2个，自动分配宽度 */
  gap: 10px;  /* 每个游戏项之间的间隙 */
  width: 100%;
  box-sizing: border-box;
}

.game-item-2 {
  background-color: white;
  border: 1px solid #ccc;  /* 恢复灰色边框 */
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;  /* 确保宽度充满容器 */
  box-sizing: border-box;
}

.game-item-2 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.game-item-2 img {
  width: 60px;
  height: 60px;
  margin: 0 0 8px 0;
  object-fit: contain;
}

.game-stars-2 {
    font-size: 12px;
    color: #ff9900;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* 每行显示单个游戏项 */
.game-list-3 {
  display: grid;
  grid-template-columns: 1fr;  /* 每行一个游戏项 */
  gap: 10px;  /* 每个游戏项之间的间隙 */
  width: 100%;  /* 容器宽度100% */
  box-sizing: border-box;  /* 包括 padding 和 border */
}

/* 每个游戏项容器 */
.game-item-3 {
  background-color: white;
  border: 1px solid #ccc;  /* 灰色边框 */
  border-radius: 8px;
  padding: 10px;
  display: flex;             /* 使用 flex 布局 */
  align-items: center;      /* 垂直居中对齐 */
  box-sizing: border-box;
  width: 100%;
  min-width: 0;             /* 允许子项收缩 */
}

/* 图标样式 */
.game-item-3 img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 10px;       /* 图标与标题之间的间距 */
}

/* 标题样式 */
.game-item-3 h2 {
  font-size: 16px;
  margin: 0;
  color: #333;
  white-space: normal;      /* 允许标题换行 */
  word-wrap: break-word;    /* 防止标题溢出 */
  text-align: left;         /* 标题左对齐 */
  flex-grow: 1;             /* 标题占据剩余的空间 */
  word-break: break-word;   /* 强制长单词换行 */
  display: flex;            /* 使用 flex 布局来控制内容对齐 */
  align-items: center;      /* 垂直居中标题 */
}

/* 链接样式 */
.game-item-3 a {
  display: flex;            /* 使用 flex 布局来并排显示图标和标题 */
  width: 100%;              /* 确保链接容器占满整个宽度 */
  text-decoration: none;    /* 移除默认的链接下划线 */
  color: inherit;           /* 继承父元素的颜色 */
  align-items: center;      /* 确保图标和标题在链接内垂直居中 */
}

