/* 游戏库与卡片共用样式 */

.include-error {
  padding: 16px;
  margin: 12px 0;
  border-radius: 6px;
  border: 1px dashed rgba(255, 87, 34, 0.4);
  background: rgba(255, 235, 238, 0.7);
  color: #d84315;
  font-size: 13px;
}

.game-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.game-grid .game-card-wrapper {
  width: 20%;
  min-width: 180px;
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .game-grid .game-card-wrapper {
    width: 25%;
  }
}

@media (max-width: 992px) {
  .game-grid .game-card-wrapper {
    width: 33.33%;
  }
}

@media (max-width: 768px) {
  .game-grid .game-card-wrapper {
    width: 50%;
  }
}

.game-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 35, 52, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 35, 52, 0.18);
}

.game-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
}

.game-card-cover img {
  width: 100%;
  height: 0;
  padding-bottom: 72%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-cover img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 4px;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.game-card-tags .tag-chip {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.45);
}

.game-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9aa1b3;
}

.game-card-score-text {
  margin-left: 4px;
  font-weight: 600;
  color: #ff9800;
}

.game-card-hot {
  font-size: 11px;
  color: #9aa1b3;
}

/* 列表页筛选区域 */

.games-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 35, 52, 0.08);
}

.games-filters-left,
.games-filters-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.games-search-input {
  min-width: 220px;
}

.games-search-input .form-control {
  border-radius: 999px;
  box-shadow: none;
}

.games-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.games-tag-chip {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f6f7fb;
  color: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  user-select: none;
}

.games-tag-chip input {
  display: none;
}

.games-tag-chip.active {
  background: #6dd0ff;
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.02);
}

.games-sort-select {
  min-width: 140px;
}

.games-list-header {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9aa1b3;
}

.games-clear-filters {
  color: #6dd0ff;
  text-decoration: none;
  font-size: 13px;
}
.games-clear-filters:hover { color: #549fff; text-decoration: underline; }

.games-load-more-wrap {
  text-align: center;
  margin-top: 16px;
  padding: 8px 0;
}

/* 详情页 */

.game-detail-page {
  margin-top: 50px;
  margin-bottom: 50px;
}

.game-detail-main {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(15, 35, 52, 0.12);
  margin-bottom: 24px;
}

.game-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.game-detail-title h2 {
  margin: 0;
  font-size: 24px;
}

.game-detail-subtitle {
  font-size: 13px;
  color: #9aa1b3;
}

.game-detail-tags {
  margin-top: 8px;
}

.game-detail-meta {
  margin-top: 12px;
  font-size: 13px;
  color: #757b8a;
}

.game-detail-screenshots {
  margin-top: 16px;
}

.game-detail-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #555b6b;
}

.game-detail-recommend {
  margin-top: 24px;
}

/* 素材市场：复用 game-grid，素材卡片扩展 */

.asset-grid.game-grid .game-card-wrapper {
  width: 20%;
  min-width: 180px;
}

.asset-card.game-card .asset-card-type {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(109, 208, 255, 0.15);
  color: #2a8bc9;
  display: inline-block;
  margin-bottom: 6px;
}

.asset-card.game-card .asset-card-tags {
  margin-bottom: 6px;
}

.asset-card.game-card .asset-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9aa1b3;
}

.asset-card.game-card .asset-card-price {
  font-weight: 600;
  color: #ff9800;
}

.asset-card.game-card .asset-card-downloads {
  font-size: 11px;
  color: #9aa1b3;
  margin-top: 4px;
}

.market-type-filters {
  margin-right: 12px;
}

.market-list-header.games-list-header {
  margin-bottom: 8px;
}

