:root {
  --bg: #070912;
  --panel: #11162a;
  --panel-2: #171f3a;
  --line: rgba(255, 255, 255, .09);
  --text: #f7fbff;
  --muted: #98a4bd;
  --cyan: #1ee9ff;
  --violet: #8b5cff;
  --gold: #ffd15c;
  --pink: #ff4fd8;
  --danger: #ff6b7a;
  --official: #dce8ff;
  --official-deep: #25345d;
  --radius: 22px;
  font-family: "DIN Alternate", "Arial Narrow", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #070912;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: -2;
  background: url("../qidongye.jpg") center / cover no-repeat;
  filter: blur(18px) saturate(1.2) brightness(.58);
  transform: scale(1.06);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 218, 122, .24), transparent 28%),
    radial-gradient(circle at 12% 28%, rgba(255, 92, 122, .16), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(83, 178, 255, .18), transparent 30%),
    linear-gradient(180deg, rgba(6, 8, 20, .30) 0%, rgba(8, 10, 24, .78) 42%, #070912 100%);
}

button, input { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }

.login-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #000;
  transition: opacity .5s ease, visibility .5s ease;
}
.login-page.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) brightness(.54);
  transform: scale(1.04);
}
.login-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.62)),
    radial-gradient(circle at 50% 24%, rgba(30,233,255,.18), transparent 33%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 18px);
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 376px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(30,233,255,.30);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(8,13,30,.90), rgba(10,16,36,.78));
  box-shadow: 0 24px 90px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.06) inset;
  backdrop-filter: blur(18px);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 30%, rgba(30,233,255,.10) 45%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: cardSweep 2.8s infinite;
}
.login-terminal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 13px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(30,233,255,.18);
  color: rgba(220,232,255,.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .12em;
}
.login-terminal-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(30,233,255,.75);
}
.login-terminal-head span:nth-child(2) { background: var(--gold); box-shadow: 0 0 12px rgba(255,209,92,.65); }
.login-terminal-head span:nth-child(3) { background: var(--pink); box-shadow: 0 0 12px rgba(255,79,216,.55); }
.login-terminal-head strong { margin-left: auto; font-weight: 900; }
.login-page[data-mode="register"] .login-terminal-head strong { display: none; }
.login-logo {
  position: relative;
  z-index: 1;
  width: min(62%, 208px);
  display: block;
  margin-bottom: 15px;
  border-radius: 18px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.34));
}
.login-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.login-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 29px;
  letter-spacing: -.04em;
}
.login-copy {
  position: relative;
  z-index: 1;
  margin: 9px 0 17px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.65;
}
.login-form { position: relative; z-index: 1; display: grid; gap: 12px; }
.login-form label { display: grid; gap: 7px; }
.login-form label > span { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; }
.login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(220,232,255,.16);
  border-radius: 16px;
  outline: 0;
  color: var(--text);
  background: rgba(255,255,255,.075);
}
.login-form input:focus { border-color: rgba(30,233,255,.58); box-shadow: 0 0 0 3px rgba(30,233,255,.10); }
.password-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 9px;
}
.password-eye {
  height: 48px;
  border-radius: 16px;
  color: rgba(220,232,255,.88);
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(220,232,255,.16);
  font-size: 17px;
}
.password-eye.active {
  color: #07101f;
  background: linear-gradient(135deg, #dce8ff, var(--cyan));
}
.login-error {
  display: none;
  color: #ff4d5f;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.login-error.show { display: block; }
.login-form input.input-error {
  border-color: rgba(255, 77, 95, .88);
  box-shadow: 0 0 0 3px rgba(255, 77, 95, .13);
}
.login-page[data-mode="login"] .register-only { display: none; }
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 9px;
}
.captcha-row button {
  border-radius: 16px;
  color: #07101f;
  background: linear-gradient(135deg, #dce8ff, var(--cyan));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .10em;
  box-shadow: 0 0 18px rgba(30,233,255,.14) inset;
}
.login-switch {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 12px;
  padding: 10px 8px;
  border-radius: 15px;
  color: var(--cyan);
  background: rgba(30,233,255,.08);
  border: 1px solid rgba(30,233,255,.16);
  font-size: 13px;
  font-weight: 900;
}
.login-submit {
  height: 48px;
  margin-top: 4px;
  border-radius: 17px;
  color: #07101f;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(30,233,255,.18);
}
.login-submit:disabled {
  cursor: not-allowed;
  opacity: .72;
  filter: grayscale(.25);
}
.login-safe-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: rgba(220,232,255,.58);
  font-size: 12px;
}
.login-safe-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 14px rgba(0,255,170,.70);
}

.boot-wait { opacity: 0; visibility: hidden; pointer-events: none; }
.boot.show { opacity: 1; visibility: visible; pointer-events: auto; }
.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity .55s ease, visibility .55s ease;
}
.boot.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.boot-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.12) 44%, rgba(0,0,0,.64) 100%),
    radial-gradient(circle at 50% 34%, transparent 0 34%, rgba(0,0,0,.18) 72%);
  pointer-events: none;
}
.boot-brand {
  position: absolute;
  left: 22px;
  top: calc(20px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(8, 12, 28, .34);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.boot-brand span {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .05em;
}
.boot-brand strong {
  padding-left: 9px;
  border-left: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .16em;
}
.boot-loading {
  position: absolute;
  left: 50%;
  bottom: calc(152px + env(safe-area-inset-bottom));
  width: min(calc(100% - 52px), 360px);
  transform: translateX(-50%);
  display: grid;
  gap: 9px;
  padding: 14px 15px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(5, 8, 18, .46);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0,0,0,.30);
}
.boot-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,.56);
  box-shadow: 0 0 0 1px rgba(255,255,255,.24) inset, 0 0 18px rgba(255,255,255,.10);
}
.boot-progress span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe08a 0%, #ff8a3d 52%, #fff3b0 100%);
  box-shadow: 0 0 20px rgba(255, 122, 61, .88);
  transition: width .12s linear;
}
.boot-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255,255,255,.62) 46%, transparent 56% 100%);
  transform: translateX(-100%);
  animation: bootImageShine 1.1s ease-in-out infinite;
}
.boot-loading span {
  color: rgba(255,255,255,.84);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.boot-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, .10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
  animation: gridDrift 4s linear infinite;
}
.boot-scan {
  position: absolute;
  inset: -20% 0 auto;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 170, .18), transparent);
  filter: blur(1px);
  animation: scanDrop 2.4s infinite cubic-bezier(.6, 0, .2, 1);
}
.boot-noise {
  position: absolute;
  inset: 0;
  opacity: .28;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,255,170,.04) 9px 10px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.boot-card {
  position: relative;
  width: min(84vw, 350px);
  padding: 18px 18px 20px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(0, 255, 170, .48);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(3, 18, 14, .94), rgba(4, 8, 15, .96));
  box-shadow:
    0 0 0 1px rgba(30, 233, 255, .08) inset,
    0 0 44px rgba(0, 255, 170, .18),
    0 28px 90px rgba(0, 0, 0, .62);
}
.boot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(30, 233, 255, .12), transparent);
  transform: translateX(-120%);
  animation: cardSweep 2.2s infinite;
}
.boot-terminal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 13px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 255, 170, .20);
  color: rgba(190, 255, 230, .72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}
.boot-terminal-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 10px rgba(0, 255, 170, .8);
}
.boot-terminal-head span:nth-child(2) { background: var(--gold); box-shadow: 0 0 10px rgba(255, 209, 92, .7); }
.boot-terminal-head span:nth-child(3) { background: var(--danger); box-shadow: 0 0 10px rgba(255, 107, 122, .7); }
.boot-terminal-head strong { margin-left: auto; font-weight: 800; }
.boot-badge, .chip, .eyebrow { letter-spacing: .12em; text-transform: uppercase; }
.boot-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(0, 255, 170, .42);
  border-radius: 7px;
  color: #98ffd8;
  background: rgba(0, 255, 170, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 255, 170, .12) inset;
}
.boot h1 {
  position: relative;
  z-index: 1;
  margin: 16px 0 8px;
  color: #eafff7;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 255, 170, .45), 2px 0 rgba(30, 233, 255, .35), -2px 0 rgba(255, 79, 216, .22);
}
.boot-subtitle { position: relative; z-index: 1; margin: 0; color: #8df8d1; font-size: 13px; }
.boot-code {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid rgba(0, 255, 170, .16);
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  color: rgba(205, 255, 236, .82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
}
.ok { color: #00ffaa; }
.blink { color: var(--cyan); animation: blink 1s steps(2, start) infinite; }
.boot-loader {
  position: relative;
  z-index: 1;
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 170, .28);
  border-radius: 3px;
  background: rgba(0,0,0,.36);
}
.boot-loader span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, #00ffaa, var(--cyan), #00ffaa);
  box-shadow: 0 0 18px rgba(0, 255, 170, .76);
  animation: pulseBar 1.2s infinite ease-in-out;
}
.boot-status {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: rgba(190, 255, 230, .7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .14em;
}

.phone-shell {
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px 92px;
}

.topbar, .section-head, .notice-line, .game-meta, .modal-actions, .tabbar, .category-card, .game-card { display: flex; }
.topbar {
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.icon-btn, .service-btn {
  height: 42px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.icon-btn { width: 42px; font-size: 20px; }
.service-btn { margin-left: auto; padding: 0 15px; color: var(--cyan); font-weight: 800; }
.eyebrow { margin: 0 0 2px; color: var(--cyan); font-size: 10px; font-weight: 800; }
.topbar h2 { margin: 0; font-size: 22px; }

.hero {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(139, 92, 255, .92), rgba(21, 29, 58, .82) 48%, rgba(30, 233, 255, .28)),
    radial-gradient(circle at 80% 20%, rgba(255, 209, 92, .38), transparent 30%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}
.hero::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 26px solid rgba(255,255,255,.08);
}
.chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #07101f;
  background: var(--gold);
}
.hero h1 { margin: 14px 0 10px; font-size: 32px; line-height: 1.08; }
.hero p { width: 66%; margin: 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.7; }
.hero-about {
  min-height: auto;
  padding: 22px 20px 24px;
  background:
    linear-gradient(155deg, rgba(24, 15, 45, .92), rgba(10, 13, 30, .90) 52%, rgba(30, 233, 255, .14)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 13px),
    radial-gradient(circle at 82% 12%, rgba(255, 224, 138, .25), transparent 34%);
}
.hero-about::after { display: none; }
.hero-about .hero-copy { position: relative; z-index: 1; }
.hero-about .chip {
  color: #22110b;
  background: linear-gradient(90deg, #ffe08a, #ff9a4d);
}
.hero-logo {
  display: block;
  width: min(68%, 220px);
  height: auto;
  margin: 0 0 13px;
  object-fit: contain;
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
.hero-ribbon {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(30,233,255,.28);
  border-radius: 999px;
  background: rgba(7, 11, 28, .58);
  box-shadow: 0 0 24px rgba(30,233,255,.10) inset;
}
.hero-ribbon span {
  color: rgba(220,232,255,.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}
.hero-ribbon strong {
  padding: 4px 8px;
  border-radius: 999px;
  color: #07101f;
  background: linear-gradient(90deg, var(--cyan), #dce8ff);
  font-size: 11px;
}
.hero-about h1 {
  max-width: 310px;
  font-size: 28px;
  letter-spacing: -.03em;
  text-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.tech-title {
  display: grid;
  gap: 6px;
  margin: 15px 0 12px;
  text-transform: uppercase;
}
.tech-title span {
  display: block;
  width: fit-content;
  padding: 4px 9px 4px 10px;
  border-left: 3px solid #ffe08a;
  color: rgba(255,255,255,.92);
  background: linear-gradient(90deg, rgba(255,224,138,.16), transparent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
}
.tech-title strong {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  line-height: .95;
  letter-spacing: .02em;
}
.tech-title em {
  color: #ffe08a;
  font-style: normal;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 52px;
  line-height: .78;
  letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(255, 138, 61, .58), 0 8px 22px rgba(0,0,0,.35);
}
.hero-about p {
  width: 100%;
  margin-top: 9px;
  color: rgba(255,255,255,.80);
  font-size: 12.5px;
  line-height: 1.72;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
}
.hero-metrics span {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  color: rgba(255,255,255,.66);
  background: rgba(0,0,0,.18);
  font-size: 11px;
}
.hero-metrics strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.orbit { position: absolute; right: 18px; top: 24px; width: 128px; height: 128px; }
.tile {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(0,0,0,.28);
}
.t1 { width: 66px; height: 66px; right: 30px; top: 4px; color: #081120; background: var(--cyan); transform: rotate(-10deg); }
.t2 { width: 48px; height: 48px; right: 2px; top: 76px; background: var(--pink); transform: rotate(14deg); }
.t3 { width: 72px; height: 44px; right: 58px; top: 82px; color: #07101f; background: var(--gold); transform: rotate(-6deg); }

.search-panel { margin: 16px 0; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.075);
}
.search-box span { color: var(--cyan); font-size: 22px; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder { color: #71809d; }
.notice-line {
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.notice-line span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.category-card {
  position: relative;
  min-height: 76px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-card::after {
  content: "查看";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.065);
  font-size: 10px;
  font-weight: 900;
}
.category-card:active { transform: scale(.985); }
.category-card.active {
  border-color: rgba(0, 255, 170, .72);
  box-shadow: 0 0 28px rgba(0, 255, 170, .12), inset 3px 0 0 rgba(0, 255, 170, .9);
}
.category-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.category-card strong { display: block; margin-right: 44px; margin-bottom: 5px; text-align: left; font-size: 16px; }
.category-card small { display: block; margin-right: 44px; margin-left: 0; text-align: left; color: var(--muted); }
.category-card em {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #07101f;
  font-style: normal;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
}

.section-head {
  align-items: flex-end;
  justify-content: space-between;
  margin: 22px 2px 12px;
}
.section-head h3 { margin: 0; font-size: 21px; }
.count { color: var(--muted); font-size: 13px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
}
.game-card {
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.game-card:active { transform: scale(.98); }
.game-card:hover { border-color: rgba(30,233,255,.28); background: rgba(255,255,255,.075); }
.logo-wrap {
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
}
.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  background: #0c1020;
}
.game-card strong {
  width: 100%;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}
.game-card button {
  width: 72px;
  height: 27px;
  border-radius: 999px;
  color: #06101d;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(30,233,255,.14);
}
.home-hint {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed rgba(220,232,255,.20);
  border-radius: 22px;
  color: rgba(220,232,255,.70);
  background: rgba(255,255,255,.04);
  text-align: center;
  font-size: 13px;
}
.home-hint strong { color: var(--cyan); font-size: 12px; }

.all-page {
  display: none;
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px 92px;
}
.all-page.show { display: block; }
.all-search-panel { margin: 2px 0 16px; }
.all-page-head { margin-top: 0; }

.mine-page {
  display: none;
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px 92px;
}
.mine-page.show { display: block; }
.mine-account-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(20,26,52,.90), rgba(9,12,26,.78));
  box-shadow: 0 18px 48px rgba(0,0,0,.30);
  backdrop-filter: blur(14px);
}
.mine-account-head h3 { margin: 0 0 15px; font-size: 23px; }
.account-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}
.account-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: var(--official);
  background:
    linear-gradient(145deg, rgba(220,232,255,.18), rgba(37,52,93,.92)),
    radial-gradient(circle at 28% 18%, rgba(30,233,255,.36), transparent 34%);
  border: 1px solid rgba(220,232,255,.26);
  box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.account-avatar::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(220,232,255,.22);
  border-radius: 14px;
}
.avatar-mark {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.avatar-shield {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 13px;
  height: 15px;
  clip-path: polygon(50% 0, 100% 18%, 90% 74%, 50% 100%, 10% 74%, 0 18%);
  background: linear-gradient(180deg, #dce8ff, #1ee9ff);
  box-shadow: 0 0 12px rgba(30,233,255,.58);
}
.account-profile span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.account-profile strong { display: block; color: rgba(255,255,255,.94); font-size: 18px; }
.account-info-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.account-info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.account-info-list strong { color: rgba(255,255,255,.88); font-size: 13px; }
.level-badge {
  padding: 4px 9px;
  border-radius: 999px;
  color: #221306 !important;
  background: linear-gradient(90deg, #ffe08a, #ff8a3d);
}
.password-entry {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.065);
  font-weight: 800;
}
.password-entry em { color: #ffe08a; font-style: normal; font-size: 26px; line-height: 1; }
.price-card {
  margin-top: 13px;
  padding: 15px;
  border: 1px solid rgba(30,233,255,.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(30,233,255,.08), rgba(255,255,255,.045)),
    rgba(255,255,255,.035);
}
.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.price-card-head span {
  color: rgba(255,255,255,.94);
  font-size: 18px;
  font-weight: 950;
}
.price-card-head strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: #07101f;
  background: linear-gradient(90deg, var(--cyan), #dce8ff);
  font-size: 11px;
}
.price-list {
  display: grid;
  gap: 8px;
}
.price-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(0,0,0,.16);
  color: var(--muted);
  font-size: 13px;
}
.price-list strong {
  color: rgba(255,255,255,.90);
  font-size: 13px;
}
.price-card p {
  margin: 11px 0 0;
  color: rgba(220,232,255,.62);
  font-size: 12px;
  line-height: 1.65;
}
.result-modal { position: fixed; inset: 0; z-index: 95; display: none; }
.result-modal.show { display: block; }
.result-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); }
.result-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 44px), 342px);
  padding: 28px 20px 20px;
  transform: translate(-50%, -50%);
  text-align: center;
  border: 1px solid rgba(30,233,255,.26);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(26,33,64,.98), rgba(12,16,32,.98));
  box-shadow: 0 24px 90px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.result-modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  color: #07101f;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(30,233,255,.22);
}
.result-modal.error .result-modal-icon { background: linear-gradient(135deg, #ff6b7a, #ffd15c); }
.result-modal-card h3 { margin: 0 0 9px; font-size: 22px; }
.result-modal-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.result-modal-card button {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border-radius: 16px;
  color: #07101f;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  font-weight: 950;
}

.password-modal { position: fixed; inset: 0; z-index: 75; display: none; }
.password-modal.show { display: block; }
.password-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.password-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 36px), 372px);
  transform: translate(-50%, -50%);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(160deg, #1a2140, #0c1020);
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}
.password-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.password-modal-head h3 { margin: 0; font-size: 21px; }
.password-modal-head button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: rgba(255,255,255,.82);
  font-size: 23px;
  line-height: 1;
}
.password-form { display: grid; gap: 12px; }
.password-form label { display: grid; gap: 7px; }
.password-form label > span { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; }
.password-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: rgba(255,255,255,.07);
}
.password-form input::placeholder { color: #71809d; }
.mine-submit {
  height: 44px;
  border-radius: 15px;
  color: #221306;
  background: linear-gradient(90deg, #ffe08a, #ff8a3d);
  font-weight: 900;
}

.service-page {
  display: none;
  width: min(100%, 440px);
  height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 92px;
}
.service-page.show { display: block; }
.service-page iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - 28px), 412px);
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-around;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 12, 26, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.38);
}
.tab {
  min-width: 68px;
  padding: 7px 4px;
  border-radius: 17px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}
.tab span { display: block; margin-bottom: 2px; font-size: 17px; }
.tab.active { color: #07101f; background: linear-gradient(90deg, var(--cyan), var(--gold)); font-weight: 900; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.82);
  color: #fff;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.category-modal { position: fixed; inset: 0; z-index: 65; display: none; }
.category-modal.show { display: block; }
.category-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.category-modal-card {
  position: absolute;
  left: 50%;
  top: calc(18px + env(safe-area-inset-top));
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 412px);
  transform: translateX(-50%);
  overflow: auto;
  padding: 17px 14px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(26,33,64,.96), rgba(9,12,26,.96));
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}
.category-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}
.category-modal-head h3 { margin: 0; font-size: 21px; }
.category-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: rgba(255,255,255,.82);
  font-size: 23px;
  line-height: 1;
}
.category-modal-grid { margin-top: 14px; }

.modal { position: fixed; inset: 0; z-index: 70; display: none; }
.modal.show { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); }
.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 44px), 360px);
  padding: 26px 20px 18px;
  transform: translate(-50%, -50%);
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: linear-gradient(160deg, #1a2140, #0c1020);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #07101f;
  background: var(--gold);
  font-size: 34px;
  font-weight: 950;
}
.modal-card h3 { margin: 0 0 10px; font-size: 22px; }
.modal-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.modal-actions { gap: 10px; margin-top: 20px; }
.modal-actions button { flex: 1; height: 44px; border-radius: 15px; font-weight: 900; }
.ghost { background: rgba(255,255,255,.08); }
.primary { color: #07101f; background: linear-gradient(90deg, var(--cyan), var(--gold)); }

.empty {
  grid-column: 1 / -1;
  padding: 38px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 22px;
}

@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(28px, 28px, 0); }
}

@keyframes scanDrop {
  0% { transform: translateY(-45%); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(330%); opacity: 0; }
}

@keyframes cardSweep {
  0%, 22% { transform: translateX(-120%); }
  72%, 100% { transform: translateX(120%); }
}

@keyframes pulseBar {
  0%, 100% { filter: brightness(.85); transform: translateX(-7%); }
  50% { filter: brightness(1.45); transform: translateX(7%); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes bootImageLoad {
  0% { width: 8%; }
  18% { width: 24%; }
  46% { width: 52%; }
  72% { width: 78%; }
  100% { width: 100%; }
}

@keyframes bootImageShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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