/* ==========================================================================
   GMGO 游戏实验室 — 潮玩电竞 / 赛博霓虹
   目录：1 基础  2 顶栏  3 首屏  4 分区  5 游戏库  6 QQ群  7 关于&留言
        8 页脚  9 弹窗  10 组件  11 动效  12 响应式
   ========================================================================== */

/* 1. 基础 ---------------------------------------------------------------- */
:root {
  --ink: #07020f;
  --ink-2: #0b0418;
  --ink-3: #140829;
  --violet-50: #f7f2ff;
  --violet-200: #d9c6ff;
  --violet-300: #b98bff;
  --violet-400: #a855f7;
  --violet-500: #8b2fff;
  --violet-600: #6d1fd6;
  --violet-900: #1b0a38;
  --neon: #eaff00;
  --neon-2: #f5ff63;
  --cyan: #57e9ff;
  --pink: #ff7ad9;
  --danger: #ff5c7a;
  --text: #f3edff;
  --muted: #a294c2;
  --line: rgba(168, 85, 247, .2);
  --line-strong: rgba(168, 85, 247, .42);
  --container: 1240px;
  --radius: 20px;
  --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 680px at 12% -8%, rgba(124, 58, 237, .34), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(234, 255, 0, .06), transparent 60%),
    radial-gradient(800px 700px at 50% 110%, rgba(139, 47, 255, .16), transparent 62%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("../img/noise.png");
  background-size: 180px;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
input, textarea { -webkit-appearance: none; }

::selection { background: var(--neon); color: #0a0113; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0418; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--violet-500), var(--violet-600));
  border-radius: 99px;
  border: 2px solid #0a0418;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 2. 顶栏 ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 2, 15, .74);
  border-bottom: 1px solid rgba(168, 85, 247, .16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  background: rgba(7, 2, 15, .92);
  box-shadow: 0 18px 40px -28px #000, 0 1px 0 rgba(234, 255, 0, .12);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 76px;
  transition: height .3s var(--ease);
}
.header.is-scrolled .header__inner { height: 66px; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
  padding-right: 18px;
  border-right: 1px solid rgba(168, 85, 247, .24);
}
.brand__mark {
  width: auto;
  height: 42px;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, .55));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.brand:hover .brand__mark {
  transform: translateY(-1px) rotate(-1.2deg);
  filter: drop-shadow(0 0 20px rgba(234, 255, 0, .45));
}
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .1em;
  color: #fff;
  text-shadow: 0 0 18px rgba(168, 85, 247, .7);
}
.brand__text em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: .26em;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  color: #c9bce4;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__ext-ico { width: 11px; height: 11px; opacity: .55; transition: opacity .2s; }
.nav__blog-ico { width: 12px; height: 12px; opacity: .55; }
.nav__link--ext:hover .nav__ext-ico { opacity: 1; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: #fff; background: rgba(168, 85, 247, .12); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--neon); text-shadow: 0 0 18px rgba(234, 255, 0, .45); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  background: rgba(139, 47, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .45);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), filter .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--neon);
  color: #0a0113;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.btn--primary:hover {
  background: #f3ff4a;
  filter: drop-shadow(0 8px 26px rgba(234, 255, 0, .38));
}

.btn--ghost {
  background: rgba(139, 47, 255, .1);
  color: #e8ddff;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .45);
}
.btn--ghost:hover {
  background: rgba(139, 47, 255, .22);
  color: #fff;
  filter: drop-shadow(0 8px 24px rgba(139, 47, 255, .35));
}

.btn--lg { padding: 16px 28px; font-size: 15px; letter-spacing: .1em; }
.btn--block { width: 100%; }
.btn--login { padding: 11px 18px; font-size: 12.5px; }
.btn--login .icon { width: 16px; height: 16px; }

.user-chip { position: relative; }
.user-chip__btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 99px;
  background: rgba(139, 47, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .4);
  color: #eee6ff;
  font-size: 13px;
  font-weight: 700;
  transition: background .25s var(--ease);
}
.user-chip__btn:hover { background: rgba(139, 47, 255, .24); }
.user-chip__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--neon), #b6ff00 55%, var(--violet-400));
  color: #12031f;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
}
.user-chip__name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__chev { width: 14px; height: 14px; color: var(--muted); transition: transform .25s; }
.user-chip__btn[aria-expanded="true"] .user-chip__chev { transform: rotate(180deg); }
.user-chip__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 200px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #120726;
  box-shadow: 0 24px 60px -20px #000;
  animation: dropIn .2s var(--ease);
}
.user-chip__hello {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 10px 10px;
  border-bottom: 1px dashed rgba(168, 85, 247, .25);
  margin-bottom: 6px;
}
.user-chip__hello b { color: var(--neon); }
.user-chip__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #d6c9f0;
  transition: background .2s, color .2s;
}
.user-chip__menu button:hover { background: rgba(168, 85, 247, .18); color: #fff; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .4);
  background: rgba(139, 47, 255, .1);
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #e6dbff;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 3. 首屏 ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 30px 0 48px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(168, 85, 247, .22) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 10%, transparent 75%);
  opacity: .5;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb--a {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(139, 47, 255, .75), transparent 68%);
}
.orb--b {
  width: 420px; height: 420px;
  top: 10px; right: -140px;
  background: radial-gradient(circle, rgba(234, 255, 0, .2), transparent 70%);
  animation-delay: -6s;
}
.hero__floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 300px;
  background-image:
    repeating-linear-gradient(90deg, rgba(168, 85, 247, .2) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(168, 85, 247, .2) 0 1px, transparent 1px 72px);
  transform: perspective(460px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, transparent 0%, #000 16%, transparent 74%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 16%, transparent 74%);
  opacity: .7;
}
/* 让首屏底部柔和收束，避免网格地平线在分区交界处形成硬边 */

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: 56px;
}
.hero__brand { min-width: 0; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(234, 255, 0, .32);
  background: rgba(234, 255, 0, .05);
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(234, 255, 0, .6);
  animation: pulse 2.2s infinite;
}

.hero__sign {
  position: relative;
  margin-top: 14px;
  max-width: 500px;
  padding: 16px 22px 14px;
  border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, .38);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 47, 255, .28), transparent 62%),
    linear-gradient(165deg, rgba(26, 11, 50, .88), rgba(8, 3, 18, .92));
  box-shadow:
    inset 0 0 60px rgba(124, 58, 237, .2),
    0 40px 100px -50px #000,
    0 0 90px -30px rgba(139, 47, 255, .5);
  animation: signGlow 5.5s ease-in-out infinite;
}
.hero__sign::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 15px;
  border: 1px dashed rgba(234, 255, 0, .16);
  pointer-events: none;
}
.hero__logo {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 20px rgba(168, 85, 247, .45))
    drop-shadow(0 0 54px rgba(139, 47, 255, .25));
}
.hero__sign-tag {
  position: absolute;
  right: 14px;
  bottom: -12px;
  padding: 4px 11px;
  background: var(--neon);
  color: #0a0113;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: 0 0 24px rgba(234, 255, 0, .45);
}
.hero__sign-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--neon);
  opacity: .85;
  filter: drop-shadow(0 0 6px rgba(234, 255, 0, .6));
}
.hero__sign-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero__sign-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hero__sign-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hero__sign-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.hero__copy { min-width: 0; }
.hero__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .03em;
  color: #fff;
  text-shadow: 0 0 30px rgba(168, 85, 247, .45);
}
.hero__headline em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 26px rgba(234, 255, 0, .4);
}
.hero__lead {
  max-width: 520px;
  margin-top: 14px;
  color: #bdb0d9;
  font-size: 14.5px;
  line-height: 1.85;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hero__actions .btn { padding: 13px 22px; font-size: 13.5px; }
.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.hero__meta b {
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
}
.hero__meta i { font-style: normal; color: rgba(234, 255, 0, .5); }


/* 5. 游戏库 -------------------------------------------------------------- */
.section {
  position: relative;
  padding: 86px 0;
  scroll-margin-top: 90px;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.kicker {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .34em;
  color: var(--violet-300);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 26px rgba(168, 85, 247, .55);
}
.section__title::before {
  content: "";
  width: 6px;
  height: 30px;
  background: var(--neon);
  transform: skewX(-14deg);
  box-shadow: 0 0 18px rgba(234, 255, 0, .65);
}
.section__note { font-size: 12.5px; color: var(--muted); padding-bottom: 6px; }

.section--games { padding-top: 30px; }
.section__head--games { align-items: flex-end; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  padding: 0 14px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 4, 22, .7);
  transition: border-color .25s, box-shadow .25s;
}
.search:focus-within {
  border-color: rgba(234, 255, 0, .6);
  box-shadow: 0 0 0 3px rgba(234, 255, 0, .1);
}
.search__icon { color: var(--muted); width: 17px; height: 17px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 13.5px;
}
.search input::placeholder { color: #7d6f9c; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(168, 85, 247, .16);
}
.search__clear:hover { color: #fff; background: rgba(168, 85, 247, .3); }
.search__clear .icon { width: 13px; height: 13px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(13, 5, 27, .6);
  color: #c1b3de;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--line-strong); color: #fff; background: rgba(139, 47, 255, .14); }
.filter__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(168, 85, 247, .16);
}
.filter.is-active {
  background: var(--neon);
  border-color: var(--neon);
  color: #0a0113;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(234, 255, 0, .28);
}
.filter.is-active .filter__num { background: rgba(10, 1, 19, .14); color: #0a0113; }
.filter--ext { text-decoration: none; }
.filter__ext-ico { width: 12px; height: 12px; opacity: .55; transition: opacity .2s, transform .2s; }
.filter--ext:hover .filter__ext-ico { opacity: 1; transform: translate(1px, -1px); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 4, 24, .96), rgba(8, 3, 16, 1));
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  animation: cardIn .5s var(--ease) both;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(234, 255, 0, .65), rgba(168, 85, 247, .5) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.game-card:hover {
  /* 用独立的 translate 属性，避免和入场动画的 transform 冲突 */
  translate: 0 -8px;
  border-color: rgba(234, 255, 0, .4);
  box-shadow: 0 34px 60px -34px #000, 0 0 46px -18px rgba(234, 255, 0, .35);
}
.game-card:hover::after { opacity: 1; }

.game-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #10061f;
}
.game-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
}
.game-card:hover .game-card__cover { transform: scale(1.055); filter: saturate(1.12) brightness(1.03); }
.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 2, 15, .5) 0%, transparent 26%, transparent 62%, rgba(7, 2, 15, .78) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.4;
  backdrop-filter: blur(6px);
}
.badge--pin {
  top: 10px;
  left: 10px;
  background: var(--neon);
  color: #0a0113;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 90% 100%, 0 100%);
  box-shadow: 0 0 20px rgba(234, 255, 0, .45);
}
.badge--pin::before { content: "▲"; font-size: 7px; }
.badge--cat {
  top: 10px;
  right: 10px;
  background: rgba(8, 3, 18, .68);
  color: #e3d8ff;
  border: 1px solid rgba(168, 85, 247, .38);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .04em;
}
.game-card__rating {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(234, 255, 0, .55);
}
.game-card__rating small { font-size: 8.5px; color: rgba(255, 255, 255, .65); letter-spacing: .12em; font-weight: 600; }

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px 14px;
  flex: 1;
}
.game-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .25s;
}
.game-card:hover .game-card__title { color: var(--neon); }
.game-card__en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--violet-300);
  opacity: .8;
  margin-top: -4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.65;
  color: #a99bc7;
  min-height: 42px;
}
.game-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.game-card__tags li {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, .24);
  background: rgba(168, 85, 247, .08);
  font-size: 10px;
  color: #b9a7dc;
  white-space: nowrap;
}
.game-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px dashed rgba(168, 85, 247, .18);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8f80b2;
}
.game-card__foot .dot { opacity: .5; }
.game-card__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--neon);
  opacity: .85;
  transition: gap .25s, opacity .25s;
}
.game-card__more .icon { width: 13px; height: 13px; }
.game-card:hover .game-card__more { gap: 8px; opacity: 1; }

.games__count { margin-top: 20px; text-align: right; font-size: 12px; color: var(--muted); }
.games__count b { color: var(--neon); font-family: var(--font-mono); }

.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(13, 5, 27, .5);
}
.empty__icon {
  font-family: var(--font-mono);
  font-size: 40px;
  color: var(--violet-400);
  letter-spacing: .1em;
}
.empty h3 { margin: 10px 0 6px; font-family: var(--font-display); font-size: 20px; color: #fff; }
.empty p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.empty a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }

/* 6. QQ 群 --------------------------------------------------------------- */
.section--group { padding-top: 40px; }
.group-panel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 42px;
  border-radius: 26px;
  border: 1px solid rgba(234, 255, 0, .24);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(139, 47, 255, .24), transparent 58%),
    radial-gradient(70% 100% at 100% 100%, rgba(234, 255, 0, .08), transparent 60%),
    linear-gradient(150deg, rgba(18, 7, 38, .94), rgba(7, 2, 15, .96));
  overflow: hidden;
  box-shadow: 0 40px 90px -60px #000;
}
.group-panel__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(90% 80% at 20% 10%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 80% at 20% 10%, #000, transparent 78%);
  opacity: .5;
  pointer-events: none;
}
.group-panel__main { position: relative; text-align: center; }
.group-panel__desc { max-width: 560px; margin: 14px auto 0; font-size: 14px; line-height: 1.85; color: #bdb0d9; }
.qqbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(234, 255, 0, .42);
  background: rgba(5, 1, 12, .72);
}
.qqbox__id { display: inline-flex; align-items: center; gap: 10px; }
.qqbox__actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.qqbox__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
}
.qqbox__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--neon);
  line-height: 1;
  text-shadow: 0 0 24px rgba(234, 255, 0, .45);
  user-select: all;
}
.group-panel__hint { margin-top: 14px; font-size: 12px; color: var(--muted); }
.group-panel__hint b { color: var(--neon); letter-spacing: .12em; }

/* 7. 关于 & 留言 --------------------------------------------------------- */
.section--about { padding-bottom: 96px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 46px;
  align-items: start;
}
.about-copy__lead { font-size: 16px; line-height: 1.95; color: #e4dbf5; }
.about-copy__lead b { color: var(--neon); font-weight: 700; }
.about-copy > p { margin-top: 14px; font-size: 14px; line-height: 1.95; color: #b4a6d2; }

.about-list { display: grid; gap: 14px; margin-top: 26px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(168, 85, 247, .35);
  background: linear-gradient(150deg, rgba(139, 47, 255, .22), rgba(234, 255, 0, .06));
  color: var(--neon);
  box-shadow: inset 0 0 18px rgba(139, 47, 255, .25);
}
.about-list__icon .icon { width: 20px; height: 20px; }
.about-list h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.about-list p { font-size: 12.5px; line-height: 1.75; color: var(--muted); margin-top: 3px; }

.disclaimer {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(234, 255, 0, .07), rgba(234, 255, 0, .01));
}
.disclaimer b { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; color: var(--neon); margin-bottom: 6px; }
.disclaimer p { font-size: 12px; line-height: 1.8; color: #a89ac6; }

.about-form { display: grid; gap: 22px; }
.form-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, rgba(27, 12, 52, .92), rgba(9, 3, 20, .96));
  box-shadow: 0 30px 70px -46px #000, inset 0 0 60px rgba(124, 58, 237, .1);
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: .7;
}
.form-card__head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .03em;
  color: #fff;
}
.form-card__head h3 .icon { color: var(--neon); width: 17px; height: 17px; }
.form-card__head p { margin-top: 5px; font-size: 12px; color: var(--muted); }

/* 未登录时的留言区锁定态 */
.msg-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: 34px 18px 30px;
}
.msg-gate__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 1px solid rgba(234, 255, 0, .38);
  background: radial-gradient(circle, rgba(234, 255, 0, .14), transparent 70%);
  color: var(--neon);
  box-shadow: 0 0 32px -8px rgba(234, 255, 0, .45);
}
.msg-gate__icon .icon { width: 23px; height: 23px; }
.msg-gate h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
}
.msg-gate p { max-width: 300px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.msg-gate .btn { margin-top: 8px; padding: 12px 22px; font-size: 12.5px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: block; margin-top: 14px; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-200);
  letter-spacing: .04em;
}
.field__label i { font-style: normal; color: var(--neon); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, .26);
  background: rgba(5, 1, 12, .72);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input[readonly] {
  color: #b9a7dc;
  background: rgba(5, 1, 12, .42);
  cursor: default;
}
.field textarea { resize: vertical; min-height: 112px; padding-bottom: 28px; }
.field input::placeholder,
.field textarea::placeholder { color: #736590; }
.field input:focus,
.field textarea:focus {
  border-color: rgba(234, 255, 0, .65);
  background: rgba(8, 2, 18, .9);
  box-shadow: 0 0 0 3px rgba(234, 255, 0, .1);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: rgba(255, 92, 122, .75); box-shadow: 0 0 0 3px rgba(255, 92, 122, .1); }
.field__err { display: none; margin-top: 5px; font-size: 11px; color: #ff8ba0; }
.field.is-invalid .field__err { display: block; }
.field__count {
  position: absolute;
  right: 10px;
  bottom: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #736590;
  pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 99px;
  border: 1px solid rgba(168, 85, 247, .3);
  background: rgba(168, 85, 247, .07);
  font-size: 12.5px;
  color: #bdb0d9;
  cursor: pointer;
  transition: all .22s var(--ease);
}
.chip span:hover { border-color: var(--line-strong); color: #fff; }
.chip input:checked + span {
  background: var(--neon);
  border-color: var(--neon);
  color: #0a0113;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(234, 255, 0, .3);
}
.chip input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }

.form-card .btn--block { margin-top: 18px; }
.form-card__tip { margin-top: 10px; text-align: center; font-size: 10.5px; color: #736590; }

.msg-wall {
  margin-top: 34px;
  padding: 24px 28px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(10, 4, 22, .55);
}
.msg-wall__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.msg-wall__head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.msg-wall__head span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.msg-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 6px;
}
.msg-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(168, 85, 247, .16);
  animation: cardIn .4s var(--ease) both;
}
.msg-item__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #0a0113;
  background: linear-gradient(140deg, var(--violet-300), var(--neon));
}
.msg-item__body { min-width: 0; flex: 1; }
.msg-item__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.msg-item__name { font-size: 13px; font-weight: 700; color: #fff; }
.msg-item__type {
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid rgba(234, 255, 0, .28);
  background: rgba(234, 255, 0, .07);
  color: var(--neon);
  font-size: 9.5px;
  letter-spacing: .05em;
}
.msg-item__type[data-type="游戏投稿"] { border-color: rgba(87, 233, 255, .3); color: var(--cyan); background: rgba(87, 233, 255, .07); }
.msg-item__type[data-type="公告"] { border-color: rgba(255, 122, 217, .35); color: var(--pink); background: rgba(255, 122, 217, .07); }
.msg-item__time { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: #736590; }
.msg-item__text { margin-top: 5px; font-size: 12.5px; line-height: 1.8; color: #bdb0d9; word-break: break-word; }
.msg-item__contact { margin-top: 4px; font-family: var(--font-mono); font-size: 10px; color: #736590; }
.msg-item--new { background: linear-gradient(90deg, rgba(234, 255, 0, .06), transparent 70%); }
.msg-wall__empty { padding: 26px 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* 8. 页脚 ---------------------------------------------------------------- */
.footer {
  position: relative;
  padding: 58px 0 26px;
  border-top: 1px solid rgba(168, 85, 247, .18);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(124, 58, 237, .14), transparent 66%),
    linear-gradient(180deg, rgba(12, 5, 26, .6), #05010c);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 44px;
  align-items: start;
}
.footer__mark { height: 58px; width: auto; filter: drop-shadow(0 0 18px rgba(168, 85, 247, .45)); }
.footer__brand > p { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.footer__links a { font-size: 12.5px; color: #bdb0d9; transition: color .2s; }
.footer__links a:hover { color: var(--neon); }

.perf {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(9, 3, 20, .7);
}
.perf__title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--neon);
  margin-bottom: 10px;
}
.perf dl { display: grid; }
.perf dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(168, 85, 247, .18);
}
.perf dt { font-size: 12px; color: var(--muted); }
.perf dd {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.perf dd.is-live { color: var(--neon); text-shadow: 0 0 14px rgba(234, 255, 0, .4); }
.perf__note { margin-top: 10px; font-size: 10px; color: #736590; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 38px;
  padding-top: 20px;
  padding-right: 64px;
  border-top: 1px solid rgba(168, 85, 247, .16);
  font-size: 12px;
  color: #8f80b2;
}
.footer__copy b { color: #e6dcff; }
.footer__legal a { color: var(--violet-300); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.footer__legal a:hover { color: var(--neon); }

/* 9. 弹窗 ---------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 1, 10, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .25s var(--ease);
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, .42);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(139, 47, 255, .22), transparent 60%),
    linear-gradient(170deg, #150929, #08020f);
  box-shadow: 0 50px 120px -40px #000, 0 0 70px -20px rgba(124, 58, 237, .35);
  animation: popIn .3s var(--ease);
}
.modal__panel--auth { width: min(430px, 100%); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #cbbde8;
  background: rgba(10, 4, 22, .8);
  border: 1px solid rgba(168, 85, 247, .3);
  transition: all .2s;
}
.modal__close:hover { color: #0a0113; background: var(--neon); border-color: var(--neon); }
.modal__close .icon { width: 16px; height: 16px; }

.auth-head { text-align: center; padding: 4px 0 2px; }
.auth-head__mark { height: 30px; width: auto; margin: 0 auto 12px; filter: drop-shadow(0 0 16px rgba(168, 85, 247, .6)); }
.auth-head h2 { font-family: var(--font-display); font-size: 23px; font-weight: 900; letter-spacing: .04em; color: #fff; text-shadow: 0 0 24px rgba(168, 85, 247, .5); }
.auth-head p { margin-top: 5px; font-size: 12px; color: var(--muted); }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 20px 0 4px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(5, 1, 12, .8);
  border: 1px solid rgba(168, 85, 247, .22);
}
.auth-tab {
  padding: 9px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.auth-tab.is-active {
  background: var(--neon);
  color: #0a0113;
  box-shadow: 0 0 22px rgba(234, 255, 0, .3);
}
.auth-form { margin-top: 6px; }
.auth-form .btn--block { margin-top: 18px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, .5);
  background: rgba(5, 1, 12, .8);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.check input:checked { background: var(--neon); border-color: var(--neon); }
.check input:checked::after { content: "✓"; font-size: 11px; font-weight: 900; color: #0a0113; }
.auth-form__note { margin-top: 12px; text-align: center; font-size: 10.5px; color: #736590; }

/* 游戏详情 */
.modal__panel--game { width: min(780px, 100%); padding: 0; overflow-x: hidden; overflow-y: auto; }
.game-detail { display: block; }
.game-detail__media { position: relative; width: 100%; aspect-ratio: 2 / 1; background: #0b0418; }
.game-detail__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-detail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 2, 18, .92));
}
.game-detail__body { padding: 26px 30px 28px; }
.game-detail__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--neon);
  text-transform: uppercase;
}
.game-detail__title { margin-top: 8px; font-family: var(--font-display); font-size: 28px; font-weight: 900; line-height: 1.2; color: #fff; }
.game-detail__en { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em; color: var(--violet-300); margin-top: 4px; }
.game-detail__desc { margin-top: 14px; font-size: 13px; line-height: 1.9; color: #b9abd7; }
.game-detail__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(168, 85, 247, .18);
  border-bottom: 1px solid rgba(168, 85, 247, .18);
}
.game-detail__meta div { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.game-detail__meta dt { color: var(--muted); }
.game-detail__meta dd { font-family: var(--font-mono); color: #e9e0ff; }
.game-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.game-detail__tags span {
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, .28);
  background: rgba(168, 85, 247, .08);
  font-size: 10.5px;
  color: #c2b1e2;
}
.game-detail__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.game-detail__note { margin-top: 12px; font-size: 10.5px; color: #736590; line-height: 1.7; }
.game-detail__pin {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--neon);
  color: #0a0113;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}

/* 10. 组件 --------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 300;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--neon);
  color: #0a0113;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(234, 255, 0, .6);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); color: #fff; box-shadow: 0 20px 50px -20px rgba(255, 92, 122, .6); }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(234, 255, 0, .4);
  background: rgba(10, 4, 22, .88);
  color: var(--neon);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all .3s var(--ease);
}
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--neon); color: #0a0113; box-shadow: 0 0 28px rgba(234, 255, 0, .4); }
.to-top .icon { width: 18px; height: 18px; }

/* 11. 动效 --------------------------------------------------------------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 255, 0, .55); }
  70% { box-shadow: 0 0 0 9px rgba(234, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 255, 0, 0); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, 26px, 0) scale(1.08); }
}
@keyframes signGlow {
  0%, 100% { box-shadow: inset 0 0 70px rgba(124, 58, 237, .18), 0 40px 100px -50px #000, 0 0 80px -34px rgba(139, 47, 255, .45); }
  50% { box-shadow: inset 0 0 90px rgba(124, 58, 237, .3), 0 40px 100px -50px #000, 0 0 110px -26px rgba(139, 47, 255, .65); }
}
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* 12. 响应式 ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .nav__link { padding: 10px 10px; font-size: 13.5px; }
  .brand__text em { display: none; }
}

@media (max-width: 1040px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .group-panel { padding: 32px; }
}

@media (max-width: 980px) {
  .header__inner { height: 66px; }
  .brand { padding-right: 0; border-right: 0; }
  .brand__mark { height: 36px; }
  .brand__text strong { font-size: 14px; }
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 18px 18px;
    background:
      radial-gradient(120% 80% at 0% 0%, rgba(124, 58, 237, .2), transparent 62%),
      linear-gradient(180deg, #0c041c, #07020f 72%);
    border-bottom: 1px solid rgba(168, 85, 247, .3);
    box-shadow: 0 30px 50px -20px #000;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link {
    padding: 13px 12px;
    font-size: 14.5px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(168, 85, 247, .12);
  }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }
  .header__actions { margin-left: auto; }
  .hero { padding: 26px 0 42px; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__brand { display: flex; flex-direction: column; align-items: center; }
  .hero__sign { margin: 0 auto; max-width: 400px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero__headline { font-size: 27px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .perf { justify-self: stretch; max-width: none; }
}

@media (max-width: 820px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 64px 0; }
  .section__title { font-size: 28px; }
  .section__title::before { height: 24px; width: 5px; }
  .section__head--games { flex-direction: column; align-items: stretch; gap: 16px; }
  .search { width: 100%; }
  .hero { padding: 22px 0 36px; }
  .hero__sign { max-width: 380px; }
  .hero__headline { font-size: 24px; }
  .hero__lead { font-size: 14px; }
  .game-detail { grid-template-columns: 1fr; }
  .game-detail__media { width: 100%; margin: 0; border-radius: 0; aspect-ratio: 2 / 1; }
  .game-detail__media img { border-radius: 0; }
  .game-detail__media::after {
    background: linear-gradient(180deg, transparent 55%, rgba(8, 2, 18, .92));
    border-radius: 0;
  }
  .game-detail__body { padding: 20px; }
  .game-detail__title { font-size: 23px; }
  .msg-list { grid-template-columns: 1fr; max-height: 420px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 32px); }
  .header__inner { height: 60px; gap: 10px; }
  .brand__mark { height: 30px; }
  .brand__text strong { font-size: 12.5px; letter-spacing: .06em; }
  .btn--login { padding: 9px 12px; }
  .btn--login span { display: none; }
  .btn--login .icon { width: 18px; height: 18px; }
  .user-chip__name { display: none; }
  .user-chip__btn { padding: 4px 8px 4px 4px; }
  .hero { padding: 14px 0 28px; }
  .hero__inner { gap: 18px; }
  .hero__eyebrow { display: none; }
  .hero__sign { padding: 10px 12px 8px; border-radius: 18px; max-width: 88vw; }
  .hero__sign::before { inset: 6px; border-radius: 13px; }
  .hero__sign-corner { width: 14px; height: 14px; }
  .hero__sign-tag { right: 10px; bottom: -11px; font-size: 8px; padding: 4px 9px; }
  .hero__headline { font-size: 21px; }
  .hero__lead { font-size: 12.5px; line-height: 1.8; margin-top: 10px; }
  .hero__actions { margin-top: 16px; gap: 10px; width: 100%; }
  .hero__actions .btn { flex: 1; padding: 12px 10px; font-size: 12.5px; }
  .hero__meta { display: none; }
  .section { padding: 52px 0; scroll-margin-top: 70px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .section__title { font-size: 24px; gap: 10px; }
  .section__note { padding: 0; font-size: 11.5px; }
  .kicker { font-size: 9.5px; margin-bottom: 7px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .game-grid { gap: 12px; }
  .game-card__body { padding: 11px 12px 11px; gap: 4px; }
  .game-card__title { font-size: 15.5px; }
  .game-card__en { font-size: 8.5px; letter-spacing: .12em; }
  .game-card__desc { font-size: 11.5px; line-height: 1.55; -webkit-line-clamp: 2; min-height: 36px; }
  .game-card__tags { gap: 4px; }
  .game-card__tags li { font-size: 9px; padding: 2px 5px; }
  .game-card__tags li:nth-child(3) { display: none; }
  .game-card__foot { font-size: 9.5px; padding-top: 8px; gap: 4px; }
  .game-card__more { font-size: 10.5px; }
  .game-card__rating { font-size: 13px; left: 8px; bottom: 8px; }
  .badge { font-size: 9.5px; padding: 3px 7px; }
  .badge--pin { top: 8px; left: 8px; }
  .badge--cat { top: 8px; right: 8px; }
  .section--games { padding-top: 10px; }
  .games__count { text-align: left; }
  .group-panel { padding: 24px 18px; border-radius: 20px; }
  .qqbox { width: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; padding: 14px; }
  .qqbox__id { justify-content: center; }
  .qqbox__actions { justify-content: center; }
  .qqbox__actions .btn { flex: 1; }
  .qqbox__num { font-size: 24px; }
  .qqbox .btn { padding: 10px 14px; font-size: 11.5px; }
  .about-copy__lead { font-size: 14.5px; }
  .about-copy > p { font-size: 13px; }
  .form-card { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .msg-wall { padding: 18px 14px 6px; }
  .msg-list { max-height: 360px; }
  .msg-item__time { margin-left: 0; width: 100%; }
  .footer { padding: 40px 0 22px; }
  .footer__mark { height: 44px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; font-size: 11px; padding-right: 52px; }
  .btn--lg { padding: 14px 18px; font-size: 13.5px; }
  .modal { padding: 12px; }
  .modal__panel { padding: 24px 18px; max-height: 92vh; }
  .modal__panel--game { padding: 0; }
  .game-detail__meta { grid-template-columns: 1fr; }
  .game-detail__actions .btn { flex: 1; }
  .toast { bottom: 20px; font-size: 12.5px; padding: 11px 16px; }
  .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card__title { font-size: 17px; }
  .game-card__en { font-size: 9.5px; letter-spacing: .14em; }
  .game-card__desc { font-size: 12.5px; line-height: 1.6; min-height: 0; -webkit-line-clamp: 3; }
}

@media (max-height: 700px) {
  .modal__panel { max-height: 90vh; }
}

/* 矮屏笔记本：进一步压缩首屏，保证游戏库露出 */
@media (min-width: 981px) and (max-height: 800px) {
  .hero { padding: 18px 0 30px; }
  .hero__eyebrow { display: none; }
  .hero__sign { max-width: 440px; margin-top: 0; }
  .hero__headline { font-size: clamp(24px, 2.2vw, 31px); }
  .hero__meta { margin-top: 14px; }
  .section--games { padding-top: 18px; }
  .section__head { margin-bottom: 26px; }
}

@media (hover: none) {
  .game-card:hover { transform: none; }
  .game-card:hover .game-card__cover { transform: none; }
}
