/* 游戏频道 · 电脑端
 *
 * 与童年号首页同一套视觉：浅灰底、白卡片、橙色主色。
 * 游戏是封面大图卡，一行三个。
 */
.gm {
  --gm-main: #ff6a00;
  --gm-btn: #e85d04;
  --gm-btn-h: #c2410c;
  --gm-soft: #fff2e8;
  --gm-line: #edeff3;
  --gm-ink: #1f2329;
  --gm-ink2: #4a4f58;
  --gm-ink3: #868d99;
  --gm-sh: 0 2px 10px rgba(24, 32, 46, .05);

  background: #f2f3f7;
  padding: 20px 0 44px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--gm-ink);
  font-size: 13.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.gm * { box-sizing: border-box; }
.gm a { text-decoration: none; color: inherit; }
.gm h1, .gm h2, .gm p { margin: 0; }
.gm img { display: block; max-width: 100%; }

.gm-wrap { width: 1200px; max-width: calc(100% - 40px); margin: 0 auto; }

/* ---------- 头部 ---------- */
.gm-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--gm-sh);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.gm-hero-in { flex: 1; min-width: 0; }
.gm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gm-soft);
  color: var(--gm-btn);
  font-size: 12px;
  font-weight: 700;
}
.gm-h1 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -.3px;
  color: #171b21;
}
.gm-sub { font-size: 13.5px; color: var(--gm-ink3); line-height: 1.75; max-width: 720px; }
.gm-hero-side {
  flex: none;
  width: 118px;
  height: 106px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff6ef, #ffe7d5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gm-hero-side i { font-size: 34px; color: #f08a3c; line-height: 1; }
.gm-hero-side em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: #b3652b;
}

/* ---------- 公告 ---------- */
.gm-notice {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--gm-sh);
  padding: 16px 20px 8px;
  margin-bottom: 4px;
}
.gm-notice-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--gm-line);
}
.gm-notice-h i { color: var(--gm-main); font-size: 16px; }
.gm-notice-h .gm-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--gm-ink3);
}
.gm-notice-h .gm-more:hover { color: var(--gm-btn); }

.gm-notice-list { list-style: none; margin: 0; padding: 0; }
.gm-notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--gm-ink2);
  line-height: 1.7;
}
.gm-notice-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb27a;
  margin-top: 8px;
}
.gm-notice-list a { color: var(--gm-ink2); border-bottom: 1px solid transparent; }
.gm-notice-list a:hover { color: var(--gm-btn); border-bottom-color: var(--gm-btn); }

/* ---------- 游戏区 ---------- */
.gm-sec-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 4px 12px;
}
.gm-sec-h h2 { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.gm-sec-h em { font-style: normal; font-size: 12.5px; color: var(--gm-ink3); }

.gm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gm-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--gm-sh);
  transition: transform .2s, box-shadow .2s;
}
.gm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(24, 32, 46, .11);
}

.gm-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #f6f7fa;
  overflow: hidden;
}
.gm-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gm-card:hover .gm-cover img { transform: scale(1.04); }
.gm-cover img.is-fallback { object-fit: contain; padding: 34px; background: #fbfcfe; }

.gm-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  line-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--gm-btn);
  box-shadow: 0 2px 8px rgba(24, 32, 46, .1);
}

.gm-card-b { flex: 1; padding: 14px 16px 16px; }
.gm-card-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gm-card-t b {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: #171b21;
}
.gm-card-t i {
  font-size: 18px;
  color: #c9ced7;
  transition: color .18s, transform .18s;
}
.gm-card:hover .gm-card-t i { color: var(--gm-btn); transform: translateX(2px); }

.gm-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--gm-ink3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 空状态 / 底部 ---------- */
.gm-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--gm-ink3);
  font-size: 13px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--gm-sh);
}
.gm-empty b { display: block; color: var(--gm-ink2); font-size: 14px; margin-bottom: 4px; }

.gm-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #a2a8b3;
}

/* ---------- 骨架屏 ---------- */
.gm-skel {
  display: block;
  background: linear-gradient(90deg, #eef0f4 25%, #f6f7fa 37%, #eef0f4 63%);
  background-size: 400% 100%;
  animation: gm-shine 1.3s ease infinite;
  border-radius: 8px;
}
.gm-cover.gm-skel { border-radius: 0; }
@keyframes gm-shine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (max-width: 1100px) {
  .gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .gm-grid { grid-template-columns: 1fr; }
  .gm-hero { padding: 18px 20px; }
  .gm-hero-side { display: none; }
}
