/* 首页游戏布局样式 */
.games-category {
  padding: 15px 10px;
}

.games-category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.games-category-title h2 {
  font-size: 1.2rem;
  margin: 0;
  color: #333;
}

.more-link {
  color: #4285f4;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
}

.more-text {
  display: inline-block;
}

/* 移动端优化的游戏网格布局 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  margin-bottom: 20px;
}

/* 移动端媒体查询 */
@media (max-width: 480px) {
  .games-category {
    padding: 12px 8px;
  }
  
  .games-category-title h2 {
    font-size: 1.1rem;
  }
  
  .more-link {
    font-size: 0.85rem;
  }
  
  .games-grid {
    gap: 10px 14px;
  }
}

/* 游戏卡片样式 - 移动端优化 */
.game-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.game-thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2px 0;
  text-align: center;
  background: #f8f9fa;
}

.game-thumbnail img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 6px;
}

.game-info {
  padding: 8px 10px;
}

.game-info .title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-tags {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.game-rating {
  font-size: 0.75rem;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.icon10 {
  width: 12px;
  height: 12px;
}

.game-rating .fa-star {
  color: gold;
  margin-left: 2px;
}

/* 移动端小屏幕优化 */
@media (max-width: 480px) {
  .game-thumbnail {
    padding: 2px 0;
  }
  
  .game-thumbnail img {
    width: 80%;
    height: 80%;
  }
  
  .game-info {
    padding: 6px 8px;
  }
  
  .game-info .title {
    font-size: 0.85rem;
  }
  
  .game-tags, .game-rating {
    font-size: 0.7rem;
  }
}

.no-games {
  padding: 20px;
  text-align: center;
  background: #f8f8f8;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
}

.banner {
  padding: 20px 10px;
  background-color: #f0f0f0;
  border-radius: 8px;
  text-align: center;
}

/* 移动端横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
  .games-category {
    padding: 10px 8px;
  }
  
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .game-thumbnail {
    padding: 2px 0;
  }
  
  .game-thumbnail img {
    width: 80%;
    height: 80%;
  }
  
  .game-info {
    padding: 4px 6px;
  }
  
  .game-info .title {
    font-size: 0.8rem;
  }
}

/* 大屏幕适配 - 如果有平板访问 */
@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .game-thumbnail img {
    width: 80%;
    height: 80%;
  }
  
  .game-info .title {
    font-size: 1rem;
  }
}