/* ============ 热血暗黑红金风 · 全局 ============ */
:root {
  --bg: #f7f1e8;
  --bg-2: #efe6d8;
  --panel: #fffaf2;
  --panel-2: #f3ead9;
  --gold: #b07d0c;
  --gold-2: #8a5f08;
  --red: #c0392b;
  --red-2: #962018;
  --text: #2a1d12;
  --muted: #4a3525;
  --line: rgba(150, 110, 40, 0.22);
  --glow: rgba(192, 57, 43, 0.18);
  --maxw: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(226,59,46,0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(245,197,66,0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(247,241,232,0.96), rgba(247,241,232,0.82));
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.logo .fire { font-size: 24px; filter: drop-shadow(0 0 8px var(--red)); }
.logo b { color: var(--gold); }
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--gold); }

/* ============ 首页 Hero ============ */
.hero {
  position: relative; text-align: center; padding: 96px 20px 64px;
  background:
    linear-gradient(180deg, rgba(247,241,232,0.78) 0%, rgba(247,241,232,0.42) 65%, rgba(247,241,232,0.88) 100%),
    url("../img/hero_bg.png") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(180deg, #b07d0c, #c0392b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 12px rgba(255,255,255,0.55);
}
.hero p { color: var(--muted); margin-top: 14px; font-size: clamp(15px, 2vw, 18px); text-shadow: 0 1px 8px rgba(255,255,255,0.6); }
.hero .stats { display: flex; gap: 36px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero .stat b { display: block; font-size: 28px; color: var(--gold); font-weight: 800; }
.hero .stat span { font-size: 13px; color: var(--muted); }

/* ============ 游戏卡片网格 ============ */
.section-title {
  text-align: center; margin: 40px 0 26px;
  font-size: 24px; font-weight: 800; color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.section-title::before, .section-title::after {
  content: ""; height: 2px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}
.section-title::after { background: linear-gradient(90deg, var(--gold-2), transparent); }

.grid {
  display: grid; gap: 22px; padding-bottom: 50px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px var(--glow);
}
.card .cover {
  height: 170px; position: relative;
  background-size: cover; background-position: center;
}
.card .cover .emoji {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-size: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.65));
}
.card .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--panel));
}
.card .badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--red); color: #fff; box-shadow: 0 0 12px var(--red);
}
.card .badge.hot { background: var(--red); }
.card .badge.new { background: var(--gold); color: #fffaf2; box-shadow: 0 0 12px var(--gold); }
.card .badge.stable { background: #2e7d32; box-shadow: 0 0 12px #2e7d32; }

.card .body { padding: 16px 18px 20px; position: relative; z-index: 2; }
.card .name { font-size: 20px; font-weight: 800; color: var(--gold); }
.card .tagline { color: var(--text); font-size: 14px; margin: 4px 0 12px; opacity: .9; }
.card .meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.card .meta span b { color: var(--text); font-weight: 600; }
.card .btn {
  display: block; text-align: center; margin-top: 16px;
  padding: 10px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: #fff; border: 1px solid rgba(255,255,255,0.15);
  transition: filter .2s;
}
.card .btn:hover { filter: brightness(1.12); }

/* ============ 详情页 ============ */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 22px 0; color: var(--muted); font-size: 14px;
}
.back:hover { color: var(--gold); }

.detail-hero {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  padding: 28px; border-radius: var(--radius); margin-bottom: 26px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
}
.detail-hero .em {
  width: 124px; height: 124px; border-radius: 18px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px var(--glow);
}
.detail-hero .em::after { content: ""; position: absolute; inset: 0; background: rgba(12,9,7,0.35); }
.detail-hero .em .em-emoji { position: relative; z-index: 2; font-size: 56px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)); }
.detail-hero .info { flex: 1; min-width: 260px; }
.detail-hero h1 { font-size: 36px; color: var(--gold); font-weight: 900; }
.detail-hero .tagline { color: var(--text); opacity: .9; margin: 6px 0 14px; }
.detail-hero .keys { display: flex; gap: 26px; flex-wrap: wrap; }
.detail-hero .keys div b { display: block; color: var(--gold-2); font-size: 13px; font-weight: 600; }
.detail-hero .keys div span { font-size: 15px; }

.block {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 22px;
}
.block h2 {
  font-size: 19px; color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.block h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--red));
}
.block p { color: var(--text); opacity: .92; }
.block .muted-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; }
.feature {
  padding: 16px; border-radius: 12px; text-align: center;
  background: rgba(245,197,66,0.06); border: 1px solid var(--line);
}
.feature .ic { font-size: 30px; }
.feature .t { font-weight: 700; color: var(--gold); margin-top: 6px; }
.feature .d { font-size: 13px; color: var(--muted); margin-top: 4px; }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; }
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 12px; font-weight: 800; font-size: 16px;
  border: 1px solid rgba(255,255,255,0.12); transition: transform .15s, filter .2s;
}
.action-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.action-btn.download { background: linear-gradient(180deg, var(--red), var(--red-2)); color: #fff; }
.action-btn.official { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2a1a05; }
.action-btn.recharge { background: linear-gradient(180deg, #2e7d32, #1b5e20); color: #fff; }

.contact { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact .qq { font-size: 15px; }
.contact .qq b { color: var(--gold); font-size: 18px; }
.contact .qq-join-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px;
  background: linear-gradient(135deg, #12B7F5, #0E8ED5);
  color: #fff; font-size: 16px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(18,183,245,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.qq-join-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(18,183,245,0.5); }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line); margin-top: 30px;
  padding: 26px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.footer a { color: var(--gold-2); }

.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 30px; color: var(--red); }

/* ============ 响应式 ============ */
@media (max-width: 600px) {
  .nav { display: none; }
  .detail-hero .em { font-size: 60px; }
  .detail-hero h1 { font-size: 28px; }
}
