* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #0a1f16;
  color: #f4f9f4;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.hero {
  background: radial-gradient(ellipse at 50% 0%, #14503a 0%, #0a1f16 70%);
  padding: 72px 24px 56px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  letter-spacing: 6px;
  color: #e8b64c;
}
.slogan { margin-top: 14px; font-size: 18px; color: rgba(244, 249, 244, 0.85); }
.note { margin-top: 10px; font-size: 14px; color: rgba(244, 249, 244, 0.45); }

.games { max-width: 960px; margin: 0 auto; padding: 40px 24px 64px; }
.games h2 { font-size: 26px; margin-bottom: 24px; color: #e8b64c; }

.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .game-grid { grid-template-columns: 1fr; } }

.game-card {
  display: block;
  background: linear-gradient(160deg, #123a2b, #0d2c21);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(232, 182, 76, 0.55); }
.game-card.coming { opacity: 0.55; }

.game-art {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(ellipse at 50% 100%, #1d5c43 0%, #0d2c21 80%);
}
.game-art.placeholder { font-size: 72px; color: rgba(244, 249, 244, 0.25); }
/* 浮岛小径：浅绿暖调，贴合游戏内草地配色 */
.game-art.puzzle-art { background: radial-gradient(ellipse at 50% 100%, #cfe0c0 0%, #a8c49a 45%, #3d5c42 100%); }

.tile {
  display: inline-block;
  width: 72px;
  height: 104px;
  line-height: 1.1;
  padding-top: 20px;
  text-align: center;
  font-size: 38px;
  font-weight: bold;
  background: #f7f2e3;
  color: #333;
  border-radius: 10px;
  border: 2px solid #d8cfb6;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.tile .suit { display: block; font-size: 18px; margin-top: 8px; }
.tile.t1 .suit, .tile.t1 { color: #2e77c9; }
.tile.t2 .suit, .tile.t2 { color: #d64541; }
.tile.t3 .suit, .tile.t3 { color: #2e9e5b; }
.tile.t2 { transform: translateY(-10px); }
.tile.t1 { transform: rotate(-8deg); }
.tile.t3 { transform: rotate(8deg); }

/* 浮岛小径：3×3 草地网格 + 中心待拼地块 */
.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(3, 48px);
  gap: 6px;
  padding: 14px;
  background: #7a9a6d;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.puzzle-cell {
  position: relative;
  background: #a8ca92;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
/* 植被：用圆润的树丛示意，比三角形更贴近游戏内的圆头草 */
.puzzle-cell.tree::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: 20px;
  height: 14px;
  margin: -9px 0 0 -10px;
  background: #74ab60;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 4px 0 -1px rgba(60, 92, 50, 0.35);
}
/* 横向小径：贯穿格子的土黄条 */
.puzzle-cell.path-h::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 13px;
  margin-top: -6.5px;
  background: #ecd7a4;
  box-shadow: inset 0 0 0 1px rgba(186, 156, 100, 0.45);
}
/* 起点小屋 / 终点灯塔 */
.puzzle-cell.house::after,
.puzzle-cell.beacon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 20px;
  border-radius: 3px;
}
.puzzle-cell.house::after {
  background: #d9604f;
  box-shadow: 0 -8px 0 -2px #b0503f;      /* 屋顶 */
}
.puzzle-cell.beacon::after {
  background: #e8b64c;
  box-shadow: 0 -10px 0 -4px #f2e6b8;     /* 塔尖 */
}
/* 中心待拼的虚位地块 */
.puzzle-cell.slot {
  background: rgba(255, 255, 255, 0.30);
  border: 1px dashed rgba(72, 98, 62, 0.6);
  box-shadow: none;
}

.game-info { padding: 20px 22px 24px; }
.game-info h3 { font-size: 24px; margin-bottom: 10px; }
.game-info p { font-size: 14px; line-height: 1.7; color: rgba(244, 249, 244, 0.65); min-height: 66px; }
.play-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 26px;
  background: #2f9e6d;
  border-radius: 22px;
  font-size: 15px;
  font-weight: bold;
}
.play-btn.disabled { background: #315141; color: rgba(244, 249, 244, 0.5); }

.footer { text-align: center; padding: 32px 24px 48px; font-size: 13px; color: rgba(244, 249, 244, 0.4); }
.footer a { color: #e8b64c; }
.footer .tip { margin-top: 10px; font-size: 12px; color: rgba(244, 249, 244, 0.25); max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.7; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(244, 249, 244, 0.6);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: #e8b64c; }
