/* ============================================================
   80牛 · 设计系统
   深色街机厅 + 霓虹灯管 + CRT 扫描线
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #06080e;
  --bg-2: #0b1018;
  --panel: #0e1522;
  --panel-2: #131c2c;
  --line: rgba(140, 165, 200, .16);
  --line-strong: rgba(140, 165, 200, .3);
  --text: #e9eefb;
  --muted: #8a97b0;
  --dim: #5f6b82;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --lime: #a3e635;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --red: #f87171;
  --tb: #ff6a00;
  --jd: #e2231a;
  --radius: 4px;
  --shadow: 4px 4px 0 rgba(0, 0, 0, .55);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(700px 420px at 95% 0%, rgba(244, 114, 182, .10), transparent 60%),
    linear-gradient(rgba(120, 160, 210, .035) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(120, 160, 210, .035) 1px, transparent 1px) 0 0 / 44px 100%;
}

/* CRT 扫描线 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  opacity: .5;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--cyan); color: #04121a; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070a11; }
::-webkit-scrollbar-thumb { background: #1e2a3d; border: 2px solid #070a11; }
::-webkit-scrollbar-thumb:hover { background: #2c3d57; }

.wrap { width: min(1280px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.hide { display: none !important; }
[hidden] { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------- 顶栏 ------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 14, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 62px; display: flex; align-items: center; gap: 22px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img {
  height: 40px; width: 40px; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
  transition: transform .18s ease;
}
.logo:hover .logo-img { transform: translateY(-1px) scale(1.04); }
.logo-img-foot { height: 44px; width: auto; }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #06111a;
  font-size: 18px;
  box-shadow: 0 0 18px rgba(34, 211, 238, .45), inset 0 0 0 2px rgba(0, 0, 0, .25);
  clip-path: polygon(0 15%, 15% 15%, 15% 0, 85% 0, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0 85%);
}
.logo-text { font-weight: 800; letter-spacing: 2px; font-size: 17px; }
.logo-text em { font-style: normal; color: var(--cyan); }
.logo-sub { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 2px; margin-top: -4px; }

.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: .15s;
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--cyan); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07); }
.nav a.on::before {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search-box { position: relative; }
.search-box input {
  width: 190px; height: 34px;
  background: #0a1019; border: 1px solid var(--line);
  color: var(--text); padding: 0 32px 0 12px; font-size: 13px;
  outline: none; transition: .18s;
}
.search-box input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(34, 211, 238, .12); width: 230px; }
.search-box span { position: absolute; right: 10px; top: 6px; color: var(--dim); font-size: 14px; }

/* ------------------------------- 按钮 ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px;
  background: #131c2c; color: var(--text);
  border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s, background .15s;
  white-space: nowrap;
}
.btn:hover { background: #182338; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .55); }
.btn-primary {
  background: var(--cyan); color: #04141c; border-color: #67e8f9;
  box-shadow: 4px 4px 0 rgba(34, 211, 238, .28);
}
.btn-primary:hover { background: #67e8f9; }
.btn-pink { background: var(--pink); color: #1a0713; border-color: #f9a8d4; box-shadow: 4px 4px 0 rgba(244, 114, 182, .28); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ------------------------------- 面板 ------------------------------- */
.panel {
  background: linear-gradient(180deg, rgba(19, 28, 44, .9), rgba(14, 21, 34, .9));
  border: 1px solid var(--line);
  position: relative;
}
.panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.panel-hd h3 { margin: 0; font-size: 14px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.panel-hd h3::before { content: ""; width: 3px; height: 14px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.panel-bd { padding: 16px; }

/* 区块标题 */
.sec { margin: 46px 0; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.sec-title { font-size: 22px; font-weight: 800; letter-spacing: 2px; margin: 0; }
.sec-title small { display: block; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 3px; font-weight: 400; margin-top: 2px; }
.sec-more { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.sec-more:hover { color: var(--cyan); }

/* ------------------------------- Hero ------------------------------- */
.hero { padding: 44px 0 8px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, .3);
  background: rgba(34, 211, 238, .06); padding: 5px 10px; margin-bottom: 18px;
}
.hero-kicker i { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 8px var(--lime); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.15; margin: 0 0 18px; font-weight: 900; letter-spacing: 1px;
}
.hero h1 .glitch { color: var(--cyan); text-shadow: 0 0 24px rgba(34, 211, 238, .55); position: relative; }
.hero h1 .glitch::after {
  content: attr(data-t); position: absolute; left: 2px; top: 2px;
  color: var(--pink); opacity: .55; z-index: -1; clip-path: inset(45% 0 30% 0);
}
.hero p.lead { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 0 26px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; font-family: var(--mono); }
.hero-stats b { display: block; font-size: 22px; color: var(--text); letter-spacing: 1px; }
.hero-stats span { font-size: 11px; color: var(--dim); letter-spacing: 1px; }

.hero-art { position: relative; }
.hero-screen {
  aspect-ratio: 16 / 10; width: 100%;
  border: 1px solid rgba(34, 211, 238, .35);
  background: #080d15;
  box-shadow: 0 0 0 6px #0a1119, 0 0 0 7px rgba(34, 211, 238, .18), 0 24px 70px rgba(0, 0, 0, .7), inset 0 0 60px rgba(34, 211, 238, .06);
  overflow: hidden; position: relative;
}
.hero-screen img { width: 100%; height: 100%; object-fit: cover; }
.hero-screen::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.hero-badge {
  position: absolute; top: -14px; right: -10px;
  background: var(--amber); color: #1a1200; font-family: var(--mono);
  font-size: 11px; font-weight: 700; padding: 4px 10px; letter-spacing: 1px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); transform: rotate(3deg); z-index: 2;
}

/* ------------------------------- 分类条 ------------------------------- */
.cats { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.cat {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--line);
  background: rgba(14, 21, 34, .75); transition: .16s; min-width: 132px;
}
.cat:hover { border-color: var(--line-strong); background: #131c2c; transform: translateY(-2px); }
.cat.on { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.cat i { font-style: normal; font-size: 16px; opacity: .9; }
.cat b { font-size: 13px; font-weight: 600; }
.cat span { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-left: auto; }

/* ------------------------------- 游戏卡 ------------------------------- */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card {
  position: relative; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); transition: transform .18s, border-color .18s, box-shadow .18s;
  display: block;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(34, 211, 238, .2);
}
.game-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #0a0f18; position: relative; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 8, 14, .85));
}
.game-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: .2s; z-index: 2;
}
.game-card:hover .game-play { opacity: 1; }
.game-play span {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(34, 211, 238, .92); color: #04141c; font-size: 16px;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  box-shadow: 0 0 24px rgba(34, 211, 238, .6);
}
.game-meta { padding: 11px 12px 12px; }
.game-name { font-size: 14px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 6px; }
.game-name .dot { width: 5px; height: 5px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); flex-shrink: 0; }
.game-sub { font-size: 11px; color: var(--dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.game-foot .plays { color: var(--muted); }
.diff { display: inline-flex; gap: 2px; }
.diff i { width: 3px; height: 8px; background: #243044; }
.diff i.on { background: var(--amber); }
.year-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--mono); font-size: 10px; padding: 2px 6px;
  background: rgba(6, 8, 14, .8); border: 1px solid var(--line-strong); color: var(--muted);
}

/* ------------------------------- 广告位 ------------------------------- */
.ad {
  position: relative; border: 1px solid var(--line);
  background: var(--panel); overflow: hidden; display: block; transition: .18s;
}
.ad:hover { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(251, 191, 36, .25), 0 10px 30px rgba(0, 0, 0, .5); }
.ad img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #0a0f18; border-bottom: 1px solid var(--line); }
.ad-info { padding: 10px 12px 12px; }
.ad-label {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1px;
  background: rgba(251, 191, 36, .92); color: #1a1200; padding: 2px 6px;
}
.ad-title { font-size: 12px; line-height: 1.45; height: 34px; overflow: hidden; }
.ad-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.ad-price b { font-family: var(--mono); font-size: 16px; color: var(--amber); }
.ad-price s { font-size: 10px; color: var(--dim); }
.ad-promo { font-size: 10px; color: var(--dim); margin-top: 2px; }
.platform {
  font-family: var(--mono); font-size: 9px; padding: 1px 5px;
  border: 1px solid currentColor; letter-spacing: .5px;
}
.platform.tb { color: var(--tb); }
.platform.jd { color: var(--jd); }

/* 横幅广告 */
.ad-banner {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--line); background: linear-gradient(90deg, rgba(251, 191, 36, .08), rgba(14, 21, 34, .9) 40%);
  padding: 0; overflow: hidden; transition: .2s; position: relative;
}
.ad-banner:hover { border-color: rgba(251, 191, 36, .5); }
.ad-banner img { width: 140px; height: 180px; object-fit: contain; background: #0a0f18; }
.ad-banner .b-body { padding: 12px 0; }
.ad-banner .b-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ad-banner .b-sub { font-size: 12px; color: var(--muted); }
.ad-banner .b-cta { padding-right: 22px; }
.ad-banner .b-price { font-family: var(--mono); font-size: 24px; color: var(--amber); text-align: right; }
.ad-banner .b-price small { font-size: 11px; color: var(--dim); display: block; }

/* ------------------------------- 榜单 ------------------------------- */
.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid rgba(140, 165, 200, .08);
}
.rank-item:last-child { border-bottom: 0; }
.rank-no {
  width: 22px; font-family: var(--mono); font-size: 13px; color: var(--dim); text-align: center; flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-no { color: var(--amber); }
.rank-item:nth-child(2) .rank-no { color: #cbd5e1; }
.rank-item:nth-child(3) .rank-no { color: #d08b5b; }
.rank-main { flex: 1; min-width: 0; }
.rank-main b { font-size: 12px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-main span { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.rank-score { font-family: var(--mono); font-size: 14px; color: var(--cyan); flex-shrink: 0; }

/* ------------------------------- 页脚 ------------------------------- */
.footer {
  margin-top: 64px; border-top: 1px solid var(--line);
  padding: 34px 0 46px; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 12px; letter-spacing: 2px; color: var(--muted); margin: 0 0 10px; font-family: var(--mono); }
.footer a, .footer p { font-size: 12px; color: var(--dim); line-height: 2; margin: 0; display: block; }
.footer a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(140, 165, 200, .08); font-size: 11px; color: #48536b; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal {
  margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #a3aec2; line-height: 1.9;
}
.footer-legal .sep { color: #3a4457; }
.footer-legal a { display: inline; font-size: 12px; color: #b7c3d8; }
.footer-legal a:hover { color: var(--cyan); }

/* ------------------------------- 表单 ------------------------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; background: #0a1019; border: 1px solid var(--line);
  color: var(--text); padding: 9px 12px; font-size: 13px; outline: none; transition: .16s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(34, 211, 238, .1); }
.textarea { min-height: 88px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.hint { font-size: 11px; color: var(--dim); margin-top: 5px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 5, 9, .8); backdrop-filter: blur(4px); }
.modal-box { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .8); position: relative; }
.modal-hd { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-hd b { letter-spacing: 1px; }
.modal-bd { padding: 20px; }
.modal-close { background: none; border: 0; color: var(--dim); font-size: 20px; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text); }

/* 提示 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: #0f1a29; border: 1px solid var(--line-strong);
  padding: 11px 20px; font-size: 13px; z-index: 300;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6); opacity: 0; transition: .22s; pointer-events: none;
}
.toast.on { opacity: 1; bottom: 52px; }
.toast.ok { border-color: rgba(163, 230, 53, .45); color: var(--lime); }
.toast.err { border-color: rgba(248, 113, 113, .45); color: var(--red); }

/* 空状态 */
.empty { padding: 44px 20px; text-align: center; color: var(--dim); font-size: 13px; }
.empty i { display: block; font-size: 28px; margin-bottom: 10px; opacity: .5; font-style: normal; }

/* 移动底栏 */
.tabbar { display: none; }

/* ------------------------------- 响应式 ------------------------------- */
@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 26px; }
}

.lang-select {
  appearance: none; -webkit-appearance: none;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  font: 12px/1 var(--sans); padding: 6px 22px 6px 8px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 8px) 55%;
  background-size: 4px 4px; background-repeat: no-repeat;
}
.lang-select:hover { border-color: var(--line-strong); }
.lang-select option { background: var(--panel); color: var(--text); }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 24px); }
  .topbar-inner { height: 54px; gap: 10px; }
  .logo { min-width: 0; }
  .logo-img { height: 32px; width: 32px; }
  .logo-img-foot { height: 36px; }
  .logo-text { font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
  .topbar-right { gap: 6px; }
  .lang-select { max-width: 86px; font-size: 11px; padding: 5px 16px 5px 6px; }
  #chrome-user .btn { padding: 5px 9px; font-size: 11px; }
  .nav, .search-box { display: none; }
  .logo-text { font-size: 15px; }
  .hero { padding: 24px 0 4px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { order: -1; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 18px; }
  .sec { margin: 30px 0; }
  .sec-title { font-size: 18px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-meta { padding: 9px 10px 10px; }
  .game-name { font-size: 13px; }
  .cats { gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .cat { min-width: auto; padding: 7px 12px; flex-shrink: 0; }
  #home-banners { grid-template-columns: 1fr !important; }
  .ad-banner { grid-template-columns: 110px 1fr; gap: 12px; }
  .ad-banner img { height: 96px !important; }
  .ad-banner img { width: 110px; height: 100%; }
  .ad-banner .b-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer { padding-bottom: 84px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(8, 12, 20, .96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    padding: 8px 1px 7px; text-align: center; font-size: 9.5px; color: var(--dim); letter-spacing: -.2px;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tabbar a i { display: block; font-size: 16px; font-style: normal; margin-bottom: 1px; filter: grayscale(1) opacity(.65); }
  .tabbar a.on { color: var(--cyan); }
  .tabbar a.on i { filter: none; }
}

/* ------------------------------- 页面头部 ------------------------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: 34px 0 22px; flex-wrap: wrap;
}
.page-title { font-size: 30px; font-weight: 900; letter-spacing: 2px; margin: 0; }
.page-title small { display: block; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 3px; font-weight: 400; margin-top: 3px; }
.page-desc { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.lobby-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------- 大厅布局 ------------------------------- */
.lobby-layout { display: grid; grid-template-columns: 1fr 250px; gap: 24px; align-items: start; }
.lobby-side { min-width: 0; }
.side-sticky { position: sticky; top: 82px; }
.home-split { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

.notice {
  border: 1px dashed rgba(140, 165, 200, .25);
  background: rgba(14, 21, 34, .55);
  padding: 12px 14px;
}
.notice b { font-size: 11px; letter-spacing: 1px; color: var(--muted); display: block; margin-bottom: 4px; }
.notice p { margin: 0; font-size: 11px; line-height: 1.75; color: var(--dim); }

/* ------------------------------- 我的 ------------------------------- */
.profile-card {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); background: linear-gradient(120deg, rgba(34, 211, 238, .08), rgba(14, 21, 34, .9) 45%);
  padding: 20px 22px; flex-wrap: wrap;
}
.profile-avatar {
  width: 62px; height: 62px; display: grid; place-items: center; font-size: 30px;
  background: #0a1019; border: 1px solid rgba(34, 211, 238, .35);
  box-shadow: 0 0 26px rgba(34, 211, 238, .18);
}
.badge-level {
  font-family: var(--mono); font-size: 10px; padding: 2px 7px;
  border: 1px solid var(--amber); color: var(--amber);
}
.profile-stats { display: flex; gap: 28px; margin-left: auto; font-family: var(--mono); }
.profile-stats b { display: block; font-size: 20px; color: var(--cyan); }
.profile-stats span { font-size: 10px; color: var(--dim); letter-spacing: 1px; }

@media (max-width: 980px) {
  .lobby-layout, .home-split { grid-template-columns: 1fr; }
  .lobby-side { display: none; }
  .home-split aside { display: none; }
  .page-head { padding: 22px 0 16px; }
  .page-title { font-size: 22px; }
  .lobby-tools { width: 100%; }
  .lobby-tools .input { flex: 1; width: auto !important; }
  .profile-stats { gap: 18px; width: 100%; margin-left: 0; }
  .profile-stats b { font-size: 16px; }
}

/* ============================ 机型切换 · 街机图鉴 ============================ */
.sec-sub { margin: -6px 0 16px; font-size: 12px; color: var(--dim); line-height: 1.7; }

.cab-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cab-tab {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; background: rgba(10, 16, 25, .7);
  border: 1px solid var(--line); color: var(--muted);
  font-family: inherit; font-size: 13px; letter-spacing: 1px;
  transition: .16s;
}
.cab-tab b { font-weight: 700; }
.cab-tab span { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.cab-tab:hover { border-color: var(--line-strong); color: var(--fg); }
.cab-tab.on {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(34, 211, 238, .08);
  box-shadow: inset 0 0 22px rgba(34, 211, 238, .07);
}
.cab-tab.on span { color: var(--cyan); }

/* 卡片机型角标 */
.cab-badge {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  font-size: 9px; letter-spacing: 1px; padding: 2px 6px;
  font-family: var(--mono);
  background: rgba(4, 8, 14, .82); border: 1px solid var(--line-strong); color: var(--muted);
  backdrop-filter: blur(4px);
}
.cab-badge.arcade { color: #fbbf24; border-color: rgba(251, 191, 36, .5); }
.cab-badge.fc { color: #f472b6; border-color: rgba(244, 114, 182, .5); }
.cab-badge.remake { color: #22d3ee; border-color: rgba(34, 211, 238, .5); }

.game-foot .pnum {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  color: var(--amber); border: 1px solid rgba(245, 158, 11, .35);
  padding: 1px 5px;
}

/* ------------------------------- 首页工具箱 ------------------------------- */
.tool-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tool-card {
  display: block; padding: 14px 14px 12px; background: var(--panel);
  border: 1px solid var(--line); border-left: 2px solid var(--violet);
  text-decoration: none; color: inherit; transition: transform .12s, border-color .12s;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--line-strong); border-left-color: var(--cyan); }
.tool-card i { font-style: normal; font-family: var(--mono); font-size: 16px; color: var(--violet); display: block; margin-bottom: 6px; }
.tool-card b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tool-card span { font-size: 11.5px; color: var(--dim); line-height: 1.6; display: block; }
@media (max-width: 1000px) { .tool-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .tool-strip { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   红包专区 /hongbao
   ============================================================ */
.hb-stats { display: flex; gap: 10px; }
.hb-stat {
  min-width: 82px; text-align: right; padding: 6px 10px;
  border: 1px solid var(--line); background: var(--panel);
}
.hb-stat b { display: block; font-family: var(--mono); font-size: 18px; color: var(--amber); line-height: 1.2; }
.hb-stat span { font-size: 10.5px; color: var(--dim); }

.hb-hero { display: grid; gap: 14px; margin-bottom: 26px; }
.hb-hero[hidden] { display: none; }

.hb-banner {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 20px; align-items: center; overflow: hidden; position: relative;
  border: 1px solid rgba(226, 35, 26, .38); border-radius: var(--radius);
  background:
    radial-gradient(680px 200px at 88% 0%, rgba(226, 35, 26, .2), transparent 62%),
    linear-gradient(100deg, #1a0d0c, #0e1522 46%);
  padding: 0; text-decoration: none; color: inherit;
  transition: border-color .18s, transform .12s;
}
.hb-banner:hover { border-color: rgba(226, 35, 26, .72); transform: translateY(-2px); }
/* 淘宝会场：结构与京东完全一致，只把色温换成淘宝橙红，避免两张卡片像复读机 */
.hb-banner.tb {
  border-color: rgba(255, 106, 0, .42);
  background:
    radial-gradient(680px 200px at 88% 0%, rgba(255, 106, 0, .24), transparent 62%),
    linear-gradient(100deg, #210b07, #0e1522 46%);
}
.hb-banner.tb:hover { border-color: rgba(255, 138, 61, .78); }
.hb-banner.tb .hb-banner-art { background: #d21c1c; }
.hb-banner.tb .hb-banner-promo { color: #ffb066; }
.hb-banner-art { display: grid; place-items: center; background: #120807; height: 100%; }
.hb-banner-art img { display: block; width: 100%; height: auto; max-height: 132px; object-fit: contain; }
.hb-banner-main { padding: 16px 0; min-width: 0; }
.hb-banner-main b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .2px; margin: 6px 0 4px; }
.hb-banner-main p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.hb-chip {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .6px;
  padding: 2px 7px; border: 1px solid currentColor; color: var(--jd); text-transform: uppercase;
}
.hb-chip.jd { color: #ff6b61; }
.hb-chip.tb { color: #ff9b3d; }
.hb-go { font-size: 12px; color: var(--amber); font-weight: 600; }
.hb-go i { font-style: normal; }
.hb-banner-promo {
  padding: 0 22px 0 0; font-family: var(--mono); font-size: 12px;
  color: #ff8a7f; white-space: nowrap;
}

.hb-price { font-family: var(--mono); font-size: 13px; font-weight: 700; color: #ff6b61; }
.hb-origin { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-decoration: line-through; margin-left: 6px; }
.hb-note { margin-top: 4px; }

@media (max-width: 860px) {
  .hb-banner { grid-template-columns: 1fr; gap: 0; }
  .hb-banner-art img { max-height: none; }
  .hb-banner-main { padding: 12px 14px; }
  .hb-banner-promo { padding: 0 14px 12px; }
  .hb-stats { width: 100%; }
  .hb-stat { flex: 1; text-align: center; min-width: 0; }
  .hb-stat b { font-size: 15px; }
}

/* 首页红包专区入口条 */
.hb-promo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 16px; padding: 14px 20px; text-decoration: none; color: inherit;
  border: 1px solid rgba(226, 35, 26, .34); border-radius: var(--radius);
  background:
    radial-gradient(520px 160px at 6% 0%, rgba(226, 35, 26, .26), transparent 60%),
    linear-gradient(96deg, #22100e, #0e1522 52%);
  transition: border-color .18s, transform .12s;
}
.hb-promo:hover { border-color: rgba(226, 35, 26, .7); transform: translateY(-2px); }
.hb-promo-seal {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  font-size: 19px; font-weight: 700; color: #a8140d;
  background: radial-gradient(circle at 34% 30%, #fff6d8, #f5c96a 62%, #d99a25);
  box-shadow: 0 2px 8px rgba(226, 35, 26, .35), inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.hb-promo-txt { min-width: 0; }
.hb-promo-txt b { display: block; font-size: 15px; font-weight: 700; }
.hb-promo-txt span { display: block; font-size: 12px; color: var(--muted); }
.hb-promo-go { font-size: 12.5px; font-weight: 600; color: var(--amber); white-space: nowrap; }
.hb-promo-go i { font-style: normal; }
@media (max-width: 620px) {
  .hb-promo { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .hb-promo-go { display: none; }
  .hb-promo-txt span { display: none; }
  .hb-promo-seal { width: 38px; height: 38px; font-size: 16px; }
}

/* ============================================================
   V8 · 登录 / 个人中心 / 最新研发 / 内嵌新作
   ============================================================ */

/* ---------------- 顶栏用户胶囊 ---------------- */
.user-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none;
  color: var(--text); font-size: 12.5px; max-width: 132px;
  background: rgba(34, 211, 238, .08);
  transition: border-color .16s, background .16s;
}
.user-chip:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .16); }
.user-chip i {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  font-style: normal; font-size: 12px; font-weight: 700; color: #04121a;
  background: linear-gradient(160deg, #67e8f9, #22d3ee);
}
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 登录弹窗 ---------------- */
.auth-box { width: min(392px, 100%); padding: 26px 24px 20px; }
.auth-box .modal-close { position: absolute; top: 10px; right: 12px; z-index: 2; }
.auth-hd { text-align: center; margin-bottom: 16px; }
.auth-logo {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 10px;
  font-size: 22px; border-radius: 12px;
  background: linear-gradient(160deg, #16233a, #0d1524);
  border: 1px solid rgba(34, 211, 238, .35);
  box-shadow: 0 0 22px rgba(34, 211, 238, .18);
}
.auth-hd b { display: block; font-size: 17px; letter-spacing: .5px; }
.auth-hd p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 6px;
  margin-bottom: 16px;
}
.auth-tabs button {
  height: 32px; border: 0; border-radius: 4px; background: transparent;
  color: var(--muted); font-size: 13px; font-family: inherit; cursor: pointer;
}
.auth-tabs button.on { background: rgba(34, 211, 238, .14); color: var(--cyan); font-weight: 600; }

.auth-field { display: block; margin-bottom: 12px; }
.auth-field > span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: .4px; }
.auth-field > span i { font-style: normal; color: var(--dim); font-size: 10.5px; }
.auth-field .input { width: 100%; height: 40px; }
.auth-pass { position: relative; }

.auth-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 24px; padding: 0 8px; font-size: 11px; font-family: inherit;
  color: var(--muted); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
}
.auth-eye:hover { color: var(--cyan); border-color: rgba(34, 211, 238, .45); }

.auth-err {
  margin: 0 0 12px; padding: 8px 10px; font-size: 12px; line-height: 1.5;
  color: #fecaca; background: rgba(248, 113, 113, .1);
  border: 1px solid rgba(248, 113, 113, .35); border-radius: 4px;
}
.auth-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--dim); font-size: 11px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin: 10px 0 0; text-align: center; font-size: 11px; color: var(--dim); }

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}
.auth-box.shake { animation: authShake .3s ease; }

/* ---------------- 个人中心 ---------------- */
.profile-id { flex: 1; min-width: 0; }
.profile-avatar { letter-spacing: 0; }

.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .16s, transform .12s, background .16s;
}
.rec-row:hover { border-color: rgba(34, 211, 238, .5); background: var(--panel-2); transform: translateX(2px); }
.rec-cover {
  display: block; width: 88px; height: 55px; border-radius: 3px; overflow: hidden;
  border: 1px solid var(--line); background: #080c14;
}
.rec-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-main { min-width: 0; }
.rec-main b { display: block; font-size: 13.5px; font-weight: 600; }
.rec-sub { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; font-family: var(--mono); }
.rec-best { text-align: right; font-family: var(--mono); min-width: 74px; }
.rec-best b { display: block; font-size: 16px; color: var(--amber); }
.rec-best span { font-size: 10px; color: var(--dim); }
.rec-go {
  font-size: 11.5px; color: var(--cyan); white-space: nowrap;
  padding: 5px 10px; border: 1px solid rgba(34, 211, 238, .4); border-radius: 3px;
}
.rec-row:hover .rec-go { background: rgba(34, 211, 238, .12); }

@media (max-width: 720px) {
  .profile-card { flex-wrap: wrap; gap: 12px; }
  .profile-stats { width: 100%; margin-left: 0; gap: 18px; justify-content: space-between; }
  .profile-stats b { font-size: 17px; }
  .rec-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 9px 11px 9px 9px; }
  .rec-cover { width: 64px; height: 40px; }
  .rec-go { display: none; }
}

/* ---------------- 首页 · 最新研发 ---------------- */
.sec-fresh .sec-title { display: flex; align-items: baseline; gap: 10px; }
.fresh-chip {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px;
  color: #04121a; padding: 3px 9px; border-radius: 3px;
  background: linear-gradient(120deg, #a3e635, #22d3ee);
}
.fresh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fresh-card {
  position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0;
  text-decoration: none; color: inherit; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  transition: border-color .18s, transform .14s, box-shadow .18s;
}
.fresh-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px 150px at 12% 0%, var(--glow, #22d3ee), transparent 62%);
  opacity: .16;
}
.fresh-card:hover {
  border-color: var(--glow, var(--cyan)); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.fresh-badge {
  position: absolute; top: 0; left: 0; z-index: 3;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.6px; font-weight: 700;
  color: #04121a; padding: 3px 10px 4px;
  background: linear-gradient(120deg, #a3e635, #22d3ee);
  border-bottom-right-radius: 5px;
}
.fresh-art { display: grid; place-items: center; overflow: hidden; background: radial-gradient(60% 60% at 50% 45%, #0d1626, #070b12); padding: 8px; }
.fresh-art img { width: 100%; height: auto; object-fit: contain; display: block; }
.fresh-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fresh-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: var(--dim); }
.fresh-name { font-size: 18px; font-weight: 700; letter-spacing: .4px; }
.fresh-sub { font-size: 12px; color: var(--muted); }
.fresh-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.fresh-tags i {
  font-style: normal; font-size: 10px; color: var(--muted);
  padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px;
}
.fresh-go {
  margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--glow, var(--cyan));
  display: inline-flex; align-items: center; gap: 6px;
}
.fresh-go i { font-style: normal; }

@media (max-width: 860px) {
  .fresh-grid { grid-template-columns: 1fr; gap: 12px; }
  .fresh-card { grid-template-columns: 132px minmax(0, 1fr); }
  .fresh-name { font-size: 16px; }
}
@media (max-width: 480px) {
  .fresh-card { grid-template-columns: 104px minmax(0, 1fr); }
  .fresh-body { padding: 12px; }
  .fresh-tags { display: none; }
}

/* ---------------- 内嵌新作播放页 ---------------- */
.embed-wrap {
  border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden;
  background: #05080e; display: flex; flex-direction: column;
}
.embed-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.embed-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.embed-bar b { font-size: 13px; }
.embed-hint { color: var(--dim); font-size: 11px; margin-right: auto; }
.embed-best { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.embed-best b { color: var(--amber); font-size: 13px; }
.embed-holder {
  position: relative; width: 100%; height: min(78vh, 860px); min-height: 480px;
  background: #05080e;
}
.embed-holder iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-holder:fullscreen { height: 100vh; background: #05080e; }

@media (max-width: 720px) {
  .embed-holder { height: calc(100vh - 210px); min-height: 420px; }
  .embed-hint { display: none; }
}
