/* ===== 游戏页 ===== */

/* 页面副标题（沿用首页风格） */
.page-subtitle {
  color: #888;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: -14px;
  margin-bottom: 32px;
  line-height: 1.7;
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* ---------- 游戏网格 ---------- */
/* 内容区 content-wrap 宽 900px：260*3 + 20*2 = 820，可稳定排 3 列 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

/* ---------- 游戏卡片 ---------- */
.game-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.game-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* 封面 */
.game-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fdf5ec, #ffe4cc);
  overflow: hidden;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.game-card:hover .game-cover img {
  transform: scale(1.05);
}

/* 无封面时的占位：显示游戏图标 */
.game-cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-cover-ph svg {
  width: 56px;
  height: 56px;
  stroke: #f6821f;
  stroke-width: 1.6;
  fill: none;
  opacity: 0.75;
}

/* 状态角标（左上） */
.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'ZC0005', system-ui, sans-serif;
  backdrop-filter: blur(4px);
}

.game-badge.playable {
  color: #fff;
  background: linear-gradient(135deg, #f6821f, #ff9a44);
  box-shadow: 0 2px 8px rgba(246, 130, 31, 0.35);
}

.game-badge.soon {
  color: #999;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.game-badge.hot {
  color: #fff;
  background: linear-gradient(135deg, #e74c3c, #ff6b5a);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.35);
}

/* 悬停浮层的「开始游戏」 */
.game-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover .game-hover {
  opacity: 1;
}

.game-hover-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #f6821f, #ff9a44);
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(246, 130, 31, 0.45);
  font-family: 'ZC0005', system-ui, sans-serif;
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.game-card:hover .game-hover-btn {
  transform: translateY(0);
}

.game-hover-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* 卡片正文 */
.game-body {
  padding: 15px 18px 17px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 7px;
  letter-spacing: 0.03em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.game-desc {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 12px;
  /* 固定 3 行，避免不同长度简介导致卡片高度参差 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.95em;
}

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* 标签组 */
.game-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-tag {
  font-size: 0.72rem;
  color: #b8531b;
  background: #fdf5ec;
  border: 1px solid #fce4d6;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.game-players {
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* 禁用态（暂未开放的游戏） */
.game-card.disabled {
  cursor: default;
}

.game-card.disabled:hover {
  transform: none;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
}

.game-card.disabled .game-cover img {
  filter: grayscale(0.55);
  opacity: 0.8;
}

.game-card.disabled:hover .game-cover img {
  transform: none;
}

/* ---------- 空态 ---------- */
.game-empty {
  text-align: center;
  padding: 70px 20px;
  color: #999;
  font-size: 0.98rem;
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* ---------- 底部提示 ---------- */
.game-note {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  padding: 16px 0 0;
  letter-spacing: 0.04em;
  border-top: 1px dashed #eee;
  margin-top: 34px;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.game-note a {
  color: #f6821f;
  text-decoration: none;
  border-bottom: 1px dashed #f6821f;
}

.game-note a:hover { opacity: 0.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-title { font-size: 0.97rem; }
  .game-desc { font-size: 0.83rem; }

  .game-hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.22);
  }

  .game-hover-btn {
    transform: translateY(0);
    padding: 8px 18px;
    font-size: 0.82rem;
  }
}
