/* ============ 主题变量（默认：灰色简约风） ============ */
/* ============ 黑金主题（唯一主题） ============ */
:root {
  --bg: #0a0c14;
  --bg-2: #0f1218;
  --bg-soft: #141824;
  --card-solid: #131720;
  --card-2: #1a1f2c;
  --line: rgba(201, 168, 106, 0.12);
  --line-2: rgba(201, 168, 106, 0.25);
  --text: #e8e8e8;
  --text-2: #a0a5b0;
  --text-3: #6b7280;
  --gold: #f0c24e;
  --gold-2: #ffd97a;
  --gold-ink: #1a1f2c;
  --gold-grad: linear-gradient(135deg, #ffe08a, #f0b92e);
  --red: #e0506a;
  --red-2: #c62f44;
  --green: #3aa876;
  --blue: #5a8af0;
  --teal: #2a9d8f;
  --teal-2: #3ab5a5;
  --topbar-bg: rgba(10, 12, 20, 0.92);
  --hero-bg:
    radial-gradient(ellipse at 20% 30%, rgba(201, 168, 106, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0c14 0%, #0f1218 100%);
  --deco-line: rgba(201, 168, 106, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 168, 106, 0.08);
  --chip-bg: rgba(201, 168, 106, 0.08);
  --input-bg: #1a1f2c;
  --mask: rgba(0, 0, 0, 0.75);

  /* 弹窗专用 */
  --am-bg: #131720;
  --am-bg-2: #1a1f2c;
  --am-text: #e8e8e8;
  --am-text-2: #a0a5b0;
  --am-text-dim: #6b7280;
  --am-line: rgba(201, 168, 106, 0.15);
  --am-accent: #c9a86a;
  --am-accent-soft: rgba(201, 168, 106, 0.12);
  --am-accent-border: rgba(201, 168, 106, 0.3);
  --am-input-bg: #1a1f2c;
  --am-input-text: #e8e8e8;
  --am-input-ph: #6b7280;
  --am-submit-text: #1a1f2c;
  --am-submit-grad: linear-gradient(135deg, #d4af37, #b8963a);
  --am-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  min-width: 1100px;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

.container { width: 1200px; margin: 0 auto; }

/* ============ 矢量图标 + PNG 图标 ============ */
.ic { width: 18px; height: 18px; display: block; flex: none; }
.ic-xs { width: 12px; height: 12px; }
/* 上下架状态圆点（替代 emoji） */
.st-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 2px; background: none; }
.st-dot { width: 14px; height: 14px; }
.st-dot.st-on { color: var(--red); }
.st-dot.st-off { color: #b5b5b7; }

/* 上架/下架文字胶囊按钮：醒目、点击直接切换 */
.status-pill {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.status-pill.sp-on {
  color: #ffffff;
  background: linear-gradient(135deg, #22a06b, #15803d);
  box-shadow: 0 2px 6px rgba(21, 128, 61, .3);
}
.status-pill.sp-off {
  color: #6b7280;
  background: #eef0f4;
  border-color: #d6dae3;
}
.status-pill:hover { transform: translateY(-1px); }
.status-pill.sp-on:hover { box-shadow: 0 4px 10px rgba(21, 128, 61, .4); }
.status-pill.sp-off:hover { background: #e3e7ee; color: #4b5563; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 20px; height: 20px; }
.ic-xl { width: 26px; height: 26px; }
/* PNG 真实图标：不被 color 染色（本身有颜色）、保持方形 */
.ic.ic-png { display: inline-block; flex: none; color: transparent; filter: none; }
.btn .ic-png { display: inline-block; vertical-align: middle; }

/* ============ SVG 渲染全局修复 ============
   所有 SVG 图标强制 stroke=currentColor 跟随父元素文字色。
   绝对**不要**在 CSS 里写 fill: currentColor —— icons.svg 里所有路径都是
   fill="none" stroke="currentColor" 纯描边，fill 强制染色会把描边填死、看不见。
   只有 stroke 是缺失的（部分浏览器 <use> 引用时不继承 stroke 属性）。 */
svg.ic, svg.ic * { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 顶部导航 ============ */
.topbar {
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(58, 68, 105, .06);
}
.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 30px; font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(110deg, #b8860b 0%, #e8b84b 30%, #fff3c4 50%, #e8b84b 70%, #b8860b 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShine 4.5s linear infinite;
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 2px 6px rgba(212, 160, 23, .25));
  text-decoration: none;
}
.logo:hover { transform: scale(1.04); filter: drop-shadow(0 3px 10px rgba(212, 160, 23, .4)); }
@keyframes logoShine { to { background-position: -220% center; } }
.nav {
  position: relative;
  display: flex; gap: 2px; margin: 0 20px; flex: 1; justify-content: center;
}
.nav a {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--text-2); font-weight: bold;
  padding: 9px 16px; border-radius: 10px; transition: color .22s ease;
  white-space: nowrap;
}
.nav a .ic { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.34,1.5,.64,1); }
.nav a:hover { color: var(--gold); }
.nav a:hover .ic { transform: translateY(-2px) scale(1.18) rotate(-6deg); }
.nav a.active { color: var(--gold); }
.nav a.on-pill { color: #6e4d05; }
.nav a.on-pill .ic { color: #6e4d05; }
/* JS 注入的金色跟随滑块（悬停跟随，离开回到当前页） */
.nav-glider {
  position: absolute; top: 50%; left: 0; z-index: 1;
  height: 40px; margin-top: -20px;
  border-radius: 11px; opacity: 0;
  background: linear-gradient(135deg, #f9df94 0%, #ecb944 52%, #dd9f24 100%);
  box-shadow: 0 6px 16px rgba(212, 160, 23, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition:
    transform .38s cubic-bezier(.34,1.25,.5,1),
    width .38s cubic-bezier(.34,1.25,.5,1),
    opacity .22s ease;
  pointer-events: none;
}
.nav-glider::before {
  content: ""; position: absolute; inset: 1px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.user-box { display: flex; align-items: center; gap: 12px; }

/* 登录后欢迎语（不带头像标识） */
.hello-user {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--text-2); font-size: 14px;
  transition: color .2s;
}
.hello-user b { color: var(--gold); font-weight: bold; }
.hello-user:hover { color: var(--gold); }

/* 页脚主题切换色点 */
/* ============ 主题切换：显眼 pill ============ */
.theme-picker {
  display: flex; align-items: center; gap: 6px;
  padding: 4px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.theme-picker .tp-label {
  font-size: 12px; color: var(--text-3); padding: 0 4px 0 8px;
  font-weight: 600; letter-spacing: 1px;
}
.theme-dot {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 7px;
  border: 1px solid transparent; cursor: pointer;
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: transparent;
  transition: all .2s;
}
.theme-dot::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.10);
}
.theme-dot[data-theme="light"]::before { background: linear-gradient(135deg, #ffffff, #e6e9ef); }
.theme-dot[data-theme="dark"]::before { background: linear-gradient(135deg, #2a2f45, #0f1320); }
.theme-dot[data-theme="tech"]::before { background: linear-gradient(135deg, #4fc3f7, #0a1428); border-color: rgba(79,195,247,.5); }
.theme-dot:hover { color: var(--text); background: var(--bg-soft); }
.theme-dot.on {
  color: var(--gold-ink);
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--gold) 35%, transparent);
}
.theme-dot.on::before { border-color: rgba(0,0,0,.12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 22px; border-radius: 8px; font-size: 15px; font-weight: bold;
  transition: .2s; white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn-gold {
  background: var(--gold-grad);
  color: var(--gold-ink);
  box-shadow: 0 3px 10px rgba(212, 160, 23, .3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(212, 160, 23, .42); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-2);
}
.btn-ghost:hover { background: rgba(212, 160, 23, .1); }
.btn-red {
  background: linear-gradient(180deg, #ef5b4e, #cf3527);
  color: #fff; box-shadow: 0 3px 10px rgba(224, 71, 58, .32);
}
.btn-red:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(224, 71, 58, .42); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ============ 首页 Hero ============ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background .3s ease;
}
.hero-grid-deco {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 38px, var(--deco-line) 38px 40px),
    radial-gradient(circle at 72% 28%, rgba(212, 160, 23, .08), transparent 42%);
  pointer-events: none;
}
.hero-grid-deco::before,
.hero-grid-deco::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(212, 160, 23, .25);
}
.hero-grid-deco::before { width: 150px; height: 150px; right: 8%; top: 18%; animation: floatY 6s ease-in-out infinite; }
.hero-grid-deco::after {
  width: 80px; height: 80px; right: 20%; bottom: 8%;
  border-color: rgba(224, 71, 58, .22); animation: floatY 7.5s ease-in-out infinite reverse;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-inner {
  position: relative;
  display: flex; align-items: stretch; justify-content: space-between; gap: 40px;
}
.hero-text { max-width: 640px; align-self: center; }
.hero-text h1 {
  font-size: 42px; line-height: 1.32; margin-bottom: 16px;
  color: var(--text);
}
.hero-text h1 span {
  background: linear-gradient(90deg, #eaa827, #e05a30);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 900;
}
.hero-text p { font-size: 16px; color: var(--text-2); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; }
.hero-actions .btn { padding: 14px 34px; font-size: 16px; border-radius: 10px; }
.hero-actions .btn .ic { width: 18px; height: 18px; }

/* Hero 右侧栏：数据面板 + 充值福利（一起放在主背景区内） */
.hero-side {
  width: 400px; flex: none;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-stats {
  display: flex; align-items: center; justify-content: space-around; gap: 16px;
  width: 100%;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 20px;
  box-shadow: var(--shadow-hover);
}
.hero-side .benefit-hero { padding: 20px 22px 16px; }
.benefit-hero h3 { font-size: 17px; margin-bottom: 12px; }
.benefit-hero .bc-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px;
  margin-bottom: 14px;
}
.benefit-hero .bc-list li {
  border-bottom: none; padding: 5px 0 5px 25px;
  font-size: 12.5px; line-height: 1.4;
}
.benefit-hero .bc-list li .ic { top: 6px; }
.benefit-hero .bc-foot { text-align: center; }
.benefit-hero .btn { padding: 11px 0; font-size: 14.5px; }
.hs-item { text-align: center; min-width: 80px; }
.hs-num {
  font-size: 34px; font-weight: 900;
  background: linear-gradient(180deg, #e8b53a, #d17a1e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.hs-unit { font-size: 16px; font-weight: bold; margin-left: 2px; -webkit-text-fill-color: #d17a1e; }
.hs-lab { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.hs-divider { width: 1px; height: 44px; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }

/* ============ 筛选面板 ============ */
.section { padding: 42px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 11px;
}
.section-title .ic { width: 23px; height: 23px; color: var(--gold-2); }
.section-title::before {
  content: ""; width: 5px; height: 24px; border-radius: 3px;
  background: linear-gradient(180deg, #f0c24c, #e0612f);
}
.section-title:has(.ic)::before { display: none; }
.section-sub { font-size: 13px; color: var(--text-2); font-weight: normal; }
.side-title { font-size: 20px; }

.filter-panel {
  background: var(--card-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 28px;
}
.filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.filter-row + .filter-row { margin-top: 12px; }
.filter-row .label { color: var(--text-2); font-size: 13px; width: 36px; flex-shrink: 0; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  padding: 7px 18px; border-radius: 18px; font-size: 13px;
  background: var(--chip-bg); color: var(--text-2); transition: .2s;
  border: 1px solid transparent;
}
.chip:hover { color: var(--gold); border-color: rgba(212, 160, 23, .35); transform: translateY(-1px); }
.chip.active {
  background: var(--gold-grad);
  color: var(--gold-ink); font-weight: bold;
  box-shadow: 0 3px 9px rgba(212, 160, 23, .3);
}
.search-box { margin-left: auto; display: flex; }
.search-box input {
  width: 220px; height: 38px; padding: 0 14px;
  background: var(--input-bg); border: 1px solid var(--line-2);
  border-radius: 19px 0 0 19px; color: var(--text); font-size: 13px;
  transition: .2s;
}
.search-box input:focus { border-color: var(--gold-2); background: var(--card-solid); }
.search-box button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 16px; border-radius: 0 19px 19px 0;
  background: var(--gold-grad); color: var(--gold-ink);
  font-weight: bold; font-size: 13px;
}
.search-box button .ic { width: 15px; height: 15px; }
.search-box button:hover { filter: brightness(1.03); }

/* ============ 游戏卡片（一行四张） ============ */
.game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.game-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* 玻璃光泽扫过 */
.game-card::after {
  content: ""; position: absolute; top: -60%; left: -60%;
  width: 60%; height: 220%; z-index: 3;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .55), rgba(247, 221, 142, .28), transparent);
  transform: rotate(25deg); opacity: 0; pointer-events: none;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 160, 23, .55);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(212, 160, 23, .2);
}
.game-card:hover::after { opacity: 1; animation: cardShine 1.2s ease-out 1; }
@keyframes cardShine {
  0% { left: -60%; } 100% { left: 130%; }
}
.game-cover { position: relative; height: 128px; overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-cover img { transform: scale(1.07); }
/* 类型角标（封面左上角）：精品/礼包/红包/刀刀货币/导航 */
.type-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: bold;
  backdrop-filter: blur(3px);
  letter-spacing: 1px;
}
.type-badge .ic { width: 12px; height: 12px; }
/* 倍数角标（封面右上角，金色大字） */
.mult-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 6px;
  background: linear-gradient(180deg, #f0c24e, #d4a017);
  color: #1a1f2c; font-size: 12px; font-weight: 900;
  letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
/* 点赞按钮（封面右下角） */
.like-btn {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 8px; border-radius: 16px; border: none;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  color: #f0c14b; font-size: 11px; font-weight: bold;
  cursor: pointer; transition: all .25s;
}
.like-btn:hover { background: rgba(0,0,0,.75); transform: scale(1.08); }
.like-btn.liked { color: #e0507a; }
.like-btn .ic { width: 13px; height: 13px; }
.tb-boutique { background: linear-gradient(180deg, rgba(247, 217, 138, .96), rgba(227, 169, 43, .96)); color: #5e3f00; box-shadow: 0 3px 10px rgba(180, 130, 20, .4); }
.tb-gift { background: rgba(28, 26, 40, .74); color: #f2cf74; border: 1px solid rgba(242, 207, 116, .5); }
.tb-red { background: linear-gradient(180deg, #ff5a4c, #d0331f); color: #fff; box-shadow: 0 3px 10px rgba(198, 40, 28, .4); animation: rpPulse 2s ease-in-out infinite; }
.tb-gold { background: linear-gradient(180deg, #33cebb, #0f9487); color: #fff; box-shadow: 0 3px 10px rgba(15, 148, 135, .4); }
.tb-plain { background: rgba(28, 26, 40, .74); color: #cfd4e4; border: 1px solid rgba(207, 212, 228, .4); }
@keyframes rpPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
.game-cover .rate {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: bold; color: #f2cf74;
  background: rgba(28, 26, 40, .72); padding: 4px 9px; border-radius: 6px;
  backdrop-filter: blur(3px);
}
.game-cover .rate.like-btn { cursor: pointer; transition: transform .15s, color .2s; }
.game-cover .rate.like-btn:hover { transform: scale(1.08); }
.game-cover .rate.like-btn.liked { color: #e0507a; }
.game-cover .rate.like-btn.liked .ic-star { color: #e0507a; }
.ic-star { width: 12px; height: 12px; color: #f5c842; }
/* 卡片内容区弹性布局：简介多少都不影响按钮位置，按钮始终贴底对齐 */
.game-info { flex: 1; display: flex; flex-direction: column; padding: 10px; }
/* 标题 + 热度同一行，热度靠右 */
.title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 5px;
}
.title-row h3 {
  flex: 1; min-width: 0; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 标题+小QQ图标的包裹层：图标紧跟标题文字，标题超长省略 */
.title-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; }
.title-name h3 { margin: 0; }
/* 标题后的 QQ 胶囊：运营名字 + 企鹅图标，点击直接联系 */
.title-qq {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 3px 10px 3px 9px; height: 22px; border-radius: 11px;
  background: linear-gradient(180deg, #37b3ff, #1273e6); color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none; font-size: 0; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(18,115,230,.28);
  cursor: pointer;
}
.title-qq .ic { width: 16px; height: 16px; }
.title-qq .ic-png { width: 16px; height: 16px; }
.title-qq .title-qq-av { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: #fff; display: block; object-fit: cover; }
.title-qq .qq-op-name { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .3px; }
.title-qq:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 3px 9px rgba(18,115,230,.5); }

/* ============ 卡片运营胶囊（标题行右侧小挂件） ============ */
.op-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 7px 0 3px;
  background: linear-gradient(180deg, #fff8e0, #ffecc0);
  border: 1px solid #e8c874;
  border-radius: 11px;
  font-size: 0; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(184,134,11,.15);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.op-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(184,134,11,.3); }
.op-chip .opc-av {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid #d4a53a; background: #fff; object-fit: cover;
}
.op-chip .opc-name {
  font-size: 11px; font-weight: 700; color: #8a6a0a;
  max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.op-chip .ic,
.op-chip .ic-png { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #d4a53a; background: #fff; color: #1273e6; padding: 1px; }

/* 排行榜运营小胶囊（保留） */
.owner-chip {
  font-size: 11px; color: #8a6a0a;
  background: #fff3c4; border: 1px solid #e8c874;
  padding: 2px 8px; border-radius: 9px;
  font-weight: 600; white-space: nowrap;
}

/* Hero 域名条 */
.hero-domain-bar {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 26px;
  background: linear-gradient(90deg, #b8860b, #e8b84b, #fff3c4, #e8b84b, #b8860b);
  background-size: 300% 100%;
  animation: heroGlow 4s linear infinite;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(184,134,11,.4);
  color: #3a2a00; font-weight: 600; font-size: 14px; letter-spacing: .5px;
}
.hero-domain-bar.hero-domain-big { padding: 14px 32px; font-size: 15px; }
.hero-domain-bar > span:first-child { color: #5a3e00; font-size: 13px; }
/* 域名：换 Impact/思源黑体 Heavy，更大更有冲击力 */
.hero-domain-link {
  font-family: 'Impact', 'Bebas Neue', '思源黑体 Heavy', 'Source Han Sans CN Heavy',
               '阿里巴巴普惠体 Heavy', 'HarmonyOS Sans SC Black', sans-serif;
  font-size: 26px; font-weight: 900; letter-spacing: 2px;
  color: #2a1a00; text-decoration: none;
  text-shadow: 0 2px 4px rgba(255,255,255,.6), 0 -1px 0 rgba(0,0,0,.15);
  line-height: 1;
}
.hero-domain-link:hover { color: #b8860b; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
.hero-domain-sub { color: #6b4c10; font-size: 12px; font-weight: 500; }

/* ============ 排行榜按钮组（等宽对齐 + 好看样式） ============ */
.rank-ops {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
  width: 288px;              /* 3 按钮 × 92px */
}
.rank-ops > * {
  flex: 1 1 0;               /* 三等分，强制等宽 */
  min-width: 0;
}
.rank-ops .btn {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.rank-ops .btn .ic { width: 14px; height: 14px; }

/* 官网：金字胶囊 */
.rank-ops .btn:nth-child(1) {
  background: rgba(212, 160, 23, .09);
  color: var(--gold-2);
  border: 1px solid rgba(212, 160, 23, .35);
  box-shadow: none !important;
  transform: none !important;
}
.rank-ops .btn:nth-child(1):hover {
  background: rgba(212, 160, 23, .18);
  border-color: var(--gold-2);
  color: var(--gold);
  box-shadow: none !important;
  transform: none !important;
}

/* 下载：灰底胶囊 */
.rank-ops .btn:nth-child(2) {
  background: var(--card-2);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  box-shadow: none !important;
  transform: none !important;
}
.rank-ops .btn:nth-child(2):hover {
  background: rgba(212, 160, 23, .06);
  border-color: var(--gold-2);
  color: var(--gold);
  box-shadow: none !important;
  transform: none !important;
}

/* 领取：独立宽胶囊，保持红/金/禁用原色，仅微调圆角和字重 */
.rank-ops .btn:nth-child(3) {
  font-weight: 700;
  border-radius: 8px;
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.rank-ops .btn:nth-child(3):not(:disabled):hover {
  transform: translateY(-1px);
}

.rank-ops .rank-op-chip { display: none; }

/* 排行榜运营胶囊（移到 rank-name-line 标题行里） */
.rank-op-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 8px 0 4px;
  background: linear-gradient(180deg, #fff8e0, #ffecc0);
  border: 1px solid #e8c874;
  border-radius: 12px;
  font-size: 0; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(184,134,11,.15);
  cursor: pointer;
  transition: transform .15s;
  flex-shrink: 0;
}
.rank-op-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(184,134,11,.3); }
.rank-op-chip .ropc-av {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid #d4a53a; background: #fff; object-fit: cover;
}
.rank-op-chip .ropc-name {
  font-size: 11px; font-weight: 700; color: #8a6a0a;
  white-space: nowrap;
}
.rank-meta-left .rank-op-chip { margin-left: 6px; }
.rank-op-chip .ic,
.rank-op-chip .ic-png { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #d4a53a; background: #fff; color: #1273e6; padding: 1px; }
.gl-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gl-title h3 { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 排行榜名称行 */
.rank-name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rank-name-line .name { flex: 1; min-width: 0; }
/* 热度（旧 rightSide 里的独立热度块 → 已废弃，保留兼容） */
.title-row .heat {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.title-row .heat .ic { width: 13px; height: 13px; color: var(--red); }
.title-row .heat b { color: var(--red); font-size: 13px; }
/* 热度：游戏标题后的内联小徽章（卡片用） */
.heat-inline {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 8px; padding: 1px 8px 1px 5px;
  background: #fff5f5; border: 1px solid #ffd6d6; border-radius: 10px;
  font-size: 11px; color: var(--red); font-weight: 600; vertical-align: middle;
}
.heat-inline .ic { width: 11px; height: 11px; }
/* 热度：排行榜标题后的内联小徽章 */
.rank-heat {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 6px; padding: 1px 7px 1px 4px;
  background: #fff5f5; border: 1px solid #ffd6d6; border-radius: 9px;
  font-size: 11px; color: var(--red); font-weight: 600; vertical-align: middle;
}
.rank-heat .ic { width: 11px; height: 11px; }
/* 游戏介绍：固定预留两行高度（无简介也占位对齐），最多四行，多则省略 */
.game-desc {
  margin: 0 0 2px; font-size: 12.5px; line-height: 1.65; color: var(--text-2);
  min-height: 42px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 卡片元信息行：版本标签 + 开区日期（都空时占位保持按钮对齐） */
.meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 5px; min-height: 20px;
}
.meta-row.is-empty { min-height: 0; height: 5px; }
.cat-minis { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.cat-mini {
  font-size: 11px; line-height: 16px; padding: 0 7px; border-radius: 999px;
  background: var(--chip-bg); color: var(--text-2);
  border: 1px solid var(--line); white-space: nowrap;
}
.cat-mini.more { color: var(--text-3); }
.open-date {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.open-date .ic { width: 12px; height: 12px; }
.open-date.is-future { color: var(--gold); font-weight: 700; }
/* 标题行右侧：开抢时间胶囊 + 热度（胶囊在前） */
.title-side {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
}
.title-side .seg-tag { padding: 3px 9px; font-size: 11px; white-space: nowrap; }
/* 卡片专属客服：小号企鹅胶囊，悬停展开QQ号 */
.card-kefu {
  flex: none; display: inline-flex; align-items: center;
  height: 22px; border-radius: 11px; padding: 0 5px 0 3px;
  background: rgba(18, 115, 230, .08); border: 1px solid rgba(18, 115, 230, .28);
  text-decoration: none; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.card-kefu:hover { background: rgba(18, 115, 230, .15); border-color: rgba(18, 115, 230, .55); transform: translateY(-1px); }
.card-kefu .ck-ico {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, #37b3ff, #1273e6);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.card-kefu .ck-ico .ic { width: 11px; height: 11px; }
.card-kefu .ck-qq {
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue);
  max-width: 0; opacity: 0; overflow: hidden; margin-left: 0;
  transition: max-width .2s ease, opacity .2s ease, margin-left .2s ease;
}
.card-kefu:hover .ck-qq { max-width: 76px; opacity: 1; margin-left: 4px; }
/* 按钮组：两列网格，所有按钮同尺寸；整组始终贴卡片底部，任意卡片按钮位置一致 */
.game-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: auto; padding-top: 12px;
  justify-content: center; align-items: center;
}
.game-actions .btn {
  min-width: 0; width: 100%; text-align: center; padding: 9px 4px; font-size: 12px;
  white-space: nowrap; border-radius: 8px;
}
/* 奇数个按钮时最后一个占满整行（如红包服的领取红包） */
.game-actions .ga-wide { grid-column: 1 / -1; }
.btn-block { display: flex; width: 100%; text-align: center; }
.btn-dark {
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-dark:hover { border-color: var(--gold-2); color: var(--gold); background: rgba(212, 160, 23, .07); }
.game-actions .btn-red { font-weight: bold; }

.empty {
  grid-column: 1/-1; text-align: center; padding: 80px 0;
  color: var(--text-2); font-size: 16px;
}

/* ============ 排行榜（整行铺满容器，行高压紧） ============ */
.rank-card {
  background: var(--card-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px; padding: 4px 16px;
}
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-bottom: 1px dashed var(--line-2);
  transition: background .2s, transform .2s;
  border-radius: 8px;
}
.rank-item:hover { background: rgba(212, 160, 23, .06); transform: translateX(3px); }
.rank-item:last-child { border-bottom: none; }
.rank-no {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  background: var(--card-2); color: var(--text-2);
  border: 1px solid var(--line);
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, #ffd75e, #e3a013); color: #5e3f00; border-color: transparent; box-shadow: 0 3px 9px rgba(227, 160, 19, .35); }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg, #e6e9f2, #aab2c8); color: #353a4d; border-color: transparent; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg, #eda368, #c0743a); color: #fff; border-color: transparent; }
.rank-item > img { width: 100px; height: 56px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-item .name {
  font-size: 14px; font-weight: bold; color: var(--text); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.rank-item .name:hover { color: var(--gold); }
/* 名称行内的版本小胶囊 */
.rank-cats { display: inline-flex; gap: 4px; flex: none; }
.rank-cats .cat-mini { font-size: 10.5px; line-height: 15px; padding: 0 6px; }

/* 信息行：左日期  右状态徽章+热度（两端对齐） */
.rank-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; gap: 10px;
}
.rank-meta-left { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; }
.rank-meta-right { display: inline-flex; align-items: center; gap: 0; flex-shrink: 0; }
.rank-meta-sep { color: var(--text-3); opacity: .5; margin: 0 5px; }
.rank-date { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); white-space: nowrap; }
.rank-date .ic { width: 12px; height: 12px; color: var(--gold-2); }
.rank-date.is-future { color: var(--gold); font-weight: 700; }

/* 新：状态徽章（独立 pill 样式，区分礼包红/刀刀货币金/灰） */
.rank-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  padding: 2px 9px; border-radius: 10px; line-height: 1.5;
}
.rank-badge .ic { width: 12px; height: 12px; }
.rank-badge.rb-red   { background: rgba(224,71,58,.12); color: #e0473a; border: 1px solid rgba(224,71,58,.3); }
.rank-badge.rb-gold  { background: rgba(200,141,29,.14); color: #a07a14; border: 1px solid rgba(200,141,29,.4); }
.rank-badge.rb-wait  { background: rgba(212,160,23,.12); color: #c08f14; border: 1px solid rgba(212,160,23,.35); }
.rank-badge.rb-out   { background: rgba(120,120,130,.12); color: #7a7a86; border: 1px solid rgba(120,120,130,.25); font-weight: 500; }

/* 热度：排行榜标题后的内联小徽章（旧独立热度块已废弃） */
.rank-heat-old {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}
.rank-heat-old .ic { width: 12px; height: 12px; color: var(--red); }
.rank-heat-old b { color: var(--red); font-size: 12.5px; font-weight: 700; }

.rank-desc {
  margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 40px 0; }

/* 右侧福利卡 */
.benefit-card {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 71, 58, .10), transparent 60%),
    var(--card-solid);
  border: 1px solid rgba(212, 160, 23, .4);
  box-shadow: var(--shadow);
  border-radius: 16px; padding: 28px 24px 22px;
  text-align: center;
  overflow: hidden;
}
.benefit-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--red), var(--gold-2), transparent);
}
.bc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 15px; border-radius: 14px;
  font-size: 12px; color: #fff;
  background: linear-gradient(90deg, var(--red), #e8812b);
  margin-bottom: 14px;
  box-shadow: 0 3px 9px rgba(224, 71, 58, .3);
}
.bc-badge .ic { width: 13px; height: 13px; }
.benefit-card h3 {
  font-size: 20px; color: var(--text); margin-bottom: 16px;
}
.benefit-card h3 .ic { width: 19px; height: 19px; color: var(--gold-2); vertical-align: -3px; margin-right: 5px; }
.bc-list { text-align: left; margin-bottom: 20px; }
.bc-list li {
  list-style: none;
  position: relative; padding: 7px 0 7px 26px;
  font-size: 13px; color: var(--text-2);
  border-bottom: 1px dashed rgba(212, 160, 23, .25);
}
.bc-list li:last-child { border-bottom: none; }
.bc-list li .ic { position: absolute; left: 2px; top: 8px; width: 15px; height: 15px; color: var(--green); }
.benefit-card .btn { padding: 12px 0; font-size: 15px; border-radius: 10px; }
.bc-foot { margin-top: 10px; font-size: 12px; color: var(--text-2); }

/* ============ 底部 ============ */
.footer {
  margin-top: 60px; padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center; color: var(--text-2); font-size: 13px; line-height: 2;
}
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 14px; }
.footer-links a .ic { width: 15px; height: 15px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy a { color: var(--text-2); }
.footer-copy a:hover { color: var(--gold); }

/* ============ 全站品牌强化：3RLM 散人联盟 ============ */
/* 背景水印：body 上覆盖一个半透明的 3RLM 重复层，不干扰内容 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='140'><text x='130' y='82' font-family='Arial,Black' font-size='30' font-weight='900' fill='%23c08b0e' fill-opacity='0.08' text-anchor='middle' transform='rotate(-18 130 70)'>3RLM · 散人联盟</text></svg>");
  pointer-events: none;
}
/* Hero 底部域名条 */
.hero-domain-bar {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 22px;
  background: linear-gradient(90deg, #c88d1d, #e8b84b, #c88d1d);
  background-size: 200% 100%;
  animation: heroGlow 3s linear infinite;
  border-radius: 24px;
  box-shadow: 0 3px 12px rgba(200,141,29,.35);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .8px;
}
.hero-domain-bar .hd-icon { font-size: 16px; }
.hero-domain-bar .hd-domain {
  font-family: Consolas, Menlo, monospace;
  font-size: 14px; font-weight: 800;
  color: #fff3c4;
  margin: 0 4px;
}
@keyframes heroGlow { to { background-position: -200% 0; } }

/* 页脚网站域名强调 */
.footer-domain {
  display: block; margin-top: 8px;
  font-size: 12px; color: #a08650; font-weight: 600;
  letter-spacing: 1px;
}
.footer-domain a {
  font-family: 'Impact', 'Bebas Neue', '思源黑体 Heavy', 'Source Han Sans CN Heavy',
               '阿里巴巴普惠体 Heavy', sans-serif;
  color: #b8860b; font-weight: 900; font-size: 14px; letter-spacing: 1.5px; text-decoration: none;
}
.footer-domain a:hover { color: #d9a33c; }

/* ============ 中屏适配 ============ */
@media (max-width: 1260px) {
  .container { width: 100%; padding: 0 20px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 30px; }
  .hero-text { max-width: 720px; }
  .hero-side { width: 100%; max-width: 520px; }
  .hero-actions { justify-content: center; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 4px; margin-left: 20px; }
}
@media (max-width: 1120px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 登录/注册页 ============ */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(247, 217, 138, .35), transparent 50%),
    radial-gradient(ellipse at 72% 82%, rgba(224, 71, 58, .12), transparent 55%),
    var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.auth-box {
  width: 430px; padding: 40px 38px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(58, 68, 105, .16);
}
.auth-tabs { display: flex; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
  flex: 1; padding: 12px 0; background: none;
  font-size: 18px; font-weight: bold; color: var(--text-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.auth-tabs button.active { color: var(--gold); border-color: var(--gold-2); }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--input-bg); border: 1px solid var(--line-2);
  border-radius: 9px; color: var(--text); font-size: 15px;
  transition: .2s;
}
.form-item textarea { height: auto; padding: 10px 14px; resize: vertical; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--gold-2);
  background: var(--card-solid);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, .13);
}
.auth-box .btn-gold { width: 100%; height: 46px; font-size: 17px; margin-top: 6px; }
.qq-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-2); font-size: 13px; margin: 24px 0 16px;
}
.qq-divider::before, .qq-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.btn-qq {
  width: 100%; height: 46px; border-radius: 9px;
  background: #12b7f5; color: #fff; font-size: 16px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: .2s;
}
.btn-qq:hover { background: #0da0d8; transform: translateY(-1px); }
.qq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #12b7f5;
  display: flex; align-items: center; justify-content: center;
}
.qq-icon .ic { width: 16px; height: 16px; }
.auth-back { text-align: center; margin-top: 22px; font-size: 13px; }
.auth-back a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.auth-back a .ic { width: 15px; height: 15px; }
.auth-back a:hover { color: var(--gold); }

/* ============ 通用页面卡片 ============ */
.page-wrap { padding: 34px 0 60px; }
.panel {
  background: var(--card-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px; padding: 28px; margin-bottom: 24px;
}
.panel h2 { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.panel h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, #f0c24c, #e0612f);
}

/* ============ 礼包页 ============ */
.gift-hero {
  display: flex; gap: 34px; align-items: center;
  background: var(--hero-bg);
  border: 1px solid rgba(212, 160, 23, .4);
  box-shadow: var(--shadow);
  border-radius: 16px; padding: 40px;
}
.gift-icon-box {
  width: 190px; height: 190px; border-radius: 20px; flex-shrink: 0;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-ink);
  box-shadow: 0 12px 34px rgba(212, 160, 23, .38), inset 0 1px 0 rgba(255, 255, 255, .6);
  animation: giftFloat 4s ease-in-out infinite;
}
.gift-icon-box .ic { width: 96px; height: 96px; }
@keyframes giftFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.gift-info { flex: 1; }
.gift-info h1 { font-size: 32px; margin-bottom: 10px; color: var(--text); }
.gift-info .value {
  display: inline-block; font-size: 15px; color: var(--gold);
  border: 1px solid rgba(212, 160, 23, .5); border-radius: 6px;
  background: rgba(212, 160, 23, .12);
  padding: 3px 12px; margin-bottom: 14px;
}
.gift-info p { color: var(--text-2); line-height: 1.9; margin-bottom: 22px; }
.gift-stats { display: flex; gap: 40px; margin-bottom: 24px; }
.gift-stats .num { font-size: 28px; font-weight: 900; color: var(--gold); }
.gift-stats .lab { font-size: 13px; color: var(--text-2); }
.gift-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gift-detail-list li {
  list-style: none; padding: 12px 16px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; font-size: 14px;
  border-left: 3px solid var(--gold-2);
}
.code-box {
  margin-top: 20px; padding: 26px; text-align: center;
  background: rgba(212, 160, 23, .08);
  border: 1px dashed var(--gold-2); border-radius: 12px;
}
.code-box .code {
  font-size: 34px; font-weight: 900; letter-spacing: 3px;
  color: var(--gold); font-family: Consolas, monospace;
  margin: 12px 0;
}

/* ============ 表格 ============ */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 13px 14px;
  background: var(--card-2); color: var(--text-2); font-weight: normal;
  white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.table tr:hover td { background: rgba(212, 160, 23, .04); }
.tag-status {
  padding: 2px 10px; border-radius: 12px; font-size: 12px;
}
.tag-on { background: rgba(40, 160, 95, .13); color: var(--green); }
.tag-off { background: rgba(224, 71, 58, .13); color: var(--red); }
.tag-mute { background: rgba(212, 160, 23, .16); color: #b3830e; margin-left: 5px; }

/* 网关下发状态 */
.gw-tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: bold; white-space: nowrap;
}
.gw-ok { background: rgba(40, 160, 95, .13); color: #1e8a52; }
.gw-fail { background: rgba(224, 71, 58, .13); color: #cf3528; cursor: help; }
.gw-wait { background: #eef0f7; color: #8a8fa3; }
.gw-retry {
  margin-left: 4px; padding: 1px 8px; border-radius: 10px;
  font-size: 11px; border: 1px solid #c9a44a; background: #fff;
  color: #8a6d1d; cursor: pointer; line-height: 16px;
}
.gw-retry:hover { background: #fdf6e3; }

/* 注册码一键复制小按钮 */
.btn-copy-code {
  margin-left: 10px; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; line-height: 16px; cursor: pointer;
  border: 1px solid #2f7fe0; background: #fff; color: #2f7fe0;
}
.btn-copy-code:hover { background: #2f7fe0; color: #fff; }
/* 前台（非后台藏青区）：跟随主题，避免暗色下深字看不清 */
body:not(.admin-body) .gw-ok { color: var(--green); }
body:not(.admin-body) .gw-fail { color: var(--red); }
body:not(.admin-body) .gw-wait { background: var(--chip-bg); color: var(--text-2); }
body:not(.admin-body) .gw-retry {
  background: var(--card-solid); border-color: rgba(212, 160, 23, .45);
  color: var(--gold);
}
body:not(.admin-body) .gw-retry:hover { background: var(--card-2); }

/* 后台网关节点 */
.gw-node-list { display: flex; flex-direction: column; gap: 10px; }
.gw-node {
  border: 1px solid #e3e6f0; border-radius: 10px; padding: 12px 14px;
  background: #fff;
}
.gw-node.off { opacity: .75; }
.gw-node-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.gw-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #c0c4d0;
}
.gw-node.on .gw-dot { background: #28a05f; box-shadow: 0 0 0 3px rgba(40, 160, 95, .15); }
.gw-state {
  font-size: 12px; padding: 1px 10px; border-radius: 10px;
  background: #eef0f7; color: #8a8fa3;
}
.gw-node.on .gw-state { background: rgba(40, 160, 95, .12); color: #1e8a52; }
.gw-ver { color: #9aa0b5; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-seen { margin-left: auto; color: #9aa0b5; font-size: 12px; white-space: nowrap; flex-shrink: 0; padding-left: 8px; }
.gw-node-stat { display: flex; gap: 22px; margin-top: 8px; font-size: 13px; color: #5a5f73; }
.gw-node-stat b { color: #2c2f38; font-size: 15px; margin-left: 4px; }
.gw-node-stat b.ok { color: #28a05f; }
.gw-node-stat b.fail { color: #d3352a; }

/* ============ 用户中心 ============ */
.user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.user-menu {
  background: var(--card-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px; padding: 14px; position: sticky; top: 90px;
}
.user-menu .me {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.user-menu .me .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #f0c24c, #d18d2c);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: bold; border: 2px solid #f7dd9f; overflow: hidden;
}
.user-menu .me .avatar img { width: 100%; height: 100%; }
.user-menu .me .nick { font-weight: bold; font-size: 15px; color: var(--text); }
.user-menu .me .pts { font-size: 12px; color: var(--gold); }
.user-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 9px;
  color: var(--text-2); font-size: 15px; margin-bottom: 4px;
}
.user-menu a .ic { width: 18px; height: 18px; }
.user-menu a:hover { background: var(--card-2); color: var(--text); }
.user-menu a.active { background: rgba(212, 160, 23, .12); color: var(--gold); border-left: 3px solid var(--gold-2); padding-left: 11px; }
.info-row { display: flex; padding: 14px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.info-row .k { width: 110px; color: var(--text-2); }
.info-row .v { flex: 1; color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* ============ Toast & Modal ============ */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  padding: 13px 28px; border-radius: 10px; z-index: 100000;
  font-size: 15px; color: #fff; box-shadow: 0 10px 34px rgba(58, 68, 105, .22);
  animation: toastIn .25s;
}
.toast .ic { width: 17px; height: 17px; }
.toast-ok { background: linear-gradient(180deg, #35b56c, #219052); }
.toast-err { background: linear-gradient(180deg, #ef5b4e, #c93527); }
.toast-wait { background: linear-gradient(180deg, #5a7fc9, #3f5fa6); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px); } }

.modal-mask {
  position: fixed; inset: 0; background: var(--mask);
  backdrop-filter: blur(2px);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  animation: maskIn .2s;
}
@keyframes maskIn { from { opacity: 0; } }
.modal {
  width: 520px; max-height: 85vh; overflow-y: auto;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px;
  box-shadow: 0 24px 70px rgba(30, 34, 60, .28);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.modal-head h3 { font-size: 20px; color: var(--text); }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-2); color: var(--text-2);
  transition: .2s;
}
.modal-close:hover { background: rgba(224, 71, 58, .12); color: var(--red); transform: rotate(90deg); }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* ============ 后台管理：行政庄重风（独立单主题，不跟随前台主题变量） ============ */
/* 配色规则：藏青为唯一主色，政务红仅用于选中指示/危险操作；无渐变、无金色、直角细描边 */
.admin-body {
  --a-navy: #1e3a5f;        /* 主藏青 */
  --a-navy-2: #274a73;      /* 藏青 hover */
  --a-navy-3: #2f5a96;      /* 浅一档藏青（图表/链接） */
  --a-side: #1c3556;        /* 侧栏底 */
  --a-side-hover: #25456e;  /* 侧栏 hover/active 底 */
  --a-red: #c0392b;         /* 政务红（选中条/危险） */
  --a-bg: #f2f4f7;          /* 内容区底 */
  --a-line: #d6dbe4;        /* 卡片/控件描边 */
  --a-line-2: #c2c9d5;      /* 深一档描边 */
  --a-head: #edf1f6;        /* 表头底 */
  --a-text: #2b3440;
  --a-text-2: #687283;
  --a-text-3: #98a1af;
  /* 覆盖全局暗色变量，确保后台组件不被前台黑金主题污染 */
  --bg: #f2f4f7;
  --bg-2: #e8ecf1;
  --bg-soft: #f5f7fa;
  --card-solid: #ffffff;
  --card-2: #f5f6fa;
  --card: #ffffff;
  --line: #d6dbe4;
  --line-2: #c2c9d5;
  --text: #2b3440;
  --text-2: #687283;
  --text-3: #98a1af;
  --chip-bg: #e8ecf1;
  --input-bg: #ffffff;
  --modal-bg: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex; height: 100vh; min-width: 1300px; overflow-x: auto; overflow-y: hidden; background: var(--a-bg); color: var(--a-text); font-size: 13px;
}
/* 后台水印：极淡藏青 */
body.admin-body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='140'><text x='130' y='82' font-family='Arial,Black' font-size='30' font-weight='900' fill='%231e3a5f' fill-opacity='0.05' text-anchor='middle' transform='rotate(-18 130 70)'>3RLM · 散人联盟</text></svg>");
}
/* 隐藏主题切换 */
.theme-switch, .theme-pop { display: none !important; }
.admin-side {
  width: 210px; height: 100vh; background: var(--a-side); color: #b9c4d4;
  border-right: 1px solid #162b47;
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
}
.admin-logo {
  height: 58px; display: flex; align-items: center; gap: 8px;
  padding: 0 18px; font-size: 16px; font-weight: 700;
  color: #ffffff; letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.admin-logo .ic { width: 20px; height: 20px; color: #ffffff; }
.admin-menu { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; }
.admin-menu a {
  display: flex; align-items: center; gap: 0;
  padding: 10px 20px; font-size: 13px; color: #b9c4d4; letter-spacing: .5px;
  border-left: 3px solid transparent;
  transition: none;
}
.admin-menu a .ic { display: none; }
.admin-menu a::before { content: ''; width: 4px; height: 4px; background: #5a7ca8; margin-right: 10px; border-radius: 50%; flex-shrink: 0; }
.admin-menu a.active::before { background: var(--a-red); }
.admin-menu a:hover { background: var(--a-side-hover); color: #fff; }
.admin-menu a.active {
  background: var(--a-side-hover); color: #fff; font-weight: 600;
  border-left-color: var(--a-red);
}
.admin-side .quit { flex-shrink: 0; padding: 12px 18px; border-top: 1px solid rgba(255, 255, .08); font-size: 12.5px; }
.admin-side .quit a { display: inline-flex; align-items: center; gap: 4px; color: #8fa0b8; font-size: 12px; }
.admin-side .quit a .ic { display: none; }
.admin-side .quit a:hover { color: #fff; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 1090px; min-height: 0; height: 100vh; }
.admin-top {
  height: 48px; background: #fff; border-bottom: 1px solid var(--a-line-2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex-shrink: 0;
}
.admin-top .title { font-size: 14px; font-weight: 700; color: var(--a-navy); letter-spacing: 2px; }
.admin-top .admin-name { display: flex; align-items: center; gap: 8px; color: var(--a-text-2); font-size: 13px; }
.admin-top .admin-name .ic { width: 14px; height: 14px; }
.admin-content { padding: 20px; flex: 1; min-height: 0; overflow-y: auto; box-sizing: border-box; }
/* 每个子页面 section 全宽，卡片宽度口径统一 */
.admin-content > section { width: 100%; min-width: 0; box-sizing: border-box; }
.admin-content .admin-card { width: 100%; box-sizing: border-box; }
/* 表单类卡片：白背景全宽统一，但表单控件不超过 780，避免几个数字的输入框横拉满整行 */
.card-form-inner { max-width: 780px; }
/* 宽表格：横向滚动收在卡片内部，不把整页捅宽；纵向可见（下拉菜单不受裁切） */
.table-scroll { overflow-x: auto; overflow-y: visible; }
/* 固定布局核心：表格按自然内容宽渲染，窗口放大/缩小时列与按钮绝不被挤压，
   内容超出只在卡片内横向滚动（配合 body min-width:1300） */
.table-scroll .admin-table { width: auto; min-width: 100%; }
/* 工具栏：任何分辨率/缩放下按钮不换行、不跑位 */
.toolbar { flex-wrap: nowrap; }
.toolbar > * { flex-shrink: 0; min-width: 0; }
.toolbar .btn-admin, .toolbar .btn-plain, .toolbar .btn-danger { white-space: nowrap; flex-shrink: 0; }
/* 表格操作列：按钮永远一排，文字不折行、不被挤出（其余文本列正常折行） */
.admin-table td:last-child { white-space: nowrap; }
.admin-table td .btn-plain, .admin-table td .btn-danger, .admin-table td .btn-admin { white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 16px; border: 1px solid var(--a-line); background: #fff; }
.stat-card {
  background: #fff; padding: 16px 18px;
  border-right: 1px solid var(--a-line);
  display: flex; align-items: center; gap: 14px;
}
.stat-card:last-child { border-right: 0; }
.stat-card .si {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor;
}
.stat-card .si .ic { width: 20px; height: 20px; }
/* 指标图标：低饱和政务四色（藏青/钢青/暗红/墨绿），不用金色 */
.si-gold { background: #eaf0f7; color: #1e3a5f; border-color: #b6c6da; }
.si-blue { background: #edf3f8; color: #2f5a96; border-color: #b9cce2; }
.si-red { background: #f7eceb; color: #a33427; border-color: #d9b3ae; }
.si-green { background: #ecf3ef; color: #2c6b49; border-color: #b6cfc0; }
.stat-card .sn { font-size: 22px; font-weight: 700; color: var(--a-navy); }
.stat-card .sl { color: var(--a-text-2); font-size: 12px; margin-top: 2px; }
.admin-card {
  background: #fff; border: 1px solid var(--a-line); border-radius: 0;
  box-shadow: 0 2px 8px rgba(30,58,95,.08); padding: 18px 20px;
  margin-bottom: 16px;
}
.admin-card h3 { font-size: 14px; margin-bottom: 14px; color: var(--a-navy); font-weight: 700; border-left: 4px solid var(--a-navy); padding-left: 10px; letter-spacing: .5px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; padding: 10px 12px; background: var(--a-head);
  color: var(--a-navy); font-weight: 700; white-space: nowrap;
  border-bottom: 2px solid var(--a-navy); border-top: none; border-left: none; border-right: none; font-size: 12px; letter-spacing: .5px;
}
/* 可排序表头 */
.admin-table th.sortable { cursor: pointer; user-select: none; }
.admin-table th.sortable:hover { background: #e2e9f2; color: #162c49; }
.admin-table th.sortable.sort-on { background: #dde6f1; }
.admin-table th .sort-ic { font-style: normal; font-size: 9px; margin-left: 3px; color: var(--a-red); }
/* 用户活跃等级标签 */
.lv-tag {
  display: inline-block; padding: 2px 9px; font-size: 12px; font-weight: 600;
  background: #eef3f9; color: var(--a-navy); border: 1px solid #b6c6da; white-space: nowrap;
}
.lv-tag i { font-style: normal; color: var(--a-text-2); font-weight: 400; margin-left: 2px; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-table td { padding: 9px 12px; border-bottom: 1px solid #e3e7ee; border-top: none; border-left: none; border-right: none; color: var(--a-text); }
.admin-table img { width: 64px; height: 42px; object-fit: cover; border: 1px solid var(--a-line); }
.toolbar { display: flex; justify-content: space-between; margin-bottom: 12px; gap: 12px; align-items: center; }
.toolbar input, .toolbar select {
  height: 32px; padding: 0 10px; border: 1px solid var(--a-line-2);
  background: #fff; font-size: 13px; color: var(--a-text);
}
.btn-admin {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 5px;
  padding: 6px 16px; border: 1px solid var(--a-navy); border-radius: 2px;
  background: var(--a-navy); color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; transition: all .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 4px rgba(30,58,95,.2);
}
.btn-admin .ic { display: none; }
.btn-admin:hover { background: var(--a-navy-2); border-color: var(--a-navy-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 12px rgba(30,58,95,.35); transform: translateY(-1px); }
.btn-admin:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(30,58,95,.2); }
.btn-admin-plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 12px; border: 1px solid var(--a-line-2); border-radius: 2px;
  background: #fff; color: var(--a-navy); font-size: 12.5px;
  transition: all .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.04);
}
.btn-admin-plain .ic { display: none; }
.btn-admin-plain:hover { background: #eef3f9; border-color: var(--a-navy-3); color: var(--a-navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 8px rgba(30,58,95,.15); transform: translateY(-1px); }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 4px; background: var(--a-red); border: 1px solid #962d22; border-radius: 2px; color: #fff; padding: 5px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; transition: all .2s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 4px rgba(192,57,43,.25); }
.btn-danger .ic { display: none; }
.btn-danger:hover { background: #a53124; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 12px rgba(192,57,43,.4); transform: translateY(-1px); }
.btn-plain {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 4px;
  background: #fff; color: var(--a-navy); padding: 5px 10px; border: 1px solid var(--a-line-2); border-radius: 2px; font-size: 12.5px;
  transition: all .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.04);
}
.btn-plain .ic { display: none; }
.btn-plain:hover { background: var(--a-head); color: var(--a-navy); border-color: var(--a-navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 8px rgba(30,58,95,.15); transform: translateY(-1px); }
/* 用户管理操作按钮组：单行排列不换行，主/子账号常用操作直显，主账号专属操作收进「更多」 */
.user-act-group { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 5px; }
.user-act-group .btn-plain, .user-act-group .btn-danger { flex: 0 0 auto; white-space: nowrap; }
/* 重置今日领取按钮：用橙色系与普通操作区分，提示这是一个"放行/重置"类动作 */
.btn-plain.btn-reset { color: #b35a00; border-color: #e8c879; background: #fffaf0; }
.btn-plain.btn-reset:hover { background: #fff3d6; border-color: #d4a017; color: #8a4400; }
/* 「更多」下拉（details 原生，免 JS） */
.act-more { position: relative; display: inline-block; }
.act-more > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 9px; border: 1px solid var(--a-line-2); background: #fff;
  color: var(--a-text-2); font-size: 12px; border-radius: 3px;
}
.act-more > summary::-webkit-details-marker { display: none; }
.act-more > summary:hover { background: var(--a-head); color: var(--a-navy); border-color: var(--a-navy); }
.act-more .act-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 60;
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--a-line-2); box-shadow: 0 6px 18px rgba(30,58,95,.18);
  padding: 6px; min-width: 120px;
}
/* 靠近容器底部的菜单自动向上展开（JS 加 .menu-up） */
.act-more.menu-up .act-menu { top: auto; bottom: calc(100% + 4px); }
.act-more .act-menu .btn-plain, .act-more .act-menu .btn-danger {
  justify-content: flex-start; width: 100%; text-align: left; padding: 6px 8px; font-size: 12px;
}
.admin-modal .modal {
  background: #fff; color: var(--a-text); border: 1px solid var(--a-navy); width: 600px; border-radius: 0;
  box-shadow: 0 12px 40px rgba(20, 35, 60, .25);
}
.admin-modal .modal-head { background: #fff; color: var(--a-navy); padding: 13px 18px; border-bottom: 1px solid var(--a-line); }
.admin-modal .modal-head h3 { color: var(--a-navy); font-weight: 700; letter-spacing: 1px; font-size: 15px; }
.admin-modal .modal-close { background: transparent; color: var(--a-text-3); }
.admin-modal .modal-close:hover { background: var(--a-head); color: var(--a-navy); }
.admin-modal .modal-foot { border-top: 1px solid var(--a-line); padding: 10px 18px; }
.admin-modal .modal-foot .btn-gold { background: var(--a-navy); color: #fff; border-color: var(--a-navy); letter-spacing: 1px; font-weight: 600; border-radius: 0; }
.admin-modal .modal-foot .btn-gold:hover { background: var(--a-navy-2); border-color: var(--a-navy-2); }
.admin-modal .modal-foot .btn-gold .ic { display: none; }
.admin-modal .modal-foot .btn-ghost { color: var(--a-text-2) !important; border-color: var(--a-line-2) !important; letter-spacing: 1px; border-radius: 0; }
.admin-modal .modal-foot .btn-ghost .ic { display: none; }
.admin-modal .form-item label { color: var(--a-navy); font-weight: 600; font-size: 12px; letter-spacing: .5px; }
.admin-modal .form-item input, .admin-modal .form-item select, .admin-modal .form-item textarea {
  background: #fff; border: 1px solid var(--a-line-2); color: var(--a-text); border-radius: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-modal .form-item input:focus, .admin-modal .form-item select:focus, .admin-modal .form-item textarea:focus {
  border-color: var(--a-navy-3); outline: none; box-shadow: 0 0 0 3px rgba(47, 90, 150, .12);
}
.admin-modal .form-item { margin-bottom: 12px; }
/* 补发外部充值路径提示 */
.ri-path-tip { margin-top: 8px; padding: 8px 10px; background: #f6f7fa; border: 1px solid var(--a-line); }
.ri-path-val { margin-top: 3px; font-size: 12.5px; color: var(--red-2); word-break: break-all; line-height: 1.5; font-weight: 600; }
.admin-modal .form-item label { margin-bottom: 4px; }
.admin-modal .form-item input, .admin-modal .form-item select {
  height: 34px; font-size: 13px; padding: 0 10px;
}
.admin-modal .form-item textarea { padding: 8px 10px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }

/* openGameTools 弹窗（攻略 & 爆率） */
.tools-block { margin-bottom: 22px; }
.tools-block h4 {
  font-size: 14px; font-weight: 700; color: var(--a-navy);
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--a-line); letter-spacing: .5px;
}
.tools-block h4 .hint { font-weight: normal; font-size: 12px; color: var(--a-text-3); letter-spacing: 0; margin-left: 6px; }
.tools-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: #f8fafc; border: 1px solid #e3e7ee;
}

/* === 封面预览 === */
.cover-preview {
  width: 120px; height: 80px;
  background: var(--a-head); border: 1px solid var(--a-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview span { color: var(--a-text-3); font-size: 12px; }
.cover-del, .upload-clear, .seg-del {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
}
.cover-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  background: rgba(30, 58, 95, .88); color: #fff;
}
.cover-del .ic { width: 12px; height: 12px; }
.cover-file-tip { font-size: 12px; color: #8a8fa3; margin-top: 4px; }

.seg-editor {
  margin-top: 6px; padding: 12px; background: #f8fafc;
  border: 1px solid var(--a-line);
}
.seg-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.seg-head label { font-size: 13px; font-weight: 700; color: var(--a-navy); }
/* 时段列表：两列网格（bl20 去掉日期列后行宽变短，固定两列省高度；bl31 minmax(0,1fr) 防撑破） */
.seg-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px 10px; }
.seg-row {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 4px;
  padding: 3px 6px; background: #fff;
  border: 1px solid #e3e7ee; min-width: 0; box-sizing: border-box;
}
.seg-row > * { flex-shrink: 0; }
.seg-row input[type=time],
.seg-row input[type=number], .seg-row select {
  height: 26px; padding: 2px 5px; border: 1px solid var(--a-line-2);
  background: #fff; font-size: 12px; color: var(--a-text); box-sizing: border-box;
}
.seg-row input[type=time] { width: 76px; }
.seg-row input[type=number] { width: 56px; }
.seg-row select { min-width: 52px; width: 56px; }
.seg-dash { color: var(--a-text-3); font-size: 12px; }
.seg-del {
  margin-left: auto; width: 26px; height: 26px;
  background: #f7eceb; color: #a33427; border: 1px solid #d9b3ae;
}
.seg-del:hover { background: #f0d9d6; }
.seg-del .ic { width: 14px; height: 14px; }

.admin-login-mask {
  position: fixed; inset: 0;
  background: var(--a-side);
  display: flex; align-items: center; justify-content: center; z-index: 300;
}
.admin-login {
  width: 360px; background: #fff; padding: 32px 30px; border-radius: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 16px 50px rgba(10, 22, 40, .45);
}
.admin-login h2 { text-align: center; margin-bottom: 6px; color: var(--a-navy); font-weight: 700; letter-spacing: 3px; }
.admin-login h2 .ic { display: none; }
.admin-login .sub { text-align: center; color: var(--a-text-3); font-size: 12.5px; margin-bottom: 22px; letter-spacing: .5px; }
.admin-login .form-item input {
  background: #fff; border: 1px solid var(--a-line-2); border-radius: 0;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-login .form-item input:focus { border-color: var(--a-navy-3); outline: none; box-shadow: 0 0 0 3px rgba(47, 90, 150, .12); }
.admin-login .btn-admin { width: 100%; height: 40px; font-size: 14px; margin-top: 6px; justify-content: center; letter-spacing: 2px; }
.chart-bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 20px; }
.chart-bars .bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-bars .bar {
  width: 100%; max-width: 38px;
  background: var(--a-navy-3); border: 1px solid var(--a-navy);
  min-height: 4px; transition: .4s;
}
.chart-bars .bar-lab { font-size: 12px; color: var(--a-text-3); }
.chart-bars .bar-val { font-size: 12px; color: var(--a-text-2); }
.cat-stats { display: flex; flex-direction: column; gap: 14px; }
.cat-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.cat-row .cat-name { width: 60px; color: var(--a-text-2); }
.cat-row .cat-bar { flex: 1; height: 10px; background: var(--a-head); border: 1px solid var(--a-line); overflow: hidden; }
.cat-row .cat-bar i { display: block; height: 100%; background: var(--a-navy-3); }
.cat-row .cat-num { width: 34px; text-align: right; color: var(--a-text-3); }
.hidden { display: none !important; }
.mt16 { margin-top: 16px; }
.text-center { text-align: center; }

/* ============ 仪表盘：分组小标题 / 多列连体卡 / 趋势 Tab / 三栏排行 ============ */
.dash-sub {
  margin: 20px 0 10px; font-size: 13px; font-weight: 700; color: var(--a-navy); letter-spacing: 2px;
  padding-left: 10px; border-left: 3px solid var(--a-red);
  display: flex; align-items: baseline; gap: 10px;
}
.dash-sub:first-of-type { margin-top: 0; }
.dash-sub em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--a-text-3); }
.sg-6 { grid-template-columns: repeat(6, 1fr); }
.sg-5 { grid-template-columns: repeat(5, 1fr); }
.sg-4 { grid-template-columns: repeat(4, 1fr); }
.sg-6 .stat-card { padding: 14px 14px; gap: 10px; }
.sg-6 .sn { font-size: 22px; }
.sg-4 .stat-card { padding: 14px 14px; gap: 10px; }
.sg-4 .sn { font-size: 22px; }

/* 趋势卡头 */
.dash-trend .dash-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: -4px 0 6px;
}
.dash-card-head h3 { margin: 0; }

/* 三栏排行（cols-2 = 两栏变体） */
.dash-rank-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 16px;
}
.dash-rank-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.dash-rank-grid .cat-stats { gap: 10px; }
.dash-rank-grid .cat-row { font-size: 12px; gap: 8px; }
.dash-rank-grid .cat-row .cat-name {
  width: auto; min-width: 0; flex: 0 0 auto; max-width: 132px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-rank-grid .cat-row .cat-num { width: 38px; flex: 0 0 auto; }
.dash-rank-grid .admin-card h3 { font-size: 14px; }
/* IP 行的地区列：IP | 地区 | 次数 */
.dash-rank-grid .cat-row .ip-region {
  flex: 1 1 auto; min-width: 0; text-align: left;
  color: var(--a-text-3); font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-rank-grid .cat-row .cat-bar { flex: 0 0 72px; }

/* ============ 游戏卡片：热度 + 发包时段 ============ */
.seg-tag {
  display: inline-flex; align-self: flex-start; align-items: center;
  padding: 3px 10px; border-radius: 6px; font-size: 11px; line-height: 1.5;
  border: 1px solid transparent;
}
.seg-tag b { color: inherit; }
.seg-on {
  color: var(--red); background: rgba(224, 71, 58, .1);
  border-color: rgba(224, 71, 58, .4);
  animation: segBlink 1.6s infinite;
}
@keyframes segBlink { 0%, 100% { box-shadow: 0 0 0 rgba(224, 71, 58, 0); } 50% { box-shadow: 0 0 10px rgba(224, 71, 58, .35); } }
.seg-wait { color: var(--blue); background: rgba(59, 125, 240, .1); border-color: rgba(59, 125, 240, .35); }
.seg-out, .seg-end { color: var(--text-2); background: var(--card-2); border-color: var(--line-2); }
.seg-none { color: var(--text-3); background: transparent; border-color: var(--line-2); }

/* 不可领取时的按钮（禁用态） */
.game-actions .btn-claim-disabled {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; padding: 9px 6px; font-size: 12px;
  white-space: nowrap; border-radius: 8px; font-weight: bold;
  background: var(--card-2); color: var(--text-3); border: 1px solid var(--line-2);
  cursor: not-allowed;
}
.game-actions .btn-claim-disabled .ic { width: 13px; height: 13px; }

/* 领取成功弹窗 */
.claim-result { text-align: center; }
.cr-game { color: var(--text); font-size: 16px; font-weight: bold; }
.cr-value { font-size: 46px; font-weight: 900; color: var(--gold); margin: 10px 0 2px; }
.cr-value span { font-size: 16px; color: var(--text-2); font-weight: normal; }
.cr-code {
  margin: 6px auto 0; padding: 16px; font-size: 30px; font-weight: 900;
  letter-spacing: 3px; color: var(--gold); font-family: Consolas, monospace;
  background: rgba(212, 160, 23, .1);
  border: 1px dashed var(--gold-2); border-radius: 12px;
  user-select: all;
}

/* ============ 注册码提示 ============ */
.reg-code-tip {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 16px; padding: 12px 15px;
  color: var(--text-2); background: rgba(18, 183, 245, .07);
  border: 1px solid rgba(18, 183, 245, .25); border-radius: 10px;
}
.reg-code-tip .ic { width: 16px; height: 16px; color: #12a7e0; flex-shrink: 0; margin-top: 3px; }
.rct-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rct-main { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--text-2); word-break: break-all; }
.rct-sub { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--text-3); word-break: break-all; }

/* ============ 今日发包大厅 ============ */
.charge-overview {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.co-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.co-title { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 900; color: var(--text); }
.co-title .ic { width: 26px; height: 26px; color: var(--gold-2); }
.co-title span { font-size: 14px; color: var(--text-2); font-weight: normal; margin-left: 4px; }
.co-sub { color: var(--text-2); font-size: 14px; margin-top: 12px; }
.co-stats { display: flex; gap: 12px; flex-shrink: 0; }
.co-stat {
  min-width: 118px; padding: 16px 18px; text-align: center;
  background: var(--card-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 12px;
  transition: transform .2s;
}
.co-stat:hover { transform: translateY(-3px); }
.co-stat .num { font-size: 28px; font-weight: 900; color: var(--gold); }
.co-stat .lab { font-size: 12px; color: var(--text-2); margin-top: 4px; }

.schedule-card {
  background: var(--card-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px; padding: 20px 22px; margin-bottom: 18px;
}
.sc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sc-head img { width: 84px; height: 56px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.sc-info { flex: 1; min-width: 0; }
.sc-info h3 { display: flex; align-items: center; flex-wrap: wrap; font-size: 18px; margin-bottom: 8px; color: var(--text); }
.sc-cat {
  font-size: 12px; font-weight: normal; color: var(--gold);
  border: 1px solid rgba(212, 160, 23, .5); border-radius: 5px;
  background: rgba(212, 160, 23, .07);
  padding: 2px 9px; margin-left: 8px;
}
.sc-meta { display: flex; gap: 22px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.sc-meta b { color: var(--text); }
.sc-meta .sc-remain b { color: var(--red); }

/* 时段时间线 */
.tl-list { display: flex; flex-direction: column; gap: 10px; }
.tl-row {
  display: grid;
  grid-template-columns: 130px 1fr 130px 100px 130px;
  align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--card-2);
  border: 1px solid var(--line); border-radius: 10px;
  transition: .2s;
}
.tl-row:hover { border-color: var(--line-2); }
.tl-row.is-active {
  border-color: rgba(224, 71, 58, .45);
  background: rgba(224, 71, 58, .05);
}
.tl-time { font-size: 14px; font-weight: bold; color: var(--text); white-space: nowrap; }
.tl-bar { height: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.tl-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #f0c24c, #e0612f);
}
.tl-num { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.tl-num b { color: var(--red); font-size: 15px; }
.tl-state {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 12px; text-align: center; white-space: nowrap;
}
.tl-active { color: #d23a2c; background: rgba(224, 71, 58, .1); border: 1px solid rgba(224, 71, 58, .4); }
.tl-wait { color: #2f6fd0; background: rgba(59, 125, 240, .1); border: 1px solid rgba(59, 125, 240, .35); }
.tl-out, .tl-end { color: var(--text-2); background: var(--card-solid); border: 1px solid var(--line-2); }
.tl-btn { text-align: right; }
.tl-btn .btn-sm { padding: 8px 12px; width: 100%; }
.tl-empty { padding: 24px; text-align: center; color: var(--text-2); font-size: 14px; }

/* ================= 游戏编辑弹窗（宽版铺满 + 紧凑） ================= */
/* 上架版本编辑弹窗：固定宽高，不随窗口缩放错乱；窗口小时遮罩可滚动查看 */
.admin-modal.modal-large { overflow: auto; align-items: flex-start; padding: 24px 0; }
.admin-modal.modal-large .modal { width: 1120px; height: 840px; max-width: none; max-height: none; padding: 14px 18px 10px; display: flex; flex-direction: column; flex-shrink: 0; }
.admin-modal.modal-large .modal-head { margin-bottom: 8px; padding: 10px 18px; flex-shrink: 0; }
.admin-modal.modal-large .modal-head h3 { font-size: 15px; letter-spacing: 1px; }
.admin-modal.modal-large .modal-body { overflow-y: auto; height: 100%; max-height: none; padding: 0 2px; flex: 1; }
.admin-modal.modal-large .modal-foot { margin-top: 8px; padding: 8px 18px; flex-shrink: 0; }

/* ===== 上架/编辑游戏弹窗：Tab 分区版（780×640 固定尺寸，结构不随窗口乱） ===== */
.admin-modal.modal-game { overflow: hidden; align-items: center; justify-content: center; padding: 20px; }
.admin-modal.modal-game .modal { width: 780px; height: 660px; max-width: none; max-height: none; padding: 0; display: flex; flex-direction: column; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.admin-modal.modal-game .modal-head { margin-bottom: 0; padding: 15px 22px; flex-shrink: 0; border-bottom: 1px solid var(--a-line); }
.admin-modal.modal-game .modal-head h3 { font-size: 16px; letter-spacing: 1px; }
.admin-modal.modal-game .modal-body { padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.admin-modal.modal-game .modal-foot { margin-top: 0; padding: 11px 22px; flex-shrink: 0; border-top: 1px solid var(--a-line); background: #fafbfd; }

/* Tab 条 */
.gm-tabs { display: flex; gap: 2px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--a-line); flex-shrink: 0; }
.gm-tab { position: relative; padding: 12px 16px; font-size: 13.5px; color: var(--a-text-2); background: none; border: none; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-family: inherit; }
.gm-tab .ic { width: 15px; height: 15px; }
.gm-tab:hover { color: var(--a-navy); }
.gm-tab.on { color: var(--a-red); }
.gm-tab.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; background: var(--a-red); border-radius: 2px; }
/* Tab 面板：各自独立滚动（紧凑：小内边距一屏放下） */
.gm-panes { flex: 1; min-height: 0; overflow: hidden; }
.gm-pane { display: none; height: 100%; overflow-y: auto; padding: 11px 16px; box-sizing: border-box; }
.gm-pane.on { display: block; }
/* 单波/分时段 模式按钮选中态 */
.sp-mode.on { background: var(--a-navy); color: #fff; border-color: var(--a-navy); }
/* 内嵌发包时段编辑器（福利与对接 Tab） */
.seg-editor { border: 1px solid var(--a-line); border-radius: 8px; background: #fff; margin-top: 2px; }
.seg-editor-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  padding: 8px 12px; border-bottom: 1px solid var(--a-line); background: #fafbfd;
}
.seg-editor-head .se-title {
  font-size: 12.5px; font-weight: 600; color: var(--a-text);
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.seg-editor-head .se-title .ic { color: var(--a-navy-3); }
.seg-editor-head input[type="date"] { width: 140px; height: 28px; font-size: 12px; padding: 2px 8px; flex-shrink: 0; }
.seg-editor-head .sp-mode { height: 28px; padding: 0 13px; font-size: 12px; flex-shrink: 0; }
.seg-editor-body { padding: 10px 12px 8px; }
.seg-editor-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.seg-editor-head .seg-editor-tools { margin-bottom: 0; flex-shrink: 0; }
.seg-editor-head .seg-editor-tools .btn-plain { height: 28px; }
.seg-editor-tools .btn-plain { height: 28px; padding: 0 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.seg-editor-note { font-size: 11.5px; color: var(--a-text-3); line-height: 1.6; margin-top: 8px; }
.seg-editor .seg-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 紧凑表单：弹窗内标签/控件/间距整体收小，一屏放下不空旷 */
.admin-modal.modal-game .gm-pane .form-item { margin-bottom: 8px; }
.admin-modal.modal-game .gm-pane .form-item > label { font-size: 12px; margin-bottom: 3px; }
.admin-modal.modal-game .gm-pane .form-item input:not([type="file"]),
.admin-modal.modal-game .gm-pane .form-item select {
  height: 30px; padding: 0 9px; font-size: 12.5px;
}
.admin-modal.modal-game .gm-pane .form-item textarea { padding: 6px 9px; font-size: 12.5px; }
.admin-modal.modal-game .gm-pane .hint { font-size: 11px; }
.admin-modal.modal-game .gm-row-2 { grid-template-columns: 1fr 170px; }
/* 官网地址 + 下载地址 并排；官网压缩包矮条化 */
.admin-modal.modal-game .gm-url-grid { grid-template-columns: 1.4fr 1fr; gap: 0 12px; }
.admin-modal.modal-game .gm-url-grid .form-item { margin-bottom: 0; }
.admin-modal.modal-game .site-upload-area {
  min-height: 42px; display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: 10px; padding: 6px 12px; box-sizing: border-box;
}
.admin-modal.modal-game .site-upload-area .upload-text { font-size: 12.5px; }
.admin-modal.modal-game .site-upload-area .ic { width: 20px; height: 20px; }
.admin-modal.modal-game .site-progress { margin-top: 6px; }
.admin-modal.modal-game .site-url-row { margin-top: 0; }
.admin-modal.modal-game .site-url-row .btn-plain { height: 30px; }
/* 版本 chips 收紧 */
.admin-modal.modal-game .cat-picker { gap: 4px; padding: 5px 8px; }
.admin-modal.modal-game .cat-picker .cat-chip { padding: 2px 8px; font-size: 11.5px; }
.admin-modal.modal-game .cat-custom-input { padding: 0 9px; height: 28px; font-size: 12px; margin-top: 5px; }
/* 网关：IP 自适应 + 端口窄框，数字不再拉满半行 */
.admin-modal.modal-game .gw-ip-port { grid-template-columns: 1fr 120px; }
/* 评分 / 排序：短数字框固定窄宽 */
.admin-modal.modal-game .inline-nums { grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 6px; }
/* 封面区同步收窄 */
.admin-modal.modal-game .cover-desc-grid { grid-template-columns: 150px 1fr; gap: 0 14px; }
.admin-modal.modal-game .cover-stack .cover-upload-area { width: 150px; height: 86px; }
.admin-modal.modal-game .cover-stack input#f_cover { width: 150px; }
.admin-modal.modal-game .cover-stack { gap: 5px; }
.admin-modal.modal-game .cover-stack .cover-upload-area .upload-text { font-size: 11.5px; }
.admin-modal.modal-game .cover-stack .cover-upload-area .upload-hint { font-size: 10.5px; }
/* 简介撑满整列高度 + 评分/排序沉底，与左列图片URL底对齐，消除右下空白 */
.admin-modal.modal-game .cover-desc-grid { align-items: stretch; }
.admin-modal.modal-game .cover-desc-grid > .form-item:nth-child(2) { display: flex; flex-direction: column; }
.admin-modal.modal-game .cover-desc-grid > .form-item:nth-child(2) textarea#f_description { flex: 1 1 auto; min-height: 52px; }
.admin-modal.modal-game .cover-desc-grid .inline-nums { margin-top: auto; padding-top: 6px; }
.admin-modal.modal-game .cover-desc-grid .inline-nums .form-item { margin-bottom: 0; }
/* Tab2 纵向铺满：时段编辑器吃掉剩余高度，消除底部空白；bl31 面板本身不再滚动，
   多时段超出时收在列表区域内部滚动（min-height:0 + overflow 链路） */
.admin-modal.modal-game .gm-pane.on[data-gpane="benefit"] { display: flex; flex-direction: column; overflow: hidden; }
.admin-modal.modal-game .gm-pane[data-gpane="benefit"] .benefit-types { flex: none; }
.admin-modal.modal-game .gm-pane[data-gpane="benefit"] .gw-config { flex: none; }
.admin-modal.modal-game .gm-pane[data-gpane="benefit"] .seg-editor { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.admin-modal.modal-game .gm-pane[data-gpane="benefit"] .seg-editor-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.admin-modal.modal-game .gm-pane[data-gpane="benefit"] .seg-editor-body #gmSegSingleBox { flex: none; }
.admin-modal.modal-game .gm-pane[data-gpane="benefit"] .seg-editor-body #gmSegMultiBox { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; padding-right: 3px; }
.admin-modal.modal-game .gm-pane[data-gpane="benefit"] .seg-editor-note { flex: none; margin-top: 8px; }
/* 福利类型 pills 紧凑 */
.admin-modal.modal-game .benefit-types { gap: 6px; margin-bottom: 8px; }
.admin-modal.modal-game .bt-pill { padding: 8px 6px; }
.admin-modal.modal-game .bt-pill .ic { width: 16px; height: 16px; }
.admin-modal.modal-game .bt-pill .bt-label { font-size: 12.5px; }
/* 网关配置卡收紧 */
.admin-modal.modal-game .gw-config { padding: 10px 12px; }

/* 基础信息：封面 + 简介 两列 */
.admin-modal .cover-desc-grid { grid-template-columns: 240px 1fr; gap: 0 18px; }
.admin-modal .cover-stack { display: flex; flex-direction: column; gap: 6px; }
.admin-modal .cover-stack .cover-upload-area { width: 220px; height: 130px; flex: none; }
.admin-modal .cover-stack input#f_cover { width: 220px; height: 32px; font-size: 12px; }
.admin-modal .inline-nums { margin-top: 8px; }
.admin-modal .inline-nums .form-item { margin-bottom: 0; }

/* ----- 分组合叠卡片（直角细边，展开态浅藏青头，不用金色渐变） ----- */
.acc-card {
  border: 1px solid #d6dbe4; border-radius: 0; background: #fff;
  margin-bottom: 8px; overflow: hidden;
}
.acc-head {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; cursor: pointer;
  background: #f6f8fb;
  border-bottom: 1px solid #d6dbe4;
  user-select: none;
}
.acc-card.acc-open .acc-head { background: #eef3f9; border-bottom-color: #b6c6da; }
.acc-ico {
  width: 24px; height: 24px; border-radius: 50%;
  background: #d8def0; color: #4a5578; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.acc-card.acc-open .acc-ico { background: #1e3a5f; color: #fff; }
.acc-title { font-weight: 600; font-size: 14px; color: #2b3440; flex: 1; }
.acc-arrow { color: #98a1af; transition: transform .25s; display: inline-flex; }
.acc-arrow .ic { width: 17px; height: 17px; }
.acc-card.acc-open .acc-arrow { transform: rotate(180deg); color: #1e3a5f; }
.acc-body { padding: 10px 13px 12px; }

/* ----- 福利药丸按钮（4等分铺满一行） ----- */
.benefit-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 9px; }
.bt-pill {
  min-width: 0; max-width: none;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 8px; border: 1px solid #cfd5e0;
  border-radius: 2px; cursor: pointer; background: #fafbfe;
  transition: all .15s; text-align: center;
}
.bt-pill .ic { width: 19px; height: 19px; color: #8a90a6; }
.bt-pill:hover { border-color: #9db0c8; background: #f3f6fa; }
.bt-pill.bt-on {
  border-color: #1e3a5f; background: #eef3f9;
  box-shadow: none;
}
.bt-pill.bt-on .ic { color: #1e3a5f; }
.bt-pill.bt-on .bt-label { color: #1e3a5f; font-weight: 600; }
.bt-pill input { display: none; }
.bt-emoji { font-size: 18px; }
.bt-label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #4d5666; line-height: 1.35; }

/* 无福利/刀刀货币 时隐藏网关的说明提示条（中性蓝灰，行政提示样式） */
.bt-none-tip {
  display: flex; align-items: flex-start; gap: 7px;
  margin-bottom: 9px; padding: 8px 12px;
  background: #eef3f9; border: 1px solid #b6c6da; border-radius: 0;
  font-size: 12.5px; color: #2f4a70; line-height: 1.7;
}
.bt-none-tip .ic { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; color: #2f5a96; }
.bt-none-tip b { color: #1e3a5f; }

/* ----- 上传区域（直角虚线框，悬停/拖入藏青高亮） ----- */
.upload-area {
  position: relative;
  border: 1px dashed #b9c2d0;
  border-radius: 0;
  background: #fafbfe;
  margin-top: 4px;
  min-height: 96px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  text-align: center;
  overflow: hidden;
  transition: all .18s;
  color: #98a1af;
}
.upload-area .ic { width: 34px; height: 34px; }
.upload-area:hover {
  border-color: #2f5a96;
  background: #eef3f9; color: #1e3a5f;
}
.upload-area.drag-hot {
  border-color: #2f5a96; background: #eef3f9;
  box-shadow: inset 0 0 0 1px rgba(47, 90, 150, .3);
}
.upload-area input[type="file"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 1;
}
.upload-area input[type="file"]:disabled { cursor: wait; }
.upload-text { color: #5d6378; font-size: 14px; position: relative; z-index: 0; display: flex; align-items: center; gap: 7px; }
.upload-text .ic { width: 17px; height: 17px; color: #9aa0b5; }
.upload-hint { color: #9aa0b5; font-size: 12px; position: relative; z-index: 0; }
.site-upload-area { min-height: 74px; }

.cover-preview-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: contain; background: #fff;
  display: none;
}
.upload-area.has-file .upload-text,
.upload-area.has-file .upload-hint,
.upload-area.has-file > .ic { display: none; }
.upload-clear {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px;
  border-radius: 50%; border: 0; background: rgba(30, 34, 53, .72); color: #fff;
  cursor: pointer;
}
.upload-clear:hover { background: rgba(220, 70, 70, .92); }
.upload-clear .ic { width: 14px; height: 14px; }

/* ----- 网关配置 ----- */
.gw-config {
  margin-top: 9px; padding: 11px 12px;
  background: linear-gradient(135deg, #f2f7ff, #eef1f9);
  border: 1px solid #d6def0; border-radius: 10px;
}
.gw-title {
  font-size: 12px; font-weight: 600; color: #4a6aa8;
  margin-bottom: 8px; letter-spacing: .3px;
}
.path-row { display: flex; gap: 8px; }
.path-row input { flex: 1; }
.path-row .btn-plain { padding: 0 14px; white-space: nowrap; }
.path-test-msg { margin-top: 6px; font-size: 12px; }

.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; }
@media (max-width: 700px) { .form-grid-3 { grid-template-columns: 1fr; } }

.hint { color: #9aa0b5; font-size: 12px; font-weight: normal; }

.site-url-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.site-url-row input { flex: 1; }
.site-url-row .btn-plain { padding: 0 12px; white-space: nowrap; height: 34px; }
.site-progress {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
}
.site-progress-track {
  flex: 1; height: 8px; background: #eef0f7; border-radius: 4px; overflow: hidden;
}
.site-progress-bar {
  height: 100%; width: 0%;
  background: #2f5a96;
  transition: width .2s;
}
.site-progress span { font-size: 12px; color: #2f4a70; min-width: 42px; text-align: right; }

.html-edit-tip {
  font-size: 12px; color: #4a6aa8;
  background: #f2f7ff; border: 1px solid #d6def0; border-radius: 9px;
  padding: 10px 12px; margin-bottom: 10px; line-height: 1.7;
}
.html-edit-tip code {
  background: #e4ebf8; padding: 1px 6px; border-radius: 4px; font-size: 12px;
}
/* 领取限制说明条（用户中心/领取页） */
.claim-limit-tip {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: #5a6f8f;
  background: #f3f7fc; border: 1px solid #d8e2f0; border-radius: 9px;
  padding: 9px 12px; margin-bottom: 14px; line-height: 1.7;
}
.claim-limit-tip .ic { width: 15px; height: 15px; color: #3b6ef0; flex-shrink: 0; margin-top: 1px; }
.claim-limit-tip b { color: #1e3a5f; }
/* ---- 源码编辑器：查找/替换工具条 + 高亮层 ---- */
.src-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 10px;
  background: #f7f9fd; border: 1px solid #d9dce6; border-radius: 9px;
}
.src-input {
  width: 190px; height: 32px; padding: 0 10px;
  border: 1px solid #d9dce6; border-radius: 7px;
  font-size: 13px; color: #33405e; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.src-input:focus { border-color: #2f5a96; box-shadow: 0 0 0 3px rgba(47, 90, 150, .12); }
.src-count { min-width: 46px; text-align: center; font-size: 12px; color: #7a86a3; font-weight: bold; }
.src-ck {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: #4a5578; cursor: pointer; user-select: none;
}
.src-ck input { accent-color: #d19a1b; width: 14px; height: 14px; cursor: pointer; }
.src-wrap {
  position: relative; height: 56vh; min-height: 420px;
  border: 1px solid #d9dce6; border-radius: 9px; overflow: hidden; background: #f7f9fd;
}
.src-hl, .html-source {
  position: absolute; inset: 0; margin: 0; padding: 12px 14px;
  font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; line-height: 20px;
  white-space: pre; tab-size: 2; word-break: normal; overflow-wrap: normal;
}
.src-hl { overflow: hidden; pointer-events: none; color: #33405e; z-index: 0; }
.src-hl .hl-href {
  color: #0b7ec2; background: rgba(11, 126, 194, .13);
  border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(11, 126, 194, .2);
}
.src-hl .hl-match { background: rgba(240, 194, 76, .45); border-radius: 3px; }
.src-hl .hl-match.on { background: #f0b429; color: #4a3803; box-shadow: 0 0 0 2px rgba(224, 169, 43, .55); }
.html-source {
  z-index: 1; width: 100%; height: 100%; resize: none;
  background: transparent; color: transparent; caret-color: #1e3a5f;
  border: 0; outline: none; overflow: auto; display: block;
}
.html-source::selection { background: rgba(47, 90, 150, .25); }
.ic-up { transform: rotate(180deg); }

/* ---- 批量补发充值弹窗 ---- */
/* 常用金额快捷按钮 */
.ri-amt-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ri-amt-quick button {
  padding: 4px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card-2, #f7f8fc); color: var(--text); font-size: 13px;
  cursor: pointer; transition: all .15s; line-height: 1.5;
}
.ri-amt-quick button:hover {
  border-color: var(--gold); color: var(--gold);
  background: transparent; font-weight: 600;
}
.ri-summary {
  padding: 9px 12px; font-size: 13px; margin-bottom: 8px;
  background: #e8f7ee; color: #1e7a45; border: 1px solid #bfe8cf;
}
.ri-summary.has-fail { background: #fdeeed; color: #b03428; border-color: #f3c4be; }
.ri-list {
  max-height: 220px; overflow: auto;
  border: 1px solid #d6dbe4; background: #fff;
}
.ri-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 12.5px; border-bottom: 1px solid #edf0f6;
}
.ri-row:last-child { border-bottom: 0; }
.ri-row .ri-ico { display: inline-flex; flex: none; }
.ri-row.ok .ri-ico { color: #27ae60; }
.ri-row.bad .ri-ico { color: #e0473a; }
.ri-row .ri-acc { font-weight: bold; color: #2c2f38; min-width: 100px; overflow-wrap: anywhere; }
.ri-row .ri-msg { color: #7a86a3; flex: 1; overflow-wrap: anywhere; }

/* ==================== 左侧悬浮专区导航 ==================== */
.zone-float {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
  z-index: 850; display: flex; flex-direction: column;
  background: var(--card-solid, rgba(255,255,255,.94));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 14px 36px rgba(58,68,105,.18);
  padding: 9px; gap: 3px;
  animation: zfIn .45s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes zfIn { from { opacity: 0; transform: translateY(-50%) translateX(-18px); } to { opacity: 1; transform: translateY(-50%); } }
.zf-btn {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px 9px 11px; border-radius: 12px;
  text-decoration: none; color: var(--text-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.zf-btn .zf-ic { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--text-3); flex-shrink: 0; transition: color .18s ease, transform .18s ease; }
.zf-btn .zf-ic .ic { width: 21px; height: 21px; }
.zf-btn:hover { background: var(--card-2); color: var(--gold); transform: translateX(3px); }
.zf-btn:hover .zf-ic { color: var(--gold); transform: scale(1.12); }
.zf-btn.on {
  color: var(--gold);
  background: linear-gradient(135deg, rgba(247,217,138,.55), rgba(227,169,43,.22));
  box-shadow: inset 0 0 0 1px rgba(212,160,23,.45), 0 4px 12px rgba(212,160,23,.18);
}
.zf-btn.on .zf-ic { color: var(--gold); }
.zf-btn.on::before {
  content: ''; position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f7d98a, #e3a92b);
}
.zf-split { height: 1px; margin: 3px 12px; background: var(--line); }
/* 悬浮组·人气排行榜按钮：金色渐变 + 呼吸光晕，显眼引导直达排行榜 */
.zf-btn.zf-rank {
  margin-top: 2px;
  background: linear-gradient(135deg, #fbe6a8, #eec254);
  color: #6e4d05;
  box-shadow: 0 3px 10px rgba(212,160,23,.35), inset 0 0 0 1px rgba(255,255,255,.4);
  animation: zfRankPulse 2.6s ease-in-out infinite;
}
.zf-btn.zf-rank .zf-ic { color: #8a6208; }
.zf-btn.zf-rank:hover {
  background: linear-gradient(135deg, #fdf0c6, #f3cd66);
  color: #573d03;
  box-shadow: 0 6px 16px rgba(212,160,23,.5), inset 0 0 0 1px rgba(255,255,255,.5);
}
.zf-btn.zf-rank:hover .zf-ic { color: #6e4d05; transform: scale(1.14) rotate(-6deg); }
.zf-btn.zf-rank.on {
  background: linear-gradient(135deg, #f3cd66, #e3a92b);
  color: #573d03;
  box-shadow: 0 4px 14px rgba(212,160,23,.55), inset 0 0 0 1px rgba(255,255,255,.45);
}
@keyframes zfRankPulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(212,160,23,.35), inset 0 0 0 1px rgba(255,255,255,.4); }
  50% { box-shadow: 0 4px 18px rgba(227,169,43,.6), inset 0 0 0 1px rgba(255,255,255,.5); }
}
@media (max-width: 1360px) {
  .zone-float { left: 8px; padding: 7px; border-radius: 15px; }
  .zf-btn { padding: 8px; justify-content: center; }
  .zf-tx { display: none; }
  .zf-split { margin: 3px 6px; }
  .zf-btn.on::before { left: -7px; }
}

/* ==================== 首页四区 ==================== */
.zone { margin-bottom: 48px; }
.zone-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.zone-titles h2 {
  margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 11px; letter-spacing: .5px;
}
.zone-titles p { margin: 0; font-size: 13px; color: var(--text-2); }
.zone-count {
  flex: none; font-size: 13px; color: var(--text-2);
  background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 20px; padding: 5px 15px;
}
/* 四区标题图标方块 */
.zone-crown, .zone-gift-ico, .zone-gold-ico, .zone-red-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: 0 4px 13px rgba(120, 90, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .25s ease;
}
.zone-head:hover .zone-crown,
.zone-head:hover .zone-gift-ico,
.zone-head:hover .zone-gold-ico,
.zone-head:hover .zone-red-ico { transform: rotate(-6deg) scale(1.06); }
.zone-crown, .zh-boutique .zone-crown {
  background: linear-gradient(145deg, #f7dd8e, #e0a326); color: #5e3f00;
}
.zh-gift .zone-gift-ico {
  background: linear-gradient(145deg, #ff7163, #d33a2c); color: #fff;
  box-shadow: 0 4px 13px rgba(224, 71, 58, .3);
}
.zh-red .zone-red-ico {
  background: linear-gradient(145deg, #ff5a4c, #c6281c); color: #fff;
  box-shadow: 0 4px 13px rgba(198, 40, 28, .35);
}
.zh-gold .zone-gold-ico {
  background: linear-gradient(145deg, #33cebb, #0f9487); color: #fff;
  box-shadow: 0 4px 13px rgba(15, 148, 135, .3);
}
.zone-crown .ic, .zone-gift-ico .ic, .zone-gold-ico .ic, .zone-red-ico .ic { width: 20px; height: 20px; }
.zh-boutique h2 { color: #a9770a; }
.zh-red h2 { color: #c6281c; }
.zh-gold h2 { color: #0c8a7e; }

/* 精品卡片 */
.game-card.is-boutique {
  border-color: rgba(212, 160, 23, .55);
  box-shadow: 0 8px 26px rgba(120, 90, 30, .12), 0 0 0 1px rgba(212, 160, 23, .12);
}
.game-card.is-boutique .game-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(240, 194, 76, .18), transparent 38%);
}

/* 红包卡片 */
.game-card.is-red { border-color: rgba(224, 71, 58, .38); }
.game-card.is-red:hover {
  border-color: rgba(255, 90, 76, .6);
  box-shadow: 0 18px 44px rgba(198, 40, 28, .16), 0 0 0 1px rgba(255, 90, 76, .22);
}

/* 刀刀货币卡片 */
.game-card.is-gold { border-color: rgba(15, 148, 135, .4); }
.game-card.is-gold:hover {
  border-color: rgba(18, 181, 165, .6);
  box-shadow: 0 18px 44px rgba(15, 120, 110, .16), 0 0 0 1px rgba(18, 181, 165, .2);
}
.gold-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #12b5a5; margin-right: 7px; vertical-align: 1px;
  box-shadow: 0 0 6px rgba(18, 181, 165, .7);
}

/* ==================== 后台：精品勾选 & 列表小标 ==================== */
.boutique-check { display: flex !important; align-items: flex-start; gap: 9px; cursor: pointer; }
.boutique-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: #1e3a5f; flex: none; }
.boutique-check span { font-size: 13.5px; color: #4d5666; line-height: 1.6; }
.bq-mini {
  display: inline-block; padding: 2px 8px; margin-left: 4px;
  font-size: 11px; font-weight: bold;
  background: #1e3a5f; color: #fff;
}

/* ==================== 玩家社区聊天页 ==================== */
.chat-hero { padding: 34px 0 0; }
.chat-hero .ch-inner { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.chat-hero .ch-ico {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(212, 160, 23, .35);
}
.chat-hero .ch-ico .ic { width: 28px; height: 28px; }
.chat-hero .ch-text h1 { font-size: 26px; color: var(--text); margin-bottom: 4px; }
.chat-hero .ch-text p { font-size: 13.5px; color: var(--text-2); }
.chat-hero .chat-rules {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
  background: rgba(224, 71, 58, .07); border: 1px dashed rgba(224, 71, 58, .45);
  border-radius: 10px; padding: 11px 14px; margin-bottom: 22px;
}
.chat-hero .chat-rules .ic { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.chat-hero .chat-rules b { color: var(--red); }
.chat-hero .chat-rules b.red { color: var(--red); }

.chat-panel {
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.chat-list {
  height: 500px; overflow-y: auto; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.chat-list::-webkit-scrollbar { width: 8px; }
.chat-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.chat-loading, .chat-empty {
  text-align: center; color: var(--text-3); font-size: 13.5px; padding: 40px 0;
}
.chat-empty .ic { width: 34px; height: 34px; display: block; margin: 0 auto 10px; opacity: .5; }
.chat-load-err { text-align: center; padding: 60px 20px; color: var(--text-2); }
.chat-load-err .ic { width: 36px; height: 36px; color: var(--gold); margin-bottom: 12px; }
.chat-load-err p { font-size: 14.5px; margin-bottom: 6px; color: var(--text); }
.chat-load-err .cle-sub { font-size: 12.5px !important; color: var(--text-3) !important; margin-bottom: 16px !important; }
.chat-load-err .btn { margin: 0 auto; }

.chat-msg { display: flex; gap: 11px; }
.chat-msg .c-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-grad); color: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 16px; user-select: none;
}
.chat-msg .c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-bubble {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px; padding: 9px 14px 10px;
  max-width: 78%; min-width: 0;
}
.chat-msg.is-me .chat-bubble {
  background: rgba(212, 160, 23, .09); border-color: rgba(212, 160, 23, .32);
}
.chat-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.chat-nick { font-size: 13.5px; font-weight: 600; color: var(--gold); }
.chat-msg.is-me .chat-nick { color: var(--gold-2); }
.chat-head .lv-badge .lv-ic { width: 16px; height: 16px; }
.chat-time { font-size: 11.5px; color: var(--text-3); }
.chat-content {
  margin-top: 4px; font-size: 14.5px; line-height: 1.7;
  color: var(--text); word-break: break-word; white-space: pre-wrap;
}
.chat-more-wrap { text-align: center; padding: 4px 0 10px; }

.chat-composer { border-top: 1px solid var(--line); background: var(--card-2); }
.composer-inner { display: flex; align-items: flex-end; gap: 11px; padding: 14px 18px; }
.composer-inner .c-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-grad); color: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 15px;
}
.composer-inner .c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.composer-inner textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--input-bg); color: var(--text); font-size: 14px;
  padding: 10px 13px; line-height: 1.6; font-family: inherit; min-height: 46px;
}
.composer-inner textarea:focus { outline: none; border-color: var(--gold-2); background: var(--card-solid); }
.composer-inner .btn { flex-shrink: 0; height: 46px; }
.composer-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.composer-guest {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 18px; font-size: 13.5px; color: var(--text-2);
}

/* ============ 后台：版本分类多选 chips ============ */
.cat-picker {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px; border: 1px dashed var(--line-2); border-radius: 9px;
  background: var(--input-bg);
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 13px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: var(--card-solid); color: var(--text-2);
  border: 1px solid var(--line-2); transition: all .15s ease;
}
.cat-chip:hover { border-color: var(--gold-2); color: var(--gold); }
.cat-chip.on {
  background: var(--gold-grad); color: #5e3f00; border-color: transparent;
  font-weight: bold; box-shadow: 0 2px 7px rgba(190, 140, 20, .32);
}
.cat-chip .ic { width: 11px; height: 11px; opacity: .7; }
.cat-chip.is-custom .ic:hover { opacity: 1; }
.cat-custom-input {
  width: 100%; margin-top: 8px; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--input-bg); color: var(--text); font-size: 13px;
}
.cat-custom-input:focus { outline: none; border-color: var(--gold-2); }

/* ============ 用户中心：资料页内联编辑 ============ */
.profile-edit-title {
  margin: 26px 0 14px; padding-top: 20px;
  font-size: 15px; color: var(--text);
  border-top: 1px dashed var(--line-2);
}
.profile-edit-form .btn { margin-top: 4px; }

/* ============ 游戏攻略聚合页 ============ */
.page-main { padding: 42px 0 70px; min-height: 60vh; }
.gl-head { margin-bottom: 28px; }
.gl-head h1 {
  font-size: 30px; color: var(--text);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 8px;
}
.gl-head p { font-size: 14px; color: var(--text-2); }
.gl-empty {
  flex-direction: column; align-items: center; gap: 14px;
  padding: 80px 0; color: var(--text-2);
}
.gl-empty[style*="flex"] { display: flex; }
.gl-empty .gl-empty-ico { font-size: 48px; }
.gl-empty .btn { padding: 10px 34px; }
.gl-no-desc { color: var(--text-3); }
.composer-guest .ic { width: 17px; height: 17px; color: var(--gold); }

/* ==================== 用户中心：头像上传 + 积分中心 ==================== */
.avatar-upload { display: flex; align-items: center; gap: 16px; padding: 4px 0 18px; border-bottom: 1px dashed var(--line-2); margin-bottom: 6px; }
.avatar-upload .au-preview {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 24px; user-select: none;
  box-shadow: 0 4px 14px rgba(212, 160, 23, .3);
}
.avatar-upload .au-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload .au-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.avatar-upload .au-tip { font-size: 12.5px; color: var(--text-2); margin-bottom: 9px; }
.avatar-upload .au-btn { position: relative; cursor: pointer; }
.avatar-upload .au-btn.disabled { opacity: .55; pointer-events: none; }

.pts-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.pts-card {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; text-align: center;
}
.pts-card .pc-num { font-size: 30px; font-weight: bold; color: var(--text); line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pts-card .pc-num.gold { color: var(--gold); }
.pts-card .pc-lab { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.pts-card .pc-sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

.pts-exchange { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.pts-exchange h3 { font-size: 15.5px; color: var(--text); margin-bottom: 8px; }
.pts-note { font-size: 12.5px; line-height: 1.75; color: var(--text-2); background: rgba(224, 71, 58, .06); border: 1px dashed rgba(224, 71, 58, .4); border-radius: 9px; padding: 9px 12px; margin-bottom: 15px; }
.pts-note b { color: #d23a2c; }
.pts-exchange .pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
/* 自定义金额兑换：左输入右积分消耗 */
.pe-custom { display: grid; grid-template-columns: 1.25fr .85fr; gap: 14px; align-items: stretch; }
.pe-amount-box { margin: 0; }
.pe-input-wrap { position: relative; }
.pe-input-wrap input {
  width: 100%; height: 46px; padding: 0 52px 0 14px;
  font-size: 19px; font-weight: 700; color: var(--text);
  border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--card-solid);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pe-input-wrap input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,160,23,.13); outline: none; }
.pe-input-wrap input::-webkit-outer-spin-button,
.pe-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pe-input-wrap input[type=number] { -moz-appearance: textfield; }
.pe-unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; font-weight: 600; color: var(--text-2); pointer-events: none;
}
.pe-range-hint { font-size: 12px; color: var(--text-3); margin-top: 7px; }
.pe-cost-box {
  border: 1.5px solid var(--gold-2); border-radius: 11px;
  background: linear-gradient(160deg, rgba(212,160,23,.1), rgba(212,160,23,.03));
  padding: 10px 16px; display: flex; flex-direction: column; justify-content: center;
}
.pe-cost-box .pcl-lab { font-size: 12.5px; color: var(--text-2); }
.pe-cost-box .pcl-num { display: flex; align-items: baseline; gap: 4px; margin: 2px 0; }
.pe-cost-box .pcl-num b { font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.pe-cost-box .pcl-num i { font-style: normal; font-size: 13px; color: var(--text-2); }
.pe-cost-box .pcl-sub { font-size: 11.5px; color: var(--text-3); }
.pe-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; gap: 12px; }
.pe-foot .pe-cost { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 720px) { .pe-custom { grid-template-columns: 1fr; } }
.pts-records-title { font-size: 15.5px; color: var(--text); margin: 24px 0 12px; }

/* ==================== 建议投诉页 ==================== */
.feedback-layout { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.fb-panel { padding: 22px 24px; }
.fb-panel h2 { font-size: 17px; color: var(--text); margin: 0 0 16px; }
.fb-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fb-type { cursor: pointer; }
.fb-type input { position: absolute; opacity: 0; pointer-events: none; }
.ft-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card-solid);
  padding: 13px 8px 11px; text-align: center; transition: all .15s ease;
}
.ft-card .ic { width: 24px; height: 24px; color: var(--text-3); transition: color .15s ease; }
.ft-card b { font-size: 13.5px; color: var(--text); }
.ft-card i { font-style: normal; font-size: 11px; color: var(--text-3); line-height: 1.4; }
.fb-type:hover .ft-card { border-color: var(--gold-2); }
.fb-type input:checked + .ft-card {
  border-color: var(--gold-2); background: rgba(212, 160, 23, .1);
  box-shadow: 0 4px 12px rgba(212, 160, 23, .16);
}
.fb-type input:checked + .ft-card .ic,
.fb-type input:checked + .ft-card b { color: var(--gold); }
.fb-panel textarea { width: 100%; resize: vertical; }
.fb-count { text-align: right; font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.fb-warn {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; line-height: 1.7; color: var(--red);
  background: rgba(224, 71, 58, .06); border: 1px dashed rgba(224, 71, 58, .4);
  border-radius: 9px; padding: 9px 12px; margin: 4px 0 14px;
}
.fb-warn .ic { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
#fbSubmit { width: 100%; justify-content: center; }
/* 右侧记录 */
.fb-my-list { display: flex; flex-direction: column; gap: 12px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.fb-login-tip {
  text-align: center; padding: 40px 16px; color: var(--text-2); font-size: 13.5px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fb-login-tip .ic { width: 34px; height: 34px; color: var(--gold); }
.fb-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 36px 0; }
.fb-item { border: 1px solid var(--line); border-radius: 11px; background: var(--card-2); padding: 12px 14px; }
.fbi-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.fbi-type { font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #4f8cff, #2f6be8); border-radius: 6px; padding: 2px 8px; }
.fbi-game { font-size: 11.5px; color: var(--text-2); background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; }
.fbi-time { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.fbi-content { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.fbi-reply {
  margin-top: 9px; border-radius: 9px; padding: 9px 11px;
  background: rgba(30, 138, 82, .07); border: 1px solid rgba(30, 138, 82, .25);
}
.fir-lab { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #1e8a52; }
body:not(.admin-body) .fir-lab { color: var(--green); }
.fir-lab .ic { width: 14px; height: 14px; }
.fbi-reply p { margin: 5px 0 0; font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.fbi-pending { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.fb-st { font-size: 11.5px; border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.fb-st-wait { color: #2f5a96; background: rgba(47, 90, 150, .1); }
.fb-st-ok { color: #1e8a52; background: rgba(30, 138, 82, .1); }
.fb-st-end { color: var(--text-3); background: var(--card-solid); }
/* 前台反馈记录：状态字跟随主题（暗色下更亮） */
body:not(.admin-body) .fb-st-wait { color: var(--blue); }
body:not(.admin-body) .fb-st-ok { color: var(--green); }
@media (max-width: 1100px) { .feedback-layout { grid-template-columns: 1fr; } .fb-my-list { max-height: none; } }
/* 后台投诉建议管理 */
.fb-admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.fb-admin-filters select, .fb-admin-filters input { height: 34px; border: 1px solid var(--line-2); padding: 0 10px; font-size: 13px; background: var(--card-solid); color: var(--text); }
.fb-admin-item { border: 1px solid var(--line); padding: 13px 16px; margin-bottom: 10px; background: var(--card-solid); }
.fb-admin-item.is-pending { border-left: 3px solid #1e3a5f; }
.fbai-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
.fbai-meta b { color: var(--text); }
.fbai-content { font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.fbai-reply-row { display: flex; gap: 8px; margin-top: 10px; }
.fbai-reply-row textarea { flex: 1; min-height: 56px; border: 1px solid var(--line-2); padding: 8px 10px; font-size: 13px; resize: vertical; background: var(--card-2); color: var(--text); }
.fbai-actions { display: flex; gap: 6px; margin-top: 8px; }

/* 仪表盘：待处理投诉提示条 / 菜单角标 / 双柱趋势图 / 子后台权限隐藏 */
.dash-fb-alert {
  display: flex; align-items: center; gap: 8px;
  background: #f7eceb;
  border: 1px solid #d9b3ae;
  padding: 10px 16px; margin-bottom: 16px; font-size: 13.5px; color: #a33427;
}
.dash-fb-alert .ic { width: 18px; height: 18px; color: #c0392b; }
.dash-fb-alert a { margin-left: auto; color: #fff; background: #1e3a5f; padding: 4px 14px; font-size: 13px; font-weight: 600; }
.dash-fb-alert a:hover { background: #274a73; }
.admin-menu a { position: relative; }
.menu-badge {
  margin-left: 6px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px;
  text-align: center; font-size: 11px; font-weight: 700; font-style: normal;
  background: #c0392b; color: #fff;
}
.trend-legend { display: flex; gap: 18px; font-size: 12px; color: var(--text-3); margin: -6px 0 8px; }
.trend-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.trend-legend .lg-reg { background: #2f5a96; }
.trend-legend .lg-claim { background: #c0392b; }
.chart-dual .bar-pair { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.chart-dual .bar { width: 13px; }
.chart-dual .bar-reg { background: #2f5a96; }
.chart-dual .bar-claim { background: #c0392b; }
body.admin-sub .master-only { display: none !important; }

/* 注册页短信验证码行 */
.form-sms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sms-input-row { display: flex; gap: 8px; }
.sms-input-row input { flex: 1; min-width: 0; }
.btn-sms {
  flex: none; border: 1.5px solid var(--gold-2); background: rgba(212,160,23,.08);
  color: var(--gold); border-radius: 10px; padding: 0 14px; font-size: 13px;
  font-weight: 600; cursor: pointer; white-space: nowrap; height: 44px;
}
.btn-sms:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 560px) { .form-sms { grid-template-columns: 1fr; gap: 0; } }

/* ===================== 社区：三分区 Tab + 开放状态 ===================== */
.cm-tabs {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.cm-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 11px;
  background: var(--card-solid); border: 1px solid var(--line);
  color: var(--text-2); font-size: 14px; font-weight: 600;
  transition: all .18s ease;
}
.cm-tab:hover { border-color: var(--gold-2); color: var(--gold); transform: translateY(-1px); }
.cm-tab.active {
  background: linear-gradient(180deg, #f7d98a, #e3a92b);
  border-color: rgba(212, 160, 23, .55); color: #5e3f00;
  box-shadow: 0 6px 16px rgba(212, 160, 23, .3);
}
.cm-tab .cmt-ico .ic { width: 16px; height: 16px; }
.cm-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 20px;
}
.cm-status .ic { width: 14px; height: 14px; }
.cm-status.st-on { color: var(--green); background: rgba(40, 160, 95, .1); border: 1px solid rgba(40, 160, 95, .25); }
.cm-status.st-off { color: var(--gold); background: rgba(212, 160, 23, .12); border: 1px solid rgba(212, 160, 23, .35); }
.cm-closed-bar {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px; padding: 11px 18px; border-radius: 12px;
  font-size: 13.5px; color: var(--gold);
  background: linear-gradient(90deg, rgba(212,160,23,.16), rgba(212,160,23,.06));
  border: 1px solid rgba(212, 160, 23, .38);
}
.cm-closed-bar .ic { width: 17px; height: 17px; color: var(--gold); flex: none; }
.cm-pane { min-height: 400px; }

/* ===================== 管理员标识 / 管理工具条 ===================== */
/* 顶部导航未读角标（锚点相对链接定位，不影响金色滑块） */
header nav a { position: relative; }
.nav-cm-badge {
  position: absolute; top: -7px; right: -14px; z-index: 2;
  min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box;
  background: linear-gradient(180deg, #e0544b, #b3261e); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  border-radius: 9px; box-shadow: 0 2px 5px rgba(179, 38, 30, .4);
  pointer-events: none;
}
.cm-admin-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: #fff; padding: 2px 9px; border-radius: 4px;
  background: linear-gradient(180deg, #e0544b, #b3261e);
  box-shadow: 0 2px 6px rgba(179, 38, 30, .35);
  border: 1px solid rgba(255, 255, 255, .25);
}
/* 管理员头像金色描边 */
.c-avatar-admin { box-shadow: 0 0 0 2px #d4a017, 0 2px 6px rgba(212, 160, 23, .45); border-radius: 50%; }
.chat-msg.is-admin .chat-bubble { border: 1px solid rgba(212, 160, 23, .4); }
/* 电脑后台社区管理：管理员常驻发言条（与聊天窗口一致，随时直接沟通，非公告弹窗） */
.cm-admin-chatbar {
  display: flex; align-items: flex-end; gap: 10px;
  margin-bottom: 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--line-2);
}
.cm-admin-chatbar .cm-admin-badge { flex-shrink: 0; margin-bottom: 8px; }
.cm-admin-chatbar textarea {
  flex: 1; resize: none; min-height: 38px; max-height: 96px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--card-solid); color: var(--text);
  font-size: 14px; font-family: inherit; line-height: 1.5; padding: 8px 12px;
}
.cm-admin-chatbar textarea:focus { outline: none; border-color: var(--gold-2); }
.cm-admin-chatbar .btn { flex-shrink: 0; height: 38px; }
.cm-admin-chatbar .btn .ic { width: 15px; height: 15px; }
.cm-admin-chatbar .btn:disabled { opacity: .6; cursor: default; }
/* 论坛新内容提示条 */
.forum-new-bar {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-bottom: 12px; padding: 9px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--gold);
  background: linear-gradient(90deg, rgba(212, 160, 23, .14), rgba(212, 160, 23, .05));
  border: 1px solid rgba(212, 160, 23, .4);
}
.forum-new-bar:hover { background: rgba(212, 160, 23, .2); }
.forum-new-bar .ic { width: 15px; height: 15px; }

/* ===================== 论坛：帖子 / 交易列表 ===================== */
.forum-panel {
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 18px 20px;
}
.forum-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fh-title { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.forum-list { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.forum-more-wrap { text-align: center; margin-top: 14px; }
.fp-item {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; background: var(--card-2);
  cursor: pointer; transition: all .16s ease;
}
.fp-item:hover {
  border-color: rgba(212, 160, 23, .5); background: var(--card-solid);
  box-shadow: 0 8px 22px rgba(58, 68, 105, .1); transform: translateY(-1px);
}
.fp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.fp-badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; color: #fff;
  padding: 2px 9px; border-radius: 6px; letter-spacing: 1px;
}
.fp-badge-post { background: linear-gradient(180deg, #8a7cff, #5b6fe0); box-shadow: 0 3px 9px rgba(91, 111, 224, .35); }
.fp-badge-trade { background: linear-gradient(180deg, #ff9066, #f0522b); box-shadow: 0 3px 9px rgba(240, 82, 43, .35); }
.fp-game {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--teal); background: rgba(18, 181, 165, .1);
  border: 1px solid rgba(18, 181, 165, .28); border-radius: 6px; padding: 1px 8px;
}
.fp-game .ic { width: 13px; height: 13px; }
.fp-preview { margin: 8px 0 9px; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.fp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fp-author { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.fp-ava { width: 24px !important; height: 24px !important; }
.fp-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fp-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.fp-meta .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }

/* 帖子详情弹窗 */
.fp-detail { font-size: 14px; }
.fpd-title { font-size: 19px; font-weight: 800; line-height: 1.45; margin-bottom: 10px; color: var(--text); }
.fpd-author { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.fpd-author .fp-ava { width: 28px !important; height: 28px !important; }
.fpd-time { color: var(--text-3); font-size: 12px; }
.fpd-content {
  margin: 14px 0; padding: 14px 16px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line);
  line-height: 1.85; color: var(--text); white-space: pre-wrap; word-break: break-word;
}
.fpd-contact {
  font-size: 13.5px; padding: 9px 14px; border-radius: 10px;
  background: rgba(47, 127, 224, .08); border: 1px solid rgba(47, 127, 224, .25); color: var(--blue);
}
.fpd-contact b { color: var(--blue); }
.fpd-warn {
  margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--red);
  background: rgba(224, 71, 58, .07); border: 1px dashed rgba(224, 71, 58, .45);
  border-radius: 10px; padding: 9px 13px;
}
.fpd-replies { margin-top: 18px; }
.fpd-replies h4 { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.fpd-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 24px 0; }
.fpr-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.fpr-item:last-child { border-bottom: none; }
.fpr-item .c-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: var(--gold-grad); }
.fpr-item .c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fpr-body { min-width: 0; flex: 1; }
.fpr-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.fpr-head b { color: var(--text); }
.fpr-head span { color: var(--text-3); font-size: 11.5px; }
.fpr-body p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.fpd-reply-box { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.fpd-reply-box textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; font-size: 13.5px; resize: vertical;
  background: var(--card-2); color: var(--text);
}
.fpd-reply-box .btn { align-self: flex-end; }
.fp-form .form-item { margin-bottom: 13px; }

/* ===================== 建议投诉：站长 QQ 直达卡片 ===================== */
.master-qq-card {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; margin-bottom: 16px; border-radius: 13px;
  background: linear-gradient(100deg, rgba(212,160,23,.16), var(--card-2));
  border: 1.5px solid rgba(212, 160, 23, .5);
  box-shadow: 0 6px 18px rgba(212, 160, 23, .14);
  transition: all .18s ease;
}
.master-qq-card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(212, 160, 23, .24); }
.mqc-ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-grad); color: #5e3f00;
  box-shadow: 0 4px 10px rgba(212, 160, 23, .4);
}
.mqc-ico .ic { width: 22px; height: 22px; }
.mqc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mqc-text b { font-size: 14px; color: var(--gold); }
.mqc-text i { font-style: normal; font-size: 12px; color: var(--text-2); }
.mqc-text em { color: var(--blue); font-weight: 700; font-style: normal; }
.mqc-btn {
  flex: none; padding: 8px 18px; border-radius: 9px;
  background: linear-gradient(180deg, #4fc3f7, #12a5e8); color: #fff;
  font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(18, 165, 232, .35);
}

/* ===================== 封禁全屏提示 ===================== */
.banned-mask { z-index: 9999; background: rgba(30, 20, 20, .55); }
.banned-modal {
  width: 420px; text-align: center; padding: 38px 34px 30px;
  border-radius: 20px;
}
.banned-ico {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ff6b5e, #d0331f);
  box-shadow: 0 10px 26px rgba(208, 51, 31, .42);
  animation: banPop .3s cubic-bezier(.34, 1.56, .64, 1);
}
.banned-ico .ic { width: 40px; height: 40px; color: #fff; }
@keyframes banPop { from { transform: scale(.5); opacity: 0; } }
.banned-modal h3 { font-size: 21px; color: var(--red); margin-bottom: 10px; }
.banned-modal p { font-size: 14px; line-height: 1.8; color: var(--text-2); margin-bottom: 22px; }
.banned-modal .modal-foot { justify-content: center; border-top: none; padding-top: 0; }

/* ===================== 首页：新服预告角标 + 爆率 ===================== */
.coming-ribbon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 0; font-size: 12px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: linear-gradient(90deg, #4f8cff 0%, #7a5cff 55%, #36c5e8 100%);
  background-size: 200% 100%;
  box-shadow: 0 -4px 14px rgba(91, 111, 224, .35);
  animation: comingShine 3.2s linear infinite;
}
.coming-ribbon .ic { width: 13px; height: 13px; }
@keyframes comingShine { to { background-position: -200% 0; } }
.tb-baolv { background: linear-gradient(180deg, #8a7cff, #5b6fe0); color: #fff; box-shadow: 0 3px 10px rgba(91, 111, 224, .4); }
.btn-baolv { position: relative; }
.btn-baolv:hover { border-color: #7a5cff !important; color: #6a4fe0 !important; background: rgba(122, 92, 255, .08) !important; }

/* ===================== 后台：审核 / 归属 / 社区管理 ===================== */
.audit-tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.audit-ok { background: rgba(40, 160, 95, .13); color: var(--green); }
.audit-wait { background: rgba(240, 160, 32, .16); color: #c47c00; }
tr.row-pending-audit { background: rgba(240, 160, 32, .055); }
tr.row-pending-audit:hover { background: rgba(240, 160, 32, .1); }
.open-date-mini {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; color: #5b6fe0;
  background: rgba(122, 92, 255, .1); border-radius: 6px; padding: 1px 7px;
}
.open-date-mini .ic { width: 12px; height: 12px; }
.sub-qq-cell {
  display: inline-flex; align-items: center; gap: 4px;
  color: #12a5e8; font-weight: 600; font-size: 13px;
}
.sub-qq-cell .ic { width: 13px; height: 13px; }
.cm-admin-item { border: 1px solid var(--line); border-radius: 11px; padding: 13px 16px; margin-bottom: 10px; background: var(--card-solid); }
.cmai-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
.cmai-meta b { color: var(--text); }
.cmai-title { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.cmai-content {
  font-size: 13px; line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  max-height: 96px; overflow: hidden;
}
.cmai-actions { display: flex; gap: 6px; margin-top: 9px; }
/* 聊天记录条目不截断内容 */
.cm-chat-item .cmai-content { max-height: none; }
/* 帖子回复管理区 */
.cm-admin-replies {
  margin: 8px 0 4px; padding: 8px 12px; border-left: 3px solid var(--gold);
  background: var(--bg-soft); border-radius: 0 8px 8px 0;
}
.cm-admin-reply { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cm-admin-reply:last-child { border-bottom: none; }
.cmar-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.cmar-meta b { color: var(--text); }
.cmar-content {
  font-size: 13px; line-height: 1.65; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word; margin: 4px 0 6px;
}

/* ===================== 用户中心：等级图标与文字横向对齐 ===================== */
.lv-line {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 3px 11px 3px 6px;
  border-radius: 20px; background: var(--card-2); border: 1px solid var(--line-2);
}
.lv-line .lv-txt { font-size: 13px; color: var(--text-2); white-space: nowrap; }
#infoLevel { display: flex; align-items: center; }
#ptsLevelBox { display: flex; align-items: center; justify-content: center; min-height: 34px; }

/* ===================== 后台：邮件自取标签 / 次级描边按钮 ===================== */
.tag-mail {
  background: rgba(122, 127, 255, .13); color: #5b63d8;
  border: 1px solid rgba(122, 127, 255, .42); font-weight: 700;
}
.btn-admin-plain {
  background: var(--card-solid); color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-admin-plain:hover { border-color: var(--gold-2); color: var(--gold); }

/* ===================== 社区论坛：加载失败重试 ===================== */
.forum-load-err { text-align: center; padding: 56px 20px; color: var(--text-2); }
.forum-load-err .ic { width: 36px; height: 36px; color: var(--gold); margin-bottom: 12px; }
.forum-load-err p { font-size: 14.5px; margin-bottom: 6px; color: var(--text); }
.forum-load-err .fle-sub { font-size: 12.5px !important; color: var(--text-3) !important; margin-bottom: 16px !important; }
.forum-load-err .btn { margin: 0 auto; }

/* ============ 爆率查询聚合页：紧凑列表 ============ */
.gl-list-card {
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.gl-rows { display: flex; flex-direction: column; }
.gl-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.gl-row:last-child { border-bottom: none; }
.gl-row:hover { background: var(--card-2); }
.gl-row-cover {
  width: 52px; height: 52px; flex: none; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card-2);
}
.gl-row-main { flex: 1; min-width: 0; }
.gl-row-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gl-row-title .title-qq { flex: none; display: inline-flex; align-items: center; }
.gl-row-title .title-qq .ic { width: 19px; height: 19px; }
.gl-row-title .title-qq .title-qq-av { width: 19px; height: 19px; }
.gl-row-title .title-qq .qq-op-name { display: inline; }
.gl-row-tags { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.gl-tag {
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 4px 9px; border-radius: 10px;
  background: var(--card-2); color: var(--text-3);
  border: 1px solid var(--line);
}
.gl-tag.glt-gold { color: var(--gold); border-color: rgba(212,160,23,.4); background: rgba(212,160,23,.08); }
.gl-row-ops { flex: none; display: flex; align-items: center; gap: 8px; }
.gl-op-main {
  background: var(--gold-grad); color: var(--gold-ink);
  padding: 7px 18px; border-radius: 7px; box-shadow: none;
}
.gl-op-main:hover { filter: brightness(1.05); }
.gl-op-side {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line-2); padding: 7px 18px; border-radius: 7px;
}
.gl-op-side:hover { color: var(--gold); border-color: var(--gold-2); background: rgba(212,160,23,.06); }
@media (max-width: 640px) {
  .gl-row { padding: 10px 12px; gap: 10px; }
  .gl-row-cover { width: 44px; height: 44px; }
  .gl-op-main, .gl-op-side { padding: 6px 12px; }
}

/* ===================== 后台：游戏编辑弹窗 - 图文攻略管理 ===================== */
.guide-mgr { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--page-bg, #f7f6f1); }
.guide-mgr-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.guide-mgr-bar .hint { font-size: 12px; color: var(--text-3); }
.guide-mgr-list { display: flex; flex-direction: column; gap: 8px; }

/* 文档导入拖拽区 */
.guide-import-zone {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
  padding: 12px 14px; border: 1.5px dashed #c9ccd8; border-radius: 10px;
  background: #fafbfe; cursor: pointer; transition: border-color .15s, background .15s;
}
.guide-import-zone:hover,
.guide-import-zone.is-over {
  border-color: var(--gold, #d4a017); background: #fdf8ea;
}
.guide-import-zone .giz-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: rgba(212,160,23,.14); color: var(--gold, #b8860b);
}
.guide-import-zone .giz-text { display: flex; flex-direction: column; gap: 2px; }
.guide-import-zone .giz-text b { font-size: 13px; color: #1e3a5f; font-weight: 600; }
.guide-import-zone .giz-text small { font-size: 12px; color: #8a8fa3; }
.guide-import-zone.is-busy { cursor: wait; opacity: .75; border-style: solid; }
.guide-empty, .guide-loading { padding: 16px; text-align: center; color: var(--text-3); font-size: 13px; border: 1px dashed var(--line-2); border-radius: 8px; }
.guide-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
}
.guide-item-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guide-item-main b { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-item-meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.guide-item-meta .ic { vertical-align: -2px; }
.guide-item-ops { flex: none; display: flex; align-items: center; gap: 4px; }

/* 攻略编辑二级弹窗：多图上传 */
.guide-img-upload { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-img-add {
  width: 88px; height: 88px; border: 1.5px dashed var(--line-2); border-radius: 10px;
  background: var(--card-solid); color: var(--text-3); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px;
  transition: border-color .15s, color .15s;
}
.guide-img-add:hover { border-color: var(--gold-2); color: var(--gold); }
.guide-img-add.is-disabled { opacity: .5; cursor: not-allowed; }
.guide-img-add .ic { width: 22px; height: 22px; }
.guide-img-thumb {
  position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card-solid);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-3);
}
.guide-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-img-thumb.is-uploading { color: var(--gold); border-color: var(--gold-2); }
.guide-img-del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity .15s;
}
.guide-img-thumb:hover .guide-img-del { opacity: 1; }
.guide-img-del .ic { width: 11px; height: 11px; }
.guide-visible-check { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--text-2); cursor: pointer; }

/* ============ 后台网站设置内部分页 Tab ============ */
.settings-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
  padding: 6px; border: 1px solid var(--line, #e5e5e5); border-radius: 0;
  background: var(--fill, #fff);
}
.st-tab {
  padding: 8px 18px; font-size: 13px; border: none; border-radius: 0;
  background: transparent; color: var(--text, #333); cursor: pointer;
  transition: all .2s ease; font-weight: 500; letter-spacing: 1px;
}
.st-tab:hover { background: #f5f0e0; color: var(--gold, #c08b0e); }
.st-tab.active {
  background: var(--a-navy, #1e3a5f); color: #fff; font-weight: 600;
  box-shadow: 0 2px 6px rgba(30,58,95,.25);
}

/* ============ QQ 联系降级弹窗 ============ */
.qqfb-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  animation: qqfbIn .22s ease;
}
@keyframes qqfbIn { from { opacity: 0; } to { opacity: 1; } }
.qqfb-box {
  background: #fff; border-radius: 12px; width: 380px; max-width: 92vw;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); overflow: hidden;
  animation: qqfbUp .22s ease;
}
@keyframes qqfbUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.qqfb-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, #37b3ff, #1273e6); color: #fff;
}
.qqfb-head .qqfb-ic { font-size: 22px; }
.qqfb-head .qqfb-title { font-size: 15px; font-weight: 600; flex: 1; }
.qqfb-close {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.qqfb-close:hover { background: rgba(255,255,255,.35); }
.qqfb-body { padding: 16px; }
.qqfb-tip { font-size: 13px; color: #6b7a99; margin-bottom: 14px; }
.qqfb-qrow {
  display: flex; align-items: center; gap: 10px;
  background: #f5f7ff; border: 1px solid #dbe4ff; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 14px;
}
.qqfb-qrow .qqfb-label { font-size: 12px; color: #9aa0b5; }
.qqfb-qrow .qqfb-qnum {
  font-size: 18px; font-weight: 700; color: #1273e6; font-family: Consolas, monospace;
  letter-spacing: .5px; flex: 1;
}
.qqfb-copy {
  background: #fff; border: 1px solid #c3d8ff; color: #1273e6;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px;
  cursor: pointer; transition: all .15s;
}
.qqfb-copy:hover { background: #1273e6; color: #fff; }
.qqfb-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.qqfb-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .15s; border: none; cursor: pointer;
}
.qqfb-btn.qqfb-primary {
  background: linear-gradient(135deg, #37b3ff, #1273e6); color: #fff;
  box-shadow: 0 3px 8px rgba(18,115,230,.35);
}
.qqfb-btn.qqfb-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(18,115,230,.45); }
.qqfb-btn.qqfb-plain { background: #f5f5f5; color: #555; border: 1px solid #e0e0e0; }
.qqfb-btn.qqfb-plain:hover { background: #ebebeb; color: #1273e6; }
.qqfb-foot { font-size: 11.5px; color: #9aa0b5; line-height: 1.6; }
.qqfb-wx {
  font-size: 12.5px; color: #8a5c06; line-height: 1.7;
  background: #fff7e3; border: 1px solid #f0d590;
  padding: 9px 12px; margin-bottom: 14px;
}
/* 注册弹窗内的客服QQ可点链接 */
.am-qq-link { color: var(--am-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.am-qq-link:hover { opacity: .8; }
.am-qq-link b { color: inherit; }

/* ============ 登录注册弹窗（主题驱动） ============ */
.auth-modal {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.auth-modal .am-mask {
  position: absolute; inset: 0;
  background: var(--mask);
  backdrop-filter: blur(6px);
  animation: amFade .28s ease;
}
@keyframes amFade { from { opacity: 0; } to { opacity: 1; } }
.auth-modal .am-card {
  position: relative; width: 420px; max-width: 92vw; max-height: 92vh; overflow-y: auto;
  background: var(--am-bg);
  border: 1px solid var(--am-accent-border);
  border-radius: 8px;
  box-shadow: var(--am-shadow);
  padding: 34px 36px 28px;
  animation: amRise .32s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes amRise { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-modal .am-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: transparent; border: 1px solid var(--am-accent-border);
  color: var(--am-accent); cursor: pointer; font-size: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: all .15s;
}

/* ============ 社区表情 ============ */
.emoji-trigger, .emoji-btn {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--input-bg); color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.emoji-trigger:hover, .emoji-btn:hover { color: var(--gold-2); border-color: var(--gold-2); }
.emoji-trigger svg, .emoji-btn svg { width: 20px; height: 20px; }

.emoji-picker {
  position: absolute; z-index: 2000;
  width: 280px; max-height: 240px; overflow-y: auto;
  background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  padding: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
}
.emoji-picker.is-open { display: grid; }
.emoji-thumb {
  border: none; background: transparent; padding: 3px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.emoji-thumb:hover { background: var(--line-2); }
.emoji-thumb img { width: 26px; height: 26px; object-fit: contain; }

/* 消息中的表情：缩小显示，GIF 原生无限循环 */
.cm-emoji {
  width: 28px; height: 28px; vertical-align: middle;
  object-fit: contain; display: inline-block; margin: 0 1px;
}

/* 论坛发帖表单标签行 */
.form-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

/* ===== 后台列表分页条：长列表翻页浏览，不再整页下拉（bl18）===== */
.pg-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.pg-info { font-size: 12.5px; color: var(--text-2); }
.pg-btn {
  min-width: 36px; height: 27px; padding: 0 11px;
  border: 1px solid var(--line-2); background: var(--card-solid); color: var(--text-2);
  border-radius: 6px; font-size: 12.5px; cursor: pointer; line-height: 25px;
}
.pg-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.pg-btn:disabled { opacity: .38; cursor: not-allowed; }

/* ===== 网站设置基础项两列排布（bl18）：一屏放下不再下拉 ===== */
.settings-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.settings-cols .span-2 { grid-column: 1 / -1; }

/* ===== 工具下载左右分栏（bl31）：左列两个下载工具上下叠放，右列充值网关对接；
   机器多时状态列表在右列内部滚动，不把对接卡顶到页面下方 ===== */
.gw-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 20px; align-items: stretch;
}
.gw-left, .gw-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gw-cols > .admin-card + .admin-card { margin-top: 0 !important; }
/* 对接卡纵向弹性：状态列表吃掉剩余高度，超出在内部滚动（机器多也不往下顶） */
.gw-right .gw-dock-card { flex: 1 0 auto; display: flex; flex-direction: column; }
.gw-right .gw-dock-card > .form-item:last-child { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.gw-right .gw-dock-card > .form-item:last-child > label { flex: none; }
.gw-right #gwNodeList {
  flex: 1 1 auto; min-height: 120px;
  max-height: calc(100vh - 372px);
  overflow-y: auto; padding-right: 4px;
}
.gw-cols .form-label-row label { margin-bottom: 0; }

/* 论坛详情回复区操作行 */
.fpd-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.fpd-actions .emoji-trigger { width: 34px; height: 34px; }
.auth-modal .am-close:hover { background: var(--am-accent); color: var(--am-submit-text); }
.auth-modal .am-close .ic { width: 14px; height: 14px; color: inherit; }

.auth-modal .am-brand {
  display: flex; align-items: baseline; gap: 6px; justify-content: center;
  margin-bottom: 22px;
}
.auth-modal .am-logo {
  font-size: 22px; font-weight: 700; color: var(--am-accent); letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(212,160,23,.3);
}
[data-theme="tech"] .auth-modal .am-logo { text-shadow: 0 0 18px rgba(79,195,247,.4); }
.auth-modal .am-tag {
  font-size: 12px; color: var(--am-text-dim); letter-spacing: 2px;
}

/* Tab 切换 */
.auth-modal .am-tabs {
  position: relative; display: flex;
  background: var(--am-bg-2);
  border: 1px solid var(--am-line);
  border-radius: 6px;
  padding: 4px; margin-bottom: 22px;
}
.auth-modal .am-tabs button {
  flex: 1; position: relative; z-index: 2;
  padding: 9px 0; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  background: transparent; border: none; cursor: pointer;
  color: var(--am-text-2); transition: color .2s;
}
.auth-modal .am-tabs button.on { color: var(--gold-ink); }
.auth-modal .am-slider {
  position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px);
  left: 4px;
  background: var(--gold-grad);
  border-radius: 4px; transition: left .28s cubic-bezier(.2,.9,.3,1.2);
}

/* 表单 */
.auth-modal .am-field { margin-bottom: 14px; }
.auth-modal .am-field label {
  display: block; font-size: 12px; font-weight: 600; color: var(--am-text-2);
  margin-bottom: 5px; letter-spacing: .8px;
}
.auth-modal .am-field input[type="text"],
.auth-modal .am-field input[type="password"],
.auth-modal .am-field input[type="tel"],
.auth-modal .am-field input[type="email"] {
  width: 100%; padding: 10px 12px;
  background: var(--am-input-bg);
  border: 1px solid var(--am-line);
  border-radius: 6px;
  color: var(--am-input-text); font-size: 13.5px;
  outline: none; transition: all .18s;
  box-sizing: border-box;
}
.auth-modal .am-field input:focus {
  border-color: var(--am-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--am-accent) 22%, transparent);
}
.auth-modal .am-field input::placeholder { color: var(--am-input-ph); }

.auth-modal .am-sms-row { display: flex; gap: 8px; align-items: center; }
.auth-modal .am-sms-row input { flex: 1; min-width: 0; }
.auth-modal .btn-sms {
  padding: 9px 14px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: transparent;
  border: 1px solid var(--am-accent-border); color: var(--am-accent);
  border-radius: 6px; cursor: pointer; transition: all .15s;
}

/* ============ 每日签到奖励弹窗（金色主题，全主题通用） ============ */
.dr-mask {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(28, 18, 4, .58);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .28s ease;
}
.dr-mask.dr-show { opacity: 1; }
.dr-modal {
  position: relative; width: 400px; max-width: calc(100vw - 40px);
  background: linear-gradient(180deg, #fffdf6 0%, #fff7e0 100%);
  border: 2px solid #e8b84b; border-radius: 22px;
  padding: 30px 30px 26px; text-align: center;
  box-shadow: 0 24px 70px rgba(120, 70, 0, .4), 0 0 0 6px rgba(247, 201, 72, .18);
  transform: scale(.72) translateY(24px); opacity: 0;
  transition: transform .38s cubic-bezier(.2, 1.4, .4, 1), opacity .28s;
  overflow: hidden;
}
.dr-mask.dr-show .dr-modal { transform: scale(1) translateY(0); opacity: 1; }

/* 金币背后旋转光芒 */
.dr-rays {
  position: absolute; top: -42px; left: 50%; width: 190px; height: 190px;
  transform: translateX(-50%); pointer-events: none;
  background: conic-gradient(
    from 0deg,
    rgba(247, 201, 72, .55) 0deg 8deg, transparent 8deg 30deg,
    rgba(247, 201, 72, .55) 30deg 38deg, transparent 38deg 60deg,
    rgba(247, 201, 72, .55) 60deg 68deg, transparent 68deg 90deg,
    rgba(247, 201, 72, .55) 90deg 98deg, transparent 98deg 120deg,
    rgba(247, 201, 72, .55) 120deg 128deg, transparent 128deg 150deg,
    rgba(247, 201, 72, .55) 150deg 158deg, transparent 158deg 180deg,
    rgba(247, 201, 72, .55) 180deg 188deg, transparent 188deg 210deg,
    rgba(247, 201, 72, .55) 210deg 218deg, transparent 218deg 240deg,
    rgba(247, 201, 72, .55) 240deg 248deg, transparent 248deg 270deg,
    rgba(247, 201, 72, .55) 270deg 278deg, transparent 278deg 300deg,
    rgba(247, 201, 72, .55) 300deg 308deg, transparent 308deg 330deg,
    rgba(247, 201, 72, .55) 330deg 338deg, transparent 338deg 360deg
  );
  border-radius: 50%;
  animation: drSpin 14s linear infinite;
}
@keyframes drSpin { to { transform: translateX(-50%) rotate(360deg); } }

.dr-coin {
  position: relative; z-index: 1; display: inline-block; margin-top: 18px;
  animation: drFloat 2.6s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(160, 100, 0, .35));
}
@keyframes drFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.dr-title {
  position: relative; z-index: 1; margin: 12px 0 16px;
  font-size: 23px; font-weight: 800; color: #8a2f12; letter-spacing: 2px;
}
.dr-rewards {
  position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center;
}
.dr-item {
  flex: 1; max-width: 140px;
  background: linear-gradient(180deg, #fffbe9, #fdeebc);
  border: 1px solid #ecc86a; border-radius: 14px; padding: 14px 8px 12px;
}
.dr-pop {
  opacity: 0; transform: scale(.4) translateY(14px);
  animation: drPop .45s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
@keyframes drPop { to { opacity: 1; transform: scale(1) translateY(0); } }
.dr-num { display: block; font-size: 32px; font-weight: 800; color: #d4880c; line-height: 1.1; }
.dr-num-green { color: #28a05f; }
.dr-lab { font-size: 13px; color: #7d6630; }
.dr-status {
  position: relative; z-index: 1; margin-top: 14px; font-size: 13px; color: #6f6248;
}
.dr-status b { color: #8a2f12; font-weight: 700; }
.dr-note {
  position: relative; z-index: 1; margin-top: 10px;
  background: rgba(247, 201, 72, .22); border-radius: 8px;
  padding: 8px 12px; font-size: 12px; color: #7a5a14; line-height: 1.6;
}
.dr-btn {
  position: relative; z-index: 1; margin-top: 16px; width: 100%;
  padding: 13px 0; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #f7d05a, #e09a1a);
  color: #5e3c02; font-size: 16px; font-weight: 800; letter-spacing: 3px;
  box-shadow: 0 6px 16px rgba(200, 130, 10, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .15s, box-shadow .15s;
}
.dr-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(200, 130, 10, .5), inset 0 1px 0 rgba(255,255,255,.6); }
.dr-btn:active { transform: translateY(0); }

/* 金币纸屑 */
.dr-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dr-confetti i {
  position: absolute; top: -24px; opacity: 0;
  animation-name: drFall; animation-timing-function: ease-in; animation-fill-mode: forwards;
}
@keyframes drFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(520px) rotate(720deg) translateX(18px); opacity: 0; }
}
.auth-modal .btn-sms:hover:not(:disabled) { background: var(--am-accent-soft); }
.auth-modal .btn-sms:disabled { opacity: .45; cursor: not-allowed; }

/* 提交按钮 */
.auth-modal .am-submit {
  width: 100%; margin-top: 6px; padding: 12px 0; font-size: 14px; font-weight: 700; letter-spacing: 6px;
  background: var(--am-submit-grad);
  color: var(--am-submit-text); border: none; border-radius: 6px; cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--am-accent) 40%, transparent);
  transition: all .15s;
}
.auth-modal .am-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--am-accent) 55%, transparent); }
.auth-modal .am-submit:disabled { opacity: .6; cursor: not-allowed; }

/* 异地登录提示里的 b */
.auth-modal .am-sms b { color: var(--am-accent); font-weight: 600; }

/* 注册底部客服提示 */
.auth-modal .am-reg-tip {
  margin-top: 14px; padding: 10px 12px;
  background: var(--am-accent-soft);
  border: 1px solid var(--am-accent-border);
  border-radius: 6px;
  font-size: 12px; color: var(--am-text-2);
  display: flex; align-items: flex-start; gap: 8px;
}
.auth-modal .am-reg-tip span { line-height: 1.7; }
.auth-modal .am-reg-tip .ic { flex-shrink: 0; margin-top: 2px; color: var(--am-accent); }

/* guest-gate（未登录提示弹窗内的内容） */
.auth-modal .guest-gate { text-align: center; }
.auth-modal .guest-gate .gg-icon {
  width: 46px; height: 46px; margin: 4px auto 14px;
  background: var(--am-accent-soft); border: 1px solid var(--am-accent-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.auth-modal .guest-gate .gg-icon .ic { width: 22px; height: 22px; color: var(--am-accent); }
.auth-modal .guest-gate .gg-main {
  font-size: 13.5px; color: var(--am-text); line-height: 1.8; margin-bottom: 14px;
}
.auth-modal .guest-gate .gg-main b { color: var(--am-accent); }
.auth-modal .guest-gate .gg-warn {
  background: var(--am-accent-soft); border: 1px solid var(--am-accent-border);
  border-radius: 6px; padding: 10px 14px;
  font-size: 12px; color: var(--am-text-2); line-height: 1.7;
  display: flex; gap: 8px; text-align: left;
}
.auth-modal .guest-gate .gg-warn .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--red); }
.auth-modal .guest-gate .gg-warn b { color: var(--red); }

/* ===== 用户中心 · 邀请有礼 ===== */
.iv-code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, #3a3320, #6e5a1e);
}
.iv-code-lab { font-size: 13px; color: #f3d98b; opacity: .85; margin-bottom: 4px; }
.iv-code-num {
  font-size: 30px; font-weight: 800; letter-spacing: 6px; color: #ffd97a;
  font-family: Consolas, "Courier New", monospace;
}
.iv-text-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--card-solid); }
.iv-text { font-size: 16px; line-height: 1.9; color: var(--text); word-break: break-all; }
.iv-text-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.iv-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iv-imgs img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.iv-steps { display: flex; flex-direction: column; gap: 10px; }
.iv-step { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.7; }
.iv-step b { color: var(--gold); flex-shrink: 0; }

/* ============ 首页福利轮播（左侧悬浮，与专区导航同宽，无图标+特效） ============ */
.promo-carousel {
  position: fixed; left: 16px; bottom: calc(50% + 90px);
  width: 140px; z-index: 50;
}
.pc-viewport {
  overflow: hidden; border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #f3cf6d, #c9891c, #f3cf6d);
  animation: pcGlow 2.4s ease-in-out infinite;
}
@keyframes pcGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(243,207,109,.5), 0 6px 24px rgba(0,0,0,.2); }
  50% { box-shadow: 0 0 24px rgba(243,207,109,.9), 0 6px 30px rgba(0,0,0,.28); }
}
.pc-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.pc-item {
  flex: 0 0 100%; display: flex; align-items: center; justify-content: center;
  padding: 14px 12px; min-height: 110px; border-radius: 12px;
  text-decoration: none; color: #fff; position: relative; overflow: hidden;
  text-align: center;
}
/* 扫光特效 */
.pc-item::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: pcSweep 3s ease-in-out infinite;
}
@keyframes pcSweep {
  0% { left: -100%; }
  60%, 100% { left: 100%; }
}
.pc-body { position: relative; z-index: 1; width: 100%; }
.pc-body h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #fff; line-height: 1.3; }
.pc-body h3 span { color: #ffe066; display: block; font-size: 17px; }
.pc-body p { font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.85); margin: 0 0 8px; }
.pc-btn {
  display: inline-block; padding: 4px 14px; border-radius: 12px;
  background: rgba(255,255,255,.28); color: #fff; font-size: 11px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.4);
  animation: pcPulse 1.8s ease-in-out infinite;
}
@keyframes pcPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.pc-item:hover .pc-btn { background: rgba(255,255,255,.45); }
.pc-gift { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.pc-invite { background: linear-gradient(135deg, #2980b9, #3498db); }
.pc-points { background: linear-gradient(135deg, #d68910, #f39c12); }
.pc-redpacket { background: linear-gradient(135deg, #ad1457, #e91e63); }
.pc-gold { background: linear-gradient(135deg, #b8860b, #daa520); }
.pc-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.pc-dot {
  width: 7px; height: 7px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.18); transition: all .25s; padding: 0;
}
.pc-dot.on { width: 20px; border-radius: 4px; background: var(--gold); }
@media (max-width: 1280px) {
  .promo-carousel { display: none; }
}

/* ===== Hero 996PC授权条 + 文字特效（全主题适配） ===== */
:root {
  --ha-deep-1: #221708;
  --ha-deep-2: #4a3410;
  --ha-gold: #f0c24e;
  --ha-gold-2: #d4a017;
  --ha-cream: #f3e6c8;
}
[data-theme="dark"] {
  --ha-deep-1: #171206;
  --ha-deep-2: #382a0e;
  --ha-gold: #ffd76e;
  --ha-gold-2: #e0a820;
}
[data-theme="tech"] {
  --ha-deep-1: #06101e;
  --ha-deep-2: #0d2440;
  --ha-gold: #7fd8ff;
  --ha-gold-2: #29b6f6;
  --ha-cream: #d9efff;
}
/* 996PC授权条（深色胶囊，hero 最顶） */
.hero-auth {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 7px 8px 7px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ha-deep-1), var(--ha-deep-2) 45%, var(--ha-deep-1));
  border: 1px solid color-mix(in srgb, var(--ha-gold) 45%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ha-gold) 22%, transparent);
  overflow: hidden;
}
.hero-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.09) 48%, rgba(255,244,214,.16) 50%, rgba(255,255,255,.09) 52%, transparent 70%);
  background-size: 280% 100%;
  animation: haSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haSheen {
  0%, 55% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.ha-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ha-cream);
  letter-spacing: 1.5px;
}
.ha-996 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(110deg, var(--ha-gold-2) 0%, var(--ha-gold) 25%, #fffbe8 50%, var(--ha-gold) 75%, var(--ha-gold-2) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: haShimmer 3.2s linear infinite;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ha-gold) 45%, transparent));
}
@keyframes haShimmer { to { background-position: -220% center; } }
.ha-sep {
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ha-cream) 55%, transparent), transparent);
}
.ha-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ha-cream);
  border: 1px solid color-mix(in srgb, var(--ha-gold) 55%, transparent);
  background: color-mix(in srgb, var(--ha-gold) 14%, transparent);
  overflow: hidden;
}
.ha-badge .ic { width: 14px; height: 14px; color: var(--ha-gold); }
.ha-badge b { font-weight: 900; color: var(--ha-gold); }
.ha-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  left: -50px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  animation: haBadgeShine 3.6s ease-in-out infinite;
}
@keyframes haBadgeShine {
  0%, 60% { left: -50px; }
  100% { left: 130%; }
}
/* 文字区入场：依次浮现 */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-text > * { animation: heroUp .65s ease both; }
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .18s; }
.hero-text > *:nth-child(3) { animation-delay: .31s; }
.hero-text > *:nth-child(4) { animation-delay: .44s; }
/* h1：散人也称王（金色流光） */
.hero-text h1 .h1-shine {
  background: linear-gradient(110deg, var(--ha-gold-2) 0%, var(--ha-gold) 30%, #fffbe8 50%, var(--ha-gold) 70%, var(--ha-gold-2) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: haShimmer 3.2s linear infinite;
}
/* h1：50元真实充值（火焰橙流光 + 光晕呼吸，主题自适应） */
.hero-text h1 .h1-hot {
  background: linear-gradient(90deg, #eaa827, #e05a30, #eaa827);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: haHotFlow 3s linear infinite;
  filter: drop-shadow(0 3px 10px rgba(224, 90, 48, .3));
}
@keyframes haHotFlow { to { background-position: -200% center; } }
[data-theme="dark"] .hero-text h1 .h1-hot {
  background: linear-gradient(90deg, #ffd76e, #ff8a3d, #ffd76e);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 3px 12px rgba(255, 170, 60, .35));
}
[data-theme="tech"] .hero-text h1 .h1-hot {
  background: linear-gradient(90deg, #4fc3f7, #1565c0, #4fc3f7);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 3px 12px rgba(79, 195, 247, .4));
}
/* 域名条：加高光扫过 + 科技蓝主题适配 */
.hero-domain-bar { position: relative; overflow: hidden; }
.hero-domain-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46px;
  left: -70px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: haBarShine 4.2s ease-in-out infinite;
}
@keyframes haBarShine {
  0%, 55% { left: -70px; }
  100% { left: 130%; }
}
.hero-domain-link { display: inline-block; transition: transform .2s ease, color .2s ease; }
.hero-domain-link:hover { transform: scale(1.04); }
[data-theme="tech"] .hero-domain-bar {
  background: linear-gradient(90deg, #0d2c4a, #1e5a8e, #0d2c4a);
  box-shadow: 0 3px 12px rgba(41, 182, 246, .35);
}
[data-theme="tech"] .hero-domain-bar > span:first-child { color: #bfe3ff; }
[data-theme="tech"] .hero-domain-link { color: #eaf7ff; text-shadow: 0 2px 4px rgba(0, 20, 40, .5); }
[data-theme="tech"] .hero-domain-link:hover { color: #7fd8ff; text-shadow: none; }
[data-theme="tech"] .hero-domain-sub { color: #a8d4f5; }
/* ===== 996PC礼包站 品牌凸显（底部流光字） ===== */
.footer-996 {
  font-weight: 900;
  background: linear-gradient(110deg, #b8860b, #e8b84b 30%, #fff3c4 50%, #e8b84b 70%, #b8860b);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShine 4.5s linear infinite;
}
[data-theme="tech"] .footer-996 {
  background: linear-gradient(110deg, #29b6f6, #7fd8ff 30%, #e8f7ff 50%, #7fd8ff 70%, #29b6f6);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShine 4.5s linear infinite;
}

/* ===== 视觉升级：LOGO底板 / hero排版重设计 / 福利卡特效 ===== */
/* ① LOGO 传奇引擎：深色底板衬托，白底不再发虚 */
.logo .logo-engine {
  height: 42px;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #241a0c, #433013);
  border: 1px solid rgba(232, 184, 75, .4);
  box-shadow: 0 3px 10px rgba(56, 40, 16, .3);
  filter: saturate(1.25);
}
[data-theme="dark"] .logo .logo-engine {
  background: linear-gradient(135deg, #171206, #2c2213);
  filter: saturate(1.1);
}
[data-theme="tech"] .logo .logo-engine {
  background: linear-gradient(135deg, #071627, #0d2440);
  border-color: rgba(79, 195, 247, .4);
  box-shadow: 0 3px 10px rgba(6, 22, 40, .4);
  filter: saturate(1.15);
}
/* 散人联盟 LOGO：透明底图，紧跟引擎图标右侧 */
.logo .logo-sanren {
  height: 44px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)) drop-shadow(0 0 8px rgba(232,184,75,.35));
  transition: transform .25s ease, filter .25s ease;
}
.logo:hover .logo-sanren {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(232,184,75,.7)) brightness(1.1);
}
/* ② 域名条：深色牌匾 + 鎏金域名大字 */
.hero-domain-bar {
  height: auto;
  padding: 12px 24px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--ha-deep-1), var(--ha-deep-2) 50%, var(--ha-deep-1));
  border: 1.5px solid color-mix(in srgb, var(--ha-gold) 55%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ha-gold) 20%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
  margin-bottom: 18px;
  animation: none;
}
.hero-domain-bar > span:first-child {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ha-cream);
  opacity: .85;
  flex: none;
}
.hero-domain-link {
  font-size: 34px;
  letter-spacing: 1px;
  line-height: 1;
  background: linear-gradient(110deg, var(--ha-gold-2) 0%, var(--ha-gold) 30%, #fffbe8 50%, var(--ha-gold) 70%, var(--ha-gold-2) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: haShimmer 3.2s linear infinite;
  text-shadow: none;
}
.hero-domain-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ha-cream) 75%, transparent);
}
/* ③ 标题：更大更有气势 + 底部渐变装饰条 */
.hero-text h1 { font-size: 46px; line-height: 1.28; letter-spacing: .5px; }
.hero-text h1 .h1-hot { font-size: 1.12em; }
.hero-text h1::after {
  content: "";
  display: block;
  width: 132px;
  height: 7px;
  margin-top: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ha-gold), #e05a30);
  box-shadow: 0 2px 10px rgba(224, 90, 48, .35);
  transform-origin: left;
  animation: barGrow .7s ease .55s both;
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
/* ④ 版本标签行 */
.hero-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.hz-chip {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ha-gold-2);
  background: color-mix(in srgb, var(--ha-gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ha-gold) 40%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ha-gold) 15%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hz-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--ha-gold) 28%, transparent);
}
.hz-note { font-size: 13.5px; color: var(--text-2); letter-spacing: .5px; }
/* ⑤ 数据面板：顶部金红饰线 + 数字渐变发光 */
.hero-stats { position: relative; overflow: hidden; }
.hero-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--red), var(--gold-2), transparent);
}
.hs-num {
  font-size: 36px;
  background: linear-gradient(180deg, #f0c24c, #e05a30);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(224, 122, 30, .25));
}
.hs-unit { -webkit-text-fill-color: #e05a30; }
.hs-lab { font-weight: 600; }
.hs-divider {
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 160, 23, .5), transparent);
}
/* ⑥ 福利卡：流光边框 + 徽章脉冲 + 图标浮动 + 按钮流光 */
.benefit-hero {
  border: 2px solid transparent;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 71, 58, .10), transparent 60%),
    linear-gradient(var(--card-solid), var(--card-solid)) padding-box,
    linear-gradient(120deg, #e8b84b, #e05a30, #b8860b, #e8b84b) border-box;
  background-size: auto, 100% 100%, 300% 300%;
  background-position: 0 0, 0 0, 0% 50%;
  animation: giftBorderFlow 5s linear infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
@keyframes giftBorderFlow {
  to { background-position: 0 0, 0 0, 300% 50%; }
}
.benefit-hero:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover), 0 10px 30px rgba(224, 122, 30, .22);
}
.bc-badge {
  position: relative;
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 1.5px;
  overflow: hidden;
  animation: bcPulse 2.4s ease-out infinite;
}
.bc-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  left: -40px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: haBadgeShine 3s ease-in-out infinite;
}
@keyframes bcPulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 71, 58, .4); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.benefit-card h3 { font-size: 21px; letter-spacing: .5px; }
.benefit-card h3 .ic {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
  margin-right: 7px;
  color: #e8a020;
  animation: giftFloat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(232, 160, 32, .4));
}
@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.bc-list li {
  padding: 8px 0 8px 28px;
  font-size: 13.5px;
  transition: transform .2s ease, color .2s ease;
}
.bc-list li:hover { transform: translateX(4px); color: var(--text); }
.bc-list li .ic {
  width: 17px;
  height: 17px;
  top: 8px;
  left: 3px;
  filter: drop-shadow(0 1px 3px rgba(46, 160, 90, .3));
}
.benefit-card .btn-red {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #e34040, #ff6a3d, #e34040);
  background-size: 200% 100%;
  animation: btnFlow 2.8s linear infinite;
  box-shadow: 0 6px 16px rgba(224, 71, 58, .35);
}
.benefit-card .btn-red::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  left: -60px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: haBadgeShine 2.6s ease-in-out infinite;
}
.benefit-card .btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(224, 71, 58, .45);
}
@keyframes btnFlow {
  to { background-position: -200% center; }
}

/* ===== 科技蓝主题：头部/导航/装饰条 全协调 ===== */
[data-theme="tech"] .logo {
  background: linear-gradient(110deg, #0d5c9e 0%, #4fc3f7 30%, #e8f7ff 50%, #4fc3f7 70%, #0d5c9e 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(79, 195, 247, .3));
}
[data-theme="tech"] .logo:hover { filter: drop-shadow(0 3px 10px rgba(79, 195, 247, .45)); }
[data-theme="tech"] .nav-glider {
  background: linear-gradient(135deg, #1e6aa8 0%, #29b6f6 52%, #0d5c9e 100%);
  box-shadow: 0 6px 16px rgba(41, 182, 246, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
}
[data-theme="tech"] .nav a.on-pill,
[data-theme="tech"] .nav a.on-pill .ic { color: #eaf7ff; }
[data-theme="tech"] .hero-text h1::after {
  background: linear-gradient(90deg, #4fc3f7, #1565c0);
  box-shadow: 0 2px 10px rgba(79, 195, 247, .35);
}
[data-theme="tech"] .hs-num {
  background: linear-gradient(180deg, #7fd8ff, #1e88e5);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(41, 182, 246, .3));
}
[data-theme="tech"] .hs-unit { -webkit-text-fill-color: #1e88e5; }

/* ===== 全站主题协调（弹窗/悬浮/按钮特效），默认黑金 ===== */
/* ① QQ联系弹窗：白底硬编码 → 跟随主题变量 */
.qqfb-box { background: var(--card-solid); }
.qqfb-tip { color: var(--text-2); }
.qqfb-qrow { background: var(--card-2); border-color: var(--line-2); }
.qqfb-qrow .qqfb-label { color: var(--text-3); }
.qqfb-qnum { color: var(--blue); }
.qqfb-copy { background: var(--card-solid); border-color: var(--line-2); color: var(--blue); }
.qqfb-copy:hover { background: var(--blue); color: #fff; }
.qqfb-btn.qqfb-plain { background: var(--card-2); color: var(--text-2); border-color: var(--line-2); }
.qqfb-btn.qqfb-plain:hover { background: var(--bg-soft); color: var(--blue); }
.qqfb-foot { color: var(--text-3); }
.qqfb-wx {
  color: var(--gold-2);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-color: color-mix(in srgb, var(--gold) 38%, transparent);
}
/* ② 左侧专区导航：tech 选中态变蓝 */
[data-theme="tech"] .zf-btn.on {
  color: #4fc3f7;
  background: linear-gradient(135deg, rgba(79, 195, 247, .18), rgba(21, 101, 192, .12));
  box-shadow: inset 0 0 0 1px rgba(79, 195, 247, .45), 0 4px 12px rgba(41, 182, 246, .18);
}
[data-theme="tech"] .zone-float { box-shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 0 0 1px rgba(79, 195, 247, .12); }
[data-theme="dark"] .zone-float { box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 184, 75, .1); }
/* ③ 弹窗：弹性入场 + 主题氛围光晕 */
.modal { animation: modalIn .32s cubic-bezier(.34, 1.45, .64, 1); }
[data-theme="dark"] .modal {
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 184, 75, .15), 0 0 44px rgba(232, 184, 75, .07);
}
[data-theme="tech"] .modal {
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(79, 195, 247, .2), 0 0 44px rgba(79, 195, 247, .09);
}
/* ④ 按钮特效：金色按钮扫光 + 全按钮按压回弹 */
.btn { position: relative; }
.btn:active { transform: scale(.96); }
.btn-gold { overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  left: -60px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: btnSheen 4.2s ease-in-out infinite;
}
@keyframes btnSheen {
  0% { left: -60px; }
  45%, 100% { left: 110%; }
}
.btn:disabled::after { display: none; }
/* ===== 福利轮播卡重设计：玻璃质感 + 身份色点缀 + 悬浮呼吸 ===== */
.pc-viewport {
  padding: 0;
  border-radius: 16px;
  background: var(--card-solid);
  border: 1px solid var(--line-2);
  animation: pcFloat 3.8s ease-in-out infinite;
}
@keyframes pcFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
  50% { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
}
.pc-item {
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% -10%, var(--pc-soft, transparent), transparent 58%),
    var(--card-solid);
  color: var(--text);
}
.pc-item::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
}
.pc-gift { --pc-accent: #ff5f52; --pc-soft: rgba(255, 95, 82, .16); }
.pc-invite { --pc-accent: #4aa3ff; --pc-soft: rgba(74, 163, 255, .16); }
.pc-points { --pc-accent: #ffb93d; --pc-soft: rgba(255, 185, 61, .16); }
.pc-redpacket { --pc-accent: #ff5f9e; --pc-soft: rgba(255, 95, 158, .16); }
.pc-gold { --pc-accent: #f0c14b; --pc-soft: rgba(240, 193, 75, .16); }
.pc-body h3 { color: var(--text); }
.pc-body h3 span { color: var(--pc-accent); font-weight: 900; }
.pc-body p { color: var(--text-2); }
.pc-btn {
  background: var(--pc-accent);
  border: none;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pc-accent) 40%, transparent);
}
.pc-item:hover .pc-btn { background: var(--pc-accent); filter: brightness(1.12); }
.pc-dot { background: color-mix(in srgb, var(--text-3) 45%, transparent); }

/* ===== LOGO 左侧：传奇引擎图标 ===== */
.logo .logo-engine {
  width: auto;
  display: block;
  transition: transform .25s ease;
}
.logo:hover .logo-engine { transform: scale(1.05); }


/* ============================================================
   黑金主题 · 最终版（唯一主题 · 前台视觉重构）
   说明：本块位于文件末尾，同优先级下覆盖上文旧规则；
   后台 .admin-* 样式作用域独立，不受本块影响。
   ============================================================ */

/* ---------- 全局质感 ---------- */
::selection { background: rgba(212, 175, 55, .32); color: #fff8e6; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0c12; }
::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 6px; border: 2px solid #0a0c12; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #c9a86a, #9a7a3a); }

body {
  background:
    radial-gradient(ellipse 900px 480px at 85% -8%, rgba(212, 175, 55, .06), transparent 60%),
    radial-gradient(ellipse 700px 420px at 8% 12%, rgba(212, 175, 55, .04), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- 顶部导航：深色毛玻璃 + 金色发丝线 ---------- */
.topbar {
  background: rgba(8, 10, 16, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 168, 106, .16);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .5);
}
.topbar-inner { height: 64px; }
.logo { font-size: 26px; letter-spacing: 2px; }
.logo .logo-text {
  background: linear-gradient(110deg, #8a6a1f 0%, #e8c87e 38%, #fff3c4 50%, #e8c87e 62%, #8a6a1f 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShine 5s linear infinite;
}
.nav a { color: #9aa1af; font-size: 14.5px; padding: 8px 15px; border-radius: 9px; }
.nav a:hover { color: #f0d89a; }
.nav a.active { color: #f0d89a; text-shadow: 0 0 14px rgba(212, 175, 55, .35); }
.hello-user { color: #8f96a5; }
.hello-user b { color: #e8c87e; }

/* ---------- Hero：氛围加深 + 金线收边 ---------- */
.hero { border-bottom: 1px solid rgba(201, 168, 106, .14); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 620px 300px at 78% 20%, rgba(212, 175, 55, .07), transparent 65%);
}
.hero-text h1 { color: #f2ecdc; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.hz-chip {
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .28);
  color: #e8c87e;
}

/* ---------- 区块标题：金色刻度线 ---------- */
.section-title { color: #f0ead8; }
.section-title::before {
  content: ""; display: inline-block; width: 4px; height: 1em; margin-right: 10px;
  vertical-align: -2px; border-radius: 2px;
  background: linear-gradient(180deg, #f0c24e, #b8963a);
  box-shadow: 0 0 10px rgba(212, 175, 55, .5);
}
.section-sub { color: #778091; }
.zone-head h2 { color: #f0ead8; }
.zone-head p { color: #828a99; }
.zone-count {
  background: rgba(212, 175, 55, .10);
  border: 1px solid rgba(212, 175, 55, .30);
  color: #e8c87e;
}

/* ---------- 筛选面板：深色卡 + 金 chips ---------- */
.filter-panel {
  background: rgba(16, 20, 28, .72);
  border: 1px solid rgba(201, 168, 106, .14);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}
.filter-row .label { color: #c9a86a; font-weight: 700; }
.chip {
  background: #171c26;
  border: 1px solid rgba(255, 255, 255, .08);
  color: #a8aebb;
  border-radius: 999px;
  transition: all .22s ease;
}
.chip:hover { border-color: rgba(212, 175, 55, .5); color: #f0d89a; transform: translateY(-1px); }
.chip.active {
  background: linear-gradient(135deg, #e8c87e, #c9a86a);
  border-color: transparent;
  color: #221a08;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, .30);
}
.search-box input {
  background: #12161f;
  border: 1px solid rgba(201, 168, 106, .18);
  color: #e8e8e8;
  border-radius: 10px;
}
.search-box input:focus { border-color: rgba(212, 175, 55, .55); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); }
.search-box input::placeholder { color: #5d6472; }
.search-box button {
  background: linear-gradient(135deg, #e8c87e, #c9a86a);
  color: #221a08;
  border-radius: 10px;
  font-weight: 700;
}

/* ---------- 游戏卡片：一行四张 · 紧凑精致 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1280px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .game-grid { grid-template-columns: 1fr; } }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #151a24 0%, #0e1219 100%);
  border: 1px solid rgba(201, 168, 106, .12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .38);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, .48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .58), 0 0 26px rgba(212, 175, 55, .10);
}
.game-card.is-boutique { border-color: rgba(212, 175, 55, .30); }
.game-card.is-boutique:hover { border-color: rgba(240, 194, 78, .65); box-shadow: 0 14px 36px rgba(0,0,0,.6), 0 0 30px rgba(212,175,55,.18); }
.game-card.is-red:hover { border-color: rgba(224, 80, 106, .55); }
.game-card.is-gold:hover { border-color: rgba(240, 194, 78, .55); }

.game-cover { position: relative; height: 128px; overflow: hidden; flex: none; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.game-card:hover .game-cover img { transform: scale(1.07); }
.game-cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
  background: linear-gradient(180deg, transparent, rgba(9, 11, 17, .78));
  pointer-events: none;
}

/* 角标：左上类型 / 右上倍数 / 右下点赞 */
.type-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.type-badge .ic { width: 11px; height: 11px; }
.tb-boutique { background: linear-gradient(135deg, #f0c24e, #b8963a); color: #221a08; }
.tb-gift { background: linear-gradient(135deg, #e0506a, #a92c3e); color: #fff; }
.tb-red { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.tb-gold { background: linear-gradient(135deg, #f5d670, #d19f1f); color: #221a08; }
.tb-plain { background: linear-gradient(135deg, #5a8af0, #3a66c8); color: #fff; }

.mult-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  padding: 2px 8px; border-radius: 7px;
  background: linear-gradient(135deg, #f5d670, #d4af37);
  color: #221a08; font-size: 11px; font-weight: 900; letter-spacing: .5px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, .40);
}

.coming-ribbon {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 7px;
  background: rgba(10, 12, 18, .78);
  border: 1px solid rgba(240, 194, 78, .55);
  color: #f0c24e; font-size: 10.5px; font-weight: 700;
  backdrop-filter: blur(4px);
  animation: crPulse 2.2s ease-in-out infinite;
}
@keyframes crPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 194, 78, .0); }
  50% { box-shadow: 0 0 12px 2px rgba(240, 194, 78, .35); }
}
.coming-ribbon .ic { width: 11px; height: 11px; }

.rate.like-btn {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(10, 12, 18, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  color: #e8c87e; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all .22s ease;
  user-select: none;
}
.rate.like-btn:hover { border-color: rgba(240, 194, 78, .6); background: rgba(212, 175, 55, .18); transform: scale(1.06); }
.rate.like-btn.liked { color: #ff5b74; border-color: rgba(255, 91, 116, .55); }
.rate.like-btn .ic { width: 13px; height: 13px; }
.rate.like-btn .like-num { font-variant-numeric: tabular-nums; }

/* 卡片信息区：紧凑 */
.game-info { flex: 1; display: flex; flex-direction: column; padding: 10px 12px 12px; min-width: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.title-name { flex: 1; min-width: 0; }
.title-name h3 {
  font-size: 14px; font-weight: 700; color: #f0ead8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px; margin: 0;
}
.heat-inline {
  flex: none; display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 6px; border-radius: 5px;
  background: rgba(224, 80, 106, .14);
  color: #ff7d92; font-size: 10px; font-weight: 700;
}
.heat-inline .ic { width: 10px; height: 10px; }
.title-side { flex: none; display: inline-flex; align-items: center; gap: 5px; }

.op-chip {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 108px; padding: 2px 8px 2px 3px; border-radius: 999px;
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .26);
  cursor: pointer; transition: all .2s ease;
}
.op-chip:hover { background: rgba(212, 175, 55, .18); border-color: rgba(240, 194, 78, .5); }
.op-chip .opc-av { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.op-chip .opc-name { font-size: 10.5px; color: #e8c87e; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.seg-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.seg-tag.seg-on { background: rgba(212, 175, 55, .14); border: 1px solid rgba(212, 175, 55, .40); color: #f0c24e; }
.seg-tag.seg-on b { color: #ffe9a8; }
.seg-tag.seg-out, .seg-tag.seg-end { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); color: #6f7687; }
.seg-tag.seg-none { background: transparent; border: 1px dashed rgba(255, 255, 255, .12); color: #5d6472; }

.game-desc {
  font-size: 12px; color: #8e94a3; line-height: 1.55;
  height: 37px; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.op-mini {
  display: inline-flex; align-items: center; gap: 4px;
  margin: -2px 0 6px auto; padding: 1px 8px 1px 2px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer; max-width: 120px;
}
.op-mini:hover { border-color: rgba(212, 175, 55, .4); }
.op-mini .opm-av { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }
.op-mini .opm-name { font-size: 10px; color: #9aa1af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 卡片按钮组：两列贴底 */
.game-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.game-actions .ga-wide { grid-column: 1 / -1; }
.game-actions .btn {
  padding: 7px 6px; border-radius: 16px;
  font-size: 12px; font-weight: 700;
  justify-content: center; gap: 4px;
}
.game-actions .btn .ic { width: 13px; height: 13px; }

/* ---------- 按钮配色（全站） ---------- */
.btn-gold {
  background: linear-gradient(135deg, #ecc97c, #c9a86a);
  color: #221a08;
  box-shadow: 0 3px 12px rgba(212, 175, 55, .28);
}
.btn-gold:hover { box-shadow: 0 7px 20px rgba(212, 175, 55, .42); transform: translateY(-1px); }
.btn-red {
  background: linear-gradient(135deg, #e0506a, #b22a3c);
  color: #fff;
  box-shadow: 0 3px 12px rgba(224, 80, 106, .30);
}
.btn-red:hover { box-shadow: 0 7px 20px rgba(224, 80, 106, .44); transform: translateY(-1px); }
.btn-dark {
  background: #1c222e;
  color: #c4c9d4;
  border: 1px solid rgba(255, 255, 255, .08);
}
.btn-dark:hover { background: #242c3a; color: #f0d89a; border-color: rgba(201, 168, 106, .38); }
.btn-ghost { background: transparent; color: #e8c87e; border: 1px solid rgba(212, 175, 55, .45); }
.btn-ghost:hover { background: rgba(212, 175, 55, .10); }
.btn-claim-disabled {
  background: rgba(255, 255, 255, .05);
  color: #646b7a;
  border: 1px solid rgba(255, 255, 255, .07);
  cursor: not-allowed;
}

/* ---------- 排行榜：深色行 + 金牌名次 ---------- */
.rank-card {
  background: rgba(16, 20, 28, .72);
  border: 1px solid rgba(201, 168, 106, .14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}
.rank-item { transition: background .2s ease; }
.rank-item:hover { background: rgba(212, 175, 55, .05); }
.rank-no {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  background: #1c222e; color: #8f96a5; border: 1px solid rgba(255, 255, 255, .08);
}
.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
  background: linear-gradient(135deg, #f0c24e, #b8963a);
  color: #221a08; border-color: transparent;
  box-shadow: 0 2px 10px rgba(212, 175, 55, .35);
}
.rank-name-line { color: #f0ead8; }
.rank-op-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px 1px 2px; border-radius: 999px;
  background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .24);
  cursor: pointer;
}
.rank-op-chip .ropc-av { width: 15px; height: 15px; border-radius: 50%; object-fit: cover; }
.rank-op-chip .ropc-name { font-size: 11px; color: #e8c87e; }
.rank-cats { color: #778091; }
.rank-date { color: #9aa1af; }
.rank-date.is-future { color: #f0c24e; font-weight: 700; }
.rank-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 3px; }
.rank-badge .ic { width: 11px; height: 11px; }
.rank-badge.rb-gold { background: rgba(212, 175, 55, .14); border: 1px solid rgba(212, 175, 55, .40); color: #f0c24e; }
.rank-badge.rb-red { background: rgba(224, 80, 106, .14); border: 1px solid rgba(224, 80, 106, .40); color: #ff7d92; }
.rank-badge.rb-wait { background: rgba(90, 138, 240, .14); border: 1px solid rgba(90, 138, 240, .40); color: #8db4ff; }
.rank-badge.rb-out { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); color: #6f7687; }
.rank-heat { color: #ff7d92; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.rank-heat .ic { width: 11px; height: 11px; }
.rank-desc { color: #828a99; }
.rank-empty { color: #6f7687; }

/* ---------- 页脚：纯黑 + 金线 ---------- */
.footer {
  background: #07090e;
  border-top: 1px solid rgba(201, 168, 106, .16);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .4);
}
.footer-links a { color: #9aa1af; transition: color .2s ease; }
.footer-links a:hover { color: #f0d89a; }
.footer p { color: #6f7687; }
.footer-domain a, .footer-copy a { color: #e8c87e; }
.theme-picker { display: none !important; }

/* ---------- 左侧悬浮：专区导航 + 福利轮播（黑金玻璃） ---------- */
.zone-float .zf-btn {
  background: rgba(14, 17, 24, .86);
  border: 1px solid rgba(201, 168, 106, .18);
  color: #a8aebb;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  transition: all .22s ease;
}
.zone-float .zf-btn:hover {
  border-color: rgba(212, 175, 55, .55);
  color: #f0d89a;
  transform: translateX(3px);
}
.zone-float .zf-btn.on, .zone-float .zf-btn.active {
  background: linear-gradient(135deg, rgba(232, 200, 126, .92), rgba(201, 168, 106, .92));
  color: #221a08; border-color: transparent; font-weight: 800;
}
.promo-carousel .pc-item {
  background: rgba(14, 17, 24, .86);
  border: 1px solid rgba(201, 168, 106, .18);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.promo-carousel .pc-item h3 { color: #f0ead8; }
.promo-carousel .pc-item h3 span { color: #f0c24e; }
.promo-carousel .pc-item p { color: #828a99; }
.promo-carousel .pc-btn { color: #e8c87e; }
.promo-carousel .pc-dots span { background: #2a3040; }
.promo-carousel .pc-dots span.on { background: #f0c24e; }

/* ---------- 弹窗 / Toast：深色 + 金线 ---------- */
.modal-mask { background: rgba(4, 6, 10, .74); backdrop-filter: blur(6px); }
.modal {
  background: #12161f;
  border: 1px solid rgba(201, 168, 106, .24);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 40px rgba(212, 175, 55, .05);
}
.modal-head { border-bottom: 1px solid rgba(201, 168, 106, .14); color: #f0ead8; }
.modal-close { color: #8f96a5; }
.modal-close:hover { color: #f0d89a; }
.modal-foot { border-top: 1px solid rgba(201, 168, 106, .12); }
.empty { color: #6f7687; }

/* ---------- 右下角常驻微信群面板（微信二维码直接展示+进群提示，无需点击） ---------- */
.qq-float { display: none; }
.qq-float.qf-panel {
  position: fixed; right: 14px; bottom: 96px; z-index: 900;
  display: flex; flex-direction: column;
  width: 188px; overflow: hidden;
  background: linear-gradient(180deg, #1a1f2d, #121620);
  border: 1px solid rgba(212, 175, 55, .50);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55), 0 0 24px rgba(212, 175, 55, .10);
  animation: qqFloatIn .5s ease-out 1;
  transition: box-shadow .3s ease;
}
@keyframes qqFloatIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.qq-float.qf-panel:hover { box-shadow: 0 14px 38px rgba(0, 0, 0, .65), 0 0 32px rgba(212, 175, 55, .20); border-color: rgba(240, 194, 78, .65); }

/* 面板头部 */
.qf-head {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-bottom: 1px solid rgba(212, 175, 55, .20);
}
.qf-wx-ic {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, #2ecb6c, #15a34e);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 3px 9px rgba(21, 163, 78, .45);
  flex-shrink: 0;
}
.qf-wx-ic svg { width: 18px; height: 18px; }
.qf-head-text { display: flex; flex-direction: column; gap: 1px; }
.qf-title { font-size: 14px; font-weight: 700; color: #f0ead8; line-height: 1.2; }
.qf-sub { font-size: 10.5px; color: #8f96a5; line-height: 1.2; }

/* 面板主体 */
.qf-body {
  display: flex; flex-direction: column; align-items: center;
  padding: 11px 12px 12px; gap: 8px;
}
.qf-qr-img {
  width: 124px; height: 124px; border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, .40);
  background: #fff; padding: 5px;
  box-sizing: border-box;
}
.qf-line1 { font-size: 12.5px; font-weight: 700; color: #f0c24e; text-align: center; line-height: 1.5; }
.qf-dots { display: flex; gap: 5px; }
.qf-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(212, 175, 55, .5); }
.qf-line2 { font-size: 11px; color: #9aa1b0; text-align: center; line-height: 1.55; }

/* ---------- 标题区重排：标题独占一行完整显示，徽章降到第二行小字 ---------- */
.title-row { margin-bottom: 4px; }
.title-name { width: 100%; }
.title-name h3 { font-size: 14.5px; }
.title-sub-row {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 6px; min-height: 20px;
  flex-wrap: nowrap; overflow: hidden;
}
.title-sub-row .seg-tag { font-size: 10px; padding: 2px 7px; flex: none; }
.title-sub-row .op-chip { max-width: 96px; flex: none; }
.title-sub-row .op-chip .opc-name { font-size: 10px; }

/* ---------- 副行/元信息行整体靠右 · 联系客服小胶囊 · 卡片按钮压低 ---------- */
.title-sub-row { justify-content: flex-end; }
.meta-row { justify-content: flex-end; }
.op-contact {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px; flex: none;
  font-size: 10px; font-weight: 700; color: #e8c87e;
  background: rgba(212, 175, 55, .10);
  border: 1px solid rgba(212, 175, 55, .32);
  cursor: pointer; transition: all .2s ease;
}
.op-contact:hover { background: rgba(212, 175, 55, .22); border-color: rgba(240, 194, 78, .55); }
.op-contact .ic, .op-contact .ic-png { width: 11px; height: 11px; }
.game-actions { gap: 5px; }
.game-actions .btn { padding: 5px 6px; font-size: 11.5px; border-radius: 14px; }
.game-actions .btn .ic { width: 12px; height: 12px; }

/* ---------- 标题行：热度火焰靠右 · 标题金色流光特效 · 胶囊内联提示 ---------- */
.title-row { justify-content: space-between; gap: 8px; }
.title-name { width: auto; flex: 1; min-width: 0; }
.title-heat { flex: none; display: inline-flex; align-items: center; }
.title-sub-row .op-chip { max-width: 148px; }
.title-name h3 {
  display: block;
  background: linear-gradient(110deg, #f0ead8 38%, #ffe9a8 50%, #f0ead8 62%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 4.5s linear infinite;
}
@keyframes titleShine { to { background-position: -220% center; } }
.game-card:hover .title-name h3 { filter: drop-shadow(0 0 10px rgba(240, 194, 78, .40)); }

/* ---------- 胶囊不截断 · 元信息行提亮 · 开区时间换色 ---------- */
.title-sub-row .op-chip { max-width: 180px; }
.op-chip .opc-name { max-width: none !important; overflow: visible !important; text-overflow: clip !important; }
.meta-row .cat-mini {
  background: rgba(212, 175, 55, .10);
  border: 1px solid rgba(212, 175, 55, .22);
  color: #d8c9a3;
}
.meta-row .open-date { color: #5fd0a5; font-weight: 700; }
.meta-row .open-date.is-future { color: #f0c24e; }

/* ---------- 左侧悬浮一体栏：轮播 + 专区导航 同宽相连 ---------- */
.left-rail {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
  z-index: 850; width: 152px;
  display: flex; flex-direction: column;
  background: rgba(13, 17, 26, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: railIn .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes railIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-18px); }
  to { opacity: 1; transform: translateY(-50%); }
}
/* 轮播并入面板顶部：去掉自身金色描边/外发光，圆角归零 */
.left-rail .promo-carousel { position: static; width: 100%; left: auto; bottom: auto; }
.left-rail .pc-viewport { border-radius: 0; padding: 0; background: none; animation: none; }
.left-rail .pc-item { border-radius: 0; min-height: 108px; padding: 12px 10px; }
.left-rail .pc-dots { margin: 7px 0 8px; }
/* 专区导航并入面板底部：与轮播之间一条金色发丝线分隔 */
.left-rail .zone-float {
  position: static; transform: none; width: 100%;
  background: none; border: none; box-shadow: none; border-radius: 0;
  border-top: 1px solid rgba(212, 175, 55, .22);
  padding: 8px; gap: 3px;
  animation: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.left-rail .zf-btn { width: 100%; box-sizing: border-box; }
/* 1600 断点规则已移到文件末尾（滑动收起版，带边缘把手） */

/* ==================== 按钮·图标 全局提亮（高饱和显眼版） ==================== */
.btn { transition: all .22s ease; }
/* 金色主按钮：高饱和金渐层 + 内高光 + 金色投影 */
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, #ffe08a, #f0b92e) !important;
  color: #3a2803 !important;
  border-color: rgba(255, 224, 138, .65) !important;
  box-shadow: 0 4px 14px rgba(240, 185, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  font-weight: 700;
}
.btn-gold:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #ffecad, #ffc93d) !important;
  box-shadow: 0 6px 22px rgba(240, 185, 46, .55), 0 0 0 1px rgba(255, 224, 138, .4), inset 0 1px 0 rgba(255, 255, 255, .55);
  transform: translateY(-1px);
}
/* 红色按钮：高饱和红渐层 + 红光投影 */
.btn-red, .btn-danger {
  background: linear-gradient(135deg, #ff7a5c, #ea3a1d) !important;
  border-color: rgba(255, 138, 108, .55) !important;
  box-shadow: 0 4px 14px rgba(234, 58, 29, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  font-weight: 700;
}
.btn-red:hover, .btn-danger:hover {
  background: linear-gradient(135deg, #ff9070, #ff4a26) !important;
  box-shadow: 0 6px 22px rgba(234, 58, 29, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: translateY(-1px);
}
/* 深色次按钮：金边金字，暗底上清晰可辨 */
.btn-ghost, .btn-secondary {
  background: rgba(240, 194, 78, .08) !important;
  border: 1px solid rgba(240, 194, 78, .42) !important;
  color: #f0c24e !important;
}
.btn-ghost:hover, .btn-secondary:hover {
  background: rgba(240, 194, 78, .16) !important;
  border-color: rgba(240, 194, 78, .68) !important;
  color: #ffe08a !important;
  box-shadow: 0 4px 14px rgba(240, 194, 78, .25);
  transform: translateY(-1px);
}
/* 轮播内按钮：实心金，一眼看到 */
.pc-btn {
  background: linear-gradient(135deg, #ffe08a, #f0b92e) !important;
  color: #3a2803 !important;
  border-color: transparent !important;
  font-weight: 700;
}
/* 图标统一亮金色调 */
.section-title .ic, .empty-ic, .zf-btn .zf-ic, .panel-ic, .feat-ic, .hero p .ic { color: #f0c24e; }
.zf-btn:hover .zf-ic, .zf-btn.on .zf-ic { color: #ffe08a; }
/* 热度火焰 / 点赞数字提亮 */
.heat-inline { color: #ffb84d; }
.like-num { color: #f0c24e; }

/* ==================== 顶部导航改版：下划线指示（无滑动件，不卡顿） ==================== */
.nav-glider, .nav-underline { display: none !important; }
.nav { gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px !important;
  border-radius: 8px;
  color: #c9cfdb !important;
  background: transparent !important;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: #ffe08a !important; background: rgba(240, 194, 78, .08) !important; }
.nav a.active {
  color: #ffe08a !important;
  font-weight: 600;
  background: rgba(240, 194, 78, .10) !important;
}
/* 金色下划线：悬浮从中间展开，当前页常驻 */
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f0c24e, transparent);
  transform: translateX(-50%);
  transition: width .22s ease;
}
.nav a:hover::after { width: 55%; }
.nav a.active::after { width: 70%; }
.nav a .ic { color: inherit; }

/* ==================== 左栏轮播：彩色主题（白字高对比，一眼看清） ==================== */
.left-rail .pc-item { border: none !important; background: none; }
.left-rail .pc-gift { background: linear-gradient(135deg, #e74c3c, #b03a2e) !important; }
.left-rail .pc-invite { background: linear-gradient(135deg, #3498db, #21618c) !important; }
.left-rail .pc-points { background: linear-gradient(135deg, #f39c12, #ca7c1b) !important; }
.left-rail .pc-redpacket { background: linear-gradient(135deg, #e91e63, #ad1457) !important; }
.left-rail .pc-gold { background: linear-gradient(135deg, #f0b92e, #c99012) !important; }
.left-rail .pc-item h3 { color: #fff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.left-rail .pc-item h3 span { color: #fff !important; }
.left-rail .pc-item p { color: rgba(255, 255, 255, .92) !important; }
.left-rail .pc-btn {
  background: #fff !important; color: #333 !important;
  border: none !important; font-weight: 700;
}
.left-rail .pc-item:hover .pc-btn { background: #fff !important; filter: brightness(.94); }
/* 专区按钮文字提亮 */
.left-rail .zf-btn { color: #dfe3ec !important; }
.left-rail .zf-btn:hover { color: #ffe08a !important; }

/* ==================== 左栏轮播重设计：暗夜霓虹（深底 + 主题色发光） ==================== */
/* 面板头：福利中心 */
.left-rail .pc-head {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: #f0c24e; border-bottom: 1px solid rgba(212, 175, 55, .16);
}
.left-rail .pc-head .ic { width: 14px; height: 14px; }
/* 每卡专属霓虹色 */
.left-rail .pc-gift { --acc: #ff5c47; }
.left-rail .pc-invite { --acc: #4aa8ff; }
.left-rail .pc-points { --acc: #ffab2e; }
.left-rail .pc-redpacket { --acc: #ff4d7e; }
.left-rail .pc-gold { --acc: #f0c24e; }
/* 卡片：深底纵向布局 */
.left-rail .pc-item {
  background: #10141d !important;
  flex-direction: column; min-height: 0;
  padding: 14px 10px 13px; gap: 0;
}
.left-rail .pc-item::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); }
/* 发光图标座 */
.left-rail .pc-ico {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; color: var(--acc);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 0 16px -3px var(--acc);
}
.left-rail .pc-ico .ic { width: 20px; height: 20px; }
/* 标题 / 大数字（霓虹发光） / 描述 */
.left-rail .pc-t { font-size: 13px; font-weight: 600; color: #f2f4f8; }
.left-rail .pc-big {
  font-family: 'Bebas Neue', Impact, 'Microsoft YaHei', sans-serif;
  font-size: 32px; line-height: 1.1; letter-spacing: 1px;
  color: var(--acc); text-shadow: 0 0 18px var(--acc);
  margin: 3px 0 4px;
}
.left-rail .pc-big small {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0;
  color: #cfd5e0; text-shadow: none; margin-left: 3px;
}
.left-rail .pc-d { font-size: 10.5px; color: #9aa2b1; line-height: 1.45; margin-bottom: 10px; }
/* 霓虹描边按钮：悬浮实心发光 */
.left-rail .pc-go {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--acc); color: var(--acc);
  font-size: 11px; font-weight: 700; transition: all .2s ease;
}
.left-rail .pc-go .ic { width: 12px; height: 12px; }
.left-rail .pc-item:hover .pc-go { background: var(--acc); color: #14161d; box-shadow: 0 0 14px var(--acc); }
/* 指示器：短线条，当前为发光金条 */
.left-rail .pc-dots { margin: 8px 0 9px; gap: 4px; }
.left-rail .pc-dot { width: 8px; height: 4px; border-radius: 2px; background: #262d3d; padding: 0; }
.left-rail .pc-dot.on { width: 20px; background: linear-gradient(90deg, #ffe08a, #f0b92e); box-shadow: 0 0 8px rgba(240, 185, 46, .7); }
/* 专区按钮：图标改为金边小方块座 */
.left-rail .zf-btn .zf-ic {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(240, 194, 78, .08);
  border: 1px solid rgba(240, 194, 78, .22);
  transition: all .2s ease;
}
.left-rail .zf-btn .zf-ic .ic { width: 15px; height: 15px; }
.left-rail .zf-btn:hover .zf-ic { background: rgba(240, 194, 78, .18); box-shadow: 0 0 10px rgba(240, 194, 78, .25); }
.left-rail .zf-btn.on .zf-ic { background: rgba(0, 0, 0, .15); border-color: rgba(0, 0, 0, .12); color: #2a2003; }
.left-rail .zf-btn.zf-rank .zf-ic { background: rgba(0, 0, 0, .12); border-color: rgba(0, 0, 0, .15); color: #6e4d05; }

/* ==================== 左栏改亮色版：奶金面板 + 高饱和彩色卡（不跟黑色主题） ==================== */
.left-rail {
  background: linear-gradient(180deg, #fffdf6, #fff3d8) !important;
  border: 1px solid #e8c87e !important;
  box-shadow: 0 16px 40px rgba(120, 90, 20, .28) !important;
}
.left-rail .pc-head { color: #8a6208; border-bottom-color: rgba(180, 140, 40, .18); }
/* 福利卡：高饱和彩色 + 纯白文字，亮眼 */
.left-rail .pc-item { background: none !important; }
.left-rail .pc-gift { background: linear-gradient(135deg, #ff6a4d, #e83e1f) !important; }
.left-rail .pc-invite { background: linear-gradient(135deg, #42a5f5, #1e78d7) !important; }
.left-rail .pc-points { background: linear-gradient(135deg, #ffb020, #f08c00) !important; }
.left-rail .pc-redpacket { background: linear-gradient(135deg, #ff4d7e, #e0145a) !important; }
.left-rail .pc-gold { background: linear-gradient(135deg, #f5c542, #d99e06) !important; }
.left-rail .pc-ico { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .4); color: #fff; box-shadow: none; }
.left-rail .pc-t { color: #fff; }
.left-rail .pc-big { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.left-rail .pc-big small { color: rgba(255, 255, 255, .95); }
.left-rail .pc-d { color: rgba(255, 255, 255, .92); }
.left-rail .pc-go { background: #fff; border-color: #fff; color: #333; }
.left-rail .pc-item:hover .pc-go { background: #fff; color: #111; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
/* 指示器：亮面适配 */
.left-rail .pc-dot { background: #e2d2a8; }
.left-rail .pc-dot.on { background: linear-gradient(90deg, #e8a90c, #c98706); box-shadow: 0 0 8px rgba(232, 169, 12, .55); }
/* 专区导航：奶金底 + 深棕金字 */
.left-rail .zone-float { border-top-color: rgba(180, 140, 40, .22); }
.left-rail .zf-split { background: rgba(180, 140, 40, .18); }
.left-rail .zf-btn {
  background: #fffdf6 !important;
  border: 1px solid rgba(200, 150, 30, .28) !important;
  color: #5b4a1e !important;
  box-shadow: 0 2px 8px rgba(120, 90, 20, .10);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.left-rail .zf-btn:hover { color: #8a6208 !important; background: #fff3d2 !important; border-color: rgba(200, 150, 30, .5) !important; }
.left-rail .zf-btn .zf-ic { background: rgba(232, 169, 12, .14); border-color: rgba(200, 150, 30, .30); color: #a5760a; }
.left-rail .zf-btn:hover .zf-ic { background: rgba(232, 169, 12, .25); box-shadow: none; }
.left-rail .zf-btn.on {
  background: linear-gradient(135deg, #f5c542, #e0a410) !important;
  color: #573d03 !important;
  box-shadow: 0 3px 10px rgba(224, 164, 16, .45);
}
.left-rail .zf-btn.on .zf-ic, .left-rail .zf-btn.zf-rank .zf-ic {
  background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .6); color: #6e4d05;
}

/* ==================== 悬浮栏丝滑收起 + 边缘把手 ==================== */
.left-rail { transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .26s ease; }
.rail-tab {
  display: none;
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 860;
  writing-mode: vertical-rl; letter-spacing: 3px;
  padding: 16px 8px; border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #ffe08a, #f0b92e);
  color: #3a2803; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(255, 224, 138, .7); border-left: none;
  cursor: pointer;
  box-shadow: 4px 4px 16px rgba(240, 185, 46, .4);
  transition: all .2s ease;
}
.rail-tab:hover { padding-right: 13px; box-shadow: 6px 6px 22px rgba(240, 185, 46, .55); }
@media (max-width: 1600px) {
  .left-rail {
    transform: translateY(-50%) translateX(-130%);
    opacity: 0; pointer-events: none;
    animation: none;
  }
  .left-rail.open {
    transform: translateY(-50%) translateX(0);
    opacity: 1; pointer-events: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  }
  .rail-tab { display: block; }
}
@media (max-width: 768px) {
  .left-rail { display: none !important; }
  .rail-tab { display: none !important; }
}

/* ==================== 用户中心侧栏菜单优化 ==================== */
.user-menu a {
  position: relative;
  border-radius: 10px;
  color: #b8bfcc !important;
  transition: all .2s ease;
}
.user-menu a .ic { color: #8a91a0; transition: color .2s ease; }
.user-menu a:hover {
  background: rgba(240, 194, 78, .08);
  color: #ffe08a !important;
  transform: translateX(3px);
}
.user-menu a:hover .ic { color: #f0c24e; }
.user-menu a.active {
  background: linear-gradient(135deg, rgba(240, 194, 78, .16), rgba(240, 194, 78, .06)) !important;
  color: #ffe08a !important;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #f0c24e;
}
.user-menu a.active .ic { color: #f0c24e !important; }

/* ==================== 社区页签 + 守则横幅优化 ==================== */
.cm-tab { border-radius: 12px; transition: all .2s ease; }
.cm-tab:hover { transform: translateY(-1px); }
.cm-tab.active {
  background: linear-gradient(135deg, #ffe08a, #f0b92e) !important;
  color: #3a2803 !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(240, 185, 46, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.chat-rules {
  background: rgba(224, 80, 106, .10) !important;
  border: 1px solid rgba(224, 80, 106, .30) !important;
  color: #d8a4ae !important;
}
.chat-rules b { color: #ffb3c0; }
.chat-rules .red { color: #ff6b81 !important; }

/* 隐藏主题切换按钮（即使HTML还在） */
.theme-switch { display: none !important; }

/* ==================== 联系客服悬浮窗（QQ+微信合并） ==================== */
.ct-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
}
.ct-box {
  width: 380px; max-width: 92vw;
  background: var(--card, #161b2a);
  border: 1px solid var(--line, rgba(212, 175, 55, .25));
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.ct-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, rgba(212, 175, 55, .15));
  background: rgba(212, 175, 55, .04);
}
.ct-title {
  font-size: 15px; font-weight: 700; color: var(--gold, #f0c24e); letter-spacing: 1px;
}
.ct-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-3, #8a8fa3);
  font-size: 18px; cursor: pointer; border-radius: 6px;
  transition: all .2s ease;
}
.ct-close:hover { color: var(--red, #e04747); background: rgba(224, 71, 71, .1); }
.ct-body { padding: 18px; }
/* QQ区块：头像+名字+唤起按钮 一行，QQ号+复制按钮 一行 */
.ct-qq-sec {
  margin-bottom: 16px;
}
.ct-qq-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--card-2, #1a2032);
  border: 1px solid var(--line, rgba(212, 175, 55, .15));
  border-radius: 8px 8px 0 0;
}
.ct-qq-av {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(240,194,78,.3);
  object-fit: cover; flex-shrink: 0;
}
.ct-qq-name {
  font-size: 15px; font-weight: 700; color: var(--gold, #f0c24e);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-qq-bottom {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--card-solid, #131720);
  border: 1px solid var(--line, rgba(212, 175, 55, .15));
  border-top: none;
  border-radius: 0 0 8px 8px;
}
.ct-qq-num {
  font-size: 16px; font-weight: 700; color: var(--text, #e8eaf0);
  letter-spacing: 1px; flex: 1;
}
.ct-btn {
  padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer;
  white-space: nowrap; transition: all .2s ease; flex-shrink: 0;
}
.ct-btn-qq {
  background: linear-gradient(135deg, #f0c24e, #d4a017); color: #1a1a2e;
  box-shadow: 0 3px 10px rgba(240, 194, 78, .25);
}
.ct-btn-qq:hover { box-shadow: 0 5px 16px rgba(240, 194, 78, .4); transform: translateY(-1px); }
.ct-btn-copy {
  background: transparent; color: var(--gold, #f0c24e); border-color: var(--gold, #f0c24e);
}
.ct-btn-copy:hover { background: rgba(240, 194, 78, .1); }
/* 微信区块 */
.ct-wx-sec { text-align: center; padding: 4px 0; }
.ct-wx-title {
  font-size: 13px; font-weight: 600; color: var(--text-2, #a0a5b0);
  margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ct-wx-img {
  max-width: 200px; max-height: 200px;
  border: 1px solid var(--line, rgba(212, 175, 55, .2));
  border-radius: 8px;
  background: #fff;
}
.ct-wx-tip { margin-top: 10px; font-size: 12.5px; color: var(--text-3, #8a8fa3); }

/* ==================== 首页背景图（黑金波浪） ==================== */
/* 主图区：高清背景，限制在容器宽度内 */
.hero-inner {
  background: url('/img/hero-bg.jpg') center / cover no-repeat;
  border-radius: 16px;
  border: 1px solid rgba(240,194,78,.18);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(240,194,78,.1);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
/* 主图区加一层暗色遮罩确保文字可读 */
.hero-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,8,14,.72) 0%, rgba(6,8,14,.45) 50%, rgba(6,8,14,.3) 100%);
  pointer-events: none; z-index: 0;
  border-radius: 16px;
}
.hero-inner > * { position: relative; z-index: 1; }

/* 主图区去掉原来的渐变背景 */
.hero { background: transparent; border-bottom: none; }
.hero-grid-deco { display: none; }

/* 卡片区：模糊背景+水印 */
.section.container {
  position: relative;
  background: url('/img/content-bg.jpg') center / cover no-repeat;
  border-radius: 16px;
  border: 1px solid rgba(240,194,78,.12);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  padding: 28px 24px;
  margin-top: 20px;
  overflow: hidden;
}
/* 卡片区暗色遮罩+水印 */
.section.container::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8,10,16,.82);
  pointer-events: none; z-index: 0;
  border-radius: 16px;
}
/* 卡片区水印层 */
.section.container::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='140'><text x='130' y='82' font-family='Arial,Black' font-size='30' font-weight='900' fill='%23c08b0e' fill-opacity='0.06' text-anchor='middle' transform='rotate(-18 130 70)'>3RLM · 散人联盟</text></svg>");
  pointer-events: none; z-index: 0;
  border-radius: 16px;
}
.section.container > * { position: relative; z-index: 1; }

/* 手机端适配 */
@media (max-width: 768px) {
  .hero-inner { padding: 24px 18px; border-radius: 12px; }
  .section.container { padding: 18px 14px; border-radius: 12px; margin-top: 14px; }
}

/* ==================== 全局对比度修复 v2 ==================== */

/* ========== 前台（非后台）：暗底+亮字 ========== */
body:not(.admin-body) input,
body:not(.admin-body) textarea,
body:not(.admin-body) select {
  color: #e8e8e8 !important;
  caret-color: #f0c24e !important;
}
body:not(.admin-body) input::placeholder,
body:not(.admin-body) textarea::placeholder {
  color: #8892a5 !important;
  opacity: 1 !important;
}
body:not(.admin-body) input[type="password"] {
  color: #e8e8e8 !important;
}

/* ========== 后台：白底+黑字（覆盖所有场景） ========== */
/* 后台所有输入框——不管在不在弹窗里，全部白底黑字 */
.admin-body input[type="text"],
.admin-body input[type="password"],
.admin-body input[type="number"],
.admin-body input[type="email"],
.admin-body input[type="url"],
.admin-body input[type="tel"],
.admin-body input[type="search"],
.admin-body input[type="date"],
.admin-body input[type="datetime-local"],
.admin-body input:not([type]),
.admin-body select,
.admin-body textarea {
  background: #fff !important;
  color: #2b3440 !important;
  caret-color: #2f5a96 !important;
  border: 1px solid #c2c9d5 !important;
}
.admin-body input::placeholder,
.admin-body textarea::placeholder {
  color: #98a1af !important;
  opacity: 1 !important;
}
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
  border-color: #2f5a96 !important;
  box-shadow: 0 0 0 3px rgba(47,90,150,.12) !important;
  outline: none !important;
}
/* 后台下拉框选项 */
.admin-body select option {
  color: #2b3440 !important;
  background: #fff !important;
}

/* ========== 后台Tab标签 ========== */
.st-tab { color: #687283 !important; }
.st-tab:hover { color: #1e3a5f !important; background: #e8ecf1 !important; }
.st-tab.active { color: #fff !important; }

/* ========== 后台反馈建议卡片 ========== */
.fb-panel { background: #fff !important; border: 1px solid #d6dbe4 !important; }
.fb-panel h2 { color: #2b3440 !important; }
.fb-item { background: #f8f9fc !important; border: 1px solid #e0e4ea !important; }
.fb-item .fb-content { color: #2b3440 !important; }
.fb-item .fb-meta { color: #687283 !important; }

/* ========== 后台筛选栏 ========== */
.toolbar input, .toolbar select {
  background: #fff !important;
  border: 1px solid #c2c9d5 !important;
  color: #2b3440 !important;
}
.toolbar input::placeholder { color: #98a1af !important; }

/* ========== 前台按钮可读性 ========== */
.btn-ghost, .btn-plain {
  color: var(--text-2, #a0a5b0) !important;
  border-color: rgba(255,255,255,.15) !important;
}
.btn-ghost:hover, .btn-plain:hover {
  color: #f0c24e !important;
  border-color: rgba(240,194,78,.3) !important;
}
.admin-body .btn-plain, .admin-body .btn-admin-plain {
  color: #2b3440 !important;
  border-color: #c2c9d5 !important;
}
.admin-body .btn-plain:hover, .admin-body .btn-admin-plain:hover {
  color: #1e3a5f !important;
  border-color: #2f5a96 !important;
}

/* ========== 禁用状态 ========== */
.btn-gold:disabled, .btn-admin:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ========== 前台次要文字 ========== */
.section-sub, .empty-tip, .card-desc {
  color: #a0a8b8 !important;
}
