/* ============================================================
   慕容的小游戏 · 门户样式（深色游戏厅风）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #0d1526 0%, #14203a 55%, #1a2c4e 100%);
  color: #e8eefb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 背景装饰光斑 */
.bg-deco {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 8%, rgba(64, 120, 255, .16), transparent 70%),
    radial-gradient(500px 280px at 85% 20%, rgba(120, 80, 255, .13), transparent 70%),
    radial-gradient(560px 300px at 50% 100%, rgba(40, 200, 180, .10), transparent 70%);
}

.hero { position: relative; z-index: 1; text-align: center; padding: 52px 16px 30px; }
.logo {
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #7ec2ff 20%, #c8b4ff 55%, #ff9ad5 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(120, 170, 255, .25);
}
.slogan { margin-top: 10px; color: #8fa2c4; font-size: clamp(13px, 2vw, 15px); letter-spacing: 3px; }

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 10px 20px 40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 26px;
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, rgba(30, 45, 80, .92), rgba(16, 26, 48, .92));
  border: 1px solid rgba(140, 170, 220, .22);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(150, 190, 255, .55);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .45), 0 0 30px rgba(90, 150, 255, .18);
}
.card:active { transform: translateY(-2px) scale(.99); }

.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .cover img { transform: scale(1.05); }
.cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 20, 40, .85) 100%);
}

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 1px;
}
.badge.new { background: linear-gradient(120deg, #ff7a2b, #ff4d6d); color: #fff; box-shadow: 0 2px 12px rgba(255, 90, 100, .5); animation: glow 1.8s infinite; }
@keyframes glow { 50% { box-shadow: 0 2px 22px rgba(255, 110, 110, .8); } }

.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.card-desc { color: #a8b9d8; font-size: 13.5px; line-height: 1.75; min-height: 46px; }
.card-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.tags { display: flex; gap: 7px; }
.tag {
  font-size: 11.5px; color: #9fc3ff;
  background: rgba(80, 130, 220, .16);
  border: 1px solid rgba(110, 160, 255, .35);
  padding: 3px 10px; border-radius: 12px;
}
.play {
  font-size: 13.5px; font-weight: 700; color: #ffd88a;
  transition: transform .15s;
}
.card:hover .play { transform: translateX(4px); }

/* 敬请期待占位卡 */
.card.ghost {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px;
  border-style: dashed;
  background: rgba(255, 255, 255, .025);
  cursor: default;
}
.card.ghost:hover { transform: none; box-shadow: none; border-color: rgba(140, 170, 220, .3); }
.ghost-emoji { font-size: 46px; opacity: .75; }
.ghost-title { margin-top: 12px; font-size: 18px; font-weight: 700; color: #9fb0cf; }
.ghost-desc { margin-top: 6px; font-size: 13px; color: #6d7f9f; letter-spacing: 2px; }

.foot {
  position: relative; z-index: 1;
  text-align: center; padding: 26px 16px 34px;
  color: #5f7295; font-size: 12.5px; letter-spacing: 1px;
}
