

:root {

  /* ====== 暗色科技风 Color Tokens ====== */
  /* v10.20：所有 UI 元素统一实色，无 backdrop-filter，无 glass-bg */

  --bg-base: #0A0E27;        /* 深空蓝主背景 */

  --bg-card: #141B3D;        /* 卡片实色 */

  --bg-elevated: #1A2350;    /* 悬浮层实色 */

  --bg-overlay: #000000;     /* v10.20 全屏 overlay 实色背景 */

  --neon-cyan: #00D4FF;      /* 霓虹青主色 · 实色高亮边 */

  --neon-purple: #7B2FFF;    /* 霓虹紫次色 */

  --neon-pink: #FF2D8A;      /* 霓虹粉强调 */

  --text-primary: #FFFFFF;

  --text-secondary: #B0B5C8;     /* v10.20 实色次文字（原 rgba 0.7） */

  --text-tertiary: #6B7280;      /* v10.20 实色暗文字（原 rgba 0.45） */

  --border-subtle: #1A2350;      /* v10.20 实色描边（原 rgba 0.08） */

  --border-accent: #00D4FF;      /* v10.20 实色高亮描边 */

  --border-error: #FF2D8A;       /* v10.20 实色警示描边 */

  --radius-md: 12px;             /* v10.20 统一卡片圆角（原 14） */

  --radius-lg: 16px;             /* v10.20 大卡圆角（原 22） */

  --radius-pill: 999px;

  /* iPhone safe-area */

  --safe-top: env(safe-area-inset-top, 0px);

  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* v10.20 设备检测兜底值（JS body class 覆盖）：
     默认 0（不可识别机型）；机型枚举在下方 */
  --device-top-fallback: 0px;
  --device-bottom-fallback: 0px;
  --device-side-fallback: 0px;
}

/* v10.20 设备检测 CSS 兜底（JS 加 body class 后激活）：
   - iphone-pro：14/15/16 Pro 系列（灵动岛，48/34）
   - iphone-pro-max：14/15/16 Pro Max（更大，62/34）
   - iphone-std：12/13/14/15/16 标准款（刘海，47/34）
   - iphone-se：SE 1-3 代（无刘海，20/0）
   - android：Android Chrome（手势条 24/0）
   注意：环境变量优先（env() 0 不会覆盖这些值）。 */
body.device-iphone-pro { --device-top-fallback: 48px; --device-bottom-fallback: 34px; }
body.device-iphone-pro-max { --device-top-fallback: 62px; --device-bottom-fallback: 34px; }
body.device-iphone-std { --device-top-fallback: 47px; --device-bottom-fallback: 34px; }
body.device-iphone-se { --device-top-fallback: 20px; --device-bottom-fallback: 0px; }
body.device-android { --device-top-fallback: 24px; --device-bottom-fallback: 0px; --device-side-fallback: 16px; }
body.device-ipad { --device-top-fallback: 24px; --device-bottom-fallback: 20px; }

/* v10.20 safe-area 综合输出：env 优先，兜底补足 */
:root {
  --safe-top: max(env(safe-area-inset-top, 0px), var(--device-top-fallback));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--device-bottom-fallback));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--device-side-fallback));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--device-side-fallback));
}

/* v10.20 横屏模式：灵动岛/刘海移到侧边，top/bottom 让位给 left/right */
@media (orientation: landscape) {
  body.device-iphone-pro {
    --device-top-fallback: 0px;
    --device-side-fallback: 48px;
  }
  body.device-iphone-pro-max {
    --device-top-fallback: 0px;
    --device-side-fallback: 62px;
  }
  body.device-iphone-std {
    --device-top-fallback: 0px;
    --device-side-fallback: 47px;
  }
}

/* v10.19c PWA 全屏模式：env() 偶发返 0 → JS 检测后已设置 device-top-fallback（48/34）。
   v10.20 不再需要单独 media query——JS body.pwa-standalone + 设备 class 已生效。
   浏览器模式：env() 由 chrome 处理安全区（返回 0），device 兜底也走 0（不识别的 desktop）*/


* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {

  background: var(--bg-base);

  color: var(--text-primary);

  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;

  font-size: 14px;

  line-height: 1.5;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;

  /* v10.20：等宽数字（科技感） */

  font-variant-numeric: tabular-nums;

  /* v10.21：移除 overscroll-behavior:none —— 它会阻断根滚动器，vivo 等安卓机型整页滑不动 */

  /* v10.21：禁用安卓浏览器「字体放大」(font boosting)，避免大字号撑爆布局 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

}

body {

  /* 灵动岛适配 */

  padding-top: var(--safe-top);

  padding-bottom: calc(70px + var(--safe-bottom));

  /* v10.20：100dvh 优先，100vh 兜底（地址栏收/展不跳） */
  min-height: 100vh;       /* 老兜底 */
  min-height: 100dvh;      /* Safari 15.4+ 动态视口 */

}


/* ====== 顶部品牌栏 (固定) ====== */

.top-bar {

  position: fixed;

  top: var(--safe-top);

  left: 0;

  right: 0;

  height: 52px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 0 16px;

  /* v10.6 去毛玻璃：全屏 PWA 下 backdrop-filter + 半透明使下层内容糊上来、文字发虚 → 不透明 */

  background: #0a0e27;

  border-bottom: 1px solid var(--border-subtle);

  z-index: 100;

}


/* 呼吸灯圆点（v10.6）：缩放呼吸 + 颜色持续轮转
   v10.7：变色改纯 background-position 渐变位移——filter:hue-rotate 动画会把
   固定头部提升为合成图层，iOS/Android 上文字整体发虚（真机模糊根因之一） */

.brand-dot {

  width: 14px; height: 14px; border-radius: 50%; flex: none;

  /* v10.20：实色高亮（不再用渐变线） */
  background: #00D4FF;

  animation: dotBreath 2.2s ease-in-out infinite;

  will-change: transform;

}

@keyframes dotBreath {

  0%, 100% { transform: scale(1); }

  50%      { transform: scale(1.35); }

}


/* 顶栏搜索框（v10.6，v10.19j 移到轮播图上方，v10.20 实色） */

.top-searchbox {

  width: 100%; height: 40px; border-radius: var(--radius-pill); margin: 0 0 12px;

  background: #141B3D; border: 1px solid #1A2350;  /* v10.20 实色描边 */

  display: flex; align-items: center; gap: 8px; padding: 0 14px;

  color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer;

  overflow: hidden; white-space: nowrap;

  transition: border-color 0.2s ease;

}

.top-searchbox:active { border-color: #00D4FF; }  /* v10.20 按下青色高亮 */

.top-searchbox .ts-icon { font-size: 14px; flex: none; }

.brand {

  display: flex;

  align-items: center;

  gap: 8px;

  font-weight: 800;

  font-size: 18px;

  letter-spacing: 1px;

  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}

.brand-icon {

  width: 28px; height: 28px;

  border-radius: 8px;

  background: var(--neon-cyan);  /* v10.20：实色 */

  display: flex; align-items: center; justify-content: center;

  font-size: 16px;

}

.top-search {

  width: 36px; height: 36px;

  border-radius: 50%;

  background: var(--glass-bg);

  border: 1px solid var(--glass-border);

  display: flex; align-items: center; justify-content: center;

  font-size: 16px;

  color: var(--text-secondary);

  cursor: pointer;

}


/* ====== 全站游戏搜索面板 (v10.5) ====== */

.search-overlay {

  position: fixed; inset: 0; z-index: 9999;

  /* v10.6 去毛玻璃：与顶栏一致用不透明背景，杜绝全屏下发虚 */

  background: #0a0e27;

  display: none; flex-direction: column;

}

.search-head {

  display: flex; align-items: center; gap: 10px;

  padding: calc(var(--safe-top) + 12px) 16px 12px;

}

.search-field {

  flex: 1; position: relative; display: flex; align-items: center;

}

.search-input {

  width: 100%; height: 40px; border-radius: var(--radius-pill);

  background: #141B3D; border: 1px solid rgba(255, 255, 255, 0.3);

  color: var(--text-primary); padding: 0 40px 0 16px; font-size: 14px; outline: none;

  -webkit-appearance: none; box-sizing: border-box;

}

.search-input:focus { border-color: var(--neon-cyan); }

/* v10.7：占位文字提亮（0.45 暗灰在真机上发虚显糊） */
.search-input::placeholder { color: var(--text-tertiary); opacity: 1; }  /* v10.20 实色 */

/* 输入框内右侧 ✕ 清除按钮（v10.6） */

.search-clear {

  position: absolute; right: 8px; width: 24px; height: 24px;

  border-radius: 50%; border: none; background: var(--bg-elevated);  /* v10.20 实色 */

  color: var(--text-secondary); font-size: 12px; line-height: 1;

  display: none; align-items: center; justify-content: center; cursor: pointer;

}

.search-clear.on { display: flex; }

/* 返回按钮（v10.7）：搜索框左侧，点击关闭面板返回首页 */
.search-back {

  flex: none; width: 34px; height: 40px; padding: 0; margin-left: -4px;

  border: none; background: none; color: var(--text-primary);

  font-size: 22px; line-height: 1; cursor: pointer;

  display: flex; align-items: center; justify-content: center;

}

/* 「搜索」提交按钮（v10.6，替代「取消」） */

.search-submit {

  flex: none; height: 40px; padding: 0 18px; border-radius: var(--radius-pill);

  border: none; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));

  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;

}

.search-results {

  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;

  padding: 0 16px calc(var(--safe-bottom) + 24px);

  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;

  align-content: start;

}

.s-card { position: relative; }

.s-card-brand {

  position: absolute; top: 6px; left: 6px; z-index: 2;

  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;

  padding: 2px 6px; border-radius: var(--radius-pill);

  background: rgba(0, 212, 255, 0.85); color: #06122a;

}

.search-empty {

  grid-column: 1 / -1; text-align: center; color: var(--text-tertiary);

  padding: 60px 20px; font-size: 13px; line-height: 2;

}

/* v10.19k 搜索默认内容：热门搜索 + 历史 + 推荐 */
.search-default {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(var(--safe-bottom) + 24px);
  display: none;
}
.search-default.on { display: block; }
.sd-section { margin-bottom: 24px; }
.sd-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; letter-spacing: 0.5px;
}
.sd-clear {
  background: none; border: none; color: var(--text-tertiary);
  font-size: 12px; font-weight: 500; cursor: pointer; padding: 4px 8px;
}
.sd-clear:active { opacity: 0.6; }
.sd-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.sd-chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 20px;
  background: var(--bg-card);  /* v10.20 实色卡片 */
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; border: 1px solid var(--border-subtle);  /* v10.20 实色描边 */
  text-decoration: none;
  min-height: 36px;  /* v10.20 触摸目标 */
}
.sd-chip:active { background: var(--bg-base); color: var(--neon-cyan); border-color: var(--neon-cyan); }
.sd-chip.hot { background: var(--bg-elevated); color: var(--neon-pink); border-color: var(--neon-pink); }
.sd-chip.hot:active { background: var(--bg-base); }
.sd-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.sd-card {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3/4; background: #1A2350; cursor: pointer;
  text-decoration: none;
}
.sd-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sd-card-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 8px 8px; font-size: 11px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}
.sd-card-brand {
  position: absolute; top: 6px; left: 6px;
  padding: 2px 6px; border-radius: 10px; font-size: 9px; font-weight: 700;
  background: rgba(0, 212, 255, 0.85); color: #06122a;
}


/* ====== 视频板块 (v10.8)：全屏随机短视频，下滑切换，不留播放记录 ====== */

/* 入口卡片 */

/* v10.21a 视频入口页（电视直播 + 随机视频 2 大板块） */
.vp-entrance { padding: 16px 0; }
.vp-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; letter-spacing: 0.5px; }
.vp-sub { font-size: 13px; color: var(--text-tertiary); margin: 0 0 20px; }
.vp-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.1s ease;
  min-height: 88px;
  position: relative;
}
.vp-card:active { transform: scale(0.98); }
.vp-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.vp-tv .vp-card-icon { background: var(--neon-cyan); color: var(--bg-base); }
.vp-feeds .vp-card-icon { background: var(--neon-pink); color: var(--bg-base); }
.vp-ledger .vp-card-icon { background: #faad14; color: var(--bg-base); }
.vp-lgtv .vp-card-icon { background: var(--neon-purple); color: var(--bg-base); }
.vp-cinema .vp-card-icon { background: linear-gradient(135deg, #F59E0B, #EF4444); color: var(--bg-base); }
.vp-sports .vp-card-icon { background: linear-gradient(135deg,#ff7a45,#ff5a3c); color: var(--bg-base); }
.vp-card-info { flex: 1; min-width: 0; }
.vp-card-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.vp-card-desc { font-size: 12px; color: var(--text-tertiary); }
.vp-card-arrow { font-size: 28px; color: var(--text-tertiary); flex-shrink: 0; }


/* ====== 主容器 ====== */

/* v10.19k 重新设计：safe-area 单一来源（body 已 padding-top: var(--safe-top)）。
   v10.19j 之前 .main 又加 safe-top 导致 iOS PWA 下 59+59+16=134px 顶部空白（丑出天际）。
   body 已处理安全区，子元素不要再叠加 safe-top。 */
/* v10.19l 磨砂顶部装饰：fixed top-deco 占据 60px，.main padding-top 补偿 */
.main { padding: calc(60px + 16px) 16px 0; }


/* ====== v10.20 顶部装饰（fixed，纯色实底） ======
   v10.19l 磨砂玻璃头部已废弃（用户明确禁止透明/毛玻璃）
   设计目标：iOS 全屏顶部纯色实底 + 强对比（深色游戏中心风格）
   历史教训：v10.19l 用的 rgba+blur 即便带检测降级也「丑出天际」——v10.20 全删 */

.top-deco {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* v10.42：品牌字标居左、标语居右，大气留白 */
  gap: 10px;
  height: calc(60px + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  /* v10.20：纯色实底，无透明，无 blur；v10.42 叠一层极淡的青紫渐变增强层次（仍不透明） */
  background: linear-gradient(180deg, #0c1233 0%, #0a0e27 100%);
  border-bottom: 2px solid #00d4ff;  /* v10.20：青色实色高亮边 */
}


/* ====== v10.42 顶部品牌字标 + 游戏板块搜索栏 ====== */

/* 顶部左侧品牌字标（霓虹渐变，大气） */
.top-brand { display: flex; align-items: center; gap: 8px; }
.top-brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: 1px; line-height: 1;
  background: linear-gradient(135deg, #00D4FF, #7B2FFF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* 顶部右侧标语 */
.top-tagline {
  font-size: 11px; color: var(--text-tertiary, #8a93b8);
  letter-spacing: 1px; white-space: nowrap;
}

/* 游戏板块搜索栏：替代原顶部全局搜索；点击打开全站搜索浮层（openSearch） */
.games-searchbox {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 44px; padding: 0 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill, 999px);
  background: #18213F;                 /* 与卡片同色系，实色无透明 */
  border: 1px solid #1A2350;
  color: var(--text-secondary, #aab2d5); font-size: 13px; font-weight: 500;
  cursor: pointer; overflow: hidden; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.games-searchbox:active { transform: scale(0.985); }
.games-searchbox:focus-visible { outline: 2px solid #00D4FF; outline-offset: 2px; }
.games-searchbox .gs-icon {
  font-size: 15px; flex: none;
  filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}
.games-searchbox .gs-ph { opacity: 0.82; }

/* 游戏板块标题副文案 */
.games-sub { margin-top: 5px; font-size: 12px; color: var(--text-tertiary, #8a93b8); }


/* ====== Hero Banner ====== */

/* ====== Hero Banner 轮播 ====== */
/* v10.19k 重新设计：全出血（边到边）+ 仅底部圆角，沉浸式 iOS 风格 */
.hero {
  position: relative;
  margin: 0 auto 24px;
  border-radius: 16px;
  max-width: 720px;   /* 桌面端限制宽度，避免 16:9 变成巨幅横条 */
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(123, 47, 255, 0.4);
  background: linear-gradient(135deg, #1A2350 0%, #7B2FFF 60%, #00D4FF 100%);
}

.hero-track {
  display: flex;
  align-items: flex-start;   /* v83：防止 img 在 flex 行里被拉伸变形 */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
/* v83：后台动态轮播时 <a> 作为 slide 容器（inline style 已给 flex，
   这里补 scroll-snap 与高亮色，保证横滑吸附一致） */
.hero-track .hero-link { scroll-snap-align: start; text-decoration: none; }
.hero-track .hero-link .hero-slide { width: 100%; }
a.hero-link { -webkit-tap-highlight-color: transparent; }

/* v83：轮播图完整显示，不裁剪。
   原理：删掉 aspect-ratio 与 object-fit:cover，让 height:auto 由图片真实比例决定，
         容器高度跟着走 → 天然既不裁剪也不留白。
   兜底：仅当图片异常高（竖图）时用 max-height + contain，此时才有留白但保证图完整可见。
   ⚠️ 不要再加 aspect-ratio 或 cover 到这里，会重新引入裁剪。 */
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;   /* 用户要求 16:9；三张后台图实测本就是精确 16:9 */
  height: auto;
  scroll-snap-align: start;
  /* max-height 已移除：由 aspect-ratio 决定高度，保留会破坏 16:9 比例 */
  object-fit: cover;   /* 填满 16:9 容器，边缘无留白 */
  object-position: center;
  display: block;
  background: #0a0e27;
}
/* v112-hero：横屏时收窄 hero 宽度来保证 16:9 高度不占满整屏（不再用 max-height 破坏比例） */
@media (orientation: landscape) {
  .hero { max-width: 520px; }   /* 横屏收窄 hero；不再用 max-height 破坏 16:9 */
}

.hero-dots {
  position: absolute;
  bottom: 8px;
  right: 14px;          /* v10.22：移到右下，避免与 CTA 抢空间 */
  left: auto;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  z-index: 5;
}
.hero-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s, width 0.2s;
}
.hero-dots .dot.active {
  background: rgba(255, 255, 255, 0.95);
  width: 18px;
  border-radius: 3px;
}

.hero-decoration {

  font-size: 140px;

  opacity: 0.15;

  filter: blur(2px);

}


/* ====== 区块标题 ====== */

.section-head {

  display: flex; align-items: center; justify-content: space-between;

  margin: 20px 0 12px;

}

.section-title {

  display: flex; align-items: center; gap: 6px;

  font-size: 16px; font-weight: 700;

}

.section-title .dot {

  width: 4px; height: 16px;

  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));

  border-radius: 2px;

}

.section-more {

  font-size: 12px;

  color: var(--text-tertiary);

}


/* ====== 品牌入口 (4 个 / v10.20 自适应) ====== */

.brand-grid {

  display: grid;

  /* v10.20：auto-fit 自适应——SE 3 列 / 标准 4 列 / PM 5 列 / 大屏 8 列 */
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));

  gap: 12px;

  margin-bottom: 24px;

}

.brand-card {

  display: flex; flex-direction: column;

  align-items: center; gap: 8px;

  padding: 14px 4px;

  border-radius: var(--radius-md);

  background: var(--bg-card);

  border: 1px solid var(--border-subtle);

  text-decoration: none;

  color: var(--text-primary);

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;

}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: #00D4FF;
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.18);
}
.brand-card:active { transform: scale(0.95); }
/* 触屏设备无 hover，恢复静态阴影，避免误触发位移 */
@media (hover: none) {
  .brand-card:hover { transform: none; border-color: var(--border-subtle); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
}

.brand-icon-circle {

  width: 48px; height: 48px;

  border-radius: 50%;

  display: flex; align-items: center; justify-content: center;

  font-size: 24px;

  position: relative;

  overflow: hidden;

}

.brand-card:nth-child(1) .brand-icon-circle { background: linear-gradient(135deg, #00D4FF, #0066FF); box-shadow: 0 0 16px rgba(0, 212, 255, 0.4); }

.brand-card:nth-child(2) .brand-icon-circle { background: linear-gradient(135deg, #FFD700, #FF8C00); box-shadow: 0 0 16px rgba(255, 140, 0, 0.4); }

.brand-card:nth-child(3) .brand-icon-circle { background: linear-gradient(135deg, #00FF88, #00D4FF); box-shadow: 0 0 16px rgba(0, 255, 136, 0.4); }

.brand-card:nth-child(4) .brand-icon-circle { background: linear-gradient(135deg, #FF2D8A, #7B2FFF); box-shadow: 0 0 16px rgba(255, 45, 138, 0.4); }
.brand-card:nth-child(5) .brand-icon-circle { background: linear-gradient(135deg, #FF6B35, #DC2626); box-shadow: 0 0 16px rgba(255, 107, 53, 0.4); }


.brand-card:nth-child(6) .brand-icon-circle { background: linear-gradient(135deg, #06B6D4, #10B981); box-shadow: 0 0 16px rgba(6, 182, 212, 0.4); }
.brand-card:nth-child(7) .brand-icon-circle { background: linear-gradient(135deg, #E91E63, #F06292); box-shadow: 0 0 16px rgba(233, 30, 99, 0.4); }
.brand-card:nth-child(8) .brand-icon-circle { background: linear-gradient(135deg, #F59E0B, #FBBF24); box-shadow: 0 0 16px rgba(245, 158, 11, 0.4); }


.brand-card span { font-size: 13px; font-weight: 600; color: var(--text-primary); }


/* ====== 热门推荐网格 (与品牌中心左右对齐) ====== */

.h-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-bottom: 4px;

}

.h-card {

  border-radius: var(--radius-md);

  overflow: hidden;

  background: var(--bg-card);

  border: 1px solid var(--border-subtle);  /* v10.20 实色描边 */

  position: relative;

  text-decoration: none;

  color: var(--text-primary);

  display: block;

}

.h-card-img {

  width: 100%;

  height: auto;  /* v10.21 修复：同上，热门推荐卡片图 */

  aspect-ratio: 1;

  object-fit: cover;

  background: var(--bg-elevated);

  display: block;

}

.h-card-name {

  padding: 6px 8px;

  font-size: 12px;

  font-weight: 600;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  text-align: center;

}


/* ====== 网格 (新游) v10.20 自适应 ====== */

.game-grid {

  display: grid;

  /* v10.20：auto-fit 自适应——SE 2 列 / 标准 3 列 / PM 4 列 */
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));

  gap: 10px;

}

.g-card {

  border-radius: var(--radius-md);

  overflow: hidden;

  background: var(--bg-card);

  border: 1px solid var(--border-subtle);  /* v10.20 实色描边 */

  position: relative;

  text-decoration: none;

  color: var(--text-primary);

  display: block;

}

.g-card-img {

  width: 100%;

  height: auto;  /* v10.21 修复：HTML width/height 属性的 presentational hint 会锁定高度使 aspect-ratio 失效（新游竖长拉伸） */

  aspect-ratio: 1;

  object-fit: cover;

  background: var(--bg-elevated);

  display: block;

}

.g-card-name {

  padding: 6px 8px;

  font-size: 11px;

  font-weight: 500;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  text-align: center;

}


/* ====== 占位 Tab ====== */

.placeholder {

  display: flex; flex-direction: column;

  align-items: center; justify-content: center;

  padding: 80px 24px;

  text-align: center;

  color: var(--text-secondary);

}

.placeholder-icon {

  width: 80px; height: 80px;

  border-radius: 50%;

  background: var(--bg-card);  /* v10.20：实色卡片 */

  border: 2px solid var(--neon-cyan);  /* v10.20：青色高亮描边 */

  display: flex; align-items: center; justify-content: center;

  font-size: 36px;

  margin-bottom: 16px;

}

.placeholder-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }

.placeholder-sub { font-size: 13px; color: var(--text-tertiary); }


/* ====== 底部导航栏 (固定) ====== */


.tab-item.active::before {

  content: "";

  position: absolute;

  top: -2px;

  width: 32px; height: 4px;

  background: #00D4FF;

  border-radius: 0 0 4px 4px;

}


/* ====== Tab 切换 ====== */

.tab-content { display: none; }

.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {

  from { opacity: 0; transform: translateY(8px); }

  to { opacity: 1; transform: translateY(0); }

}


/* ====== 滚动条全局隐藏 ====== */

::-webkit-scrollbar { display: none; }

* { scrollbar-width: none; }


/* 我的 tab CTA */
.me-tab-cta { text-align: center; padding: 80px 20px; max-width: 400px; margin: 0 auto; }
.me-tab-icon { font-size: 64px; margin-bottom: 20px; }
.me-tab-title {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.me-tab-sub { color: #7f7f97; font-size: 14px; line-height: 1.6; margin-bottom: 32px; }
.me-tab-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transition: transform 0.2s;
}
.me-tab-btn:active { transform: scale(0.96); }

/* ====== 曝光台 (v10.18 用户社区：交流/举报/情报) ====== */
/* v10.19：顶部栏移除（曝光台名+slogan+发帖按钮；slogan 低对比色导致"模糊"+ 与 FAB 发帖入口重复） */
/* v10.19b：曝光台 tab 上再隐藏全局 .top-bar（搜索全站游戏顶栏）——社区页不需要游戏搜索 */
body.expo-mode .top-bar { display: none; }
/* v10.19m：曝光台完全隐藏搜索框（top-deco 整个隐藏） */
body.expo-mode .top-deco { display: none; }
body.expo-mode .main { padding-top: 8px; }  /* v10.19k: 同样去掉 safe-top 双重叠加 */
body.video-mode .top-deco { display: none; }
body.video-mode .main { padding-top: 8px; }  /* v10.31：家园 tab 去掉置顶搜索框后内容顶到顶部 */
/* v10.19f：曝光台 4 分类 tab 改用 position: fixed（v10.19e sticky 在 iOS PWA 实测不稳
   —— sticky 依赖 nearest scrolling ancestor，iOS PWA standalone 模式下 scroll container
   判定与桌面浏览器不一致，部分 iOS 版本 sticky 不生效。改 fixed 与底栏策略一致，
   用 expo-list 的 padding-top 补偿固定位）
   v10.19g：top/padding-top 都包 max(safe-top, 30px) —— 浏览器模式（iOS Safari 等
   非 PWA）env() 返 0 时 safe-top=0，tabs 直接顶到 y=0 被状态栏盖半截。强制最小
   30px 留出状态栏高度
   v10.19h：用户真机仍反馈「顶栏位置不够上/已划上去的文字露出」，根因是 tabs 元素
   top:var(--safe-top) 让 bg 只能盖按钮行（y=safe-top 起 60px），状态栏下方到按钮之间
   仍有空隙，滚动过的卡片内容从那里露出来。修复：tabs 元素 top:0，bg 全覆盖从视口
   顶部到按钮下方，内部 padding-top 把按钮推到状态栏下 —— 让任何滚动过的内容都被
   顶栏 bg 完整遮住；
   v10.19i：v10.19h 上线后用户反馈「太丑了」——状态栏和 tab 之间多出 30px 纯黑过渡区
   视觉突兀。回退到 v10.19g 风格：tabs bg 只覆盖按钮区 60px，状态栏紧贴按钮区无空隙，
   保留 max(safe-top, 30px) 防状态栏盖半截；scrolled-up 内容靠 z-index + bg 不透明
   隐（这是浏览器/PWA 通用方案） */
.expo-tabs {
  position: fixed;
  /* v10.20d：紧贴状态栏下方（去掉 30px 兜底） */
  top: var(--safe-top);
  left: 0;
  right: 0;
  z-index: 50;
  background: #0a0e27;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.expo-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 60px;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.expo-subbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  box-sizing: border-box;
  border-top: 1px solid var(--border-subtle);
}
.expo-search { flex: 1 1 auto; display: flex; gap: 8px; min-width: 0; }
.expo-search-input {
  flex: 1 1 auto; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 999px; padding: 0 14px; color: var(--text-primary);
  font-size: 13px; height: 38px; box-sizing: border-box; font-family: inherit;
}
.expo-search-input::placeholder { color: #6B7280; }
.expo-search-input:focus { border-color: #00D4FF; outline: none; }
.expo-search-btn {
  flex: 0 0 auto; background: #00D4FF; color: #0A0E27; border: none;
  border-radius: 999px; padding: 0 18px; height: 38px; font-size: 13px;
  font-weight: 700; min-height: 38px;
}
.expo-search-btn:active { transform: scale(0.96); }
.expo-sort { display: flex; gap: 6px; flex: 0 0 auto; }
.expo-sort-btn {
  border: 1px solid var(--border-subtle); background: var(--bg-card);
  color: var(--text-secondary); font-size: 12px; border-radius: 999px;
  padding: 0 11px; height: 38px; min-height: 38px; white-space: nowrap;
}
.expo-sort-btn.active { color: #0A0E27; border-color: #00D4FF; background: #00D4FF; font-weight: 700; }
.expo-more {
  align-self: center; margin: 8px auto 0; background: var(--bg-card);
  border: 1px solid var(--border-subtle); color: var(--neon-cyan);
  border-radius: 999px; padding: 0 28px; height: 42px; font-size: 14px;
  font-weight: 600; min-height: 42px;
}
.expo-more:active { background: rgba(0, 212, 255, 0.12); }
.expo-end { text-align: center; color: var(--text-tertiary); font-size: 12px; padding: 16px 0 4px; }
.expo-card.just-posted {
  border-color: var(--neon-cyan);
  animation: postedGlow 2s ease;
}
@keyframes postedGlow {
  0%   { box-shadow: 0 0 0 0 rgba(0,212,255,0); background: rgba(0,212,255,0.16); }
  20%  { box-shadow: 0 0 0 3px rgba(0,212,255,0.4); background: rgba(0,212,255,0.16); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); background: var(--bg-card); }
}
/* v10.20d：滚动下移时隐藏 tabs（-100% = 整条(分类+搜索)高度 + safe-top 一并隐藏） */
.expo-tabs.scroll-down {
  transform: translateY(calc(-100%));
}
.expo-tab { flex: 0 0 auto; background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 7px 16px; font-size: 13px; /* v10.20 触摸目标 */ min-height: 36px; }
.expo-tab.active { color: var(--neon-cyan); border-color: var(--neon-cyan); background: var(--bg-base); font-weight: 700; }  /* v10.20 实色背景非 rgba */
/* v10.20c：padding-top = safe-top + 60(tabs) + 54(subbar) + 12(间距) 精确计算 */
.expo-list { padding: calc(var(--safe-top) + 126px) 16px 90px; display: flex; flex-direction: column; gap: 12px; transition: padding-top 0.3s ease; min-height: 50vh; }
/* v10.20d：tabs 滚动隐藏时，expo-list padding-top 收回到 16+safe-top（紧贴顶部） */
.expo-list.scroll-up-shift { padding-top: calc(16px + var(--safe-top)); }
/* v10.20c：兜底——确保加载中提示也置顶可见 */
.expo-loading { padding-top: 16px; color: var(--text-tertiary); text-align: center; }
.expo-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; /* v10.20 触摸目标 */ }
.expo-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.expo-nick { font-size: 13px; font-weight: 600; }
.expo-lv { font-size: 10px; color: var(--neon-cyan); border: 1px solid var(--neon-cyan); border-radius: 4px; padding: 1px 5px; }
.expo-tagpill { font-size: 10px; border-radius: 4px; padding: 2px 6px; }
.t-discuss { color: #00d4ff; background: rgba(0, 212, 255, 0.12); }
.t-report { color: #ff5470; background: rgba(255, 84, 112, 0.14); }
.t-tips { color: #ffd700; background: rgba(255, 215, 0, 0.12); }
.t-redblack { color: #ff8c1a; background: rgba(255, 140, 26, 0.14); }
.expo-time { margin-left: auto; font-size: 11px; color: var(--text-tertiary); }
.expo-badge { display: inline-block; font-size: 10px; color: #ff8a5c; background: rgba(255, 138, 92, 0.14); border-radius: 4px; padding: 2px 6px; margin: 8px 0 2px; }
.expo-card-title { font-size: 15px; font-weight: 600; line-height: 1.45; margin: 6px 0; }
.expo-card-body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.expo-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.expo-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-subtle); }
.expo-meta { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-tertiary); }
.expo-like-btn { background: none; border: none; color: var(--text-tertiary); font-size: 13px; padding: 0; }
.expo-like-btn.liked { color: var(--neon-pink); }
.expo-loading, .expo-empty { text-align: center; color: var(--text-tertiary); padding: 40px 0; font-size: 13px; }
.expo-fab { position: fixed; right: 18px; bottom: calc(86px + var(--safe-bottom)); width: 52px; height: 52px; border-radius: 50%; border: none; background: #00D4FF; color: #0A0E27; font-size: 26px; line-height: 52px; padding: 0; z-index: 60; font-weight: 700; /* v10.20 实色高亮 */ }
/* v71b：我的帖子入口（与发帖 + 同尺寸同圆形；青描边深底做主次区分） */
.expo-fab-mine { position: fixed; right: 18px; bottom: calc(86px + 52px + 10px + var(--safe-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #00D4FF; background: rgba(10, 14, 39, 0.92); color: #00D4FF; font-size: 20px; line-height: 49px; padding: 0; z-index: 60; font-weight: 700; text-align: center; }
.expo-fab-mine:active { transform: scale(0.92); }
/* v71b：微信风未读角标（红色圆点外突于按钮右上角，底色描边"跳"出按钮） */
.expo-mine-badge { display: none; position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fa5151; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; border: 2px solid #0A0E27; }
.expo-mine-badge.show { display: block; }
/* v71b：我的帖子面板 */
.expo-mine-sorts { display: flex; gap: 8px; padding: 10px 16px 4px; }
.expo-mine-sort { flex: 0 0 auto; border: 1px solid var(--border-subtle); background: none; color: var(--text-secondary); font-size: 12px; border-radius: 14px; padding: 5px 14px; }
.expo-mine-sort.active { border-color: #00D4FF; color: #00D4FF; font-weight: 700; }
.expo-mine-unread-bar { display: none; margin: 6px 16px 0; padding: 8px 12px; border-radius: 10px; background: rgba(250, 81, 81, 0.12); border: 1px solid rgba(250, 81, 81, 0.35); color: #ff7a85; font-size: 12px; }
.expo-mine-unread-bar.show { display: block; }
.expo-mine-unread-bar b { color: #fa5151; font-size: 14px; }
.expo-mine-list { flex: 1; overflow-y: auto; padding: 6px 16px calc(24px + var(--safe-bottom)); }
.expo-mine-card { border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg-card, rgba(255,255,255,0.03)); }
.expo-mine-card.has-unread { border-color: rgba(250, 81, 81, 0.55); background: rgba(250, 81, 81, 0.06); }
.expo-mine-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.expo-mine-card-top .expo-time { margin-left: auto; }
.expo-new-badge { flex: 0 0 auto; font-size: 10px; font-weight: 700; color: #fff; background: #fa5151; border-radius: 8px; padding: 2px 7px; line-height: 1.3; }
.expo-mine-hidden-tip { font-size: 11px; color: #ff8a5c; margin: 0 0 6px; }
.expo-mine-del { border: 1px solid rgba(255, 77, 94, 0.5); background: none; color: #ff4d5e; font-size: 12px; border-radius: 12px; padding: 4px 12px; margin-left: auto; }
.expo-mine-del:active { background: rgba(255, 77, 94, 0.15); }
/* v71b：最新未读评论预览（微信风气泡：红竖线 + 昵称 + 摘要） */
.expo-mine-unread-cmt { margin: 2px 0 8px; padding: 6px 10px; border-left: 3px solid #fa5151; background: rgba(250, 81, 81, 0.08); border-radius: 0 8px 8px 0; }
.expo-mine-unread-cmt .umc-nick { font-size: 11px; color: #ff7a85; font-weight: 700; margin-bottom: 2px; }
.expo-mine-unread-cmt .umc-nick span { color: var(--text-tertiary); font-weight: 400; }
.expo-mine-unread-cmt .umc-body { font-size: 12px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.expo-meta .cmt-unread { color: #fa5151; font-weight: 700; }
/* v10.19m2：曝光台返回顶部按钮（v10.19n 改成与发帖 fab 同大小同配色） */
.expo-top-btn {
  position: fixed; right: 18px; bottom: calc(150px + var(--safe-bottom));
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #00d4ff, #7c3aed); color: #fff;
  font-size: 24px; line-height: 52px; padding: 0; z-index: 60;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: none;  /* 默认隐藏，滚动后才显示 */
}
.expo-top-btn.show { display: block; }
.expo-top-btn:active { transform: scale(0.92); }
.expo-overlay { position: fixed; inset: 0; background: var(--bg-base); z-index: 200; display: none; flex-direction: column; }
/* v71b：详情页须盖在「我的帖子」面板之上（同 200 时 DOM 后者赢，mine 在 detail 之后会挡住详情） */
#expoDetail { z-index: 210; }
.expo-overlay.open { display: flex; }
.expo-ov-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + 12px) 16px 12px; border-bottom: 2px solid #00D4FF; font-size: 16px; font-weight: 700; background: var(--bg-base); }  /* v10.20f: 青色高亮底线 + 实色背景 */
.expo-back { background: none; border: none; color: #00D4FF; font-size: 20px; padding: 4px 8px; font-weight: 700; }  /* v10.20f: 返回箭头青色高亮 */
.expo-submit { margin-left: auto; background: #00D4FF; color: #0A0E27; border: none; border-radius: 18px; padding: 8px 20px; font-size: 13px; font-weight: 700; min-height: 36px; }
.expo-submit:disabled { background: var(--bg-elevated); color: var(--text-tertiary); }
.expo-ov-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.expo-comment-bar { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-bottom)); border-top: 1px solid var(--border-subtle); background: var(--bg-card); }
.expo-comment-bar input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 9px 14px; color: var(--text-primary); font-size: 13px; }
.expo-comment-bar button { background: var(--neon-cyan); color: #06222e; border: none; border-radius: 18px; padding: 9px 18px; font-size: 13px; font-weight: 600; }
.expo-type-row { display: flex; gap: 8px; margin-bottom: 16px; }
.expo-type { flex: 1; padding: 11px 0; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-secondary); font-size: 14px; font-weight: 500; text-align: center; min-height: 44px; transition: all 0.2s ease; }
.expo-type.active { color: #0A0E27; border-color: #00D4FF; background: #00D4FF; font-weight: 700; }  /* v10.20f: active 态青色背景+深色字（强对比） */
.expo-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px 14px; color: #FFFFFF; font-size: 14px; margin-bottom: 6px; font-family: inherit; min-height: 44px; transition: border-color 0.2s ease; }
.expo-input::placeholder { color: #6B7280; }  /* v10.20f: 占位符实色清晰 */
.expo-input:focus { border-color: #00D4FF; outline: none; }  /* v10.20f: 聚焦青色高亮 */
.expo-input-label { font-size: 12px; color: #B0B5C8; font-weight: 500; margin: 16px 0 6px; }  /* v10.20f: 独立 label 行（不再 placeholder 当 label） */
textarea.expo-input { min-height: 130px; resize: none; line-height: 1.6; }
.expo-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.expo-chip { border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-secondary); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 12px; }
.expo-chip.active { color: var(--neon-pink); border-color: var(--neon-pink); background: rgba(255, 45, 138, 0.12); }
.expo-note { font-size: 11px; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 10px; }

/* v10.20f 举报须知警示框（⚠ 图标 + 粉红左边框 + 浅粉底色） */
.expo-warn {
  margin: 16px 0 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-left: 3px solid #FF2D8A;
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}
.expo-warn-title {
  font-size: 13px;
  font-weight: 700;
  color: #FF2D8A;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.expo-warn-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.expo-img-row { display: flex; flex-wrap: wrap; gap: 8px; }
.expo-img-add { width: 72px; height: 72px; border: 1px dashed var(--border-subtle); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 24px; cursor: pointer; }
.expo-img-hint { font-size: 11px; color: var(--text-tertiary); margin: 8px 0 12px; padding: 8px 12px; background: var(--bg-card); border-radius: 8px; border: 1px dashed var(--border-subtle); }  /* v10.20f 上传提示 */
.expo-img-item { position: relative; }
.expo-img-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.expo-img-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--neon-pink); color: #fff; border: none; font-size: 11px; line-height: 20px; text-align: center; padding: 0; }
.expo-d-title { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 10px 0 6px; word-break: break-word; }
.expo-d-plat { font-size: 12px; color: var(--neon-pink); margin-bottom: 8px; }
.expo-d-body { font-size: 14px; line-height: 1.8; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; }
.expo-d-imgs { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.expo-d-imgs img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border-subtle); display: block; }  /* v10.21 修复：模板注入的 156x156 属性会压扁详情图 */
.expo-d-cmts-title { font-size: 13px; font-weight: 600; margin: 18px 0 4px; }
.expo-d-cmts-more { font-size: 12px; color: var(--text-tertiary); text-align: center; padding: 10px 0 4px; }
.expo-cmt { padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.expo-cmt-top { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.expo-cmt-body { font-size: 13px; line-height: 1.6; word-break: break-word; }
.expo-toast { position: fixed; left: 50%; top: 44%; transform: translateX(-50%); background: rgba(19, 26, 63, 0.95); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px; z-index: 999; max-width: 76%; text-align: center; }

/* v21.0 帖子举报浮层 */
.expo-report-btn { margin-left: auto; background: none; border: 1px solid var(--border-subtle); color: var(--text-tertiary); font-size: 12px; border-radius: 14px; padding: 4px 12px; min-height: 28px; }
.expo-report-mask { position: fixed; inset: 0; background: rgba(4, 8, 24, 0.72); z-index: 300; display: none; align-items: flex-end; justify-content: center; }
.expo-report-mask.open { display: flex; }
.expo-report-card { width: 100%; max-width: 560px; background: var(--bg-elevated); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: expoReportUp 0.22s ease; }
@keyframes expoReportUp { from { transform: translateY(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.expo-report-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.expo-report-sub { font-size: 12px; color: var(--text-tertiary); margin-bottom: 14px; }
.expo-report-reasons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.expo-reason-chip { padding: 8px 16px; border-radius: 999px; background: var(--bg-base); border: 1px solid var(--border-subtle); color: var(--text-secondary, #A8B0CC); font-size: 13px; min-height: 36px; }
.expo-reason-chip.sel { background: rgba(255, 45, 138, 0.16); border-color: var(--border-error); color: var(--border-error); font-weight: 700; }
.expo-report-detail { width: 100%; box-sizing: border-box; background: var(--bg-base); border: 1px solid var(--border-subtle); border-radius: 12px; color: #fff; padding: 10px 12px; font-size: 13px; min-height: 64px; resize: none; margin-bottom: 14px; }
.expo-report-detail::placeholder { color: var(--text-tertiary); }
.expo-report-actions { display: flex; gap: 12px; }
.expo-report-cancel { flex: 1; background: var(--bg-base); border: 1px solid var(--border-subtle); color: var(--text-tertiary); border-radius: 12px; min-height: 42px; font-size: 14px; }
.expo-report-submit { flex: 2; background: #FF2D8A; border: none; color: #fff; border-radius: 12px; min-height: 42px; font-size: 14px; font-weight: 700; }
.expo-report-submit:disabled { background: var(--bg-base); color: var(--text-tertiary); }


/* ============================================================
   v10.22 首页改版 · 新增样式
   1) hero-overlay  —— Hero 文字层 + 主 CTA（首屏唯一主目标）
   2) brand-strip  —— 8 品牌紧凑胶囊条（替代表格化 brand-card）
   3) svc-grid     —— 4 子站生态矩阵（老哥电视/随机视频/记账/计算器）
   ============================================================ */

/* ---------- 1. Hero 文字层 + CTA ---------- */
/* .hero-track 是横向 flex，overlay 需作为绝对定位兄弟节点放在 .hero 内 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 20px;
  pointer-events: none;   /* 不拦截 banner 滑动，CTA 自身恢复 */
  background: linear-gradient(100deg, rgba(10, 14, 39, 0.88) 0%, rgba(10, 14, 39, 0.58) 48%, rgba(10, 14, 39, 0) 80%);
}
.hero-title {
  margin: 0;
  font-size: clamp(21px, 6.2vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}


/* Hero 空间不足时（横屏 / 矮容器）隐藏副文案，保证 CTA 不被裁切 */
@media (max-height: 480px), (max-width: 340px) {
  .hero-sub { display: none; }
  .hero-title { font-size: 19px; }
}

/* ---------- 2. 品牌紧凑胶囊条 ---------- */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 2px 9px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.bs-item:active {
  transform: scale(0.95);
  border-color: var(--border-accent);
}
.bs-item:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.bs-ico {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  line-height: 1;
}
.bs-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.bs-count {
  font-size: 9px;
  color: var(--text-tertiary);
  line-height: 1;
}
/* 各品牌配色（沿用旧 brand-card nth-child 方案，改用独立 class） */
.bs-ico.c1 { background: linear-gradient(135deg, #7B2FFF, #FF2D8A); box-shadow: 0 0 12px rgba(123, 47, 255, 0.4); }
.bs-ico.c2 { background: linear-gradient(135deg, #FFD700, #FF8C00); box-shadow: 0 0 12px rgba(255, 140, 0, 0.4); }
.bs-ico.c3 { background: linear-gradient(135deg, #00FF88, #00D4FF); box-shadow: 0 0 12px rgba(0, 255, 136, 0.4); }
.bs-ico.c4 { background: linear-gradient(135deg, #FF2D8A, #7B2FFF); box-shadow: 0 0 12px rgba(255, 45, 138, 0.4); }
.bs-ico.c5 { background: linear-gradient(135deg, #FF6B35, #DC2626); box-shadow: 0 0 12px rgba(255, 107, 53, 0.4); }
.bs-ico.c6 { background: linear-gradient(135deg, #06B6D4, #10B981); box-shadow: 0 0 12px rgba(6, 182, 212, 0.4); }
.bs-ico.c7 { background: linear-gradient(135deg, #E91E63, #F06292); box-shadow: 0 0 12px rgba(233, 30, 99, 0.4); }
.bs-ico.c8 { background: linear-gradient(135deg, #F59E0B, #FBBF24); box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }

/* ---------- 3. 4 子站生态矩阵 ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.svc-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.svc-card::before {
  /* 左侧品牌色条 */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.svc-card.tv::before     { background: linear-gradient(180deg, #00D4FF, #7B2FFF); }
.svc-card.feeds::before   { background: linear-gradient(180deg, #FF2D8A, #F59E0B); }
.svc-card.ledger::before  { background: linear-gradient(180deg, #10B981, #00D4FF); }
.svc-card.calc::before    { background: linear-gradient(180deg, #7B2FFF, #FF2D8A); }
.svc-card.cinema::before  { background: linear-gradient(180deg, #F59E0B, #EF4444); }
.svc-card:active { transform: scale(0.975); border-color: var(--border-accent); }
.svc-card:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.svc-ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  line-height: 1;
  background: var(--bg-elevated);
}
.svc-meta { min-width: 0; }
.svc-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-desc {
  font-size: 10.5px;
  color: var(--text-tertiary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-arrow {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--text-tertiary);
  font-size: 17px;
  line-height: 1;
}


/* ---------- 4. 板块右上「全部 ›」跳转 ---------- */
.section-more {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  min-height: 28px;          /* 触摸友好 */
  display: inline-flex;
  align-items: center;
}
.section-more:active { border-color: var(--border-accent); color: var(--neon-cyan); }
.section-more:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

/* ====== 统一底部导航 v10.22（以首页 index.v2 为唯一模板） ====== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(60px + var(--safe-bottom, 0px));
  padding-bottom: var(--safe-bottom, 0px);
  background: #141B3D;
  border-top: 2px solid #00D4FF;
  display: flex;
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--text-tertiary, #6B7280);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.tab-item.active { color: var(--neon-cyan, #00D4FF); }
.tab-item.active::before {
  content: "";
  position: absolute;
  top: -2px;
  width: 32px; height: 4px;
  background: #00D4FF;
  border-radius: 0 0 4px 4px;
}
/* .icon 与历史页的 .tab-icon 共存，保证老页面图标同样式 */
.tab-item .icon,
.tab-item .tab-icon { font-size: 22px; line-height: 1; display: block; }
.tab-item .label { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; }


/* ================= v113（2026-11-02）赛事直播板块 =================
   替换原 首页三大板块（热门推荐/新游速递/老哥生态）；
   沿用暗色科技风 tokens，主色调用霓虹粉+暖橙（与游戏紫形成区隔） */

.sp-hero {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 16px 16px 18px;
  text-decoration: none;
  color: var(--text-primary);
  background:
    radial-gradient(130% 170% at 90% -30%, rgba(255, 138, 0, 0.42) 0%, rgba(255, 45, 138, 0.25) 46%, rgba(10, 14, 39, 0) 74%),
    linear-gradient(135deg, #1A2350 0%, #2A1A5E 55%, #141B3D 100%);
  border: 1px solid rgba(255, 45, 138, 0.38);
  box-shadow: 0 10px 28px rgba(255, 45, 138, 0.20);
  transition: transform 0.16s ease;
}
.sp-hero:active { transform: scale(0.985); }

.sp-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sp-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 45, 138, 0.16);
  border: 1px solid rgba(255, 45, 138, 0.55);
  color: #FF5CA8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.sp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF2D8A;
  animation: spPulse 1.6s ease-out infinite;
}

@keyframes spPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 138, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 45, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 138, 0); }
}

.sp-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
  line-height: 1;
  color: var(--text-primary);
}

.sp-hero-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sp-hero-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sp-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  color: var(--text-primary);
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.sp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.sp-card:active {
  transform: scale(0.96);
  border-color: rgba(255, 45, 138, 0.5);
}

.sp-card-ico {
  font-size: 22px;
  line-height: 1;
}

.sp-card-name {
  font-size: 12px;
  font-weight: 700;
}

.sp-card-desc {
  font-size: 9px;
  color: var(--text-tertiary);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .sp-live-dot { animation: none; }
}
