/* 首页：班级游戏轮播图 + 班级游戏板块（内容来自 /game 介绍页，样式按资料站卡片风格） */

/* 轮播：班级游戏，右侧是游戏插画 */
.hb-s4 { background: linear-gradient(125deg, #3f86f8 0%, #2f6fe8 55%, #2a5fd8 100%); color: #fff; }
.hb-s4-art {
  position: absolute; inset: 0 0 0 auto; width: 68%; height: 100%; object-fit: cover; object-position: 70% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}
.hb-s4 .hb-kicker { background: rgba(255,255,255,.18); color: #fff; }
.hb-s4 h2 { margin-top: 16px; color: #fff; font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1.3; text-shadow: 0 2px 16px rgba(10,40,110,.25); }
.hb-s4 .hb-sub { color: rgba(255,255,255,.88); max-width: 380px; margin-bottom: 22px; }
.hb-s4 .hb-btn { background: #fff; color: #2f6ee8; }
.hb-s4 .hb-btn:hover { color: #2f6ee8; }

/* 板块 */
.hm-game-intro { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 20px; margin-bottom: 22px; }
.hm-game-intro-copy {
  display: flex; flex-direction: column; justify-content: center; padding: 28px;
  border-radius: 16px; color: #fff; background: linear-gradient(135deg, #4d8ef9, #2a5fd8);
  box-shadow: 0 10px 30px rgba(36, 72, 140, .14);
}
.hm-game-kicker { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 600; }
.hm-game-intro-copy h3 { margin: 14px 0 8px; font-size: 24px; font-weight: 800; line-height: 1.35; }
.hm-game-intro-copy p { color: rgba(255,255,255,.85); font-size: 14px; }
.hm-game-stats { display: flex; gap: 18px; margin: 18px 0 22px; }
.hm-game-stats span { display: flex; flex-direction: column; font-size: 12px; color: rgba(255,255,255,.8); }
.hm-game-stats b { min-width: 2.2em; font-size: 24px; line-height: 1.2; color: #fff; }   /* 数字会变，给宽度留余量 */
.hm-game-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-game-btns .hb-btn { background: #fff; color: #2f6ee8; height: 42px; }
.hm-game-btns .hb-btn:hover { color: #2f6ee8; }
.hm-game-line-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.55); color: #fff; font-size: 14px; font-weight: 600; }
.hm-game-line-btn:hover { color: #fff; background: rgba(255,255,255,.12); }

.hm-game-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-game-feature {
  display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; align-items: start;
  padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.hm-game-feature img { grid-row: span 2; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.hm-game-feature b { font-size: 15px; color: var(--text); }
.hm-game-feature span { margin-top: 3px; font-size: 12px; line-height: 1.6; color: var(--text-muted); }

.hm-game-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 14px; }
.hm-game-tabs button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px;
  border: 1px solid var(--border); border-radius: 21px; background: #fff; color: #3d4557; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.hm-game-tabs button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.hm-game-tabs button em { min-width: 2.4em; padding: 0 6px; border-radius: 10px; background: #f1f4f9; color: var(--text-muted); font-size: 12px; font-style: normal; text-align: center; }
.hm-game-tabs button:hover { color: #3b7ef6; border-color: #b9d1fb; }
.hm-game-tabs button.active { color: #fff; background: #3b7ef6; border-color: #3b7ef6; }
.hm-game-tabs button.active em { background: rgba(255,255,255,.22); color: #fff; }

.hm-game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hm-game-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.hm-game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.hm-game-pic { position: relative; display: block; aspect-ratio: 1; background: #f4f7fc; }
.hm-game-pic img { width: 100%; height: 100%; object-fit: cover; }
.hm-game-pic em { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.92); color: #3d4557; font-size: 11px; font-style: normal; font-weight: 600; }
.hm-game-card b { padding: 10px 12px 0; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-game-card small { padding: 2px 12px 12px; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-game-all { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; color: #3b7ef6; font-size: 14px; font-weight: 600; }

@media (max-width: 1180px) {
  .hm-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-game-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hm-game-intro { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hb-s4 { display: none; }   /* 手机上轮播只显示第 1 张 */
  .hm-game-intro-copy { padding: 20px; }
  .hm-game-intro-copy h3 { font-size: 20px; }
  .hm-game-features { display: none; }   /* 手机上省掉功能卡，直接看游戏 */
  .hm-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hm-game-card b { padding: 8px 8px 0; font-size: 13px; }
  .hm-game-card small { display: none; }
}
