/* 模板五 · Lagged 风（参考 lagged.com）：白底 + 顶部马赛克（大图 + NEW 角标）+ 方块网格栏目 */

:root {
  --bg: #ffffff;
  --bg-card: #f6f7f9;
  --bg-card-hover: #eceef2;
  --text: #20242b;
  --text-dim: #828a96;
  --accent: #7b5cff;
}

body {
  background: #ffffff;
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #f0f1f4;
}

.search-box input {
  background: #f6f7f9;
  border: 1px solid #e6e8ec;
  color: #222222;
}

.lang-toggle {
  background: #ffffff;
  border: 1px solid #e6e8ec;
  color: #555555;
}

.tpl-back {
  color: #828a96;
}

main {
  max-width: 1150px;
}

/* 马赛克磁贴（无文字） */
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  grid-auto-rows: 105px;
  grid-auto-flow: dense;
  gap: 10px;
  margin-bottom: 32px;
}

.tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f0f1f4;
  transition: transform 0.15s;
}

.tile:hover {
  transform: scale(1.03);
}

.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: 38px !important;
}

.tile-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #2ecc71;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 0 0 8px 0;
}

/* 栏目：标题 + View more + 方块网格 */
.lag-section {
  margin-bottom: 32px;
}

.lag-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.lag-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: #20242b;
}

.lag-head a {
  font-size: 12px;
  color: #828a96;
  text-decoration: none;
}

.lag-head a:hover {
  color: #7b5cff;
}

.lag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
}

.lag-grid .tile {
  aspect-ratio: 1;
}

/* 分类 / 详情页元素 */
.game-card,
.cat-card {
  background: #ffffff;
  border: 1px solid #f0f1f4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.game-card:hover,
.cat-card:hover {
  background: #fafbfd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.detail-head {
  background: #ffffff;
  border: 1px solid #f0f1f4;
}

.info-table {
  background: #ffffff;
  border: 1px solid #f0f1f4;
}

.info-table td {
  border-top-color: #f2f3f5;
}

.detail-cat-tag {
  background: rgba(123, 92, 255, 0.1);
  color: #7b5cff;
}

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

.detail-section h3 {
  border-left-color: var(--accent);
}

.play-btn {
  background: #7b5cff;
  box-shadow: none;
}

.player-bar {
  background: #20242b;
}
