:root {
  --bg: #0b0d12;
  --panel: rgba(20, 18, 14, 0.92);
  --gold: #f6df91;
  --gold-dim: rgba(248, 220, 130, 0.42);
  --gold-soft: rgba(255, 232, 147, 0.1);
  --text: #f5f0d6;
  --text-dim: #b9b4a2;
  --red: #e0433a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(120, 80, 20, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(60, 40, 120, 0.18), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 960px; margin: 0 auto; padding: 12px; padding-bottom: 50px; }

/* 顶部永久域名横幅 */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--gold-dim); border-radius: 12px;
  background: linear-gradient(90deg, rgba(45,36,16,.95), rgba(18,15,8,.95));
  margin-bottom: 10px;
}
.banner .bn-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.banner .bn-logo { color: var(--gold); font-weight: 900; font-size: 18px; text-shadow: 0 2px 10px rgba(246,223,145,.25); }
.banner .bn-domain {
  padding: 4px 10px; border: 1px dashed var(--gold-dim); border-radius: 999px;
  font-size: 12px; color: var(--gold); background: var(--gold-soft); white-space: nowrap;
}
.banner .bn-lines { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.banner .bn-line {
  padding: 4px 9px; border: 1px solid var(--gold-dim); border-radius: 8px;
  font-size: 11px; color: var(--text-dim); cursor: pointer;
}

/* 公告 */
.announcement {
  padding: 8px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  background: rgba(0,0,0,.42); color: var(--text-dim); font-size: 12.5px; margin-bottom: 10px;
}

/* 热点横条 */
.hotspots {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none;
}
.hotspots::-webkit-scrollbar { display: none; }
.hotspot {
  flex: 0 0 auto; max-width: 280px; padding: 10px 12px; border: 1px solid var(--gold-dim);
  border-radius: 10px; background: rgba(0,0,0,.4);
}
.hotspot .hs-title { color: var(--gold); font-weight: 800; font-size: 13px; }
.hotspot .hs-content { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

/* 广告位 */
.ad-strip { margin-bottom: 10px; }
.ad-strip a { display: block; border: 1px solid var(--gold-dim); border-radius: 10px; overflow: hidden; }
.ad-strip img { display: block; width: 100%; height: auto; }
.ad-strip .ad-fallback {
  display: flex; align-items: center; justify-content: center; min-height: 70px;
  background: linear-gradient(160deg,#23252e,#14161c); color: var(--text-dim); font-size: 13px;
}

/* 入口卡片 */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.entry-card {
  padding: 18px 10px; border: 1px solid var(--gold-dim); border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(45,36,16,.9), rgba(18,15,8,.9)); transition: .18s;
}
.entry-card:hover { border-color: var(--gold); background: linear-gradient(180deg, rgba(70,55,22,.95), rgba(26,21,11,.95)); }
.entry-card .ec-ico { font-size: 30px; }
.entry-card .ec-title { color: var(--gold); font-weight: 800; margin-top: 6px; }

.section-title { color: var(--gold); font-weight: 800; font-size: 15px; margin: 12px 2px 8px; }

/* 导航分类 */
.cat-block { margin-bottom: 16px; }
.cat-head { color: var(--gold); font-weight: 800; font-size: 14px; margin: 8px 2px; }
.nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px;
  border: 1px solid var(--gold-dim); border-radius: 12px; background: rgba(0,0,0,.4); transition:.18s;
}
.nav-item:hover { border-color: var(--gold); background: rgba(255,232,147,.06); }
.nav-item .ni-ico { font-size: 26px; }
.nav-item .ni-logo { display: block; width: 40px; height: 40px; }
.nav-item .ni-logo img { display: block; width: 100%; height: 100%; border-radius: 9px; object-fit: cover; background: rgba(255,255,255,.06); }
.nav-item .ni-title { font-size: 13px; color: var(--text); }
.nav-item .ni-wait {
  font-size: 10px; color: var(--text-dim); opacity: .65; margin-top: 1px;
}
.nav-item.is-placeholder { opacity: .55; cursor: default; border-style: dashed; }
.nav-item.is-placeholder:hover { border-color: var(--gold-dim); background: rgba(0,0,0,.4); }
.nav-item .ni-hot {
  position: absolute; margin-top: -38px; margin-left: 36px; padding: 1px 5px; border-radius: 4px;
  background: var(--red); color: #fff; font: 800 9px/1.4 system-ui;
}
.cat-head .cat-sub { font-weight: 500; font-size: 11px; color: var(--text-dim); }

/* NVA 聚合页：模块分块 */
.nva-module { margin-bottom: 22px; }
.nva-mod-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--gold-dim);
}
.nva-mod-title { color: var(--gold); font-weight: 900; font-size: 16px; }
.nva-mod-jump { color: var(--text-dim); font-size: 12px; }
.nva-mod-body .section-title { display: none; }

/* 视频网格 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.video-card {
  border: 1px solid var(--gold-dim); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.4);
  cursor: pointer; transition:.18s;
}
.video-card:hover { border-color: var(--gold); }
.video-card .vc-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background:#191919; display:block; }
.video-card .vc-cover-ph { width:100%; aspect-ratio:16/9; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg,#23252e,#14161c); font-size:34px; }
.video-card .vc-title { padding: 8px 8px 4px; font-size: 13px; color: var(--text); line-height:1.35; }
.video-card .vc-cat { padding: 0 8px 6px; font-size: 11px; color: var(--text-dim); }
.video-card .vc-adult { color: var(--red); font-weight: 800; }
.video-card .vc-cover-wrap { position: relative; }
.video-card .vc-badge {
  position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px);
  padding: 2px 7px; border-radius: 6px; font-size: 10px; line-height: 1.5;
  color: #fff; background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-card .vc-desc {
  padding: 0 8px 10px; font-size: 11px; line-height: 1.5; color: var(--text-dim);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* 视频播放弹层 */
#nvaPlayerMask .gate-box, #playerMask .gate-box { max-height: 88vh; overflow-y: auto; }
.vp-video { width: 100%; border-radius: 10px; background: #000; display: block; }
.vp-embed { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.vp-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.vp-note { margin: 8px 0 0; font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.vp-nosource { text-align: center; padding: 18px 12px 10px; }
.vp-ns-ico { font-size: 34px; line-height: 1.2; }
.vp-ns-title { margin: 10px 0 4px; font-size: 14px; color: var(--text); }
.vp-ns-sub { margin: 0 0 14px; font-size: 12px; color: var(--text-dim); }
.vp-open, .vp-source {
  display: inline-block; border: 1px solid var(--gold-dim); border-radius: 8px;
  color: var(--gold); background: var(--gold-soft); font-size: 12px;
  padding: 8px 16px; transition: .18s;
}
.vp-open:hover, .vp-source:hover { border-color: var(--gold); background: rgba(248,220,130,.18); }
.vp-meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gold-dim); }
.vp-desc { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--text); }
.vp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vp-facts span {
  font-size: 11px; color: var(--text-dim); padding: 3px 9px;
  border: 1px solid var(--gold-dim); border-radius: 20px;
}

/* 18+ 门禁 */
.gate-mask {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,9,.96); padding: 20px;
}
.gate-box { max-width: 360px; text-align: center; border: 1px solid var(--gold-dim); border-radius: 16px; padding: 26px 22px; background: var(--panel); }
.gate-box h2 { color: var(--gold); margin: 0 0 8px; }
.gate-box p { color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.gate-btns { display: flex; gap: 10px; margin-top: 18px; }
.gate-btns button { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--gold-dim); background: var(--gold-soft); color: #fff4c6; font-weight: 700; cursor: pointer; }
.gate-btns .no { background: rgba(224,67,58,.15); border-color: var(--red); color: #ffd9d3; }

/* 游戏大厅 */
.app { display: flex; gap: 10px; padding: 0; align-items: flex-start; }
.sidebar { flex: 0 0 92px; width: 92px; position: sticky; top: 12px; }
.category-menu { display: flex; flex-direction: column; gap: 8px; max-height: 80vh; overflow-y: auto; scrollbar-width: none; }
.category-menu::-webkit-scrollbar { display: none; }
.category-button {
  position: relative; display: block; width: 100%; padding: 12px 4px 8px; border: 1px solid var(--gold-dim);
  border-radius: 10px; background: linear-gradient(180deg, rgba(45,36,16,.95), rgba(18,15,8,.95));
  color: var(--gold); font-weight: 800; font-size: 14px; text-align: center; cursor: pointer;
}
.category-button.is-active { border-color: var(--red); box-shadow: 0 0 0 1px rgba(224,67,58,.5); }
.category-button .count { display: block; margin-top: 3px; font: 600 10px/1.2 system-ui; color: var(--text-dim); }
.main { flex: 1 1 auto; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 10px; }
.brand-cn { color: var(--gold); font-weight: 900; font-size: 18px; }
.brand-en { color: var(--gold); font-weight: 900; font-size: 13px; letter-spacing: 1px; }
.pill { padding: 5px 9px; border: 1px solid var(--gold-dim); border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 700; }
.notice { margin-bottom: 10px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(0,0,0,.42); color: var(--text-dim); font-size: 11.5px; }
.game-panel { position: relative; border: 1px solid var(--gold-dim); border-radius: 13px; background: rgba(0,0,0,.4); padding: 10px; min-height: 50vh; max-height: 520px; overflow: auto; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.game-card { position: relative; display: block; padding: 5px; border: 1px solid transparent; border-radius: 10px; overflow: hidden; text-align: center; cursor: pointer; transition: .2s; }
.game-card:hover { border-color: var(--gold-dim); background: rgba(255,232,147,.06); }
.game-card img, .game-card .placeholder { display: block; width: 100%; max-width: 113px; aspect-ratio: 1/1; margin: 0 auto; border-radius: 7px; object-fit: cover; background:#191919; }
.game-card .placeholder { display:flex; align-items:center; justify-content:center; font-size:30px; background:linear-gradient(160deg,#23252e,#14161c); }
.game-card .title { display: block; margin: 5px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
.game-card .pg-badge { position: absolute; right: 8px; margin-top: -14px; margin-right: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.72); color: #ffe9a8; font: 700 9px/1.4 system-ui; }
.empty-hint { padding: 40px 0; text-align: center; color: var(--text-dim); font-size: 13px; }

/* 全屏游戏弹层 */
body.frame-open { overflow: hidden; }
.game-frame { position: fixed; z-index: 100000; inset: 0; display: none; background: #050609; }
.game-frame.is-open { display: block; }
.frame-shell { display: grid; width: 100%; height: 100%; grid-template-rows: 54px minmax(0,1fr); }
.frame-toolbar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--gold-dim); background: linear-gradient(90deg,#15100a,#201508 52%,#110f0a); }
.frame-title { overflow: hidden; color: #f6df91; font-size: 15px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.frame-actions { display: flex; align-items: center; gap: 8px; }
.frame-vendor { padding: 3px 8px; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold); font-size: 11px; }
.frame-btn { min-height: 34px; padding: 6px 12px; border: 1px solid rgba(248,220,130,.48); border-radius: 7px; background: rgba(255,232,147,.1); color: #fff4c6; font: 600 14px/1 system-ui; cursor: pointer; }
.frame-body { position: relative; min-height: 0; }
.frame-iframe { display: block; width: 100%; height: 100%; border: 0; background: #050609; }
.frame-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #050609; }
.frame-loading.is-hidden { display: none; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(248,220,130,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 页脚 */
.foot { margin-top: 24px; padding: 14px; text-align: center; color: var(--text-dim); font-size: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.foot a { color: var(--gold); }

/* ===== 2026-11-04 改版新增样式 ===== */

/* 顶部居中大图（替代置顶横幅区） */
.hero { margin: 0 0 10px; border: 1px solid var(--gold-dim); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.4); }
.hero a { display: block; }
.hero-img { display: block; width: 100%; max-height: 280px; object-fit: cover; }

/* 试玩大厅顶部：永久域名 + 快捷入口行（IMG4 对应） */
.lobby-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--gold-dim); border-radius: 12px; background: rgba(0,0,0,.4); }
.lobby-dom { color: var(--gold); font-weight: 800; font-size: 15px; white-space: nowrap; }
.lobby-ql-row { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.lobby-ql { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 1px solid var(--gold-dim); border-radius: 999px; font-size: 13px; color: var(--text); background: var(--gold-soft); cursor: pointer; }
.lobby-ql .ql-icon { font-size: 14px; }
.lobby-ql:hover { border-color: var(--gold); color: var(--gold); }

/* 快捷入口条（NVA 页，hero 之下） */
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.quick-links .ql-item { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border: 1px solid var(--gold-dim); border-radius: 999px; font-size: 14px; color: var(--text); background: linear-gradient(180deg, rgba(45,36,16,.6), rgba(18,15,8,.6)); }
.quick-links .ql-item:hover { border-color: var(--gold); color: var(--gold); }

/* 导航中心：被隐藏分类腾出的「公告 + 域名位置」区块 */
.nav-extra { background: rgba(0,0,0,.32); }
.nav-extra .nav-extra-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.ne-item { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.ne-item .ne-k { color: var(--gold); flex: 0 0 auto; }
.ne-item .ne-v { color: var(--text); word-break: break-all; }

/* 联系方式区域（把原先四个导航分类合并成一个区域） */
.contact-block {
  border: 1px solid var(--gold-dim); border-radius: 14px; padding: 12px 12px 14px;
  background: rgba(0,0,0,.36); margin-bottom: 16px;
}
.contact-head { color: var(--gold); font-weight: 800; font-size: 15px; margin: 0 0 4px; }
.contact-intro { color: var(--text-dim); font-size: 12.5px; margin-bottom: 10px; line-height: 1.6; }
.contact-group { margin-bottom: 12px; }
.contact-group:last-child { margin-bottom: 0; }
.contact-group-name {
  color: var(--gold); font-weight: 700; font-size: 13px; margin: 8px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.contact-group-name::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px,1fr)); gap: 10px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px;
  border: 1px solid var(--gold-dim); border-radius: 12px; background: rgba(0,0,0,.4); transition: .18s;
}
.contact-card:hover { border-color: var(--gold); background: rgba(255,232,147,.06); }
.contact-card.is-copyable { cursor: pointer; }
.contact-logo { display: block; width: 42px; height: 42px; position: relative; }
.contact-logo img { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.06); }
.contact-logo.no-img img { display: none; }
.contact-emoji { display: none; font-size: 26px; line-height: 42px; text-align: center; }
.contact-logo.no-img .contact-emoji { display: block; }
.contact-name { font-size: 13px; color: var(--text); font-weight: 600; text-align: center; word-break: break-word; }
.contact-value {
  font-size: 11.5px; color: var(--gold); text-align: center; word-break: break-all; line-height: 1.4;
}

/* 轻提示（复制联系方式等） */
.yh-toast {
  position: fixed; left: 50%; bottom: 72px; transform: translate(-50%, 12px); z-index: 9800;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gold-dim);
  background: rgba(15,13,8,.96); color: var(--gold); font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: .22s; max-width: 86vw; text-align: center;
}
.yh-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 底部跑马灯公告（固定置底横向滚动） */
.marquee { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; overflow: hidden; background: linear-gradient(90deg, #15100a, #201508, #15100a); border-top: 1px solid var(--gold-dim); padding: 7px 0; }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee-scroll linear infinite; }
.marquee-track span { padding: 0 40px; color: var(--gold); font-size: 13px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.cs-fab-offset { padding-bottom: 44px; }

/* 右下角在线客服悬浮按钮 */
.cs-fab { position: fixed; right: 16px; bottom: 56px; z-index: 9500; }
.cs-fab .cs-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); background: linear-gradient(180deg,#3a2c10,#1c1508); color: var(--gold); font-size: 24px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.cs-fab .cs-btn:hover { transform: scale(1.05); }
.cs-panel { position: fixed; right: 16px; bottom: 118px; z-index: 9500; width: 230px; padding: 12px; border: 1px solid var(--gold-dim); border-radius: 12px; background: rgba(15,13,8,.97); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.cs-panel .cs-title { color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.cs-panel .cs-line { display: block; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--text); }
.cs-panel a.cs-line { color: var(--gold); }

/* 游戏弹层内的本域标识 */
.frame-domain { padding: 3px 8px; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold); font-size: 11px; }

@media (max-width: 560px) {
  .entry-grid { grid-template-columns: repeat(2,1fr); }
  .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  :root { --sidebar-w: 74px; }
  .sidebar { flex-basis: 74px; width: 74px; }
}
