/* ============================================================
   Gebyar4d — Festival Malam (午夜嘉年华) Design System
   深黑蓝夜幕 + 嘉年华金 + 吉祥红 · 移动优先 · 赌场招牌美学
   ============================================================ */

:root {
  --night: #0B0E17;
  --night-2: #10141F;
  --panel: #141A26;
  --panel-2: #1A2233;
  --gold: #F5B301;
  --gold-deep: #D97706;
  --red: #E63946;
  --red-deep: #C1121F;
  --green: #2ECC71;
  --blue: #3B82F6;
  --ink: #F8FAFC;
  --ink-dim: #B6C0D4;
  --ink-mute: #7C879E;
  --line: rgba(245, 179, 1, 0.16);
  --line-soft: rgba(182, 192, 212, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--night);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: #ffd34d; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: #070910;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 22px; padding: 0 6px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 0.72rem;
  border-radius: 5px; letter-spacing: 0.02em;
}
.topbar-note { color: var(--ink-mute); }
.topbar-tg { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; }
.topbar-tg:hover { color: #7db3ff; }
.topbar-tg svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-tag { display: block; font-size: 0.62rem; color: var(--ink-mute); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.nav-toggle {
  display: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px; color: var(--gold);
  font-family: var(--font); font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list a {
  display: block; padding: 9px 13px; color: var(--ink-dim); font-weight: 600;
  font-size: 0.88rem; border-radius: var(--radius-sm); white-space: nowrap;
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.nav-list a:hover, .nav-list a.active { color: var(--gold); background: rgba(245, 179, 1, 0.08); }

.header-cta { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; border-radius: var(--radius-sm);
  cursor: pointer; border: none; text-align: center;
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1a1200; box-shadow: 0 4px 18px rgba(245, 179, 1, 0.35);
}
.btn-gold:hover { color: #000; box-shadow: 0 6px 24px rgba(245, 179, 1, 0.5); }
.btn-outline {
  background: transparent; color: var(--ink); border: 1.5px solid rgba(248, 250, 252, 0.28);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff; box-shadow: 0 4px 18px rgba(230, 57, 70, 0.35);
}
.btn-red:hover { color: #fff; box-shadow: 0 6px 24px rgba(230, 57, 70, 0.5); }
.btn-md { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,14,23,0.97) 20%, rgba(11,14,23,0.55) 60%, rgba(11,14,23,0.35) 100%);
}
.hero-inner { position: relative; padding: 72px 0 64px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--gold); }
.hero .lead { color: var(--ink-dim); font-size: 1.02rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.trust-row { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--ink-dim); font-weight: 600; }
.trust-item svg { width: 16px; height: 16px; fill: var(--green); flex-shrink: 0; }

/* ---------- 公告条 ---------- */
.announce {
  background: linear-gradient(90deg, rgba(230,57,70,0.14), rgba(245,179,1,0.10));
  border-bottom: 1px solid var(--line);
  padding: 10px 0; font-size: 0.82rem;
}
.announce .wrap { display: flex; align-items: center; gap: 10px; }
.announce-label {
  flex-shrink: 0; background: var(--red); color: #fff; font-weight: 800;
  font-size: 0.68rem; padding: 3px 9px; border-radius: 5px; letter-spacing: 0.08em;
}
.announce-text { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 板块通用 ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--night-2); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.ribbon {
  display: inline-block; background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 14px 5px 12px; margin-bottom: 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}
.section-head p { color: var(--ink-dim); margin-top: 12px; font-size: 0.95rem; }

/* ---------- 灯带卡片 ---------- */
.glow-card {
  position: relative; background: var(--panel); border-radius: var(--radius);
  padding: 26px 24px; border: 1px solid var(--line-soft);
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.glow-card::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55; border-radius: 2px;
}
.glow-card:hover {
  transform: translateY(-3px); border-color: var(--line);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,179,1,0.12);
}
.glow-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.glow-card p { color: var(--ink-dim); font-size: 0.9rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 179, 1, 0.1); border: 1px solid var(--line);
}
.card-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.card-icon.green { background: rgba(46, 204, 113, 0.1); border-color: rgba(46,204,113,0.25); }
.card-icon.green svg { fill: var(--green); }
.card-icon.red { background: rgba(230, 57, 70, 0.1); border-color: rgba(230,57,70,0.25); }
.card-icon.red svg { fill: var(--red); }
.card-icon.blue { background: rgba(59, 130, 246, 0.1); border-color: rgba(59,130,246,0.25); }
.card-icon.blue svg { fill: var(--blue); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--panel); }
table.data th {
  background: var(--panel-2); color: var(--gold); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; text-align: left;
  padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 14px 16px; font-size: 0.88rem; color: var(--ink-dim); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(245, 179, 1, 0.03); }
table.data td:first-child { color: var(--ink); font-weight: 600; }

.note-box {
  margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.07); border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--ink-dim); font-size: 0.88rem;
}
.note-box strong { color: var(--blue); }
.note-box.warn { background: rgba(230, 57, 70, 0.07); border-color: rgba(230, 57, 70, 0.25); }
.note-box.warn strong { color: var(--red); }
.note-box.gold { background: rgba(245, 179, 1, 0.07); border-color: var(--line); }
.note-box.gold strong { color: var(--gold); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  position: relative; background: var(--panel); border-radius: var(--radius);
  padding: 26px 22px 22px; border: 1px solid var(--line-soft);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1200; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(245, 179, 1, 0.35);
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-dim); font-size: 0.87rem; }

/* ---------- 促销卡片 ---------- */
.promo-card {
  position: relative; background: var(--panel); border-radius: var(--radius);
  border: 1px solid var(--line-soft); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.promo-card:hover { transform: translateY(-3px); border-color: var(--line); }
.promo-badge {
  position: absolute; top: 14px; left: 0; z-index: 2;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px 5px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}
.promo-body { padding: 44px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.promo-body h3 { margin-bottom: 10px; }
.promo-body p { color: var(--ink-dim); font-size: 0.89rem; flex: 1; }
.promo-body .btn { margin-top: 18px; align-self: flex-start; }

/* ---------- 游戏大厅 ---------- */
.lobby-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lobby-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--panel);
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.lobby-card:hover { transform: translateY(-3px); border-color: var(--line); }
.lobby-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lobby-info { padding: 16px 18px 18px; }
.lobby-info h3 { font-size: 1rem; margin-bottom: 4px; }
.lobby-info span { font-size: 0.76rem; color: var(--gold); font-weight: 600; display: block; margin-bottom: 8px; }
.lobby-info p { font-size: 0.84rem; color: var(--ink-dim); margin-bottom: 12px; }

.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.game-tile {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--ink-dim);
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.game-tile:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.game-tile .gt-icon { font-size: 1.3rem; margin-bottom: 6px; display: block; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--panel); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.95rem; font-weight: 700; color: var(--ink); text-align: left;
}
.faq-q .chev { flex-shrink: 0; width: 18px; height: 18px; fill: var(--gold); transition: transform 0.25s var(--ease-out); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease-out); }
.faq-a-inner { padding: 0 20px 18px; color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- 文章正文 ---------- */
.article-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.article-hero-bg { position: absolute; inset: 0; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.article-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,23,0.75), rgba(11,14,23,0.96)); }
.article-hero-inner { position: relative; padding: 64px 0 48px; max-width: 780px; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 0.8rem; color: var(--ink-mute); }
.article-meta .dot::before { content: "·"; margin-right: 14px; }

.article-body { max-width: 780px; margin: 0 auto; padding: 44px 0 20px; }
.article-body h2 { margin: 40px 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); }
.article-body h3 { margin: 30px 0 12px; color: var(--gold); }
.article-body p { color: var(--ink-dim); margin-bottom: 16px; font-size: 0.96rem; }
.article-body ul, .article-body ol { color: var(--ink-dim); margin: 0 0 16px 22px; font-size: 0.94rem; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 14px 0 0; font-size: 0.78rem; color: var(--ink-mute); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--ink-mute); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); font-weight: 600; }

/* ---------- 标签云 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-cloud a {
  padding: 7px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line-soft); color: var(--ink-dim);
  transition: all 0.18s var(--ease-out);
}
.tag-cloud a:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,179,1,0.06); }

/* ---------- 搜索 ---------- */
.search-box { display: flex; gap: 0; max-width: 560px; }
.search-box input {
  flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line-soft);
  border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px 16px; color: var(--ink); font-family: var(--font); font-size: 0.9rem; outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.search-box button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.search-results { margin-top: 22px; }
.search-hit {
  display: block; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); margin-bottom: 10px;
}
.search-hit:hover { border-color: var(--gold); }
.search-hit h3 { font-size: 0.95rem; margin-bottom: 4px; }
.search-hit p { font-size: 0.82rem; color: var(--ink-mute); }

/* ---------- 表单页 ---------- */
.auth-wrap { max-width: 480px; margin: 0 auto; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--ink-dim); font-size: 0.88rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-dim); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--night-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink);
  font-family: var(--font); font-size: 0.92rem; outline: none;
  transition: border-color 0.18s var(--ease-out);
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.auth-submit { width: 100%; margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--ink-mute); }
.auth-tips { margin-top: 26px; }

/* ---------- 底部浮窗 CTA（老虎机风格） ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  pointer-events: none;
}
.float-cta-inner {
  pointer-events: auto; position: relative; overflow: hidden;
  margin: 0 auto 12px; max-width: 560px; width: calc(100% - 24px);
  background: linear-gradient(135deg, #1c1206 0%, #2a1a05 100%);
  border: 1.5px solid var(--gold); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.65), 0 0 24px rgba(245,179,1,0.25);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
}
.float-cta-text { flex: 1; min-width: 0; }
.float-cta-text strong { display: block; font-size: 0.88rem; color: var(--gold); letter-spacing: 0.01em; }
.float-cta-text span { display: block; font-size: 0.7rem; color: var(--ink-dim); }
.float-cta-btns { display: flex; gap: 8px; flex-shrink: 0; }
.coin {
  position: absolute; top: -18px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a3, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 6px rgba(245, 179, 1, 0.8);
  animation: coin-fall linear infinite;
  pointer-events: none; opacity: 0.85;
}
@keyframes coin-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.9; }
  100% { transform: translateY(90px) rotate(340deg); opacity: 0; }
}
.slot-dots { display: flex; gap: 4px; margin-bottom: 3px; }
.slot-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: dot-blink 1.2s infinite;
}
.slot-dots i:nth-child(2) { animation-delay: 0.2s; background: var(--red); }
.slot-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---------- 页脚 ---------- */
.site-footer { background: #070910; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0 34px; }
.footer-brand img { width: 46px; height: 46px; margin-bottom: 12px; }
.footer-brand p { color: var(--ink-mute); font-size: 0.83rem; margin-top: 10px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-dim); font-size: 0.85rem; }
.footer-col a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid var(--line-soft); padding: 20px 0 90px;
  font-size: 0.76rem; color: var(--ink-mute);
}
.footer-legal p { margin-bottom: 8px; }
.footer-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.footer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 12px;
  font-size: 0.72rem; font-weight: 700; color: var(--ink-dim);
}
.footer-pill.age { border-color: var(--red); color: var(--red); }
.footer-pill.safe { border-color: var(--green); color: var(--green); }

/* ---------- 杂项 ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.divider-ribbon {
  height: 3px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), transparent);
  opacity: 0.5;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000;
  padding: 10px 16px; z-index: 999; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lobby-strip { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
  .main-nav { margin-left: 0; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--night-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 2px;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 14px; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-outline { display: none; }
  .hero-inner { padding: 52px 0 44px; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lobby-strip { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 42px 0; }
  .float-cta-inner { padding: 10px 12px; gap: 10px; }
  .float-cta-text span { display: none; }
  .auth-card { padding: 26px 20px; }
  .topbar-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
