: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 {
  --bg:         #001a0d;
  --surface:    #0f281c;
  --surface-alt:#0a2317;
  --primary:    #f78e01;
  --primary-dk: #e07d00;
  --brand:      #23ae5c;
  --brand-dk:   #187a40;
  --accent:     #cff158;
  --text:       #f0f5f1;
  --text-muted: #8aab96;
  --border:     #c9a75d;
  --radius-card:  24px;
  --radius-btn:   999px;
  --radius-input: 16px;
  --radius-badge: 999px;
  --radius-modal: 32px;
  --shadow-card:  0 12px 32px rgba(0,0,0,.30);
  --shadow-btn:   0 8px 24px rgba(247,142,1,.35);
  --shadow-brand: 0 16px 40px rgba(35,174,92,.20);
  --shadow-nav:   0 4px 16px rgba(0,0,0,.40);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--brand) var(--surface-alt);
  scrollbar-width: thin;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  text-underline-offset: 3px;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; }

h1, h2, h3, h4, h5 {
  font-family: 'Righteous', sans-serif;
  line-height: 1.25;
  margin-top: 0;
}

h2 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; overflow-wrap: anywhere; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.btn-primary-site {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background 200ms, box-shadow 200ms, transform 150ms;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary-site:hover {
  background: var(--primary-dk);
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary-site:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn-secondary-site {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 13px 30px;
  border: 2px solid var(--text);
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
  text-decoration: none;
  line-height: 1.4;
}
.btn-secondary-site:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-secondary-site:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.btn-brand-site {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background 200ms, box-shadow 200ms;
  text-decoration: none;
  line-height: 1.4;
}
.btn-brand-site:hover {
  background: var(--brand-dk);
  color: #fff;
}

.btn-accent-site {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background 200ms;
  text-decoration: none;
  line-height: 1.4;
}
.btn-accent-site:hover { background: #bde040; color: var(--bg); }

.site-navbar {
  background: var(--surface-alt);
  height: 68px;
  border-bottom: 1px solid rgba(201,167,93,.30);
  box-shadow: var(--shadow-nav);
}

.site-navbar .navbar-brand {
  font-family: 'Righteous', sans-serif;
  color: var(--brand) !important;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
}

.site-navbar .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text) !important;
  padding: 8px 10px !important;
  transition: color 200ms;
  white-space: nowrap;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--brand) !important; }
.site-navbar .nav-link.active {
  border-bottom: 2px solid var(--brand);
}

.nav-btn-login {
  border: 1.5px solid var(--text);
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  background: transparent;
  color: var(--text) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 200ms, color 200ms;
  text-decoration: none;
}
.nav-btn-login:hover { border-color: var(--brand); color: var(--brand) !important; }

.nav-btn-register {
  background: var(--primary);
  border-radius: var(--radius-btn);
  padding: 8px 24px;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 200ms, box-shadow 200ms;
  text-decoration: none;
  border: none;
}
.nav-btn-register:hover {
  background: var(--primary-dk);
  box-shadow: var(--shadow-btn);
  color: #fff !important;
}

.section-divider {
  height: 48px;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='48'%3E%3Ccircle cx='20' cy='24' r='8' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='20' cy='24' r='4' fill='none' stroke='white' stroke-width='0.5'/%3E%3Cpath d='M20 16 L28 24 L20 32 L12 24 Z' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='60' cy='24' r='10' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M60 14 L60 34 M50 24 L70 24' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='100' cy='24' r='8' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M100 16 L108 24 L100 32 L92 24 Z' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 48px;
  opacity: 0.07;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='16' fill='none' stroke='white' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='40' r='8' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='2' fill='white'/%3E%3Cpath d='M40 24 L40 56 M24 40 L56 40 M28 28 L52 52 M52 28 L28 52' stroke='white' stroke-width='0.4'/%3E%3Ccircle cx='0' cy='0' r='4' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='80' cy='0' r='4' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='80' r='4' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='80' cy='80' r='4' fill='none' stroke='white' stroke-width='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
  opacity: 0.045;
}

main, header, footer { position: relative; z-index: 1; }

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

.section-pad {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
}

.site-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid rgba(201,167,93,.20);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.40);
  border-color: rgba(201,167,93,.50);
}

.site-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-badge);
  padding: 3px 12px;
}
.badge-border {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--border);
}
.badge-brand {
  background: var(--brand);
  color: #fff;
}
.badge-18 {
  border: 1.5px solid var(--border);
  color: var(--border);
  border-radius: var(--radius-badge);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text);
  line-height: 1.3;
}
.section-title-accent {
  border-left: 4px solid var(--brand);
  padding-left: 0.75rem;
}

.site-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-alt);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201,167,93,.20);
}
.site-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(201,167,93,.20);
}
.site-table td {
  padding: 11px 16px;
  font-size: 0.875rem;
  color: var(--text);
  border-bottom: 1px solid rgba(201,167,93,.10);
}
.site-table tr:last-child td { border-bottom: none; }
.site-table tr:hover td { background: rgba(35,174,92,.05); }

.site-footer {
  background: var(--surface-alt);
  position: relative;
}
.footer-alpona {
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='32'%3E%3Cpath d='M0 16 Q15 4 30 16 Q45 28 60 16 Q75 4 90 16 Q105 28 120 16' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='30' cy='16' r='4' fill='none' stroke='white' stroke-width='0.8'/%3E%3Ccircle cx='60' cy='16' r='4' fill='none' stroke='white' stroke-width='0.8'/%3E%3Ccircle cx='90' cy='16' r='4' fill='none' stroke='white' stroke-width='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 32px;
  opacity: 0.10;
  border-top: 1px solid rgba(201,167,93,.30);
}
.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color 180ms;
}
.footer-link:hover { color: var(--text); }
.footer-col-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--border);
  margin-bottom: 12px;
}
.footer-copy {
  border-top: 1px solid rgba(201,167,93,.20);
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.navbar-toggler {
  border: 1.5px solid rgba(201,167,93,.50);
  border-radius: 12px;
  padding: 6px 10px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(240,245,241,0.9)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

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

: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; } }

[data-component="steps"] > li > * { grid-column: 2; }
[data-component="steps"] > li::before { grid-row: span 2; }
: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}
