/* ============================================================
   Slotgaming.bet — Golden Lobby 设计系统
   深炭黑底 + 品牌金 #F5B301 + 功能色（红/绿/蓝）
   字体：Poppins（标题）+ Plus Jakarta Sans（正文）
   ============================================================ */
:root {
  --bg: #0d0f14;
  --bg-card: #14171f;
  --bg-elev: #1b1f2a;
  --bg-soft: #10131a;
  --gold: #f5b301;
  --gold-light: #ffd34d;
  --gold-deep: #b8860b;
  --red: #e63946;
  --green: #2ecc71;
  --blue: #3b82f6;
  --text: #f4f1ea;
  --text-dim: #a8aebf;
  --border: rgba(245, 179, 1, 0.14);
  --border-soft: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-gold: 0 6px 30px rgba(245, 179, 1, 0.18);
  --shadow-card: 0 10px 34px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-display: "Poppins", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: color 0.18s var(--ease-out); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #111;
  padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 11px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.16s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #1a1405; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { color: #000; box-shadow: 0 8px 38px rgba(245, 179, 1, 0.35); transform: translateY(-2px); }
.btn-red { background: linear-gradient(135deg, #d62839, var(--red)); color: #fff; }
.btn-red:hover { color: #fff; box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(245, 179, 1, 0.45); color: var(--gold-light); background: transparent; }
.btn-ghost:hover { background: rgba(245, 179, 1, 0.1); color: var(--gold-light); }
.btn-green { background: linear-gradient(135deg, #27ae60, var(--green)); color: #06210f; }
.btn-green:hover { color: #000; transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 17px; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 44px; height: 44px; filter: drop-shadow(0 2px 8px rgba(245, 179, 1, 0.45)); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: 0.4px; }
.brand-slot { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-gaming { color: #fff; margin-left: 2px; }
.brand-tld { color: var(--text-dim); font-size: 13px; font-weight: 600; margin-left: 3px; }
.main-nav { margin-left: auto; }
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu a {
  display: block; padding: 8px 13px; border-radius: 8px; color: var(--text-dim);
  font-weight: 600; font-size: 14.5px; transition: color 0.16s, background 0.16s;
}
.nav-menu a:hover { color: var(--gold-light); background: rgba(245, 179, 1, 0.08); }
.nav-menu a.active { color: var(--gold); background: rgba(245, 179, 1, 0.12); }
.header-cta { display: flex; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 9px 20px; font-size: 14px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--gold); border-radius: 2px; transition: 0.25s var(--ease-out); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 16px 0 4px; font-size: 13.5px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(245, 179, 1, 0.5); }
.breadcrumb [aria-current] { color: var(--gold-light); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 78% 42%, rgba(245, 179, 1, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 40% at 12% 85%, rgba(230, 57, 70, 0.09), transparent 60%),
    var(--bg);
  padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px;
  background: rgba(245, 179, 1, 0.07); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero h1 .gold-text {
  background: linear-gradient(120deg, var(--gold) 10%, var(--gold-light) 50%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 44px rgba(245, 179, 1, 0.25);
}
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dim); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 20px; box-shadow: var(--shadow-card), 0 0 0 1px var(--border);
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: -2px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 15, 20, 0.55));
}

/* ---------- 跑马灯标签 ---------- */
.marquee-section { border-block: 1px solid var(--border-soft); background: var(--bg-soft); padding: 14px 0; overflow: hidden; }
.marquee { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .tag { flex-shrink: 0; }

/* ---------- 标签云 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-elev); color: var(--text-dim); border: 1px solid var(--border-soft);
  transition: all 0.18s var(--ease-out);
}
.tag:hover { color: var(--gold-light); border-color: var(--border); background: rgba(245, 179, 1, 0.08); transform: translateY(-1px); }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px; transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-color 0.22s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--border); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 24px; font-weight: 800; font-family: var(--font-display);
  background: rgba(245, 179, 1, 0.12); color: var(--gold); border: 1px solid var(--border);
}
.card-icon.red { background: rgba(230, 57, 70, 0.12); color: var(--red); border-color: rgba(230, 57, 70, 0.3); }
.card-icon.green { background: rgba(46, 204, 113, 0.12); color: var(--green); border-color: rgba(46, 204, 113, 0.3); }
.card-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); border-color: rgba(59, 130, 246, 0.3); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; }

/* ---------- 游戏大厅卡片 ---------- */
.lobby-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-color 0.22s;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--border); }
.game-card .game-img { aspect-ratio: 3/2; width: 100%; object-fit: cover; }
.game-card .game-body { padding: 16px 18px 20px; }
.game-card .game-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.game-card h3, .game-card .game-title { font-size: 16.5px; margin-bottom: 6px; font-weight: 800; }
.game-card p { font-size: 13.5px; color: var(--text-dim); }
.cat-slot { color: var(--gold); }
.cat-live { color: var(--red); }
.cat-poker { color: var(--green); }
.cat-sport { color: var(--blue); }

/* ---------- 比较表 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-card); }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border-soft); }
table.compare thead th {
  background: linear-gradient(135deg, rgba(245, 179, 1, 0.16), rgba(245, 179, 1, 0.05));
  font-family: var(--font-display); font-size: 14px; color: var(--gold-light); white-space: nowrap;
}
table.compare tbody tr:hover { background: rgba(245, 179, 1, 0.04); }
table.compare td:first-child { font-weight: 600; color: var(--text); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); font-weight: 700; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 21px; color: #1a1405;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); box-shadow: var(--shadow-gold);
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 17px 22px; font-family: var(--font-display); font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: color 0.16s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--gold); font-weight: 400; flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}
.faq-item[open] summary { color: var(--gold-light); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 19px; color: var(--text-dim); font-size: 15px; }

/* ---------- 文章排版 ---------- */
.article-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; padding: 26px 0 70px; }
.article-body { max-width: 780px; }
.article-body h1 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.4px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-dim); font-size: 13.5px; margin-bottom: 26px; }
.article-body h2 { font-size: clamp(21px, 2.6vw, 27px); margin: 42px 0 16px; padding-top: 8px; }
.article-body h3 { font-size: 19px; margin: 30px 0 12px; }
.article-body p { margin-bottom: 18px; color: #d9d5cb; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #d9d5cb; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--text); }
.article-hero { margin: 8px 0 30px; }
.article-hero img { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; }
.article-hero figcaption { font-size: 13px; color: var(--text-dim); margin-top: 10px; text-align: center; }
.article-body figure.inline-img { margin: 26px 0; }
.article-body figure.inline-img img { border-radius: var(--radius-sm); width: 100%; }
.article-body figure.inline-img figcaption { font-size: 13px; color: var(--text-dim); margin-top: 8px; text-align: center; }
.article-body blockquote {
  border-left: 4px solid var(--gold); background: rgba(245, 179, 1, 0.06);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0;
  color: var(--text); font-weight: 500;
}
.toc { position: sticky; top: 92px; align-self: start; }
.toc details { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; }
.toc summary { font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; color: var(--gold-light); }
.toc ol { margin: 14px 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.toc a { color: var(--text-dim); }
.toc a:hover { color: var(--gold); }

/* ---------- CTA 盒 / 合规条 ---------- */
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245, 179, 1, 0.13), rgba(230, 57, 70, 0.07));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; margin: 40px 0;
}
.cta-box h2 { font-size: 23px; margin-bottom: 8px; }
.cta-box p { color: var(--text-dim); max-width: 52ch; margin: 0; }
.cta-box-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.compliance-strip {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(46, 204, 113, 0.07); border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 30px 0; font-size: 14px; color: var(--text-dim);
}
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 40px; height: 40px; padding: 0 6px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* ---------- 促销卡 ---------- */
.promo-card { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; padding: 0; }
.promo-card .promo-img { height: 100%; object-fit: cover; min-height: 190px; }
.promo-card .promo-body { padding: 24px 26px; }
.promo-badge {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
  background: rgba(230, 57, 70, 0.15); color: var(--red); border: 1px solid rgba(230, 57, 70, 0.35);
}
.promo-badge.green { background: rgba(46, 204, 113, 0.13); color: var(--green); border-color: rgba(46, 204, 113, 0.3); }
.promo-badge.blue { background: rgba(59, 130, 246, 0.13); color: var(--blue); border-color: rgba(59, 130, 246, 0.3); }
.promo-terms { font-size: 13px; color: var(--text-dim); margin-top: 12px; border-top: 1px dashed var(--border-soft); padding-top: 12px; }

/* ---------- 表单页 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - 68px); }
.auth-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual .auth-visual-text {
  position: relative; z-index: 2; padding: 48px;
  background: linear-gradient(180deg, transparent, rgba(13, 15, 20, 0.92) 70%);
  width: 100%;
}
.auth-visual-text h2, .auth-visual-text .auth-visual-title { font-size: 27px; margin-bottom: 10px; font-weight: 800; color: var(--text); }
.auth-visual-text p { color: var(--text-dim); font-size: 15px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 56px 28px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 29px; margin-bottom: 8px; }
.auth-card > p { color: var(--text-dim); margin-bottom: 28px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 15px;
  background: var(--bg-elev); border: 1.5px solid var(--border-soft); color: var(--text);
  font-family: var(--font-body); transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.15);
}
.field .hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 18px; text-align: center; }
.form-alt { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--text-dim); }
.auth-legal { margin-top: 20px; font-size: 12.5px; color: var(--text-dim); text-align: center; }

/* ---------- 搜索 ---------- */
.search-hero { padding: 46px 0 30px; }
.search-bar { display: flex; gap: 10px; max-width: 640px; }
.search-bar input {
  flex: 1; padding: 14px 20px; border-radius: 999px; font-size: 15.5px;
  background: var(--bg-elev); border: 1.5px solid var(--border-soft); color: var(--text); font-family: var(--font-body);
}
.search-bar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.15); }
.search-result {
  display: block; background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px;
  transition: border-color 0.18s, transform 0.18s var(--ease-out);
}
.search-result:hover { border-color: var(--border); transform: translateX(4px); }
.search-result h3 { font-size: 16.5px; margin-bottom: 4px; }
.search-result p { font-size: 13.5px; color: var(--text-dim); }
.search-result .sr-url { font-size: 12px; color: var(--green); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a0c10; border-top: 1px solid var(--border); padding: 60px 0 120px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-col h3 { font-size: 15px; color: var(--gold-light); margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 14px; }
.footer-18 { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text) !important; }
.footer-tags { margin-bottom: 36px; }
.footer-tags-title { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.footer-legal { border-top: 1px solid var(--border-soft); padding-top: 26px; }
.footer-legal p { font-size: 12.8px; color: #7d8494; margin-bottom: 12px; }
.footer-copy { color: #666d7c; }

/* ---------- 底部浮窗 ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; pointer-events: none;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}
.float-cta canvas { position: absolute; inset: -140px 0 0 0; width: 100%; height: calc(100% + 140px); pointer-events: none; }
.float-inner {
  position: relative; display: flex; gap: 14px; justify-content: center; pointer-events: auto;
  max-width: 560px; margin: 0 auto;
}
.float-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 1.2px;
  padding: 15px 10px; border-radius: 999px; position: relative; overflow: visible;
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.float-btn:active { transform: scale(0.95); }
.float-btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 55%, var(--gold) 100%);
  background-size: 200% 100%; color: #1a1405;
  box-shadow: 0 8px 32px rgba(245, 179, 1, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: floatPulse 2.6s ease-in-out infinite, goldShimmer 3.2s linear infinite;
}
.float-btn-red {
  background: linear-gradient(135deg, #c1121f, var(--red)); color: #fff;
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation-delay: 1.3s;
}
.float-btn:hover { color: inherit; transform: translateY(-3px) scale(1.02); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(245, 179, 1, 0.5), 0 0 0 0 rgba(245, 179, 1, 0.45); }
  50% { box-shadow: 0 8px 32px rgba(245, 179, 1, 0.5), 0 0 0 14px rgba(245, 179, 1, 0); }
}
@keyframes goldShimmer { to { background-position: 200% 0; } }
.float-coin {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, var(--gold) 55%, var(--gold-deep));
  border: 2px solid rgba(120, 72, 0, 0.55);
  box-shadow: inset 0 -2px 4px rgba(120, 72, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  animation: coinSpin 2.2s var(--ease-out) infinite;
}
.float-btn-red .float-coin { animation-delay: 1.1s; }
@keyframes coinSpin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lobby-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 44px 0 52px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { min-height: 240px; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-card .promo-img { min-height: 150px; max-height: 210px; width: 100%; }
  .nav-toggle { display: flex; }
  .main-nav { margin-left: auto; }
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(13, 15, 20, 0.98); border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 14px; font-size: 16px; }
  .header-cta .btn { padding: 8px 14px; font-size: 12.5px; }
  .brand-word { font-size: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .lobby-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .game-card .game-body { padding: 12px 13px 15px; }
  .game-card h3, .game-card .game-title { font-size: 14px; }
  .game-card p { font-size: 12px; }
  .section { padding: 52px 0; }
  .step { grid-template-columns: 44px 1fr; padding: 18px; gap: 14px; }
  .step::before { width: 40px; height: 40px; font-size: 17px; }
  .cta-box { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .float-cta { padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .float-inner { gap: 10px; }
  .float-btn { font-size: 14px; padding: 13px 6px; letter-spacing: 0.8px; }
  .float-coin { width: 18px; height: 18px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }
  .header-inner { gap: 10px; }
  .brand-logo { width: 36px; height: 36px; }
  .header-cta .btn-ghost { display: none; }
  .header-cta .btn-gold { padding: 8px 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
