/* 金牛游戏中心 · App Store 风格 */
:root {
  --bg: #070a12;
  --bg-2: #0c1220;
  --surface: #121a2b;
  --surface-2: #1a2438;
  --ink: #f2f5fa;
  --ink-2: #a8b3c7;
  --mute: #6b7690;
  --gold: #c2b59b;
  --gold-2: #e8d5a3;
  --gold-3: #f7e7b8;
  --cyan: #4de1ff;
  --magenta: #ff4d9a;
  --lime: #7dff8a;
  --danger: #ff5c6c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 40px rgba(194, 181, 155, 0.22);
  --nav-h: 64px;
  --max: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(194, 181, 155, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(77, 225, 255, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.gnav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid rgba(194, 181, 155, 0.12);
}
.gnav-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px;
}
.gnav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; flex-shrink: 0; }
.gnav-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, #8a7a58);
  display: grid; place-items: center; box-shadow: var(--shadow-gold);
  font-size: 16px; color: #1a1408;
}
.gnav-brand span small { display: block; font-size: 10px; font-weight: 500; color: var(--mute); letter-spacing: 0.12em; }
.gnav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.gnav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: 0.2s ease; }
.gnav-links a:hover, .gnav-links a.is-active {
  color: #1a1408; background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.gnav-actions { display: flex; align-items: center; gap: 10px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(194, 181, 155, 0.28); color: var(--gold-2); font-size: 13px; transition: 0.2s ease;
}
.btn-back:hover { background: rgba(194, 181, 155, 0.12); border-color: var(--gold); }
.hero { max-width: var(--max); margin: 28px auto 0; padding: 0 20px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 360px;
  background:
    linear-gradient(120deg, rgba(12, 18, 32, 0.2), rgba(12, 18, 32, 0.75)),
    radial-gradient(800px 400px at 80% 20%, rgba(77, 225, 255, 0.18), transparent 60%),
    radial-gradient(600px 360px at 15% 80%, rgba(194, 181, 155, 0.28), transparent 55%),
    linear-gradient(145deg, #152038, #0a1020 55%, #1c1530);
  border: 1px solid rgba(194, 181, 155, 0.18);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.15fr 0.85fr;
}
.hero-copy {
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
  gap: 16px; position: relative; z-index: 2;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(194, 181, 155, 0.14); border: 1px solid rgba(194, 181, 155, 0.28);
  color: var(--gold-2); font-size: 12px; letter-spacing: 0.08em;
}
.hero-kicker i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.85)} }
.hero-copy h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: 0.02em; }
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-3), var(--gold), #fff2c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.75; max-width: 460px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink-2); font-size: 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold) 50%, #b09a6c);
  color: #1a1408; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-gold);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-play:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 46px rgba(194,181,155,.35); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(194,181,155,.3); color: var(--gold-2); font-size: 14px; transition: .2s ease;
}
.btn-ghost:hover { background: rgba(194,181,155,.12); }
.hero-meta { display: flex; gap: 22px; margin-top: 8px; color: var(--mute); font-size: 12px; }
.hero-meta strong { display: block; color: var(--ink); font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.hero-art { position: relative; min-height: 360px; overflow: hidden; }
.hero-art canvas { width: 100%; height: 100%; display: block; }
.hero-badge {
  position: absolute; right: 22px; top: 22px; padding: 8px 12px; border-radius: 12px;
  background: rgba(7,10,18,.55); border: 1px solid rgba(194,181,155,.3);
  backdrop-filter: blur(10px); font-size: 12px; color: var(--gold-2); z-index: 2;
}
.section { max-width: var(--max); margin: 0 auto; padding: 36px 20px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: .02em; }
.section-head p { margin: 6px 0 0; color: var(--mute); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 13px; transition: .2s ease;
}
.chip:hover { border-color: rgba(194,181,155,.4); color: var(--gold-2); }
.chip.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1408; border-color: transparent; font-weight: 600;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; cursor: pointer;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(194,181,155,.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(194,181,155,.12);
}
.card.is-featured { border-color: rgba(194,181,155,.35); box-shadow: 0 12px 40px rgba(194,181,155,.12); }
.card-cover { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.card-cover .cover-art { width: 100%; height: 100%; display: block; }
.card-cover .cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px;
  background: linear-gradient(145deg, var(--cover-a, #1b2740), var(--cover-b, #0b1220));
}
.card-cover .glow {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(7,10,18,.88)); pointer-events: none;
}
.card-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(7,10,18,.6); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
}
.card-badge.hot { background: linear-gradient(135deg, #ff7a4d, #ff4d6d); border-color: transparent; color: #fff; }
.card-badge.new { background: linear-gradient(135deg, var(--cyan), #2f8cff); border-color: transparent; color: #041018; }
.card-badge.soon { background: rgba(255,255,255,.1); color: var(--ink-2); }
.card-body { padding: 14px 14px 16px; }
.card-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.card-body p { margin: 0; color: var(--mute); font-size: 12px; line-height: 1.5; min-height: 36px; }
.card-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-cat { padding: 4px 8px; border-radius: 8px; background: rgba(194,181,155,.1); color: var(--gold-2); font-size: 11px; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-2); font-size: 12px; font-weight: 600; }
.card-go {
  display: none; width: 32px; height: 32px; border-radius: 50%; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1408; font-size: 14px; font-weight: 700;
}
.card:hover .card-go, .card.is-featured .card-go { display: grid; }
.card.is-disabled { opacity: .72; cursor: default; }
.card.is-disabled:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,.07); }
.rail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.panel {
  border-radius: var(--radius); background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07); padding: 20px;
}
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.rank-no {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; background: rgba(194,181,155,.12); color: var(--gold-2);
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, #ffd76a, #e8a23a); color: #2a1c00; }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg, #d7dee8, #9aa8bb); color: #1a2230; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg, #e0b089, #b87a4c); color: #2a1408; }
.rank-meta { flex: 1; min-width: 0; }
.rank-meta strong { display: block; font-size: 14px; }
.rank-meta span { color: var(--mute); font-size: 12px; }
.rank-score { color: var(--gold-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.tip-list { display: flex; flex-direction: column; gap: 12px; }
.tip { display: flex; gap: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.tip i {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0;
  background: var(--gold); box-shadow: 0 0 10px rgba(194,181,155,.5);
}
.gfooter {
  max-width: var(--max); margin: 48px auto 0; padding: 28px 20px 40px;
  border-top: 1px solid rgba(255,255,255,.06); color: var(--mute); font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
.gfooter a { color: var(--ink-2); }
.gfooter a:hover { color: var(--gold-2); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  padding: 12px 18px; border-radius: 999px; background: rgba(18,26,43,.95);
  border: 1px solid rgba(194,181,155,.3); color: var(--ink); font-size: 13px;
  opacity: 0; pointer-events: none; transition: .28s ease; z-index: 99; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 920px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; order: -1; }
  .hero-copy { padding: 28px 22px 32px; }
  .rail { grid-template-columns: 1fr; }
  .gnav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body h3 { font-size: 14px; }
  .card-body p { min-height: 0; }
  .hero-meta { gap: 14px; }
}
