/* 模板一 · Poki 风（参考 poki.com）：青绿底 + 白色胶囊导航 + 无文字马赛克游戏墙 + 底部介绍卡 */

:root {
  --bg: #12c2c2;
  --bg-card: #ffffff;
  --bg-card-hover: #f0fafa;
  --text: #16303a;
  --text-dim: #4d6b74;
  --accent: #7c5cff;
}

body {
  background: linear-gradient(160deg, #17d4c8 0, #0aaecf 100%);
  background-attachment: fixed;
}

.site-header {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.tpl-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 14px;
}

.tpl-chip {
  background: #ffffff;
  color: #4b3f72;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tpl-chip:hover {
  background: #efeaff;
}

.tpl-back {
  color: rgba(255, 255, 255, 0.9);
}

.tpl-back:hover {
  color: #ffffff;
}

.search-box input,
.lang-toggle {
  background: #ffffff;
  border: none;
  color: #333333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.lang-toggle {
  color: #4b3f72;
}

main {
  max-width: 1200px;
}

/* 马赛克游戏墙：无文字磁贴，大小混排 */
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-auto-rows: 120px;
  grid-auto-flow: dense;
  gap: 12px;
}

.tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}

.tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.tile.big {
  grid-column: span 2;
  grid-row: span 2;
}

.tile.wide {
  grid-column: span 2;
}

.tile-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.tile .game-icon-placeholder {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  font-size: 42px !important;
}

.tile-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}

/* 底部白色介绍卡 */
.intro-card {
  margin-top: 28px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  color: #333333;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.intro-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #222222;
}

.intro-card p {
  font-size: 14px;
  line-height: 1.9;
  color: #555555;
  margin-bottom: 18px;
}

.intro-links {
  column-count: 4;
  column-gap: 24px;
}

.intro-links a {
  display: block;
  padding: 5px 0;
  color: #7c5cff;
  text-decoration: none;
  font-size: 14px;
}

.intro-links a:hover {
  text-decoration: underline;
}

/* 分类 / 详情 / 全部游戏页元素 */
.section-title {
  color: #ffffff;
}

.breadcrumb,
.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb .current {
  color: #ffffff;
}

.game-card,
.cat-card {
  background: #ffffff;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.game-card:hover,
.cat-card:hover {
  background: #f0fafa;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.detail-head,
.info-table {
  background: #ffffff;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.info-table td {
  border-top-color: rgba(0, 0, 0, 0.07);
}

.detail-cat-tag {
  background: rgba(124, 92, 255, 0.12);
  color: #7c5cff;
}

.detail-cat-tag:hover {
  background: rgba(124, 92, 255, 0.22);
}

.detail-section h3 {
  color: #ffffff;
  border-left-color: #ffffff;
}

.detail-section p {
  color: rgba(255, 255, 255, 0.9);
}

.play-btn {
  background: linear-gradient(120deg, #7c5cff, #c05cff);
}

.empty-tip {
  color: rgba(255, 255, 255, 0.9);
}

.player-bar {
  background: #0b3b42;
}

@media (max-width: 768px) {
  .tpl-nav {
    display: none;
  }

  .mosaic {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-auto-rows: 100px;
  }

  .intro-links {
    column-count: 2;
  }
}
