:root{--qa-guard:start}

:where(main :is([class*="grid"], [style*="grid"], [class*="layout"], .row, [class*="cols"], [class*="split"], [class*="columns"],
               [data-component], ol, ul, dl) > *) { min-width: 0; }
:where(main img, main video, main iframe) { max-width: 100%; }
:where(main img) { height: auto; }
:where(main pre) { overflow-x: auto; }
:where(main table) { max-width: 100%; }
:where(h1, h2, h3, h4, h5, h6) { line-height: 1.3; }
:where(footer a:not([class*="btn"]), .breadcrumb a, nav li a) { display: inline-block; padding-block: 4px; }
img[data-role="hero"] { object-position: 75% 30% !important; } 
.navbar-brand:has(> img.site-logo) { background: none !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
.navbar-brand > img.site-logo { height: 40px; width: auto; display: block; }

.navbar:has(> div:empty):has(> :is([class*="container"], [class*="inner"])) { flex-direction: column; align-items: stretch; }
.navbar .navbar-brand { flex-shrink: 0; }
@media (min-width: 576px) {  
  .navbar :is(a, button)[class*="btn"] { flex-shrink: 0; }
  .navbar :is(.nav-link, a[class*="btn"], button[class*="btn"]) { white-space: nowrap; }
}

:is(.navbar, .navbar > *, .navbar :has(> .navbar-collapse)):has(.navbar-collapse:is(.show, .collapsing)) { height: auto !important; max-height: none !important; }

@media (min-width: 992px) {
  main .row > [class*="col"]:has(> img[data-role="section"]:only-child) { align-self: stretch; }
  main .row > [class*="col"] > img[data-role="section"]:only-child { height: 100% !important; object-fit: cover; }
}

main > :is(section, div):not(:first-child):not(:empty, [class*="divider"], [class*="separator"], [aria-hidden="true"]) { padding-block: clamp(28px, 3.5vw, 44px) !important; margin-block: 0 !important; }
main > :first-child, main > :first-child > :is(section, div) { min-height: 0 !important; }
main > :first-child { padding-block: clamp(24px, 4vw, 56px) !important; }
main :is(h1, h2, h3) { line-height: 1.35 !important; }
main :is(p, li, td, dd) { line-height: 1.55 !important; }
main > :is(section, div) :is(h2):first-of-type { margin-bottom: 12px; }
@media (max-width: 575.98px) {
  main [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) { grid-template-columns: 1fr !important; }
  
  :is([data-component="game-grid"], [data-component="game-grid"] *):has(> .game-card) {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .game-card .game-tag { position: static !important; display: inline-block; margin-top: 6px; }
  
  main :is(div, p, nav):has(> :is(a, button)[class*="btn"]):not([class*="scroll"], [class*="strip"], [class*="tab"], [class*="chip"]) {
    flex-wrap: wrap !important; flex-shrink: 1 !important; max-width: 100%; }
  main div:has(> :is(div, p) > :is(a, button)[class*="btn"]):not([class*="scroll"], [class*="strip"], [class*="tab"], [class*="chip"]) {
    flex-wrap: wrap !important; }  
  
  main :is(ol, ul, [data-component="steps"], [data-component="steps"] div):not([class*="scroll"], [class*="strip"], [class*="tab"], [class*="chip"]) {
    flex-wrap: wrap !important; }
  main :is(a, button)[class*="btn"] { white-space: normal !important; }
  
  main table:not(:is([class*="responsive"], [class*="scroll"], [style*="overflow"]) table) {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .game-card :is(.game-card-body, div:has(> h3)) { padding: 10px 12px 12px !important; }
}
.toc-auto { margin: 0 auto 24px; max-width: 1100px; padding: 12px 16px; border: 1px solid var(--border, rgba(255,255,255,.15)); border-radius: 12px; }
.toc-auto summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.toc-auto ol { margin: 8px 0 0; padding-left: 1.4em; }
[data-component="toc"] a { display: inline-block; padding-block: 4px; }
html { scroll-padding-top: 88px; }

:is(header, footer, main > :not(:first-child)) :is(.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl) {
  max-width: 1320px !important; margin-inline: auto !important; }
main > :not(:has([class*="container"])) { padding-inline: max(16px, calc((100% - 1320px) / 2)) !important; }  

:where(main > :first-child > :not([class*="container"], :has([class*="container"]), img, picture, video, [style*="absolute"])) {
  padding-inline: max(16px, calc((100% - 1320px) / 2)); }
main > :first-child :is(.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl):not(:has(> img[data-role="hero"])) {
  max-width: 1320px !important; margin-inline: auto !important; }
:where(main [style*="overflow-x"][style*="flex"]:not([style*="wrap"])) > * { min-width: auto; }

:where(main > :not(:first-child), body > footer) { content-visibility: auto; contain-intrinsic-size: auto 600px; }
@media (max-width: 767.98px) { :where(main > :not(:first-child), body > footer) { contain-intrinsic-size: auto 900px; } }  
:root{--qa-guard:end}

:root {
  --color-bg: #fde0e3;
  --color-surface: #fef6f7;
  --color-surface-alt: #f3d7da;
  --color-primary: #1771f8;
  --color-primary-text: #1a1a1a;
  --color-accent: #ce9c21;
  --color-text: #2d2d2d;
  --color-text-muted: #666666;
  --color-border: #ac9022;
  --color-brand: #ca0b3e;
  --color-brand-dark: #8d082b;
  --radius: 2px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--color-brand) var(--color-bg);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
}

::selection {
  background: var(--color-brand);
  color: white;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-primary-text);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  color: var(--color-primary-text);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.2s ease-out;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--color-brand-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.navbar {
  background: white;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}

.navbar-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-brand) !important;
  letter-spacing: -0.02em;
  padding: 0;
  margin-right: 2rem;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.2s ease-out;
}

.nav-link:hover {
  color: var(--color-brand) !important;
}

.nav-link.active {
  color: var(--color-brand) !important;
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: calc(0.5rem - 2px) !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.btn-login {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease-out;
}

.btn-login:hover {
  background: rgba(23, 113, 248, 0.05);
  border-color: #0d5bc4;
  color: #0d5bc4;
}

.btn-login:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-signup {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease-out;
}

.btn-signup:hover {
  background: #0d5bc4;
  border-color: #0d5bc4;
  color: white;
}

.btn-signup:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

main {
  background: var(--color-bg);
}

.section {
  padding: clamp(28px, 3.5vw, 44px) 0;
}

.section-light {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.section-alt {
  background: var(--color-surface-alt);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: #0d5bc4;
  border-color: #0d5bc4;
  color: white;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(23, 113, 248, 0.05);
  border-color: #0d5bc4;
  color: #0d5bc4;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-accent {
  background: var(--color-accent);
  color: white;
  border: 1px solid var(--color-accent);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-accent:hover {
  background: #b88a1a;
  border-color: #b88a1a;
  color: white;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-brand {
  color: var(--color-brand);
}

.subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: none;
  transition: all 0.2s ease-out;
}

.card:hover {
  border-color: var(--color-brand-dark);
  background: #faf8f9;
}

.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.2s ease-out;
}

.game-card:hover {
  border-color: var(--color-brand-dark);
  background: #faf8f9;
  text-decoration: none;
}

.game-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.game-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.game-tag {
  display: inline-block;
  background: var(--color-brand);
  color: white;
  padding: 4px 8px;
  border-radius: 1px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.game-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.game-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

[data-component="trust"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-component="trust"] li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

[data-component="trust"] i {
  font-size: 1.5rem;
  color: var(--color-brand);
  flex-shrink: 0;
}

[data-component="stats"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

[data-component="stats"] > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-component="stats"] dt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin: 0;
}

[data-component="stats"] dd {
  font-family: 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0;
}

[data-component="game-grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  [data-component="game-grid"] {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  [data-component="game-grid"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-component="payments"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-component="payments"] li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

[data-component="payments"] li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

[data-component="payments"] li small {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

[data-component="bonus"] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

[data-component="bonus"] h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

[data-component="bonus"] .bonus-percent {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-brand);
  text-align: center;
  line-height: 1;
  margin-bottom: 0.5rem;
}

[data-component="bonus"] .bonus-cap {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

[data-component="bonus"] table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

[data-component="bonus"] table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

[data-component="bonus"] table td:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 40%;
}

[data-component="bonus"] .bonus-button {
  text-align: center;
}

[data-component="vip"] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

[data-component="vip"] table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

[data-component="vip"] table th,
[data-component="vip"] table td {
  padding: 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.9rem;
}

[data-component="vip"] table th {
  background: var(--color-surface-alt);
  font-weight: 600;
  color: var(--color-text);
}

[data-component="vip"] table td {
  background: white;
}

[data-component="steps"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}

[data-component="steps"] li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  counter-increment: steps;
  position: relative;
}

[data-component="steps"] li::before {
  content: counter(steps);
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

[data-component="steps"] li h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

[data-component="steps"] li p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

[data-component="faq"] {
  display: grid;
  gap: 1rem;
}

[data-component="faq"] details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

[data-component="faq"] details:hover {
  border-color: var(--color-brand-dark);
  background: #faf8f9;
}

[data-component="faq"] summary {
  padding: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

[data-component="faq"] summary::marker {
  display: none;
}

[data-component="faq"] summary::after {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2d2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.2s ease-out;
  flex-shrink: 0;
}

[data-component="faq"] details[open] summary::after {
  transform: rotate(180deg);
}

[data-component="faq"] details[open] {
  background: var(--color-surface-alt);
}

[data-component="faq"] div {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

footer {
  background: var(--color-brand-dark);
  color: white;
  padding: clamp(28px, 3.5vw, 44px) 0;
  margin-top: 3rem;
}

footer a {
  color: white;
  transition: color 0.2s ease-out;
}

footer a:hover {
  color: var(--color-bg);
}

footer .footer-section {
  margin-bottom: 2rem;
}

footer .footer-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-section li {
  margin-bottom: 0.75rem;
}

footer .footer-section a {
  font-size: 0.9rem;
}

footer .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-accent);
  text-align: center;
}

.responsible-badge {
  background: white;
  border: 2px solid var(--color-accent);
  color: var(--color-brand-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.5rem 0;
    height: auto;
  }

  .navbar-brand {
    font-size: 1.25rem;
    margin-right: 1rem;
  }

  .navbar-brand img {
    height: 36px;
  }

  .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  [data-component="stats"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  [data-component="trust"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

:root{--qa-nav:compact}
@media (min-width: 992px) {
  .navbar .nav-link { padding-left: 6px !important; padding-right: 6px !important; letter-spacing: 0 !important; white-space: normal !important; text-align: center; }
  .navbar .navbar-nav { gap: 0 !important; min-width: 0; flex-shrink: 1; }
  .navbar .navbar-collapse { min-width: 0; }
}



:root{--site-repair:start}
main > section:has(> [class*="container"]:only-child) { grid-template-columns: 1fr !important; }

.sr-email { overflow-wrap: anywhere; word-break: break-word; }

.navbar-nav .nav-link[href="/"] { white-space: nowrap !important; }

@media (min-width: 992px) { .navbar-expand-lg .navbar-toggler { display: none !important; } }
@media (min-width: 1200px) { .navbar-expand-xl .navbar-toggler { display: none !important; } }
@media (min-width: 1400px) { .navbar-expand-xxl .navbar-toggler { display: none !important; } }
:root{--site-repair:end}

:root{--w1-guard:start}
/* 组件版块是多栏网格、里面只有一个子元素（整块内容被挤进第一栏，如 FAQ 答案区宽度 0）→ 一栏 */
main :is(section, div)[data-component]:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr) !important; }
main :is([class*="wrapper"], [class*="layout"]):not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr) !important; }
/* 手机菜单展开时：折叠菜单在不换行的 flex 容器里 → 挤成旁边一窄列、logo 被挤下去 → 父容器换行，菜单占满一行 */
header .navbar :has(> .navbar-collapse:is(.show, .collapsing)) { flex-wrap: wrap !important; }
header .navbar .navbar-collapse:is(.show, .collapsing) { flex-basis: 100% !important; }
/* 展开的菜单超出页头时被首屏里定位过的元素（标题、图片层）盖住 → 菜单自己定位、抬到最上层 */
.navbar .navbar-collapse:is(.show, .collapsing) { position: relative; z-index: 1030; order: 99; }
/* 页头高度写死、内容垂直居中：展开的菜单从上下两头溢出（上半截跑出屏幕）→ 展开时页头高度随内容 */
header:has(.navbar-collapse:is(.show, .collapsing)), header :has(> .navbar-collapse:is(.show, .collapsing)) { height: auto !important; max-height: none !important; align-items: flex-start; }
:root{--w1-guard:end}
