: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: #fef6f6;
  --surface: #fffcfc;
  --surface-alt: #f4ecec;
  --primary: #90226d;
  --primary-dark: #65184c;
  --action: #f2021b;
  --action-dark: #c5011a;
  --accent: #14ad59;
  --gold: #b29940;
  --text: #1a0a0a;
  --text-muted: #6b3a3a;
  --border: #b29940;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #90226d #f4ecec;
  scrollbar-width: thin;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(178,153,64,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #90226d;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}

a {
  color: var(--primary);
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', sans-serif;
  color: var(--text);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: 1rem; }

img { max-width: 100%; height: auto; }

.clip-std {
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0 !important;
}
.clip-sm {
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  border-radius: 0 !important;
}
.clip-lg {
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  border-radius: 0 !important;
}

.btn-site-primary {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--action);
  border: none;
  padding: 14px 32px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  box-shadow: 3px 3px 0 0 #90226d, 0 0 8px 1px rgba(242,2,27,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-site-primary:hover, .btn-site-primary:focus-visible {
  background: var(--action-dark);
  color: #fff;
  box-shadow: 5px 5px 0 0 var(--primary-dark), 0 0 16px 4px rgba(242,2,27,0.6);
  transform: translate(-1px, -1px);
  text-decoration: none;
}

.btn-site-secondary {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  padding: 12px 28px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-site-secondary:hover, .btn-site-secondary:focus-visible {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

.btn-site-outline {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-site-outline:hover, .btn-site-outline:focus-visible {
  background: var(--primary);
  color: #fff;
  box-shadow: 3px 3px 0 0 var(--gold);
  text-decoration: none;
}

.btn-site-green {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 14px 32px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  box-shadow: 3px 3px 0 0 #0d7a3f;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-site-green:hover {
  background: #0f9449;
  color: #fff;
  box-shadow: 5px 5px 0 0 #0d7a3f;
  transform: translate(-1px, -1px);
  text-decoration: none;
}

.site-nav {
  background-color: var(--primary);
  border-bottom: 2px solid var(--gold);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav .navbar-brand img {
  height: 40px;
  width: auto;
}

.site-nav .nav-link {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.88) !important;
  margin: 0 4px;
  padding: 6px 10px !important;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.site-nav .nav-link:hover {
  color: #fff !important;
}
.site-nav .nav-link.active {
  color: #fff !important;
  background: rgba(178,153,64,0.15);
  border-bottom: 3px solid var(--gold);
}

.site-nav .navbar-toggler {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.site-nav .navbar-toggler-icon {
  filter: invert(1);
}

.nav-btn-login {
  font-family: 'Baloo 2', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff !important;
  background: transparent;
  border: 2px solid #fff;
  padding: 7px 18px !important;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.15s;
}
.nav-btn-login:hover { background: rgba(255,255,255,0.15) !important; }

.nav-btn-register {
  font-family: 'Baloo 2', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff !important;
  background: var(--action);
  border: 2px solid var(--action);
  padding: 7px 18px !important;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 3px 3px 0 0 var(--primary-dark);
  transition: background 0.15s, box-shadow 0.15s;
}
.nav-btn-register:hover {
  background: var(--action-dark) !important;
  border-color: var(--action-dark);
  box-shadow: 5px 5px 0 0 var(--primary-dark);
}

main > section, main > div.section-block {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
}

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

.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(178,153,64,0.5);
  position: relative;
  border: none;
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.section-divider::before { left: 0; }
.section-divider::after { right: 0; transform: rotate(180deg); }

.site-card {
  background: var(--surface);
  border: 1px solid var(--gold);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 0 var(--gold), 0 0 0 1px var(--gold);
  transition: box-shadow 0.15s, transform 0.15s;
}
.site-card:hover {
  box-shadow: 4px 4px 0 0 var(--gold), 0 0 12px 2px rgba(178,153,64,0.35);
  transform: translateY(-2px);
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
}
.site-table th {
  background: var(--primary);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
}
.site-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(178,153,64,0.2);
  color: var(--text);
}
.site-table tr:nth-child(even) td { background: var(--surface-alt); }
.site-table tr:last-child td { border-bottom: none; }

.callout {
  border-left: 4px solid var(--action);
  background: var(--surface);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  padding: 16px 20px;
  margin: 1.5rem 0;
}

.site-footer {
  background: #1a0a0a;
  border-top: 2px solid rgba(178,153,64,0.4);
}
.site-footer .footer-col-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.site-footer a {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 7px;
  transition: color 0.15s;
}
.site-footer a:hover { color: #fff; }
.site-footer .copyright {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  border-top: 1px solid rgba(178,153,64,0.2);
  padding-top: 16px;
  margin-top: 32px;
}
.site-footer .footer-brand {
  font-family: 'Baloo 2', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  line-height: 1.1;
  margin-bottom: 10px;
}
.site-footer .footer-tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: rgba(178,153,64,0.08);
  white-space: nowrap;
}

@media (max-width: 1399.98px) {
  .site-nav .navbar-collapse {
    background: var(--primary);
    padding: 12px 16px;
    border-top: 1px solid rgba(178,153,64,0.3);
  }
  .site-nav .nav-link { margin: 2px 0; }
}

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